1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libXvMC 1.0.14. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || 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 test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197 then : 198 as_have_required=yes 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225 then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254 # neutralization value for shells without unset; and this also 255 # works around shells that cannot unset nonexistent variables. 256 # Preserve -v and -x to the replacement shell. 257 BASH_ENV=/dev/null 258 ENV=/dev/null 259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260 case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265 esac 266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267 # Admittedly, this is quite paranoid, since all the known shells bail 268 # out after a failed 'exec'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270 exit 255 271 fi 272 273 if test x$as_have_required = xno 274 then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 282 $0: https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues 283 $0: about your system, including any error possibly output 284 $0: before this message. Then install a modern shell, or 285 $0: manually run the script under such a shell if you do 286 $0: have one." 287 fi 288 exit 1 289 fi ;; 290 esac 291 fi 292 fi 293 SHELL=${CONFIG_SHELL-/bin/sh} 294 export SHELL 295 # Unset more variables known to interfere with behavior of common tools. 296 CLICOLOR_FORCE= GREP_OPTIONS= 297 unset CLICOLOR_FORCE GREP_OPTIONS 298 299 ## --------------------- ## 300 ## M4sh Shell Functions. ## 301 ## --------------------- ## 302 # as_fn_unset VAR 303 # --------------- 304 # Portably unset VAR. 305 as_fn_unset () 306 { 307 { eval $1=; unset $1;} 308 } 309 as_unset=as_fn_unset 310 311 312 # as_fn_set_status STATUS 313 # ----------------------- 314 # Set $? to STATUS, without forking. 315 as_fn_set_status () 316 { 317 return $1 318 } # as_fn_set_status 319 320 # as_fn_exit STATUS 321 # ----------------- 322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323 as_fn_exit () 324 { 325 set +e 326 as_fn_set_status $1 327 exit $1 328 } # as_fn_exit 329 330 # as_fn_mkdir_p 331 # ------------- 332 # Create "$as_dir" as a directory, including parents if necessary. 333 as_fn_mkdir_p () 334 { 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352 printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376 } # as_fn_mkdir_p 377 378 # as_fn_executable_p FILE 379 # ----------------------- 380 # Test if FILE is an executable regular file. 381 as_fn_executable_p () 382 { 383 test -f "$1" && test -x "$1" 384 } # as_fn_executable_p 385 # as_fn_append VAR VALUE 386 # ---------------------- 387 # Append the text in VALUE to the end of the definition contained in VAR. Take 388 # advantage of any shell optimizations that allow amortized linear growth over 389 # repeated appends, instead of the typical quadratic growth present in naive 390 # implementations. 391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392 then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397 else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402 esac 403 fi # as_fn_append 404 405 # as_fn_arith ARG... 406 # ------------------ 407 # Perform arithmetic evaluation on the ARGs, and store the result in the 408 # global $as_val. Take advantage of shells that can avoid forks. The arguments 409 # must be portable across $(()) and expr. 410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411 then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416 else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421 esac 422 fi # as_fn_arith 423 424 425 # as_fn_error STATUS ERROR [LINENO LOG_FD] 426 # ---------------------------------------- 427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429 # script with STATUS, using 1 if that was 0. 430 as_fn_error () 431 { 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439 } # as_fn_error 440 441 if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444 else 445 as_expr=false 446 fi 447 448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450 else 451 as_basename=false 452 fi 453 454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456 else 457 as_dirname=false 458 fi 459 460 as_me=`$as_basename -- "$0" || 461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464 printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479 # Avoid depending upon Character Ranges. 480 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483 as_cr_digits='0123456789' 484 as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522 } 523 524 525 # Determine whether it's possible to make 'echo' print without a newline. 526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 # for compatibility with existing Makefiles. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `echo -n x` in #((((( 530 -n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537 *) 538 ECHO_N='-n';; 539 esac 540 541 # For backward compatibility with old third-party macros, we provide 542 # the shell variables $as_echo and $as_echo_n. New code should use 543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 rm -f conf$$ conf$$.exe conf$$.file 548 if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550 else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553 fi 554 if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568 else 569 as_ln_s='cp -pR' 570 fi 571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572 rmdir conf$$.dir 2>/dev/null 573 574 if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576 else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579 fi 580 581 as_test_x='test -x' 582 as_executable_p=as_fn_executable_p 583 584 # Sed expression to map a string onto a valid CPP name. 585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588 # Sed expression to map a string onto a valid variable name. 589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592 SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595 test -n "$DJDIR" || exec 7<&0 </dev/null 596 exec 6>&1 597 598 # Name of the host. 599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600 # so uname gets run too. 601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603 # 604 # Initializations. 605 # 606 ac_default_prefix=/usr/local 607 ac_clean_files= 608 ac_config_libobj_dir=. 609 LIBOBJS= 610 cross_compiling=no 611 subdirs= 612 MFLAGS= 613 MAKEFLAGS= 614 615 # Identity of this package. 616 PACKAGE_NAME='libXvMC' 617 PACKAGE_TARNAME='libXvMC' 618 PACKAGE_VERSION='1.0.14' 619 PACKAGE_STRING='libXvMC 1.0.14' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues' 621 PACKAGE_URL='' 622 623 ac_unique_file="Makefile.am" 624 # Factoring default headers for most tests. 625 ac_includes_default="\ 626 #include <stddef.h> 627 #ifdef HAVE_STDIO_H 628 # include <stdio.h> 629 #endif 630 #ifdef HAVE_STDLIB_H 631 # include <stdlib.h> 632 #endif 633 #ifdef HAVE_STRING_H 634 # include <string.h> 635 #endif 636 #ifdef HAVE_INTTYPES_H 637 # include <inttypes.h> 638 #endif 639 #ifdef HAVE_STDINT_H 640 # include <stdint.h> 641 #endif 642 #ifdef HAVE_STRINGS_H 643 # include <strings.h> 644 #endif 645 #ifdef HAVE_SYS_TYPES_H 646 # include <sys/types.h> 647 #endif 648 #ifdef HAVE_SYS_STAT_H 649 # include <sys/stat.h> 650 #endif 651 #ifdef HAVE_UNISTD_H 652 # include <unistd.h> 653 #endif" 654 655 ac_header_c_list= 656 ac_subst_vars='am__EXEEXT_FALSE 657 am__EXEEXT_TRUE 658 LTLIBOBJS 659 LIBOBJS 660 LINT_FALSE 661 LINT_TRUE 662 LINT_FLAGS 663 LINT 664 DLOPEN_LIBS 665 XVMC_LIBS 666 XVMC_CFLAGS 667 XTMALLOC_ZERO_CFLAGS 668 XMALLOC_ZERO_CFLAGS 669 MALLOC_ZERO_CFLAGS 670 MAN_SUBSTS 671 XORG_MAN_PAGE 672 ADMIN_MAN_DIR 673 DRIVER_MAN_DIR 674 MISC_MAN_DIR 675 FILE_MAN_DIR 676 LIB_MAN_DIR 677 APP_MAN_DIR 678 ADMIN_MAN_SUFFIX 679 DRIVER_MAN_SUFFIX 680 MISC_MAN_SUFFIX 681 FILE_MAN_SUFFIX 682 LIB_MAN_SUFFIX 683 APP_MAN_SUFFIX 684 INSTALL_CMD 685 PKG_CONFIG_LIBDIR 686 PKG_CONFIG_PATH 687 PKG_CONFIG 688 CHANGELOG_CMD 689 STRICT_CFLAGS 690 CWARNFLAGS 691 BASE_CFLAGS 692 LT_SYS_LIBRARY_PATH 693 OTOOL64 694 OTOOL 695 LIPO 696 NMEDIT 697 DSYMUTIL 698 MANIFEST_TOOL 699 RANLIB 700 ac_ct_AR 701 AR 702 DLLTOOL 703 OBJDUMP 704 FILECMD 705 LN_S 706 NM 707 ac_ct_DUMPBIN 708 DUMPBIN 709 LD 710 FGREP 711 EGREP 712 GREP 713 SED 714 am__fastdepCC_FALSE 715 am__fastdepCC_TRUE 716 CCDEPMODE 717 am__nodep 718 AMDEPBACKSLASH 719 AMDEP_FALSE 720 AMDEP_TRUE 721 am__include 722 DEPDIR 723 OBJEXT 724 EXEEXT 725 ac_ct_CC 726 CPPFLAGS 727 LDFLAGS 728 CFLAGS 729 CC 730 host_os 731 host_vendor 732 host_cpu 733 host 734 build_os 735 build_vendor 736 build_cpu 737 build 738 LIBTOOL 739 AM_BACKSLASH 740 AM_DEFAULT_VERBOSITY 741 AM_DEFAULT_V 742 AM_V 743 CSCOPE 744 ETAGS 745 CTAGS 746 am__untar 747 am__tar 748 AMTAR 749 am__leading_dot 750 SET_MAKE 751 AWK 752 mkdir_p 753 MKDIR_P 754 INSTALL_STRIP_PROGRAM 755 STRIP 756 install_sh 757 MAKEINFO 758 AUTOHEADER 759 AUTOMAKE 760 AUTOCONF 761 ACLOCAL 762 VERSION 763 PACKAGE 764 CYGPATH_W 765 am__isrc 766 INSTALL_DATA 767 INSTALL_SCRIPT 768 INSTALL_PROGRAM 769 target_alias 770 host_alias 771 build_alias 772 LIBS 773 ECHO_T 774 ECHO_N 775 ECHO_C 776 DEFS 777 mandir 778 localedir 779 libdir 780 psdir 781 pdfdir 782 dvidir 783 htmldir 784 infodir 785 docdir 786 oldincludedir 787 includedir 788 runstatedir 789 localstatedir 790 sharedstatedir 791 sysconfdir 792 datadir 793 datarootdir 794 libexecdir 795 sbindir 796 bindir 797 program_transform_name 798 prefix 799 exec_prefix 800 PACKAGE_URL 801 PACKAGE_BUGREPORT 802 PACKAGE_STRING 803 PACKAGE_VERSION 804 PACKAGE_TARNAME 805 PACKAGE_NAME 806 PATH_SEPARATOR 807 SHELL 808 am__quote' 809 ac_subst_files='' 810 ac_user_opts=' 811 enable_option_checking 812 enable_silent_rules 813 enable_shared 814 enable_static 815 with_pic 816 enable_fast_install 817 with_aix_soname 818 enable_dependency_tracking 819 with_gnu_ld 820 with_sysroot 821 enable_libtool_lock 822 enable_selective_werror 823 enable_strict_compilation 824 enable_malloc0returnsnull 825 with_lint 826 ' 827 ac_precious_vars='build_alias 828 host_alias 829 target_alias 830 CC 831 CFLAGS 832 LDFLAGS 833 LIBS 834 CPPFLAGS 835 LT_SYS_LIBRARY_PATH 836 PKG_CONFIG 837 PKG_CONFIG_PATH 838 PKG_CONFIG_LIBDIR 839 XVMC_CFLAGS 840 XVMC_LIBS 841 LINT 842 LINT_FLAGS' 843 844 845 # Initialize some variables set by options. 846 ac_init_help= 847 ac_init_version=false 848 ac_unrecognized_opts= 849 ac_unrecognized_sep= 850 # The variables have the same names as the options, with 851 # dashes changed to underlines. 852 cache_file=/dev/null 853 exec_prefix=NONE 854 no_create= 855 no_recursion= 856 prefix=NONE 857 program_prefix=NONE 858 program_suffix=NONE 859 program_transform_name=s,x,x, 860 silent= 861 site= 862 srcdir= 863 verbose= 864 x_includes=NONE 865 x_libraries=NONE 866 867 # Installation directory options. 868 # These are left unexpanded so users can "make install exec_prefix=/foo" 869 # and all the variables that are supposed to be based on exec_prefix 870 # by default will actually change. 871 # Use braces instead of parens because sh, perl, etc. also accept them. 872 # (The list follows the same order as the GNU Coding Standards.) 873 bindir='${exec_prefix}/bin' 874 sbindir='${exec_prefix}/sbin' 875 libexecdir='${exec_prefix}/libexec' 876 datarootdir='${prefix}/share' 877 datadir='${datarootdir}' 878 sysconfdir='${prefix}/etc' 879 sharedstatedir='${prefix}/com' 880 localstatedir='${prefix}/var' 881 runstatedir='${localstatedir}/run' 882 includedir='${prefix}/include' 883 oldincludedir='/usr/include' 884 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 885 infodir='${datarootdir}/info' 886 htmldir='${docdir}' 887 dvidir='${docdir}' 888 pdfdir='${docdir}' 889 psdir='${docdir}' 890 libdir='${exec_prefix}/lib' 891 localedir='${datarootdir}/locale' 892 mandir='${datarootdir}/man' 893 894 ac_prev= 895 ac_dashdash= 896 for ac_option 897 do 898 # If the previous option needs an argument, assign it. 899 if test -n "$ac_prev"; then 900 eval $ac_prev=\$ac_option 901 ac_prev= 902 continue 903 fi 904 905 case $ac_option in 906 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 907 *=) ac_optarg= ;; 908 *) ac_optarg=yes ;; 909 esac 910 911 case $ac_dashdash$ac_option in 912 --) 913 ac_dashdash=yes ;; 914 915 -bindir | --bindir | --bindi | --bind | --bin | --bi) 916 ac_prev=bindir ;; 917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 918 bindir=$ac_optarg ;; 919 920 -build | --build | --buil | --bui | --bu) 921 ac_prev=build_alias ;; 922 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 923 build_alias=$ac_optarg ;; 924 925 -cache-file | --cache-file | --cache-fil | --cache-fi \ 926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 927 ac_prev=cache_file ;; 928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 930 cache_file=$ac_optarg ;; 931 932 --config-cache | -C) 933 cache_file=config.cache ;; 934 935 -datadir | --datadir | --datadi | --datad) 936 ac_prev=datadir ;; 937 -datadir=* | --datadir=* | --datadi=* | --datad=*) 938 datadir=$ac_optarg ;; 939 940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 941 | --dataroo | --dataro | --datar) 942 ac_prev=datarootdir ;; 943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 945 datarootdir=$ac_optarg ;; 946 947 -disable-* | --disable-*) 948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 949 # Reject names that are not valid shell variable names. 950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 951 as_fn_error $? "invalid feature name: '$ac_useropt'" 952 ac_useropt_orig=$ac_useropt 953 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 954 case $ac_user_opts in 955 *" 956 "enable_$ac_useropt" 957 "*) ;; 958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 959 ac_unrecognized_sep=', ';; 960 esac 961 eval enable_$ac_useropt=no ;; 962 963 -docdir | --docdir | --docdi | --doc | --do) 964 ac_prev=docdir ;; 965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 966 docdir=$ac_optarg ;; 967 968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 969 ac_prev=dvidir ;; 970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 971 dvidir=$ac_optarg ;; 972 973 -enable-* | --enable-*) 974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 975 # Reject names that are not valid shell variable names. 976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 977 as_fn_error $? "invalid feature name: '$ac_useropt'" 978 ac_useropt_orig=$ac_useropt 979 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 980 case $ac_user_opts in 981 *" 982 "enable_$ac_useropt" 983 "*) ;; 984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 985 ac_unrecognized_sep=', ';; 986 esac 987 eval enable_$ac_useropt=\$ac_optarg ;; 988 989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 991 | --exec | --exe | --ex) 992 ac_prev=exec_prefix ;; 993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 995 | --exec=* | --exe=* | --ex=*) 996 exec_prefix=$ac_optarg ;; 997 998 -gas | --gas | --ga | --g) 999 # Obsolete; use --with-gas. 1000 with_gas=yes ;; 1001 1002 -help | --help | --hel | --he | -h) 1003 ac_init_help=long ;; 1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1005 ac_init_help=recursive ;; 1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1007 ac_init_help=short ;; 1008 1009 -host | --host | --hos | --ho) 1010 ac_prev=host_alias ;; 1011 -host=* | --host=* | --hos=* | --ho=*) 1012 host_alias=$ac_optarg ;; 1013 1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1015 ac_prev=htmldir ;; 1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1017 | --ht=*) 1018 htmldir=$ac_optarg ;; 1019 1020 -includedir | --includedir | --includedi | --included | --include \ 1021 | --includ | --inclu | --incl | --inc) 1022 ac_prev=includedir ;; 1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1024 | --includ=* | --inclu=* | --incl=* | --inc=*) 1025 includedir=$ac_optarg ;; 1026 1027 -infodir | --infodir | --infodi | --infod | --info | --inf) 1028 ac_prev=infodir ;; 1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1030 infodir=$ac_optarg ;; 1031 1032 -libdir | --libdir | --libdi | --libd) 1033 ac_prev=libdir ;; 1034 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1035 libdir=$ac_optarg ;; 1036 1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1038 | --libexe | --libex | --libe) 1039 ac_prev=libexecdir ;; 1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1041 | --libexe=* | --libex=* | --libe=*) 1042 libexecdir=$ac_optarg ;; 1043 1044 -localedir | --localedir | --localedi | --localed | --locale) 1045 ac_prev=localedir ;; 1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1047 localedir=$ac_optarg ;; 1048 1049 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1050 | --localstate | --localstat | --localsta | --localst | --locals) 1051 ac_prev=localstatedir ;; 1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1054 localstatedir=$ac_optarg ;; 1055 1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1057 ac_prev=mandir ;; 1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1059 mandir=$ac_optarg ;; 1060 1061 -nfp | --nfp | --nf) 1062 # Obsolete; use --without-fp. 1063 with_fp=no ;; 1064 1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1066 | --no-cr | --no-c | -n) 1067 no_create=yes ;; 1068 1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1071 no_recursion=yes ;; 1072 1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1075 | --oldin | --oldi | --old | --ol | --o) 1076 ac_prev=oldincludedir ;; 1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1080 oldincludedir=$ac_optarg ;; 1081 1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1083 ac_prev=prefix ;; 1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1085 prefix=$ac_optarg ;; 1086 1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1088 | --program-pre | --program-pr | --program-p) 1089 ac_prev=program_prefix ;; 1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1092 program_prefix=$ac_optarg ;; 1093 1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1095 | --program-suf | --program-su | --program-s) 1096 ac_prev=program_suffix ;; 1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1099 program_suffix=$ac_optarg ;; 1100 1101 -program-transform-name | --program-transform-name \ 1102 | --program-transform-nam | --program-transform-na \ 1103 | --program-transform-n | --program-transform- \ 1104 | --program-transform | --program-transfor \ 1105 | --program-transfo | --program-transf \ 1106 | --program-trans | --program-tran \ 1107 | --progr-tra | --program-tr | --program-t) 1108 ac_prev=program_transform_name ;; 1109 -program-transform-name=* | --program-transform-name=* \ 1110 | --program-transform-nam=* | --program-transform-na=* \ 1111 | --program-transform-n=* | --program-transform-=* \ 1112 | --program-transform=* | --program-transfor=* \ 1113 | --program-transfo=* | --program-transf=* \ 1114 | --program-trans=* | --program-tran=* \ 1115 | --progr-tra=* | --program-tr=* | --program-t=*) 1116 program_transform_name=$ac_optarg ;; 1117 1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1119 ac_prev=pdfdir ;; 1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1121 pdfdir=$ac_optarg ;; 1122 1123 -psdir | --psdir | --psdi | --psd | --ps) 1124 ac_prev=psdir ;; 1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1126 psdir=$ac_optarg ;; 1127 1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1129 | -silent | --silent | --silen | --sile | --sil) 1130 silent=yes ;; 1131 1132 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1133 | --runstate | --runstat | --runsta | --runst | --runs \ 1134 | --run | --ru | --r) 1135 ac_prev=runstatedir ;; 1136 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1137 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1138 | --run=* | --ru=* | --r=*) 1139 runstatedir=$ac_optarg ;; 1140 1141 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1142 ac_prev=sbindir ;; 1143 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1144 | --sbi=* | --sb=*) 1145 sbindir=$ac_optarg ;; 1146 1147 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1148 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1149 | --sharedst | --shareds | --shared | --share | --shar \ 1150 | --sha | --sh) 1151 ac_prev=sharedstatedir ;; 1152 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1153 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1154 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1155 | --sha=* | --sh=*) 1156 sharedstatedir=$ac_optarg ;; 1157 1158 -site | --site | --sit) 1159 ac_prev=site ;; 1160 -site=* | --site=* | --sit=*) 1161 site=$ac_optarg ;; 1162 1163 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1164 ac_prev=srcdir ;; 1165 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1166 srcdir=$ac_optarg ;; 1167 1168 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1169 | --syscon | --sysco | --sysc | --sys | --sy) 1170 ac_prev=sysconfdir ;; 1171 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1172 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1173 sysconfdir=$ac_optarg ;; 1174 1175 -target | --target | --targe | --targ | --tar | --ta | --t) 1176 ac_prev=target_alias ;; 1177 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1178 target_alias=$ac_optarg ;; 1179 1180 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1181 verbose=yes ;; 1182 1183 -version | --version | --versio | --versi | --vers | -V) 1184 ac_init_version=: ;; 1185 1186 -with-* | --with-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: '$ac_useropt'" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195 "with_$ac_useropt" 1196 "*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=\$ac_optarg ;; 1201 1202 -without-* | --without-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: '$ac_useropt'" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211 "with_$ac_useropt" 1212 "*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=no ;; 1217 1218 --x) 1219 # Obsolete; use --with-x. 1220 with_x=yes ;; 1221 1222 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1223 | --x-incl | --x-inc | --x-in | --x-i) 1224 ac_prev=x_includes ;; 1225 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1226 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1227 x_includes=$ac_optarg ;; 1228 1229 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1230 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1231 ac_prev=x_libraries ;; 1232 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1233 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1234 x_libraries=$ac_optarg ;; 1235 1236 -*) as_fn_error $? "unrecognized option: '$ac_option' 1237 Try '$0 --help' for more information" 1238 ;; 1239 1240 *=*) 1241 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1242 # Reject names that are not valid shell variable names. 1243 case $ac_envvar in #( 1244 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1245 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1246 esac 1247 eval $ac_envvar=\$ac_optarg 1248 export $ac_envvar ;; 1249 1250 *) 1251 # FIXME: should be removed in autoconf 3.0. 1252 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1253 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1254 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1255 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1256 ;; 1257 1258 esac 1259 done 1260 1261 if test -n "$ac_prev"; then 1262 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1263 as_fn_error $? "missing argument to $ac_option" 1264 fi 1265 1266 if test -n "$ac_unrecognized_opts"; then 1267 case $enable_option_checking in 1268 no) ;; 1269 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1270 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1271 esac 1272 fi 1273 1274 # Check all directory arguments for consistency. 1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1276 datadir sysconfdir sharedstatedir localstatedir includedir \ 1277 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1278 libdir localedir mandir runstatedir 1279 do 1280 eval ac_val=\$$ac_var 1281 # Remove trailing slashes. 1282 case $ac_val in 1283 */ ) 1284 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1285 eval $ac_var=\$ac_val;; 1286 esac 1287 # Be sure to have absolute directory names. 1288 case $ac_val in 1289 [\\/$]* | ?:[\\/]* ) continue;; 1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1291 esac 1292 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1293 done 1294 1295 # There might be people who depend on the old broken behavior: '$host' 1296 # used to hold the argument of --host etc. 1297 # FIXME: To remove some day. 1298 build=$build_alias 1299 host=$host_alias 1300 target=$target_alias 1301 1302 # FIXME: To remove some day. 1303 if test "x$host_alias" != x; then 1304 if test "x$build_alias" = x; then 1305 cross_compiling=maybe 1306 elif test "x$build_alias" != "x$host_alias"; then 1307 cross_compiling=yes 1308 fi 1309 fi 1310 1311 ac_tool_prefix= 1312 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1313 1314 test "$silent" = yes && exec 6>/dev/null 1315 1316 1317 ac_pwd=`pwd` && test -n "$ac_pwd" && 1318 ac_ls_di=`ls -di .` && 1319 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1320 as_fn_error $? "working directory cannot be determined" 1321 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1322 as_fn_error $? "pwd does not report name of working directory" 1323 1324 1325 # Find the source files, if location was not specified. 1326 if test -z "$srcdir"; then 1327 ac_srcdir_defaulted=yes 1328 # Try the directory containing this script, then the parent directory. 1329 ac_confdir=`$as_dirname -- "$as_myself" || 1330 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1331 X"$as_myself" : 'X\(//\)[^/]' \| \ 1332 X"$as_myself" : 'X\(//\)$' \| \ 1333 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1334 printf "%s\n" X"$as_myself" | 1335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1336 s//\1/ 1337 q 1338 } 1339 /^X\(\/\/\)[^/].*/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\).*/{ 1348 s//\1/ 1349 q 1350 } 1351 s/.*/./; q'` 1352 srcdir=$ac_confdir 1353 if test ! -r "$srcdir/$ac_unique_file"; then 1354 srcdir=.. 1355 fi 1356 else 1357 ac_srcdir_defaulted=no 1358 fi 1359 if test ! -r "$srcdir/$ac_unique_file"; then 1360 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1361 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1362 fi 1363 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1364 ac_abs_confdir=`( 1365 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1366 pwd)` 1367 # When building in place, set srcdir=. 1368 if test "$ac_abs_confdir" = "$ac_pwd"; then 1369 srcdir=. 1370 fi 1371 # Remove unnecessary trailing slashes from srcdir. 1372 # Double slashes in file names in object file debugging info 1373 # mess up M-x gdb in Emacs. 1374 case $srcdir in 1375 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1376 esac 1377 for ac_var in $ac_precious_vars; do 1378 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1379 eval ac_env_${ac_var}_value=\$${ac_var} 1380 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1381 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1382 done 1383 1384 # 1385 # Report the --help message. 1386 # 1387 if test "$ac_init_help" = "long"; then 1388 # Omit some internal or obsolete options to make the list less imposing. 1389 # This message is too long to be a string in the A/UX 3.1 sh. 1390 cat <<_ACEOF 1391 'configure' configures libXvMC 1.0.14 to adapt to many kinds of systems. 1392 1393 Usage: $0 [OPTION]... [VAR=VALUE]... 1394 1395 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1396 VAR=VALUE. See below for descriptions of some of the useful variables. 1397 1398 Defaults for the options are specified in brackets. 1399 1400 Configuration: 1401 -h, --help display this help and exit 1402 --help=short display options specific to this package 1403 --help=recursive display the short help of all the included packages 1404 -V, --version display version information and exit 1405 -q, --quiet, --silent do not print 'checking ...' messages 1406 --cache-file=FILE cache test results in FILE [disabled] 1407 -C, --config-cache alias for '--cache-file=config.cache' 1408 -n, --no-create do not create output files 1409 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1410 1411 Installation directories: 1412 --prefix=PREFIX install architecture-independent files in PREFIX 1413 [$ac_default_prefix] 1414 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1415 [PREFIX] 1416 1417 By default, 'make install' will install all the files in 1418 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1419 an installation prefix other than '$ac_default_prefix' using '--prefix', 1420 for instance '--prefix=\$HOME'. 1421 1422 For better control, use the options below. 1423 1424 Fine tuning of the installation directories: 1425 --bindir=DIR user executables [EPREFIX/bin] 1426 --sbindir=DIR system admin executables [EPREFIX/sbin] 1427 --libexecdir=DIR program executables [EPREFIX/libexec] 1428 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1429 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1430 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1431 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1432 --libdir=DIR object code libraries [EPREFIX/lib] 1433 --includedir=DIR C header files [PREFIX/include] 1434 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1435 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1436 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1437 --infodir=DIR info documentation [DATAROOTDIR/info] 1438 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1439 --mandir=DIR man documentation [DATAROOTDIR/man] 1440 --docdir=DIR documentation root [DATAROOTDIR/doc/libXvMC] 1441 --htmldir=DIR html documentation [DOCDIR] 1442 --dvidir=DIR dvi documentation [DOCDIR] 1443 --pdfdir=DIR pdf documentation [DOCDIR] 1444 --psdir=DIR ps documentation [DOCDIR] 1445 _ACEOF 1446 1447 cat <<\_ACEOF 1448 1449 Program names: 1450 --program-prefix=PREFIX prepend PREFIX to installed program names 1451 --program-suffix=SUFFIX append SUFFIX to installed program names 1452 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1453 1454 System types: 1455 --build=BUILD configure for building on BUILD [guessed] 1456 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1457 _ACEOF 1458 fi 1459 1460 if test -n "$ac_init_help"; then 1461 case $ac_init_help in 1462 short | recursive ) echo "Configuration of libXvMC 1.0.14:";; 1463 esac 1464 cat <<\_ACEOF 1465 1466 Optional Features: 1467 --disable-option-checking ignore unrecognized --enable/--with options 1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1470 --enable-silent-rules less verbose build output (undo: "make V=1") 1471 --disable-silent-rules verbose build output (undo: "make V=0") 1472 --enable-shared[=PKGS] build shared libraries [default=yes] 1473 --enable-static[=PKGS] build static libraries [default=yes] 1474 --enable-fast-install[=PKGS] 1475 optimize for fast installation [default=yes] 1476 --enable-dependency-tracking 1477 do not reject slow dependency extractors 1478 --disable-dependency-tracking 1479 speeds up one-time build 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 --disable-selective-werror 1482 Turn off selective compiler errors. (default: 1483 enabled) 1484 --enable-strict-compilation 1485 Enable all warnings from compiler and make them 1486 errors (default: disabled) 1487 --enable-malloc0returnsnull 1488 malloc(0) returns NULL (default: auto) 1489 1490 Optional Packages: 1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1493 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1494 both] 1495 --with-aix-soname=aix|svr4|both 1496 shared library versioning (aka "SONAME") variant to 1497 provide on AIX, [default=aix]. 1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1499 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1500 compiler's sysroot if not specified). 1501 --with-lint Use a lint-style source code checker (default: 1502 disabled) 1503 1504 Some influential environment variables: 1505 CC C compiler command 1506 CFLAGS C compiler flags 1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1508 nonstandard directory <lib dir> 1509 LIBS libraries to pass to the linker, e.g. -l<library> 1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1511 you have headers in a nonstandard directory <include dir> 1512 LT_SYS_LIBRARY_PATH 1513 User-defined run-time library search path. 1514 PKG_CONFIG path to pkg-config utility 1515 PKG_CONFIG_PATH 1516 directories to add to pkg-config's search path 1517 PKG_CONFIG_LIBDIR 1518 path overriding pkg-config's built-in search path 1519 XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config 1520 XVMC_LIBS linker flags for XVMC, overriding pkg-config 1521 LINT Path to a lint-style command 1522 LINT_FLAGS Flags for the lint-style command 1523 1524 Use these variables to override the choices made by 'configure' or to help 1525 it to find libraries and programs with nonstandard names/locations. 1526 1527 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues>. 1528 _ACEOF 1529 ac_status=$? 1530 fi 1531 1532 if test "$ac_init_help" = "recursive"; then 1533 # If there are subdirs, report their specific --help. 1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1535 test -d "$ac_dir" || 1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1537 continue 1538 ac_builddir=. 1539 1540 case "$ac_dir" in 1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1542 *) 1543 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1544 # A ".." for each directory in $ac_dir_suffix. 1545 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1546 case $ac_top_builddir_sub in 1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1549 esac ;; 1550 esac 1551 ac_abs_top_builddir=$ac_pwd 1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1553 # for backward compatibility: 1554 ac_top_builddir=$ac_top_build_prefix 1555 1556 case $srcdir in 1557 .) # We are building in place. 1558 ac_srcdir=. 1559 ac_top_srcdir=$ac_top_builddir_sub 1560 ac_abs_top_srcdir=$ac_pwd ;; 1561 [\\/]* | ?:[\\/]* ) # Absolute name. 1562 ac_srcdir=$srcdir$ac_dir_suffix; 1563 ac_top_srcdir=$srcdir 1564 ac_abs_top_srcdir=$srcdir ;; 1565 *) # Relative name. 1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1567 ac_top_srcdir=$ac_top_build_prefix$srcdir 1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1569 esac 1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1571 1572 cd "$ac_dir" || { ac_status=$?; continue; } 1573 # Check for configure.gnu first; this name is used for a wrapper for 1574 # Metaconfig's "Configure" on case-insensitive file systems. 1575 if test -f "$ac_srcdir/configure.gnu"; then 1576 echo && 1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1578 elif test -f "$ac_srcdir/configure"; then 1579 echo && 1580 $SHELL "$ac_srcdir/configure" --help=recursive 1581 else 1582 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1583 fi || ac_status=$? 1584 cd "$ac_pwd" || { ac_status=$?; break; } 1585 done 1586 fi 1587 1588 test -n "$ac_init_help" && exit $ac_status 1589 if $ac_init_version; then 1590 cat <<\_ACEOF 1591 libXvMC configure 1.0.14 1592 generated by GNU Autoconf 2.72 1593 1594 Copyright (C) 2023 Free Software Foundation, Inc. 1595 This configure script is free software; the Free Software Foundation 1596 gives unlimited permission to copy, distribute and modify it. 1597 _ACEOF 1598 exit 1599 fi 1600 1601 ## ------------------------ ## 1602 ## Autoconf initialization. ## 1603 ## ------------------------ ## 1604 1605 # ac_fn_c_try_compile LINENO 1606 # -------------------------- 1607 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1608 ac_fn_c_try_compile () 1609 { 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 rm -f conftest.$ac_objext conftest.beam 1612 if { { ac_try="$ac_compile" 1613 case "(($ac_try" in 1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1615 *) ac_try_echo=$ac_try;; 1616 esac 1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1618 printf "%s\n" "$ac_try_echo"; } >&5 1619 (eval "$ac_compile") 2>conftest.err 1620 ac_status=$? 1621 if test -s conftest.err; then 1622 grep -v '^ *+' conftest.err >conftest.er1 1623 cat conftest.er1 >&5 1624 mv -f conftest.er1 conftest.err 1625 fi 1626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1627 test $ac_status = 0; } && { 1628 test -z "$ac_c_werror_flag" || 1629 test ! -s conftest.err 1630 } && test -s conftest.$ac_objext 1631 then : 1632 ac_retval=0 1633 else case e in #( 1634 e) printf "%s\n" "$as_me: failed program was:" >&5 1635 sed 's/^/| /' conftest.$ac_ext >&5 1636 1637 ac_retval=1 ;; 1638 esac 1639 fi 1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1641 as_fn_set_status $ac_retval 1642 1643 } # ac_fn_c_try_compile 1644 1645 # ac_fn_c_try_link LINENO 1646 # ----------------------- 1647 # Try to link conftest.$ac_ext, and return whether this succeeded. 1648 ac_fn_c_try_link () 1649 { 1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1651 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1652 if { { ac_try="$ac_link" 1653 case "(($ac_try" in 1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1655 *) ac_try_echo=$ac_try;; 1656 esac 1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1658 printf "%s\n" "$ac_try_echo"; } >&5 1659 (eval "$ac_link") 2>conftest.err 1660 ac_status=$? 1661 if test -s conftest.err; then 1662 grep -v '^ *+' conftest.err >conftest.er1 1663 cat conftest.er1 >&5 1664 mv -f conftest.er1 conftest.err 1665 fi 1666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; } && { 1668 test -z "$ac_c_werror_flag" || 1669 test ! -s conftest.err 1670 } && test -s conftest$ac_exeext && { 1671 test "$cross_compiling" = yes || 1672 test -x conftest$ac_exeext 1673 } 1674 then : 1675 ac_retval=0 1676 else case e in #( 1677 e) printf "%s\n" "$as_me: failed program was:" >&5 1678 sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 ;; 1681 esac 1682 fi 1683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1685 # interfere with the next link command; also delete a directory that is 1686 # left behind by Apple's compiler. We do this before executing the actions. 1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691 } # ac_fn_c_try_link 1692 1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1694 # ------------------------------------------------------- 1695 # Tests whether HEADER exists and can be compiled using the include files in 1696 # INCLUDES, setting the cache variable VAR accordingly. 1697 ac_fn_c_check_header_compile () 1698 { 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1701 printf %s "checking for $2... " >&6; } 1702 if eval test \${$3+y} 1703 then : 1704 printf %s "(cached) " >&6 1705 else case e in #( 1706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1707 /* end confdefs.h. */ 1708 $4 1709 #include <$2> 1710 _ACEOF 1711 if ac_fn_c_try_compile "$LINENO" 1712 then : 1713 eval "$3=yes" 1714 else case e in #( 1715 e) eval "$3=no" ;; 1716 esac 1717 fi 1718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1719 esac 1720 fi 1721 eval ac_res=\$$3 1722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1723 printf "%s\n" "$ac_res" >&6; } 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 1726 } # ac_fn_c_check_header_compile 1727 1728 # ac_fn_c_check_func LINENO FUNC VAR 1729 # ---------------------------------- 1730 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1731 ac_fn_c_check_func () 1732 { 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1735 printf %s "checking for $2... " >&6; } 1736 if eval test \${$3+y} 1737 then : 1738 printf %s "(cached) " >&6 1739 else case e in #( 1740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1741 /* end confdefs.h. */ 1742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1744 #define $2 innocuous_$2 1745 1746 /* System header to define __stub macros and hopefully few prototypes, 1747 which can conflict with char $2 (void); below. */ 1748 1749 #include <limits.h> 1750 #undef $2 1751 1752 /* Override any GCC internal prototype to avoid an error. 1753 Use char because int might match the return type of a GCC 1754 builtin and then its argument prototype would still apply. */ 1755 #ifdef __cplusplus 1756 extern "C" 1757 #endif 1758 char $2 (void); 1759 /* The GNU C library defines this for functions which it implements 1760 to always fail with ENOSYS. Some functions are actually named 1761 something starting with __ and the normal name is an alias. */ 1762 #if defined __stub_$2 || defined __stub___$2 1763 choke me 1764 #endif 1765 1766 int 1767 main (void) 1768 { 1769 return $2 (); 1770 ; 1771 return 0; 1772 } 1773 _ACEOF 1774 if ac_fn_c_try_link "$LINENO" 1775 then : 1776 eval "$3=yes" 1777 else case e in #( 1778 e) eval "$3=no" ;; 1779 esac 1780 fi 1781 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1782 conftest$ac_exeext conftest.$ac_ext ;; 1783 esac 1784 fi 1785 eval ac_res=\$$3 1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787 printf "%s\n" "$ac_res" >&6; } 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 1790 } # ac_fn_c_check_func 1791 1792 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1793 # ------------------------------------------------------------------ 1794 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1795 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1796 ac_fn_check_decl () 1797 { 1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1799 as_decl_name=`echo $2|sed 's/ *(.*//'` 1800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1801 printf %s "checking whether $as_decl_name is declared... " >&6; } 1802 if eval test \${$3+y} 1803 then : 1804 printf %s "(cached) " >&6 1805 else case e in #( 1806 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1807 eval ac_save_FLAGS=\$$6 1808 as_fn_append $6 " $5" 1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810 /* end confdefs.h. */ 1811 $4 1812 int 1813 main (void) 1814 { 1815 #ifndef $as_decl_name 1816 #ifdef __cplusplus 1817 (void) $as_decl_use; 1818 #else 1819 (void) $as_decl_name; 1820 #endif 1821 #endif 1822 1823 ; 1824 return 0; 1825 } 1826 _ACEOF 1827 if ac_fn_c_try_compile "$LINENO" 1828 then : 1829 eval "$3=yes" 1830 else case e in #( 1831 e) eval "$3=no" ;; 1832 esac 1833 fi 1834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1835 eval $6=\$ac_save_FLAGS 1836 ;; 1837 esac 1838 fi 1839 eval ac_res=\$$3 1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841 printf "%s\n" "$ac_res" >&6; } 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 1844 } # ac_fn_check_decl 1845 1846 # ac_fn_c_try_run LINENO 1847 # ---------------------- 1848 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1849 # executables *can* be run. 1850 ac_fn_c_try_run () 1851 { 1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1853 if { { ac_try="$ac_link" 1854 case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857 esac 1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859 printf "%s\n" "$ac_try_echo"; } >&5 1860 (eval "$ac_link") 2>&5 1861 ac_status=$? 1862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1864 { { case "(($ac_try" in 1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1866 *) ac_try_echo=$ac_try;; 1867 esac 1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1869 printf "%s\n" "$ac_try_echo"; } >&5 1870 (eval "$ac_try") 2>&5 1871 ac_status=$? 1872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; }; } 1874 then : 1875 ac_retval=0 1876 else case e in #( 1877 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1878 printf "%s\n" "$as_me: failed program was:" >&5 1879 sed 's/^/| /' conftest.$ac_ext >&5 1880 1881 ac_retval=$ac_status ;; 1882 esac 1883 fi 1884 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1886 as_fn_set_status $ac_retval 1887 1888 } # ac_fn_c_try_run 1889 ac_configure_args_raw= 1890 for ac_arg 1891 do 1892 case $ac_arg in 1893 *\'*) 1894 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1895 esac 1896 as_fn_append ac_configure_args_raw " '$ac_arg'" 1897 done 1898 1899 case $ac_configure_args_raw in 1900 *$as_nl*) 1901 ac_safe_unquote= ;; 1902 *) 1903 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1904 ac_unsafe_a="$ac_unsafe_z#~" 1905 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1906 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1907 esac 1908 1909 cat >config.log <<_ACEOF 1910 This file contains any messages produced by compilers while 1911 running configure, to aid debugging if configure makes a mistake. 1912 1913 It was created by libXvMC $as_me 1.0.14, which was 1914 generated by GNU Autoconf 2.72. Invocation command line was 1915 1916 $ $0$ac_configure_args_raw 1917 1918 _ACEOF 1919 exec 5>>config.log 1920 { 1921 cat <<_ASUNAME 1922 ## --------- ## 1923 ## Platform. ## 1924 ## --------- ## 1925 1926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1927 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1928 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1929 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1930 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1931 1932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1934 1935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1938 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1942 1943 _ASUNAME 1944 1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1946 for as_dir in $PATH 1947 do 1948 IFS=$as_save_IFS 1949 case $as_dir in #((( 1950 '') as_dir=./ ;; 1951 */) ;; 1952 *) as_dir=$as_dir/ ;; 1953 esac 1954 printf "%s\n" "PATH: $as_dir" 1955 done 1956 IFS=$as_save_IFS 1957 1958 } >&5 1959 1960 cat >&5 <<_ACEOF 1961 1962 1963 ## ----------- ## 1964 ## Core tests. ## 1965 ## ----------- ## 1966 1967 _ACEOF 1968 1969 1970 # Keep a trace of the command line. 1971 # Strip out --no-create and --no-recursion so they do not pile up. 1972 # Strip out --silent because we don't want to record it for future runs. 1973 # Also quote any args containing shell meta-characters. 1974 # Make two passes to allow for proper duplicate-argument suppression. 1975 ac_configure_args= 1976 ac_configure_args0= 1977 ac_configure_args1= 1978 ac_must_keep_next=false 1979 for ac_pass in 1 2 1980 do 1981 for ac_arg 1982 do 1983 case $ac_arg in 1984 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1986 | -silent | --silent | --silen | --sile | --sil) 1987 continue ;; 1988 *\'*) 1989 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1990 esac 1991 case $ac_pass in 1992 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1993 2) 1994 as_fn_append ac_configure_args1 " '$ac_arg'" 1995 if test $ac_must_keep_next = true; then 1996 ac_must_keep_next=false # Got value, back to normal. 1997 else 1998 case $ac_arg in 1999 *=* | --config-cache | -C | -disable-* | --disable-* \ 2000 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2001 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2002 | -with-* | --with-* | -without-* | --without-* | --x) 2003 case "$ac_configure_args0 " in 2004 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2005 esac 2006 ;; 2007 -* ) ac_must_keep_next=true ;; 2008 esac 2009 fi 2010 as_fn_append ac_configure_args " '$ac_arg'" 2011 ;; 2012 esac 2013 done 2014 done 2015 { ac_configure_args0=; unset ac_configure_args0;} 2016 { ac_configure_args1=; unset ac_configure_args1;} 2017 2018 # When interrupted or exit'd, cleanup temporary files, and complete 2019 # config.log. We remove comments because anyway the quotes in there 2020 # would cause problems or look ugly. 2021 # WARNING: Use '\'' to represent an apostrophe within the trap. 2022 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2023 trap 'exit_status=$? 2024 # Sanitize IFS. 2025 IFS=" "" $as_nl" 2026 # Save into config.log some information that might help in debugging. 2027 { 2028 echo 2029 2030 printf "%s\n" "## ---------------- ## 2031 ## Cache variables. ## 2032 ## ---------------- ##" 2033 echo 2034 # The following way of writing the cache mishandles newlines in values, 2035 ( 2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in #( 2039 *${as_nl}*) 2040 case $ac_var in #( 2041 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2042 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2043 esac 2044 case $ac_var in #( 2045 _ | IFS | as_nl) ;; #( 2046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2047 *) { eval $ac_var=; unset $ac_var;} ;; 2048 esac ;; 2049 esac 2050 done 2051 (set) 2>&1 | 2052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2053 *${as_nl}ac_space=\ *) 2054 sed -n \ 2055 "s/'\''/'\''\\\\'\'''\''/g; 2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2057 ;; #( 2058 *) 2059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2060 ;; 2061 esac | 2062 sort 2063 ) 2064 echo 2065 2066 printf "%s\n" "## ----------------- ## 2067 ## Output variables. ## 2068 ## ----------------- ##" 2069 echo 2070 for ac_var in $ac_subst_vars 2071 do 2072 eval ac_val=\$$ac_var 2073 case $ac_val in 2074 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2075 esac 2076 printf "%s\n" "$ac_var='\''$ac_val'\''" 2077 done | sort 2078 echo 2079 2080 if test -n "$ac_subst_files"; then 2081 printf "%s\n" "## ------------------- ## 2082 ## File substitutions. ## 2083 ## ------------------- ##" 2084 echo 2085 for ac_var in $ac_subst_files 2086 do 2087 eval ac_val=\$$ac_var 2088 case $ac_val in 2089 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2090 esac 2091 printf "%s\n" "$ac_var='\''$ac_val'\''" 2092 done | sort 2093 echo 2094 fi 2095 2096 if test -s confdefs.h; then 2097 printf "%s\n" "## ----------- ## 2098 ## confdefs.h. ## 2099 ## ----------- ##" 2100 echo 2101 cat confdefs.h 2102 echo 2103 fi 2104 test "$ac_signal" != 0 && 2105 printf "%s\n" "$as_me: caught signal $ac_signal" 2106 printf "%s\n" "$as_me: exit $exit_status" 2107 } >&5 2108 rm -f core *.core core.conftest.* && 2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2110 exit $exit_status 2111 ' 0 2112 for ac_signal in 1 2 13 15; do 2113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2114 done 2115 ac_signal=0 2116 2117 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2118 rm -f -r conftest* confdefs.h 2119 2120 printf "%s\n" "/* confdefs.h */" > confdefs.h 2121 2122 # Predefined preprocessor variables. 2123 2124 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2125 2126 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2127 2128 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2129 2130 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2131 2132 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2133 2134 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2135 2136 2137 # Let the site file select an alternate cache file if it wants to. 2138 # Prefer an explicitly selected file to automatically selected ones. 2139 if test -n "$CONFIG_SITE"; then 2140 ac_site_files="$CONFIG_SITE" 2141 elif test "x$prefix" != xNONE; then 2142 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2143 else 2144 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2145 fi 2146 2147 for ac_site_file in $ac_site_files 2148 do 2149 case $ac_site_file in #( 2150 */*) : 2151 ;; #( 2152 *) : 2153 ac_site_file=./$ac_site_file ;; 2154 esac 2155 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2157 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2158 sed 's/^/| /' "$ac_site_file" >&5 2159 . "$ac_site_file" \ 2160 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2161 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2162 as_fn_error $? "failed to load site script $ac_site_file 2163 See 'config.log' for more details" "$LINENO" 5; } 2164 fi 2165 done 2166 2167 if test -r "$cache_file"; then 2168 # Some versions of bash will fail to source /dev/null (special files 2169 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2170 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2172 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2173 case $cache_file in 2174 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2175 *) . "./$cache_file";; 2176 esac 2177 fi 2178 else 2179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2180 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2181 >$cache_file 2182 fi 2183 2184 # Test code for whether the C compiler supports C89 (global declarations) 2185 ac_c_conftest_c89_globals=' 2186 /* Does the compiler advertise C89 conformance? 2187 Do not test the value of __STDC__, because some compilers set it to 0 2188 while being otherwise adequately conformant. */ 2189 #if !defined __STDC__ 2190 # error "Compiler does not advertise C89 conformance" 2191 #endif 2192 2193 #include <stddef.h> 2194 #include <stdarg.h> 2195 struct stat; 2196 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2197 struct buf { int x; }; 2198 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2199 static char *e (char **p, int i) 2200 { 2201 return p[i]; 2202 } 2203 static char *f (char * (*g) (char **, int), char **p, ...) 2204 { 2205 char *s; 2206 va_list v; 2207 va_start (v,p); 2208 s = g (p, va_arg (v,int)); 2209 va_end (v); 2210 return s; 2211 } 2212 2213 /* C89 style stringification. */ 2214 #define noexpand_stringify(a) #a 2215 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2216 2217 /* C89 style token pasting. Exercises some of the corner cases that 2218 e.g. old MSVC gets wrong, but not very hard. */ 2219 #define noexpand_concat(a,b) a##b 2220 #define expand_concat(a,b) noexpand_concat(a,b) 2221 extern int vA; 2222 extern int vbee; 2223 #define aye A 2224 #define bee B 2225 int *pvA = &expand_concat(v,aye); 2226 int *pvbee = &noexpand_concat(v,bee); 2227 2228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2229 function prototypes and stuff, but not \xHH hex character constants. 2230 These do not provoke an error unfortunately, instead are silently treated 2231 as an "x". The following induces an error, until -std is added to get 2232 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2233 array size at least. It is necessary to write \x00 == 0 to get something 2234 that is true only with -std. */ 2235 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2236 2237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2238 inside strings and character constants. */ 2239 #define FOO(x) '\''x'\'' 2240 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2241 2242 int test (int i, double x); 2243 struct s1 {int (*f) (int a);}; 2244 struct s2 {int (*f) (double a);}; 2245 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2246 int, int);' 2247 2248 # Test code for whether the C compiler supports C89 (body of main). 2249 ac_c_conftest_c89_main=' 2250 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2251 ' 2252 2253 # Test code for whether the C compiler supports C99 (global declarations) 2254 ac_c_conftest_c99_globals=' 2255 /* Does the compiler advertise C99 conformance? */ 2256 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2257 # error "Compiler does not advertise C99 conformance" 2258 #endif 2259 2260 // See if C++-style comments work. 2261 2262 #include <stdbool.h> 2263 extern int puts (const char *); 2264 extern int printf (const char *, ...); 2265 extern int dprintf (int, const char *, ...); 2266 extern void *malloc (size_t); 2267 extern void free (void *); 2268 2269 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2270 // dprintf is used instead of fprintf to avoid needing to declare 2271 // FILE and stderr. 2272 #define debug(...) dprintf (2, __VA_ARGS__) 2273 #define showlist(...) puts (#__VA_ARGS__) 2274 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2275 static void 2276 test_varargs_macros (void) 2277 { 2278 int x = 1234; 2279 int y = 5678; 2280 debug ("Flag"); 2281 debug ("X = %d\n", x); 2282 showlist (The first, second, and third items.); 2283 report (x>y, "x is %d but y is %d", x, y); 2284 } 2285 2286 // Check long long types. 2287 #define BIG64 18446744073709551615ull 2288 #define BIG32 4294967295ul 2289 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2290 #if !BIG_OK 2291 #error "your preprocessor is broken" 2292 #endif 2293 #if BIG_OK 2294 #else 2295 #error "your preprocessor is broken" 2296 #endif 2297 static long long int bignum = -9223372036854775807LL; 2298 static unsigned long long int ubignum = BIG64; 2299 2300 struct incomplete_array 2301 { 2302 int datasize; 2303 double data[]; 2304 }; 2305 2306 struct named_init { 2307 int number; 2308 const wchar_t *name; 2309 double average; 2310 }; 2311 2312 typedef const char *ccp; 2313 2314 static inline int 2315 test_restrict (ccp restrict text) 2316 { 2317 // Iterate through items via the restricted pointer. 2318 // Also check for declarations in for loops. 2319 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2320 continue; 2321 return 0; 2322 } 2323 2324 // Check varargs and va_copy. 2325 static bool 2326 test_varargs (const char *format, ...) 2327 { 2328 va_list args; 2329 va_start (args, format); 2330 va_list args_copy; 2331 va_copy (args_copy, args); 2332 2333 const char *str = ""; 2334 int number = 0; 2335 float fnumber = 0; 2336 2337 while (*format) 2338 { 2339 switch (*format++) 2340 { 2341 case '\''s'\'': // string 2342 str = va_arg (args_copy, const char *); 2343 break; 2344 case '\''d'\'': // int 2345 number = va_arg (args_copy, int); 2346 break; 2347 case '\''f'\'': // float 2348 fnumber = va_arg (args_copy, double); 2349 break; 2350 default: 2351 break; 2352 } 2353 } 2354 va_end (args_copy); 2355 va_end (args); 2356 2357 return *str && number && fnumber; 2358 } 2359 ' 2360 2361 # Test code for whether the C compiler supports C99 (body of main). 2362 ac_c_conftest_c99_main=' 2363 // Check bool. 2364 _Bool success = false; 2365 success |= (argc != 0); 2366 2367 // Check restrict. 2368 if (test_restrict ("String literal") == 0) 2369 success = true; 2370 char *restrict newvar = "Another string"; 2371 2372 // Check varargs. 2373 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2374 test_varargs_macros (); 2375 2376 // Check flexible array members. 2377 struct incomplete_array *ia = 2378 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2379 ia->datasize = 10; 2380 for (int i = 0; i < ia->datasize; ++i) 2381 ia->data[i] = i * 1.234; 2382 // Work around memory leak warnings. 2383 free (ia); 2384 2385 // Check named initializers. 2386 struct named_init ni = { 2387 .number = 34, 2388 .name = L"Test wide string", 2389 .average = 543.34343, 2390 }; 2391 2392 ni.number = 58; 2393 2394 int dynamic_array[ni.number]; 2395 dynamic_array[0] = argv[0][0]; 2396 dynamic_array[ni.number - 1] = 543; 2397 2398 // work around unused variable warnings 2399 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2400 || dynamic_array[ni.number - 1] != 543); 2401 ' 2402 2403 # Test code for whether the C compiler supports C11 (global declarations) 2404 ac_c_conftest_c11_globals=' 2405 /* Does the compiler advertise C11 conformance? */ 2406 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2407 # error "Compiler does not advertise C11 conformance" 2408 #endif 2409 2410 // Check _Alignas. 2411 char _Alignas (double) aligned_as_double; 2412 char _Alignas (0) no_special_alignment; 2413 extern char aligned_as_int; 2414 char _Alignas (0) _Alignas (int) aligned_as_int; 2415 2416 // Check _Alignof. 2417 enum 2418 { 2419 int_alignment = _Alignof (int), 2420 int_array_alignment = _Alignof (int[100]), 2421 char_alignment = _Alignof (char) 2422 }; 2423 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2424 2425 // Check _Noreturn. 2426 int _Noreturn does_not_return (void) { for (;;) continue; } 2427 2428 // Check _Static_assert. 2429 struct test_static_assert 2430 { 2431 int x; 2432 _Static_assert (sizeof (int) <= sizeof (long int), 2433 "_Static_assert does not work in struct"); 2434 long int y; 2435 }; 2436 2437 // Check UTF-8 literals. 2438 #define u8 syntax error! 2439 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2440 2441 // Check duplicate typedefs. 2442 typedef long *long_ptr; 2443 typedef long int *long_ptr; 2444 typedef long_ptr long_ptr; 2445 2446 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2447 struct anonymous 2448 { 2449 union { 2450 struct { int i; int j; }; 2451 struct { int k; long int l; } w; 2452 }; 2453 int m; 2454 } v1; 2455 ' 2456 2457 # Test code for whether the C compiler supports C11 (body of main). 2458 ac_c_conftest_c11_main=' 2459 _Static_assert ((offsetof (struct anonymous, i) 2460 == offsetof (struct anonymous, w.k)), 2461 "Anonymous union alignment botch"); 2462 v1.i = 2; 2463 v1.w.k = 5; 2464 ok |= v1.i != 5; 2465 ' 2466 2467 # Test code for whether the C compiler supports C11 (complete). 2468 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2469 ${ac_c_conftest_c99_globals} 2470 ${ac_c_conftest_c11_globals} 2471 2472 int 2473 main (int argc, char **argv) 2474 { 2475 int ok = 0; 2476 ${ac_c_conftest_c89_main} 2477 ${ac_c_conftest_c99_main} 2478 ${ac_c_conftest_c11_main} 2479 return ok; 2480 } 2481 " 2482 2483 # Test code for whether the C compiler supports C99 (complete). 2484 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2485 ${ac_c_conftest_c99_globals} 2486 2487 int 2488 main (int argc, char **argv) 2489 { 2490 int ok = 0; 2491 ${ac_c_conftest_c89_main} 2492 ${ac_c_conftest_c99_main} 2493 return ok; 2494 } 2495 " 2496 2497 # Test code for whether the C compiler supports C89 (complete). 2498 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2499 2500 int 2501 main (int argc, char **argv) 2502 { 2503 int ok = 0; 2504 ${ac_c_conftest_c89_main} 2505 return ok; 2506 } 2507 " 2508 2509 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2510 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2511 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2512 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2513 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2514 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2515 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2516 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2517 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2518 2519 # Auxiliary files required by this configure script. 2520 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2521 2522 # Locations in which to look for auxiliary files. 2523 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2524 2525 # Search for a directory containing all of the required auxiliary files, 2526 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2527 # If we don't find one directory that contains all the files we need, 2528 # we report the set of missing files from the *first* directory in 2529 # $ac_aux_dir_candidates and give up. 2530 ac_missing_aux_files="" 2531 ac_first_candidate=: 2532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2534 as_found=false 2535 for as_dir in $ac_aux_dir_candidates 2536 do 2537 IFS=$as_save_IFS 2538 case $as_dir in #((( 2539 '') as_dir=./ ;; 2540 */) ;; 2541 *) as_dir=$as_dir/ ;; 2542 esac 2543 as_found=: 2544 2545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2546 ac_aux_dir_found=yes 2547 ac_install_sh= 2548 for ac_aux in $ac_aux_files 2549 do 2550 # As a special case, if "install-sh" is required, that requirement 2551 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2552 # and $ac_install_sh is set appropriately for whichever one is found. 2553 if test x"$ac_aux" = x"install-sh" 2554 then 2555 if test -f "${as_dir}install-sh"; then 2556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2557 ac_install_sh="${as_dir}install-sh -c" 2558 elif test -f "${as_dir}install.sh"; then 2559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2560 ac_install_sh="${as_dir}install.sh -c" 2561 elif test -f "${as_dir}shtool"; then 2562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2563 ac_install_sh="${as_dir}shtool install -c" 2564 else 2565 ac_aux_dir_found=no 2566 if $ac_first_candidate; then 2567 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2568 else 2569 break 2570 fi 2571 fi 2572 else 2573 if test -f "${as_dir}${ac_aux}"; then 2574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2575 else 2576 ac_aux_dir_found=no 2577 if $ac_first_candidate; then 2578 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2579 else 2580 break 2581 fi 2582 fi 2583 fi 2584 done 2585 if test "$ac_aux_dir_found" = yes; then 2586 ac_aux_dir="$as_dir" 2587 break 2588 fi 2589 ac_first_candidate=false 2590 2591 as_found=false 2592 done 2593 IFS=$as_save_IFS 2594 if $as_found 2595 then : 2596 2597 else case e in #( 2598 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2599 esac 2600 fi 2601 2602 2603 # These three variables are undocumented and unsupported, 2604 # and are intended to be withdrawn in a future Autoconf release. 2605 # They can cause serious problems if a builder's source tree is in a directory 2606 # whose full name contains unusual characters. 2607 if test -f "${ac_aux_dir}config.guess"; then 2608 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2609 fi 2610 if test -f "${ac_aux_dir}config.sub"; then 2611 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2612 fi 2613 if test -f "$ac_aux_dir/configure"; then 2614 ac_configure="$SHELL ${ac_aux_dir}configure" 2615 fi 2616 2617 # Check that the precious variables saved in the cache have kept the same 2618 # value. 2619 ac_cache_corrupted=false 2620 for ac_var in $ac_precious_vars; do 2621 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2622 eval ac_new_set=\$ac_env_${ac_var}_set 2623 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2624 eval ac_new_val=\$ac_env_${ac_var}_value 2625 case $ac_old_set,$ac_new_set in 2626 set,) 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2628 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2629 ac_cache_corrupted=: ;; 2630 ,set) 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2632 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2633 ac_cache_corrupted=: ;; 2634 ,);; 2635 *) 2636 if test "x$ac_old_val" != "x$ac_new_val"; then 2637 # differences in whitespace do not lead to failure. 2638 ac_old_val_w=`echo x $ac_old_val` 2639 ac_new_val_w=`echo x $ac_new_val` 2640 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2642 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2643 ac_cache_corrupted=: 2644 else 2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2646 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2647 eval $ac_var=\$ac_old_val 2648 fi 2649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2650 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2652 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2653 fi;; 2654 esac 2655 # Pass precious variables to config.status. 2656 if test "$ac_new_set" = set; then 2657 case $ac_new_val in 2658 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2659 *) ac_arg=$ac_var=$ac_new_val ;; 2660 esac 2661 case " $ac_configure_args " in 2662 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2663 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2664 esac 2665 fi 2666 done 2667 if $ac_cache_corrupted; then 2668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2669 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2671 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2672 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2673 and start over" "$LINENO" 5 2674 fi 2675 ## -------------------- ## 2676 ## Main body of script. ## 2677 ## -------------------- ## 2678 2679 ac_ext=c 2680 ac_cpp='$CPP $CPPFLAGS' 2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2684 2685 2686 2687 ac_config_headers="$ac_config_headers config.h" 2688 2689 2690 2691 # Initialize Automake 2692 am__api_version='1.16' 2693 2694 2695 2696 # Find a good install program. We prefer a C program (faster), 2697 # so one script is as good as another. But avoid the broken or 2698 # incompatible versions: 2699 # SysV /etc/install, /usr/sbin/install 2700 # SunOS /usr/etc/install 2701 # IRIX /sbin/install 2702 # AIX /bin/install 2703 # AmigaOS /C/install, which installs bootblocks on floppy discs 2704 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2705 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2706 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2707 # OS/2's system install, which has a completely different semantic 2708 # ./install, which can be erroneously created by make from ./install.sh. 2709 # Reject install programs that cannot install multiple files. 2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2711 printf %s "checking for a BSD-compatible install... " >&6; } 2712 if test -z "$INSTALL"; then 2713 if test ${ac_cv_path_install+y} 2714 then : 2715 printf %s "(cached) " >&6 2716 else case e in #( 2717 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718 for as_dir in $PATH 2719 do 2720 IFS=$as_save_IFS 2721 case $as_dir in #((( 2722 '') as_dir=./ ;; 2723 */) ;; 2724 *) as_dir=$as_dir/ ;; 2725 esac 2726 # Account for fact that we put trailing slashes in our PATH walk. 2727 case $as_dir in #(( 2728 ./ | /[cC]/* | \ 2729 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2730 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2731 /usr/ucb/* ) ;; 2732 *) 2733 # OSF1 and SCO ODT 3.0 have their own names for install. 2734 # Don't use installbsd from OSF since it installs stuff as root 2735 # by default. 2736 for ac_prog in ginstall scoinst install; do 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2739 if test $ac_prog = install && 2740 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2741 # AIX install. It has an incompatible calling convention. 2742 : 2743 elif test $ac_prog = install && 2744 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2745 # program-specific install script used by HP pwplus--don't use. 2746 : 2747 else 2748 rm -rf conftest.one conftest.two conftest.dir 2749 echo one > conftest.one 2750 echo two > conftest.two 2751 mkdir conftest.dir 2752 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2753 test -s conftest.one && test -s conftest.two && 2754 test -s conftest.dir/conftest.one && 2755 test -s conftest.dir/conftest.two 2756 then 2757 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2758 break 3 2759 fi 2760 fi 2761 fi 2762 done 2763 done 2764 ;; 2765 esac 2766 2767 done 2768 IFS=$as_save_IFS 2769 2770 rm -rf conftest.one conftest.two conftest.dir 2771 ;; 2772 esac 2773 fi 2774 if test ${ac_cv_path_install+y}; then 2775 INSTALL=$ac_cv_path_install 2776 else 2777 # As a last resort, use the slow shell script. Don't cache a 2778 # value for INSTALL within a source directory, because that will 2779 # break other packages using the cache if that directory is 2780 # removed, or if the value is a relative name. 2781 INSTALL=$ac_install_sh 2782 fi 2783 fi 2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2785 printf "%s\n" "$INSTALL" >&6; } 2786 2787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2788 # It thinks the first close brace ends the variable substitution. 2789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2790 2791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2792 2793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2794 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2796 printf %s "checking whether build environment is sane... " >&6; } 2797 # Reject unsafe characters in $srcdir or the absolute working directory 2798 # name. Accept space and tab only in the latter. 2799 am_lf=' 2800 ' 2801 case `pwd` in 2802 *[\\\"\#\$\&\'\`$am_lf]*) 2803 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2804 esac 2805 case $srcdir in 2806 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2807 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2808 esac 2809 2810 # Do 'set' in a subshell so we don't clobber the current shell's 2811 # arguments. Must try -L first in case configure is actually a 2812 # symlink; some systems play weird games with the mod time of symlinks 2813 # (eg FreeBSD returns the mod time of the symlink's containing 2814 # directory). 2815 if ( 2816 am_has_slept=no 2817 for am_try in 1 2; do 2818 echo "timestamp, slept: $am_has_slept" > conftest.file 2819 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2820 if test "$*" = "X"; then 2821 # -L didn't work. 2822 set X `ls -t "$srcdir/configure" conftest.file` 2823 fi 2824 if test "$*" != "X $srcdir/configure conftest.file" \ 2825 && test "$*" != "X conftest.file $srcdir/configure"; then 2826 2827 # If neither matched, then we have a broken ls. This can happen 2828 # if, for instance, CONFIG_SHELL is bash and it inherits a 2829 # broken ls alias from the environment. This has actually 2830 # happened. Such a system could not be considered "sane". 2831 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2832 alias in your environment" "$LINENO" 5 2833 fi 2834 if test "$2" = conftest.file || test $am_try -eq 2; then 2835 break 2836 fi 2837 # Just in case. 2838 sleep 1 2839 am_has_slept=yes 2840 done 2841 test "$2" = conftest.file 2842 ) 2843 then 2844 # Ok. 2845 : 2846 else 2847 as_fn_error $? "newly created file is older than distributed files! 2848 Check your system clock" "$LINENO" 5 2849 fi 2850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2851 printf "%s\n" "yes" >&6; } 2852 # If we didn't sleep, we still need to ensure time stamps of config.status and 2853 # generated files are strictly newer. 2854 am_sleep_pid= 2855 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2856 ( sleep 1 ) & 2857 am_sleep_pid=$! 2858 fi 2859 2860 rm -f conftest.file 2861 2862 test "$program_prefix" != NONE && 2863 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2864 # Use a double $ so make ignores it. 2865 test "$program_suffix" != NONE && 2866 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2867 # Double any \ or $. 2868 # By default was 's,x,x', remove it if useless. 2869 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2870 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2871 2872 2873 # Expand $ac_aux_dir to an absolute path. 2874 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2875 2876 2877 if test x"${MISSING+set}" != xset; then 2878 MISSING="\${SHELL} '$am_aux_dir/missing'" 2879 fi 2880 # Use eval to expand $SHELL 2881 if eval "$MISSING --is-lightweight"; then 2882 am_missing_run="$MISSING " 2883 else 2884 am_missing_run= 2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2886 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2887 fi 2888 2889 if test x"${install_sh+set}" != xset; then 2890 case $am_aux_dir in 2891 *\ * | *\ *) 2892 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2893 *) 2894 install_sh="\${SHELL} $am_aux_dir/install-sh" 2895 esac 2896 fi 2897 2898 # Installed binaries are usually stripped using 'strip' when the user 2899 # run "make install-strip". However 'strip' might not be the right 2900 # tool to use in cross-compilation environments, therefore Automake 2901 # will honor the 'STRIP' environment variable to overrule this program. 2902 if test "$cross_compiling" != no; then 2903 if test -n "$ac_tool_prefix"; then 2904 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2905 set dummy ${ac_tool_prefix}strip; ac_word=$2 2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2907 printf %s "checking for $ac_word... " >&6; } 2908 if test ${ac_cv_prog_STRIP+y} 2909 then : 2910 printf %s "(cached) " >&6 2911 else case e in #( 2912 e) if test -n "$STRIP"; then 2913 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2914 else 2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916 for as_dir in $PATH 2917 do 2918 IFS=$as_save_IFS 2919 case $as_dir in #((( 2920 '') as_dir=./ ;; 2921 */) ;; 2922 *) as_dir=$as_dir/ ;; 2923 esac 2924 for ac_exec_ext in '' $ac_executable_extensions; do 2925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2926 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2928 break 2 2929 fi 2930 done 2931 done 2932 IFS=$as_save_IFS 2933 2934 fi ;; 2935 esac 2936 fi 2937 STRIP=$ac_cv_prog_STRIP 2938 if test -n "$STRIP"; then 2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2940 printf "%s\n" "$STRIP" >&6; } 2941 else 2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943 printf "%s\n" "no" >&6; } 2944 fi 2945 2946 2947 fi 2948 if test -z "$ac_cv_prog_STRIP"; then 2949 ac_ct_STRIP=$STRIP 2950 # Extract the first word of "strip", so it can be a program name with args. 2951 set dummy strip; ac_word=$2 2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2953 printf %s "checking for $ac_word... " >&6; } 2954 if test ${ac_cv_prog_ac_ct_STRIP+y} 2955 then : 2956 printf %s "(cached) " >&6 2957 else case e in #( 2958 e) if test -n "$ac_ct_STRIP"; then 2959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2960 else 2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2962 for as_dir in $PATH 2963 do 2964 IFS=$as_save_IFS 2965 case $as_dir in #((( 2966 '') as_dir=./ ;; 2967 */) ;; 2968 *) as_dir=$as_dir/ ;; 2969 esac 2970 for ac_exec_ext in '' $ac_executable_extensions; do 2971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2972 ac_cv_prog_ac_ct_STRIP="strip" 2973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2974 break 2 2975 fi 2976 done 2977 done 2978 IFS=$as_save_IFS 2979 2980 fi ;; 2981 esac 2982 fi 2983 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2984 if test -n "$ac_ct_STRIP"; then 2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2986 printf "%s\n" "$ac_ct_STRIP" >&6; } 2987 else 2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2989 printf "%s\n" "no" >&6; } 2990 fi 2991 2992 if test "x$ac_ct_STRIP" = x; then 2993 STRIP=":" 2994 else 2995 case $cross_compiling:$ac_tool_warned in 2996 yes:) 2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2998 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2999 ac_tool_warned=yes ;; 3000 esac 3001 STRIP=$ac_ct_STRIP 3002 fi 3003 else 3004 STRIP="$ac_cv_prog_STRIP" 3005 fi 3006 3007 fi 3008 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3009 3010 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3012 printf %s "checking for a race-free mkdir -p... " >&6; } 3013 if test -z "$MKDIR_P"; then 3014 if test ${ac_cv_path_mkdir+y} 3015 then : 3016 printf %s "(cached) " >&6 3017 else case e in #( 3018 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3019 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3020 do 3021 IFS=$as_save_IFS 3022 case $as_dir in #((( 3023 '') as_dir=./ ;; 3024 */) ;; 3025 *) as_dir=$as_dir/ ;; 3026 esac 3027 for ac_prog in mkdir gmkdir; do 3028 for ac_exec_ext in '' $ac_executable_extensions; do 3029 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3030 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3031 'mkdir ('*'coreutils) '* | \ 3032 *'BusyBox '* | \ 3033 'mkdir (fileutils) '4.1*) 3034 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3035 break 3;; 3036 esac 3037 done 3038 done 3039 done 3040 IFS=$as_save_IFS 3041 ;; 3042 esac 3043 fi 3044 3045 test -d ./--version && rmdir ./--version 3046 if test ${ac_cv_path_mkdir+y}; then 3047 MKDIR_P="$ac_cv_path_mkdir -p" 3048 else 3049 # As a last resort, use plain mkdir -p, 3050 # in the hope it doesn't have the bugs of ancient mkdir. 3051 MKDIR_P='mkdir -p' 3052 fi 3053 fi 3054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3055 printf "%s\n" "$MKDIR_P" >&6; } 3056 3057 for ac_prog in gawk mawk nawk awk 3058 do 3059 # Extract the first word of "$ac_prog", so it can be a program name with args. 3060 set dummy $ac_prog; ac_word=$2 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062 printf %s "checking for $ac_word... " >&6; } 3063 if test ${ac_cv_prog_AWK+y} 3064 then : 3065 printf %s "(cached) " >&6 3066 else case e in #( 3067 e) if test -n "$AWK"; then 3068 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3069 else 3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071 for as_dir in $PATH 3072 do 3073 IFS=$as_save_IFS 3074 case $as_dir in #((( 3075 '') as_dir=./ ;; 3076 */) ;; 3077 *) as_dir=$as_dir/ ;; 3078 esac 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3081 ac_cv_prog_AWK="$ac_prog" 3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085 done 3086 done 3087 IFS=$as_save_IFS 3088 3089 fi ;; 3090 esac 3091 fi 3092 AWK=$ac_cv_prog_AWK 3093 if test -n "$AWK"; then 3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3095 printf "%s\n" "$AWK" >&6; } 3096 else 3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3098 printf "%s\n" "no" >&6; } 3099 fi 3100 3101 3102 test -n "$AWK" && break 3103 done 3104 3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3106 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3107 set x ${MAKE-make} 3108 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3109 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3110 then : 3111 printf %s "(cached) " >&6 3112 else case e in #( 3113 e) cat >conftest.make <<\_ACEOF 3114 SHELL = /bin/sh 3115 all: 3116 @echo '@@@%%%=$(MAKE)=@@@%%%' 3117 _ACEOF 3118 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3119 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3120 *@@@%%%=?*=@@@%%%*) 3121 eval ac_cv_prog_make_${ac_make}_set=yes;; 3122 *) 3123 eval ac_cv_prog_make_${ac_make}_set=no;; 3124 esac 3125 rm -f conftest.make ;; 3126 esac 3127 fi 3128 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3130 printf "%s\n" "yes" >&6; } 3131 SET_MAKE= 3132 else 3133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3134 printf "%s\n" "no" >&6; } 3135 SET_MAKE="MAKE=${MAKE-make}" 3136 fi 3137 3138 rm -rf .tst 2>/dev/null 3139 mkdir .tst 2>/dev/null 3140 if test -d .tst; then 3141 am__leading_dot=. 3142 else 3143 am__leading_dot=_ 3144 fi 3145 rmdir .tst 2>/dev/null 3146 3147 # Check whether --enable-silent-rules was given. 3148 if test ${enable_silent_rules+y} 3149 then : 3150 enableval=$enable_silent_rules; 3151 fi 3152 3153 case $enable_silent_rules in # ((( 3154 yes) AM_DEFAULT_VERBOSITY=0;; 3155 no) AM_DEFAULT_VERBOSITY=1;; 3156 *) AM_DEFAULT_VERBOSITY=1;; 3157 esac 3158 am_make=${MAKE-make} 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3160 printf %s "checking whether $am_make supports nested variables... " >&6; } 3161 if test ${am_cv_make_support_nested_variables+y} 3162 then : 3163 printf %s "(cached) " >&6 3164 else case e in #( 3165 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3166 BAR0=false 3167 BAR1=true 3168 V=1 3169 am__doit: 3170 @$(TRUE) 3171 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3172 am_cv_make_support_nested_variables=yes 3173 else 3174 am_cv_make_support_nested_variables=no 3175 fi ;; 3176 esac 3177 fi 3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3179 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3180 if test $am_cv_make_support_nested_variables = yes; then 3181 AM_V='$(V)' 3182 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3183 else 3184 AM_V=$AM_DEFAULT_VERBOSITY 3185 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3186 fi 3187 AM_BACKSLASH='\' 3188 3189 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3190 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3191 # is not polluted with repeated "-I." 3192 am__isrc=' -I$(srcdir)' 3193 # test to see if srcdir already configured 3194 if test -f $srcdir/config.status; then 3195 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3196 fi 3197 fi 3198 3199 # test whether we have cygpath 3200 if test -z "$CYGPATH_W"; then 3201 if (cygpath --version) >/dev/null 2>/dev/null; then 3202 CYGPATH_W='cygpath -w' 3203 else 3204 CYGPATH_W=echo 3205 fi 3206 fi 3207 3208 3209 # Define the identity of the package. 3210 PACKAGE='libXvMC' 3211 VERSION='1.0.14' 3212 3213 3214 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3215 3216 3217 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3218 3219 # Some tools Automake needs. 3220 3221 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3222 3223 3224 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3225 3226 3227 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3228 3229 3230 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3231 3232 3233 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3234 3235 # For better backward compatibility. To be removed once Automake 1.9.x 3236 # dies out for good. For more background, see: 3237 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3238 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3239 mkdir_p='$(MKDIR_P)' 3240 3241 # We need awk for the "check" target (and possibly the TAP driver). The 3242 # system "awk" is bad on some platforms. 3243 # Always define AMTAR for backward compatibility. Yes, it's still used 3244 # in the wild :-( We should find a proper way to deprecate it ... 3245 AMTAR='$${TAR-tar}' 3246 3247 3248 # We'll loop over all known methods to create a tar archive until one works. 3249 _am_tools='gnutar pax cpio none' 3250 3251 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3252 3253 3254 3255 3256 3257 # Variables for tags utilities; see am/tags.am 3258 if test -z "$CTAGS"; then 3259 CTAGS=ctags 3260 fi 3261 3262 if test -z "$ETAGS"; then 3263 ETAGS=etags 3264 fi 3265 3266 if test -z "$CSCOPE"; then 3267 CSCOPE=cscope 3268 fi 3269 3270 3271 3272 # POSIX will say in a future version that running "rm -f" with no argument 3273 # is OK; and we want to be able to make that assumption in our Makefile 3274 # recipes. So use an aggressive probe to check that the usage we want is 3275 # actually supported "in the wild" to an acceptable degree. 3276 # See automake bug#10828. 3277 # To make any issue more visible, cause the running configure to be aborted 3278 # by default if the 'rm' program in use doesn't match our expectations; the 3279 # user can still override this though. 3280 if rm -f && rm -fr && rm -rf; then : OK; else 3281 cat >&2 <<'END' 3282 Oops! 3283 3284 Your 'rm' program seems unable to run without file operands specified 3285 on the command line, even when the '-f' option is present. This is contrary 3286 to the behaviour of most rm programs out there, and not conforming with 3287 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3288 3289 Please tell bug-automake@gnu.org about your system, including the value 3290 of your $PATH and any error possibly output before this message. This 3291 can help us improve future automake versions. 3292 3293 END 3294 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3295 echo 'Configuration will proceed anyway, since you have set the' >&2 3296 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3297 echo >&2 3298 else 3299 cat >&2 <<'END' 3300 Aborting the configuration process, to ensure you take notice of the issue. 3301 3302 You can download and install GNU coreutils to get an 'rm' implementation 3303 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3304 3305 If you want to complete the configuration process using your problematic 3306 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3307 to "yes", and re-run configure. 3308 3309 END 3310 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3311 fi 3312 fi 3313 3314 3315 # Initialize libtool 3316 case `pwd` in 3317 *\ * | *\ *) 3318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3319 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3320 esac 3321 3322 3323 3324 macro_version='2.4.7' 3325 macro_revision='2.4.7' 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 ltmain=$ac_aux_dir/ltmain.sh 3341 3342 3343 3344 # Make sure we can run config.sub. 3345 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3346 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3347 3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3349 printf %s "checking build system type... " >&6; } 3350 if test ${ac_cv_build+y} 3351 then : 3352 printf %s "(cached) " >&6 3353 else case e in #( 3354 e) ac_build_alias=$build_alias 3355 test "x$ac_build_alias" = x && 3356 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3357 test "x$ac_build_alias" = x && 3358 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3359 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3360 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3361 ;; 3362 esac 3363 fi 3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3365 printf "%s\n" "$ac_cv_build" >&6; } 3366 case $ac_cv_build in 3367 *-*-*) ;; 3368 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3369 esac 3370 build=$ac_cv_build 3371 ac_save_IFS=$IFS; IFS='-' 3372 set x $ac_cv_build 3373 shift 3374 build_cpu=$1 3375 build_vendor=$2 3376 shift; shift 3377 # Remember, the first character of IFS is used to create $*, 3378 # except with old shells: 3379 build_os=$* 3380 IFS=$ac_save_IFS 3381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3382 3383 3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3385 printf %s "checking host system type... " >&6; } 3386 if test ${ac_cv_host+y} 3387 then : 3388 printf %s "(cached) " >&6 3389 else case e in #( 3390 e) if test "x$host_alias" = x; then 3391 ac_cv_host=$ac_cv_build 3392 else 3393 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3394 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3395 fi 3396 ;; 3397 esac 3398 fi 3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3400 printf "%s\n" "$ac_cv_host" >&6; } 3401 case $ac_cv_host in 3402 *-*-*) ;; 3403 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3404 esac 3405 host=$ac_cv_host 3406 ac_save_IFS=$IFS; IFS='-' 3407 set x $ac_cv_host 3408 shift 3409 host_cpu=$1 3410 host_vendor=$2 3411 shift; shift 3412 # Remember, the first character of IFS is used to create $*, 3413 # except with old shells: 3414 host_os=$* 3415 IFS=$ac_save_IFS 3416 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3417 3418 3419 # Backslashify metacharacters that are still active within 3420 # double-quoted strings. 3421 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3422 3423 # Same as above, but do not quote variable references. 3424 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3425 3426 # Sed substitution to delay expansion of an escaped shell variable in a 3427 # double_quote_subst'ed string. 3428 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3429 3430 # Sed substitution to delay expansion of an escaped single quote. 3431 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3432 3433 # Sed substitution to avoid accidental globbing in evaled expressions 3434 no_glob_subst='s/\*/\\\*/g' 3435 3436 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3437 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3438 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3439 3440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3441 printf %s "checking how to print strings... " >&6; } 3442 # Test print first, because it will be a builtin if present. 3443 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3444 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3445 ECHO='print -r --' 3446 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3447 ECHO='printf %s\n' 3448 else 3449 # Use this function as a fallback that always works. 3450 func_fallback_echo () 3451 { 3452 eval 'cat <<_LTECHO_EOF 3453 $1 3454 _LTECHO_EOF' 3455 } 3456 ECHO='func_fallback_echo' 3457 fi 3458 3459 # func_echo_all arg... 3460 # Invoke $ECHO with all args, space-separated. 3461 func_echo_all () 3462 { 3463 $ECHO "" 3464 } 3465 3466 case $ECHO in 3467 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3468 printf "%s\n" "printf" >&6; } ;; 3469 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3470 printf "%s\n" "print -r" >&6; } ;; 3471 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3472 printf "%s\n" "cat" >&6; } ;; 3473 esac 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 DEPDIR="${am__leading_dot}deps" 3498 3499 ac_config_commands="$ac_config_commands depfiles" 3500 3501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3502 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3503 cat > confinc.mk << 'END' 3504 am__doit: 3505 @echo this is the am__doit target >confinc.out 3506 .PHONY: am__doit 3507 END 3508 am__include="#" 3509 am__quote= 3510 # BSD make does it like this. 3511 echo '.include "confinc.mk" # ignored' > confmf.BSD 3512 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3513 echo 'include confinc.mk # ignored' > confmf.GNU 3514 _am_result=no 3515 for s in GNU BSD; do 3516 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3517 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3518 ac_status=$? 3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3520 (exit $ac_status); } 3521 case $?:`cat confinc.out 2>/dev/null` in #( 3522 '0:this is the am__doit target') : 3523 case $s in #( 3524 BSD) : 3525 am__include='.include' am__quote='"' ;; #( 3526 *) : 3527 am__include='include' am__quote='' ;; 3528 esac ;; #( 3529 *) : 3530 ;; 3531 esac 3532 if test "$am__include" != "#"; then 3533 _am_result="yes ($s style)" 3534 break 3535 fi 3536 done 3537 rm -f confinc.* confmf.* 3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3539 printf "%s\n" "${_am_result}" >&6; } 3540 3541 # Check whether --enable-dependency-tracking was given. 3542 if test ${enable_dependency_tracking+y} 3543 then : 3544 enableval=$enable_dependency_tracking; 3545 fi 3546 3547 if test "x$enable_dependency_tracking" != xno; then 3548 am_depcomp="$ac_aux_dir/depcomp" 3549 AMDEPBACKSLASH='\' 3550 am__nodep='_no' 3551 fi 3552 if test "x$enable_dependency_tracking" != xno; then 3553 AMDEP_TRUE= 3554 AMDEP_FALSE='#' 3555 else 3556 AMDEP_TRUE='#' 3557 AMDEP_FALSE= 3558 fi 3559 3560 3561 ac_ext=c 3562 ac_cpp='$CPP $CPPFLAGS' 3563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566 if test -n "$ac_tool_prefix"; then 3567 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3568 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3570 printf %s "checking for $ac_word... " >&6; } 3571 if test ${ac_cv_prog_CC+y} 3572 then : 3573 printf %s "(cached) " >&6 3574 else case e in #( 3575 e) if test -n "$CC"; then 3576 ac_cv_prog_CC="$CC" # Let the user override the test. 3577 else 3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3579 for as_dir in $PATH 3580 do 3581 IFS=$as_save_IFS 3582 case $as_dir in #((( 3583 '') as_dir=./ ;; 3584 */) ;; 3585 *) as_dir=$as_dir/ ;; 3586 esac 3587 for ac_exec_ext in '' $ac_executable_extensions; do 3588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3589 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3591 break 2 3592 fi 3593 done 3594 done 3595 IFS=$as_save_IFS 3596 3597 fi ;; 3598 esac 3599 fi 3600 CC=$ac_cv_prog_CC 3601 if test -n "$CC"; then 3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3603 printf "%s\n" "$CC" >&6; } 3604 else 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3606 printf "%s\n" "no" >&6; } 3607 fi 3608 3609 3610 fi 3611 if test -z "$ac_cv_prog_CC"; then 3612 ac_ct_CC=$CC 3613 # Extract the first word of "gcc", so it can be a program name with args. 3614 set dummy gcc; ac_word=$2 3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3616 printf %s "checking for $ac_word... " >&6; } 3617 if test ${ac_cv_prog_ac_ct_CC+y} 3618 then : 3619 printf %s "(cached) " >&6 3620 else case e in #( 3621 e) if test -n "$ac_ct_CC"; then 3622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3623 else 3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3625 for as_dir in $PATH 3626 do 3627 IFS=$as_save_IFS 3628 case $as_dir in #((( 3629 '') as_dir=./ ;; 3630 */) ;; 3631 *) as_dir=$as_dir/ ;; 3632 esac 3633 for ac_exec_ext in '' $ac_executable_extensions; do 3634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3635 ac_cv_prog_ac_ct_CC="gcc" 3636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3637 break 2 3638 fi 3639 done 3640 done 3641 IFS=$as_save_IFS 3642 3643 fi ;; 3644 esac 3645 fi 3646 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3647 if test -n "$ac_ct_CC"; then 3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3649 printf "%s\n" "$ac_ct_CC" >&6; } 3650 else 3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3652 printf "%s\n" "no" >&6; } 3653 fi 3654 3655 if test "x$ac_ct_CC" = x; then 3656 CC="" 3657 else 3658 case $cross_compiling:$ac_tool_warned in 3659 yes:) 3660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3661 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3662 ac_tool_warned=yes ;; 3663 esac 3664 CC=$ac_ct_CC 3665 fi 3666 else 3667 CC="$ac_cv_prog_CC" 3668 fi 3669 3670 if test -z "$CC"; then 3671 if test -n "$ac_tool_prefix"; then 3672 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3673 set dummy ${ac_tool_prefix}cc; ac_word=$2 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3675 printf %s "checking for $ac_word... " >&6; } 3676 if test ${ac_cv_prog_CC+y} 3677 then : 3678 printf %s "(cached) " >&6 3679 else case e in #( 3680 e) if test -n "$CC"; then 3681 ac_cv_prog_CC="$CC" # Let the user override the test. 3682 else 3683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3684 for as_dir in $PATH 3685 do 3686 IFS=$as_save_IFS 3687 case $as_dir in #((( 3688 '') as_dir=./ ;; 3689 */) ;; 3690 *) as_dir=$as_dir/ ;; 3691 esac 3692 for ac_exec_ext in '' $ac_executable_extensions; do 3693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3694 ac_cv_prog_CC="${ac_tool_prefix}cc" 3695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3696 break 2 3697 fi 3698 done 3699 done 3700 IFS=$as_save_IFS 3701 3702 fi ;; 3703 esac 3704 fi 3705 CC=$ac_cv_prog_CC 3706 if test -n "$CC"; then 3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3708 printf "%s\n" "$CC" >&6; } 3709 else 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3711 printf "%s\n" "no" >&6; } 3712 fi 3713 3714 3715 fi 3716 fi 3717 if test -z "$CC"; then 3718 # Extract the first word of "cc", so it can be a program name with args. 3719 set dummy cc; ac_word=$2 3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721 printf %s "checking for $ac_word... " >&6; } 3722 if test ${ac_cv_prog_CC+y} 3723 then : 3724 printf %s "(cached) " >&6 3725 else case e in #( 3726 e) if test -n "$CC"; then 3727 ac_cv_prog_CC="$CC" # Let the user override the test. 3728 else 3729 ac_prog_rejected=no 3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3731 for as_dir in $PATH 3732 do 3733 IFS=$as_save_IFS 3734 case $as_dir in #((( 3735 '') as_dir=./ ;; 3736 */) ;; 3737 *) as_dir=$as_dir/ ;; 3738 esac 3739 for ac_exec_ext in '' $ac_executable_extensions; do 3740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3741 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3742 ac_prog_rejected=yes 3743 continue 3744 fi 3745 ac_cv_prog_CC="cc" 3746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3747 break 2 3748 fi 3749 done 3750 done 3751 IFS=$as_save_IFS 3752 3753 if test $ac_prog_rejected = yes; then 3754 # We found a bogon in the path, so make sure we never use it. 3755 set dummy $ac_cv_prog_CC 3756 shift 3757 if test $# != 0; then 3758 # We chose a different compiler from the bogus one. 3759 # However, it has the same basename, so the bogon will be chosen 3760 # first if we set CC to just the basename; use the full file name. 3761 shift 3762 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3763 fi 3764 fi 3765 fi ;; 3766 esac 3767 fi 3768 CC=$ac_cv_prog_CC 3769 if test -n "$CC"; then 3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3771 printf "%s\n" "$CC" >&6; } 3772 else 3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3774 printf "%s\n" "no" >&6; } 3775 fi 3776 3777 3778 fi 3779 if test -z "$CC"; then 3780 if test -n "$ac_tool_prefix"; then 3781 for ac_prog in cl.exe 3782 do 3783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3786 printf %s "checking for $ac_word... " >&6; } 3787 if test ${ac_cv_prog_CC+y} 3788 then : 3789 printf %s "(cached) " >&6 3790 else case e in #( 3791 e) if test -n "$CC"; then 3792 ac_cv_prog_CC="$CC" # Let the user override the test. 3793 else 3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3795 for as_dir in $PATH 3796 do 3797 IFS=$as_save_IFS 3798 case $as_dir in #((( 3799 '') as_dir=./ ;; 3800 */) ;; 3801 *) as_dir=$as_dir/ ;; 3802 esac 3803 for ac_exec_ext in '' $ac_executable_extensions; do 3804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3807 break 2 3808 fi 3809 done 3810 done 3811 IFS=$as_save_IFS 3812 3813 fi ;; 3814 esac 3815 fi 3816 CC=$ac_cv_prog_CC 3817 if test -n "$CC"; then 3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3819 printf "%s\n" "$CC" >&6; } 3820 else 3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3822 printf "%s\n" "no" >&6; } 3823 fi 3824 3825 3826 test -n "$CC" && break 3827 done 3828 fi 3829 if test -z "$CC"; then 3830 ac_ct_CC=$CC 3831 for ac_prog in cl.exe 3832 do 3833 # Extract the first word of "$ac_prog", so it can be a program name with args. 3834 set dummy $ac_prog; ac_word=$2 3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3836 printf %s "checking for $ac_word... " >&6; } 3837 if test ${ac_cv_prog_ac_ct_CC+y} 3838 then : 3839 printf %s "(cached) " >&6 3840 else case e in #( 3841 e) if test -n "$ac_ct_CC"; then 3842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3843 else 3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3845 for as_dir in $PATH 3846 do 3847 IFS=$as_save_IFS 3848 case $as_dir in #((( 3849 '') as_dir=./ ;; 3850 */) ;; 3851 *) as_dir=$as_dir/ ;; 3852 esac 3853 for ac_exec_ext in '' $ac_executable_extensions; do 3854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3855 ac_cv_prog_ac_ct_CC="$ac_prog" 3856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3857 break 2 3858 fi 3859 done 3860 done 3861 IFS=$as_save_IFS 3862 3863 fi ;; 3864 esac 3865 fi 3866 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3867 if test -n "$ac_ct_CC"; then 3868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3869 printf "%s\n" "$ac_ct_CC" >&6; } 3870 else 3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3872 printf "%s\n" "no" >&6; } 3873 fi 3874 3875 3876 test -n "$ac_ct_CC" && break 3877 done 3878 3879 if test "x$ac_ct_CC" = x; then 3880 CC="" 3881 else 3882 case $cross_compiling:$ac_tool_warned in 3883 yes:) 3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3885 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3886 ac_tool_warned=yes ;; 3887 esac 3888 CC=$ac_ct_CC 3889 fi 3890 fi 3891 3892 fi 3893 if test -z "$CC"; then 3894 if test -n "$ac_tool_prefix"; then 3895 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3896 set dummy ${ac_tool_prefix}clang; ac_word=$2 3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3898 printf %s "checking for $ac_word... " >&6; } 3899 if test ${ac_cv_prog_CC+y} 3900 then : 3901 printf %s "(cached) " >&6 3902 else case e in #( 3903 e) if test -n "$CC"; then 3904 ac_cv_prog_CC="$CC" # Let the user override the test. 3905 else 3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3907 for as_dir in $PATH 3908 do 3909 IFS=$as_save_IFS 3910 case $as_dir in #((( 3911 '') as_dir=./ ;; 3912 */) ;; 3913 *) as_dir=$as_dir/ ;; 3914 esac 3915 for ac_exec_ext in '' $ac_executable_extensions; do 3916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3917 ac_cv_prog_CC="${ac_tool_prefix}clang" 3918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3919 break 2 3920 fi 3921 done 3922 done 3923 IFS=$as_save_IFS 3924 3925 fi ;; 3926 esac 3927 fi 3928 CC=$ac_cv_prog_CC 3929 if test -n "$CC"; then 3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3931 printf "%s\n" "$CC" >&6; } 3932 else 3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3934 printf "%s\n" "no" >&6; } 3935 fi 3936 3937 3938 fi 3939 if test -z "$ac_cv_prog_CC"; then 3940 ac_ct_CC=$CC 3941 # Extract the first word of "clang", so it can be a program name with args. 3942 set dummy clang; ac_word=$2 3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3944 printf %s "checking for $ac_word... " >&6; } 3945 if test ${ac_cv_prog_ac_ct_CC+y} 3946 then : 3947 printf %s "(cached) " >&6 3948 else case e in #( 3949 e) if test -n "$ac_ct_CC"; then 3950 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3951 else 3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3953 for as_dir in $PATH 3954 do 3955 IFS=$as_save_IFS 3956 case $as_dir in #((( 3957 '') as_dir=./ ;; 3958 */) ;; 3959 *) as_dir=$as_dir/ ;; 3960 esac 3961 for ac_exec_ext in '' $ac_executable_extensions; do 3962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3963 ac_cv_prog_ac_ct_CC="clang" 3964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3965 break 2 3966 fi 3967 done 3968 done 3969 IFS=$as_save_IFS 3970 3971 fi ;; 3972 esac 3973 fi 3974 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3975 if test -n "$ac_ct_CC"; then 3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3977 printf "%s\n" "$ac_ct_CC" >&6; } 3978 else 3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3980 printf "%s\n" "no" >&6; } 3981 fi 3982 3983 if test "x$ac_ct_CC" = x; then 3984 CC="" 3985 else 3986 case $cross_compiling:$ac_tool_warned in 3987 yes:) 3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3989 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3990 ac_tool_warned=yes ;; 3991 esac 3992 CC=$ac_ct_CC 3993 fi 3994 else 3995 CC="$ac_cv_prog_CC" 3996 fi 3997 3998 fi 3999 4000 4001 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4002 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4003 as_fn_error $? "no acceptable C compiler found in \$PATH 4004 See 'config.log' for more details" "$LINENO" 5; } 4005 4006 # Provide some information about the compiler. 4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4008 set X $ac_compile 4009 ac_compiler=$2 4010 for ac_option in --version -v -V -qversion -version; do 4011 { { ac_try="$ac_compiler $ac_option >&5" 4012 case "(($ac_try" in 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014 *) ac_try_echo=$ac_try;; 4015 esac 4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4017 printf "%s\n" "$ac_try_echo"; } >&5 4018 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4019 ac_status=$? 4020 if test -s conftest.err; then 4021 sed '10a\ 4022 ... rest of stderr output deleted ... 4023 10q' conftest.err >conftest.er1 4024 cat conftest.er1 >&5 4025 fi 4026 rm -f conftest.er1 conftest.err 4027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4028 test $ac_status = 0; } 4029 done 4030 4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4032 /* end confdefs.h. */ 4033 4034 int 4035 main (void) 4036 { 4037 4038 ; 4039 return 0; 4040 } 4041 _ACEOF 4042 ac_clean_files_save=$ac_clean_files 4043 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4044 # Try to create an executable without -o first, disregard a.out. 4045 # It will help us diagnose broken compilers, and finding out an intuition 4046 # of exeext. 4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4048 printf %s "checking whether the C compiler works... " >&6; } 4049 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4050 4051 # The possible output files: 4052 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4053 4054 ac_rmfiles= 4055 for ac_file in $ac_files 4056 do 4057 case $ac_file in 4058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4059 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4060 esac 4061 done 4062 rm -f $ac_rmfiles 4063 4064 if { { ac_try="$ac_link_default" 4065 case "(($ac_try" in 4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4067 *) ac_try_echo=$ac_try;; 4068 esac 4069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4070 printf "%s\n" "$ac_try_echo"; } >&5 4071 (eval "$ac_link_default") 2>&5 4072 ac_status=$? 4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4074 test $ac_status = 0; } 4075 then : 4076 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4077 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4078 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4079 # so that the user can short-circuit this test for compilers unknown to 4080 # Autoconf. 4081 for ac_file in $ac_files '' 4082 do 4083 test -f "$ac_file" || continue 4084 case $ac_file in 4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4086 ;; 4087 [ab].out ) 4088 # We found the default executable, but exeext='' is most 4089 # certainly right. 4090 break;; 4091 *.* ) 4092 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4093 then :; else 4094 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4095 fi 4096 # We set ac_cv_exeext here because the later test for it is not 4097 # safe: cross compilers may not add the suffix if given an '-o' 4098 # argument, so we may need to know it at that point already. 4099 # Even if this section looks crufty: it has the advantage of 4100 # actually working. 4101 break;; 4102 * ) 4103 break;; 4104 esac 4105 done 4106 test "$ac_cv_exeext" = no && ac_cv_exeext= 4107 4108 else case e in #( 4109 e) ac_file='' ;; 4110 esac 4111 fi 4112 if test -z "$ac_file" 4113 then : 4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4115 printf "%s\n" "no" >&6; } 4116 printf "%s\n" "$as_me: failed program was:" >&5 4117 sed 's/^/| /' conftest.$ac_ext >&5 4118 4119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4120 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4121 as_fn_error 77 "C compiler cannot create executables 4122 See 'config.log' for more details" "$LINENO" 5; } 4123 else case e in #( 4124 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4125 printf "%s\n" "yes" >&6; } ;; 4126 esac 4127 fi 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4129 printf %s "checking for C compiler default output file name... " >&6; } 4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4131 printf "%s\n" "$ac_file" >&6; } 4132 ac_exeext=$ac_cv_exeext 4133 4134 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4135 ac_clean_files=$ac_clean_files_save 4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4137 printf %s "checking for suffix of executables... " >&6; } 4138 if { { ac_try="$ac_link" 4139 case "(($ac_try" in 4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4141 *) ac_try_echo=$ac_try;; 4142 esac 4143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4144 printf "%s\n" "$ac_try_echo"; } >&5 4145 (eval "$ac_link") 2>&5 4146 ac_status=$? 4147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4148 test $ac_status = 0; } 4149 then : 4150 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4151 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4152 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4153 # 'rm'. 4154 for ac_file in conftest.exe conftest conftest.*; do 4155 test -f "$ac_file" || continue 4156 case $ac_file in 4157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4158 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4159 break;; 4160 * ) break;; 4161 esac 4162 done 4163 else case e in #( 4164 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4165 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4166 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4167 See 'config.log' for more details" "$LINENO" 5; } ;; 4168 esac 4169 fi 4170 rm -f conftest conftest$ac_cv_exeext 4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4172 printf "%s\n" "$ac_cv_exeext" >&6; } 4173 4174 rm -f conftest.$ac_ext 4175 EXEEXT=$ac_cv_exeext 4176 ac_exeext=$EXEEXT 4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178 /* end confdefs.h. */ 4179 #include <stdio.h> 4180 int 4181 main (void) 4182 { 4183 FILE *f = fopen ("conftest.out", "w"); 4184 if (!f) 4185 return 1; 4186 return ferror (f) || fclose (f) != 0; 4187 4188 ; 4189 return 0; 4190 } 4191 _ACEOF 4192 ac_clean_files="$ac_clean_files conftest.out" 4193 # Check that the compiler produces executables we can run. If not, either 4194 # the compiler is broken, or we cross compile. 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4196 printf %s "checking whether we are cross compiling... " >&6; } 4197 if test "$cross_compiling" != yes; then 4198 { { ac_try="$ac_link" 4199 case "(($ac_try" in 4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4201 *) ac_try_echo=$ac_try;; 4202 esac 4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4204 printf "%s\n" "$ac_try_echo"; } >&5 4205 (eval "$ac_link") 2>&5 4206 ac_status=$? 4207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4208 test $ac_status = 0; } 4209 if { ac_try='./conftest$ac_cv_exeext' 4210 { { case "(($ac_try" in 4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4212 *) ac_try_echo=$ac_try;; 4213 esac 4214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4215 printf "%s\n" "$ac_try_echo"; } >&5 4216 (eval "$ac_try") 2>&5 4217 ac_status=$? 4218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4219 test $ac_status = 0; }; }; then 4220 cross_compiling=no 4221 else 4222 if test "$cross_compiling" = maybe; then 4223 cross_compiling=yes 4224 else 4225 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4226 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4227 as_fn_error 77 "cannot run C compiled programs. 4228 If you meant to cross compile, use '--host'. 4229 See 'config.log' for more details" "$LINENO" 5; } 4230 fi 4231 fi 4232 fi 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4234 printf "%s\n" "$cross_compiling" >&6; } 4235 4236 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4237 conftest.o conftest.obj conftest.out 4238 ac_clean_files=$ac_clean_files_save 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4240 printf %s "checking for suffix of object files... " >&6; } 4241 if test ${ac_cv_objext+y} 4242 then : 4243 printf %s "(cached) " >&6 4244 else case e in #( 4245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246 /* end confdefs.h. */ 4247 4248 int 4249 main (void) 4250 { 4251 4252 ; 4253 return 0; 4254 } 4255 _ACEOF 4256 rm -f conftest.o conftest.obj 4257 if { { ac_try="$ac_compile" 4258 case "(($ac_try" in 4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4260 *) ac_try_echo=$ac_try;; 4261 esac 4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4263 printf "%s\n" "$ac_try_echo"; } >&5 4264 (eval "$ac_compile") 2>&5 4265 ac_status=$? 4266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4267 test $ac_status = 0; } 4268 then : 4269 for ac_file in conftest.o conftest.obj conftest.*; do 4270 test -f "$ac_file" || continue; 4271 case $ac_file in 4272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4274 break;; 4275 esac 4276 done 4277 else case e in #( 4278 e) printf "%s\n" "$as_me: failed program was:" >&5 4279 sed 's/^/| /' conftest.$ac_ext >&5 4280 4281 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4282 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4283 as_fn_error $? "cannot compute suffix of object files: cannot compile 4284 See 'config.log' for more details" "$LINENO" 5; } ;; 4285 esac 4286 fi 4287 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4288 esac 4289 fi 4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4291 printf "%s\n" "$ac_cv_objext" >&6; } 4292 OBJEXT=$ac_cv_objext 4293 ac_objext=$OBJEXT 4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4295 printf %s "checking whether the compiler supports GNU C... " >&6; } 4296 if test ${ac_cv_c_compiler_gnu+y} 4297 then : 4298 printf %s "(cached) " >&6 4299 else case e in #( 4300 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4301 /* end confdefs.h. */ 4302 4303 int 4304 main (void) 4305 { 4306 #ifndef __GNUC__ 4307 choke me 4308 #endif 4309 4310 ; 4311 return 0; 4312 } 4313 _ACEOF 4314 if ac_fn_c_try_compile "$LINENO" 4315 then : 4316 ac_compiler_gnu=yes 4317 else case e in #( 4318 e) ac_compiler_gnu=no ;; 4319 esac 4320 fi 4321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4322 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4323 ;; 4324 esac 4325 fi 4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4327 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4329 4330 if test $ac_compiler_gnu = yes; then 4331 GCC=yes 4332 else 4333 GCC= 4334 fi 4335 ac_test_CFLAGS=${CFLAGS+y} 4336 ac_save_CFLAGS=$CFLAGS 4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4338 printf %s "checking whether $CC accepts -g... " >&6; } 4339 if test ${ac_cv_prog_cc_g+y} 4340 then : 4341 printf %s "(cached) " >&6 4342 else case e in #( 4343 e) ac_save_c_werror_flag=$ac_c_werror_flag 4344 ac_c_werror_flag=yes 4345 ac_cv_prog_cc_g=no 4346 CFLAGS="-g" 4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4348 /* end confdefs.h. */ 4349 4350 int 4351 main (void) 4352 { 4353 4354 ; 4355 return 0; 4356 } 4357 _ACEOF 4358 if ac_fn_c_try_compile "$LINENO" 4359 then : 4360 ac_cv_prog_cc_g=yes 4361 else case e in #( 4362 e) CFLAGS="" 4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4364 /* end confdefs.h. */ 4365 4366 int 4367 main (void) 4368 { 4369 4370 ; 4371 return 0; 4372 } 4373 _ACEOF 4374 if ac_fn_c_try_compile "$LINENO" 4375 then : 4376 4377 else case e in #( 4378 e) ac_c_werror_flag=$ac_save_c_werror_flag 4379 CFLAGS="-g" 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4381 /* end confdefs.h. */ 4382 4383 int 4384 main (void) 4385 { 4386 4387 ; 4388 return 0; 4389 } 4390 _ACEOF 4391 if ac_fn_c_try_compile "$LINENO" 4392 then : 4393 ac_cv_prog_cc_g=yes 4394 fi 4395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4396 esac 4397 fi 4398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4399 esac 4400 fi 4401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4402 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4403 esac 4404 fi 4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4406 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4407 if test $ac_test_CFLAGS; then 4408 CFLAGS=$ac_save_CFLAGS 4409 elif test $ac_cv_prog_cc_g = yes; then 4410 if test "$GCC" = yes; then 4411 CFLAGS="-g -O2" 4412 else 4413 CFLAGS="-g" 4414 fi 4415 else 4416 if test "$GCC" = yes; then 4417 CFLAGS="-O2" 4418 else 4419 CFLAGS= 4420 fi 4421 fi 4422 ac_prog_cc_stdc=no 4423 if test x$ac_prog_cc_stdc = xno 4424 then : 4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4426 printf %s "checking for $CC option to enable C11 features... " >&6; } 4427 if test ${ac_cv_prog_cc_c11+y} 4428 then : 4429 printf %s "(cached) " >&6 4430 else case e in #( 4431 e) ac_cv_prog_cc_c11=no 4432 ac_save_CC=$CC 4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434 /* end confdefs.h. */ 4435 $ac_c_conftest_c11_program 4436 _ACEOF 4437 for ac_arg in '' -std=gnu11 4438 do 4439 CC="$ac_save_CC $ac_arg" 4440 if ac_fn_c_try_compile "$LINENO" 4441 then : 4442 ac_cv_prog_cc_c11=$ac_arg 4443 fi 4444 rm -f core conftest.err conftest.$ac_objext conftest.beam 4445 test "x$ac_cv_prog_cc_c11" != "xno" && break 4446 done 4447 rm -f conftest.$ac_ext 4448 CC=$ac_save_CC ;; 4449 esac 4450 fi 4451 4452 if test "x$ac_cv_prog_cc_c11" = xno 4453 then : 4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4455 printf "%s\n" "unsupported" >&6; } 4456 else case e in #( 4457 e) if test "x$ac_cv_prog_cc_c11" = x 4458 then : 4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4460 printf "%s\n" "none needed" >&6; } 4461 else case e in #( 4462 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4463 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4464 CC="$CC $ac_cv_prog_cc_c11" ;; 4465 esac 4466 fi 4467 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4468 ac_prog_cc_stdc=c11 ;; 4469 esac 4470 fi 4471 fi 4472 if test x$ac_prog_cc_stdc = xno 4473 then : 4474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4475 printf %s "checking for $CC option to enable C99 features... " >&6; } 4476 if test ${ac_cv_prog_cc_c99+y} 4477 then : 4478 printf %s "(cached) " >&6 4479 else case e in #( 4480 e) ac_cv_prog_cc_c99=no 4481 ac_save_CC=$CC 4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4483 /* end confdefs.h. */ 4484 $ac_c_conftest_c99_program 4485 _ACEOF 4486 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4487 do 4488 CC="$ac_save_CC $ac_arg" 4489 if ac_fn_c_try_compile "$LINENO" 4490 then : 4491 ac_cv_prog_cc_c99=$ac_arg 4492 fi 4493 rm -f core conftest.err conftest.$ac_objext conftest.beam 4494 test "x$ac_cv_prog_cc_c99" != "xno" && break 4495 done 4496 rm -f conftest.$ac_ext 4497 CC=$ac_save_CC ;; 4498 esac 4499 fi 4500 4501 if test "x$ac_cv_prog_cc_c99" = xno 4502 then : 4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4504 printf "%s\n" "unsupported" >&6; } 4505 else case e in #( 4506 e) if test "x$ac_cv_prog_cc_c99" = x 4507 then : 4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4509 printf "%s\n" "none needed" >&6; } 4510 else case e in #( 4511 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4512 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4513 CC="$CC $ac_cv_prog_cc_c99" ;; 4514 esac 4515 fi 4516 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4517 ac_prog_cc_stdc=c99 ;; 4518 esac 4519 fi 4520 fi 4521 if test x$ac_prog_cc_stdc = xno 4522 then : 4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4524 printf %s "checking for $CC option to enable C89 features... " >&6; } 4525 if test ${ac_cv_prog_cc_c89+y} 4526 then : 4527 printf %s "(cached) " >&6 4528 else case e in #( 4529 e) ac_cv_prog_cc_c89=no 4530 ac_save_CC=$CC 4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4532 /* end confdefs.h. */ 4533 $ac_c_conftest_c89_program 4534 _ACEOF 4535 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4536 do 4537 CC="$ac_save_CC $ac_arg" 4538 if ac_fn_c_try_compile "$LINENO" 4539 then : 4540 ac_cv_prog_cc_c89=$ac_arg 4541 fi 4542 rm -f core conftest.err conftest.$ac_objext conftest.beam 4543 test "x$ac_cv_prog_cc_c89" != "xno" && break 4544 done 4545 rm -f conftest.$ac_ext 4546 CC=$ac_save_CC ;; 4547 esac 4548 fi 4549 4550 if test "x$ac_cv_prog_cc_c89" = xno 4551 then : 4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4553 printf "%s\n" "unsupported" >&6; } 4554 else case e in #( 4555 e) if test "x$ac_cv_prog_cc_c89" = x 4556 then : 4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4558 printf "%s\n" "none needed" >&6; } 4559 else case e in #( 4560 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4561 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4562 CC="$CC $ac_cv_prog_cc_c89" ;; 4563 esac 4564 fi 4565 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4566 ac_prog_cc_stdc=c89 ;; 4567 esac 4568 fi 4569 fi 4570 4571 ac_ext=c 4572 ac_cpp='$CPP $CPPFLAGS' 4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4576 4577 4578 ac_ext=c 4579 ac_cpp='$CPP $CPPFLAGS' 4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4584 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4585 if test ${am_cv_prog_cc_c_o+y} 4586 then : 4587 printf %s "(cached) " >&6 4588 else case e in #( 4589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4590 /* end confdefs.h. */ 4591 4592 int 4593 main (void) 4594 { 4595 4596 ; 4597 return 0; 4598 } 4599 _ACEOF 4600 # Make sure it works both with $CC and with simple cc. 4601 # Following AC_PROG_CC_C_O, we do the test twice because some 4602 # compilers refuse to overwrite an existing .o file with -o, 4603 # though they will create one. 4604 am_cv_prog_cc_c_o=yes 4605 for am_i in 1 2; do 4606 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4607 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4608 ac_status=$? 4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); } \ 4611 && test -f conftest2.$ac_objext; then 4612 : OK 4613 else 4614 am_cv_prog_cc_c_o=no 4615 break 4616 fi 4617 done 4618 rm -f core conftest* 4619 unset am_i ;; 4620 esac 4621 fi 4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4623 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4624 if test "$am_cv_prog_cc_c_o" != yes; then 4625 # Losing compiler, so override with the script. 4626 # FIXME: It is wrong to rewrite CC. 4627 # But if we don't then we get into trouble of one sort or another. 4628 # A longer-term fix would be to have automake use am__CC in this case, 4629 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4630 CC="$am_aux_dir/compile $CC" 4631 fi 4632 ac_ext=c 4633 ac_cpp='$CPP $CPPFLAGS' 4634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4636 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4637 4638 4639 depcc="$CC" am_compiler_list= 4640 4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4642 printf %s "checking dependency style of $depcc... " >&6; } 4643 if test ${am_cv_CC_dependencies_compiler_type+y} 4644 then : 4645 printf %s "(cached) " >&6 4646 else case e in #( 4647 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4648 # We make a subdir and do the tests there. Otherwise we can end up 4649 # making bogus files that we don't know about and never remove. For 4650 # instance it was reported that on HP-UX the gcc test will end up 4651 # making a dummy file named 'D' -- because '-MD' means "put the output 4652 # in D". 4653 rm -rf conftest.dir 4654 mkdir conftest.dir 4655 # Copy depcomp to subdir because otherwise we won't find it if we're 4656 # using a relative directory. 4657 cp "$am_depcomp" conftest.dir 4658 cd conftest.dir 4659 # We will build objects and dependencies in a subdirectory because 4660 # it helps to detect inapplicable dependency modes. For instance 4661 # both Tru64's cc and ICC support -MD to output dependencies as a 4662 # side effect of compilation, but ICC will put the dependencies in 4663 # the current directory while Tru64 will put them in the object 4664 # directory. 4665 mkdir sub 4666 4667 am_cv_CC_dependencies_compiler_type=none 4668 if test "$am_compiler_list" = ""; then 4669 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4670 fi 4671 am__universal=false 4672 case " $depcc " in #( 4673 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4674 esac 4675 4676 for depmode in $am_compiler_list; do 4677 # Setup a source with many dependencies, because some compilers 4678 # like to wrap large dependency lists on column 80 (with \), and 4679 # we should not choose a depcomp mode which is confused by this. 4680 # 4681 # We need to recreate these files for each test, as the compiler may 4682 # overwrite some of them when testing with obscure command lines. 4683 # This happens at least with the AIX C compiler. 4684 : > sub/conftest.c 4685 for i in 1 2 3 4 5 6; do 4686 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4687 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4688 # Solaris 10 /bin/sh. 4689 echo '/* dummy */' > sub/conftst$i.h 4690 done 4691 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4692 4693 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4694 # mode. It turns out that the SunPro C++ compiler does not properly 4695 # handle '-M -o', and we need to detect this. Also, some Intel 4696 # versions had trouble with output in subdirs. 4697 am__obj=sub/conftest.${OBJEXT-o} 4698 am__minus_obj="-o $am__obj" 4699 case $depmode in 4700 gcc) 4701 # This depmode causes a compiler race in universal mode. 4702 test "$am__universal" = false || continue 4703 ;; 4704 nosideeffect) 4705 # After this tag, mechanisms are not by side-effect, so they'll 4706 # only be used when explicitly requested. 4707 if test "x$enable_dependency_tracking" = xyes; then 4708 continue 4709 else 4710 break 4711 fi 4712 ;; 4713 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4714 # This compiler won't grok '-c -o', but also, the minuso test has 4715 # not run yet. These depmodes are late enough in the game, and 4716 # so weak that their functioning should not be impacted. 4717 am__obj=conftest.${OBJEXT-o} 4718 am__minus_obj= 4719 ;; 4720 none) break ;; 4721 esac 4722 if depmode=$depmode \ 4723 source=sub/conftest.c object=$am__obj \ 4724 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4725 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4726 >/dev/null 2>conftest.err && 4727 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4728 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4729 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4730 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4731 # icc doesn't choke on unknown options, it will just issue warnings 4732 # or remarks (even with -Werror). So we grep stderr for any message 4733 # that says an option was ignored or not supported. 4734 # When given -MP, icc 7.0 and 7.1 complain thusly: 4735 # icc: Command line warning: ignoring option '-M'; no argument required 4736 # The diagnosis changed in icc 8.0: 4737 # icc: Command line remark: option '-MP' not supported 4738 if (grep 'ignoring option' conftest.err || 4739 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4740 am_cv_CC_dependencies_compiler_type=$depmode 4741 break 4742 fi 4743 fi 4744 done 4745 4746 cd .. 4747 rm -rf conftest.dir 4748 else 4749 am_cv_CC_dependencies_compiler_type=none 4750 fi 4751 ;; 4752 esac 4753 fi 4754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4755 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4756 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4757 4758 if 4759 test "x$enable_dependency_tracking" != xno \ 4760 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4761 am__fastdepCC_TRUE= 4762 am__fastdepCC_FALSE='#' 4763 else 4764 am__fastdepCC_TRUE='#' 4765 am__fastdepCC_FALSE= 4766 fi 4767 4768 4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4770 printf %s "checking for a sed that does not truncate output... " >&6; } 4771 if test ${ac_cv_path_SED+y} 4772 then : 4773 printf %s "(cached) " >&6 4774 else case e in #( 4775 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4776 for ac_i in 1 2 3 4 5 6 7; do 4777 ac_script="$ac_script$as_nl$ac_script" 4778 done 4779 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4780 { ac_script=; unset ac_script;} 4781 if test -z "$SED"; then 4782 ac_path_SED_found=false 4783 # Loop through the user's path and test for each of PROGNAME-LIST 4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4785 for as_dir in $PATH 4786 do 4787 IFS=$as_save_IFS 4788 case $as_dir in #((( 4789 '') as_dir=./ ;; 4790 */) ;; 4791 *) as_dir=$as_dir/ ;; 4792 esac 4793 for ac_prog in sed gsed 4794 do 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4797 as_fn_executable_p "$ac_path_SED" || continue 4798 # Check for GNU ac_path_SED and select it if it is found. 4799 # Check for GNU $ac_path_SED 4800 case `"$ac_path_SED" --version 2>&1` in #( 4801 *GNU*) 4802 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4803 #( 4804 *) 4805 ac_count=0 4806 printf %s 0123456789 >"conftest.in" 4807 while : 4808 do 4809 cat "conftest.in" "conftest.in" >"conftest.tmp" 4810 mv "conftest.tmp" "conftest.in" 4811 cp "conftest.in" "conftest.nl" 4812 printf "%s\n" '' >> "conftest.nl" 4813 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4815 as_fn_arith $ac_count + 1 && ac_count=$as_val 4816 if test $ac_count -gt ${ac_path_SED_max-0}; then 4817 # Best one so far, save it but keep looking for a better one 4818 ac_cv_path_SED="$ac_path_SED" 4819 ac_path_SED_max=$ac_count 4820 fi 4821 # 10*(2^10) chars as input seems more than enough 4822 test $ac_count -gt 10 && break 4823 done 4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4825 esac 4826 4827 $ac_path_SED_found && break 3 4828 done 4829 done 4830 done 4831 IFS=$as_save_IFS 4832 if test -z "$ac_cv_path_SED"; then 4833 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4834 fi 4835 else 4836 ac_cv_path_SED=$SED 4837 fi 4838 ;; 4839 esac 4840 fi 4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4842 printf "%s\n" "$ac_cv_path_SED" >&6; } 4843 SED="$ac_cv_path_SED" 4844 rm -f conftest.sed 4845 4846 test -z "$SED" && SED=sed 4847 Xsed="$SED -e 1s/^X//" 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4860 printf %s "checking for grep that handles long lines and -e... " >&6; } 4861 if test ${ac_cv_path_GREP+y} 4862 then : 4863 printf %s "(cached) " >&6 4864 else case e in #( 4865 e) if test -z "$GREP"; then 4866 ac_path_GREP_found=false 4867 # Loop through the user's path and test for each of PROGNAME-LIST 4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4870 do 4871 IFS=$as_save_IFS 4872 case $as_dir in #((( 4873 '') as_dir=./ ;; 4874 */) ;; 4875 *) as_dir=$as_dir/ ;; 4876 esac 4877 for ac_prog in grep ggrep 4878 do 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4881 as_fn_executable_p "$ac_path_GREP" || continue 4882 # Check for GNU ac_path_GREP and select it if it is found. 4883 # Check for GNU $ac_path_GREP 4884 case `"$ac_path_GREP" --version 2>&1` in #( 4885 *GNU*) 4886 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4887 #( 4888 *) 4889 ac_count=0 4890 printf %s 0123456789 >"conftest.in" 4891 while : 4892 do 4893 cat "conftest.in" "conftest.in" >"conftest.tmp" 4894 mv "conftest.tmp" "conftest.in" 4895 cp "conftest.in" "conftest.nl" 4896 printf "%s\n" 'GREP' >> "conftest.nl" 4897 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4898 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4899 as_fn_arith $ac_count + 1 && ac_count=$as_val 4900 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4901 # Best one so far, save it but keep looking for a better one 4902 ac_cv_path_GREP="$ac_path_GREP" 4903 ac_path_GREP_max=$ac_count 4904 fi 4905 # 10*(2^10) chars as input seems more than enough 4906 test $ac_count -gt 10 && break 4907 done 4908 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4909 esac 4910 4911 $ac_path_GREP_found && break 3 4912 done 4913 done 4914 done 4915 IFS=$as_save_IFS 4916 if test -z "$ac_cv_path_GREP"; then 4917 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4918 fi 4919 else 4920 ac_cv_path_GREP=$GREP 4921 fi 4922 ;; 4923 esac 4924 fi 4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4926 printf "%s\n" "$ac_cv_path_GREP" >&6; } 4927 GREP="$ac_cv_path_GREP" 4928 4929 4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4931 printf %s "checking for egrep... " >&6; } 4932 if test ${ac_cv_path_EGREP+y} 4933 then : 4934 printf %s "(cached) " >&6 4935 else case e in #( 4936 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4937 then ac_cv_path_EGREP="$GREP -E" 4938 else 4939 if test -z "$EGREP"; then 4940 ac_path_EGREP_found=false 4941 # Loop through the user's path and test for each of PROGNAME-LIST 4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4944 do 4945 IFS=$as_save_IFS 4946 case $as_dir in #((( 4947 '') as_dir=./ ;; 4948 */) ;; 4949 *) as_dir=$as_dir/ ;; 4950 esac 4951 for ac_prog in egrep 4952 do 4953 for ac_exec_ext in '' $ac_executable_extensions; do 4954 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4955 as_fn_executable_p "$ac_path_EGREP" || continue 4956 # Check for GNU ac_path_EGREP and select it if it is found. 4957 # Check for GNU $ac_path_EGREP 4958 case `"$ac_path_EGREP" --version 2>&1` in #( 4959 *GNU*) 4960 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4961 #( 4962 *) 4963 ac_count=0 4964 printf %s 0123456789 >"conftest.in" 4965 while : 4966 do 4967 cat "conftest.in" "conftest.in" >"conftest.tmp" 4968 mv "conftest.tmp" "conftest.in" 4969 cp "conftest.in" "conftest.nl" 4970 printf "%s\n" 'EGREP' >> "conftest.nl" 4971 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4973 as_fn_arith $ac_count + 1 && ac_count=$as_val 4974 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4975 # Best one so far, save it but keep looking for a better one 4976 ac_cv_path_EGREP="$ac_path_EGREP" 4977 ac_path_EGREP_max=$ac_count 4978 fi 4979 # 10*(2^10) chars as input seems more than enough 4980 test $ac_count -gt 10 && break 4981 done 4982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4983 esac 4984 4985 $ac_path_EGREP_found && break 3 4986 done 4987 done 4988 done 4989 IFS=$as_save_IFS 4990 if test -z "$ac_cv_path_EGREP"; then 4991 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4992 fi 4993 else 4994 ac_cv_path_EGREP=$EGREP 4995 fi 4996 4997 fi ;; 4998 esac 4999 fi 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5001 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5002 EGREP="$ac_cv_path_EGREP" 5003 5004 EGREP_TRADITIONAL=$EGREP 5005 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5006 5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5008 printf %s "checking for fgrep... " >&6; } 5009 if test ${ac_cv_path_FGREP+y} 5010 then : 5011 printf %s "(cached) " >&6 5012 else case e in #( 5013 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5014 then ac_cv_path_FGREP="$GREP -F" 5015 else 5016 if test -z "$FGREP"; then 5017 ac_path_FGREP_found=false 5018 # Loop through the user's path and test for each of PROGNAME-LIST 5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5021 do 5022 IFS=$as_save_IFS 5023 case $as_dir in #((( 5024 '') as_dir=./ ;; 5025 */) ;; 5026 *) as_dir=$as_dir/ ;; 5027 esac 5028 for ac_prog in fgrep 5029 do 5030 for ac_exec_ext in '' $ac_executable_extensions; do 5031 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5032 as_fn_executable_p "$ac_path_FGREP" || continue 5033 # Check for GNU ac_path_FGREP and select it if it is found. 5034 # Check for GNU $ac_path_FGREP 5035 case `"$ac_path_FGREP" --version 2>&1` in #( 5036 *GNU*) 5037 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5038 #( 5039 *) 5040 ac_count=0 5041 printf %s 0123456789 >"conftest.in" 5042 while : 5043 do 5044 cat "conftest.in" "conftest.in" >"conftest.tmp" 5045 mv "conftest.tmp" "conftest.in" 5046 cp "conftest.in" "conftest.nl" 5047 printf "%s\n" 'FGREP' >> "conftest.nl" 5048 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5049 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5050 as_fn_arith $ac_count + 1 && ac_count=$as_val 5051 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5052 # Best one so far, save it but keep looking for a better one 5053 ac_cv_path_FGREP="$ac_path_FGREP" 5054 ac_path_FGREP_max=$ac_count 5055 fi 5056 # 10*(2^10) chars as input seems more than enough 5057 test $ac_count -gt 10 && break 5058 done 5059 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5060 esac 5061 5062 $ac_path_FGREP_found && break 3 5063 done 5064 done 5065 done 5066 IFS=$as_save_IFS 5067 if test -z "$ac_cv_path_FGREP"; then 5068 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5069 fi 5070 else 5071 ac_cv_path_FGREP=$FGREP 5072 fi 5073 5074 fi ;; 5075 esac 5076 fi 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5078 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5079 FGREP="$ac_cv_path_FGREP" 5080 5081 5082 test -z "$GREP" && GREP=grep 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 # Check whether --with-gnu-ld was given. 5103 if test ${with_gnu_ld+y} 5104 then : 5105 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5106 else case e in #( 5107 e) with_gnu_ld=no ;; 5108 esac 5109 fi 5110 5111 ac_prog=ld 5112 if test yes = "$GCC"; then 5113 # Check if gcc -print-prog-name=ld gives a path. 5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5115 printf %s "checking for ld used by $CC... " >&6; } 5116 case $host in 5117 *-*-mingw*) 5118 # gcc leaves a trailing carriage return, which upsets mingw 5119 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5120 *) 5121 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5122 esac 5123 case $ac_prog in 5124 # Accept absolute paths. 5125 [\\/]* | ?:[\\/]*) 5126 re_direlt='/[^/][^/]*/\.\./' 5127 # Canonicalize the pathname of ld 5128 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5129 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5130 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5131 done 5132 test -z "$LD" && LD=$ac_prog 5133 ;; 5134 "") 5135 # If it fails, then pretend we aren't using GCC. 5136 ac_prog=ld 5137 ;; 5138 *) 5139 # If it is relative, then search for the first ld in PATH. 5140 with_gnu_ld=unknown 5141 ;; 5142 esac 5143 elif test yes = "$with_gnu_ld"; then 5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5145 printf %s "checking for GNU ld... " >&6; } 5146 else 5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5148 printf %s "checking for non-GNU ld... " >&6; } 5149 fi 5150 if test ${lt_cv_path_LD+y} 5151 then : 5152 printf %s "(cached) " >&6 5153 else case e in #( 5154 e) if test -z "$LD"; then 5155 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5156 for ac_dir in $PATH; do 5157 IFS=$lt_save_ifs 5158 test -z "$ac_dir" && ac_dir=. 5159 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5160 lt_cv_path_LD=$ac_dir/$ac_prog 5161 # Check to see if the program is GNU ld. I'd rather use --version, 5162 # but apparently some variants of GNU ld only accept -v. 5163 # Break only if it was the GNU/non-GNU ld that we prefer. 5164 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5165 *GNU* | *'with BFD'*) 5166 test no != "$with_gnu_ld" && break 5167 ;; 5168 *) 5169 test yes != "$with_gnu_ld" && break 5170 ;; 5171 esac 5172 fi 5173 done 5174 IFS=$lt_save_ifs 5175 else 5176 lt_cv_path_LD=$LD # Let the user override the test with a path. 5177 fi ;; 5178 esac 5179 fi 5180 5181 LD=$lt_cv_path_LD 5182 if test -n "$LD"; then 5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5184 printf "%s\n" "$LD" >&6; } 5185 else 5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5187 printf "%s\n" "no" >&6; } 5188 fi 5189 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5191 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5192 if test ${lt_cv_prog_gnu_ld+y} 5193 then : 5194 printf %s "(cached) " >&6 5195 else case e in #( 5196 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5197 case `$LD -v 2>&1 </dev/null` in 5198 *GNU* | *'with BFD'*) 5199 lt_cv_prog_gnu_ld=yes 5200 ;; 5201 *) 5202 lt_cv_prog_gnu_ld=no 5203 ;; 5204 esac ;; 5205 esac 5206 fi 5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5208 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5209 with_gnu_ld=$lt_cv_prog_gnu_ld 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5220 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5221 if test ${lt_cv_path_NM+y} 5222 then : 5223 printf %s "(cached) " >&6 5224 else case e in #( 5225 e) if test -n "$NM"; then 5226 # Let the user override the test. 5227 lt_cv_path_NM=$NM 5228 else 5229 lt_nm_to_check=${ac_tool_prefix}nm 5230 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5231 lt_nm_to_check="$lt_nm_to_check nm" 5232 fi 5233 for lt_tmp_nm in $lt_nm_to_check; do 5234 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5235 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5236 IFS=$lt_save_ifs 5237 test -z "$ac_dir" && ac_dir=. 5238 tmp_nm=$ac_dir/$lt_tmp_nm 5239 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5240 # Check to see if the nm accepts a BSD-compat flag. 5241 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5242 # nm: unknown option "B" ignored 5243 # Tru64's nm complains that /dev/null is an invalid object file 5244 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5245 case $build_os in 5246 mingw*) lt_bad_file=conftest.nm/nofile ;; 5247 *) lt_bad_file=/dev/null ;; 5248 esac 5249 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5250 *$lt_bad_file* | *'Invalid file or object type'*) 5251 lt_cv_path_NM="$tmp_nm -B" 5252 break 2 5253 ;; 5254 *) 5255 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5256 */dev/null*) 5257 lt_cv_path_NM="$tmp_nm -p" 5258 break 2 5259 ;; 5260 *) 5261 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5262 continue # so that we can try to find one that supports BSD flags 5263 ;; 5264 esac 5265 ;; 5266 esac 5267 fi 5268 done 5269 IFS=$lt_save_ifs 5270 done 5271 : ${lt_cv_path_NM=no} 5272 fi ;; 5273 esac 5274 fi 5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5276 printf "%s\n" "$lt_cv_path_NM" >&6; } 5277 if test no != "$lt_cv_path_NM"; then 5278 NM=$lt_cv_path_NM 5279 else 5280 # Didn't find any BSD compatible name lister, look for dumpbin. 5281 if test -n "$DUMPBIN"; then : 5282 # Let the user override the test. 5283 else 5284 if test -n "$ac_tool_prefix"; then 5285 for ac_prog in dumpbin "link -dump" 5286 do 5287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5290 printf %s "checking for $ac_word... " >&6; } 5291 if test ${ac_cv_prog_DUMPBIN+y} 5292 then : 5293 printf %s "(cached) " >&6 5294 else case e in #( 5295 e) if test -n "$DUMPBIN"; then 5296 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5297 else 5298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5299 for as_dir in $PATH 5300 do 5301 IFS=$as_save_IFS 5302 case $as_dir in #((( 5303 '') as_dir=./ ;; 5304 */) ;; 5305 *) as_dir=$as_dir/ ;; 5306 esac 5307 for ac_exec_ext in '' $ac_executable_extensions; do 5308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5309 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5311 break 2 5312 fi 5313 done 5314 done 5315 IFS=$as_save_IFS 5316 5317 fi ;; 5318 esac 5319 fi 5320 DUMPBIN=$ac_cv_prog_DUMPBIN 5321 if test -n "$DUMPBIN"; then 5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5323 printf "%s\n" "$DUMPBIN" >&6; } 5324 else 5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5326 printf "%s\n" "no" >&6; } 5327 fi 5328 5329 5330 test -n "$DUMPBIN" && break 5331 done 5332 fi 5333 if test -z "$DUMPBIN"; then 5334 ac_ct_DUMPBIN=$DUMPBIN 5335 for ac_prog in dumpbin "link -dump" 5336 do 5337 # Extract the first word of "$ac_prog", so it can be a program name with args. 5338 set dummy $ac_prog; ac_word=$2 5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5340 printf %s "checking for $ac_word... " >&6; } 5341 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5342 then : 5343 printf %s "(cached) " >&6 5344 else case e in #( 5345 e) if test -n "$ac_ct_DUMPBIN"; then 5346 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5347 else 5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5349 for as_dir in $PATH 5350 do 5351 IFS=$as_save_IFS 5352 case $as_dir in #((( 5353 '') as_dir=./ ;; 5354 */) ;; 5355 *) as_dir=$as_dir/ ;; 5356 esac 5357 for ac_exec_ext in '' $ac_executable_extensions; do 5358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5359 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5361 break 2 5362 fi 5363 done 5364 done 5365 IFS=$as_save_IFS 5366 5367 fi ;; 5368 esac 5369 fi 5370 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5371 if test -n "$ac_ct_DUMPBIN"; then 5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5373 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5374 else 5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5376 printf "%s\n" "no" >&6; } 5377 fi 5378 5379 5380 test -n "$ac_ct_DUMPBIN" && break 5381 done 5382 5383 if test "x$ac_ct_DUMPBIN" = x; then 5384 DUMPBIN=":" 5385 else 5386 case $cross_compiling:$ac_tool_warned in 5387 yes:) 5388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5389 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5390 ac_tool_warned=yes ;; 5391 esac 5392 DUMPBIN=$ac_ct_DUMPBIN 5393 fi 5394 fi 5395 5396 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5397 *COFF*) 5398 DUMPBIN="$DUMPBIN -symbols -headers" 5399 ;; 5400 *) 5401 DUMPBIN=: 5402 ;; 5403 esac 5404 fi 5405 5406 if test : != "$DUMPBIN"; then 5407 NM=$DUMPBIN 5408 fi 5409 fi 5410 test -z "$NM" && NM=nm 5411 5412 5413 5414 5415 5416 5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5418 printf %s "checking the name lister ($NM) interface... " >&6; } 5419 if test ${lt_cv_nm_interface+y} 5420 then : 5421 printf %s "(cached) " >&6 5422 else case e in #( 5423 e) lt_cv_nm_interface="BSD nm" 5424 echo "int some_variable = 0;" > conftest.$ac_ext 5425 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5426 (eval "$ac_compile" 2>conftest.err) 5427 cat conftest.err >&5 5428 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5429 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5430 cat conftest.err >&5 5431 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5432 cat conftest.out >&5 5433 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5434 lt_cv_nm_interface="MS dumpbin" 5435 fi 5436 rm -f conftest* ;; 5437 esac 5438 fi 5439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5440 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5441 5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5443 printf %s "checking whether ln -s works... " >&6; } 5444 LN_S=$as_ln_s 5445 if test "$LN_S" = "ln -s"; then 5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5447 printf "%s\n" "yes" >&6; } 5448 else 5449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5450 printf "%s\n" "no, using $LN_S" >&6; } 5451 fi 5452 5453 # find the maximum length of command line arguments 5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5455 printf %s "checking the maximum length of command line arguments... " >&6; } 5456 if test ${lt_cv_sys_max_cmd_len+y} 5457 then : 5458 printf %s "(cached) " >&6 5459 else case e in #( 5460 e) i=0 5461 teststring=ABCD 5462 5463 case $build_os in 5464 msdosdjgpp*) 5465 # On DJGPP, this test can blow up pretty badly due to problems in libc 5466 # (any single argument exceeding 2000 bytes causes a buffer overrun 5467 # during glob expansion). Even if it were fixed, the result of this 5468 # check would be larger than it should be. 5469 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5470 ;; 5471 5472 gnu*) 5473 # Under GNU Hurd, this test is not required because there is 5474 # no limit to the length of command line arguments. 5475 # Libtool will interpret -1 as no limit whatsoever 5476 lt_cv_sys_max_cmd_len=-1; 5477 ;; 5478 5479 cygwin* | mingw* | cegcc*) 5480 # On Win9x/ME, this test blows up -- it succeeds, but takes 5481 # about 5 minutes as the teststring grows exponentially. 5482 # Worse, since 9x/ME are not pre-emptively multitasking, 5483 # you end up with a "frozen" computer, even though with patience 5484 # the test eventually succeeds (with a max line length of 256k). 5485 # Instead, let's just punt: use the minimum linelength reported by 5486 # all of the supported platforms: 8192 (on NT/2K/XP). 5487 lt_cv_sys_max_cmd_len=8192; 5488 ;; 5489 5490 mint*) 5491 # On MiNT this can take a long time and run out of memory. 5492 lt_cv_sys_max_cmd_len=8192; 5493 ;; 5494 5495 amigaos*) 5496 # On AmigaOS with pdksh, this test takes hours, literally. 5497 # So we just punt and use a minimum line length of 8192. 5498 lt_cv_sys_max_cmd_len=8192; 5499 ;; 5500 5501 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5502 # This has been around since 386BSD, at least. Likely further. 5503 if test -x /sbin/sysctl; then 5504 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5505 elif test -x /usr/sbin/sysctl; then 5506 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5507 else 5508 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5509 fi 5510 # And add a safety zone 5511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5512 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5513 ;; 5514 5515 interix*) 5516 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5517 lt_cv_sys_max_cmd_len=196608 5518 ;; 5519 5520 os2*) 5521 # The test takes a long time on OS/2. 5522 lt_cv_sys_max_cmd_len=8192 5523 ;; 5524 5525 osf*) 5526 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5527 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5528 # nice to cause kernel panics so lets avoid the loop below. 5529 # First set a reasonable default. 5530 lt_cv_sys_max_cmd_len=16384 5531 # 5532 if test -x /sbin/sysconfig; then 5533 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5534 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5535 esac 5536 fi 5537 ;; 5538 sco3.2v5*) 5539 lt_cv_sys_max_cmd_len=102400 5540 ;; 5541 sysv5* | sco5v6* | sysv4.2uw2*) 5542 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5543 if test -n "$kargmax"; then 5544 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5545 else 5546 lt_cv_sys_max_cmd_len=32768 5547 fi 5548 ;; 5549 *) 5550 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5551 if test -n "$lt_cv_sys_max_cmd_len" && \ 5552 test undefined != "$lt_cv_sys_max_cmd_len"; then 5553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5555 else 5556 # Make teststring a little bigger before we do anything with it. 5557 # a 1K string should be a reasonable start. 5558 for i in 1 2 3 4 5 6 7 8; do 5559 teststring=$teststring$teststring 5560 done 5561 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5562 # If test is not a shell built-in, we'll probably end up computing a 5563 # maximum length that is only half of the actual maximum length, but 5564 # we can't tell. 5565 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5566 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5567 test 17 != "$i" # 1/2 MB should be enough 5568 do 5569 i=`expr $i + 1` 5570 teststring=$teststring$teststring 5571 done 5572 # Only check the string length outside the loop. 5573 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5574 teststring= 5575 # Add a significant safety factor because C++ compilers can tack on 5576 # massive amounts of additional arguments before passing them to the 5577 # linker. It appears as though 1/2 is a usable value. 5578 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5579 fi 5580 ;; 5581 esac 5582 ;; 5583 esac 5584 fi 5585 5586 if test -n "$lt_cv_sys_max_cmd_len"; then 5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5588 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5589 else 5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5591 printf "%s\n" "none" >&6; } 5592 fi 5593 max_cmd_len=$lt_cv_sys_max_cmd_len 5594 5595 5596 5597 5598 5599 5600 : ${CP="cp -f"} 5601 : ${MV="mv -f"} 5602 : ${RM="rm -f"} 5603 5604 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5605 lt_unset=unset 5606 else 5607 lt_unset=false 5608 fi 5609 5610 5611 5612 5613 5614 # test EBCDIC or ASCII 5615 case `echo X|tr X '\101'` in 5616 A) # ASCII based system 5617 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5618 lt_SP2NL='tr \040 \012' 5619 lt_NL2SP='tr \015\012 \040\040' 5620 ;; 5621 *) # EBCDIC based system 5622 lt_SP2NL='tr \100 \n' 5623 lt_NL2SP='tr \r\n \100\100' 5624 ;; 5625 esac 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5636 printf %s "checking how to convert $build file names to $host format... " >&6; } 5637 if test ${lt_cv_to_host_file_cmd+y} 5638 then : 5639 printf %s "(cached) " >&6 5640 else case e in #( 5641 e) case $host in 5642 *-*-mingw* ) 5643 case $build in 5644 *-*-mingw* ) # actually msys 5645 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5646 ;; 5647 *-*-cygwin* ) 5648 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5649 ;; 5650 * ) # otherwise, assume *nix 5651 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5652 ;; 5653 esac 5654 ;; 5655 *-*-cygwin* ) 5656 case $build in 5657 *-*-mingw* ) # actually msys 5658 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5659 ;; 5660 *-*-cygwin* ) 5661 lt_cv_to_host_file_cmd=func_convert_file_noop 5662 ;; 5663 * ) # otherwise, assume *nix 5664 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5665 ;; 5666 esac 5667 ;; 5668 * ) # unhandled hosts (and "normal" native builds) 5669 lt_cv_to_host_file_cmd=func_convert_file_noop 5670 ;; 5671 esac 5672 ;; 5673 esac 5674 fi 5675 5676 to_host_file_cmd=$lt_cv_to_host_file_cmd 5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5678 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5679 5680 5681 5682 5683 5684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5685 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5686 if test ${lt_cv_to_tool_file_cmd+y} 5687 then : 5688 printf %s "(cached) " >&6 5689 else case e in #( 5690 e) #assume ordinary cross tools, or native build. 5691 lt_cv_to_tool_file_cmd=func_convert_file_noop 5692 case $host in 5693 *-*-mingw* ) 5694 case $build in 5695 *-*-mingw* ) # actually msys 5696 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5697 ;; 5698 esac 5699 ;; 5700 esac 5701 ;; 5702 esac 5703 fi 5704 5705 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5707 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5708 5709 5710 5711 5712 5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5714 printf %s "checking for $LD option to reload object files... " >&6; } 5715 if test ${lt_cv_ld_reload_flag+y} 5716 then : 5717 printf %s "(cached) " >&6 5718 else case e in #( 5719 e) lt_cv_ld_reload_flag='-r' ;; 5720 esac 5721 fi 5722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5723 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5724 reload_flag=$lt_cv_ld_reload_flag 5725 case $reload_flag in 5726 "" | " "*) ;; 5727 *) reload_flag=" $reload_flag" ;; 5728 esac 5729 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5730 case $host_os in 5731 cygwin* | mingw* | pw32* | cegcc*) 5732 if test yes != "$GCC"; then 5733 reload_cmds=false 5734 fi 5735 ;; 5736 darwin*) 5737 if test yes = "$GCC"; then 5738 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5739 else 5740 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5741 fi 5742 ;; 5743 esac 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 if test -n "$ac_tool_prefix"; then 5754 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5755 set dummy ${ac_tool_prefix}file; ac_word=$2 5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5757 printf %s "checking for $ac_word... " >&6; } 5758 if test ${ac_cv_prog_FILECMD+y} 5759 then : 5760 printf %s "(cached) " >&6 5761 else case e in #( 5762 e) if test -n "$FILECMD"; then 5763 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5764 else 5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766 for as_dir in $PATH 5767 do 5768 IFS=$as_save_IFS 5769 case $as_dir in #((( 5770 '') as_dir=./ ;; 5771 */) ;; 5772 *) as_dir=$as_dir/ ;; 5773 esac 5774 for ac_exec_ext in '' $ac_executable_extensions; do 5775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5776 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5778 break 2 5779 fi 5780 done 5781 done 5782 IFS=$as_save_IFS 5783 5784 fi ;; 5785 esac 5786 fi 5787 FILECMD=$ac_cv_prog_FILECMD 5788 if test -n "$FILECMD"; then 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5790 printf "%s\n" "$FILECMD" >&6; } 5791 else 5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793 printf "%s\n" "no" >&6; } 5794 fi 5795 5796 5797 fi 5798 if test -z "$ac_cv_prog_FILECMD"; then 5799 ac_ct_FILECMD=$FILECMD 5800 # Extract the first word of "file", so it can be a program name with args. 5801 set dummy file; ac_word=$2 5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5803 printf %s "checking for $ac_word... " >&6; } 5804 if test ${ac_cv_prog_ac_ct_FILECMD+y} 5805 then : 5806 printf %s "(cached) " >&6 5807 else case e in #( 5808 e) if test -n "$ac_ct_FILECMD"; then 5809 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5810 else 5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5812 for as_dir in $PATH 5813 do 5814 IFS=$as_save_IFS 5815 case $as_dir in #((( 5816 '') as_dir=./ ;; 5817 */) ;; 5818 *) as_dir=$as_dir/ ;; 5819 esac 5820 for ac_exec_ext in '' $ac_executable_extensions; do 5821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5822 ac_cv_prog_ac_ct_FILECMD="file" 5823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5824 break 2 5825 fi 5826 done 5827 done 5828 IFS=$as_save_IFS 5829 5830 fi ;; 5831 esac 5832 fi 5833 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5834 if test -n "$ac_ct_FILECMD"; then 5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5836 printf "%s\n" "$ac_ct_FILECMD" >&6; } 5837 else 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5839 printf "%s\n" "no" >&6; } 5840 fi 5841 5842 if test "x$ac_ct_FILECMD" = x; then 5843 FILECMD=":" 5844 else 5845 case $cross_compiling:$ac_tool_warned in 5846 yes:) 5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5849 ac_tool_warned=yes ;; 5850 esac 5851 FILECMD=$ac_ct_FILECMD 5852 fi 5853 else 5854 FILECMD="$ac_cv_prog_FILECMD" 5855 fi 5856 5857 5858 5859 5860 5861 5862 5863 if test -n "$ac_tool_prefix"; then 5864 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5865 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5867 printf %s "checking for $ac_word... " >&6; } 5868 if test ${ac_cv_prog_OBJDUMP+y} 5869 then : 5870 printf %s "(cached) " >&6 5871 else case e in #( 5872 e) if test -n "$OBJDUMP"; then 5873 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5874 else 5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876 for as_dir in $PATH 5877 do 5878 IFS=$as_save_IFS 5879 case $as_dir in #((( 5880 '') as_dir=./ ;; 5881 */) ;; 5882 *) as_dir=$as_dir/ ;; 5883 esac 5884 for ac_exec_ext in '' $ac_executable_extensions; do 5885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5886 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5888 break 2 5889 fi 5890 done 5891 done 5892 IFS=$as_save_IFS 5893 5894 fi ;; 5895 esac 5896 fi 5897 OBJDUMP=$ac_cv_prog_OBJDUMP 5898 if test -n "$OBJDUMP"; then 5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5900 printf "%s\n" "$OBJDUMP" >&6; } 5901 else 5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5903 printf "%s\n" "no" >&6; } 5904 fi 5905 5906 5907 fi 5908 if test -z "$ac_cv_prog_OBJDUMP"; then 5909 ac_ct_OBJDUMP=$OBJDUMP 5910 # Extract the first word of "objdump", so it can be a program name with args. 5911 set dummy objdump; ac_word=$2 5912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5913 printf %s "checking for $ac_word... " >&6; } 5914 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5915 then : 5916 printf %s "(cached) " >&6 5917 else case e in #( 5918 e) if test -n "$ac_ct_OBJDUMP"; then 5919 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5920 else 5921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5922 for as_dir in $PATH 5923 do 5924 IFS=$as_save_IFS 5925 case $as_dir in #((( 5926 '') as_dir=./ ;; 5927 */) ;; 5928 *) as_dir=$as_dir/ ;; 5929 esac 5930 for ac_exec_ext in '' $ac_executable_extensions; do 5931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5932 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5934 break 2 5935 fi 5936 done 5937 done 5938 IFS=$as_save_IFS 5939 5940 fi ;; 5941 esac 5942 fi 5943 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5944 if test -n "$ac_ct_OBJDUMP"; then 5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5946 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5947 else 5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5949 printf "%s\n" "no" >&6; } 5950 fi 5951 5952 if test "x$ac_ct_OBJDUMP" = x; then 5953 OBJDUMP="false" 5954 else 5955 case $cross_compiling:$ac_tool_warned in 5956 yes:) 5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5959 ac_tool_warned=yes ;; 5960 esac 5961 OBJDUMP=$ac_ct_OBJDUMP 5962 fi 5963 else 5964 OBJDUMP="$ac_cv_prog_OBJDUMP" 5965 fi 5966 5967 test -z "$OBJDUMP" && OBJDUMP=objdump 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5978 printf %s "checking how to recognize dependent libraries... " >&6; } 5979 if test ${lt_cv_deplibs_check_method+y} 5980 then : 5981 printf %s "(cached) " >&6 5982 else case e in #( 5983 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 5984 lt_cv_file_magic_test_file= 5985 lt_cv_deplibs_check_method='unknown' 5986 # Need to set the preceding variable on all platforms that support 5987 # interlibrary dependencies. 5988 # 'none' -- dependencies not supported. 5989 # 'unknown' -- same as none, but documents that we really don't know. 5990 # 'pass_all' -- all dependencies passed with no checks. 5991 # 'test_compile' -- check by making test program. 5992 # 'file_magic [[regex]]' -- check by looking for files in library path 5993 # that responds to the $file_magic_cmd with a given extended regex. 5994 # If you have 'file' or equivalent on your system and you're not sure 5995 # whether 'pass_all' will *always* work, you probably want this one. 5996 5997 case $host_os in 5998 aix[4-9]*) 5999 lt_cv_deplibs_check_method=pass_all 6000 ;; 6001 6002 beos*) 6003 lt_cv_deplibs_check_method=pass_all 6004 ;; 6005 6006 bsdi[45]*) 6007 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6008 lt_cv_file_magic_cmd='$FILECMD -L' 6009 lt_cv_file_magic_test_file=/shlib/libc.so 6010 ;; 6011 6012 cygwin*) 6013 # func_win32_libid is a shell function defined in ltmain.sh 6014 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6015 lt_cv_file_magic_cmd='func_win32_libid' 6016 ;; 6017 6018 mingw* | pw32*) 6019 # Base MSYS/MinGW do not provide the 'file' command needed by 6020 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6021 # unless we find 'file', for example because we are cross-compiling. 6022 if ( file / ) >/dev/null 2>&1; then 6023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6024 lt_cv_file_magic_cmd='func_win32_libid' 6025 else 6026 # Keep this pattern in sync with the one in func_win32_libid. 6027 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6028 lt_cv_file_magic_cmd='$OBJDUMP -f' 6029 fi 6030 ;; 6031 6032 cegcc*) 6033 # use the weaker test based on 'objdump'. See mingw*. 6034 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6035 lt_cv_file_magic_cmd='$OBJDUMP -f' 6036 ;; 6037 6038 darwin* | rhapsody*) 6039 lt_cv_deplibs_check_method=pass_all 6040 ;; 6041 6042 freebsd* | dragonfly* | midnightbsd*) 6043 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6044 case $host_cpu in 6045 i*86 ) 6046 # Not sure whether the presence of OpenBSD here was a mistake. 6047 # Let's accept both of them until this is cleared up. 6048 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6049 lt_cv_file_magic_cmd=$FILECMD 6050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6051 ;; 6052 esac 6053 else 6054 lt_cv_deplibs_check_method=pass_all 6055 fi 6056 ;; 6057 6058 haiku*) 6059 lt_cv_deplibs_check_method=pass_all 6060 ;; 6061 6062 hpux10.20* | hpux11*) 6063 lt_cv_file_magic_cmd=$FILECMD 6064 case $host_cpu in 6065 ia64*) 6066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6067 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6068 ;; 6069 hppa*64*) 6070 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]' 6071 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6072 ;; 6073 *) 6074 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6075 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6076 ;; 6077 esac 6078 ;; 6079 6080 interix[3-9]*) 6081 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6083 ;; 6084 6085 irix5* | irix6* | nonstopux*) 6086 case $LD in 6087 *-32|*"-32 ") libmagic=32-bit;; 6088 *-n32|*"-n32 ") libmagic=N32;; 6089 *-64|*"-64 ") libmagic=64-bit;; 6090 *) libmagic=never-match;; 6091 esac 6092 lt_cv_deplibs_check_method=pass_all 6093 ;; 6094 6095 # This must be glibc/ELF. 6096 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6097 lt_cv_deplibs_check_method=pass_all 6098 ;; 6099 6100 netbsd*) 6101 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6103 else 6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6105 fi 6106 ;; 6107 6108 newos6*) 6109 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6110 lt_cv_file_magic_cmd=$FILECMD 6111 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6112 ;; 6113 6114 *nto* | *qnx*) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117 6118 openbsd* | bitrig*) 6119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6120 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6121 else 6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6123 fi 6124 ;; 6125 6126 osf3* | osf4* | osf5*) 6127 lt_cv_deplibs_check_method=pass_all 6128 ;; 6129 6130 rdos*) 6131 lt_cv_deplibs_check_method=pass_all 6132 ;; 6133 6134 solaris*) 6135 lt_cv_deplibs_check_method=pass_all 6136 ;; 6137 6138 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 6142 sysv4 | sysv4.3*) 6143 case $host_vendor in 6144 motorola) 6145 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]' 6146 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6147 ;; 6148 ncr) 6149 lt_cv_deplibs_check_method=pass_all 6150 ;; 6151 sequent) 6152 lt_cv_file_magic_cmd='/bin/file' 6153 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6154 ;; 6155 sni) 6156 lt_cv_file_magic_cmd='/bin/file' 6157 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6158 lt_cv_file_magic_test_file=/lib/libc.so 6159 ;; 6160 siemens) 6161 lt_cv_deplibs_check_method=pass_all 6162 ;; 6163 pc) 6164 lt_cv_deplibs_check_method=pass_all 6165 ;; 6166 esac 6167 ;; 6168 6169 tpf*) 6170 lt_cv_deplibs_check_method=pass_all 6171 ;; 6172 os2*) 6173 lt_cv_deplibs_check_method=pass_all 6174 ;; 6175 esac 6176 ;; 6177 esac 6178 fi 6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6180 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6181 6182 file_magic_glob= 6183 want_nocaseglob=no 6184 if test "$build" = "$host"; then 6185 case $host_os in 6186 mingw* | pw32*) 6187 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6188 want_nocaseglob=yes 6189 else 6190 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6191 fi 6192 ;; 6193 esac 6194 fi 6195 6196 file_magic_cmd=$lt_cv_file_magic_cmd 6197 deplibs_check_method=$lt_cv_deplibs_check_method 6198 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 if test -n "$ac_tool_prefix"; then 6222 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6223 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6225 printf %s "checking for $ac_word... " >&6; } 6226 if test ${ac_cv_prog_DLLTOOL+y} 6227 then : 6228 printf %s "(cached) " >&6 6229 else case e in #( 6230 e) if test -n "$DLLTOOL"; then 6231 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6232 else 6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6234 for as_dir in $PATH 6235 do 6236 IFS=$as_save_IFS 6237 case $as_dir in #((( 6238 '') as_dir=./ ;; 6239 */) ;; 6240 *) as_dir=$as_dir/ ;; 6241 esac 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6244 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248 done 6249 done 6250 IFS=$as_save_IFS 6251 6252 fi ;; 6253 esac 6254 fi 6255 DLLTOOL=$ac_cv_prog_DLLTOOL 6256 if test -n "$DLLTOOL"; then 6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6258 printf "%s\n" "$DLLTOOL" >&6; } 6259 else 6260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6261 printf "%s\n" "no" >&6; } 6262 fi 6263 6264 6265 fi 6266 if test -z "$ac_cv_prog_DLLTOOL"; then 6267 ac_ct_DLLTOOL=$DLLTOOL 6268 # Extract the first word of "dlltool", so it can be a program name with args. 6269 set dummy dlltool; ac_word=$2 6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6271 printf %s "checking for $ac_word... " >&6; } 6272 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6273 then : 6274 printf %s "(cached) " >&6 6275 else case e in #( 6276 e) if test -n "$ac_ct_DLLTOOL"; then 6277 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6278 else 6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6280 for as_dir in $PATH 6281 do 6282 IFS=$as_save_IFS 6283 case $as_dir in #((( 6284 '') as_dir=./ ;; 6285 */) ;; 6286 *) as_dir=$as_dir/ ;; 6287 esac 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6290 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6292 break 2 6293 fi 6294 done 6295 done 6296 IFS=$as_save_IFS 6297 6298 fi ;; 6299 esac 6300 fi 6301 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6302 if test -n "$ac_ct_DLLTOOL"; then 6303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6304 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6305 else 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6307 printf "%s\n" "no" >&6; } 6308 fi 6309 6310 if test "x$ac_ct_DLLTOOL" = x; then 6311 DLLTOOL="false" 6312 else 6313 case $cross_compiling:$ac_tool_warned in 6314 yes:) 6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6316 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6317 ac_tool_warned=yes ;; 6318 esac 6319 DLLTOOL=$ac_ct_DLLTOOL 6320 fi 6321 else 6322 DLLTOOL="$ac_cv_prog_DLLTOOL" 6323 fi 6324 6325 test -z "$DLLTOOL" && DLLTOOL=dlltool 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6337 printf %s "checking how to associate runtime and link libraries... " >&6; } 6338 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6339 then : 6340 printf %s "(cached) " >&6 6341 else case e in #( 6342 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6343 6344 case $host_os in 6345 cygwin* | mingw* | pw32* | cegcc*) 6346 # two different shell functions defined in ltmain.sh; 6347 # decide which one to use based on capabilities of $DLLTOOL 6348 case `$DLLTOOL --help 2>&1` in 6349 *--identify-strict*) 6350 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6351 ;; 6352 *) 6353 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6354 ;; 6355 esac 6356 ;; 6357 *) 6358 # fallback: assume linklib IS sharedlib 6359 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6360 ;; 6361 esac 6362 ;; 6363 esac 6364 fi 6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6366 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6367 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6368 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6369 6370 6371 6372 6373 6374 6375 6376 6377 if test -n "$ac_tool_prefix"; then 6378 for ac_prog in ar 6379 do 6380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6383 printf %s "checking for $ac_word... " >&6; } 6384 if test ${ac_cv_prog_AR+y} 6385 then : 6386 printf %s "(cached) " >&6 6387 else case e in #( 6388 e) if test -n "$AR"; then 6389 ac_cv_prog_AR="$AR" # Let the user override the test. 6390 else 6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6392 for as_dir in $PATH 6393 do 6394 IFS=$as_save_IFS 6395 case $as_dir in #((( 6396 '') as_dir=./ ;; 6397 */) ;; 6398 *) as_dir=$as_dir/ ;; 6399 esac 6400 for ac_exec_ext in '' $ac_executable_extensions; do 6401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6402 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6404 break 2 6405 fi 6406 done 6407 done 6408 IFS=$as_save_IFS 6409 6410 fi ;; 6411 esac 6412 fi 6413 AR=$ac_cv_prog_AR 6414 if test -n "$AR"; then 6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6416 printf "%s\n" "$AR" >&6; } 6417 else 6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6419 printf "%s\n" "no" >&6; } 6420 fi 6421 6422 6423 test -n "$AR" && break 6424 done 6425 fi 6426 if test -z "$AR"; then 6427 ac_ct_AR=$AR 6428 for ac_prog in ar 6429 do 6430 # Extract the first word of "$ac_prog", so it can be a program name with args. 6431 set dummy $ac_prog; ac_word=$2 6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6433 printf %s "checking for $ac_word... " >&6; } 6434 if test ${ac_cv_prog_ac_ct_AR+y} 6435 then : 6436 printf %s "(cached) " >&6 6437 else case e in #( 6438 e) if test -n "$ac_ct_AR"; then 6439 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6440 else 6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6442 for as_dir in $PATH 6443 do 6444 IFS=$as_save_IFS 6445 case $as_dir in #((( 6446 '') as_dir=./ ;; 6447 */) ;; 6448 *) as_dir=$as_dir/ ;; 6449 esac 6450 for ac_exec_ext in '' $ac_executable_extensions; do 6451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6452 ac_cv_prog_ac_ct_AR="$ac_prog" 6453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6454 break 2 6455 fi 6456 done 6457 done 6458 IFS=$as_save_IFS 6459 6460 fi ;; 6461 esac 6462 fi 6463 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6464 if test -n "$ac_ct_AR"; then 6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6466 printf "%s\n" "$ac_ct_AR" >&6; } 6467 else 6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6469 printf "%s\n" "no" >&6; } 6470 fi 6471 6472 6473 test -n "$ac_ct_AR" && break 6474 done 6475 6476 if test "x$ac_ct_AR" = x; then 6477 AR="false" 6478 else 6479 case $cross_compiling:$ac_tool_warned in 6480 yes:) 6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6482 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6483 ac_tool_warned=yes ;; 6484 esac 6485 AR=$ac_ct_AR 6486 fi 6487 fi 6488 6489 : ${AR=ar} 6490 6491 6492 6493 6494 6495 6496 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6497 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6498 # higher priority because thats what people were doing historically (setting 6499 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6500 # variable obsoleted/removed. 6501 6502 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6503 lt_ar_flags=$AR_FLAGS 6504 6505 6506 6507 6508 6509 6510 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6511 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6512 6513 6514 6515 6516 6517 6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6519 printf %s "checking for archiver @FILE support... " >&6; } 6520 if test ${lt_cv_ar_at_file+y} 6521 then : 6522 printf %s "(cached) " >&6 6523 else case e in #( 6524 e) lt_cv_ar_at_file=no 6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6526 /* end confdefs.h. */ 6527 6528 int 6529 main (void) 6530 { 6531 6532 ; 6533 return 0; 6534 } 6535 _ACEOF 6536 if ac_fn_c_try_compile "$LINENO" 6537 then : 6538 echo conftest.$ac_objext > conftest.lst 6539 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6541 (eval $lt_ar_try) 2>&5 6542 ac_status=$? 6543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6544 test $ac_status = 0; } 6545 if test 0 -eq "$ac_status"; then 6546 # Ensure the archiver fails upon bogus file names. 6547 rm -f conftest.$ac_objext libconftest.a 6548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6549 (eval $lt_ar_try) 2>&5 6550 ac_status=$? 6551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6552 test $ac_status = 0; } 6553 if test 0 -ne "$ac_status"; then 6554 lt_cv_ar_at_file=@ 6555 fi 6556 fi 6557 rm -f conftest.* libconftest.a 6558 6559 fi 6560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6561 ;; 6562 esac 6563 fi 6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6565 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6566 6567 if test no = "$lt_cv_ar_at_file"; then 6568 archiver_list_spec= 6569 else 6570 archiver_list_spec=$lt_cv_ar_at_file 6571 fi 6572 6573 6574 6575 6576 6577 6578 6579 if test -n "$ac_tool_prefix"; then 6580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6581 set dummy ${ac_tool_prefix}strip; ac_word=$2 6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6583 printf %s "checking for $ac_word... " >&6; } 6584 if test ${ac_cv_prog_STRIP+y} 6585 then : 6586 printf %s "(cached) " >&6 6587 else case e in #( 6588 e) if test -n "$STRIP"; then 6589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6590 else 6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6592 for as_dir in $PATH 6593 do 6594 IFS=$as_save_IFS 6595 case $as_dir in #((( 6596 '') as_dir=./ ;; 6597 */) ;; 6598 *) as_dir=$as_dir/ ;; 6599 esac 6600 for ac_exec_ext in '' $ac_executable_extensions; do 6601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6602 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6604 break 2 6605 fi 6606 done 6607 done 6608 IFS=$as_save_IFS 6609 6610 fi ;; 6611 esac 6612 fi 6613 STRIP=$ac_cv_prog_STRIP 6614 if test -n "$STRIP"; then 6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6616 printf "%s\n" "$STRIP" >&6; } 6617 else 6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6619 printf "%s\n" "no" >&6; } 6620 fi 6621 6622 6623 fi 6624 if test -z "$ac_cv_prog_STRIP"; then 6625 ac_ct_STRIP=$STRIP 6626 # Extract the first word of "strip", so it can be a program name with args. 6627 set dummy strip; ac_word=$2 6628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6629 printf %s "checking for $ac_word... " >&6; } 6630 if test ${ac_cv_prog_ac_ct_STRIP+y} 6631 then : 6632 printf %s "(cached) " >&6 6633 else case e in #( 6634 e) if test -n "$ac_ct_STRIP"; then 6635 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6636 else 6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6638 for as_dir in $PATH 6639 do 6640 IFS=$as_save_IFS 6641 case $as_dir in #((( 6642 '') as_dir=./ ;; 6643 */) ;; 6644 *) as_dir=$as_dir/ ;; 6645 esac 6646 for ac_exec_ext in '' $ac_executable_extensions; do 6647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6648 ac_cv_prog_ac_ct_STRIP="strip" 6649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6650 break 2 6651 fi 6652 done 6653 done 6654 IFS=$as_save_IFS 6655 6656 fi ;; 6657 esac 6658 fi 6659 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6660 if test -n "$ac_ct_STRIP"; then 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6662 printf "%s\n" "$ac_ct_STRIP" >&6; } 6663 else 6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6665 printf "%s\n" "no" >&6; } 6666 fi 6667 6668 if test "x$ac_ct_STRIP" = x; then 6669 STRIP=":" 6670 else 6671 case $cross_compiling:$ac_tool_warned in 6672 yes:) 6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6674 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6675 ac_tool_warned=yes ;; 6676 esac 6677 STRIP=$ac_ct_STRIP 6678 fi 6679 else 6680 STRIP="$ac_cv_prog_STRIP" 6681 fi 6682 6683 test -z "$STRIP" && STRIP=: 6684 6685 6686 6687 6688 6689 6690 if test -n "$ac_tool_prefix"; then 6691 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6694 printf %s "checking for $ac_word... " >&6; } 6695 if test ${ac_cv_prog_RANLIB+y} 6696 then : 6697 printf %s "(cached) " >&6 6698 else case e in #( 6699 e) if test -n "$RANLIB"; then 6700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6701 else 6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703 for as_dir in $PATH 6704 do 6705 IFS=$as_save_IFS 6706 case $as_dir in #((( 6707 '') as_dir=./ ;; 6708 */) ;; 6709 *) as_dir=$as_dir/ ;; 6710 esac 6711 for ac_exec_ext in '' $ac_executable_extensions; do 6712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6713 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6715 break 2 6716 fi 6717 done 6718 done 6719 IFS=$as_save_IFS 6720 6721 fi ;; 6722 esac 6723 fi 6724 RANLIB=$ac_cv_prog_RANLIB 6725 if test -n "$RANLIB"; then 6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6727 printf "%s\n" "$RANLIB" >&6; } 6728 else 6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6730 printf "%s\n" "no" >&6; } 6731 fi 6732 6733 6734 fi 6735 if test -z "$ac_cv_prog_RANLIB"; then 6736 ac_ct_RANLIB=$RANLIB 6737 # Extract the first word of "ranlib", so it can be a program name with args. 6738 set dummy ranlib; ac_word=$2 6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6740 printf %s "checking for $ac_word... " >&6; } 6741 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6742 then : 6743 printf %s "(cached) " >&6 6744 else case e in #( 6745 e) if test -n "$ac_ct_RANLIB"; then 6746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6747 else 6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6749 for as_dir in $PATH 6750 do 6751 IFS=$as_save_IFS 6752 case $as_dir in #((( 6753 '') as_dir=./ ;; 6754 */) ;; 6755 *) as_dir=$as_dir/ ;; 6756 esac 6757 for ac_exec_ext in '' $ac_executable_extensions; do 6758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6759 ac_cv_prog_ac_ct_RANLIB="ranlib" 6760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6761 break 2 6762 fi 6763 done 6764 done 6765 IFS=$as_save_IFS 6766 6767 fi ;; 6768 esac 6769 fi 6770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6771 if test -n "$ac_ct_RANLIB"; then 6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6773 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6774 else 6775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6776 printf "%s\n" "no" >&6; } 6777 fi 6778 6779 if test "x$ac_ct_RANLIB" = x; then 6780 RANLIB=":" 6781 else 6782 case $cross_compiling:$ac_tool_warned in 6783 yes:) 6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6785 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6786 ac_tool_warned=yes ;; 6787 esac 6788 RANLIB=$ac_ct_RANLIB 6789 fi 6790 else 6791 RANLIB="$ac_cv_prog_RANLIB" 6792 fi 6793 6794 test -z "$RANLIB" && RANLIB=: 6795 6796 6797 6798 6799 6800 6801 # Determine commands to create old-style static archives. 6802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6803 old_postinstall_cmds='chmod 644 $oldlib' 6804 old_postuninstall_cmds= 6805 6806 if test -n "$RANLIB"; then 6807 case $host_os in 6808 bitrig* | openbsd*) 6809 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6810 ;; 6811 *) 6812 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6813 ;; 6814 esac 6815 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6816 fi 6817 6818 case $host_os in 6819 darwin*) 6820 lock_old_archive_extraction=yes ;; 6821 *) 6822 lock_old_archive_extraction=no ;; 6823 esac 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 # If no C compiler was specified, use CC. 6864 LTCC=${LTCC-"$CC"} 6865 6866 # If no C compiler flags were specified, use CFLAGS. 6867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6868 6869 # Allow CC to be a program name with arguments. 6870 compiler=$CC 6871 6872 6873 # Check for command to grab the raw symbol name followed by C symbol from nm. 6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6875 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6876 if test ${lt_cv_sys_global_symbol_pipe+y} 6877 then : 6878 printf %s "(cached) " >&6 6879 else case e in #( 6880 e) 6881 # These are sane defaults that work on at least a few old systems. 6882 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6883 6884 # Character class describing NM global symbol codes. 6885 symcode='[BCDEGRST]' 6886 6887 # Regexp to match symbols that can be accessed directly from C. 6888 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6889 6890 # Define system-specific variables. 6891 case $host_os in 6892 aix*) 6893 symcode='[BCDT]' 6894 ;; 6895 cygwin* | mingw* | pw32* | cegcc*) 6896 symcode='[ABCDGISTW]' 6897 ;; 6898 hpux*) 6899 if test ia64 = "$host_cpu"; then 6900 symcode='[ABCDEGRST]' 6901 fi 6902 ;; 6903 irix* | nonstopux*) 6904 symcode='[BCDEGRST]' 6905 ;; 6906 osf*) 6907 symcode='[BCDEGQRST]' 6908 ;; 6909 solaris*) 6910 symcode='[BDRT]' 6911 ;; 6912 sco3.2v5*) 6913 symcode='[DT]' 6914 ;; 6915 sysv4.2uw2*) 6916 symcode='[DT]' 6917 ;; 6918 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6919 symcode='[ABDT]' 6920 ;; 6921 sysv4) 6922 symcode='[DFNSTU]' 6923 ;; 6924 esac 6925 6926 # If we're using GNU nm, then use its standard symbol codes. 6927 case `$NM -V 2>&1` in 6928 *GNU* | *'with BFD'*) 6929 symcode='[ABCDGIRSTW]' ;; 6930 esac 6931 6932 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6933 # Gets list of data symbols to import. 6934 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6935 # Adjust the below global symbol transforms to fixup imported variables. 6936 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6937 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6938 lt_c_name_lib_hook="\ 6939 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6940 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6941 else 6942 # Disable hooks by default. 6943 lt_cv_sys_global_symbol_to_import= 6944 lt_cdecl_hook= 6945 lt_c_name_hook= 6946 lt_c_name_lib_hook= 6947 fi 6948 6949 # Transform an extracted symbol line into a proper C declaration. 6950 # Some systems (esp. on ia64) link data and code symbols differently, 6951 # so use this general approach. 6952 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6953 $lt_cdecl_hook\ 6954 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6955 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6956 6957 # Transform an extracted symbol line into symbol name and symbol address 6958 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6959 $lt_c_name_hook\ 6960 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6961 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6962 6963 # Transform an extracted symbol line into symbol name with lib prefix and 6964 # symbol address. 6965 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6966 $lt_c_name_lib_hook\ 6967 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6968 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6969 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6970 6971 # Handle CRLF in mingw tool chain 6972 opt_cr= 6973 case $build_os in 6974 mingw*) 6975 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6976 ;; 6977 esac 6978 6979 # Try without a prefix underscore, then with it. 6980 for ac_symprfx in "" "_"; do 6981 6982 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6983 symxfrm="\\1 $ac_symprfx\\2 \\2" 6984 6985 # Write the raw and C identifiers. 6986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6987 # Fake it for dumpbin and say T for any non-static function, 6988 # D for any global variable and I for any imported variable. 6989 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6990 # which start with @ or ?. 6991 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6992 " {last_section=section; section=\$ 3};"\ 6993 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6994 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6995 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6996 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6997 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6998 " \$ 0!~/External *\|/{next};"\ 6999 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7000 " {if(hide[section]) next};"\ 7001 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7002 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7003 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7004 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7005 " ' prfx=^$ac_symprfx" 7006 else 7007 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7008 fi 7009 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7010 7011 # Check to see that the pipe works correctly. 7012 pipe_works=no 7013 7014 rm -f conftest* 7015 cat > conftest.$ac_ext <<_LT_EOF 7016 #ifdef __cplusplus 7017 extern "C" { 7018 #endif 7019 char nm_test_var; 7020 void nm_test_func(void); 7021 void nm_test_func(void){} 7022 #ifdef __cplusplus 7023 } 7024 #endif 7025 int main(){nm_test_var='a';nm_test_func();return(0);} 7026 _LT_EOF 7027 7028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7029 (eval $ac_compile) 2>&5 7030 ac_status=$? 7031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7032 test $ac_status = 0; }; then 7033 # Now try to grab the symbols. 7034 nlist=conftest.nm 7035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7036 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7037 ac_status=$? 7038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7039 test $ac_status = 0; } && test -s "$nlist"; then 7040 # Try sorting and uniquifying the output. 7041 if sort "$nlist" | uniq > "$nlist"T; then 7042 mv -f "$nlist"T "$nlist" 7043 else 7044 rm -f "$nlist"T 7045 fi 7046 7047 # Make sure that we snagged all the symbols we need. 7048 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7049 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7050 cat <<_LT_EOF > conftest.$ac_ext 7051 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7052 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7053 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7054 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7055 # define LT_DLSYM_CONST 7056 #elif defined __osf__ 7057 /* This system does not cope well with relocations in const data. */ 7058 # define LT_DLSYM_CONST 7059 #else 7060 # define LT_DLSYM_CONST const 7061 #endif 7062 7063 #ifdef __cplusplus 7064 extern "C" { 7065 #endif 7066 7067 _LT_EOF 7068 # Now generate the symbol file. 7069 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7070 7071 cat <<_LT_EOF >> conftest.$ac_ext 7072 7073 /* The mapping between symbol names and symbols. */ 7074 LT_DLSYM_CONST struct { 7075 const char *name; 7076 void *address; 7077 } 7078 lt__PROGRAM__LTX_preloaded_symbols[] = 7079 { 7080 { "@PROGRAM@", (void *) 0 }, 7081 _LT_EOF 7082 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7083 cat <<\_LT_EOF >> conftest.$ac_ext 7084 {0, (void *) 0} 7085 }; 7086 7087 /* This works around a problem in FreeBSD linker */ 7088 #ifdef FREEBSD_WORKAROUND 7089 static const void *lt_preloaded_setup() { 7090 return lt__PROGRAM__LTX_preloaded_symbols; 7091 } 7092 #endif 7093 7094 #ifdef __cplusplus 7095 } 7096 #endif 7097 _LT_EOF 7098 # Now try linking the two files. 7099 mv conftest.$ac_objext conftstm.$ac_objext 7100 lt_globsym_save_LIBS=$LIBS 7101 lt_globsym_save_CFLAGS=$CFLAGS 7102 LIBS=conftstm.$ac_objext 7103 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7105 (eval $ac_link) 2>&5 7106 ac_status=$? 7107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7108 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7109 pipe_works=yes 7110 fi 7111 LIBS=$lt_globsym_save_LIBS 7112 CFLAGS=$lt_globsym_save_CFLAGS 7113 else 7114 echo "cannot find nm_test_func in $nlist" >&5 7115 fi 7116 else 7117 echo "cannot find nm_test_var in $nlist" >&5 7118 fi 7119 else 7120 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7121 fi 7122 else 7123 echo "$progname: failed program was:" >&5 7124 cat conftest.$ac_ext >&5 7125 fi 7126 rm -rf conftest* conftst* 7127 7128 # Do not use the global_symbol_pipe unless it works. 7129 if test yes = "$pipe_works"; then 7130 break 7131 else 7132 lt_cv_sys_global_symbol_pipe= 7133 fi 7134 done 7135 ;; 7136 esac 7137 fi 7138 7139 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7140 lt_cv_sys_global_symbol_to_cdecl= 7141 fi 7142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7144 printf "%s\n" "failed" >&6; } 7145 else 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7147 printf "%s\n" "ok" >&6; } 7148 fi 7149 7150 # Response file support. 7151 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7152 nm_file_list_spec='@' 7153 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7154 nm_file_list_spec='@' 7155 fi 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7194 printf %s "checking for sysroot... " >&6; } 7195 7196 # Check whether --with-sysroot was given. 7197 if test ${with_sysroot+y} 7198 then : 7199 withval=$with_sysroot; 7200 else case e in #( 7201 e) with_sysroot=no ;; 7202 esac 7203 fi 7204 7205 7206 lt_sysroot= 7207 case $with_sysroot in #( 7208 yes) 7209 if test yes = "$GCC"; then 7210 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7211 fi 7212 ;; #( 7213 /*) 7214 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7215 ;; #( 7216 no|'') 7217 ;; #( 7218 *) 7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7220 printf "%s\n" "$with_sysroot" >&6; } 7221 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7222 ;; 7223 esac 7224 7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7226 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7227 7228 7229 7230 7231 7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7233 printf %s "checking for a working dd... " >&6; } 7234 if test ${ac_cv_path_lt_DD+y} 7235 then : 7236 printf %s "(cached) " >&6 7237 else case e in #( 7238 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7239 cat conftest.i conftest.i >conftest2.i 7240 : ${lt_DD:=$DD} 7241 if test -z "$lt_DD"; then 7242 ac_path_lt_DD_found=false 7243 # Loop through the user's path and test for each of PROGNAME-LIST 7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7245 for as_dir in $PATH 7246 do 7247 IFS=$as_save_IFS 7248 case $as_dir in #((( 7249 '') as_dir=./ ;; 7250 */) ;; 7251 *) as_dir=$as_dir/ ;; 7252 esac 7253 for ac_prog in dd 7254 do 7255 for ac_exec_ext in '' $ac_executable_extensions; do 7256 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7257 as_fn_executable_p "$ac_path_lt_DD" || continue 7258 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7259 cmp -s conftest.i conftest.out \ 7260 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7261 fi 7262 $ac_path_lt_DD_found && break 3 7263 done 7264 done 7265 done 7266 IFS=$as_save_IFS 7267 if test -z "$ac_cv_path_lt_DD"; then 7268 : 7269 fi 7270 else 7271 ac_cv_path_lt_DD=$lt_DD 7272 fi 7273 7274 rm -f conftest.i conftest2.i conftest.out ;; 7275 esac 7276 fi 7277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7278 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7279 7280 7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7282 printf %s "checking how to truncate binary pipes... " >&6; } 7283 if test ${lt_cv_truncate_bin+y} 7284 then : 7285 printf %s "(cached) " >&6 7286 else case e in #( 7287 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7288 cat conftest.i conftest.i >conftest2.i 7289 lt_cv_truncate_bin= 7290 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7291 cmp -s conftest.i conftest.out \ 7292 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7293 fi 7294 rm -f conftest.i conftest2.i conftest.out 7295 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7296 esac 7297 fi 7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7299 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7300 7301 7302 7303 7304 7305 7306 7307 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7308 func_cc_basename () 7309 { 7310 for cc_temp in $*""; do 7311 case $cc_temp in 7312 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7313 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7314 \-*) ;; 7315 *) break;; 7316 esac 7317 done 7318 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7319 } 7320 7321 # Check whether --enable-libtool-lock was given. 7322 if test ${enable_libtool_lock+y} 7323 then : 7324 enableval=$enable_libtool_lock; 7325 fi 7326 7327 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7328 7329 # Some flags need to be propagated to the compiler or linker for good 7330 # libtool support. 7331 case $host in 7332 ia64-*-hpux*) 7333 # Find out what ABI is being produced by ac_compile, and set mode 7334 # options accordingly. 7335 echo 'int i;' > conftest.$ac_ext 7336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7337 (eval $ac_compile) 2>&5 7338 ac_status=$? 7339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7340 test $ac_status = 0; }; then 7341 case `$FILECMD conftest.$ac_objext` in 7342 *ELF-32*) 7343 HPUX_IA64_MODE=32 7344 ;; 7345 *ELF-64*) 7346 HPUX_IA64_MODE=64 7347 ;; 7348 esac 7349 fi 7350 rm -rf conftest* 7351 ;; 7352 *-*-irix6*) 7353 # Find out what ABI is being produced by ac_compile, and set linker 7354 # options accordingly. 7355 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7357 (eval $ac_compile) 2>&5 7358 ac_status=$? 7359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7360 test $ac_status = 0; }; then 7361 if test yes = "$lt_cv_prog_gnu_ld"; then 7362 case `$FILECMD conftest.$ac_objext` in 7363 *32-bit*) 7364 LD="${LD-ld} -melf32bsmip" 7365 ;; 7366 *N32*) 7367 LD="${LD-ld} -melf32bmipn32" 7368 ;; 7369 *64-bit*) 7370 LD="${LD-ld} -melf64bmip" 7371 ;; 7372 esac 7373 else 7374 case `$FILECMD conftest.$ac_objext` in 7375 *32-bit*) 7376 LD="${LD-ld} -32" 7377 ;; 7378 *N32*) 7379 LD="${LD-ld} -n32" 7380 ;; 7381 *64-bit*) 7382 LD="${LD-ld} -64" 7383 ;; 7384 esac 7385 fi 7386 fi 7387 rm -rf conftest* 7388 ;; 7389 7390 mips64*-*linux*) 7391 # Find out what ABI is being produced by ac_compile, and set linker 7392 # options accordingly. 7393 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7395 (eval $ac_compile) 2>&5 7396 ac_status=$? 7397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7398 test $ac_status = 0; }; then 7399 emul=elf 7400 case `$FILECMD conftest.$ac_objext` in 7401 *32-bit*) 7402 emul="${emul}32" 7403 ;; 7404 *64-bit*) 7405 emul="${emul}64" 7406 ;; 7407 esac 7408 case `$FILECMD conftest.$ac_objext` in 7409 *MSB*) 7410 emul="${emul}btsmip" 7411 ;; 7412 *LSB*) 7413 emul="${emul}ltsmip" 7414 ;; 7415 esac 7416 case `$FILECMD conftest.$ac_objext` in 7417 *N32*) 7418 emul="${emul}n32" 7419 ;; 7420 esac 7421 LD="${LD-ld} -m $emul" 7422 fi 7423 rm -rf conftest* 7424 ;; 7425 7426 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7427 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7428 # Find out what ABI is being produced by ac_compile, and set linker 7429 # options accordingly. Note that the listed cases only cover the 7430 # situations where additional linker options are needed (such as when 7431 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7432 # vice versa); the common cases where no linker options are needed do 7433 # not appear in the list. 7434 echo 'int i;' > conftest.$ac_ext 7435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7436 (eval $ac_compile) 2>&5 7437 ac_status=$? 7438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7439 test $ac_status = 0; }; then 7440 case `$FILECMD conftest.o` in 7441 *32-bit*) 7442 case $host in 7443 x86_64-*kfreebsd*-gnu) 7444 LD="${LD-ld} -m elf_i386_fbsd" 7445 ;; 7446 x86_64-*linux*) 7447 case `$FILECMD conftest.o` in 7448 *x86-64*) 7449 LD="${LD-ld} -m elf32_x86_64" 7450 ;; 7451 *) 7452 LD="${LD-ld} -m elf_i386" 7453 ;; 7454 esac 7455 ;; 7456 powerpc64le-*linux*) 7457 LD="${LD-ld} -m elf32lppclinux" 7458 ;; 7459 powerpc64-*linux*) 7460 LD="${LD-ld} -m elf32ppclinux" 7461 ;; 7462 s390x-*linux*) 7463 LD="${LD-ld} -m elf_s390" 7464 ;; 7465 sparc64-*linux*) 7466 LD="${LD-ld} -m elf32_sparc" 7467 ;; 7468 esac 7469 ;; 7470 *64-bit*) 7471 case $host in 7472 x86_64-*kfreebsd*-gnu) 7473 LD="${LD-ld} -m elf_x86_64_fbsd" 7474 ;; 7475 x86_64-*linux*) 7476 LD="${LD-ld} -m elf_x86_64" 7477 ;; 7478 powerpcle-*linux*) 7479 LD="${LD-ld} -m elf64lppc" 7480 ;; 7481 powerpc-*linux*) 7482 LD="${LD-ld} -m elf64ppc" 7483 ;; 7484 s390*-*linux*|s390*-*tpf*) 7485 LD="${LD-ld} -m elf64_s390" 7486 ;; 7487 sparc*-*linux*) 7488 LD="${LD-ld} -m elf64_sparc" 7489 ;; 7490 esac 7491 ;; 7492 esac 7493 fi 7494 rm -rf conftest* 7495 ;; 7496 7497 *-*-sco3.2v5*) 7498 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7499 SAVE_CFLAGS=$CFLAGS 7500 CFLAGS="$CFLAGS -belf" 7501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7502 printf %s "checking whether the C compiler needs -belf... " >&6; } 7503 if test ${lt_cv_cc_needs_belf+y} 7504 then : 7505 printf %s "(cached) " >&6 7506 else case e in #( 7507 e) ac_ext=c 7508 ac_cpp='$CPP $CPPFLAGS' 7509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7511 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7512 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514 /* end confdefs.h. */ 7515 7516 int 7517 main (void) 7518 { 7519 7520 ; 7521 return 0; 7522 } 7523 _ACEOF 7524 if ac_fn_c_try_link "$LINENO" 7525 then : 7526 lt_cv_cc_needs_belf=yes 7527 else case e in #( 7528 e) lt_cv_cc_needs_belf=no ;; 7529 esac 7530 fi 7531 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7532 conftest$ac_exeext conftest.$ac_ext 7533 ac_ext=c 7534 ac_cpp='$CPP $CPPFLAGS' 7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7538 ;; 7539 esac 7540 fi 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7542 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7543 if test yes != "$lt_cv_cc_needs_belf"; then 7544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7545 CFLAGS=$SAVE_CFLAGS 7546 fi 7547 ;; 7548 *-*solaris*) 7549 # Find out what ABI is being produced by ac_compile, and set linker 7550 # options accordingly. 7551 echo 'int i;' > conftest.$ac_ext 7552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7553 (eval $ac_compile) 2>&5 7554 ac_status=$? 7555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7556 test $ac_status = 0; }; then 7557 case `$FILECMD conftest.o` in 7558 *64-bit*) 7559 case $lt_cv_prog_gnu_ld in 7560 yes*) 7561 case $host in 7562 i?86-*-solaris*|x86_64-*-solaris*) 7563 LD="${LD-ld} -m elf_x86_64" 7564 ;; 7565 sparc*-*-solaris*) 7566 LD="${LD-ld} -m elf64_sparc" 7567 ;; 7568 esac 7569 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7570 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7571 LD=${LD-ld}_sol2 7572 fi 7573 ;; 7574 *) 7575 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7576 LD="${LD-ld} -64" 7577 fi 7578 ;; 7579 esac 7580 ;; 7581 esac 7582 fi 7583 rm -rf conftest* 7584 ;; 7585 esac 7586 7587 need_locks=$enable_libtool_lock 7588 7589 if test -n "$ac_tool_prefix"; then 7590 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7591 set dummy ${ac_tool_prefix}mt; ac_word=$2 7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7593 printf %s "checking for $ac_word... " >&6; } 7594 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7595 then : 7596 printf %s "(cached) " >&6 7597 else case e in #( 7598 e) if test -n "$MANIFEST_TOOL"; then 7599 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7600 else 7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7602 for as_dir in $PATH 7603 do 7604 IFS=$as_save_IFS 7605 case $as_dir in #((( 7606 '') as_dir=./ ;; 7607 */) ;; 7608 *) as_dir=$as_dir/ ;; 7609 esac 7610 for ac_exec_ext in '' $ac_executable_extensions; do 7611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7612 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7614 break 2 7615 fi 7616 done 7617 done 7618 IFS=$as_save_IFS 7619 7620 fi ;; 7621 esac 7622 fi 7623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7624 if test -n "$MANIFEST_TOOL"; then 7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7626 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7627 else 7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7629 printf "%s\n" "no" >&6; } 7630 fi 7631 7632 7633 fi 7634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7636 # Extract the first word of "mt", so it can be a program name with args. 7637 set dummy mt; ac_word=$2 7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7639 printf %s "checking for $ac_word... " >&6; } 7640 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7641 then : 7642 printf %s "(cached) " >&6 7643 else case e in #( 7644 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 7645 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7646 else 7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7648 for as_dir in $PATH 7649 do 7650 IFS=$as_save_IFS 7651 case $as_dir in #((( 7652 '') as_dir=./ ;; 7653 */) ;; 7654 *) as_dir=$as_dir/ ;; 7655 esac 7656 for ac_exec_ext in '' $ac_executable_extensions; do 7657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7658 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7660 break 2 7661 fi 7662 done 7663 done 7664 IFS=$as_save_IFS 7665 7666 fi ;; 7667 esac 7668 fi 7669 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7670 if test -n "$ac_ct_MANIFEST_TOOL"; then 7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7672 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7673 else 7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7675 printf "%s\n" "no" >&6; } 7676 fi 7677 7678 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7679 MANIFEST_TOOL=":" 7680 else 7681 case $cross_compiling:$ac_tool_warned in 7682 yes:) 7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7684 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7685 ac_tool_warned=yes ;; 7686 esac 7687 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7688 fi 7689 else 7690 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7691 fi 7692 7693 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7695 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7696 if test ${lt_cv_path_mainfest_tool+y} 7697 then : 7698 printf %s "(cached) " >&6 7699 else case e in #( 7700 e) lt_cv_path_mainfest_tool=no 7701 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7702 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7703 cat conftest.err >&5 7704 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7705 lt_cv_path_mainfest_tool=yes 7706 fi 7707 rm -f conftest* ;; 7708 esac 7709 fi 7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7711 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7712 if test yes != "$lt_cv_path_mainfest_tool"; then 7713 MANIFEST_TOOL=: 7714 fi 7715 7716 7717 7718 7719 7720 7721 case $host_os in 7722 rhapsody* | darwin*) 7723 if test -n "$ac_tool_prefix"; then 7724 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7725 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7727 printf %s "checking for $ac_word... " >&6; } 7728 if test ${ac_cv_prog_DSYMUTIL+y} 7729 then : 7730 printf %s "(cached) " >&6 7731 else case e in #( 7732 e) if test -n "$DSYMUTIL"; then 7733 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7734 else 7735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7736 for as_dir in $PATH 7737 do 7738 IFS=$as_save_IFS 7739 case $as_dir in #((( 7740 '') as_dir=./ ;; 7741 */) ;; 7742 *) as_dir=$as_dir/ ;; 7743 esac 7744 for ac_exec_ext in '' $ac_executable_extensions; do 7745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7746 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7748 break 2 7749 fi 7750 done 7751 done 7752 IFS=$as_save_IFS 7753 7754 fi ;; 7755 esac 7756 fi 7757 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7758 if test -n "$DSYMUTIL"; then 7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7760 printf "%s\n" "$DSYMUTIL" >&6; } 7761 else 7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7763 printf "%s\n" "no" >&6; } 7764 fi 7765 7766 7767 fi 7768 if test -z "$ac_cv_prog_DSYMUTIL"; then 7769 ac_ct_DSYMUTIL=$DSYMUTIL 7770 # Extract the first word of "dsymutil", so it can be a program name with args. 7771 set dummy dsymutil; ac_word=$2 7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7773 printf %s "checking for $ac_word... " >&6; } 7774 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7775 then : 7776 printf %s "(cached) " >&6 7777 else case e in #( 7778 e) if test -n "$ac_ct_DSYMUTIL"; then 7779 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7780 else 7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7782 for as_dir in $PATH 7783 do 7784 IFS=$as_save_IFS 7785 case $as_dir in #((( 7786 '') as_dir=./ ;; 7787 */) ;; 7788 *) as_dir=$as_dir/ ;; 7789 esac 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7792 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796 done 7797 done 7798 IFS=$as_save_IFS 7799 7800 fi ;; 7801 esac 7802 fi 7803 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7804 if test -n "$ac_ct_DSYMUTIL"; then 7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7806 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7807 else 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7809 printf "%s\n" "no" >&6; } 7810 fi 7811 7812 if test "x$ac_ct_DSYMUTIL" = x; then 7813 DSYMUTIL=":" 7814 else 7815 case $cross_compiling:$ac_tool_warned in 7816 yes:) 7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7818 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7819 ac_tool_warned=yes ;; 7820 esac 7821 DSYMUTIL=$ac_ct_DSYMUTIL 7822 fi 7823 else 7824 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7825 fi 7826 7827 if test -n "$ac_tool_prefix"; then 7828 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7829 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7831 printf %s "checking for $ac_word... " >&6; } 7832 if test ${ac_cv_prog_NMEDIT+y} 7833 then : 7834 printf %s "(cached) " >&6 7835 else case e in #( 7836 e) if test -n "$NMEDIT"; then 7837 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7838 else 7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7840 for as_dir in $PATH 7841 do 7842 IFS=$as_save_IFS 7843 case $as_dir in #((( 7844 '') as_dir=./ ;; 7845 */) ;; 7846 *) as_dir=$as_dir/ ;; 7847 esac 7848 for ac_exec_ext in '' $ac_executable_extensions; do 7849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7850 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7852 break 2 7853 fi 7854 done 7855 done 7856 IFS=$as_save_IFS 7857 7858 fi ;; 7859 esac 7860 fi 7861 NMEDIT=$ac_cv_prog_NMEDIT 7862 if test -n "$NMEDIT"; then 7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7864 printf "%s\n" "$NMEDIT" >&6; } 7865 else 7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7867 printf "%s\n" "no" >&6; } 7868 fi 7869 7870 7871 fi 7872 if test -z "$ac_cv_prog_NMEDIT"; then 7873 ac_ct_NMEDIT=$NMEDIT 7874 # Extract the first word of "nmedit", so it can be a program name with args. 7875 set dummy nmedit; ac_word=$2 7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7877 printf %s "checking for $ac_word... " >&6; } 7878 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7879 then : 7880 printf %s "(cached) " >&6 7881 else case e in #( 7882 e) if test -n "$ac_ct_NMEDIT"; then 7883 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7884 else 7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7886 for as_dir in $PATH 7887 do 7888 IFS=$as_save_IFS 7889 case $as_dir in #((( 7890 '') as_dir=./ ;; 7891 */) ;; 7892 *) as_dir=$as_dir/ ;; 7893 esac 7894 for ac_exec_ext in '' $ac_executable_extensions; do 7895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7896 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7898 break 2 7899 fi 7900 done 7901 done 7902 IFS=$as_save_IFS 7903 7904 fi ;; 7905 esac 7906 fi 7907 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7908 if test -n "$ac_ct_NMEDIT"; then 7909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7910 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7911 else 7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7913 printf "%s\n" "no" >&6; } 7914 fi 7915 7916 if test "x$ac_ct_NMEDIT" = x; then 7917 NMEDIT=":" 7918 else 7919 case $cross_compiling:$ac_tool_warned in 7920 yes:) 7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7922 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7923 ac_tool_warned=yes ;; 7924 esac 7925 NMEDIT=$ac_ct_NMEDIT 7926 fi 7927 else 7928 NMEDIT="$ac_cv_prog_NMEDIT" 7929 fi 7930 7931 if test -n "$ac_tool_prefix"; then 7932 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7933 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7935 printf %s "checking for $ac_word... " >&6; } 7936 if test ${ac_cv_prog_LIPO+y} 7937 then : 7938 printf %s "(cached) " >&6 7939 else case e in #( 7940 e) if test -n "$LIPO"; then 7941 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7942 else 7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7944 for as_dir in $PATH 7945 do 7946 IFS=$as_save_IFS 7947 case $as_dir in #((( 7948 '') as_dir=./ ;; 7949 */) ;; 7950 *) as_dir=$as_dir/ ;; 7951 esac 7952 for ac_exec_ext in '' $ac_executable_extensions; do 7953 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7954 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7956 break 2 7957 fi 7958 done 7959 done 7960 IFS=$as_save_IFS 7961 7962 fi ;; 7963 esac 7964 fi 7965 LIPO=$ac_cv_prog_LIPO 7966 if test -n "$LIPO"; then 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7968 printf "%s\n" "$LIPO" >&6; } 7969 else 7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7971 printf "%s\n" "no" >&6; } 7972 fi 7973 7974 7975 fi 7976 if test -z "$ac_cv_prog_LIPO"; then 7977 ac_ct_LIPO=$LIPO 7978 # Extract the first word of "lipo", so it can be a program name with args. 7979 set dummy lipo; ac_word=$2 7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7981 printf %s "checking for $ac_word... " >&6; } 7982 if test ${ac_cv_prog_ac_ct_LIPO+y} 7983 then : 7984 printf %s "(cached) " >&6 7985 else case e in #( 7986 e) if test -n "$ac_ct_LIPO"; then 7987 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7988 else 7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7990 for as_dir in $PATH 7991 do 7992 IFS=$as_save_IFS 7993 case $as_dir in #((( 7994 '') as_dir=./ ;; 7995 */) ;; 7996 *) as_dir=$as_dir/ ;; 7997 esac 7998 for ac_exec_ext in '' $ac_executable_extensions; do 7999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8000 ac_cv_prog_ac_ct_LIPO="lipo" 8001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8002 break 2 8003 fi 8004 done 8005 done 8006 IFS=$as_save_IFS 8007 8008 fi ;; 8009 esac 8010 fi 8011 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8012 if test -n "$ac_ct_LIPO"; then 8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8014 printf "%s\n" "$ac_ct_LIPO" >&6; } 8015 else 8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8017 printf "%s\n" "no" >&6; } 8018 fi 8019 8020 if test "x$ac_ct_LIPO" = x; then 8021 LIPO=":" 8022 else 8023 case $cross_compiling:$ac_tool_warned in 8024 yes:) 8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8026 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8027 ac_tool_warned=yes ;; 8028 esac 8029 LIPO=$ac_ct_LIPO 8030 fi 8031 else 8032 LIPO="$ac_cv_prog_LIPO" 8033 fi 8034 8035 if test -n "$ac_tool_prefix"; then 8036 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8037 set dummy ${ac_tool_prefix}otool; ac_word=$2 8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8039 printf %s "checking for $ac_word... " >&6; } 8040 if test ${ac_cv_prog_OTOOL+y} 8041 then : 8042 printf %s "(cached) " >&6 8043 else case e in #( 8044 e) if test -n "$OTOOL"; then 8045 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8046 else 8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8048 for as_dir in $PATH 8049 do 8050 IFS=$as_save_IFS 8051 case $as_dir in #((( 8052 '') as_dir=./ ;; 8053 */) ;; 8054 *) as_dir=$as_dir/ ;; 8055 esac 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8058 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8060 break 2 8061 fi 8062 done 8063 done 8064 IFS=$as_save_IFS 8065 8066 fi ;; 8067 esac 8068 fi 8069 OTOOL=$ac_cv_prog_OTOOL 8070 if test -n "$OTOOL"; then 8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8072 printf "%s\n" "$OTOOL" >&6; } 8073 else 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075 printf "%s\n" "no" >&6; } 8076 fi 8077 8078 8079 fi 8080 if test -z "$ac_cv_prog_OTOOL"; then 8081 ac_ct_OTOOL=$OTOOL 8082 # Extract the first word of "otool", so it can be a program name with args. 8083 set dummy otool; ac_word=$2 8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8085 printf %s "checking for $ac_word... " >&6; } 8086 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8087 then : 8088 printf %s "(cached) " >&6 8089 else case e in #( 8090 e) if test -n "$ac_ct_OTOOL"; then 8091 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8092 else 8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8094 for as_dir in $PATH 8095 do 8096 IFS=$as_save_IFS 8097 case $as_dir in #((( 8098 '') as_dir=./ ;; 8099 */) ;; 8100 *) as_dir=$as_dir/ ;; 8101 esac 8102 for ac_exec_ext in '' $ac_executable_extensions; do 8103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8104 ac_cv_prog_ac_ct_OTOOL="otool" 8105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8106 break 2 8107 fi 8108 done 8109 done 8110 IFS=$as_save_IFS 8111 8112 fi ;; 8113 esac 8114 fi 8115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8116 if test -n "$ac_ct_OTOOL"; then 8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8118 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8119 else 8120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8121 printf "%s\n" "no" >&6; } 8122 fi 8123 8124 if test "x$ac_ct_OTOOL" = x; then 8125 OTOOL=":" 8126 else 8127 case $cross_compiling:$ac_tool_warned in 8128 yes:) 8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8130 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8131 ac_tool_warned=yes ;; 8132 esac 8133 OTOOL=$ac_ct_OTOOL 8134 fi 8135 else 8136 OTOOL="$ac_cv_prog_OTOOL" 8137 fi 8138 8139 if test -n "$ac_tool_prefix"; then 8140 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8141 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8143 printf %s "checking for $ac_word... " >&6; } 8144 if test ${ac_cv_prog_OTOOL64+y} 8145 then : 8146 printf %s "(cached) " >&6 8147 else case e in #( 8148 e) if test -n "$OTOOL64"; then 8149 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8150 else 8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8152 for as_dir in $PATH 8153 do 8154 IFS=$as_save_IFS 8155 case $as_dir in #((( 8156 '') as_dir=./ ;; 8157 */) ;; 8158 *) as_dir=$as_dir/ ;; 8159 esac 8160 for ac_exec_ext in '' $ac_executable_extensions; do 8161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8162 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8164 break 2 8165 fi 8166 done 8167 done 8168 IFS=$as_save_IFS 8169 8170 fi ;; 8171 esac 8172 fi 8173 OTOOL64=$ac_cv_prog_OTOOL64 8174 if test -n "$OTOOL64"; then 8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8176 printf "%s\n" "$OTOOL64" >&6; } 8177 else 8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8179 printf "%s\n" "no" >&6; } 8180 fi 8181 8182 8183 fi 8184 if test -z "$ac_cv_prog_OTOOL64"; then 8185 ac_ct_OTOOL64=$OTOOL64 8186 # Extract the first word of "otool64", so it can be a program name with args. 8187 set dummy otool64; ac_word=$2 8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8189 printf %s "checking for $ac_word... " >&6; } 8190 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8191 then : 8192 printf %s "(cached) " >&6 8193 else case e in #( 8194 e) if test -n "$ac_ct_OTOOL64"; then 8195 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8196 else 8197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8198 for as_dir in $PATH 8199 do 8200 IFS=$as_save_IFS 8201 case $as_dir in #((( 8202 '') as_dir=./ ;; 8203 */) ;; 8204 *) as_dir=$as_dir/ ;; 8205 esac 8206 for ac_exec_ext in '' $ac_executable_extensions; do 8207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8208 ac_cv_prog_ac_ct_OTOOL64="otool64" 8209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8210 break 2 8211 fi 8212 done 8213 done 8214 IFS=$as_save_IFS 8215 8216 fi ;; 8217 esac 8218 fi 8219 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8220 if test -n "$ac_ct_OTOOL64"; then 8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8222 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8223 else 8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8225 printf "%s\n" "no" >&6; } 8226 fi 8227 8228 if test "x$ac_ct_OTOOL64" = x; then 8229 OTOOL64=":" 8230 else 8231 case $cross_compiling:$ac_tool_warned in 8232 yes:) 8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8234 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8235 ac_tool_warned=yes ;; 8236 esac 8237 OTOOL64=$ac_ct_OTOOL64 8238 fi 8239 else 8240 OTOOL64="$ac_cv_prog_OTOOL64" 8241 fi 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8270 printf %s "checking for -single_module linker flag... " >&6; } 8271 if test ${lt_cv_apple_cc_single_mod+y} 8272 then : 8273 printf %s "(cached) " >&6 8274 else case e in #( 8275 e) lt_cv_apple_cc_single_mod=no 8276 if test -z "$LT_MULTI_MODULE"; then 8277 # By default we will add the -single_module flag. You can override 8278 # by either setting the environment variable LT_MULTI_MODULE 8279 # non-empty at configure time, or by adding -multi_module to the 8280 # link flags. 8281 rm -rf libconftest.dylib* 8282 echo "int foo(void){return 1;}" > conftest.c 8283 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8284 -dynamiclib -Wl,-single_module conftest.c" >&5 8285 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8286 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8287 _lt_result=$? 8288 # If there is a non-empty error log, and "single_module" 8289 # appears in it, assume the flag caused a linker warning 8290 if test -s conftest.err && $GREP single_module conftest.err; then 8291 cat conftest.err >&5 8292 # Otherwise, if the output was created with a 0 exit code from 8293 # the compiler, it worked. 8294 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8295 lt_cv_apple_cc_single_mod=yes 8296 else 8297 cat conftest.err >&5 8298 fi 8299 rm -rf libconftest.dylib* 8300 rm -f conftest.* 8301 fi ;; 8302 esac 8303 fi 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8305 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8306 8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8308 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8309 if test ${lt_cv_ld_exported_symbols_list+y} 8310 then : 8311 printf %s "(cached) " >&6 8312 else case e in #( 8313 e) lt_cv_ld_exported_symbols_list=no 8314 save_LDFLAGS=$LDFLAGS 8315 echo "_main" > conftest.sym 8316 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8318 /* end confdefs.h. */ 8319 8320 int 8321 main (void) 8322 { 8323 8324 ; 8325 return 0; 8326 } 8327 _ACEOF 8328 if ac_fn_c_try_link "$LINENO" 8329 then : 8330 lt_cv_ld_exported_symbols_list=yes 8331 else case e in #( 8332 e) lt_cv_ld_exported_symbols_list=no ;; 8333 esac 8334 fi 8335 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8336 conftest$ac_exeext conftest.$ac_ext 8337 LDFLAGS=$save_LDFLAGS 8338 ;; 8339 esac 8340 fi 8341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8342 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8343 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8345 printf %s "checking for -force_load linker flag... " >&6; } 8346 if test ${lt_cv_ld_force_load+y} 8347 then : 8348 printf %s "(cached) " >&6 8349 else case e in #( 8350 e) lt_cv_ld_force_load=no 8351 cat > conftest.c << _LT_EOF 8352 int forced_loaded() { return 2;} 8353 _LT_EOF 8354 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8355 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8356 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8357 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8358 echo "$RANLIB libconftest.a" >&5 8359 $RANLIB libconftest.a 2>&5 8360 cat > conftest.c << _LT_EOF 8361 int main() { return 0;} 8362 _LT_EOF 8363 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8364 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8365 _lt_result=$? 8366 if test -s conftest.err && $GREP force_load conftest.err; then 8367 cat conftest.err >&5 8368 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8369 lt_cv_ld_force_load=yes 8370 else 8371 cat conftest.err >&5 8372 fi 8373 rm -f conftest.err libconftest.a conftest conftest.c 8374 rm -rf conftest.dSYM 8375 ;; 8376 esac 8377 fi 8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8379 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8380 case $host_os in 8381 rhapsody* | darwin1.[012]) 8382 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8383 darwin1.*) 8384 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8385 darwin*) 8386 case $MACOSX_DEPLOYMENT_TARGET,$host in 8387 10.[012],*|,*powerpc*-darwin[5-8]*) 8388 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8389 *) 8390 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8391 esac 8392 ;; 8393 esac 8394 if test yes = "$lt_cv_apple_cc_single_mod"; then 8395 _lt_dar_single_mod='$single_module' 8396 fi 8397 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8398 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8399 else 8400 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8401 fi 8402 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8403 _lt_dsymutil='~$DSYMUTIL $lib || :' 8404 else 8405 _lt_dsymutil= 8406 fi 8407 ;; 8408 esac 8409 8410 # func_munge_path_list VARIABLE PATH 8411 # ----------------------------------- 8412 # VARIABLE is name of variable containing _space_ separated list of 8413 # directories to be munged by the contents of PATH, which is string 8414 # having a format: 8415 # "DIR[:DIR]:" 8416 # string "DIR[ DIR]" will be prepended to VARIABLE 8417 # ":DIR[:DIR]" 8418 # string "DIR[ DIR]" will be appended to VARIABLE 8419 # "DIRP[:DIRP]::[DIRA:]DIRA" 8420 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8421 # "DIRA[ DIRA]" will be appended to VARIABLE 8422 # "DIR[:DIR]" 8423 # VARIABLE will be replaced by "DIR[ DIR]" 8424 func_munge_path_list () 8425 { 8426 case x$2 in 8427 x) 8428 ;; 8429 *:) 8430 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8431 ;; 8432 x:*) 8433 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8434 ;; 8435 *::*) 8436 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8437 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8438 ;; 8439 *) 8440 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8441 ;; 8442 esac 8443 } 8444 8445 ac_header= ac_cache= 8446 for ac_item in $ac_header_c_list 8447 do 8448 if test $ac_cache; then 8449 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8450 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8451 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8452 fi 8453 ac_header= ac_cache= 8454 elif test $ac_header; then 8455 ac_cache=$ac_item 8456 else 8457 ac_header=$ac_item 8458 fi 8459 done 8460 8461 8462 8463 8464 8465 8466 8467 8468 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8469 then : 8470 8471 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8472 8473 fi 8474 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8475 " 8476 if test "x$ac_cv_header_dlfcn_h" = xyes 8477 then : 8478 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8479 8480 fi 8481 8482 8483 8484 8485 8486 # Set options 8487 8488 8489 8490 enable_dlopen=no 8491 8492 8493 enable_win32_dll=no 8494 8495 8496 # Check whether --enable-shared was given. 8497 if test ${enable_shared+y} 8498 then : 8499 enableval=$enable_shared; p=${PACKAGE-default} 8500 case $enableval in 8501 yes) enable_shared=yes ;; 8502 no) enable_shared=no ;; 8503 *) 8504 enable_shared=no 8505 # Look at the argument we got. We use all the common list separators. 8506 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8507 for pkg in $enableval; do 8508 IFS=$lt_save_ifs 8509 if test "X$pkg" = "X$p"; then 8510 enable_shared=yes 8511 fi 8512 done 8513 IFS=$lt_save_ifs 8514 ;; 8515 esac 8516 else case e in #( 8517 e) enable_shared=yes ;; 8518 esac 8519 fi 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 # Check whether --enable-static was given. 8530 if test ${enable_static+y} 8531 then : 8532 enableval=$enable_static; p=${PACKAGE-default} 8533 case $enableval in 8534 yes) enable_static=yes ;; 8535 no) enable_static=no ;; 8536 *) 8537 enable_static=no 8538 # Look at the argument we got. We use all the common list separators. 8539 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8540 for pkg in $enableval; do 8541 IFS=$lt_save_ifs 8542 if test "X$pkg" = "X$p"; then 8543 enable_static=yes 8544 fi 8545 done 8546 IFS=$lt_save_ifs 8547 ;; 8548 esac 8549 else case e in #( 8550 e) enable_static=yes ;; 8551 esac 8552 fi 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 # Check whether --with-pic was given. 8564 if test ${with_pic+y} 8565 then : 8566 withval=$with_pic; lt_p=${PACKAGE-default} 8567 case $withval in 8568 yes|no) pic_mode=$withval ;; 8569 *) 8570 pic_mode=default 8571 # Look at the argument we got. We use all the common list separators. 8572 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8573 for lt_pkg in $withval; do 8574 IFS=$lt_save_ifs 8575 if test "X$lt_pkg" = "X$lt_p"; then 8576 pic_mode=yes 8577 fi 8578 done 8579 IFS=$lt_save_ifs 8580 ;; 8581 esac 8582 else case e in #( 8583 e) pic_mode=default ;; 8584 esac 8585 fi 8586 8587 8588 8589 8590 8591 8592 8593 8594 # Check whether --enable-fast-install was given. 8595 if test ${enable_fast_install+y} 8596 then : 8597 enableval=$enable_fast_install; p=${PACKAGE-default} 8598 case $enableval in 8599 yes) enable_fast_install=yes ;; 8600 no) enable_fast_install=no ;; 8601 *) 8602 enable_fast_install=no 8603 # Look at the argument we got. We use all the common list separators. 8604 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8605 for pkg in $enableval; do 8606 IFS=$lt_save_ifs 8607 if test "X$pkg" = "X$p"; then 8608 enable_fast_install=yes 8609 fi 8610 done 8611 IFS=$lt_save_ifs 8612 ;; 8613 esac 8614 else case e in #( 8615 e) enable_fast_install=yes ;; 8616 esac 8617 fi 8618 8619 8620 8621 8622 8623 8624 8625 8626 shared_archive_member_spec= 8627 case $host,$enable_shared in 8628 power*-*-aix[5-9]*,yes) 8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8630 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8631 8632 # Check whether --with-aix-soname was given. 8633 if test ${with_aix_soname+y} 8634 then : 8635 withval=$with_aix_soname; case $withval in 8636 aix|svr4|both) 8637 ;; 8638 *) 8639 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8640 ;; 8641 esac 8642 lt_cv_with_aix_soname=$with_aix_soname 8643 else case e in #( 8644 e) if test ${lt_cv_with_aix_soname+y} 8645 then : 8646 printf %s "(cached) " >&6 8647 else case e in #( 8648 e) lt_cv_with_aix_soname=aix ;; 8649 esac 8650 fi 8651 8652 with_aix_soname=$lt_cv_with_aix_soname ;; 8653 esac 8654 fi 8655 8656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8657 printf "%s\n" "$with_aix_soname" >&6; } 8658 if test aix != "$with_aix_soname"; then 8659 # For the AIX way of multilib, we name the shared archive member 8660 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8661 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8662 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8663 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8664 if test 64 = "${OBJECT_MODE-32}"; then 8665 shared_archive_member_spec=shr_64 8666 else 8667 shared_archive_member_spec=shr 8668 fi 8669 fi 8670 ;; 8671 *) 8672 with_aix_soname=aix 8673 ;; 8674 esac 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 # This can be used to rebuild libtool when needed 8686 LIBTOOL_DEPS=$ltmain 8687 8688 # Always use our own libtool. 8689 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 test -z "$LN_S" && LN_S="ln -s" 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 if test -n "${ZSH_VERSION+set}"; then 8736 setopt NO_GLOB_SUBST 8737 fi 8738 8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8740 printf %s "checking for objdir... " >&6; } 8741 if test ${lt_cv_objdir+y} 8742 then : 8743 printf %s "(cached) " >&6 8744 else case e in #( 8745 e) rm -f .libs 2>/dev/null 8746 mkdir .libs 2>/dev/null 8747 if test -d .libs; then 8748 lt_cv_objdir=.libs 8749 else 8750 # MS-DOS does not allow filenames that begin with a dot. 8751 lt_cv_objdir=_libs 8752 fi 8753 rmdir .libs 2>/dev/null ;; 8754 esac 8755 fi 8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8757 printf "%s\n" "$lt_cv_objdir" >&6; } 8758 objdir=$lt_cv_objdir 8759 8760 8761 8762 8763 8764 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8765 8766 8767 8768 8769 case $host_os in 8770 aix3*) 8771 # AIX sometimes has problems with the GCC collect2 program. For some 8772 # reason, if we set the COLLECT_NAMES environment variable, the problems 8773 # vanish in a puff of smoke. 8774 if test set != "${COLLECT_NAMES+set}"; then 8775 COLLECT_NAMES= 8776 export COLLECT_NAMES 8777 fi 8778 ;; 8779 esac 8780 8781 # Global variables: 8782 ofile=libtool 8783 can_build_shared=yes 8784 8785 # All known linkers require a '.a' archive for static linking (except MSVC and 8786 # ICC, which need '.lib'). 8787 libext=a 8788 8789 with_gnu_ld=$lt_cv_prog_gnu_ld 8790 8791 old_CC=$CC 8792 old_CFLAGS=$CFLAGS 8793 8794 # Set sane defaults for various variables 8795 test -z "$CC" && CC=cc 8796 test -z "$LTCC" && LTCC=$CC 8797 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8798 test -z "$LD" && LD=ld 8799 test -z "$ac_objext" && ac_objext=o 8800 8801 func_cc_basename $compiler 8802 cc_basename=$func_cc_basename_result 8803 8804 8805 # Only perform the check for file, if the check method requires it 8806 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8807 case $deplibs_check_method in 8808 file_magic*) 8809 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8811 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8812 if test ${lt_cv_path_MAGIC_CMD+y} 8813 then : 8814 printf %s "(cached) " >&6 8815 else case e in #( 8816 e) case $MAGIC_CMD in 8817 [\\/*] | ?:[\\/]*) 8818 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8819 ;; 8820 *) 8821 lt_save_MAGIC_CMD=$MAGIC_CMD 8822 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8824 for ac_dir in $ac_dummy; do 8825 IFS=$lt_save_ifs 8826 test -z "$ac_dir" && ac_dir=. 8827 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8828 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8829 if test -n "$file_magic_test_file"; then 8830 case $deplibs_check_method in 8831 "file_magic "*) 8832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8833 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8835 $EGREP "$file_magic_regex" > /dev/null; then 8836 : 8837 else 8838 cat <<_LT_EOF 1>&2 8839 8840 *** Warning: the command libtool uses to detect shared libraries, 8841 *** $file_magic_cmd, produces output that libtool cannot recognize. 8842 *** The result is that libtool may fail to recognize shared libraries 8843 *** as such. This will affect the creation of libtool libraries that 8844 *** depend on shared libraries, but programs linked with such libtool 8845 *** libraries will work regardless of this problem. Nevertheless, you 8846 *** may want to report the problem to your system manager and/or to 8847 *** bug-libtool@gnu.org 8848 8849 _LT_EOF 8850 fi ;; 8851 esac 8852 fi 8853 break 8854 fi 8855 done 8856 IFS=$lt_save_ifs 8857 MAGIC_CMD=$lt_save_MAGIC_CMD 8858 ;; 8859 esac ;; 8860 esac 8861 fi 8862 8863 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8864 if test -n "$MAGIC_CMD"; then 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8866 printf "%s\n" "$MAGIC_CMD" >&6; } 8867 else 8868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8869 printf "%s\n" "no" >&6; } 8870 fi 8871 8872 8873 8874 8875 8876 if test -z "$lt_cv_path_MAGIC_CMD"; then 8877 if test -n "$ac_tool_prefix"; then 8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8879 printf %s "checking for file... " >&6; } 8880 if test ${lt_cv_path_MAGIC_CMD+y} 8881 then : 8882 printf %s "(cached) " >&6 8883 else case e in #( 8884 e) case $MAGIC_CMD in 8885 [\\/*] | ?:[\\/]*) 8886 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8887 ;; 8888 *) 8889 lt_save_MAGIC_CMD=$MAGIC_CMD 8890 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8892 for ac_dir in $ac_dummy; do 8893 IFS=$lt_save_ifs 8894 test -z "$ac_dir" && ac_dir=. 8895 if test -f "$ac_dir/file"; then 8896 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8897 if test -n "$file_magic_test_file"; then 8898 case $deplibs_check_method in 8899 "file_magic "*) 8900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8901 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8903 $EGREP "$file_magic_regex" > /dev/null; then 8904 : 8905 else 8906 cat <<_LT_EOF 1>&2 8907 8908 *** Warning: the command libtool uses to detect shared libraries, 8909 *** $file_magic_cmd, produces output that libtool cannot recognize. 8910 *** The result is that libtool may fail to recognize shared libraries 8911 *** as such. This will affect the creation of libtool libraries that 8912 *** depend on shared libraries, but programs linked with such libtool 8913 *** libraries will work regardless of this problem. Nevertheless, you 8914 *** may want to report the problem to your system manager and/or to 8915 *** bug-libtool@gnu.org 8916 8917 _LT_EOF 8918 fi ;; 8919 esac 8920 fi 8921 break 8922 fi 8923 done 8924 IFS=$lt_save_ifs 8925 MAGIC_CMD=$lt_save_MAGIC_CMD 8926 ;; 8927 esac ;; 8928 esac 8929 fi 8930 8931 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8932 if test -n "$MAGIC_CMD"; then 8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8934 printf "%s\n" "$MAGIC_CMD" >&6; } 8935 else 8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8937 printf "%s\n" "no" >&6; } 8938 fi 8939 8940 8941 else 8942 MAGIC_CMD=: 8943 fi 8944 fi 8945 8946 fi 8947 ;; 8948 esac 8949 8950 # Use C for the default configuration in the libtool script 8951 8952 lt_save_CC=$CC 8953 ac_ext=c 8954 ac_cpp='$CPP $CPPFLAGS' 8955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8957 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8958 8959 8960 # Source file extension for C test sources. 8961 ac_ext=c 8962 8963 # Object file extension for compiled C test sources. 8964 objext=o 8965 objext=$objext 8966 8967 # Code to be used in simple compile tests 8968 lt_simple_compile_test_code="int some_variable = 0;" 8969 8970 # Code to be used in simple link tests 8971 lt_simple_link_test_code='int main(){return(0);}' 8972 8973 8974 8975 8976 8977 8978 8979 # If no C compiler was specified, use CC. 8980 LTCC=${LTCC-"$CC"} 8981 8982 # If no C compiler flags were specified, use CFLAGS. 8983 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8984 8985 # Allow CC to be a program name with arguments. 8986 compiler=$CC 8987 8988 # Save the default compiler, since it gets overwritten when the other 8989 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8990 compiler_DEFAULT=$CC 8991 8992 # save warnings/boilerplate of simple test code 8993 ac_outfile=conftest.$ac_objext 8994 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8995 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8996 _lt_compiler_boilerplate=`cat conftest.err` 8997 $RM conftest* 8998 8999 ac_outfile=conftest.$ac_objext 9000 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9001 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9002 _lt_linker_boilerplate=`cat conftest.err` 9003 $RM -r conftest* 9004 9005 9006 ## CAVEAT EMPTOR: 9007 ## There is no encapsulation within the following macros, do not change 9008 ## the running order or otherwise move them around unless you know exactly 9009 ## what you are doing... 9010 if test -n "$compiler"; then 9011 9012 lt_prog_compiler_no_builtin_flag= 9013 9014 if test yes = "$GCC"; then 9015 case $cc_basename in 9016 nvcc*) 9017 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9018 *) 9019 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9020 esac 9021 9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9023 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9024 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9025 then : 9026 printf %s "(cached) " >&6 9027 else case e in #( 9028 e) lt_cv_prog_compiler_rtti_exceptions=no 9029 ac_outfile=conftest.$ac_objext 9030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9031 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9032 # Insert the option either (1) after the last *FLAGS variable, or 9033 # (2) before a word containing "conftest.", or (3) at the end. 9034 # Note that $ac_compile itself does not contain backslashes and begins 9035 # with a dollar sign (not a hyphen), so the echo should work correctly. 9036 # The option is referenced via a variable to avoid confusing sed. 9037 lt_compile=`echo "$ac_compile" | $SED \ 9038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9040 -e 's:$: $lt_compiler_flag:'` 9041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9042 (eval "$lt_compile" 2>conftest.err) 9043 ac_status=$? 9044 cat conftest.err >&5 9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9046 if (exit $ac_status) && test -s "$ac_outfile"; then 9047 # The compiler can only warn and ignore the option if not recognized 9048 # So say no if there are warnings other than the usual output. 9049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9051 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9052 lt_cv_prog_compiler_rtti_exceptions=yes 9053 fi 9054 fi 9055 $RM conftest* 9056 ;; 9057 esac 9058 fi 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9060 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9061 9062 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9063 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9064 else 9065 : 9066 fi 9067 9068 fi 9069 9070 9071 9072 9073 9074 9075 lt_prog_compiler_wl= 9076 lt_prog_compiler_pic= 9077 lt_prog_compiler_static= 9078 9079 9080 if test yes = "$GCC"; then 9081 lt_prog_compiler_wl='-Wl,' 9082 lt_prog_compiler_static='-static' 9083 9084 case $host_os in 9085 aix*) 9086 # All AIX code is PIC. 9087 if test ia64 = "$host_cpu"; then 9088 # AIX 5 now supports IA64 processor 9089 lt_prog_compiler_static='-Bstatic' 9090 fi 9091 lt_prog_compiler_pic='-fPIC' 9092 ;; 9093 9094 amigaos*) 9095 case $host_cpu in 9096 powerpc) 9097 # see comment about AmigaOS4 .so support 9098 lt_prog_compiler_pic='-fPIC' 9099 ;; 9100 m68k) 9101 # FIXME: we need at least 68020 code to build shared libraries, but 9102 # adding the '-m68020' flag to GCC prevents building anything better, 9103 # like '-m68040'. 9104 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9105 ;; 9106 esac 9107 ;; 9108 9109 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9110 # PIC is the default for these OSes. 9111 ;; 9112 9113 mingw* | cygwin* | pw32* | os2* | cegcc*) 9114 # This hack is so that the source file can tell whether it is being 9115 # built for inclusion in a dll (and should export symbols for example). 9116 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9117 # (--disable-auto-import) libraries 9118 lt_prog_compiler_pic='-DDLL_EXPORT' 9119 case $host_os in 9120 os2*) 9121 lt_prog_compiler_static='$wl-static' 9122 ;; 9123 esac 9124 ;; 9125 9126 darwin* | rhapsody*) 9127 # PIC is the default on this platform 9128 # Common symbols not allowed in MH_DYLIB files 9129 lt_prog_compiler_pic='-fno-common' 9130 ;; 9131 9132 haiku*) 9133 # PIC is the default for Haiku. 9134 # The "-static" flag exists, but is broken. 9135 lt_prog_compiler_static= 9136 ;; 9137 9138 hpux*) 9139 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9140 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9141 # sets the default TLS model and affects inlining. 9142 case $host_cpu in 9143 hppa*64*) 9144 # +Z the default 9145 ;; 9146 *) 9147 lt_prog_compiler_pic='-fPIC' 9148 ;; 9149 esac 9150 ;; 9151 9152 interix[3-9]*) 9153 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9154 # Instead, we relocate shared libraries at runtime. 9155 ;; 9156 9157 msdosdjgpp*) 9158 # Just because we use GCC doesn't mean we suddenly get shared libraries 9159 # on systems that don't support them. 9160 lt_prog_compiler_can_build_shared=no 9161 enable_shared=no 9162 ;; 9163 9164 *nto* | *qnx*) 9165 # QNX uses GNU C++, but need to define -shared option too, otherwise 9166 # it will coredump. 9167 lt_prog_compiler_pic='-fPIC -shared' 9168 ;; 9169 9170 sysv4*MP*) 9171 if test -d /usr/nec; then 9172 lt_prog_compiler_pic=-Kconform_pic 9173 fi 9174 ;; 9175 9176 *) 9177 lt_prog_compiler_pic='-fPIC' 9178 ;; 9179 esac 9180 9181 case $cc_basename in 9182 nvcc*) # Cuda Compiler Driver 2.2 9183 lt_prog_compiler_wl='-Xlinker ' 9184 if test -n "$lt_prog_compiler_pic"; then 9185 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9186 fi 9187 ;; 9188 esac 9189 else 9190 # PORTME Check for flag to pass linker flags through the system compiler. 9191 case $host_os in 9192 aix*) 9193 lt_prog_compiler_wl='-Wl,' 9194 if test ia64 = "$host_cpu"; then 9195 # AIX 5 now supports IA64 processor 9196 lt_prog_compiler_static='-Bstatic' 9197 else 9198 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9199 fi 9200 ;; 9201 9202 darwin* | rhapsody*) 9203 # PIC is the default on this platform 9204 # Common symbols not allowed in MH_DYLIB files 9205 lt_prog_compiler_pic='-fno-common' 9206 case $cc_basename in 9207 nagfor*) 9208 # NAG Fortran compiler 9209 lt_prog_compiler_wl='-Wl,-Wl,,' 9210 lt_prog_compiler_pic='-PIC' 9211 lt_prog_compiler_static='-Bstatic' 9212 ;; 9213 esac 9214 ;; 9215 9216 mingw* | cygwin* | pw32* | os2* | cegcc*) 9217 # This hack is so that the source file can tell whether it is being 9218 # built for inclusion in a dll (and should export symbols for example). 9219 lt_prog_compiler_pic='-DDLL_EXPORT' 9220 case $host_os in 9221 os2*) 9222 lt_prog_compiler_static='$wl-static' 9223 ;; 9224 esac 9225 ;; 9226 9227 hpux9* | hpux10* | hpux11*) 9228 lt_prog_compiler_wl='-Wl,' 9229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9230 # not for PA HP-UX. 9231 case $host_cpu in 9232 hppa*64*|ia64*) 9233 # +Z the default 9234 ;; 9235 *) 9236 lt_prog_compiler_pic='+Z' 9237 ;; 9238 esac 9239 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9240 lt_prog_compiler_static='$wl-a ${wl}archive' 9241 ;; 9242 9243 irix5* | irix6* | nonstopux*) 9244 lt_prog_compiler_wl='-Wl,' 9245 # PIC (with -KPIC) is the default. 9246 lt_prog_compiler_static='-non_shared' 9247 ;; 9248 9249 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9250 case $cc_basename in 9251 # old Intel for x86_64, which still supported -KPIC. 9252 ecc*) 9253 lt_prog_compiler_wl='-Wl,' 9254 lt_prog_compiler_pic='-KPIC' 9255 lt_prog_compiler_static='-static' 9256 ;; 9257 # icc used to be incompatible with GCC. 9258 # ICC 10 doesn't accept -KPIC any more. 9259 icc* | ifort*) 9260 lt_prog_compiler_wl='-Wl,' 9261 lt_prog_compiler_pic='-fPIC' 9262 lt_prog_compiler_static='-static' 9263 ;; 9264 # Lahey Fortran 8.1. 9265 lf95*) 9266 lt_prog_compiler_wl='-Wl,' 9267 lt_prog_compiler_pic='--shared' 9268 lt_prog_compiler_static='--static' 9269 ;; 9270 nagfor*) 9271 # NAG Fortran compiler 9272 lt_prog_compiler_wl='-Wl,-Wl,,' 9273 lt_prog_compiler_pic='-PIC' 9274 lt_prog_compiler_static='-Bstatic' 9275 ;; 9276 tcc*) 9277 # Fabrice Bellard et al's Tiny C Compiler 9278 lt_prog_compiler_wl='-Wl,' 9279 lt_prog_compiler_pic='-fPIC' 9280 lt_prog_compiler_static='-static' 9281 ;; 9282 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9283 # Portland Group compilers (*not* the Pentium gcc compiler, 9284 # which looks to be a dead project) 9285 lt_prog_compiler_wl='-Wl,' 9286 lt_prog_compiler_pic='-fpic' 9287 lt_prog_compiler_static='-Bstatic' 9288 ;; 9289 ccc*) 9290 lt_prog_compiler_wl='-Wl,' 9291 # All Alpha code is PIC. 9292 lt_prog_compiler_static='-non_shared' 9293 ;; 9294 xl* | bgxl* | bgf* | mpixl*) 9295 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9296 lt_prog_compiler_wl='-Wl,' 9297 lt_prog_compiler_pic='-qpic' 9298 lt_prog_compiler_static='-qstaticlink' 9299 ;; 9300 *) 9301 case `$CC -V 2>&1 | $SED 5q` in 9302 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9303 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9304 lt_prog_compiler_pic='-KPIC' 9305 lt_prog_compiler_static='-Bstatic' 9306 lt_prog_compiler_wl='' 9307 ;; 9308 *Sun\ F* | *Sun*Fortran*) 9309 lt_prog_compiler_pic='-KPIC' 9310 lt_prog_compiler_static='-Bstatic' 9311 lt_prog_compiler_wl='-Qoption ld ' 9312 ;; 9313 *Sun\ C*) 9314 # Sun C 5.9 9315 lt_prog_compiler_pic='-KPIC' 9316 lt_prog_compiler_static='-Bstatic' 9317 lt_prog_compiler_wl='-Wl,' 9318 ;; 9319 *Intel*\ [CF]*Compiler*) 9320 lt_prog_compiler_wl='-Wl,' 9321 lt_prog_compiler_pic='-fPIC' 9322 lt_prog_compiler_static='-static' 9323 ;; 9324 *Portland\ Group*) 9325 lt_prog_compiler_wl='-Wl,' 9326 lt_prog_compiler_pic='-fpic' 9327 lt_prog_compiler_static='-Bstatic' 9328 ;; 9329 esac 9330 ;; 9331 esac 9332 ;; 9333 9334 newsos6) 9335 lt_prog_compiler_pic='-KPIC' 9336 lt_prog_compiler_static='-Bstatic' 9337 ;; 9338 9339 *nto* | *qnx*) 9340 # QNX uses GNU C++, but need to define -shared option too, otherwise 9341 # it will coredump. 9342 lt_prog_compiler_pic='-fPIC -shared' 9343 ;; 9344 9345 osf3* | osf4* | osf5*) 9346 lt_prog_compiler_wl='-Wl,' 9347 # All OSF/1 code is PIC. 9348 lt_prog_compiler_static='-non_shared' 9349 ;; 9350 9351 rdos*) 9352 lt_prog_compiler_static='-non_shared' 9353 ;; 9354 9355 solaris*) 9356 lt_prog_compiler_pic='-KPIC' 9357 lt_prog_compiler_static='-Bstatic' 9358 case $cc_basename in 9359 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9360 lt_prog_compiler_wl='-Qoption ld ';; 9361 *) 9362 lt_prog_compiler_wl='-Wl,';; 9363 esac 9364 ;; 9365 9366 sunos4*) 9367 lt_prog_compiler_wl='-Qoption ld ' 9368 lt_prog_compiler_pic='-PIC' 9369 lt_prog_compiler_static='-Bstatic' 9370 ;; 9371 9372 sysv4 | sysv4.2uw2* | sysv4.3*) 9373 lt_prog_compiler_wl='-Wl,' 9374 lt_prog_compiler_pic='-KPIC' 9375 lt_prog_compiler_static='-Bstatic' 9376 ;; 9377 9378 sysv4*MP*) 9379 if test -d /usr/nec; then 9380 lt_prog_compiler_pic='-Kconform_pic' 9381 lt_prog_compiler_static='-Bstatic' 9382 fi 9383 ;; 9384 9385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9386 lt_prog_compiler_wl='-Wl,' 9387 lt_prog_compiler_pic='-KPIC' 9388 lt_prog_compiler_static='-Bstatic' 9389 ;; 9390 9391 unicos*) 9392 lt_prog_compiler_wl='-Wl,' 9393 lt_prog_compiler_can_build_shared=no 9394 ;; 9395 9396 uts4*) 9397 lt_prog_compiler_pic='-pic' 9398 lt_prog_compiler_static='-Bstatic' 9399 ;; 9400 9401 *) 9402 lt_prog_compiler_can_build_shared=no 9403 ;; 9404 esac 9405 fi 9406 9407 case $host_os in 9408 # For platforms that do not support PIC, -DPIC is meaningless: 9409 *djgpp*) 9410 lt_prog_compiler_pic= 9411 ;; 9412 *) 9413 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9414 ;; 9415 esac 9416 9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9418 printf %s "checking for $compiler option to produce PIC... " >&6; } 9419 if test ${lt_cv_prog_compiler_pic+y} 9420 then : 9421 printf %s "(cached) " >&6 9422 else case e in #( 9423 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9424 esac 9425 fi 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9427 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9428 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9429 9430 # 9431 # Check to make sure the PIC flag actually works. 9432 # 9433 if test -n "$lt_prog_compiler_pic"; then 9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9435 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9436 if test ${lt_cv_prog_compiler_pic_works+y} 9437 then : 9438 printf %s "(cached) " >&6 9439 else case e in #( 9440 e) lt_cv_prog_compiler_pic_works=no 9441 ac_outfile=conftest.$ac_objext 9442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9443 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9444 # Insert the option either (1) after the last *FLAGS variable, or 9445 # (2) before a word containing "conftest.", or (3) at the end. 9446 # Note that $ac_compile itself does not contain backslashes and begins 9447 # with a dollar sign (not a hyphen), so the echo should work correctly. 9448 # The option is referenced via a variable to avoid confusing sed. 9449 lt_compile=`echo "$ac_compile" | $SED \ 9450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9452 -e 's:$: $lt_compiler_flag:'` 9453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9454 (eval "$lt_compile" 2>conftest.err) 9455 ac_status=$? 9456 cat conftest.err >&5 9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9458 if (exit $ac_status) && test -s "$ac_outfile"; then 9459 # The compiler can only warn and ignore the option if not recognized 9460 # So say no if there are warnings other than the usual output. 9461 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9464 lt_cv_prog_compiler_pic_works=yes 9465 fi 9466 fi 9467 $RM conftest* 9468 ;; 9469 esac 9470 fi 9471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9472 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9473 9474 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9475 case $lt_prog_compiler_pic in 9476 "" | " "*) ;; 9477 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9478 esac 9479 else 9480 lt_prog_compiler_pic= 9481 lt_prog_compiler_can_build_shared=no 9482 fi 9483 9484 fi 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 # 9497 # Check to make sure the static flag actually works. 9498 # 9499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9501 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9502 if test ${lt_cv_prog_compiler_static_works+y} 9503 then : 9504 printf %s "(cached) " >&6 9505 else case e in #( 9506 e) lt_cv_prog_compiler_static_works=no 9507 save_LDFLAGS=$LDFLAGS 9508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9509 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9511 # The linker can only warn and ignore the option if not recognized 9512 # So say no if there are warnings 9513 if test -s conftest.err; then 9514 # Append any errors to the config.log. 9515 cat conftest.err 1>&5 9516 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9518 if diff conftest.exp conftest.er2 >/dev/null; then 9519 lt_cv_prog_compiler_static_works=yes 9520 fi 9521 else 9522 lt_cv_prog_compiler_static_works=yes 9523 fi 9524 fi 9525 $RM -r conftest* 9526 LDFLAGS=$save_LDFLAGS 9527 ;; 9528 esac 9529 fi 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9531 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9532 9533 if test yes = "$lt_cv_prog_compiler_static_works"; then 9534 : 9535 else 9536 lt_prog_compiler_static= 9537 fi 9538 9539 9540 9541 9542 9543 9544 9545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9546 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9547 if test ${lt_cv_prog_compiler_c_o+y} 9548 then : 9549 printf %s "(cached) " >&6 9550 else case e in #( 9551 e) lt_cv_prog_compiler_c_o=no 9552 $RM -r conftest 2>/dev/null 9553 mkdir conftest 9554 cd conftest 9555 mkdir out 9556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9557 9558 lt_compiler_flag="-o out/conftest2.$ac_objext" 9559 # Insert the option either (1) after the last *FLAGS variable, or 9560 # (2) before a word containing "conftest.", or (3) at the end. 9561 # Note that $ac_compile itself does not contain backslashes and begins 9562 # with a dollar sign (not a hyphen), so the echo should work correctly. 9563 lt_compile=`echo "$ac_compile" | $SED \ 9564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9566 -e 's:$: $lt_compiler_flag:'` 9567 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9568 (eval "$lt_compile" 2>out/conftest.err) 9569 ac_status=$? 9570 cat out/conftest.err >&5 9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9572 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9573 then 9574 # The compiler can only warn and ignore the option if not recognized 9575 # So say no if there are warnings 9576 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9579 lt_cv_prog_compiler_c_o=yes 9580 fi 9581 fi 9582 chmod u+w . 2>&5 9583 $RM conftest* 9584 # SGI C++ compiler will create directory out/ii_files/ for 9585 # template instantiation 9586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9587 $RM out/* && rmdir out 9588 cd .. 9589 $RM -r conftest 9590 $RM conftest* 9591 ;; 9592 esac 9593 fi 9594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9595 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9596 9597 9598 9599 9600 9601 9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9603 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9604 if test ${lt_cv_prog_compiler_c_o+y} 9605 then : 9606 printf %s "(cached) " >&6 9607 else case e in #( 9608 e) lt_cv_prog_compiler_c_o=no 9609 $RM -r conftest 2>/dev/null 9610 mkdir conftest 9611 cd conftest 9612 mkdir out 9613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9614 9615 lt_compiler_flag="-o out/conftest2.$ac_objext" 9616 # Insert the option either (1) after the last *FLAGS variable, or 9617 # (2) before a word containing "conftest.", or (3) at the end. 9618 # Note that $ac_compile itself does not contain backslashes and begins 9619 # with a dollar sign (not a hyphen), so the echo should work correctly. 9620 lt_compile=`echo "$ac_compile" | $SED \ 9621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9623 -e 's:$: $lt_compiler_flag:'` 9624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9625 (eval "$lt_compile" 2>out/conftest.err) 9626 ac_status=$? 9627 cat out/conftest.err >&5 9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9629 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9630 then 9631 # The compiler can only warn and ignore the option if not recognized 9632 # So say no if there are warnings 9633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9636 lt_cv_prog_compiler_c_o=yes 9637 fi 9638 fi 9639 chmod u+w . 2>&5 9640 $RM conftest* 9641 # SGI C++ compiler will create directory out/ii_files/ for 9642 # template instantiation 9643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9644 $RM out/* && rmdir out 9645 cd .. 9646 $RM -r conftest 9647 $RM conftest* 9648 ;; 9649 esac 9650 fi 9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9652 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9653 9654 9655 9656 9657 hard_links=nottested 9658 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9659 # do not overwrite the value of need_locks provided by the user 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9661 printf %s "checking if we can lock with hard links... " >&6; } 9662 hard_links=yes 9663 $RM conftest* 9664 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9665 touch conftest.a 9666 ln conftest.a conftest.b 2>&5 || hard_links=no 9667 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9669 printf "%s\n" "$hard_links" >&6; } 9670 if test no = "$hard_links"; then 9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9672 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9673 need_locks=warn 9674 fi 9675 else 9676 need_locks=no 9677 fi 9678 9679 9680 9681 9682 9683 9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9685 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9686 9687 runpath_var= 9688 allow_undefined_flag= 9689 always_export_symbols=no 9690 archive_cmds= 9691 archive_expsym_cmds= 9692 compiler_needs_object=no 9693 enable_shared_with_static_runtimes=no 9694 export_dynamic_flag_spec= 9695 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9696 hardcode_automatic=no 9697 hardcode_direct=no 9698 hardcode_direct_absolute=no 9699 hardcode_libdir_flag_spec= 9700 hardcode_libdir_separator= 9701 hardcode_minus_L=no 9702 hardcode_shlibpath_var=unsupported 9703 inherit_rpath=no 9704 link_all_deplibs=unknown 9705 module_cmds= 9706 module_expsym_cmds= 9707 old_archive_from_new_cmds= 9708 old_archive_from_expsyms_cmds= 9709 thread_safe_flag_spec= 9710 whole_archive_flag_spec= 9711 # include_expsyms should be a list of space-separated symbols to be *always* 9712 # included in the symbol list 9713 include_expsyms= 9714 # exclude_expsyms can be an extended regexp of symbols to exclude 9715 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9716 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9717 # as well as any symbol that contains 'd'. 9718 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9720 # platforms (ab)use it in PIC code, but their linkers get confused if 9721 # the symbol is explicitly referenced. Since portable code cannot 9722 # rely on this symbol name, it's probably fine to never include it in 9723 # preloaded symbol tables. 9724 # Exclude shared library initialization/finalization symbols. 9725 extract_expsyms_cmds= 9726 9727 case $host_os in 9728 cygwin* | mingw* | pw32* | cegcc*) 9729 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9730 # When not using gcc, we currently assume that we are using 9731 # Microsoft Visual C++ or Intel C++ Compiler. 9732 if test yes != "$GCC"; then 9733 with_gnu_ld=no 9734 fi 9735 ;; 9736 interix*) 9737 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9738 with_gnu_ld=yes 9739 ;; 9740 openbsd* | bitrig*) 9741 with_gnu_ld=no 9742 ;; 9743 esac 9744 9745 ld_shlibs=yes 9746 9747 # On some targets, GNU ld is compatible enough with the native linker 9748 # that we're better off using the native interface for both. 9749 lt_use_gnu_ld_interface=no 9750 if test yes = "$with_gnu_ld"; then 9751 case $host_os in 9752 aix*) 9753 # The AIX port of GNU ld has always aspired to compatibility 9754 # with the native linker. However, as the warning in the GNU ld 9755 # block says, versions before 2.19.5* couldn't really create working 9756 # shared libraries, regardless of the interface used. 9757 case `$LD -v 2>&1` in 9758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9759 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9760 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9761 *) 9762 lt_use_gnu_ld_interface=yes 9763 ;; 9764 esac 9765 ;; 9766 *) 9767 lt_use_gnu_ld_interface=yes 9768 ;; 9769 esac 9770 fi 9771 9772 if test yes = "$lt_use_gnu_ld_interface"; then 9773 # If archive_cmds runs LD, not CC, wlarc should be empty 9774 wlarc='$wl' 9775 9776 # Set some defaults for GNU ld with shared library support. These 9777 # are reset later if shared libraries are not supported. Putting them 9778 # here allows them to be overridden if necessary. 9779 runpath_var=LD_RUN_PATH 9780 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9781 export_dynamic_flag_spec='$wl--export-dynamic' 9782 # ancient GNU ld didn't support --whole-archive et. al. 9783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9784 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9785 else 9786 whole_archive_flag_spec= 9787 fi 9788 supports_anon_versioning=no 9789 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9790 *GNU\ gold*) supports_anon_versioning=yes ;; 9791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9794 *\ 2.11.*) ;; # other 2.11 versions 9795 *) supports_anon_versioning=yes ;; 9796 esac 9797 9798 # See if GNU ld supports shared libraries. 9799 case $host_os in 9800 aix[3-9]*) 9801 # On AIX/PPC, the GNU linker is very broken 9802 if test ia64 != "$host_cpu"; then 9803 ld_shlibs=no 9804 cat <<_LT_EOF 1>&2 9805 9806 *** Warning: the GNU linker, at least up to release 2.19, is reported 9807 *** to be unable to reliably create shared libraries on AIX. 9808 *** Therefore, libtool is disabling shared libraries support. If you 9809 *** really care for shared libraries, you may want to install binutils 9810 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9811 *** You will then need to restart the configuration process. 9812 9813 _LT_EOF 9814 fi 9815 ;; 9816 9817 amigaos*) 9818 case $host_cpu in 9819 powerpc) 9820 # see comment about AmigaOS4 .so support 9821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9822 archive_expsym_cmds='' 9823 ;; 9824 m68k) 9825 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)' 9826 hardcode_libdir_flag_spec='-L$libdir' 9827 hardcode_minus_L=yes 9828 ;; 9829 esac 9830 ;; 9831 9832 beos*) 9833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9834 allow_undefined_flag=unsupported 9835 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9836 # support --undefined. This deserves some investigation. FIXME 9837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9838 else 9839 ld_shlibs=no 9840 fi 9841 ;; 9842 9843 cygwin* | mingw* | pw32* | cegcc*) 9844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9845 # as there is no search path for DLLs. 9846 hardcode_libdir_flag_spec='-L$libdir' 9847 export_dynamic_flag_spec='$wl--export-all-symbols' 9848 allow_undefined_flag=unsupported 9849 always_export_symbols=no 9850 enable_shared_with_static_runtimes=yes 9851 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' 9852 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9853 9854 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9856 # If the export-symbols file already is a .def file, use it as 9857 # is; otherwise, prepend EXPORTS... 9858 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9859 cp $export_symbols $output_objdir/$soname.def; 9860 else 9861 echo EXPORTS > $output_objdir/$soname.def; 9862 cat $export_symbols >> $output_objdir/$soname.def; 9863 fi~ 9864 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9865 else 9866 ld_shlibs=no 9867 fi 9868 ;; 9869 9870 haiku*) 9871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9872 link_all_deplibs=yes 9873 ;; 9874 9875 os2*) 9876 hardcode_libdir_flag_spec='-L$libdir' 9877 hardcode_minus_L=yes 9878 allow_undefined_flag=unsupported 9879 shrext_cmds=.dll 9880 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9881 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9882 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9883 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9884 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9885 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9886 emximp -o $lib $output_objdir/$libname.def' 9887 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9888 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9889 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9890 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9891 prefix_cmds="$SED"~ 9892 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9893 prefix_cmds="$prefix_cmds -e 1d"; 9894 fi~ 9895 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9896 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9897 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9898 emximp -o $lib $output_objdir/$libname.def' 9899 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9900 enable_shared_with_static_runtimes=yes 9901 file_list_spec='@' 9902 ;; 9903 9904 interix[3-9]*) 9905 hardcode_direct=no 9906 hardcode_shlibpath_var=no 9907 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9908 export_dynamic_flag_spec='$wl-E' 9909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9910 # Instead, shared libraries are loaded at an image base (0x10000000 by 9911 # default) and relocated if they conflict, which is a slow very memory 9912 # consuming and fragmenting process. To avoid this, we pick a random, 9913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9914 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9916 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' 9917 ;; 9918 9919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9920 tmp_diet=no 9921 if test linux-dietlibc = "$host_os"; then 9922 case $cc_basename in 9923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9924 esac 9925 fi 9926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9927 && test no = "$tmp_diet" 9928 then 9929 tmp_addflag=' $pic_flag' 9930 tmp_sharedflag='-shared' 9931 case $cc_basename,$host_cpu in 9932 pgcc*) # Portland Group C compiler 9933 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' 9934 tmp_addflag=' $pic_flag' 9935 ;; 9936 pgf77* | pgf90* | pgf95* | pgfortran*) 9937 # Portland Group f77 and f90 compilers 9938 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' 9939 tmp_addflag=' $pic_flag -Mnomain' ;; 9940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9941 tmp_addflag=' -i_dynamic' ;; 9942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9943 tmp_addflag=' -i_dynamic -nofor_main' ;; 9944 ifc* | ifort*) # Intel Fortran compiler 9945 tmp_addflag=' -nofor_main' ;; 9946 lf95*) # Lahey Fortran 8.1 9947 whole_archive_flag_spec= 9948 tmp_sharedflag='--shared' ;; 9949 nagfor*) # NAGFOR 5.3 9950 tmp_sharedflag='-Wl,-shared' ;; 9951 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9952 tmp_sharedflag='-qmkshrobj' 9953 tmp_addflag= ;; 9954 nvcc*) # Cuda Compiler Driver 2.2 9955 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' 9956 compiler_needs_object=yes 9957 ;; 9958 esac 9959 case `$CC -V 2>&1 | $SED 5q` in 9960 *Sun\ C*) # Sun C 5.9 9961 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' 9962 compiler_needs_object=yes 9963 tmp_sharedflag='-G' ;; 9964 *Sun\ F*) # Sun Fortran 8.3 9965 tmp_sharedflag='-G' ;; 9966 esac 9967 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9968 9969 if test yes = "$supports_anon_versioning"; then 9970 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9971 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9972 echo "local: *; };" >> $output_objdir/$libname.ver~ 9973 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9974 fi 9975 9976 case $cc_basename in 9977 tcc*) 9978 export_dynamic_flag_spec='-rdynamic' 9979 ;; 9980 xlf* | bgf* | bgxlf* | mpixlf*) 9981 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9982 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9983 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9984 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9985 if test yes = "$supports_anon_versioning"; then 9986 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9987 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9988 echo "local: *; };" >> $output_objdir/$libname.ver~ 9989 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9990 fi 9991 ;; 9992 esac 9993 else 9994 ld_shlibs=no 9995 fi 9996 ;; 9997 9998 netbsd*) 9999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10000 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10001 wlarc= 10002 else 10003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10004 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10005 fi 10006 ;; 10007 10008 solaris*) 10009 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10010 ld_shlibs=no 10011 cat <<_LT_EOF 1>&2 10012 10013 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10014 *** create shared libraries on Solaris systems. Therefore, libtool 10015 *** is disabling shared libraries support. We urge you to upgrade GNU 10016 *** binutils to release 2.9.1 or newer. Another option is to modify 10017 *** your PATH or compiler configuration so that the native linker is 10018 *** used, and then restart. 10019 10020 _LT_EOF 10021 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10022 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10023 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10024 else 10025 ld_shlibs=no 10026 fi 10027 ;; 10028 10029 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10030 case `$LD -v 2>&1` in 10031 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10032 ld_shlibs=no 10033 cat <<_LT_EOF 1>&2 10034 10035 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10036 *** reliably create shared libraries on SCO systems. Therefore, libtool 10037 *** is disabling shared libraries support. We urge you to upgrade GNU 10038 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10039 *** your PATH or compiler configuration so that the native linker is 10040 *** used, and then restart. 10041 10042 _LT_EOF 10043 ;; 10044 *) 10045 # For security reasons, it is highly recommended that you always 10046 # use absolute paths for naming shared libraries, and exclude the 10047 # DT_RUNPATH tag from executables and libraries. But doing so 10048 # requires that you compile everything twice, which is a pain. 10049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10050 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10052 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10053 else 10054 ld_shlibs=no 10055 fi 10056 ;; 10057 esac 10058 ;; 10059 10060 sunos4*) 10061 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10062 wlarc= 10063 hardcode_direct=yes 10064 hardcode_shlibpath_var=no 10065 ;; 10066 10067 *) 10068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10069 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10070 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10071 else 10072 ld_shlibs=no 10073 fi 10074 ;; 10075 esac 10076 10077 if test no = "$ld_shlibs"; then 10078 runpath_var= 10079 hardcode_libdir_flag_spec= 10080 export_dynamic_flag_spec= 10081 whole_archive_flag_spec= 10082 fi 10083 else 10084 # PORTME fill in a description of your system's linker (not GNU ld) 10085 case $host_os in 10086 aix3*) 10087 allow_undefined_flag=unsupported 10088 always_export_symbols=yes 10089 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' 10090 # Note: this linker hardcodes the directories in LIBPATH if there 10091 # are no directories specified by -L. 10092 hardcode_minus_L=yes 10093 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10094 # Neither direct hardcoding nor static linking is supported with a 10095 # broken collect2. 10096 hardcode_direct=unsupported 10097 fi 10098 ;; 10099 10100 aix[4-9]*) 10101 if test ia64 = "$host_cpu"; then 10102 # On IA64, the linker does run time linking by default, so we don't 10103 # have to do anything special. 10104 aix_use_runtimelinking=no 10105 exp_sym_flag='-Bexport' 10106 no_entry_flag= 10107 else 10108 # If we're using GNU nm, then we don't want the "-C" option. 10109 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10110 # Without the "-l" option, or with the "-B" option, AIX nm treats 10111 # weak defined symbols like other global defined symbols, whereas 10112 # GNU nm marks them as "W". 10113 # While the 'weak' keyword is ignored in the Export File, we need 10114 # it in the Import File for the 'aix-soname' feature, so we have 10115 # to replace the "-B" option with "-P" for AIX nm. 10116 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10117 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' 10118 else 10119 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' 10120 fi 10121 aix_use_runtimelinking=no 10122 10123 # Test if we are trying to use run time linking or normal 10124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10125 # have runtime linking enabled, and use it for executables. 10126 # For shared libraries, we enable/disable runtime linking 10127 # depending on the kind of the shared library created - 10128 # when "with_aix_soname,aix_use_runtimelinking" is: 10129 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10130 # "aix,yes" lib.so shared, rtl:yes, for executables 10131 # lib.a static archive 10132 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10133 # lib.a(lib.so.V) shared, rtl:no, for executables 10134 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10135 # lib.a(lib.so.V) shared, rtl:no 10136 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10137 # lib.a static archive 10138 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10139 for ld_flag in $LDFLAGS; do 10140 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10141 aix_use_runtimelinking=yes 10142 break 10143 fi 10144 done 10145 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10146 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10147 # so we don't have lib.a shared libs to link our executables. 10148 # We have to force runtime linking in this case. 10149 aix_use_runtimelinking=yes 10150 LDFLAGS="$LDFLAGS -Wl,-brtl" 10151 fi 10152 ;; 10153 esac 10154 10155 exp_sym_flag='-bexport' 10156 no_entry_flag='-bnoentry' 10157 fi 10158 10159 # When large executables or shared objects are built, AIX ld can 10160 # have problems creating the table of contents. If linking a library 10161 # or program results in "error TOC overflow" add -mminimal-toc to 10162 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10163 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10164 10165 archive_cmds='' 10166 hardcode_direct=yes 10167 hardcode_direct_absolute=yes 10168 hardcode_libdir_separator=':' 10169 link_all_deplibs=yes 10170 file_list_spec='$wl-f,' 10171 case $with_aix_soname,$aix_use_runtimelinking in 10172 aix,*) ;; # traditional, no import file 10173 svr4,* | *,yes) # use import file 10174 # The Import File defines what to hardcode. 10175 hardcode_direct=no 10176 hardcode_direct_absolute=no 10177 ;; 10178 esac 10179 10180 if test yes = "$GCC"; then 10181 case $host_os in aix4.[012]|aix4.[012].*) 10182 # We only want to do this on AIX 4.2 and lower, the check 10183 # below for broken collect2 doesn't work under 4.3+ 10184 collect2name=`$CC -print-prog-name=collect2` 10185 if test -f "$collect2name" && 10186 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10187 then 10188 # We have reworked collect2 10189 : 10190 else 10191 # We have old collect2 10192 hardcode_direct=unsupported 10193 # It fails to find uninstalled libraries when the uninstalled 10194 # path is not listed in the libpath. Setting hardcode_minus_L 10195 # to unsupported forces relinking 10196 hardcode_minus_L=yes 10197 hardcode_libdir_flag_spec='-L$libdir' 10198 hardcode_libdir_separator= 10199 fi 10200 ;; 10201 esac 10202 shared_flag='-shared' 10203 if test yes = "$aix_use_runtimelinking"; then 10204 shared_flag="$shared_flag "'$wl-G' 10205 fi 10206 # Need to ensure runtime linking is disabled for the traditional 10207 # shared library, or the linker may eventually find shared libraries 10208 # /with/ Import File - we do not want to mix them. 10209 shared_flag_aix='-shared' 10210 shared_flag_svr4='-shared $wl-G' 10211 else 10212 # not using gcc 10213 if test ia64 = "$host_cpu"; then 10214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10215 # chokes on -Wl,-G. The following line is correct: 10216 shared_flag='-G' 10217 else 10218 if test yes = "$aix_use_runtimelinking"; then 10219 shared_flag='$wl-G' 10220 else 10221 shared_flag='$wl-bM:SRE' 10222 fi 10223 shared_flag_aix='$wl-bM:SRE' 10224 shared_flag_svr4='$wl-G' 10225 fi 10226 fi 10227 10228 export_dynamic_flag_spec='$wl-bexpall' 10229 # It seems that -bexpall does not export symbols beginning with 10230 # underscore (_), so it is better to generate a list of symbols to export. 10231 always_export_symbols=yes 10232 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10233 # Warning - without using the other runtime loading flags (-brtl), 10234 # -berok will link without error, but may produce a broken library. 10235 allow_undefined_flag='-berok' 10236 # Determine the default libpath from the value encoded in an 10237 # empty executable. 10238 if test set = "${lt_cv_aix_libpath+set}"; then 10239 aix_libpath=$lt_cv_aix_libpath 10240 else 10241 if test ${lt_cv_aix_libpath_+y} 10242 then : 10243 printf %s "(cached) " >&6 10244 else case e in #( 10245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10246 /* end confdefs.h. */ 10247 10248 int 10249 main (void) 10250 { 10251 10252 ; 10253 return 0; 10254 } 10255 _ACEOF 10256 if ac_fn_c_try_link "$LINENO" 10257 then : 10258 10259 lt_aix_libpath_sed=' 10260 /Import File Strings/,/^$/ { 10261 /^0/ { 10262 s/^0 *\([^ ]*\) *$/\1/ 10263 p 10264 } 10265 }' 10266 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10267 # Check for a 64-bit object if we didn't find anything. 10268 if test -z "$lt_cv_aix_libpath_"; then 10269 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10270 fi 10271 fi 10272 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10273 conftest$ac_exeext conftest.$ac_ext 10274 if test -z "$lt_cv_aix_libpath_"; then 10275 lt_cv_aix_libpath_=/usr/lib:/lib 10276 fi 10277 ;; 10278 esac 10279 fi 10280 10281 aix_libpath=$lt_cv_aix_libpath_ 10282 fi 10283 10284 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10285 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 10286 else 10287 if test ia64 = "$host_cpu"; then 10288 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10289 allow_undefined_flag="-z nodefs" 10290 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" 10291 else 10292 # Determine the default libpath from the value encoded in an 10293 # empty executable. 10294 if test set = "${lt_cv_aix_libpath+set}"; then 10295 aix_libpath=$lt_cv_aix_libpath 10296 else 10297 if test ${lt_cv_aix_libpath_+y} 10298 then : 10299 printf %s "(cached) " >&6 10300 else case e in #( 10301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10302 /* end confdefs.h. */ 10303 10304 int 10305 main (void) 10306 { 10307 10308 ; 10309 return 0; 10310 } 10311 _ACEOF 10312 if ac_fn_c_try_link "$LINENO" 10313 then : 10314 10315 lt_aix_libpath_sed=' 10316 /Import File Strings/,/^$/ { 10317 /^0/ { 10318 s/^0 *\([^ ]*\) *$/\1/ 10319 p 10320 } 10321 }' 10322 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10323 # Check for a 64-bit object if we didn't find anything. 10324 if test -z "$lt_cv_aix_libpath_"; then 10325 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10326 fi 10327 fi 10328 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10329 conftest$ac_exeext conftest.$ac_ext 10330 if test -z "$lt_cv_aix_libpath_"; then 10331 lt_cv_aix_libpath_=/usr/lib:/lib 10332 fi 10333 ;; 10334 esac 10335 fi 10336 10337 aix_libpath=$lt_cv_aix_libpath_ 10338 fi 10339 10340 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10341 # Warning - without using the other run time loading flags, 10342 # -berok will link without error, but may produce a broken library. 10343 no_undefined_flag=' $wl-bernotok' 10344 allow_undefined_flag=' $wl-berok' 10345 if test yes = "$with_gnu_ld"; then 10346 # We only use this code for GNU lds that support --whole-archive. 10347 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10348 else 10349 # Exported symbols can be pulled into shared objects from archives 10350 whole_archive_flag_spec='$convenience' 10351 fi 10352 archive_cmds_need_lc=yes 10353 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10354 # -brtl affects multiple linker settings, -berok does not and is overridden later 10355 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10356 if test svr4 != "$with_aix_soname"; then 10357 # This is similar to how AIX traditionally builds its shared libraries. 10358 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' 10359 fi 10360 if test aix != "$with_aix_soname"; then 10361 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' 10362 else 10363 # used by -dlpreopen to get the symbols 10364 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10365 fi 10366 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10367 fi 10368 fi 10369 ;; 10370 10371 amigaos*) 10372 case $host_cpu in 10373 powerpc) 10374 # see comment about AmigaOS4 .so support 10375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10376 archive_expsym_cmds='' 10377 ;; 10378 m68k) 10379 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)' 10380 hardcode_libdir_flag_spec='-L$libdir' 10381 hardcode_minus_L=yes 10382 ;; 10383 esac 10384 ;; 10385 10386 bsdi[45]*) 10387 export_dynamic_flag_spec=-rdynamic 10388 ;; 10389 10390 cygwin* | mingw* | pw32* | cegcc*) 10391 # When not using gcc, we currently assume that we are using 10392 # Microsoft Visual C++ or Intel C++ Compiler. 10393 # hardcode_libdir_flag_spec is actually meaningless, as there is 10394 # no search path for DLLs. 10395 case $cc_basename in 10396 cl* | icl*) 10397 # Native MSVC or ICC 10398 hardcode_libdir_flag_spec=' ' 10399 allow_undefined_flag=unsupported 10400 always_export_symbols=yes 10401 file_list_spec='@' 10402 # Tell ltmain to make .lib files, not .a files. 10403 libext=lib 10404 # Tell ltmain to make .dll files, not .so files. 10405 shrext_cmds=.dll 10406 # FIXME: Setting linknames here is a bad hack. 10407 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10408 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10409 cp "$export_symbols" "$output_objdir/$soname.def"; 10410 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10411 else 10412 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10413 fi~ 10414 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10415 linknames=' 10416 # The linker will not automatically build a static lib if we build a DLL. 10417 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10418 enable_shared_with_static_runtimes=yes 10419 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10421 # Don't use ranlib 10422 old_postinstall_cmds='chmod 644 $oldlib' 10423 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10424 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10425 case $lt_outputfile in 10426 *.exe|*.EXE) ;; 10427 *) 10428 lt_outputfile=$lt_outputfile.exe 10429 lt_tool_outputfile=$lt_tool_outputfile.exe 10430 ;; 10431 esac~ 10432 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10433 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10434 $RM "$lt_outputfile.manifest"; 10435 fi' 10436 ;; 10437 *) 10438 # Assume MSVC and ICC wrapper 10439 hardcode_libdir_flag_spec=' ' 10440 allow_undefined_flag=unsupported 10441 # Tell ltmain to make .lib files, not .a files. 10442 libext=lib 10443 # Tell ltmain to make .dll files, not .so files. 10444 shrext_cmds=.dll 10445 # FIXME: Setting linknames here is a bad hack. 10446 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10447 # The linker will automatically build a .lib file if we build a DLL. 10448 old_archive_from_new_cmds='true' 10449 # FIXME: Should let the user specify the lib program. 10450 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10451 enable_shared_with_static_runtimes=yes 10452 ;; 10453 esac 10454 ;; 10455 10456 darwin* | rhapsody*) 10457 10458 10459 archive_cmds_need_lc=no 10460 hardcode_direct=no 10461 hardcode_automatic=yes 10462 hardcode_shlibpath_var=unsupported 10463 if test yes = "$lt_cv_ld_force_load"; then 10464 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\"`' 10465 10466 else 10467 whole_archive_flag_spec='' 10468 fi 10469 link_all_deplibs=yes 10470 allow_undefined_flag=$_lt_dar_allow_undefined 10471 case $cc_basename in 10472 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10473 *) _lt_dar_can_shared=$GCC ;; 10474 esac 10475 if test yes = "$_lt_dar_can_shared"; then 10476 output_verbose_link_cmd=func_echo_all 10477 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10478 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10479 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" 10480 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" 10481 10482 else 10483 ld_shlibs=no 10484 fi 10485 10486 ;; 10487 10488 dgux*) 10489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10490 hardcode_libdir_flag_spec='-L$libdir' 10491 hardcode_shlibpath_var=no 10492 ;; 10493 10494 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10495 # support. Future versions do this automatically, but an explicit c++rt0.o 10496 # does not break anything, and helps significantly (at the cost of a little 10497 # extra space). 10498 freebsd2.2*) 10499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10500 hardcode_libdir_flag_spec='-R$libdir' 10501 hardcode_direct=yes 10502 hardcode_shlibpath_var=no 10503 ;; 10504 10505 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10506 freebsd2.*) 10507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10508 hardcode_direct=yes 10509 hardcode_minus_L=yes 10510 hardcode_shlibpath_var=no 10511 ;; 10512 10513 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10514 freebsd* | dragonfly* | midnightbsd*) 10515 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10516 hardcode_libdir_flag_spec='-R$libdir' 10517 hardcode_direct=yes 10518 hardcode_shlibpath_var=no 10519 ;; 10520 10521 hpux9*) 10522 if test yes = "$GCC"; then 10523 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' 10524 else 10525 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' 10526 fi 10527 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10528 hardcode_libdir_separator=: 10529 hardcode_direct=yes 10530 10531 # hardcode_minus_L: Not really in the search PATH, 10532 # but as the default location of the library. 10533 hardcode_minus_L=yes 10534 export_dynamic_flag_spec='$wl-E' 10535 ;; 10536 10537 hpux10*) 10538 if test yes,no = "$GCC,$with_gnu_ld"; then 10539 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10540 else 10541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10542 fi 10543 if test no = "$with_gnu_ld"; then 10544 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10545 hardcode_libdir_separator=: 10546 hardcode_direct=yes 10547 hardcode_direct_absolute=yes 10548 export_dynamic_flag_spec='$wl-E' 10549 # hardcode_minus_L: Not really in the search PATH, 10550 # but as the default location of the library. 10551 hardcode_minus_L=yes 10552 fi 10553 ;; 10554 10555 hpux11*) 10556 if test yes,no = "$GCC,$with_gnu_ld"; then 10557 case $host_cpu in 10558 hppa*64*) 10559 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10560 ;; 10561 ia64*) 10562 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10563 ;; 10564 *) 10565 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10566 ;; 10567 esac 10568 else 10569 case $host_cpu in 10570 hppa*64*) 10571 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10572 ;; 10573 ia64*) 10574 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10575 ;; 10576 *) 10577 10578 # Older versions of the 11.00 compiler do not understand -b yet 10579 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10581 printf %s "checking if $CC understands -b... " >&6; } 10582 if test ${lt_cv_prog_compiler__b+y} 10583 then : 10584 printf %s "(cached) " >&6 10585 else case e in #( 10586 e) lt_cv_prog_compiler__b=no 10587 save_LDFLAGS=$LDFLAGS 10588 LDFLAGS="$LDFLAGS -b" 10589 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10590 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10591 # The linker can only warn and ignore the option if not recognized 10592 # So say no if there are warnings 10593 if test -s conftest.err; then 10594 # Append any errors to the config.log. 10595 cat conftest.err 1>&5 10596 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10598 if diff conftest.exp conftest.er2 >/dev/null; then 10599 lt_cv_prog_compiler__b=yes 10600 fi 10601 else 10602 lt_cv_prog_compiler__b=yes 10603 fi 10604 fi 10605 $RM -r conftest* 10606 LDFLAGS=$save_LDFLAGS 10607 ;; 10608 esac 10609 fi 10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10611 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10612 10613 if test yes = "$lt_cv_prog_compiler__b"; then 10614 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10615 else 10616 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10617 fi 10618 10619 ;; 10620 esac 10621 fi 10622 if test no = "$with_gnu_ld"; then 10623 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10624 hardcode_libdir_separator=: 10625 10626 case $host_cpu in 10627 hppa*64*|ia64*) 10628 hardcode_direct=no 10629 hardcode_shlibpath_var=no 10630 ;; 10631 *) 10632 hardcode_direct=yes 10633 hardcode_direct_absolute=yes 10634 export_dynamic_flag_spec='$wl-E' 10635 10636 # hardcode_minus_L: Not really in the search PATH, 10637 # but as the default location of the library. 10638 hardcode_minus_L=yes 10639 ;; 10640 esac 10641 fi 10642 ;; 10643 10644 irix5* | irix6* | nonstopux*) 10645 if test yes = "$GCC"; then 10646 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' 10647 # Try to use the -exported_symbol ld option, if it does not 10648 # work, assume that -exports_file does not work either and 10649 # implicitly export all symbols. 10650 # This should be the same for all languages, so no per-tag cache variable. 10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10652 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10653 if test ${lt_cv_irix_exported_symbol+y} 10654 then : 10655 printf %s "(cached) " >&6 10656 else case e in #( 10657 e) save_LDFLAGS=$LDFLAGS 10658 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10660 /* end confdefs.h. */ 10661 int foo (void) { return 0; } 10662 _ACEOF 10663 if ac_fn_c_try_link "$LINENO" 10664 then : 10665 lt_cv_irix_exported_symbol=yes 10666 else case e in #( 10667 e) lt_cv_irix_exported_symbol=no ;; 10668 esac 10669 fi 10670 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10671 conftest$ac_exeext conftest.$ac_ext 10672 LDFLAGS=$save_LDFLAGS ;; 10673 esac 10674 fi 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10676 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10677 if test yes = "$lt_cv_irix_exported_symbol"; then 10678 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' 10679 fi 10680 else 10681 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' 10682 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' 10683 fi 10684 archive_cmds_need_lc='no' 10685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10686 hardcode_libdir_separator=: 10687 inherit_rpath=yes 10688 link_all_deplibs=yes 10689 ;; 10690 10691 linux*) 10692 case $cc_basename in 10693 tcc*) 10694 # Fabrice Bellard et al's Tiny C Compiler 10695 ld_shlibs=yes 10696 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10697 ;; 10698 esac 10699 ;; 10700 10701 netbsd*) 10702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10704 else 10705 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10706 fi 10707 hardcode_libdir_flag_spec='-R$libdir' 10708 hardcode_direct=yes 10709 hardcode_shlibpath_var=no 10710 ;; 10711 10712 newsos6) 10713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10714 hardcode_direct=yes 10715 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10716 hardcode_libdir_separator=: 10717 hardcode_shlibpath_var=no 10718 ;; 10719 10720 *nto* | *qnx*) 10721 ;; 10722 10723 openbsd* | bitrig*) 10724 if test -f /usr/libexec/ld.so; then 10725 hardcode_direct=yes 10726 hardcode_shlibpath_var=no 10727 hardcode_direct_absolute=yes 10728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10729 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10730 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10731 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10732 export_dynamic_flag_spec='$wl-E' 10733 else 10734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10735 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10736 fi 10737 else 10738 ld_shlibs=no 10739 fi 10740 ;; 10741 10742 os2*) 10743 hardcode_libdir_flag_spec='-L$libdir' 10744 hardcode_minus_L=yes 10745 allow_undefined_flag=unsupported 10746 shrext_cmds=.dll 10747 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10748 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10749 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10750 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10751 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10752 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10753 emximp -o $lib $output_objdir/$libname.def' 10754 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10755 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10756 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10757 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10758 prefix_cmds="$SED"~ 10759 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10760 prefix_cmds="$prefix_cmds -e 1d"; 10761 fi~ 10762 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10763 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10764 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10765 emximp -o $lib $output_objdir/$libname.def' 10766 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10767 enable_shared_with_static_runtimes=yes 10768 file_list_spec='@' 10769 ;; 10770 10771 osf3*) 10772 if test yes = "$GCC"; then 10773 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10774 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' 10775 else 10776 allow_undefined_flag=' -expect_unresolved \*' 10777 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' 10778 fi 10779 archive_cmds_need_lc='no' 10780 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10781 hardcode_libdir_separator=: 10782 ;; 10783 10784 osf4* | osf5*) # as osf3* with the addition of -msym flag 10785 if test yes = "$GCC"; then 10786 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10787 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' 10788 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10789 else 10790 allow_undefined_flag=' -expect_unresolved \*' 10791 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' 10792 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~ 10793 $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' 10794 10795 # Both c and cxx compiler support -rpath directly 10796 hardcode_libdir_flag_spec='-rpath $libdir' 10797 fi 10798 archive_cmds_need_lc='no' 10799 hardcode_libdir_separator=: 10800 ;; 10801 10802 solaris*) 10803 no_undefined_flag=' -z defs' 10804 if test yes = "$GCC"; then 10805 wlarc='$wl' 10806 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10807 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10808 $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' 10809 else 10810 case `$CC -V 2>&1` in 10811 *"Compilers 5.0"*) 10812 wlarc='' 10813 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10815 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10816 ;; 10817 *) 10818 wlarc='$wl' 10819 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10820 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10821 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10822 ;; 10823 esac 10824 fi 10825 hardcode_libdir_flag_spec='-R$libdir' 10826 hardcode_shlibpath_var=no 10827 case $host_os in 10828 solaris2.[0-5] | solaris2.[0-5].*) ;; 10829 *) 10830 # The compiler driver will combine and reorder linker options, 10831 # but understands '-z linker_flag'. GCC discards it without '$wl', 10832 # but is careful enough not to reorder. 10833 # Supported since Solaris 2.6 (maybe 2.5.1?) 10834 if test yes = "$GCC"; then 10835 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10836 else 10837 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10838 fi 10839 ;; 10840 esac 10841 link_all_deplibs=yes 10842 ;; 10843 10844 sunos4*) 10845 if test sequent = "$host_vendor"; then 10846 # Use $CC to link under sequent, because it throws in some extra .o 10847 # files that make .init and .fini sections work. 10848 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10849 else 10850 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10851 fi 10852 hardcode_libdir_flag_spec='-L$libdir' 10853 hardcode_direct=yes 10854 hardcode_minus_L=yes 10855 hardcode_shlibpath_var=no 10856 ;; 10857 10858 sysv4) 10859 case $host_vendor in 10860 sni) 10861 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10862 hardcode_direct=yes # is this really true??? 10863 ;; 10864 siemens) 10865 ## LD is ld it makes a PLAMLIB 10866 ## CC just makes a GrossModule. 10867 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10868 reload_cmds='$CC -r -o $output$reload_objs' 10869 hardcode_direct=no 10870 ;; 10871 motorola) 10872 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10873 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10874 ;; 10875 esac 10876 runpath_var='LD_RUN_PATH' 10877 hardcode_shlibpath_var=no 10878 ;; 10879 10880 sysv4.3*) 10881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10882 hardcode_shlibpath_var=no 10883 export_dynamic_flag_spec='-Bexport' 10884 ;; 10885 10886 sysv4*MP*) 10887 if test -d /usr/nec; then 10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10889 hardcode_shlibpath_var=no 10890 runpath_var=LD_RUN_PATH 10891 hardcode_runpath_var=yes 10892 ld_shlibs=yes 10893 fi 10894 ;; 10895 10896 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10897 no_undefined_flag='$wl-z,text' 10898 archive_cmds_need_lc=no 10899 hardcode_shlibpath_var=no 10900 runpath_var='LD_RUN_PATH' 10901 10902 if test yes = "$GCC"; then 10903 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10904 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10905 else 10906 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10907 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10908 fi 10909 ;; 10910 10911 sysv5* | sco3.2v5* | sco5v6*) 10912 # Note: We CANNOT use -z defs as we might desire, because we do not 10913 # link with -lc, and that would cause any symbols used from libc to 10914 # always be unresolved, which means just about no library would 10915 # ever link correctly. If we're not using GNU ld we use -z text 10916 # though, which does catch some bad symbols but isn't as heavy-handed 10917 # as -z defs. 10918 no_undefined_flag='$wl-z,text' 10919 allow_undefined_flag='$wl-z,nodefs' 10920 archive_cmds_need_lc=no 10921 hardcode_shlibpath_var=no 10922 hardcode_libdir_flag_spec='$wl-R,$libdir' 10923 hardcode_libdir_separator=':' 10924 link_all_deplibs=yes 10925 export_dynamic_flag_spec='$wl-Bexport' 10926 runpath_var='LD_RUN_PATH' 10927 10928 if test yes = "$GCC"; then 10929 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10930 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10931 else 10932 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10933 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10934 fi 10935 ;; 10936 10937 uts4*) 10938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10939 hardcode_libdir_flag_spec='-L$libdir' 10940 hardcode_shlibpath_var=no 10941 ;; 10942 10943 *) 10944 ld_shlibs=no 10945 ;; 10946 esac 10947 10948 if test sni = "$host_vendor"; then 10949 case $host in 10950 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10951 export_dynamic_flag_spec='$wl-Blargedynsym' 10952 ;; 10953 esac 10954 fi 10955 fi 10956 10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10958 printf "%s\n" "$ld_shlibs" >&6; } 10959 test no = "$ld_shlibs" && can_build_shared=no 10960 10961 with_gnu_ld=$with_gnu_ld 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 # 10978 # Do we need to explicitly link libc? 10979 # 10980 case "x$archive_cmds_need_lc" in 10981 x|xyes) 10982 # Assume -lc should be added 10983 archive_cmds_need_lc=yes 10984 10985 if test yes,yes = "$GCC,$enable_shared"; then 10986 case $archive_cmds in 10987 *'~'*) 10988 # FIXME: we may have to deal with multi-command sequences. 10989 ;; 10990 '$CC '*) 10991 # Test whether the compiler implicitly links with -lc since on some 10992 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10993 # to ld, don't add -lc before -lgcc. 10994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10995 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10996 if test ${lt_cv_archive_cmds_need_lc+y} 10997 then : 10998 printf %s "(cached) " >&6 10999 else case e in #( 11000 e) $RM conftest* 11001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11002 11003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11004 (eval $ac_compile) 2>&5 11005 ac_status=$? 11006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11007 test $ac_status = 0; } 2>conftest.err; then 11008 soname=conftest 11009 lib=conftest 11010 libobjs=conftest.$ac_objext 11011 deplibs= 11012 wl=$lt_prog_compiler_wl 11013 pic_flag=$lt_prog_compiler_pic 11014 compiler_flags=-v 11015 linker_flags=-v 11016 verstring= 11017 output_objdir=. 11018 libname=conftest 11019 lt_save_allow_undefined_flag=$allow_undefined_flag 11020 allow_undefined_flag= 11021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11022 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11023 ac_status=$? 11024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11025 test $ac_status = 0; } 11026 then 11027 lt_cv_archive_cmds_need_lc=no 11028 else 11029 lt_cv_archive_cmds_need_lc=yes 11030 fi 11031 allow_undefined_flag=$lt_save_allow_undefined_flag 11032 else 11033 cat conftest.err 1>&5 11034 fi 11035 $RM conftest* 11036 ;; 11037 esac 11038 fi 11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11040 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11041 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11042 ;; 11043 esac 11044 fi 11045 ;; 11046 esac 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11200 printf %s "checking dynamic linker characteristics... " >&6; } 11201 11202 if test yes = "$GCC"; then 11203 case $host_os in 11204 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11205 *) lt_awk_arg='/^libraries:/' ;; 11206 esac 11207 case $host_os in 11208 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11209 *) lt_sed_strip_eq='s|=/|/|g' ;; 11210 esac 11211 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11212 case $lt_search_path_spec in 11213 *\;*) 11214 # if the path contains ";" then we assume it to be the separator 11215 # otherwise default to the standard path separator (i.e. ":") - it is 11216 # assumed that no part of a normal pathname contains ";" but that should 11217 # okay in the real world where ";" in dirpaths is itself problematic. 11218 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11219 ;; 11220 *) 11221 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11222 ;; 11223 esac 11224 # Ok, now we have the path, separated by spaces, we can step through it 11225 # and add multilib dir if necessary... 11226 lt_tmp_lt_search_path_spec= 11227 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11228 # ...but if some path component already ends with the multilib dir we assume 11229 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11230 case "$lt_multi_os_dir; $lt_search_path_spec " in 11231 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11232 lt_multi_os_dir= 11233 ;; 11234 esac 11235 for lt_sys_path in $lt_search_path_spec; do 11236 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11237 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11238 elif test -n "$lt_multi_os_dir"; then 11239 test -d "$lt_sys_path" && \ 11240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11241 fi 11242 done 11243 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11244 BEGIN {RS = " "; FS = "/|\n";} { 11245 lt_foo = ""; 11246 lt_count = 0; 11247 for (lt_i = NF; lt_i > 0; lt_i--) { 11248 if ($lt_i != "" && $lt_i != ".") { 11249 if ($lt_i == "..") { 11250 lt_count++; 11251 } else { 11252 if (lt_count == 0) { 11253 lt_foo = "/" $lt_i lt_foo; 11254 } else { 11255 lt_count--; 11256 } 11257 } 11258 } 11259 } 11260 if (lt_foo != "") { lt_freq[lt_foo]++; } 11261 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11262 }'` 11263 # AWK program above erroneously prepends '/' to C:/dos/paths 11264 # for these hosts. 11265 case $host_os in 11266 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11267 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11268 esac 11269 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11270 else 11271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11272 fi 11273 library_names_spec= 11274 libname_spec='lib$name' 11275 soname_spec= 11276 shrext_cmds=.so 11277 postinstall_cmds= 11278 postuninstall_cmds= 11279 finish_cmds= 11280 finish_eval= 11281 shlibpath_var= 11282 shlibpath_overrides_runpath=unknown 11283 version_type=none 11284 dynamic_linker="$host_os ld.so" 11285 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11286 need_lib_prefix=unknown 11287 hardcode_into_libs=no 11288 11289 # when you set need_version to no, make sure it does not cause -set_version 11290 # flags to be left without arguments 11291 need_version=unknown 11292 11293 11294 11295 case $host_os in 11296 aix3*) 11297 version_type=linux # correct to gnu/linux during the next big refactor 11298 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11299 shlibpath_var=LIBPATH 11300 11301 # AIX 3 has no versioning support, so we append a major version to the name. 11302 soname_spec='$libname$release$shared_ext$major' 11303 ;; 11304 11305 aix[4-9]*) 11306 version_type=linux # correct to gnu/linux during the next big refactor 11307 need_lib_prefix=no 11308 need_version=no 11309 hardcode_into_libs=yes 11310 if test ia64 = "$host_cpu"; then 11311 # AIX 5 supports IA64 11312 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11313 shlibpath_var=LD_LIBRARY_PATH 11314 else 11315 # With GCC up to 2.95.x, collect2 would create an import file 11316 # for dependence libraries. The import file would start with 11317 # the line '#! .'. This would cause the generated library to 11318 # depend on '.', always an invalid library. This was fixed in 11319 # development snapshots of GCC prior to 3.0. 11320 case $host_os in 11321 aix4 | aix4.[01] | aix4.[01].*) 11322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11323 echo ' yes ' 11324 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11325 : 11326 else 11327 can_build_shared=no 11328 fi 11329 ;; 11330 esac 11331 # Using Import Files as archive members, it is possible to support 11332 # filename-based versioning of shared library archives on AIX. While 11333 # this would work for both with and without runtime linking, it will 11334 # prevent static linking of such archives. So we do filename-based 11335 # shared library versioning with .so extension only, which is used 11336 # when both runtime linking and shared linking is enabled. 11337 # Unfortunately, runtime linking may impact performance, so we do 11338 # not want this to be the default eventually. Also, we use the 11339 # versioned .so libs for executables only if there is the -brtl 11340 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11341 # To allow for filename-based versioning support, we need to create 11342 # libNAME.so.V as an archive file, containing: 11343 # *) an Import File, referring to the versioned filename of the 11344 # archive as well as the shared archive member, telling the 11345 # bitwidth (32 or 64) of that shared object, and providing the 11346 # list of exported symbols of that shared object, eventually 11347 # decorated with the 'weak' keyword 11348 # *) the shared object with the F_LOADONLY flag set, to really avoid 11349 # it being seen by the linker. 11350 # At run time we better use the real file rather than another symlink, 11351 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11352 11353 case $with_aix_soname,$aix_use_runtimelinking in 11354 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11355 # soname into executable. Probably we can add versioning support to 11356 # collect2, so additional links can be useful in future. 11357 aix,yes) # traditional libtool 11358 dynamic_linker='AIX unversionable lib.so' 11359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11360 # instead of lib<name>.a to let people know that these are not 11361 # typical AIX shared libraries. 11362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11363 ;; 11364 aix,no) # traditional AIX only 11365 dynamic_linker='AIX lib.a(lib.so.V)' 11366 # We preserve .a as extension for shared libraries through AIX4.2 11367 # and later when we are not doing run time linking. 11368 library_names_spec='$libname$release.a $libname.a' 11369 soname_spec='$libname$release$shared_ext$major' 11370 ;; 11371 svr4,*) # full svr4 only 11372 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11373 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11374 # We do not specify a path in Import Files, so LIBPATH fires. 11375 shlibpath_overrides_runpath=yes 11376 ;; 11377 *,yes) # both, prefer svr4 11378 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11379 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11380 # unpreferred sharedlib libNAME.a needs extra handling 11381 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"' 11382 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"' 11383 # We do not specify a path in Import Files, so LIBPATH fires. 11384 shlibpath_overrides_runpath=yes 11385 ;; 11386 *,no) # both, prefer aix 11387 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11388 library_names_spec='$libname$release.a $libname.a' 11389 soname_spec='$libname$release$shared_ext$major' 11390 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11391 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)' 11392 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"' 11393 ;; 11394 esac 11395 shlibpath_var=LIBPATH 11396 fi 11397 ;; 11398 11399 amigaos*) 11400 case $host_cpu in 11401 powerpc) 11402 # Since July 2007 AmigaOS4 officially supports .so libraries. 11403 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11405 ;; 11406 m68k) 11407 library_names_spec='$libname.ixlibrary $libname.a' 11408 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11409 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' 11410 ;; 11411 esac 11412 ;; 11413 11414 beos*) 11415 library_names_spec='$libname$shared_ext' 11416 dynamic_linker="$host_os ld.so" 11417 shlibpath_var=LIBRARY_PATH 11418 ;; 11419 11420 bsdi[45]*) 11421 version_type=linux # correct to gnu/linux during the next big refactor 11422 need_version=no 11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11424 soname_spec='$libname$release$shared_ext$major' 11425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11426 shlibpath_var=LD_LIBRARY_PATH 11427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11429 # the default ld.so.conf also contains /usr/contrib/lib and 11430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11431 # libtool to hard-code these into programs 11432 ;; 11433 11434 cygwin* | mingw* | pw32* | cegcc*) 11435 version_type=windows 11436 shrext_cmds=.dll 11437 need_version=no 11438 need_lib_prefix=no 11439 11440 case $GCC,$cc_basename in 11441 yes,*) 11442 # gcc 11443 library_names_spec='$libname.dll.a' 11444 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11445 postinstall_cmds='base_file=`basename \$file`~ 11446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11447 dldir=$destdir/`dirname \$dlpath`~ 11448 test -d \$dldir || mkdir -p \$dldir~ 11449 $install_prog $dir/$dlname \$dldir/$dlname~ 11450 chmod a+x \$dldir/$dlname~ 11451 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11452 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11453 fi' 11454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11455 dlpath=$dir/\$dldll~ 11456 $RM \$dlpath' 11457 shlibpath_overrides_runpath=yes 11458 11459 case $host_os in 11460 cygwin*) 11461 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11462 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11463 11464 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11465 ;; 11466 mingw* | cegcc*) 11467 # MinGW DLLs use traditional 'lib' prefix 11468 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11469 ;; 11470 pw32*) 11471 # pw32 DLLs use 'pw' prefix rather than 'lib' 11472 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11473 ;; 11474 esac 11475 dynamic_linker='Win32 ld.exe' 11476 ;; 11477 11478 *,cl* | *,icl*) 11479 # Native MSVC or ICC 11480 libname_spec='$name' 11481 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11482 library_names_spec='$libname.dll.lib' 11483 11484 case $build_os in 11485 mingw*) 11486 sys_lib_search_path_spec= 11487 lt_save_ifs=$IFS 11488 IFS=';' 11489 for lt_path in $LIB 11490 do 11491 IFS=$lt_save_ifs 11492 # Let DOS variable expansion print the short 8.3 style file name. 11493 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11494 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11495 done 11496 IFS=$lt_save_ifs 11497 # Convert to MSYS style. 11498 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11499 ;; 11500 cygwin*) 11501 # Convert to unix form, then to dos form, then back to unix form 11502 # but this time dos style (no spaces!) so that the unix form looks 11503 # like /cygdrive/c/PROGRA~1:/cygdr... 11504 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11505 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11506 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11507 ;; 11508 *) 11509 sys_lib_search_path_spec=$LIB 11510 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11511 # It is most probably a Windows format PATH. 11512 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11513 else 11514 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11515 fi 11516 # FIXME: find the short name or the path components, as spaces are 11517 # common. (e.g. "Program Files" -> "PROGRA~1") 11518 ;; 11519 esac 11520 11521 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11522 postinstall_cmds='base_file=`basename \$file`~ 11523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11524 dldir=$destdir/`dirname \$dlpath`~ 11525 test -d \$dldir || mkdir -p \$dldir~ 11526 $install_prog $dir/$dlname \$dldir/$dlname' 11527 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11528 dlpath=$dir/\$dldll~ 11529 $RM \$dlpath' 11530 shlibpath_overrides_runpath=yes 11531 dynamic_linker='Win32 link.exe' 11532 ;; 11533 11534 *) 11535 # Assume MSVC and ICC wrapper 11536 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11537 dynamic_linker='Win32 ld.exe' 11538 ;; 11539 esac 11540 # FIXME: first we should search . and the directory the executable is in 11541 shlibpath_var=PATH 11542 ;; 11543 11544 darwin* | rhapsody*) 11545 dynamic_linker="$host_os dyld" 11546 version_type=darwin 11547 need_lib_prefix=no 11548 need_version=no 11549 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11550 soname_spec='$libname$release$major$shared_ext' 11551 shlibpath_overrides_runpath=yes 11552 shlibpath_var=DYLD_LIBRARY_PATH 11553 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11554 11555 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11557 ;; 11558 11559 dgux*) 11560 version_type=linux # correct to gnu/linux during the next big refactor 11561 need_lib_prefix=no 11562 need_version=no 11563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11564 soname_spec='$libname$release$shared_ext$major' 11565 shlibpath_var=LD_LIBRARY_PATH 11566 ;; 11567 11568 freebsd* | dragonfly* | midnightbsd*) 11569 # DragonFly does not have aout. When/if they implement a new 11570 # versioning mechanism, adjust this. 11571 if test -x /usr/bin/objformat; then 11572 objformat=`/usr/bin/objformat` 11573 else 11574 case $host_os in 11575 freebsd[23].*) objformat=aout ;; 11576 *) objformat=elf ;; 11577 esac 11578 fi 11579 version_type=freebsd-$objformat 11580 case $version_type in 11581 freebsd-elf*) 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11583 soname_spec='$libname$release$shared_ext$major' 11584 need_version=no 11585 need_lib_prefix=no 11586 ;; 11587 freebsd-*) 11588 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11589 need_version=yes 11590 ;; 11591 esac 11592 shlibpath_var=LD_LIBRARY_PATH 11593 case $host_os in 11594 freebsd2.*) 11595 shlibpath_overrides_runpath=yes 11596 ;; 11597 freebsd3.[01]* | freebsdelf3.[01]*) 11598 shlibpath_overrides_runpath=yes 11599 hardcode_into_libs=yes 11600 ;; 11601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11603 shlibpath_overrides_runpath=no 11604 hardcode_into_libs=yes 11605 ;; 11606 *) # from 4.6 on, and DragonFly 11607 shlibpath_overrides_runpath=yes 11608 hardcode_into_libs=yes 11609 ;; 11610 esac 11611 ;; 11612 11613 haiku*) 11614 version_type=linux # correct to gnu/linux during the next big refactor 11615 need_lib_prefix=no 11616 need_version=no 11617 dynamic_linker="$host_os runtime_loader" 11618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11619 soname_spec='$libname$release$shared_ext$major' 11620 shlibpath_var=LIBRARY_PATH 11621 shlibpath_overrides_runpath=no 11622 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11623 hardcode_into_libs=yes 11624 ;; 11625 11626 hpux9* | hpux10* | hpux11*) 11627 # Give a soname corresponding to the major version so that dld.sl refuses to 11628 # link against other versions. 11629 version_type=sunos 11630 need_lib_prefix=no 11631 need_version=no 11632 case $host_cpu in 11633 ia64*) 11634 shrext_cmds='.so' 11635 hardcode_into_libs=yes 11636 dynamic_linker="$host_os dld.so" 11637 shlibpath_var=LD_LIBRARY_PATH 11638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11639 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11640 soname_spec='$libname$release$shared_ext$major' 11641 if test 32 = "$HPUX_IA64_MODE"; then 11642 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11643 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11644 else 11645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11646 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11647 fi 11648 ;; 11649 hppa*64*) 11650 shrext_cmds='.sl' 11651 hardcode_into_libs=yes 11652 dynamic_linker="$host_os dld.sl" 11653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11655 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11656 soname_spec='$libname$release$shared_ext$major' 11657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11659 ;; 11660 *) 11661 shrext_cmds='.sl' 11662 dynamic_linker="$host_os dld.sl" 11663 shlibpath_var=SHLIB_PATH 11664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11666 soname_spec='$libname$release$shared_ext$major' 11667 ;; 11668 esac 11669 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11670 postinstall_cmds='chmod 555 $lib' 11671 # or fails outright, so override atomically: 11672 install_override_mode=555 11673 ;; 11674 11675 interix[3-9]*) 11676 version_type=linux # correct to gnu/linux during the next big refactor 11677 need_lib_prefix=no 11678 need_version=no 11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11680 soname_spec='$libname$release$shared_ext$major' 11681 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11682 shlibpath_var=LD_LIBRARY_PATH 11683 shlibpath_overrides_runpath=no 11684 hardcode_into_libs=yes 11685 ;; 11686 11687 irix5* | irix6* | nonstopux*) 11688 case $host_os in 11689 nonstopux*) version_type=nonstopux ;; 11690 *) 11691 if test yes = "$lt_cv_prog_gnu_ld"; then 11692 version_type=linux # correct to gnu/linux during the next big refactor 11693 else 11694 version_type=irix 11695 fi ;; 11696 esac 11697 need_lib_prefix=no 11698 need_version=no 11699 soname_spec='$libname$release$shared_ext$major' 11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11701 case $host_os in 11702 irix5* | nonstopux*) 11703 libsuff= shlibsuff= 11704 ;; 11705 *) 11706 case $LD in # libtool.m4 will add one of these switches to LD 11707 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11708 libsuff= shlibsuff= libmagic=32-bit;; 11709 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11710 libsuff=32 shlibsuff=N32 libmagic=N32;; 11711 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11712 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11713 *) libsuff= shlibsuff= libmagic=never-match;; 11714 esac 11715 ;; 11716 esac 11717 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11718 shlibpath_overrides_runpath=no 11719 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11720 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11721 hardcode_into_libs=yes 11722 ;; 11723 11724 # No shared lib support for Linux oldld, aout, or coff. 11725 linux*oldld* | linux*aout* | linux*coff*) 11726 dynamic_linker=no 11727 ;; 11728 11729 linux*android*) 11730 version_type=none # Android doesn't support versioned libraries. 11731 need_lib_prefix=no 11732 need_version=no 11733 library_names_spec='$libname$release$shared_ext' 11734 soname_spec='$libname$release$shared_ext' 11735 finish_cmds= 11736 shlibpath_var=LD_LIBRARY_PATH 11737 shlibpath_overrides_runpath=yes 11738 11739 # This implies no fast_install, which is unacceptable. 11740 # Some rework will be needed to allow for fast_install 11741 # before this can be enabled. 11742 hardcode_into_libs=yes 11743 11744 dynamic_linker='Android linker' 11745 # Don't embed -rpath directories since the linker doesn't support them. 11746 hardcode_libdir_flag_spec='-L$libdir' 11747 ;; 11748 11749 # This must be glibc/ELF. 11750 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11751 version_type=linux # correct to gnu/linux during the next big refactor 11752 need_lib_prefix=no 11753 need_version=no 11754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11755 soname_spec='$libname$release$shared_ext$major' 11756 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11757 shlibpath_var=LD_LIBRARY_PATH 11758 shlibpath_overrides_runpath=no 11759 11760 # Some binutils ld are patched to set DT_RUNPATH 11761 if test ${lt_cv_shlibpath_overrides_runpath+y} 11762 then : 11763 printf %s "(cached) " >&6 11764 else case e in #( 11765 e) lt_cv_shlibpath_overrides_runpath=no 11766 save_LDFLAGS=$LDFLAGS 11767 save_libdir=$libdir 11768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11771 /* end confdefs.h. */ 11772 11773 int 11774 main (void) 11775 { 11776 11777 ; 11778 return 0; 11779 } 11780 _ACEOF 11781 if ac_fn_c_try_link "$LINENO" 11782 then : 11783 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11784 then : 11785 lt_cv_shlibpath_overrides_runpath=yes 11786 fi 11787 fi 11788 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11789 conftest$ac_exeext conftest.$ac_ext 11790 LDFLAGS=$save_LDFLAGS 11791 libdir=$save_libdir 11792 ;; 11793 esac 11794 fi 11795 11796 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11797 11798 # This implies no fast_install, which is unacceptable. 11799 # Some rework will be needed to allow for fast_install 11800 # before this can be enabled. 11801 hardcode_into_libs=yes 11802 11803 # Ideally, we could use ldconfig to report *all* directores which are 11804 # searched for libraries, however this is still not possible. Aside from not 11805 # being certain /sbin/ldconfig is available, command 11806 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11807 # even though it is searched at run-time. Try to do the best guess by 11808 # appending ld.so.conf contents (and includes) to the search path. 11809 if test -f /etc/ld.so.conf; then 11810 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' ' '` 11811 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11812 fi 11813 11814 # We used to test for /lib/ld.so.1 and disable shared libraries on 11815 # powerpc, because MkLinux only supported shared libraries with the 11816 # GNU dynamic linker. Since this was broken with cross compilers, 11817 # most powerpc-linux boxes support dynamic linking these days and 11818 # people can always --disable-shared, the test was removed, and we 11819 # assume the GNU/Linux dynamic linker is in use. 11820 dynamic_linker='GNU/Linux ld.so' 11821 ;; 11822 11823 netbsd*) 11824 version_type=sunos 11825 need_lib_prefix=no 11826 need_version=no 11827 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11830 dynamic_linker='NetBSD (a.out) ld.so' 11831 else 11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11833 soname_spec='$libname$release$shared_ext$major' 11834 dynamic_linker='NetBSD ld.elf_so' 11835 fi 11836 shlibpath_var=LD_LIBRARY_PATH 11837 shlibpath_overrides_runpath=yes 11838 hardcode_into_libs=yes 11839 ;; 11840 11841 newsos6) 11842 version_type=linux # correct to gnu/linux during the next big refactor 11843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11844 shlibpath_var=LD_LIBRARY_PATH 11845 shlibpath_overrides_runpath=yes 11846 ;; 11847 11848 *nto* | *qnx*) 11849 version_type=qnx 11850 need_lib_prefix=no 11851 need_version=no 11852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11853 soname_spec='$libname$release$shared_ext$major' 11854 shlibpath_var=LD_LIBRARY_PATH 11855 shlibpath_overrides_runpath=no 11856 hardcode_into_libs=yes 11857 dynamic_linker='ldqnx.so' 11858 ;; 11859 11860 openbsd* | bitrig*) 11861 version_type=sunos 11862 sys_lib_dlsearch_path_spec=/usr/lib 11863 need_lib_prefix=no 11864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11865 need_version=no 11866 else 11867 need_version=yes 11868 fi 11869 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11871 shlibpath_var=LD_LIBRARY_PATH 11872 shlibpath_overrides_runpath=yes 11873 ;; 11874 11875 os2*) 11876 libname_spec='$name' 11877 version_type=windows 11878 shrext_cmds=.dll 11879 need_version=no 11880 need_lib_prefix=no 11881 # OS/2 can only load a DLL with a base name of 8 characters or less. 11882 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11883 v=$($ECHO $release$versuffix | tr -d .-); 11884 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11885 $ECHO $n$v`$shared_ext' 11886 library_names_spec='${libname}_dll.$libext' 11887 dynamic_linker='OS/2 ld.exe' 11888 shlibpath_var=BEGINLIBPATH 11889 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11890 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11891 postinstall_cmds='base_file=`basename \$file`~ 11892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11893 dldir=$destdir/`dirname \$dlpath`~ 11894 test -d \$dldir || mkdir -p \$dldir~ 11895 $install_prog $dir/$dlname \$dldir/$dlname~ 11896 chmod a+x \$dldir/$dlname~ 11897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11899 fi' 11900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11901 dlpath=$dir/\$dldll~ 11902 $RM \$dlpath' 11903 ;; 11904 11905 osf3* | osf4* | osf5*) 11906 version_type=osf 11907 need_lib_prefix=no 11908 need_version=no 11909 soname_spec='$libname$release$shared_ext$major' 11910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11911 shlibpath_var=LD_LIBRARY_PATH 11912 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11914 ;; 11915 11916 rdos*) 11917 dynamic_linker=no 11918 ;; 11919 11920 solaris*) 11921 version_type=linux # correct to gnu/linux during the next big refactor 11922 need_lib_prefix=no 11923 need_version=no 11924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11925 soname_spec='$libname$release$shared_ext$major' 11926 shlibpath_var=LD_LIBRARY_PATH 11927 shlibpath_overrides_runpath=yes 11928 hardcode_into_libs=yes 11929 # ldd complains unless libraries are executable 11930 postinstall_cmds='chmod +x $lib' 11931 ;; 11932 11933 sunos4*) 11934 version_type=sunos 11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11936 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11937 shlibpath_var=LD_LIBRARY_PATH 11938 shlibpath_overrides_runpath=yes 11939 if test yes = "$with_gnu_ld"; then 11940 need_lib_prefix=no 11941 fi 11942 need_version=yes 11943 ;; 11944 11945 sysv4 | sysv4.3*) 11946 version_type=linux # correct to gnu/linux during the next big refactor 11947 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11948 soname_spec='$libname$release$shared_ext$major' 11949 shlibpath_var=LD_LIBRARY_PATH 11950 case $host_vendor in 11951 sni) 11952 shlibpath_overrides_runpath=no 11953 need_lib_prefix=no 11954 runpath_var=LD_RUN_PATH 11955 ;; 11956 siemens) 11957 need_lib_prefix=no 11958 ;; 11959 motorola) 11960 need_lib_prefix=no 11961 need_version=no 11962 shlibpath_overrides_runpath=no 11963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11964 ;; 11965 esac 11966 ;; 11967 11968 sysv4*MP*) 11969 if test -d /usr/nec; then 11970 version_type=linux # correct to gnu/linux during the next big refactor 11971 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11972 soname_spec='$libname$shared_ext.$major' 11973 shlibpath_var=LD_LIBRARY_PATH 11974 fi 11975 ;; 11976 11977 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11978 version_type=sco 11979 need_lib_prefix=no 11980 need_version=no 11981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11982 soname_spec='$libname$release$shared_ext$major' 11983 shlibpath_var=LD_LIBRARY_PATH 11984 shlibpath_overrides_runpath=yes 11985 hardcode_into_libs=yes 11986 if test yes = "$with_gnu_ld"; then 11987 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11988 else 11989 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11990 case $host_os in 11991 sco3.2v5*) 11992 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11993 ;; 11994 esac 11995 fi 11996 sys_lib_dlsearch_path_spec='/usr/lib' 11997 ;; 11998 11999 tpf*) 12000 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12001 version_type=linux # correct to gnu/linux during the next big refactor 12002 need_lib_prefix=no 12003 need_version=no 12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12005 shlibpath_var=LD_LIBRARY_PATH 12006 shlibpath_overrides_runpath=no 12007 hardcode_into_libs=yes 12008 ;; 12009 12010 uts4*) 12011 version_type=linux # correct to gnu/linux during the next big refactor 12012 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12013 soname_spec='$libname$release$shared_ext$major' 12014 shlibpath_var=LD_LIBRARY_PATH 12015 ;; 12016 12017 *) 12018 dynamic_linker=no 12019 ;; 12020 esac 12021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12022 printf "%s\n" "$dynamic_linker" >&6; } 12023 test no = "$dynamic_linker" && can_build_shared=no 12024 12025 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12026 if test yes = "$GCC"; then 12027 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12028 fi 12029 12030 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12031 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12032 fi 12033 12034 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12035 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12036 fi 12037 12038 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12039 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12040 12041 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12042 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12043 12044 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12045 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12144 printf %s "checking how to hardcode library paths into programs... " >&6; } 12145 hardcode_action= 12146 if test -n "$hardcode_libdir_flag_spec" || 12147 test -n "$runpath_var" || 12148 test yes = "$hardcode_automatic"; then 12149 12150 # We can hardcode non-existent directories. 12151 if test no != "$hardcode_direct" && 12152 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12153 # have to relink, otherwise we might link with an installed library 12154 # when we should be linking with a yet-to-be-installed one 12155 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12156 test no != "$hardcode_minus_L"; then 12157 # Linking always hardcodes the temporary library directory. 12158 hardcode_action=relink 12159 else 12160 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12161 hardcode_action=immediate 12162 fi 12163 else 12164 # We cannot hardcode anything, or else we can only hardcode existing 12165 # directories. 12166 hardcode_action=unsupported 12167 fi 12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12169 printf "%s\n" "$hardcode_action" >&6; } 12170 12171 if test relink = "$hardcode_action" || 12172 test yes = "$inherit_rpath"; then 12173 # Fast installation is not supported 12174 enable_fast_install=no 12175 elif test yes = "$shlibpath_overrides_runpath" || 12176 test no = "$enable_shared"; then 12177 # Fast installation is not necessary 12178 enable_fast_install=needless 12179 fi 12180 12181 12182 12183 12184 12185 12186 if test yes != "$enable_dlopen"; then 12187 enable_dlopen=unknown 12188 enable_dlopen_self=unknown 12189 enable_dlopen_self_static=unknown 12190 else 12191 lt_cv_dlopen=no 12192 lt_cv_dlopen_libs= 12193 12194 case $host_os in 12195 beos*) 12196 lt_cv_dlopen=load_add_on 12197 lt_cv_dlopen_libs= 12198 lt_cv_dlopen_self=yes 12199 ;; 12200 12201 mingw* | pw32* | cegcc*) 12202 lt_cv_dlopen=LoadLibrary 12203 lt_cv_dlopen_libs= 12204 ;; 12205 12206 cygwin*) 12207 lt_cv_dlopen=dlopen 12208 lt_cv_dlopen_libs= 12209 ;; 12210 12211 darwin*) 12212 # if libdl is installed we need to link against it 12213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12214 printf %s "checking for dlopen in -ldl... " >&6; } 12215 if test ${ac_cv_lib_dl_dlopen+y} 12216 then : 12217 printf %s "(cached) " >&6 12218 else case e in #( 12219 e) ac_check_lib_save_LIBS=$LIBS 12220 LIBS="-ldl $LIBS" 12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12222 /* end confdefs.h. */ 12223 12224 /* Override any GCC internal prototype to avoid an error. 12225 Use char because int might match the return type of a GCC 12226 builtin and then its argument prototype would still apply. 12227 The 'extern "C"' is for builds by C++ compilers; 12228 although this is not generally supported in C code supporting it here 12229 has little cost and some practical benefit (sr 110532). */ 12230 #ifdef __cplusplus 12231 extern "C" 12232 #endif 12233 char dlopen (void); 12234 int 12235 main (void) 12236 { 12237 return dlopen (); 12238 ; 12239 return 0; 12240 } 12241 _ACEOF 12242 if ac_fn_c_try_link "$LINENO" 12243 then : 12244 ac_cv_lib_dl_dlopen=yes 12245 else case e in #( 12246 e) ac_cv_lib_dl_dlopen=no ;; 12247 esac 12248 fi 12249 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12250 conftest$ac_exeext conftest.$ac_ext 12251 LIBS=$ac_check_lib_save_LIBS ;; 12252 esac 12253 fi 12254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12255 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12256 if test "x$ac_cv_lib_dl_dlopen" = xyes 12257 then : 12258 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12259 else case e in #( 12260 e) 12261 lt_cv_dlopen=dyld 12262 lt_cv_dlopen_libs= 12263 lt_cv_dlopen_self=yes 12264 ;; 12265 esac 12266 fi 12267 12268 ;; 12269 12270 tpf*) 12271 # Don't try to run any link tests for TPF. We know it's impossible 12272 # because TPF is a cross-compiler, and we know how we open DSOs. 12273 lt_cv_dlopen=dlopen 12274 lt_cv_dlopen_libs= 12275 lt_cv_dlopen_self=no 12276 ;; 12277 12278 *) 12279 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12280 if test "x$ac_cv_func_shl_load" = xyes 12281 then : 12282 lt_cv_dlopen=shl_load 12283 else case e in #( 12284 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12285 printf %s "checking for shl_load in -ldld... " >&6; } 12286 if test ${ac_cv_lib_dld_shl_load+y} 12287 then : 12288 printf %s "(cached) " >&6 12289 else case e in #( 12290 e) ac_check_lib_save_LIBS=$LIBS 12291 LIBS="-ldld $LIBS" 12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12293 /* end confdefs.h. */ 12294 12295 /* Override any GCC internal prototype to avoid an error. 12296 Use char because int might match the return type of a GCC 12297 builtin and then its argument prototype would still apply. 12298 The 'extern "C"' is for builds by C++ compilers; 12299 although this is not generally supported in C code supporting it here 12300 has little cost and some practical benefit (sr 110532). */ 12301 #ifdef __cplusplus 12302 extern "C" 12303 #endif 12304 char shl_load (void); 12305 int 12306 main (void) 12307 { 12308 return shl_load (); 12309 ; 12310 return 0; 12311 } 12312 _ACEOF 12313 if ac_fn_c_try_link "$LINENO" 12314 then : 12315 ac_cv_lib_dld_shl_load=yes 12316 else case e in #( 12317 e) ac_cv_lib_dld_shl_load=no ;; 12318 esac 12319 fi 12320 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12321 conftest$ac_exeext conftest.$ac_ext 12322 LIBS=$ac_check_lib_save_LIBS ;; 12323 esac 12324 fi 12325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12326 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12327 if test "x$ac_cv_lib_dld_shl_load" = xyes 12328 then : 12329 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12330 else case e in #( 12331 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12332 if test "x$ac_cv_func_dlopen" = xyes 12333 then : 12334 lt_cv_dlopen=dlopen 12335 else case e in #( 12336 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12337 printf %s "checking for dlopen in -ldl... " >&6; } 12338 if test ${ac_cv_lib_dl_dlopen+y} 12339 then : 12340 printf %s "(cached) " >&6 12341 else case e in #( 12342 e) ac_check_lib_save_LIBS=$LIBS 12343 LIBS="-ldl $LIBS" 12344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12345 /* end confdefs.h. */ 12346 12347 /* Override any GCC internal prototype to avoid an error. 12348 Use char because int might match the return type of a GCC 12349 builtin and then its argument prototype would still apply. 12350 The 'extern "C"' is for builds by C++ compilers; 12351 although this is not generally supported in C code supporting it here 12352 has little cost and some practical benefit (sr 110532). */ 12353 #ifdef __cplusplus 12354 extern "C" 12355 #endif 12356 char dlopen (void); 12357 int 12358 main (void) 12359 { 12360 return dlopen (); 12361 ; 12362 return 0; 12363 } 12364 _ACEOF 12365 if ac_fn_c_try_link "$LINENO" 12366 then : 12367 ac_cv_lib_dl_dlopen=yes 12368 else case e in #( 12369 e) ac_cv_lib_dl_dlopen=no ;; 12370 esac 12371 fi 12372 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12373 conftest$ac_exeext conftest.$ac_ext 12374 LIBS=$ac_check_lib_save_LIBS ;; 12375 esac 12376 fi 12377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12378 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12379 if test "x$ac_cv_lib_dl_dlopen" = xyes 12380 then : 12381 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12382 else case e in #( 12383 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12384 printf %s "checking for dlopen in -lsvld... " >&6; } 12385 if test ${ac_cv_lib_svld_dlopen+y} 12386 then : 12387 printf %s "(cached) " >&6 12388 else case e in #( 12389 e) ac_check_lib_save_LIBS=$LIBS 12390 LIBS="-lsvld $LIBS" 12391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12392 /* end confdefs.h. */ 12393 12394 /* Override any GCC internal prototype to avoid an error. 12395 Use char because int might match the return type of a GCC 12396 builtin and then its argument prototype would still apply. 12397 The 'extern "C"' is for builds by C++ compilers; 12398 although this is not generally supported in C code supporting it here 12399 has little cost and some practical benefit (sr 110532). */ 12400 #ifdef __cplusplus 12401 extern "C" 12402 #endif 12403 char dlopen (void); 12404 int 12405 main (void) 12406 { 12407 return dlopen (); 12408 ; 12409 return 0; 12410 } 12411 _ACEOF 12412 if ac_fn_c_try_link "$LINENO" 12413 then : 12414 ac_cv_lib_svld_dlopen=yes 12415 else case e in #( 12416 e) ac_cv_lib_svld_dlopen=no ;; 12417 esac 12418 fi 12419 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12420 conftest$ac_exeext conftest.$ac_ext 12421 LIBS=$ac_check_lib_save_LIBS ;; 12422 esac 12423 fi 12424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12425 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12426 if test "x$ac_cv_lib_svld_dlopen" = xyes 12427 then : 12428 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12429 else case e in #( 12430 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12431 printf %s "checking for dld_link in -ldld... " >&6; } 12432 if test ${ac_cv_lib_dld_dld_link+y} 12433 then : 12434 printf %s "(cached) " >&6 12435 else case e in #( 12436 e) ac_check_lib_save_LIBS=$LIBS 12437 LIBS="-ldld $LIBS" 12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12439 /* end confdefs.h. */ 12440 12441 /* Override any GCC internal prototype to avoid an error. 12442 Use char because int might match the return type of a GCC 12443 builtin and then its argument prototype would still apply. 12444 The 'extern "C"' is for builds by C++ compilers; 12445 although this is not generally supported in C code supporting it here 12446 has little cost and some practical benefit (sr 110532). */ 12447 #ifdef __cplusplus 12448 extern "C" 12449 #endif 12450 char dld_link (void); 12451 int 12452 main (void) 12453 { 12454 return dld_link (); 12455 ; 12456 return 0; 12457 } 12458 _ACEOF 12459 if ac_fn_c_try_link "$LINENO" 12460 then : 12461 ac_cv_lib_dld_dld_link=yes 12462 else case e in #( 12463 e) ac_cv_lib_dld_dld_link=no ;; 12464 esac 12465 fi 12466 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12467 conftest$ac_exeext conftest.$ac_ext 12468 LIBS=$ac_check_lib_save_LIBS ;; 12469 esac 12470 fi 12471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12472 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12473 if test "x$ac_cv_lib_dld_dld_link" = xyes 12474 then : 12475 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12476 fi 12477 12478 ;; 12479 esac 12480 fi 12481 12482 ;; 12483 esac 12484 fi 12485 12486 ;; 12487 esac 12488 fi 12489 12490 ;; 12491 esac 12492 fi 12493 12494 ;; 12495 esac 12496 fi 12497 12498 ;; 12499 esac 12500 12501 if test no = "$lt_cv_dlopen"; then 12502 enable_dlopen=no 12503 else 12504 enable_dlopen=yes 12505 fi 12506 12507 case $lt_cv_dlopen in 12508 dlopen) 12509 save_CPPFLAGS=$CPPFLAGS 12510 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12511 12512 save_LDFLAGS=$LDFLAGS 12513 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12514 12515 save_LIBS=$LIBS 12516 LIBS="$lt_cv_dlopen_libs $LIBS" 12517 12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12519 printf %s "checking whether a program can dlopen itself... " >&6; } 12520 if test ${lt_cv_dlopen_self+y} 12521 then : 12522 printf %s "(cached) " >&6 12523 else case e in #( 12524 e) if test yes = "$cross_compiling"; then : 12525 lt_cv_dlopen_self=cross 12526 else 12527 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12528 lt_status=$lt_dlunknown 12529 cat > conftest.$ac_ext <<_LT_EOF 12530 #line $LINENO "configure" 12531 #include "confdefs.h" 12532 12533 #if HAVE_DLFCN_H 12534 #include <dlfcn.h> 12535 #endif 12536 12537 #include <stdio.h> 12538 12539 #ifdef RTLD_GLOBAL 12540 # define LT_DLGLOBAL RTLD_GLOBAL 12541 #else 12542 # ifdef DL_GLOBAL 12543 # define LT_DLGLOBAL DL_GLOBAL 12544 # else 12545 # define LT_DLGLOBAL 0 12546 # endif 12547 #endif 12548 12549 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12550 find out it does not work in some platform. */ 12551 #ifndef LT_DLLAZY_OR_NOW 12552 # ifdef RTLD_LAZY 12553 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12554 # else 12555 # ifdef DL_LAZY 12556 # define LT_DLLAZY_OR_NOW DL_LAZY 12557 # else 12558 # ifdef RTLD_NOW 12559 # define LT_DLLAZY_OR_NOW RTLD_NOW 12560 # else 12561 # ifdef DL_NOW 12562 # define LT_DLLAZY_OR_NOW DL_NOW 12563 # else 12564 # define LT_DLLAZY_OR_NOW 0 12565 # endif 12566 # endif 12567 # endif 12568 # endif 12569 #endif 12570 12571 /* When -fvisibility=hidden is used, assume the code has been annotated 12572 correspondingly for the symbols needed. */ 12573 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12574 int fnord () __attribute__((visibility("default"))); 12575 #endif 12576 12577 int fnord () { return 42; } 12578 int main () 12579 { 12580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12581 int status = $lt_dlunknown; 12582 12583 if (self) 12584 { 12585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12586 else 12587 { 12588 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12589 else puts (dlerror ()); 12590 } 12591 /* dlclose (self); */ 12592 } 12593 else 12594 puts (dlerror ()); 12595 12596 return status; 12597 } 12598 _LT_EOF 12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12600 (eval $ac_link) 2>&5 12601 ac_status=$? 12602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12603 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12604 (./conftest; exit; ) >&5 2>/dev/null 12605 lt_status=$? 12606 case x$lt_status in 12607 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12608 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12609 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12610 esac 12611 else : 12612 # compilation failed 12613 lt_cv_dlopen_self=no 12614 fi 12615 fi 12616 rm -fr conftest* 12617 12618 ;; 12619 esac 12620 fi 12621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12622 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12623 12624 if test yes = "$lt_cv_dlopen_self"; then 12625 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12627 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12628 if test ${lt_cv_dlopen_self_static+y} 12629 then : 12630 printf %s "(cached) " >&6 12631 else case e in #( 12632 e) if test yes = "$cross_compiling"; then : 12633 lt_cv_dlopen_self_static=cross 12634 else 12635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12636 lt_status=$lt_dlunknown 12637 cat > conftest.$ac_ext <<_LT_EOF 12638 #line $LINENO "configure" 12639 #include "confdefs.h" 12640 12641 #if HAVE_DLFCN_H 12642 #include <dlfcn.h> 12643 #endif 12644 12645 #include <stdio.h> 12646 12647 #ifdef RTLD_GLOBAL 12648 # define LT_DLGLOBAL RTLD_GLOBAL 12649 #else 12650 # ifdef DL_GLOBAL 12651 # define LT_DLGLOBAL DL_GLOBAL 12652 # else 12653 # define LT_DLGLOBAL 0 12654 # endif 12655 #endif 12656 12657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12658 find out it does not work in some platform. */ 12659 #ifndef LT_DLLAZY_OR_NOW 12660 # ifdef RTLD_LAZY 12661 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12662 # else 12663 # ifdef DL_LAZY 12664 # define LT_DLLAZY_OR_NOW DL_LAZY 12665 # else 12666 # ifdef RTLD_NOW 12667 # define LT_DLLAZY_OR_NOW RTLD_NOW 12668 # else 12669 # ifdef DL_NOW 12670 # define LT_DLLAZY_OR_NOW DL_NOW 12671 # else 12672 # define LT_DLLAZY_OR_NOW 0 12673 # endif 12674 # endif 12675 # endif 12676 # endif 12677 #endif 12678 12679 /* When -fvisibility=hidden is used, assume the code has been annotated 12680 correspondingly for the symbols needed. */ 12681 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12682 int fnord () __attribute__((visibility("default"))); 12683 #endif 12684 12685 int fnord () { return 42; } 12686 int main () 12687 { 12688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12689 int status = $lt_dlunknown; 12690 12691 if (self) 12692 { 12693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12694 else 12695 { 12696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12697 else puts (dlerror ()); 12698 } 12699 /* dlclose (self); */ 12700 } 12701 else 12702 puts (dlerror ()); 12703 12704 return status; 12705 } 12706 _LT_EOF 12707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12708 (eval $ac_link) 2>&5 12709 ac_status=$? 12710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12711 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12712 (./conftest; exit; ) >&5 2>/dev/null 12713 lt_status=$? 12714 case x$lt_status in 12715 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12716 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12717 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12718 esac 12719 else : 12720 # compilation failed 12721 lt_cv_dlopen_self_static=no 12722 fi 12723 fi 12724 rm -fr conftest* 12725 12726 ;; 12727 esac 12728 fi 12729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12730 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12731 fi 12732 12733 CPPFLAGS=$save_CPPFLAGS 12734 LDFLAGS=$save_LDFLAGS 12735 LIBS=$save_LIBS 12736 ;; 12737 esac 12738 12739 case $lt_cv_dlopen_self in 12740 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12741 *) enable_dlopen_self=unknown ;; 12742 esac 12743 12744 case $lt_cv_dlopen_self_static in 12745 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12746 *) enable_dlopen_self_static=unknown ;; 12747 esac 12748 fi 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 striplib= 12767 old_striplib= 12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12769 printf %s "checking whether stripping libraries is possible... " >&6; } 12770 if test -z "$STRIP"; then 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12772 printf "%s\n" "no" >&6; } 12773 else 12774 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12775 old_striplib="$STRIP --strip-debug" 12776 striplib="$STRIP --strip-unneeded" 12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12778 printf "%s\n" "yes" >&6; } 12779 else 12780 case $host_os in 12781 darwin*) 12782 # FIXME - insert some real tests, host_os isn't really good enough 12783 striplib="$STRIP -x" 12784 old_striplib="$STRIP -S" 12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12786 printf "%s\n" "yes" >&6; } 12787 ;; 12788 freebsd*) 12789 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12790 old_striplib="$STRIP --strip-debug" 12791 striplib="$STRIP --strip-unneeded" 12792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12793 printf "%s\n" "yes" >&6; } 12794 else 12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12796 printf "%s\n" "no" >&6; } 12797 fi 12798 ;; 12799 *) 12800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12801 printf "%s\n" "no" >&6; } 12802 ;; 12803 esac 12804 fi 12805 fi 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 # Report what library types will actually be built 12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12820 printf %s "checking if libtool supports shared libraries... " >&6; } 12821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12822 printf "%s\n" "$can_build_shared" >&6; } 12823 12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12825 printf %s "checking whether to build shared libraries... " >&6; } 12826 test no = "$can_build_shared" && enable_shared=no 12827 12828 # On AIX, shared libraries and static libraries use the same namespace, and 12829 # are all built from PIC. 12830 case $host_os in 12831 aix3*) 12832 test yes = "$enable_shared" && enable_static=no 12833 if test -n "$RANLIB"; then 12834 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12835 postinstall_cmds='$RANLIB $lib' 12836 fi 12837 ;; 12838 12839 aix[4-9]*) 12840 if test ia64 != "$host_cpu"; then 12841 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12842 yes,aix,yes) ;; # shared object as lib.so file only 12843 yes,svr4,*) ;; # shared object as lib.so archive member only 12844 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12845 esac 12846 fi 12847 ;; 12848 esac 12849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12850 printf "%s\n" "$enable_shared" >&6; } 12851 12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12853 printf %s "checking whether to build static libraries... " >&6; } 12854 # Make sure either enable_shared or enable_static is yes. 12855 test yes = "$enable_shared" || enable_static=yes 12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12857 printf "%s\n" "$enable_static" >&6; } 12858 12859 12860 12861 12862 fi 12863 ac_ext=c 12864 ac_cpp='$CPP $CPPFLAGS' 12865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12867 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12868 12869 CC=$lt_save_CC 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 ac_config_commands="$ac_config_commands libtool" 12886 12887 12888 12889 12890 # Only expand once: 12891 12892 12893 12894 # Require X.Org macros 1.8 or later for AC_PROG_INSTALL 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12907 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12908 if test ${ac_cv_c_undeclared_builtin_options+y} 12909 then : 12910 printf %s "(cached) " >&6 12911 else case e in #( 12912 e) ac_save_CFLAGS=$CFLAGS 12913 ac_cv_c_undeclared_builtin_options='cannot detect' 12914 for ac_arg in '' -fno-builtin; do 12915 CFLAGS="$ac_save_CFLAGS $ac_arg" 12916 # This test program should *not* compile successfully. 12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12918 /* end confdefs.h. */ 12919 12920 int 12921 main (void) 12922 { 12923 (void) strchr; 12924 ; 12925 return 0; 12926 } 12927 _ACEOF 12928 if ac_fn_c_try_compile "$LINENO" 12929 then : 12930 12931 else case e in #( 12932 e) # This test program should compile successfully. 12933 # No library function is consistently available on 12934 # freestanding implementations, so test against a dummy 12935 # declaration. Include always-available headers on the 12936 # off chance that they somehow elicit warnings. 12937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12938 /* end confdefs.h. */ 12939 #include <float.h> 12940 #include <limits.h> 12941 #include <stdarg.h> 12942 #include <stddef.h> 12943 extern void ac_decl (int, char *); 12944 12945 int 12946 main (void) 12947 { 12948 (void) ac_decl (0, (char *) 0); 12949 (void) ac_decl; 12950 12951 ; 12952 return 0; 12953 } 12954 _ACEOF 12955 if ac_fn_c_try_compile "$LINENO" 12956 then : 12957 if test x"$ac_arg" = x 12958 then : 12959 ac_cv_c_undeclared_builtin_options='none needed' 12960 else case e in #( 12961 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 12962 esac 12963 fi 12964 break 12965 fi 12966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 12967 esac 12968 fi 12969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12970 done 12971 CFLAGS=$ac_save_CFLAGS 12972 ;; 12973 esac 12974 fi 12975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12976 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12977 case $ac_cv_c_undeclared_builtin_options in #( 12978 'cannot detect') : 12979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 12980 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 12981 as_fn_error $? "cannot make $CC report undeclared builtins 12982 See 'config.log' for more details" "$LINENO" 5; } ;; #( 12983 'none needed') : 12984 ac_c_undeclared_builtin_options='' ;; #( 12985 *) : 12986 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12987 esac 12988 12989 12990 12991 12992 12993 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12994 if test "x$ac_cv_have_decl___clang__" = xyes 12995 then : 12996 CLANGCC="yes" 12997 else case e in #( 12998 e) CLANGCC="no" ;; 12999 esac 13000 fi 13001 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13002 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13003 then : 13004 INTELCC="yes" 13005 else case e in #( 13006 e) INTELCC="no" ;; 13007 esac 13008 fi 13009 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13010 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13011 then : 13012 SUNCC="yes" 13013 else case e in #( 13014 e) SUNCC="no" ;; 13015 esac 13016 fi 13017 13018 13019 13020 13021 13022 13023 13024 13025 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13026 if test -n "$ac_tool_prefix"; then 13027 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13028 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13030 printf %s "checking for $ac_word... " >&6; } 13031 if test ${ac_cv_path_PKG_CONFIG+y} 13032 then : 13033 printf %s "(cached) " >&6 13034 else case e in #( 13035 e) case $PKG_CONFIG in 13036 [\\/]* | ?:[\\/]*) 13037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13038 ;; 13039 *) 13040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13041 for as_dir in $PATH 13042 do 13043 IFS=$as_save_IFS 13044 case $as_dir in #((( 13045 '') as_dir=./ ;; 13046 */) ;; 13047 *) as_dir=$as_dir/ ;; 13048 esac 13049 for ac_exec_ext in '' $ac_executable_extensions; do 13050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13051 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13053 break 2 13054 fi 13055 done 13056 done 13057 IFS=$as_save_IFS 13058 13059 ;; 13060 esac ;; 13061 esac 13062 fi 13063 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13064 if test -n "$PKG_CONFIG"; then 13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13066 printf "%s\n" "$PKG_CONFIG" >&6; } 13067 else 13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13069 printf "%s\n" "no" >&6; } 13070 fi 13071 13072 13073 fi 13074 if test -z "$ac_cv_path_PKG_CONFIG"; then 13075 ac_pt_PKG_CONFIG=$PKG_CONFIG 13076 # Extract the first word of "pkg-config", so it can be a program name with args. 13077 set dummy pkg-config; ac_word=$2 13078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13079 printf %s "checking for $ac_word... " >&6; } 13080 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13081 then : 13082 printf %s "(cached) " >&6 13083 else case e in #( 13084 e) case $ac_pt_PKG_CONFIG in 13085 [\\/]* | ?:[\\/]*) 13086 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13087 ;; 13088 *) 13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13090 for as_dir in $PATH 13091 do 13092 IFS=$as_save_IFS 13093 case $as_dir in #((( 13094 '') as_dir=./ ;; 13095 */) ;; 13096 *) as_dir=$as_dir/ ;; 13097 esac 13098 for ac_exec_ext in '' $ac_executable_extensions; do 13099 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13100 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13102 break 2 13103 fi 13104 done 13105 done 13106 IFS=$as_save_IFS 13107 13108 ;; 13109 esac ;; 13110 esac 13111 fi 13112 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13113 if test -n "$ac_pt_PKG_CONFIG"; then 13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13115 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13116 else 13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13118 printf "%s\n" "no" >&6; } 13119 fi 13120 13121 if test "x$ac_pt_PKG_CONFIG" = x; then 13122 PKG_CONFIG="" 13123 else 13124 case $cross_compiling:$ac_tool_warned in 13125 yes:) 13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13127 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13128 ac_tool_warned=yes ;; 13129 esac 13130 PKG_CONFIG=$ac_pt_PKG_CONFIG 13131 fi 13132 else 13133 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13134 fi 13135 13136 fi 13137 if test -n "$PKG_CONFIG"; then 13138 _pkg_min_version=0.9.0 13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13140 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13141 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13143 printf "%s\n" "yes" >&6; } 13144 else 13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13146 printf "%s\n" "no" >&6; } 13147 PKG_CONFIG="" 13148 fi 13149 fi 13150 13151 13152 13153 13154 13155 # Check whether --enable-selective-werror was given. 13156 if test ${enable_selective_werror+y} 13157 then : 13158 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13159 else case e in #( 13160 e) SELECTIVE_WERROR=yes ;; 13161 esac 13162 fi 13163 13164 13165 13166 13167 13168 # -v is too short to test reliably with XORG_TESTSET_CFLAG 13169 if test "x$SUNCC" = "xyes"; then 13170 BASE_CFLAGS="-v" 13171 else 13172 BASE_CFLAGS="" 13173 fi 13174 13175 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 xorg_testset_save_CFLAGS="$CFLAGS" 13190 13191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13194 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13195 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13196 then : 13197 printf %s "(cached) " >&6 13198 else case e in #( 13199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13200 /* end confdefs.h. */ 13201 int i; 13202 _ACEOF 13203 if ac_fn_c_try_compile "$LINENO" 13204 then : 13205 xorg_cv_cc_flag_unknown_warning_option=yes 13206 else case e in #( 13207 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13208 esac 13209 fi 13210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13211 esac 13212 fi 13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13214 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13216 CFLAGS="$xorg_testset_save_CFLAGS" 13217 fi 13218 13219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13222 fi 13223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13225 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13226 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13227 then : 13228 printf %s "(cached) " >&6 13229 else case e in #( 13230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231 /* end confdefs.h. */ 13232 int i; 13233 _ACEOF 13234 if ac_fn_c_try_compile "$LINENO" 13235 then : 13236 xorg_cv_cc_flag_unused_command_line_argument=yes 13237 else case e in #( 13238 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13239 esac 13240 fi 13241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13242 esac 13243 fi 13244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13245 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13247 CFLAGS="$xorg_testset_save_CFLAGS" 13248 fi 13249 13250 found="no" 13251 13252 if test $found = "no" ; then 13253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13255 fi 13256 13257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13259 fi 13260 13261 CFLAGS="$CFLAGS -Wall" 13262 13263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13264 printf %s "checking if $CC supports -Wall... " >&6; } 13265 cacheid=xorg_cv_cc_flag__Wall 13266 if eval test \${$cacheid+y} 13267 then : 13268 printf %s "(cached) " >&6 13269 else case e in #( 13270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13271 /* end confdefs.h. */ 13272 int i; 13273 int 13274 main (void) 13275 { 13276 13277 ; 13278 return 0; 13279 } 13280 _ACEOF 13281 if ac_fn_c_try_link "$LINENO" 13282 then : 13283 eval $cacheid=yes 13284 else case e in #( 13285 e) eval $cacheid=no ;; 13286 esac 13287 fi 13288 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13289 conftest$ac_exeext conftest.$ac_ext ;; 13290 esac 13291 fi 13292 13293 13294 CFLAGS="$xorg_testset_save_CFLAGS" 13295 13296 eval supported=\$$cacheid 13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13298 printf "%s\n" "$supported" >&6; } 13299 if test "$supported" = "yes" ; then 13300 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13301 found="yes" 13302 fi 13303 fi 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 xorg_testset_save_CFLAGS="$CFLAGS" 13320 13321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13324 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13325 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13326 then : 13327 printf %s "(cached) " >&6 13328 else case e in #( 13329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13330 /* end confdefs.h. */ 13331 int i; 13332 _ACEOF 13333 if ac_fn_c_try_compile "$LINENO" 13334 then : 13335 xorg_cv_cc_flag_unknown_warning_option=yes 13336 else case e in #( 13337 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13338 esac 13339 fi 13340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13341 esac 13342 fi 13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13344 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13346 CFLAGS="$xorg_testset_save_CFLAGS" 13347 fi 13348 13349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13352 fi 13353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13355 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13356 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13357 then : 13358 printf %s "(cached) " >&6 13359 else case e in #( 13360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361 /* end confdefs.h. */ 13362 int i; 13363 _ACEOF 13364 if ac_fn_c_try_compile "$LINENO" 13365 then : 13366 xorg_cv_cc_flag_unused_command_line_argument=yes 13367 else case e in #( 13368 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13369 esac 13370 fi 13371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13372 esac 13373 fi 13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13375 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13377 CFLAGS="$xorg_testset_save_CFLAGS" 13378 fi 13379 13380 found="no" 13381 13382 if test $found = "no" ; then 13383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13385 fi 13386 13387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13389 fi 13390 13391 CFLAGS="$CFLAGS -Wpointer-arith" 13392 13393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13394 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13395 cacheid=xorg_cv_cc_flag__Wpointer_arith 13396 if eval test \${$cacheid+y} 13397 then : 13398 printf %s "(cached) " >&6 13399 else case e in #( 13400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13401 /* end confdefs.h. */ 13402 int i; 13403 int 13404 main (void) 13405 { 13406 13407 ; 13408 return 0; 13409 } 13410 _ACEOF 13411 if ac_fn_c_try_link "$LINENO" 13412 then : 13413 eval $cacheid=yes 13414 else case e in #( 13415 e) eval $cacheid=no ;; 13416 esac 13417 fi 13418 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13419 conftest$ac_exeext conftest.$ac_ext ;; 13420 esac 13421 fi 13422 13423 13424 CFLAGS="$xorg_testset_save_CFLAGS" 13425 13426 eval supported=\$$cacheid 13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13428 printf "%s\n" "$supported" >&6; } 13429 if test "$supported" = "yes" ; then 13430 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13431 found="yes" 13432 fi 13433 fi 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 xorg_testset_save_CFLAGS="$CFLAGS" 13450 13451 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13454 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13455 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13456 then : 13457 printf %s "(cached) " >&6 13458 else case e in #( 13459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13460 /* end confdefs.h. */ 13461 int i; 13462 _ACEOF 13463 if ac_fn_c_try_compile "$LINENO" 13464 then : 13465 xorg_cv_cc_flag_unknown_warning_option=yes 13466 else case e in #( 13467 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13468 esac 13469 fi 13470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13471 esac 13472 fi 13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13474 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13476 CFLAGS="$xorg_testset_save_CFLAGS" 13477 fi 13478 13479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13482 fi 13483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13485 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13486 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13487 then : 13488 printf %s "(cached) " >&6 13489 else case e in #( 13490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13491 /* end confdefs.h. */ 13492 int i; 13493 _ACEOF 13494 if ac_fn_c_try_compile "$LINENO" 13495 then : 13496 xorg_cv_cc_flag_unused_command_line_argument=yes 13497 else case e in #( 13498 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13499 esac 13500 fi 13501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13502 esac 13503 fi 13504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13505 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13507 CFLAGS="$xorg_testset_save_CFLAGS" 13508 fi 13509 13510 found="no" 13511 13512 if test $found = "no" ; then 13513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13514 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13515 fi 13516 13517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13519 fi 13520 13521 CFLAGS="$CFLAGS -Wmissing-declarations" 13522 13523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13524 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13525 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13526 if eval test \${$cacheid+y} 13527 then : 13528 printf %s "(cached) " >&6 13529 else case e in #( 13530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13531 /* end confdefs.h. */ 13532 int i; 13533 int 13534 main (void) 13535 { 13536 13537 ; 13538 return 0; 13539 } 13540 _ACEOF 13541 if ac_fn_c_try_link "$LINENO" 13542 then : 13543 eval $cacheid=yes 13544 else case e in #( 13545 e) eval $cacheid=no ;; 13546 esac 13547 fi 13548 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13549 conftest$ac_exeext conftest.$ac_ext ;; 13550 esac 13551 fi 13552 13553 13554 CFLAGS="$xorg_testset_save_CFLAGS" 13555 13556 eval supported=\$$cacheid 13557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13558 printf "%s\n" "$supported" >&6; } 13559 if test "$supported" = "yes" ; then 13560 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13561 found="yes" 13562 fi 13563 fi 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 xorg_testset_save_CFLAGS="$CFLAGS" 13580 13581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13585 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13586 then : 13587 printf %s "(cached) " >&6 13588 else case e in #( 13589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13590 /* end confdefs.h. */ 13591 int i; 13592 _ACEOF 13593 if ac_fn_c_try_compile "$LINENO" 13594 then : 13595 xorg_cv_cc_flag_unknown_warning_option=yes 13596 else case e in #( 13597 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13598 esac 13599 fi 13600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13601 esac 13602 fi 13603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13604 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13606 CFLAGS="$xorg_testset_save_CFLAGS" 13607 fi 13608 13609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13612 fi 13613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13615 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13616 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13617 then : 13618 printf %s "(cached) " >&6 13619 else case e in #( 13620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13621 /* end confdefs.h. */ 13622 int i; 13623 _ACEOF 13624 if ac_fn_c_try_compile "$LINENO" 13625 then : 13626 xorg_cv_cc_flag_unused_command_line_argument=yes 13627 else case e in #( 13628 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13629 esac 13630 fi 13631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13632 esac 13633 fi 13634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13635 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13637 CFLAGS="$xorg_testset_save_CFLAGS" 13638 fi 13639 13640 found="no" 13641 13642 if test $found = "no" ; then 13643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13645 fi 13646 13647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13649 fi 13650 13651 CFLAGS="$CFLAGS -Wformat=2" 13652 13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13654 printf %s "checking if $CC supports -Wformat=2... " >&6; } 13655 cacheid=xorg_cv_cc_flag__Wformat_2 13656 if eval test \${$cacheid+y} 13657 then : 13658 printf %s "(cached) " >&6 13659 else case e in #( 13660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13661 /* end confdefs.h. */ 13662 int i; 13663 int 13664 main (void) 13665 { 13666 13667 ; 13668 return 0; 13669 } 13670 _ACEOF 13671 if ac_fn_c_try_link "$LINENO" 13672 then : 13673 eval $cacheid=yes 13674 else case e in #( 13675 e) eval $cacheid=no ;; 13676 esac 13677 fi 13678 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13679 conftest$ac_exeext conftest.$ac_ext ;; 13680 esac 13681 fi 13682 13683 13684 CFLAGS="$xorg_testset_save_CFLAGS" 13685 13686 eval supported=\$$cacheid 13687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13688 printf "%s\n" "$supported" >&6; } 13689 if test "$supported" = "yes" ; then 13690 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13691 found="yes" 13692 fi 13693 fi 13694 13695 if test $found = "no" ; then 13696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13698 fi 13699 13700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13702 fi 13703 13704 CFLAGS="$CFLAGS -Wformat" 13705 13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13707 printf %s "checking if $CC supports -Wformat... " >&6; } 13708 cacheid=xorg_cv_cc_flag__Wformat 13709 if eval test \${$cacheid+y} 13710 then : 13711 printf %s "(cached) " >&6 13712 else case e in #( 13713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13714 /* end confdefs.h. */ 13715 int i; 13716 int 13717 main (void) 13718 { 13719 13720 ; 13721 return 0; 13722 } 13723 _ACEOF 13724 if ac_fn_c_try_link "$LINENO" 13725 then : 13726 eval $cacheid=yes 13727 else case e in #( 13728 e) eval $cacheid=no ;; 13729 esac 13730 fi 13731 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13732 conftest$ac_exeext conftest.$ac_ext ;; 13733 esac 13734 fi 13735 13736 13737 CFLAGS="$xorg_testset_save_CFLAGS" 13738 13739 eval supported=\$$cacheid 13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13741 printf "%s\n" "$supported" >&6; } 13742 if test "$supported" = "yes" ; then 13743 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13744 found="yes" 13745 fi 13746 fi 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 xorg_testset_save_CFLAGS="$CFLAGS" 13765 13766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13769 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13770 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13771 then : 13772 printf %s "(cached) " >&6 13773 else case e in #( 13774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13775 /* end confdefs.h. */ 13776 int i; 13777 _ACEOF 13778 if ac_fn_c_try_compile "$LINENO" 13779 then : 13780 xorg_cv_cc_flag_unknown_warning_option=yes 13781 else case e in #( 13782 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13783 esac 13784 fi 13785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13786 esac 13787 fi 13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13789 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13791 CFLAGS="$xorg_testset_save_CFLAGS" 13792 fi 13793 13794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13797 fi 13798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13800 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13801 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13802 then : 13803 printf %s "(cached) " >&6 13804 else case e in #( 13805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13806 /* end confdefs.h. */ 13807 int i; 13808 _ACEOF 13809 if ac_fn_c_try_compile "$LINENO" 13810 then : 13811 xorg_cv_cc_flag_unused_command_line_argument=yes 13812 else case e in #( 13813 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13814 esac 13815 fi 13816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13817 esac 13818 fi 13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13820 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13822 CFLAGS="$xorg_testset_save_CFLAGS" 13823 fi 13824 13825 found="no" 13826 13827 if test $found = "no" ; then 13828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13830 fi 13831 13832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13834 fi 13835 13836 CFLAGS="$CFLAGS -Wstrict-prototypes" 13837 13838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13839 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13840 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13841 if eval test \${$cacheid+y} 13842 then : 13843 printf %s "(cached) " >&6 13844 else case e in #( 13845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13846 /* end confdefs.h. */ 13847 int i; 13848 int 13849 main (void) 13850 { 13851 13852 ; 13853 return 0; 13854 } 13855 _ACEOF 13856 if ac_fn_c_try_link "$LINENO" 13857 then : 13858 eval $cacheid=yes 13859 else case e in #( 13860 e) eval $cacheid=no ;; 13861 esac 13862 fi 13863 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13864 conftest$ac_exeext conftest.$ac_ext ;; 13865 esac 13866 fi 13867 13868 13869 CFLAGS="$xorg_testset_save_CFLAGS" 13870 13871 eval supported=\$$cacheid 13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13873 printf "%s\n" "$supported" >&6; } 13874 if test "$supported" = "yes" ; then 13875 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13876 found="yes" 13877 fi 13878 fi 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 xorg_testset_save_CFLAGS="$CFLAGS" 13895 13896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13899 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13900 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13901 then : 13902 printf %s "(cached) " >&6 13903 else case e in #( 13904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13905 /* end confdefs.h. */ 13906 int i; 13907 _ACEOF 13908 if ac_fn_c_try_compile "$LINENO" 13909 then : 13910 xorg_cv_cc_flag_unknown_warning_option=yes 13911 else case e in #( 13912 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13913 esac 13914 fi 13915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13916 esac 13917 fi 13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13919 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13921 CFLAGS="$xorg_testset_save_CFLAGS" 13922 fi 13923 13924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13927 fi 13928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13930 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13931 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13932 then : 13933 printf %s "(cached) " >&6 13934 else case e in #( 13935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13936 /* end confdefs.h. */ 13937 int i; 13938 _ACEOF 13939 if ac_fn_c_try_compile "$LINENO" 13940 then : 13941 xorg_cv_cc_flag_unused_command_line_argument=yes 13942 else case e in #( 13943 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13944 esac 13945 fi 13946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13947 esac 13948 fi 13949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13952 CFLAGS="$xorg_testset_save_CFLAGS" 13953 fi 13954 13955 found="no" 13956 13957 if test $found = "no" ; then 13958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13960 fi 13961 13962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13964 fi 13965 13966 CFLAGS="$CFLAGS -Wmissing-prototypes" 13967 13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13969 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13970 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13971 if eval test \${$cacheid+y} 13972 then : 13973 printf %s "(cached) " >&6 13974 else case e in #( 13975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13976 /* end confdefs.h. */ 13977 int i; 13978 int 13979 main (void) 13980 { 13981 13982 ; 13983 return 0; 13984 } 13985 _ACEOF 13986 if ac_fn_c_try_link "$LINENO" 13987 then : 13988 eval $cacheid=yes 13989 else case e in #( 13990 e) eval $cacheid=no ;; 13991 esac 13992 fi 13993 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13994 conftest$ac_exeext conftest.$ac_ext ;; 13995 esac 13996 fi 13997 13998 13999 CFLAGS="$xorg_testset_save_CFLAGS" 14000 14001 eval supported=\$$cacheid 14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14003 printf "%s\n" "$supported" >&6; } 14004 if test "$supported" = "yes" ; then 14005 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14006 found="yes" 14007 fi 14008 fi 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 xorg_testset_save_CFLAGS="$CFLAGS" 14025 14026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14029 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14030 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14031 then : 14032 printf %s "(cached) " >&6 14033 else case e in #( 14034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14035 /* end confdefs.h. */ 14036 int i; 14037 _ACEOF 14038 if ac_fn_c_try_compile "$LINENO" 14039 then : 14040 xorg_cv_cc_flag_unknown_warning_option=yes 14041 else case e in #( 14042 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14043 esac 14044 fi 14045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14046 esac 14047 fi 14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14049 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14051 CFLAGS="$xorg_testset_save_CFLAGS" 14052 fi 14053 14054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14057 fi 14058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14060 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14061 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14062 then : 14063 printf %s "(cached) " >&6 14064 else case e in #( 14065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14066 /* end confdefs.h. */ 14067 int i; 14068 _ACEOF 14069 if ac_fn_c_try_compile "$LINENO" 14070 then : 14071 xorg_cv_cc_flag_unused_command_line_argument=yes 14072 else case e in #( 14073 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14074 esac 14075 fi 14076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14077 esac 14078 fi 14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14082 CFLAGS="$xorg_testset_save_CFLAGS" 14083 fi 14084 14085 found="no" 14086 14087 if test $found = "no" ; then 14088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14090 fi 14091 14092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14094 fi 14095 14096 CFLAGS="$CFLAGS -Wnested-externs" 14097 14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14099 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14100 cacheid=xorg_cv_cc_flag__Wnested_externs 14101 if eval test \${$cacheid+y} 14102 then : 14103 printf %s "(cached) " >&6 14104 else case e in #( 14105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14106 /* end confdefs.h. */ 14107 int i; 14108 int 14109 main (void) 14110 { 14111 14112 ; 14113 return 0; 14114 } 14115 _ACEOF 14116 if ac_fn_c_try_link "$LINENO" 14117 then : 14118 eval $cacheid=yes 14119 else case e in #( 14120 e) eval $cacheid=no ;; 14121 esac 14122 fi 14123 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14124 conftest$ac_exeext conftest.$ac_ext ;; 14125 esac 14126 fi 14127 14128 14129 CFLAGS="$xorg_testset_save_CFLAGS" 14130 14131 eval supported=\$$cacheid 14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14133 printf "%s\n" "$supported" >&6; } 14134 if test "$supported" = "yes" ; then 14135 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14136 found="yes" 14137 fi 14138 fi 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 xorg_testset_save_CFLAGS="$CFLAGS" 14155 14156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14159 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14160 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14161 then : 14162 printf %s "(cached) " >&6 14163 else case e in #( 14164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14165 /* end confdefs.h. */ 14166 int i; 14167 _ACEOF 14168 if ac_fn_c_try_compile "$LINENO" 14169 then : 14170 xorg_cv_cc_flag_unknown_warning_option=yes 14171 else case e in #( 14172 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14173 esac 14174 fi 14175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14176 esac 14177 fi 14178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14179 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14181 CFLAGS="$xorg_testset_save_CFLAGS" 14182 fi 14183 14184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14187 fi 14188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14190 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14191 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14192 then : 14193 printf %s "(cached) " >&6 14194 else case e in #( 14195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14196 /* end confdefs.h. */ 14197 int i; 14198 _ACEOF 14199 if ac_fn_c_try_compile "$LINENO" 14200 then : 14201 xorg_cv_cc_flag_unused_command_line_argument=yes 14202 else case e in #( 14203 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14204 esac 14205 fi 14206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14207 esac 14208 fi 14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14210 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14212 CFLAGS="$xorg_testset_save_CFLAGS" 14213 fi 14214 14215 found="no" 14216 14217 if test $found = "no" ; then 14218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14220 fi 14221 14222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14224 fi 14225 14226 CFLAGS="$CFLAGS -Wbad-function-cast" 14227 14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14229 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14230 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14231 if eval test \${$cacheid+y} 14232 then : 14233 printf %s "(cached) " >&6 14234 else case e in #( 14235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14236 /* end confdefs.h. */ 14237 int i; 14238 int 14239 main (void) 14240 { 14241 14242 ; 14243 return 0; 14244 } 14245 _ACEOF 14246 if ac_fn_c_try_link "$LINENO" 14247 then : 14248 eval $cacheid=yes 14249 else case e in #( 14250 e) eval $cacheid=no ;; 14251 esac 14252 fi 14253 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14254 conftest$ac_exeext conftest.$ac_ext ;; 14255 esac 14256 fi 14257 14258 14259 CFLAGS="$xorg_testset_save_CFLAGS" 14260 14261 eval supported=\$$cacheid 14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14263 printf "%s\n" "$supported" >&6; } 14264 if test "$supported" = "yes" ; then 14265 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14266 found="yes" 14267 fi 14268 fi 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 xorg_testset_save_CFLAGS="$CFLAGS" 14285 14286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14289 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14290 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14291 then : 14292 printf %s "(cached) " >&6 14293 else case e in #( 14294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14295 /* end confdefs.h. */ 14296 int i; 14297 _ACEOF 14298 if ac_fn_c_try_compile "$LINENO" 14299 then : 14300 xorg_cv_cc_flag_unknown_warning_option=yes 14301 else case e in #( 14302 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14303 esac 14304 fi 14305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14306 esac 14307 fi 14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14309 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14311 CFLAGS="$xorg_testset_save_CFLAGS" 14312 fi 14313 14314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14317 fi 14318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14320 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14321 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14322 then : 14323 printf %s "(cached) " >&6 14324 else case e in #( 14325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326 /* end confdefs.h. */ 14327 int i; 14328 _ACEOF 14329 if ac_fn_c_try_compile "$LINENO" 14330 then : 14331 xorg_cv_cc_flag_unused_command_line_argument=yes 14332 else case e in #( 14333 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14334 esac 14335 fi 14336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14337 esac 14338 fi 14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14340 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14342 CFLAGS="$xorg_testset_save_CFLAGS" 14343 fi 14344 14345 found="no" 14346 14347 if test $found = "no" ; then 14348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14350 fi 14351 14352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14354 fi 14355 14356 CFLAGS="$CFLAGS -Wold-style-definition" 14357 14358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14359 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14360 cacheid=xorg_cv_cc_flag__Wold_style_definition 14361 if eval test \${$cacheid+y} 14362 then : 14363 printf %s "(cached) " >&6 14364 else case e in #( 14365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14366 /* end confdefs.h. */ 14367 int i; 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 eval $cacheid=yes 14379 else case e in #( 14380 e) eval $cacheid=no ;; 14381 esac 14382 fi 14383 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14384 conftest$ac_exeext conftest.$ac_ext ;; 14385 esac 14386 fi 14387 14388 14389 CFLAGS="$xorg_testset_save_CFLAGS" 14390 14391 eval supported=\$$cacheid 14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14393 printf "%s\n" "$supported" >&6; } 14394 if test "$supported" = "yes" ; then 14395 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14396 found="yes" 14397 fi 14398 fi 14399 14400 if test $found = "no" ; then 14401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14403 fi 14404 14405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14407 fi 14408 14409 CFLAGS="$CFLAGS -fd" 14410 14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14412 printf %s "checking if $CC supports -fd... " >&6; } 14413 cacheid=xorg_cv_cc_flag__fd 14414 if eval test \${$cacheid+y} 14415 then : 14416 printf %s "(cached) " >&6 14417 else case e in #( 14418 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14419 /* end confdefs.h. */ 14420 int i; 14421 int 14422 main (void) 14423 { 14424 14425 ; 14426 return 0; 14427 } 14428 _ACEOF 14429 if ac_fn_c_try_link "$LINENO" 14430 then : 14431 eval $cacheid=yes 14432 else case e in #( 14433 e) eval $cacheid=no ;; 14434 esac 14435 fi 14436 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14437 conftest$ac_exeext conftest.$ac_ext ;; 14438 esac 14439 fi 14440 14441 14442 CFLAGS="$xorg_testset_save_CFLAGS" 14443 14444 eval supported=\$$cacheid 14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14446 printf "%s\n" "$supported" >&6; } 14447 if test "$supported" = "yes" ; then 14448 BASE_CFLAGS="$BASE_CFLAGS -fd" 14449 found="yes" 14450 fi 14451 fi 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 xorg_testset_save_CFLAGS="$CFLAGS" 14468 14469 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14472 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14473 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14474 then : 14475 printf %s "(cached) " >&6 14476 else case e in #( 14477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14478 /* end confdefs.h. */ 14479 int i; 14480 _ACEOF 14481 if ac_fn_c_try_compile "$LINENO" 14482 then : 14483 xorg_cv_cc_flag_unknown_warning_option=yes 14484 else case e in #( 14485 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14486 esac 14487 fi 14488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14489 esac 14490 fi 14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14492 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14494 CFLAGS="$xorg_testset_save_CFLAGS" 14495 fi 14496 14497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14500 fi 14501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14503 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14504 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14505 then : 14506 printf %s "(cached) " >&6 14507 else case e in #( 14508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509 /* end confdefs.h. */ 14510 int i; 14511 _ACEOF 14512 if ac_fn_c_try_compile "$LINENO" 14513 then : 14514 xorg_cv_cc_flag_unused_command_line_argument=yes 14515 else case e in #( 14516 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14517 esac 14518 fi 14519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14520 esac 14521 fi 14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14523 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14525 CFLAGS="$xorg_testset_save_CFLAGS" 14526 fi 14527 14528 found="no" 14529 14530 if test $found = "no" ; then 14531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14533 fi 14534 14535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14537 fi 14538 14539 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14540 14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14542 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14543 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14544 if eval test \${$cacheid+y} 14545 then : 14546 printf %s "(cached) " >&6 14547 else case e in #( 14548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14549 /* end confdefs.h. */ 14550 int i; 14551 int 14552 main (void) 14553 { 14554 14555 ; 14556 return 0; 14557 } 14558 _ACEOF 14559 if ac_fn_c_try_link "$LINENO" 14560 then : 14561 eval $cacheid=yes 14562 else case e in #( 14563 e) eval $cacheid=no ;; 14564 esac 14565 fi 14566 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14567 conftest$ac_exeext conftest.$ac_ext ;; 14568 esac 14569 fi 14570 14571 14572 CFLAGS="$xorg_testset_save_CFLAGS" 14573 14574 eval supported=\$$cacheid 14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14576 printf "%s\n" "$supported" >&6; } 14577 if test "$supported" = "yes" ; then 14578 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14579 found="yes" 14580 fi 14581 fi 14582 14583 14584 14585 14586 14587 # This chunk adds additional warnings that could catch undesired effects. 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 xorg_testset_save_CFLAGS="$CFLAGS" 14602 14603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14606 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14607 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14608 then : 14609 printf %s "(cached) " >&6 14610 else case e in #( 14611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14612 /* end confdefs.h. */ 14613 int i; 14614 _ACEOF 14615 if ac_fn_c_try_compile "$LINENO" 14616 then : 14617 xorg_cv_cc_flag_unknown_warning_option=yes 14618 else case e in #( 14619 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14620 esac 14621 fi 14622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14623 esac 14624 fi 14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14626 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14628 CFLAGS="$xorg_testset_save_CFLAGS" 14629 fi 14630 14631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14634 fi 14635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14637 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14638 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14639 then : 14640 printf %s "(cached) " >&6 14641 else case e in #( 14642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14643 /* end confdefs.h. */ 14644 int i; 14645 _ACEOF 14646 if ac_fn_c_try_compile "$LINENO" 14647 then : 14648 xorg_cv_cc_flag_unused_command_line_argument=yes 14649 else case e in #( 14650 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14651 esac 14652 fi 14653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14654 esac 14655 fi 14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14659 CFLAGS="$xorg_testset_save_CFLAGS" 14660 fi 14661 14662 found="no" 14663 14664 if test $found = "no" ; then 14665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14667 fi 14668 14669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14671 fi 14672 14673 CFLAGS="$CFLAGS -Wunused" 14674 14675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14676 printf %s "checking if $CC supports -Wunused... " >&6; } 14677 cacheid=xorg_cv_cc_flag__Wunused 14678 if eval test \${$cacheid+y} 14679 then : 14680 printf %s "(cached) " >&6 14681 else case e in #( 14682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14683 /* end confdefs.h. */ 14684 int i; 14685 int 14686 main (void) 14687 { 14688 14689 ; 14690 return 0; 14691 } 14692 _ACEOF 14693 if ac_fn_c_try_link "$LINENO" 14694 then : 14695 eval $cacheid=yes 14696 else case e in #( 14697 e) eval $cacheid=no ;; 14698 esac 14699 fi 14700 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14701 conftest$ac_exeext conftest.$ac_ext ;; 14702 esac 14703 fi 14704 14705 14706 CFLAGS="$xorg_testset_save_CFLAGS" 14707 14708 eval supported=\$$cacheid 14709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14710 printf "%s\n" "$supported" >&6; } 14711 if test "$supported" = "yes" ; then 14712 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14713 found="yes" 14714 fi 14715 fi 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 xorg_testset_save_CFLAGS="$CFLAGS" 14732 14733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14737 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14738 then : 14739 printf %s "(cached) " >&6 14740 else case e in #( 14741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14742 /* end confdefs.h. */ 14743 int i; 14744 _ACEOF 14745 if ac_fn_c_try_compile "$LINENO" 14746 then : 14747 xorg_cv_cc_flag_unknown_warning_option=yes 14748 else case e in #( 14749 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14750 esac 14751 fi 14752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14753 esac 14754 fi 14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14756 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14758 CFLAGS="$xorg_testset_save_CFLAGS" 14759 fi 14760 14761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14764 fi 14765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14767 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14768 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14769 then : 14770 printf %s "(cached) " >&6 14771 else case e in #( 14772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14773 /* end confdefs.h. */ 14774 int i; 14775 _ACEOF 14776 if ac_fn_c_try_compile "$LINENO" 14777 then : 14778 xorg_cv_cc_flag_unused_command_line_argument=yes 14779 else case e in #( 14780 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14781 esac 14782 fi 14783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14784 esac 14785 fi 14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14787 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14789 CFLAGS="$xorg_testset_save_CFLAGS" 14790 fi 14791 14792 found="no" 14793 14794 if test $found = "no" ; then 14795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14797 fi 14798 14799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14801 fi 14802 14803 CFLAGS="$CFLAGS -Wuninitialized" 14804 14805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14806 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14807 cacheid=xorg_cv_cc_flag__Wuninitialized 14808 if eval test \${$cacheid+y} 14809 then : 14810 printf %s "(cached) " >&6 14811 else case e in #( 14812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14813 /* end confdefs.h. */ 14814 int i; 14815 int 14816 main (void) 14817 { 14818 14819 ; 14820 return 0; 14821 } 14822 _ACEOF 14823 if ac_fn_c_try_link "$LINENO" 14824 then : 14825 eval $cacheid=yes 14826 else case e in #( 14827 e) eval $cacheid=no ;; 14828 esac 14829 fi 14830 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14831 conftest$ac_exeext conftest.$ac_ext ;; 14832 esac 14833 fi 14834 14835 14836 CFLAGS="$xorg_testset_save_CFLAGS" 14837 14838 eval supported=\$$cacheid 14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14840 printf "%s\n" "$supported" >&6; } 14841 if test "$supported" = "yes" ; then 14842 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14843 found="yes" 14844 fi 14845 fi 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 xorg_testset_save_CFLAGS="$CFLAGS" 14862 14863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14867 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14868 then : 14869 printf %s "(cached) " >&6 14870 else case e in #( 14871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14872 /* end confdefs.h. */ 14873 int i; 14874 _ACEOF 14875 if ac_fn_c_try_compile "$LINENO" 14876 then : 14877 xorg_cv_cc_flag_unknown_warning_option=yes 14878 else case e in #( 14879 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14880 esac 14881 fi 14882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14883 esac 14884 fi 14885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14888 CFLAGS="$xorg_testset_save_CFLAGS" 14889 fi 14890 14891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14894 fi 14895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14899 then : 14900 printf %s "(cached) " >&6 14901 else case e in #( 14902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14903 /* end confdefs.h. */ 14904 int i; 14905 _ACEOF 14906 if ac_fn_c_try_compile "$LINENO" 14907 then : 14908 xorg_cv_cc_flag_unused_command_line_argument=yes 14909 else case e in #( 14910 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14911 esac 14912 fi 14913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14914 esac 14915 fi 14916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14917 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14919 CFLAGS="$xorg_testset_save_CFLAGS" 14920 fi 14921 14922 found="no" 14923 14924 if test $found = "no" ; then 14925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14927 fi 14928 14929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14931 fi 14932 14933 CFLAGS="$CFLAGS -Wshadow" 14934 14935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14936 printf %s "checking if $CC supports -Wshadow... " >&6; } 14937 cacheid=xorg_cv_cc_flag__Wshadow 14938 if eval test \${$cacheid+y} 14939 then : 14940 printf %s "(cached) " >&6 14941 else case e in #( 14942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943 /* end confdefs.h. */ 14944 int i; 14945 int 14946 main (void) 14947 { 14948 14949 ; 14950 return 0; 14951 } 14952 _ACEOF 14953 if ac_fn_c_try_link "$LINENO" 14954 then : 14955 eval $cacheid=yes 14956 else case e in #( 14957 e) eval $cacheid=no ;; 14958 esac 14959 fi 14960 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14961 conftest$ac_exeext conftest.$ac_ext ;; 14962 esac 14963 fi 14964 14965 14966 CFLAGS="$xorg_testset_save_CFLAGS" 14967 14968 eval supported=\$$cacheid 14969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14970 printf "%s\n" "$supported" >&6; } 14971 if test "$supported" = "yes" ; then 14972 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14973 found="yes" 14974 fi 14975 fi 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 xorg_testset_save_CFLAGS="$CFLAGS" 14992 14993 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14996 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14997 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14998 then : 14999 printf %s "(cached) " >&6 15000 else case e in #( 15001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15002 /* end confdefs.h. */ 15003 int i; 15004 _ACEOF 15005 if ac_fn_c_try_compile "$LINENO" 15006 then : 15007 xorg_cv_cc_flag_unknown_warning_option=yes 15008 else case e in #( 15009 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15010 esac 15011 fi 15012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15013 esac 15014 fi 15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15016 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15018 CFLAGS="$xorg_testset_save_CFLAGS" 15019 fi 15020 15021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15024 fi 15025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15027 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15028 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15029 then : 15030 printf %s "(cached) " >&6 15031 else case e in #( 15032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15033 /* end confdefs.h. */ 15034 int i; 15035 _ACEOF 15036 if ac_fn_c_try_compile "$LINENO" 15037 then : 15038 xorg_cv_cc_flag_unused_command_line_argument=yes 15039 else case e in #( 15040 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15041 esac 15042 fi 15043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15044 esac 15045 fi 15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15047 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15049 CFLAGS="$xorg_testset_save_CFLAGS" 15050 fi 15051 15052 found="no" 15053 15054 if test $found = "no" ; then 15055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15057 fi 15058 15059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15061 fi 15062 15063 CFLAGS="$CFLAGS -Wmissing-noreturn" 15064 15065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15066 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15067 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15068 if eval test \${$cacheid+y} 15069 then : 15070 printf %s "(cached) " >&6 15071 else case e in #( 15072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15073 /* end confdefs.h. */ 15074 int i; 15075 int 15076 main (void) 15077 { 15078 15079 ; 15080 return 0; 15081 } 15082 _ACEOF 15083 if ac_fn_c_try_link "$LINENO" 15084 then : 15085 eval $cacheid=yes 15086 else case e in #( 15087 e) eval $cacheid=no ;; 15088 esac 15089 fi 15090 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15091 conftest$ac_exeext conftest.$ac_ext ;; 15092 esac 15093 fi 15094 15095 15096 CFLAGS="$xorg_testset_save_CFLAGS" 15097 15098 eval supported=\$$cacheid 15099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15100 printf "%s\n" "$supported" >&6; } 15101 if test "$supported" = "yes" ; then 15102 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15103 found="yes" 15104 fi 15105 fi 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 xorg_testset_save_CFLAGS="$CFLAGS" 15122 15123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15126 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15127 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15128 then : 15129 printf %s "(cached) " >&6 15130 else case e in #( 15131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15132 /* end confdefs.h. */ 15133 int i; 15134 _ACEOF 15135 if ac_fn_c_try_compile "$LINENO" 15136 then : 15137 xorg_cv_cc_flag_unknown_warning_option=yes 15138 else case e in #( 15139 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15140 esac 15141 fi 15142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15143 esac 15144 fi 15145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15146 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15148 CFLAGS="$xorg_testset_save_CFLAGS" 15149 fi 15150 15151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15154 fi 15155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15157 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15158 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15159 then : 15160 printf %s "(cached) " >&6 15161 else case e in #( 15162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15163 /* end confdefs.h. */ 15164 int i; 15165 _ACEOF 15166 if ac_fn_c_try_compile "$LINENO" 15167 then : 15168 xorg_cv_cc_flag_unused_command_line_argument=yes 15169 else case e in #( 15170 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15171 esac 15172 fi 15173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15174 esac 15175 fi 15176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15177 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15179 CFLAGS="$xorg_testset_save_CFLAGS" 15180 fi 15181 15182 found="no" 15183 15184 if test $found = "no" ; then 15185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15187 fi 15188 15189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15191 fi 15192 15193 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15194 15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15196 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15197 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15198 if eval test \${$cacheid+y} 15199 then : 15200 printf %s "(cached) " >&6 15201 else case e in #( 15202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15203 /* end confdefs.h. */ 15204 int i; 15205 int 15206 main (void) 15207 { 15208 15209 ; 15210 return 0; 15211 } 15212 _ACEOF 15213 if ac_fn_c_try_link "$LINENO" 15214 then : 15215 eval $cacheid=yes 15216 else case e in #( 15217 e) eval $cacheid=no ;; 15218 esac 15219 fi 15220 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15221 conftest$ac_exeext conftest.$ac_ext ;; 15222 esac 15223 fi 15224 15225 15226 CFLAGS="$xorg_testset_save_CFLAGS" 15227 15228 eval supported=\$$cacheid 15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15230 printf "%s\n" "$supported" >&6; } 15231 if test "$supported" = "yes" ; then 15232 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15233 found="yes" 15234 fi 15235 fi 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 xorg_testset_save_CFLAGS="$CFLAGS" 15252 15253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15257 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15258 then : 15259 printf %s "(cached) " >&6 15260 else case e in #( 15261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15262 /* end confdefs.h. */ 15263 int i; 15264 _ACEOF 15265 if ac_fn_c_try_compile "$LINENO" 15266 then : 15267 xorg_cv_cc_flag_unknown_warning_option=yes 15268 else case e in #( 15269 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15270 esac 15271 fi 15272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15273 esac 15274 fi 15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15278 CFLAGS="$xorg_testset_save_CFLAGS" 15279 fi 15280 15281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15284 fi 15285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15289 then : 15290 printf %s "(cached) " >&6 15291 else case e in #( 15292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15293 /* end confdefs.h. */ 15294 int i; 15295 _ACEOF 15296 if ac_fn_c_try_compile "$LINENO" 15297 then : 15298 xorg_cv_cc_flag_unused_command_line_argument=yes 15299 else case e in #( 15300 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15301 esac 15302 fi 15303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15304 esac 15305 fi 15306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15307 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15309 CFLAGS="$xorg_testset_save_CFLAGS" 15310 fi 15311 15312 found="no" 15313 15314 if test $found = "no" ; then 15315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15317 fi 15318 15319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15321 fi 15322 15323 CFLAGS="$CFLAGS -Wredundant-decls" 15324 15325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15326 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15327 cacheid=xorg_cv_cc_flag__Wredundant_decls 15328 if eval test \${$cacheid+y} 15329 then : 15330 printf %s "(cached) " >&6 15331 else case e in #( 15332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15333 /* end confdefs.h. */ 15334 int i; 15335 int 15336 main (void) 15337 { 15338 15339 ; 15340 return 0; 15341 } 15342 _ACEOF 15343 if ac_fn_c_try_link "$LINENO" 15344 then : 15345 eval $cacheid=yes 15346 else case e in #( 15347 e) eval $cacheid=no ;; 15348 esac 15349 fi 15350 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15351 conftest$ac_exeext conftest.$ac_ext ;; 15352 esac 15353 fi 15354 15355 15356 CFLAGS="$xorg_testset_save_CFLAGS" 15357 15358 eval supported=\$$cacheid 15359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15360 printf "%s\n" "$supported" >&6; } 15361 if test "$supported" = "yes" ; then 15362 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15363 found="yes" 15364 fi 15365 fi 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 xorg_testset_save_CFLAGS="$CFLAGS" 15382 15383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15386 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15387 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15388 then : 15389 printf %s "(cached) " >&6 15390 else case e in #( 15391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15392 /* end confdefs.h. */ 15393 int i; 15394 _ACEOF 15395 if ac_fn_c_try_compile "$LINENO" 15396 then : 15397 xorg_cv_cc_flag_unknown_warning_option=yes 15398 else case e in #( 15399 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15400 esac 15401 fi 15402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15403 esac 15404 fi 15405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15406 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15408 CFLAGS="$xorg_testset_save_CFLAGS" 15409 fi 15410 15411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15414 fi 15415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15417 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15418 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15419 then : 15420 printf %s "(cached) " >&6 15421 else case e in #( 15422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15423 /* end confdefs.h. */ 15424 int i; 15425 _ACEOF 15426 if ac_fn_c_try_compile "$LINENO" 15427 then : 15428 xorg_cv_cc_flag_unused_command_line_argument=yes 15429 else case e in #( 15430 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15431 esac 15432 fi 15433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15434 esac 15435 fi 15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15439 CFLAGS="$xorg_testset_save_CFLAGS" 15440 fi 15441 15442 found="no" 15443 15444 if test $found = "no" ; then 15445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15447 fi 15448 15449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15451 fi 15452 15453 CFLAGS="$CFLAGS -Wlogical-op" 15454 15455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15456 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15457 cacheid=xorg_cv_cc_flag__Wlogical_op 15458 if eval test \${$cacheid+y} 15459 then : 15460 printf %s "(cached) " >&6 15461 else case e in #( 15462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15463 /* end confdefs.h. */ 15464 int i; 15465 int 15466 main (void) 15467 { 15468 15469 ; 15470 return 0; 15471 } 15472 _ACEOF 15473 if ac_fn_c_try_link "$LINENO" 15474 then : 15475 eval $cacheid=yes 15476 else case e in #( 15477 e) eval $cacheid=no ;; 15478 esac 15479 fi 15480 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15481 conftest$ac_exeext conftest.$ac_ext ;; 15482 esac 15483 fi 15484 15485 15486 CFLAGS="$xorg_testset_save_CFLAGS" 15487 15488 eval supported=\$$cacheid 15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15490 printf "%s\n" "$supported" >&6; } 15491 if test "$supported" = "yes" ; then 15492 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15493 found="yes" 15494 fi 15495 fi 15496 15497 15498 15499 # These are currently disabled because they are noisy. They will be enabled 15500 # in the future once the codebase is sufficiently modernized to silence 15501 # them. For now, I don't want them to drown out the other warnings. 15502 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15503 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15504 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15505 15506 # Turn some warnings into errors, so we don't accidentally get successful builds 15507 # when there are problems that should be fixed. 15508 15509 if test "x$SELECTIVE_WERROR" = "xyes" ; then 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 xorg_testset_save_CFLAGS="$CFLAGS" 15524 15525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15528 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15529 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15530 then : 15531 printf %s "(cached) " >&6 15532 else case e in #( 15533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534 /* end confdefs.h. */ 15535 int i; 15536 _ACEOF 15537 if ac_fn_c_try_compile "$LINENO" 15538 then : 15539 xorg_cv_cc_flag_unknown_warning_option=yes 15540 else case e in #( 15541 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15542 esac 15543 fi 15544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15545 esac 15546 fi 15547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15548 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15550 CFLAGS="$xorg_testset_save_CFLAGS" 15551 fi 15552 15553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15556 fi 15557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15559 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15560 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15561 then : 15562 printf %s "(cached) " >&6 15563 else case e in #( 15564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15565 /* end confdefs.h. */ 15566 int i; 15567 _ACEOF 15568 if ac_fn_c_try_compile "$LINENO" 15569 then : 15570 xorg_cv_cc_flag_unused_command_line_argument=yes 15571 else case e in #( 15572 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15573 esac 15574 fi 15575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15576 esac 15577 fi 15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15579 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15581 CFLAGS="$xorg_testset_save_CFLAGS" 15582 fi 15583 15584 found="no" 15585 15586 if test $found = "no" ; then 15587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15589 fi 15590 15591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15593 fi 15594 15595 CFLAGS="$CFLAGS -Werror=implicit" 15596 15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15598 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15599 cacheid=xorg_cv_cc_flag__Werror_implicit 15600 if eval test \${$cacheid+y} 15601 then : 15602 printf %s "(cached) " >&6 15603 else case e in #( 15604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605 /* end confdefs.h. */ 15606 int i; 15607 int 15608 main (void) 15609 { 15610 15611 ; 15612 return 0; 15613 } 15614 _ACEOF 15615 if ac_fn_c_try_link "$LINENO" 15616 then : 15617 eval $cacheid=yes 15618 else case e in #( 15619 e) eval $cacheid=no ;; 15620 esac 15621 fi 15622 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15623 conftest$ac_exeext conftest.$ac_ext ;; 15624 esac 15625 fi 15626 15627 15628 CFLAGS="$xorg_testset_save_CFLAGS" 15629 15630 eval supported=\$$cacheid 15631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15632 printf "%s\n" "$supported" >&6; } 15633 if test "$supported" = "yes" ; then 15634 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15635 found="yes" 15636 fi 15637 fi 15638 15639 if test $found = "no" ; then 15640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15642 fi 15643 15644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15646 fi 15647 15648 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15649 15650 { 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 15651 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15652 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15653 if eval test \${$cacheid+y} 15654 then : 15655 printf %s "(cached) " >&6 15656 else case e in #( 15657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15658 /* end confdefs.h. */ 15659 int i; 15660 int 15661 main (void) 15662 { 15663 15664 ; 15665 return 0; 15666 } 15667 _ACEOF 15668 if ac_fn_c_try_link "$LINENO" 15669 then : 15670 eval $cacheid=yes 15671 else case e in #( 15672 e) eval $cacheid=no ;; 15673 esac 15674 fi 15675 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15676 conftest$ac_exeext conftest.$ac_ext ;; 15677 esac 15678 fi 15679 15680 15681 CFLAGS="$xorg_testset_save_CFLAGS" 15682 15683 eval supported=\$$cacheid 15684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15685 printf "%s\n" "$supported" >&6; } 15686 if test "$supported" = "yes" ; then 15687 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15688 found="yes" 15689 fi 15690 fi 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 xorg_testset_save_CFLAGS="$CFLAGS" 15707 15708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15711 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15712 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15713 then : 15714 printf %s "(cached) " >&6 15715 else case e in #( 15716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15717 /* end confdefs.h. */ 15718 int i; 15719 _ACEOF 15720 if ac_fn_c_try_compile "$LINENO" 15721 then : 15722 xorg_cv_cc_flag_unknown_warning_option=yes 15723 else case e in #( 15724 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15725 esac 15726 fi 15727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15728 esac 15729 fi 15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15731 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15733 CFLAGS="$xorg_testset_save_CFLAGS" 15734 fi 15735 15736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15739 fi 15740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15742 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15743 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15744 then : 15745 printf %s "(cached) " >&6 15746 else case e in #( 15747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15748 /* end confdefs.h. */ 15749 int i; 15750 _ACEOF 15751 if ac_fn_c_try_compile "$LINENO" 15752 then : 15753 xorg_cv_cc_flag_unused_command_line_argument=yes 15754 else case e in #( 15755 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15756 esac 15757 fi 15758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15759 esac 15760 fi 15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15762 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15764 CFLAGS="$xorg_testset_save_CFLAGS" 15765 fi 15766 15767 found="no" 15768 15769 if test $found = "no" ; then 15770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15772 fi 15773 15774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15776 fi 15777 15778 CFLAGS="$CFLAGS -Werror=nonnull" 15779 15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15781 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15782 cacheid=xorg_cv_cc_flag__Werror_nonnull 15783 if eval test \${$cacheid+y} 15784 then : 15785 printf %s "(cached) " >&6 15786 else case e in #( 15787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15788 /* end confdefs.h. */ 15789 int i; 15790 int 15791 main (void) 15792 { 15793 15794 ; 15795 return 0; 15796 } 15797 _ACEOF 15798 if ac_fn_c_try_link "$LINENO" 15799 then : 15800 eval $cacheid=yes 15801 else case e in #( 15802 e) eval $cacheid=no ;; 15803 esac 15804 fi 15805 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15806 conftest$ac_exeext conftest.$ac_ext ;; 15807 esac 15808 fi 15809 15810 15811 CFLAGS="$xorg_testset_save_CFLAGS" 15812 15813 eval supported=\$$cacheid 15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15815 printf "%s\n" "$supported" >&6; } 15816 if test "$supported" = "yes" ; then 15817 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15818 found="yes" 15819 fi 15820 fi 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 xorg_testset_save_CFLAGS="$CFLAGS" 15837 15838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15841 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15842 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15843 then : 15844 printf %s "(cached) " >&6 15845 else case e in #( 15846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15847 /* end confdefs.h. */ 15848 int i; 15849 _ACEOF 15850 if ac_fn_c_try_compile "$LINENO" 15851 then : 15852 xorg_cv_cc_flag_unknown_warning_option=yes 15853 else case e in #( 15854 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15855 esac 15856 fi 15857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15858 esac 15859 fi 15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15861 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15863 CFLAGS="$xorg_testset_save_CFLAGS" 15864 fi 15865 15866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15869 fi 15870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15873 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15874 then : 15875 printf %s "(cached) " >&6 15876 else case e in #( 15877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15878 /* end confdefs.h. */ 15879 int i; 15880 _ACEOF 15881 if ac_fn_c_try_compile "$LINENO" 15882 then : 15883 xorg_cv_cc_flag_unused_command_line_argument=yes 15884 else case e in #( 15885 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15886 esac 15887 fi 15888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15889 esac 15890 fi 15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15892 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15894 CFLAGS="$xorg_testset_save_CFLAGS" 15895 fi 15896 15897 found="no" 15898 15899 if test $found = "no" ; then 15900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15902 fi 15903 15904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15906 fi 15907 15908 CFLAGS="$CFLAGS -Werror=init-self" 15909 15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15911 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15912 cacheid=xorg_cv_cc_flag__Werror_init_self 15913 if eval test \${$cacheid+y} 15914 then : 15915 printf %s "(cached) " >&6 15916 else case e in #( 15917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15918 /* end confdefs.h. */ 15919 int i; 15920 int 15921 main (void) 15922 { 15923 15924 ; 15925 return 0; 15926 } 15927 _ACEOF 15928 if ac_fn_c_try_link "$LINENO" 15929 then : 15930 eval $cacheid=yes 15931 else case e in #( 15932 e) eval $cacheid=no ;; 15933 esac 15934 fi 15935 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15936 conftest$ac_exeext conftest.$ac_ext ;; 15937 esac 15938 fi 15939 15940 15941 CFLAGS="$xorg_testset_save_CFLAGS" 15942 15943 eval supported=\$$cacheid 15944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15945 printf "%s\n" "$supported" >&6; } 15946 if test "$supported" = "yes" ; then 15947 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15948 found="yes" 15949 fi 15950 fi 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 xorg_testset_save_CFLAGS="$CFLAGS" 15967 15968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15972 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15973 then : 15974 printf %s "(cached) " >&6 15975 else case e in #( 15976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15977 /* end confdefs.h. */ 15978 int i; 15979 _ACEOF 15980 if ac_fn_c_try_compile "$LINENO" 15981 then : 15982 xorg_cv_cc_flag_unknown_warning_option=yes 15983 else case e in #( 15984 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15985 esac 15986 fi 15987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15988 esac 15989 fi 15990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15991 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15993 CFLAGS="$xorg_testset_save_CFLAGS" 15994 fi 15995 15996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15999 fi 16000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16003 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16004 then : 16005 printf %s "(cached) " >&6 16006 else case e in #( 16007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16008 /* end confdefs.h. */ 16009 int i; 16010 _ACEOF 16011 if ac_fn_c_try_compile "$LINENO" 16012 then : 16013 xorg_cv_cc_flag_unused_command_line_argument=yes 16014 else case e in #( 16015 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16016 esac 16017 fi 16018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16019 esac 16020 fi 16021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16022 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16024 CFLAGS="$xorg_testset_save_CFLAGS" 16025 fi 16026 16027 found="no" 16028 16029 if test $found = "no" ; then 16030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16032 fi 16033 16034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16036 fi 16037 16038 CFLAGS="$CFLAGS -Werror=main" 16039 16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16041 printf %s "checking if $CC supports -Werror=main... " >&6; } 16042 cacheid=xorg_cv_cc_flag__Werror_main 16043 if eval test \${$cacheid+y} 16044 then : 16045 printf %s "(cached) " >&6 16046 else case e in #( 16047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16048 /* end confdefs.h. */ 16049 int i; 16050 int 16051 main (void) 16052 { 16053 16054 ; 16055 return 0; 16056 } 16057 _ACEOF 16058 if ac_fn_c_try_link "$LINENO" 16059 then : 16060 eval $cacheid=yes 16061 else case e in #( 16062 e) eval $cacheid=no ;; 16063 esac 16064 fi 16065 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16066 conftest$ac_exeext conftest.$ac_ext ;; 16067 esac 16068 fi 16069 16070 16071 CFLAGS="$xorg_testset_save_CFLAGS" 16072 16073 eval supported=\$$cacheid 16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16075 printf "%s\n" "$supported" >&6; } 16076 if test "$supported" = "yes" ; then 16077 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16078 found="yes" 16079 fi 16080 fi 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 xorg_testset_save_CFLAGS="$CFLAGS" 16097 16098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16102 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16103 then : 16104 printf %s "(cached) " >&6 16105 else case e in #( 16106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16107 /* end confdefs.h. */ 16108 int i; 16109 _ACEOF 16110 if ac_fn_c_try_compile "$LINENO" 16111 then : 16112 xorg_cv_cc_flag_unknown_warning_option=yes 16113 else case e in #( 16114 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16115 esac 16116 fi 16117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16118 esac 16119 fi 16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16123 CFLAGS="$xorg_testset_save_CFLAGS" 16124 fi 16125 16126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16129 fi 16130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16134 then : 16135 printf %s "(cached) " >&6 16136 else case e in #( 16137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16138 /* end confdefs.h. */ 16139 int i; 16140 _ACEOF 16141 if ac_fn_c_try_compile "$LINENO" 16142 then : 16143 xorg_cv_cc_flag_unused_command_line_argument=yes 16144 else case e in #( 16145 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16146 esac 16147 fi 16148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16149 esac 16150 fi 16151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16152 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16154 CFLAGS="$xorg_testset_save_CFLAGS" 16155 fi 16156 16157 found="no" 16158 16159 if test $found = "no" ; then 16160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16162 fi 16163 16164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16166 fi 16167 16168 CFLAGS="$CFLAGS -Werror=missing-braces" 16169 16170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16171 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16172 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16173 if eval test \${$cacheid+y} 16174 then : 16175 printf %s "(cached) " >&6 16176 else case e in #( 16177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16178 /* end confdefs.h. */ 16179 int i; 16180 int 16181 main (void) 16182 { 16183 16184 ; 16185 return 0; 16186 } 16187 _ACEOF 16188 if ac_fn_c_try_link "$LINENO" 16189 then : 16190 eval $cacheid=yes 16191 else case e in #( 16192 e) eval $cacheid=no ;; 16193 esac 16194 fi 16195 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16196 conftest$ac_exeext conftest.$ac_ext ;; 16197 esac 16198 fi 16199 16200 16201 CFLAGS="$xorg_testset_save_CFLAGS" 16202 16203 eval supported=\$$cacheid 16204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16205 printf "%s\n" "$supported" >&6; } 16206 if test "$supported" = "yes" ; then 16207 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16208 found="yes" 16209 fi 16210 fi 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 xorg_testset_save_CFLAGS="$CFLAGS" 16227 16228 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16231 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16232 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16233 then : 16234 printf %s "(cached) " >&6 16235 else case e in #( 16236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16237 /* end confdefs.h. */ 16238 int i; 16239 _ACEOF 16240 if ac_fn_c_try_compile "$LINENO" 16241 then : 16242 xorg_cv_cc_flag_unknown_warning_option=yes 16243 else case e in #( 16244 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16245 esac 16246 fi 16247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16248 esac 16249 fi 16250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16251 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16252 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16253 CFLAGS="$xorg_testset_save_CFLAGS" 16254 fi 16255 16256 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16258 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16259 fi 16260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16262 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16263 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16264 then : 16265 printf %s "(cached) " >&6 16266 else case e in #( 16267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16268 /* end confdefs.h. */ 16269 int i; 16270 _ACEOF 16271 if ac_fn_c_try_compile "$LINENO" 16272 then : 16273 xorg_cv_cc_flag_unused_command_line_argument=yes 16274 else case e in #( 16275 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16276 esac 16277 fi 16278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16279 esac 16280 fi 16281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16282 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16283 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16284 CFLAGS="$xorg_testset_save_CFLAGS" 16285 fi 16286 16287 found="no" 16288 16289 if test $found = "no" ; then 16290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16292 fi 16293 16294 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16296 fi 16297 16298 CFLAGS="$CFLAGS -Werror=sequence-point" 16299 16300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16301 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16302 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16303 if eval test \${$cacheid+y} 16304 then : 16305 printf %s "(cached) " >&6 16306 else case e in #( 16307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16308 /* end confdefs.h. */ 16309 int i; 16310 int 16311 main (void) 16312 { 16313 16314 ; 16315 return 0; 16316 } 16317 _ACEOF 16318 if ac_fn_c_try_link "$LINENO" 16319 then : 16320 eval $cacheid=yes 16321 else case e in #( 16322 e) eval $cacheid=no ;; 16323 esac 16324 fi 16325 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16326 conftest$ac_exeext conftest.$ac_ext ;; 16327 esac 16328 fi 16329 16330 16331 CFLAGS="$xorg_testset_save_CFLAGS" 16332 16333 eval supported=\$$cacheid 16334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16335 printf "%s\n" "$supported" >&6; } 16336 if test "$supported" = "yes" ; then 16337 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16338 found="yes" 16339 fi 16340 fi 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 xorg_testset_save_CFLAGS="$CFLAGS" 16357 16358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16362 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16363 then : 16364 printf %s "(cached) " >&6 16365 else case e in #( 16366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16367 /* end confdefs.h. */ 16368 int i; 16369 _ACEOF 16370 if ac_fn_c_try_compile "$LINENO" 16371 then : 16372 xorg_cv_cc_flag_unknown_warning_option=yes 16373 else case e in #( 16374 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16375 esac 16376 fi 16377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16378 esac 16379 fi 16380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16381 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16382 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16383 CFLAGS="$xorg_testset_save_CFLAGS" 16384 fi 16385 16386 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16389 fi 16390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16392 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16393 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16394 then : 16395 printf %s "(cached) " >&6 16396 else case e in #( 16397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16398 /* end confdefs.h. */ 16399 int i; 16400 _ACEOF 16401 if ac_fn_c_try_compile "$LINENO" 16402 then : 16403 xorg_cv_cc_flag_unused_command_line_argument=yes 16404 else case e in #( 16405 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16406 esac 16407 fi 16408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16409 esac 16410 fi 16411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16412 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16414 CFLAGS="$xorg_testset_save_CFLAGS" 16415 fi 16416 16417 found="no" 16418 16419 if test $found = "no" ; then 16420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16422 fi 16423 16424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16426 fi 16427 16428 CFLAGS="$CFLAGS -Werror=return-type" 16429 16430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16431 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16432 cacheid=xorg_cv_cc_flag__Werror_return_type 16433 if eval test \${$cacheid+y} 16434 then : 16435 printf %s "(cached) " >&6 16436 else case e in #( 16437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16438 /* end confdefs.h. */ 16439 int i; 16440 int 16441 main (void) 16442 { 16443 16444 ; 16445 return 0; 16446 } 16447 _ACEOF 16448 if ac_fn_c_try_link "$LINENO" 16449 then : 16450 eval $cacheid=yes 16451 else case e in #( 16452 e) eval $cacheid=no ;; 16453 esac 16454 fi 16455 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16456 conftest$ac_exeext conftest.$ac_ext ;; 16457 esac 16458 fi 16459 16460 16461 CFLAGS="$xorg_testset_save_CFLAGS" 16462 16463 eval supported=\$$cacheid 16464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16465 printf "%s\n" "$supported" >&6; } 16466 if test "$supported" = "yes" ; then 16467 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16468 found="yes" 16469 fi 16470 fi 16471 16472 if test $found = "no" ; then 16473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16475 fi 16476 16477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16479 fi 16480 16481 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16482 16483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16484 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16485 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16486 if eval test \${$cacheid+y} 16487 then : 16488 printf %s "(cached) " >&6 16489 else case e in #( 16490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16491 /* end confdefs.h. */ 16492 int i; 16493 int 16494 main (void) 16495 { 16496 16497 ; 16498 return 0; 16499 } 16500 _ACEOF 16501 if ac_fn_c_try_link "$LINENO" 16502 then : 16503 eval $cacheid=yes 16504 else case e in #( 16505 e) eval $cacheid=no ;; 16506 esac 16507 fi 16508 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16509 conftest$ac_exeext conftest.$ac_ext ;; 16510 esac 16511 fi 16512 16513 16514 CFLAGS="$xorg_testset_save_CFLAGS" 16515 16516 eval supported=\$$cacheid 16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16518 printf "%s\n" "$supported" >&6; } 16519 if test "$supported" = "yes" ; then 16520 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16521 found="yes" 16522 fi 16523 fi 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 xorg_testset_save_CFLAGS="$CFLAGS" 16540 16541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16544 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16545 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16546 then : 16547 printf %s "(cached) " >&6 16548 else case e in #( 16549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16550 /* end confdefs.h. */ 16551 int i; 16552 _ACEOF 16553 if ac_fn_c_try_compile "$LINENO" 16554 then : 16555 xorg_cv_cc_flag_unknown_warning_option=yes 16556 else case e in #( 16557 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16558 esac 16559 fi 16560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16561 esac 16562 fi 16563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16564 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16566 CFLAGS="$xorg_testset_save_CFLAGS" 16567 fi 16568 16569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16572 fi 16573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16575 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16576 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16577 then : 16578 printf %s "(cached) " >&6 16579 else case e in #( 16580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16581 /* end confdefs.h. */ 16582 int i; 16583 _ACEOF 16584 if ac_fn_c_try_compile "$LINENO" 16585 then : 16586 xorg_cv_cc_flag_unused_command_line_argument=yes 16587 else case e in #( 16588 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16589 esac 16590 fi 16591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16592 esac 16593 fi 16594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16595 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16597 CFLAGS="$xorg_testset_save_CFLAGS" 16598 fi 16599 16600 found="no" 16601 16602 if test $found = "no" ; then 16603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16605 fi 16606 16607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16609 fi 16610 16611 CFLAGS="$CFLAGS -Werror=trigraphs" 16612 16613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16614 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16615 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16616 if eval test \${$cacheid+y} 16617 then : 16618 printf %s "(cached) " >&6 16619 else case e in #( 16620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621 /* end confdefs.h. */ 16622 int i; 16623 int 16624 main (void) 16625 { 16626 16627 ; 16628 return 0; 16629 } 16630 _ACEOF 16631 if ac_fn_c_try_link "$LINENO" 16632 then : 16633 eval $cacheid=yes 16634 else case e in #( 16635 e) eval $cacheid=no ;; 16636 esac 16637 fi 16638 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16639 conftest$ac_exeext conftest.$ac_ext ;; 16640 esac 16641 fi 16642 16643 16644 CFLAGS="$xorg_testset_save_CFLAGS" 16645 16646 eval supported=\$$cacheid 16647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16648 printf "%s\n" "$supported" >&6; } 16649 if test "$supported" = "yes" ; then 16650 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16651 found="yes" 16652 fi 16653 fi 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 xorg_testset_save_CFLAGS="$CFLAGS" 16670 16671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16675 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16676 then : 16677 printf %s "(cached) " >&6 16678 else case e in #( 16679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16680 /* end confdefs.h. */ 16681 int i; 16682 _ACEOF 16683 if ac_fn_c_try_compile "$LINENO" 16684 then : 16685 xorg_cv_cc_flag_unknown_warning_option=yes 16686 else case e in #( 16687 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16688 esac 16689 fi 16690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16691 esac 16692 fi 16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16694 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16696 CFLAGS="$xorg_testset_save_CFLAGS" 16697 fi 16698 16699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16702 fi 16703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16707 then : 16708 printf %s "(cached) " >&6 16709 else case e in #( 16710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16711 /* end confdefs.h. */ 16712 int i; 16713 _ACEOF 16714 if ac_fn_c_try_compile "$LINENO" 16715 then : 16716 xorg_cv_cc_flag_unused_command_line_argument=yes 16717 else case e in #( 16718 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16719 esac 16720 fi 16721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16722 esac 16723 fi 16724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16725 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16727 CFLAGS="$xorg_testset_save_CFLAGS" 16728 fi 16729 16730 found="no" 16731 16732 if test $found = "no" ; then 16733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16735 fi 16736 16737 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16739 fi 16740 16741 CFLAGS="$CFLAGS -Werror=array-bounds" 16742 16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16744 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16745 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16746 if eval test \${$cacheid+y} 16747 then : 16748 printf %s "(cached) " >&6 16749 else case e in #( 16750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16751 /* end confdefs.h. */ 16752 int i; 16753 int 16754 main (void) 16755 { 16756 16757 ; 16758 return 0; 16759 } 16760 _ACEOF 16761 if ac_fn_c_try_link "$LINENO" 16762 then : 16763 eval $cacheid=yes 16764 else case e in #( 16765 e) eval $cacheid=no ;; 16766 esac 16767 fi 16768 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16769 conftest$ac_exeext conftest.$ac_ext ;; 16770 esac 16771 fi 16772 16773 16774 CFLAGS="$xorg_testset_save_CFLAGS" 16775 16776 eval supported=\$$cacheid 16777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16778 printf "%s\n" "$supported" >&6; } 16779 if test "$supported" = "yes" ; then 16780 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16781 found="yes" 16782 fi 16783 fi 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 xorg_testset_save_CFLAGS="$CFLAGS" 16800 16801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16804 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16805 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16806 then : 16807 printf %s "(cached) " >&6 16808 else case e in #( 16809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16810 /* end confdefs.h. */ 16811 int i; 16812 _ACEOF 16813 if ac_fn_c_try_compile "$LINENO" 16814 then : 16815 xorg_cv_cc_flag_unknown_warning_option=yes 16816 else case e in #( 16817 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16818 esac 16819 fi 16820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16821 esac 16822 fi 16823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16824 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16826 CFLAGS="$xorg_testset_save_CFLAGS" 16827 fi 16828 16829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16832 fi 16833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16835 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16836 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16837 then : 16838 printf %s "(cached) " >&6 16839 else case e in #( 16840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16841 /* end confdefs.h. */ 16842 int i; 16843 _ACEOF 16844 if ac_fn_c_try_compile "$LINENO" 16845 then : 16846 xorg_cv_cc_flag_unused_command_line_argument=yes 16847 else case e in #( 16848 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16849 esac 16850 fi 16851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16852 esac 16853 fi 16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16855 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16857 CFLAGS="$xorg_testset_save_CFLAGS" 16858 fi 16859 16860 found="no" 16861 16862 if test $found = "no" ; then 16863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16865 fi 16866 16867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16869 fi 16870 16871 CFLAGS="$CFLAGS -Werror=write-strings" 16872 16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16874 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16875 cacheid=xorg_cv_cc_flag__Werror_write_strings 16876 if eval test \${$cacheid+y} 16877 then : 16878 printf %s "(cached) " >&6 16879 else case e in #( 16880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16881 /* end confdefs.h. */ 16882 int i; 16883 int 16884 main (void) 16885 { 16886 16887 ; 16888 return 0; 16889 } 16890 _ACEOF 16891 if ac_fn_c_try_link "$LINENO" 16892 then : 16893 eval $cacheid=yes 16894 else case e in #( 16895 e) eval $cacheid=no ;; 16896 esac 16897 fi 16898 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16899 conftest$ac_exeext conftest.$ac_ext ;; 16900 esac 16901 fi 16902 16903 16904 CFLAGS="$xorg_testset_save_CFLAGS" 16905 16906 eval supported=\$$cacheid 16907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16908 printf "%s\n" "$supported" >&6; } 16909 if test "$supported" = "yes" ; then 16910 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16911 found="yes" 16912 fi 16913 fi 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 xorg_testset_save_CFLAGS="$CFLAGS" 16930 16931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16934 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16935 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16936 then : 16937 printf %s "(cached) " >&6 16938 else case e in #( 16939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16940 /* end confdefs.h. */ 16941 int i; 16942 _ACEOF 16943 if ac_fn_c_try_compile "$LINENO" 16944 then : 16945 xorg_cv_cc_flag_unknown_warning_option=yes 16946 else case e in #( 16947 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16948 esac 16949 fi 16950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16951 esac 16952 fi 16953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16954 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16956 CFLAGS="$xorg_testset_save_CFLAGS" 16957 fi 16958 16959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16962 fi 16963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16965 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16966 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16967 then : 16968 printf %s "(cached) " >&6 16969 else case e in #( 16970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16971 /* end confdefs.h. */ 16972 int i; 16973 _ACEOF 16974 if ac_fn_c_try_compile "$LINENO" 16975 then : 16976 xorg_cv_cc_flag_unused_command_line_argument=yes 16977 else case e in #( 16978 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16979 esac 16980 fi 16981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16982 esac 16983 fi 16984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16985 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16987 CFLAGS="$xorg_testset_save_CFLAGS" 16988 fi 16989 16990 found="no" 16991 16992 if test $found = "no" ; then 16993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16995 fi 16996 16997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16999 fi 17000 17001 CFLAGS="$CFLAGS -Werror=address" 17002 17003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17004 printf %s "checking if $CC supports -Werror=address... " >&6; } 17005 cacheid=xorg_cv_cc_flag__Werror_address 17006 if eval test \${$cacheid+y} 17007 then : 17008 printf %s "(cached) " >&6 17009 else case e in #( 17010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17011 /* end confdefs.h. */ 17012 int i; 17013 int 17014 main (void) 17015 { 17016 17017 ; 17018 return 0; 17019 } 17020 _ACEOF 17021 if ac_fn_c_try_link "$LINENO" 17022 then : 17023 eval $cacheid=yes 17024 else case e in #( 17025 e) eval $cacheid=no ;; 17026 esac 17027 fi 17028 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17029 conftest$ac_exeext conftest.$ac_ext ;; 17030 esac 17031 fi 17032 17033 17034 CFLAGS="$xorg_testset_save_CFLAGS" 17035 17036 eval supported=\$$cacheid 17037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17038 printf "%s\n" "$supported" >&6; } 17039 if test "$supported" = "yes" ; then 17040 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17041 found="yes" 17042 fi 17043 fi 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 xorg_testset_save_CFLAGS="$CFLAGS" 17060 17061 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17062 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17064 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17065 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17066 then : 17067 printf %s "(cached) " >&6 17068 else case e in #( 17069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17070 /* end confdefs.h. */ 17071 int i; 17072 _ACEOF 17073 if ac_fn_c_try_compile "$LINENO" 17074 then : 17075 xorg_cv_cc_flag_unknown_warning_option=yes 17076 else case e in #( 17077 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17078 esac 17079 fi 17080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17081 esac 17082 fi 17083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17084 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17086 CFLAGS="$xorg_testset_save_CFLAGS" 17087 fi 17088 17089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17092 fi 17093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17095 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17096 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17097 then : 17098 printf %s "(cached) " >&6 17099 else case e in #( 17100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17101 /* end confdefs.h. */ 17102 int i; 17103 _ACEOF 17104 if ac_fn_c_try_compile "$LINENO" 17105 then : 17106 xorg_cv_cc_flag_unused_command_line_argument=yes 17107 else case e in #( 17108 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17109 esac 17110 fi 17111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17112 esac 17113 fi 17114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17115 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17117 CFLAGS="$xorg_testset_save_CFLAGS" 17118 fi 17119 17120 found="no" 17121 17122 if test $found = "no" ; then 17123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17125 fi 17126 17127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17129 fi 17130 17131 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17132 17133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17134 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17135 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17136 if eval test \${$cacheid+y} 17137 then : 17138 printf %s "(cached) " >&6 17139 else case e in #( 17140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17141 /* end confdefs.h. */ 17142 int i; 17143 int 17144 main (void) 17145 { 17146 17147 ; 17148 return 0; 17149 } 17150 _ACEOF 17151 if ac_fn_c_try_link "$LINENO" 17152 then : 17153 eval $cacheid=yes 17154 else case e in #( 17155 e) eval $cacheid=no ;; 17156 esac 17157 fi 17158 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17159 conftest$ac_exeext conftest.$ac_ext ;; 17160 esac 17161 fi 17162 17163 17164 CFLAGS="$xorg_testset_save_CFLAGS" 17165 17166 eval supported=\$$cacheid 17167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17168 printf "%s\n" "$supported" >&6; } 17169 if test "$supported" = "yes" ; then 17170 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17171 found="yes" 17172 fi 17173 fi 17174 17175 if test $found = "no" ; then 17176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17178 fi 17179 17180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17182 fi 17183 17184 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17185 17186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17187 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17188 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17189 if eval test \${$cacheid+y} 17190 then : 17191 printf %s "(cached) " >&6 17192 else case e in #( 17193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17194 /* end confdefs.h. */ 17195 int i; 17196 int 17197 main (void) 17198 { 17199 17200 ; 17201 return 0; 17202 } 17203 _ACEOF 17204 if ac_fn_c_try_link "$LINENO" 17205 then : 17206 eval $cacheid=yes 17207 else case e in #( 17208 e) eval $cacheid=no ;; 17209 esac 17210 fi 17211 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17212 conftest$ac_exeext conftest.$ac_ext ;; 17213 esac 17214 fi 17215 17216 17217 CFLAGS="$xorg_testset_save_CFLAGS" 17218 17219 eval supported=\$$cacheid 17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17221 printf "%s\n" "$supported" >&6; } 17222 if test "$supported" = "yes" ; then 17223 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17224 found="yes" 17225 fi 17226 fi 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 xorg_testset_save_CFLAGS="$CFLAGS" 17243 17244 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17247 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17248 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17249 then : 17250 printf %s "(cached) " >&6 17251 else case e in #( 17252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17253 /* end confdefs.h. */ 17254 int i; 17255 _ACEOF 17256 if ac_fn_c_try_compile "$LINENO" 17257 then : 17258 xorg_cv_cc_flag_unknown_warning_option=yes 17259 else case e in #( 17260 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17261 esac 17262 fi 17263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17264 esac 17265 fi 17266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17267 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17269 CFLAGS="$xorg_testset_save_CFLAGS" 17270 fi 17271 17272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17275 fi 17276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17278 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17279 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17280 then : 17281 printf %s "(cached) " >&6 17282 else case e in #( 17283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17284 /* end confdefs.h. */ 17285 int i; 17286 _ACEOF 17287 if ac_fn_c_try_compile "$LINENO" 17288 then : 17289 xorg_cv_cc_flag_unused_command_line_argument=yes 17290 else case e in #( 17291 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17292 esac 17293 fi 17294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17295 esac 17296 fi 17297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17298 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17300 CFLAGS="$xorg_testset_save_CFLAGS" 17301 fi 17302 17303 found="no" 17304 17305 if test $found = "no" ; then 17306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17308 fi 17309 17310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17312 fi 17313 17314 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17315 17316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17317 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17318 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17319 if eval test \${$cacheid+y} 17320 then : 17321 printf %s "(cached) " >&6 17322 else case e in #( 17323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17324 /* end confdefs.h. */ 17325 int i; 17326 int 17327 main (void) 17328 { 17329 17330 ; 17331 return 0; 17332 } 17333 _ACEOF 17334 if ac_fn_c_try_link "$LINENO" 17335 then : 17336 eval $cacheid=yes 17337 else case e in #( 17338 e) eval $cacheid=no ;; 17339 esac 17340 fi 17341 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17342 conftest$ac_exeext conftest.$ac_ext ;; 17343 esac 17344 fi 17345 17346 17347 CFLAGS="$xorg_testset_save_CFLAGS" 17348 17349 eval supported=\$$cacheid 17350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17351 printf "%s\n" "$supported" >&6; } 17352 if test "$supported" = "yes" ; then 17353 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17354 found="yes" 17355 fi 17356 fi 17357 17358 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17359 else 17360 { 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 17361 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;} 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 xorg_testset_save_CFLAGS="$CFLAGS" 17376 17377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17381 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17382 then : 17383 printf %s "(cached) " >&6 17384 else case e in #( 17385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17386 /* end confdefs.h. */ 17387 int i; 17388 _ACEOF 17389 if ac_fn_c_try_compile "$LINENO" 17390 then : 17391 xorg_cv_cc_flag_unknown_warning_option=yes 17392 else case e in #( 17393 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17394 esac 17395 fi 17396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17397 esac 17398 fi 17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17402 CFLAGS="$xorg_testset_save_CFLAGS" 17403 fi 17404 17405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17408 fi 17409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17413 then : 17414 printf %s "(cached) " >&6 17415 else case e in #( 17416 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17417 /* end confdefs.h. */ 17418 int i; 17419 _ACEOF 17420 if ac_fn_c_try_compile "$LINENO" 17421 then : 17422 xorg_cv_cc_flag_unused_command_line_argument=yes 17423 else case e in #( 17424 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17425 esac 17426 fi 17427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17428 esac 17429 fi 17430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17431 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17433 CFLAGS="$xorg_testset_save_CFLAGS" 17434 fi 17435 17436 found="no" 17437 17438 if test $found = "no" ; then 17439 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17440 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17441 fi 17442 17443 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17445 fi 17446 17447 CFLAGS="$CFLAGS -Wimplicit" 17448 17449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17450 printf %s "checking if $CC supports -Wimplicit... " >&6; } 17451 cacheid=xorg_cv_cc_flag__Wimplicit 17452 if eval test \${$cacheid+y} 17453 then : 17454 printf %s "(cached) " >&6 17455 else case e in #( 17456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17457 /* end confdefs.h. */ 17458 int i; 17459 int 17460 main (void) 17461 { 17462 17463 ; 17464 return 0; 17465 } 17466 _ACEOF 17467 if ac_fn_c_try_link "$LINENO" 17468 then : 17469 eval $cacheid=yes 17470 else case e in #( 17471 e) eval $cacheid=no ;; 17472 esac 17473 fi 17474 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17475 conftest$ac_exeext conftest.$ac_ext ;; 17476 esac 17477 fi 17478 17479 17480 CFLAGS="$xorg_testset_save_CFLAGS" 17481 17482 eval supported=\$$cacheid 17483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17484 printf "%s\n" "$supported" >&6; } 17485 if test "$supported" = "yes" ; then 17486 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17487 found="yes" 17488 fi 17489 fi 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 xorg_testset_save_CFLAGS="$CFLAGS" 17506 17507 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17510 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17511 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17512 then : 17513 printf %s "(cached) " >&6 17514 else case e in #( 17515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17516 /* end confdefs.h. */ 17517 int i; 17518 _ACEOF 17519 if ac_fn_c_try_compile "$LINENO" 17520 then : 17521 xorg_cv_cc_flag_unknown_warning_option=yes 17522 else case e in #( 17523 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17524 esac 17525 fi 17526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17527 esac 17528 fi 17529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17530 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17532 CFLAGS="$xorg_testset_save_CFLAGS" 17533 fi 17534 17535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17538 fi 17539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17541 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17542 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17543 then : 17544 printf %s "(cached) " >&6 17545 else case e in #( 17546 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17547 /* end confdefs.h. */ 17548 int i; 17549 _ACEOF 17550 if ac_fn_c_try_compile "$LINENO" 17551 then : 17552 xorg_cv_cc_flag_unused_command_line_argument=yes 17553 else case e in #( 17554 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17555 esac 17556 fi 17557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17558 esac 17559 fi 17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17561 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17563 CFLAGS="$xorg_testset_save_CFLAGS" 17564 fi 17565 17566 found="no" 17567 17568 if test $found = "no" ; then 17569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17571 fi 17572 17573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17575 fi 17576 17577 CFLAGS="$CFLAGS -Wnonnull" 17578 17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17580 printf %s "checking if $CC supports -Wnonnull... " >&6; } 17581 cacheid=xorg_cv_cc_flag__Wnonnull 17582 if eval test \${$cacheid+y} 17583 then : 17584 printf %s "(cached) " >&6 17585 else case e in #( 17586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17587 /* end confdefs.h. */ 17588 int i; 17589 int 17590 main (void) 17591 { 17592 17593 ; 17594 return 0; 17595 } 17596 _ACEOF 17597 if ac_fn_c_try_link "$LINENO" 17598 then : 17599 eval $cacheid=yes 17600 else case e in #( 17601 e) eval $cacheid=no ;; 17602 esac 17603 fi 17604 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17605 conftest$ac_exeext conftest.$ac_ext ;; 17606 esac 17607 fi 17608 17609 17610 CFLAGS="$xorg_testset_save_CFLAGS" 17611 17612 eval supported=\$$cacheid 17613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17614 printf "%s\n" "$supported" >&6; } 17615 if test "$supported" = "yes" ; then 17616 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17617 found="yes" 17618 fi 17619 fi 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 xorg_testset_save_CFLAGS="$CFLAGS" 17636 17637 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17640 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17641 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17642 then : 17643 printf %s "(cached) " >&6 17644 else case e in #( 17645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17646 /* end confdefs.h. */ 17647 int i; 17648 _ACEOF 17649 if ac_fn_c_try_compile "$LINENO" 17650 then : 17651 xorg_cv_cc_flag_unknown_warning_option=yes 17652 else case e in #( 17653 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17654 esac 17655 fi 17656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17657 esac 17658 fi 17659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17660 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17662 CFLAGS="$xorg_testset_save_CFLAGS" 17663 fi 17664 17665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17668 fi 17669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17671 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17672 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17673 then : 17674 printf %s "(cached) " >&6 17675 else case e in #( 17676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17677 /* end confdefs.h. */ 17678 int i; 17679 _ACEOF 17680 if ac_fn_c_try_compile "$LINENO" 17681 then : 17682 xorg_cv_cc_flag_unused_command_line_argument=yes 17683 else case e in #( 17684 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17685 esac 17686 fi 17687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17688 esac 17689 fi 17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17691 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17692 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17693 CFLAGS="$xorg_testset_save_CFLAGS" 17694 fi 17695 17696 found="no" 17697 17698 if test $found = "no" ; then 17699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17701 fi 17702 17703 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17705 fi 17706 17707 CFLAGS="$CFLAGS -Winit-self" 17708 17709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17710 printf %s "checking if $CC supports -Winit-self... " >&6; } 17711 cacheid=xorg_cv_cc_flag__Winit_self 17712 if eval test \${$cacheid+y} 17713 then : 17714 printf %s "(cached) " >&6 17715 else case e in #( 17716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17717 /* end confdefs.h. */ 17718 int i; 17719 int 17720 main (void) 17721 { 17722 17723 ; 17724 return 0; 17725 } 17726 _ACEOF 17727 if ac_fn_c_try_link "$LINENO" 17728 then : 17729 eval $cacheid=yes 17730 else case e in #( 17731 e) eval $cacheid=no ;; 17732 esac 17733 fi 17734 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17735 conftest$ac_exeext conftest.$ac_ext ;; 17736 esac 17737 fi 17738 17739 17740 CFLAGS="$xorg_testset_save_CFLAGS" 17741 17742 eval supported=\$$cacheid 17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17744 printf "%s\n" "$supported" >&6; } 17745 if test "$supported" = "yes" ; then 17746 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17747 found="yes" 17748 fi 17749 fi 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 xorg_testset_save_CFLAGS="$CFLAGS" 17766 17767 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17770 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17771 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17772 then : 17773 printf %s "(cached) " >&6 17774 else case e in #( 17775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17776 /* end confdefs.h. */ 17777 int i; 17778 _ACEOF 17779 if ac_fn_c_try_compile "$LINENO" 17780 then : 17781 xorg_cv_cc_flag_unknown_warning_option=yes 17782 else case e in #( 17783 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17784 esac 17785 fi 17786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17787 esac 17788 fi 17789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17790 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17791 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17792 CFLAGS="$xorg_testset_save_CFLAGS" 17793 fi 17794 17795 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17798 fi 17799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17801 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17802 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17803 then : 17804 printf %s "(cached) " >&6 17805 else case e in #( 17806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17807 /* end confdefs.h. */ 17808 int i; 17809 _ACEOF 17810 if ac_fn_c_try_compile "$LINENO" 17811 then : 17812 xorg_cv_cc_flag_unused_command_line_argument=yes 17813 else case e in #( 17814 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17815 esac 17816 fi 17817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17818 esac 17819 fi 17820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17823 CFLAGS="$xorg_testset_save_CFLAGS" 17824 fi 17825 17826 found="no" 17827 17828 if test $found = "no" ; then 17829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17831 fi 17832 17833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17835 fi 17836 17837 CFLAGS="$CFLAGS -Wmain" 17838 17839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17840 printf %s "checking if $CC supports -Wmain... " >&6; } 17841 cacheid=xorg_cv_cc_flag__Wmain 17842 if eval test \${$cacheid+y} 17843 then : 17844 printf %s "(cached) " >&6 17845 else case e in #( 17846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17847 /* end confdefs.h. */ 17848 int i; 17849 int 17850 main (void) 17851 { 17852 17853 ; 17854 return 0; 17855 } 17856 _ACEOF 17857 if ac_fn_c_try_link "$LINENO" 17858 then : 17859 eval $cacheid=yes 17860 else case e in #( 17861 e) eval $cacheid=no ;; 17862 esac 17863 fi 17864 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17865 conftest$ac_exeext conftest.$ac_ext ;; 17866 esac 17867 fi 17868 17869 17870 CFLAGS="$xorg_testset_save_CFLAGS" 17871 17872 eval supported=\$$cacheid 17873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17874 printf "%s\n" "$supported" >&6; } 17875 if test "$supported" = "yes" ; then 17876 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17877 found="yes" 17878 fi 17879 fi 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 xorg_testset_save_CFLAGS="$CFLAGS" 17896 17897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17900 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17901 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17902 then : 17903 printf %s "(cached) " >&6 17904 else case e in #( 17905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17906 /* end confdefs.h. */ 17907 int i; 17908 _ACEOF 17909 if ac_fn_c_try_compile "$LINENO" 17910 then : 17911 xorg_cv_cc_flag_unknown_warning_option=yes 17912 else case e in #( 17913 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17914 esac 17915 fi 17916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17917 esac 17918 fi 17919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17920 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17922 CFLAGS="$xorg_testset_save_CFLAGS" 17923 fi 17924 17925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17928 fi 17929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17931 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17932 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17933 then : 17934 printf %s "(cached) " >&6 17935 else case e in #( 17936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17937 /* end confdefs.h. */ 17938 int i; 17939 _ACEOF 17940 if ac_fn_c_try_compile "$LINENO" 17941 then : 17942 xorg_cv_cc_flag_unused_command_line_argument=yes 17943 else case e in #( 17944 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17945 esac 17946 fi 17947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17948 esac 17949 fi 17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17951 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17953 CFLAGS="$xorg_testset_save_CFLAGS" 17954 fi 17955 17956 found="no" 17957 17958 if test $found = "no" ; then 17959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17961 fi 17962 17963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17965 fi 17966 17967 CFLAGS="$CFLAGS -Wmissing-braces" 17968 17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17970 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17971 cacheid=xorg_cv_cc_flag__Wmissing_braces 17972 if eval test \${$cacheid+y} 17973 then : 17974 printf %s "(cached) " >&6 17975 else case e in #( 17976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17977 /* end confdefs.h. */ 17978 int i; 17979 int 17980 main (void) 17981 { 17982 17983 ; 17984 return 0; 17985 } 17986 _ACEOF 17987 if ac_fn_c_try_link "$LINENO" 17988 then : 17989 eval $cacheid=yes 17990 else case e in #( 17991 e) eval $cacheid=no ;; 17992 esac 17993 fi 17994 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17995 conftest$ac_exeext conftest.$ac_ext ;; 17996 esac 17997 fi 17998 17999 18000 CFLAGS="$xorg_testset_save_CFLAGS" 18001 18002 eval supported=\$$cacheid 18003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18004 printf "%s\n" "$supported" >&6; } 18005 if test "$supported" = "yes" ; then 18006 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18007 found="yes" 18008 fi 18009 fi 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 xorg_testset_save_CFLAGS="$CFLAGS" 18026 18027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18030 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18031 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18032 then : 18033 printf %s "(cached) " >&6 18034 else case e in #( 18035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18036 /* end confdefs.h. */ 18037 int i; 18038 _ACEOF 18039 if ac_fn_c_try_compile "$LINENO" 18040 then : 18041 xorg_cv_cc_flag_unknown_warning_option=yes 18042 else case e in #( 18043 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18044 esac 18045 fi 18046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18047 esac 18048 fi 18049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18050 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18052 CFLAGS="$xorg_testset_save_CFLAGS" 18053 fi 18054 18055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18058 fi 18059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18061 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18062 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18063 then : 18064 printf %s "(cached) " >&6 18065 else case e in #( 18066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18067 /* end confdefs.h. */ 18068 int i; 18069 _ACEOF 18070 if ac_fn_c_try_compile "$LINENO" 18071 then : 18072 xorg_cv_cc_flag_unused_command_line_argument=yes 18073 else case e in #( 18074 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18075 esac 18076 fi 18077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18078 esac 18079 fi 18080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18081 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18083 CFLAGS="$xorg_testset_save_CFLAGS" 18084 fi 18085 18086 found="no" 18087 18088 if test $found = "no" ; then 18089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18091 fi 18092 18093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18095 fi 18096 18097 CFLAGS="$CFLAGS -Wsequence-point" 18098 18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18100 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18101 cacheid=xorg_cv_cc_flag__Wsequence_point 18102 if eval test \${$cacheid+y} 18103 then : 18104 printf %s "(cached) " >&6 18105 else case e in #( 18106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18107 /* end confdefs.h. */ 18108 int i; 18109 int 18110 main (void) 18111 { 18112 18113 ; 18114 return 0; 18115 } 18116 _ACEOF 18117 if ac_fn_c_try_link "$LINENO" 18118 then : 18119 eval $cacheid=yes 18120 else case e in #( 18121 e) eval $cacheid=no ;; 18122 esac 18123 fi 18124 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18125 conftest$ac_exeext conftest.$ac_ext ;; 18126 esac 18127 fi 18128 18129 18130 CFLAGS="$xorg_testset_save_CFLAGS" 18131 18132 eval supported=\$$cacheid 18133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18134 printf "%s\n" "$supported" >&6; } 18135 if test "$supported" = "yes" ; then 18136 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18137 found="yes" 18138 fi 18139 fi 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 xorg_testset_save_CFLAGS="$CFLAGS" 18156 18157 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18160 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18161 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18162 then : 18163 printf %s "(cached) " >&6 18164 else case e in #( 18165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18166 /* end confdefs.h. */ 18167 int i; 18168 _ACEOF 18169 if ac_fn_c_try_compile "$LINENO" 18170 then : 18171 xorg_cv_cc_flag_unknown_warning_option=yes 18172 else case e in #( 18173 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18174 esac 18175 fi 18176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18177 esac 18178 fi 18179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18180 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18182 CFLAGS="$xorg_testset_save_CFLAGS" 18183 fi 18184 18185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18188 fi 18189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18191 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18192 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18193 then : 18194 printf %s "(cached) " >&6 18195 else case e in #( 18196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18197 /* end confdefs.h. */ 18198 int i; 18199 _ACEOF 18200 if ac_fn_c_try_compile "$LINENO" 18201 then : 18202 xorg_cv_cc_flag_unused_command_line_argument=yes 18203 else case e in #( 18204 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18205 esac 18206 fi 18207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18208 esac 18209 fi 18210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18211 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18213 CFLAGS="$xorg_testset_save_CFLAGS" 18214 fi 18215 18216 found="no" 18217 18218 if test $found = "no" ; then 18219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18221 fi 18222 18223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18225 fi 18226 18227 CFLAGS="$CFLAGS -Wreturn-type" 18228 18229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18230 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18231 cacheid=xorg_cv_cc_flag__Wreturn_type 18232 if eval test \${$cacheid+y} 18233 then : 18234 printf %s "(cached) " >&6 18235 else case e in #( 18236 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18237 /* end confdefs.h. */ 18238 int i; 18239 int 18240 main (void) 18241 { 18242 18243 ; 18244 return 0; 18245 } 18246 _ACEOF 18247 if ac_fn_c_try_link "$LINENO" 18248 then : 18249 eval $cacheid=yes 18250 else case e in #( 18251 e) eval $cacheid=no ;; 18252 esac 18253 fi 18254 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18255 conftest$ac_exeext conftest.$ac_ext ;; 18256 esac 18257 fi 18258 18259 18260 CFLAGS="$xorg_testset_save_CFLAGS" 18261 18262 eval supported=\$$cacheid 18263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18264 printf "%s\n" "$supported" >&6; } 18265 if test "$supported" = "yes" ; then 18266 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18267 found="yes" 18268 fi 18269 fi 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 xorg_testset_save_CFLAGS="$CFLAGS" 18286 18287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18290 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18291 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18292 then : 18293 printf %s "(cached) " >&6 18294 else case e in #( 18295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18296 /* end confdefs.h. */ 18297 int i; 18298 _ACEOF 18299 if ac_fn_c_try_compile "$LINENO" 18300 then : 18301 xorg_cv_cc_flag_unknown_warning_option=yes 18302 else case e in #( 18303 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18304 esac 18305 fi 18306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18307 esac 18308 fi 18309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18310 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18311 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18312 CFLAGS="$xorg_testset_save_CFLAGS" 18313 fi 18314 18315 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18318 fi 18319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18321 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18322 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18323 then : 18324 printf %s "(cached) " >&6 18325 else case e in #( 18326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18327 /* end confdefs.h. */ 18328 int i; 18329 _ACEOF 18330 if ac_fn_c_try_compile "$LINENO" 18331 then : 18332 xorg_cv_cc_flag_unused_command_line_argument=yes 18333 else case e in #( 18334 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18335 esac 18336 fi 18337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18338 esac 18339 fi 18340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18341 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18342 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18343 CFLAGS="$xorg_testset_save_CFLAGS" 18344 fi 18345 18346 found="no" 18347 18348 if test $found = "no" ; then 18349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18351 fi 18352 18353 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18355 fi 18356 18357 CFLAGS="$CFLAGS -Wtrigraphs" 18358 18359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18360 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18361 cacheid=xorg_cv_cc_flag__Wtrigraphs 18362 if eval test \${$cacheid+y} 18363 then : 18364 printf %s "(cached) " >&6 18365 else case e in #( 18366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18367 /* end confdefs.h. */ 18368 int i; 18369 int 18370 main (void) 18371 { 18372 18373 ; 18374 return 0; 18375 } 18376 _ACEOF 18377 if ac_fn_c_try_link "$LINENO" 18378 then : 18379 eval $cacheid=yes 18380 else case e in #( 18381 e) eval $cacheid=no ;; 18382 esac 18383 fi 18384 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18385 conftest$ac_exeext conftest.$ac_ext ;; 18386 esac 18387 fi 18388 18389 18390 CFLAGS="$xorg_testset_save_CFLAGS" 18391 18392 eval supported=\$$cacheid 18393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18394 printf "%s\n" "$supported" >&6; } 18395 if test "$supported" = "yes" ; then 18396 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18397 found="yes" 18398 fi 18399 fi 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 xorg_testset_save_CFLAGS="$CFLAGS" 18416 18417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18420 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18421 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18422 then : 18423 printf %s "(cached) " >&6 18424 else case e in #( 18425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18426 /* end confdefs.h. */ 18427 int i; 18428 _ACEOF 18429 if ac_fn_c_try_compile "$LINENO" 18430 then : 18431 xorg_cv_cc_flag_unknown_warning_option=yes 18432 else case e in #( 18433 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18434 esac 18435 fi 18436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18437 esac 18438 fi 18439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18440 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18442 CFLAGS="$xorg_testset_save_CFLAGS" 18443 fi 18444 18445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18448 fi 18449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18451 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18452 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18453 then : 18454 printf %s "(cached) " >&6 18455 else case e in #( 18456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18457 /* end confdefs.h. */ 18458 int i; 18459 _ACEOF 18460 if ac_fn_c_try_compile "$LINENO" 18461 then : 18462 xorg_cv_cc_flag_unused_command_line_argument=yes 18463 else case e in #( 18464 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18465 esac 18466 fi 18467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18468 esac 18469 fi 18470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18471 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18473 CFLAGS="$xorg_testset_save_CFLAGS" 18474 fi 18475 18476 found="no" 18477 18478 if test $found = "no" ; then 18479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18481 fi 18482 18483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18485 fi 18486 18487 CFLAGS="$CFLAGS -Warray-bounds" 18488 18489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18490 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18491 cacheid=xorg_cv_cc_flag__Warray_bounds 18492 if eval test \${$cacheid+y} 18493 then : 18494 printf %s "(cached) " >&6 18495 else case e in #( 18496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18497 /* end confdefs.h. */ 18498 int i; 18499 int 18500 main (void) 18501 { 18502 18503 ; 18504 return 0; 18505 } 18506 _ACEOF 18507 if ac_fn_c_try_link "$LINENO" 18508 then : 18509 eval $cacheid=yes 18510 else case e in #( 18511 e) eval $cacheid=no ;; 18512 esac 18513 fi 18514 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18515 conftest$ac_exeext conftest.$ac_ext ;; 18516 esac 18517 fi 18518 18519 18520 CFLAGS="$xorg_testset_save_CFLAGS" 18521 18522 eval supported=\$$cacheid 18523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18524 printf "%s\n" "$supported" >&6; } 18525 if test "$supported" = "yes" ; then 18526 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18527 found="yes" 18528 fi 18529 fi 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 xorg_testset_save_CFLAGS="$CFLAGS" 18546 18547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18550 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18551 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18552 then : 18553 printf %s "(cached) " >&6 18554 else case e in #( 18555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556 /* end confdefs.h. */ 18557 int i; 18558 _ACEOF 18559 if ac_fn_c_try_compile "$LINENO" 18560 then : 18561 xorg_cv_cc_flag_unknown_warning_option=yes 18562 else case e in #( 18563 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18564 esac 18565 fi 18566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18567 esac 18568 fi 18569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18570 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18572 CFLAGS="$xorg_testset_save_CFLAGS" 18573 fi 18574 18575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18578 fi 18579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18581 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18582 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18583 then : 18584 printf %s "(cached) " >&6 18585 else case e in #( 18586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18587 /* end confdefs.h. */ 18588 int i; 18589 _ACEOF 18590 if ac_fn_c_try_compile "$LINENO" 18591 then : 18592 xorg_cv_cc_flag_unused_command_line_argument=yes 18593 else case e in #( 18594 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18595 esac 18596 fi 18597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18598 esac 18599 fi 18600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18601 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18602 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18603 CFLAGS="$xorg_testset_save_CFLAGS" 18604 fi 18605 18606 found="no" 18607 18608 if test $found = "no" ; then 18609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18611 fi 18612 18613 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18615 fi 18616 18617 CFLAGS="$CFLAGS -Wwrite-strings" 18618 18619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18620 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18621 cacheid=xorg_cv_cc_flag__Wwrite_strings 18622 if eval test \${$cacheid+y} 18623 then : 18624 printf %s "(cached) " >&6 18625 else case e in #( 18626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18627 /* end confdefs.h. */ 18628 int i; 18629 int 18630 main (void) 18631 { 18632 18633 ; 18634 return 0; 18635 } 18636 _ACEOF 18637 if ac_fn_c_try_link "$LINENO" 18638 then : 18639 eval $cacheid=yes 18640 else case e in #( 18641 e) eval $cacheid=no ;; 18642 esac 18643 fi 18644 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18645 conftest$ac_exeext conftest.$ac_ext ;; 18646 esac 18647 fi 18648 18649 18650 CFLAGS="$xorg_testset_save_CFLAGS" 18651 18652 eval supported=\$$cacheid 18653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18654 printf "%s\n" "$supported" >&6; } 18655 if test "$supported" = "yes" ; then 18656 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18657 found="yes" 18658 fi 18659 fi 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 xorg_testset_save_CFLAGS="$CFLAGS" 18676 18677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18680 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18681 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18682 then : 18683 printf %s "(cached) " >&6 18684 else case e in #( 18685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18686 /* end confdefs.h. */ 18687 int i; 18688 _ACEOF 18689 if ac_fn_c_try_compile "$LINENO" 18690 then : 18691 xorg_cv_cc_flag_unknown_warning_option=yes 18692 else case e in #( 18693 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18694 esac 18695 fi 18696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18697 esac 18698 fi 18699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18700 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18702 CFLAGS="$xorg_testset_save_CFLAGS" 18703 fi 18704 18705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18708 fi 18709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18711 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18712 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18713 then : 18714 printf %s "(cached) " >&6 18715 else case e in #( 18716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18717 /* end confdefs.h. */ 18718 int i; 18719 _ACEOF 18720 if ac_fn_c_try_compile "$LINENO" 18721 then : 18722 xorg_cv_cc_flag_unused_command_line_argument=yes 18723 else case e in #( 18724 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18725 esac 18726 fi 18727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18728 esac 18729 fi 18730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18731 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18733 CFLAGS="$xorg_testset_save_CFLAGS" 18734 fi 18735 18736 found="no" 18737 18738 if test $found = "no" ; then 18739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18741 fi 18742 18743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18745 fi 18746 18747 CFLAGS="$CFLAGS -Waddress" 18748 18749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18750 printf %s "checking if $CC supports -Waddress... " >&6; } 18751 cacheid=xorg_cv_cc_flag__Waddress 18752 if eval test \${$cacheid+y} 18753 then : 18754 printf %s "(cached) " >&6 18755 else case e in #( 18756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18757 /* end confdefs.h. */ 18758 int i; 18759 int 18760 main (void) 18761 { 18762 18763 ; 18764 return 0; 18765 } 18766 _ACEOF 18767 if ac_fn_c_try_link "$LINENO" 18768 then : 18769 eval $cacheid=yes 18770 else case e in #( 18771 e) eval $cacheid=no ;; 18772 esac 18773 fi 18774 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18775 conftest$ac_exeext conftest.$ac_ext ;; 18776 esac 18777 fi 18778 18779 18780 CFLAGS="$xorg_testset_save_CFLAGS" 18781 18782 eval supported=\$$cacheid 18783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18784 printf "%s\n" "$supported" >&6; } 18785 if test "$supported" = "yes" ; then 18786 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18787 found="yes" 18788 fi 18789 fi 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 xorg_testset_save_CFLAGS="$CFLAGS" 18806 18807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18810 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18811 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18812 then : 18813 printf %s "(cached) " >&6 18814 else case e in #( 18815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18816 /* end confdefs.h. */ 18817 int i; 18818 _ACEOF 18819 if ac_fn_c_try_compile "$LINENO" 18820 then : 18821 xorg_cv_cc_flag_unknown_warning_option=yes 18822 else case e in #( 18823 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18824 esac 18825 fi 18826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18827 esac 18828 fi 18829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18830 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18832 CFLAGS="$xorg_testset_save_CFLAGS" 18833 fi 18834 18835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18838 fi 18839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18841 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18842 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18843 then : 18844 printf %s "(cached) " >&6 18845 else case e in #( 18846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18847 /* end confdefs.h. */ 18848 int i; 18849 _ACEOF 18850 if ac_fn_c_try_compile "$LINENO" 18851 then : 18852 xorg_cv_cc_flag_unused_command_line_argument=yes 18853 else case e in #( 18854 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18855 esac 18856 fi 18857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18858 esac 18859 fi 18860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18861 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18863 CFLAGS="$xorg_testset_save_CFLAGS" 18864 fi 18865 18866 found="no" 18867 18868 if test $found = "no" ; then 18869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18871 fi 18872 18873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18875 fi 18876 18877 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18878 18879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18880 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18881 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18882 if eval test \${$cacheid+y} 18883 then : 18884 printf %s "(cached) " >&6 18885 else case e in #( 18886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18887 /* end confdefs.h. */ 18888 int i; 18889 int 18890 main (void) 18891 { 18892 18893 ; 18894 return 0; 18895 } 18896 _ACEOF 18897 if ac_fn_c_try_link "$LINENO" 18898 then : 18899 eval $cacheid=yes 18900 else case e in #( 18901 e) eval $cacheid=no ;; 18902 esac 18903 fi 18904 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18905 conftest$ac_exeext conftest.$ac_ext ;; 18906 esac 18907 fi 18908 18909 18910 CFLAGS="$xorg_testset_save_CFLAGS" 18911 18912 eval supported=\$$cacheid 18913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18914 printf "%s\n" "$supported" >&6; } 18915 if test "$supported" = "yes" ; then 18916 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18917 found="yes" 18918 fi 18919 fi 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 xorg_testset_save_CFLAGS="$CFLAGS" 18936 18937 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18940 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18941 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18942 then : 18943 printf %s "(cached) " >&6 18944 else case e in #( 18945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18946 /* end confdefs.h. */ 18947 int i; 18948 _ACEOF 18949 if ac_fn_c_try_compile "$LINENO" 18950 then : 18951 xorg_cv_cc_flag_unknown_warning_option=yes 18952 else case e in #( 18953 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18954 esac 18955 fi 18956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18957 esac 18958 fi 18959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18960 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18962 CFLAGS="$xorg_testset_save_CFLAGS" 18963 fi 18964 18965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18968 fi 18969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18971 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18972 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18973 then : 18974 printf %s "(cached) " >&6 18975 else case e in #( 18976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18977 /* end confdefs.h. */ 18978 int i; 18979 _ACEOF 18980 if ac_fn_c_try_compile "$LINENO" 18981 then : 18982 xorg_cv_cc_flag_unused_command_line_argument=yes 18983 else case e in #( 18984 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18985 esac 18986 fi 18987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18988 esac 18989 fi 18990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18991 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18993 CFLAGS="$xorg_testset_save_CFLAGS" 18994 fi 18995 18996 found="no" 18997 18998 if test $found = "no" ; then 18999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19001 fi 19002 19003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19005 fi 19006 19007 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19008 19009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19010 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19011 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19012 if eval test \${$cacheid+y} 19013 then : 19014 printf %s "(cached) " >&6 19015 else case e in #( 19016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19017 /* end confdefs.h. */ 19018 int i; 19019 int 19020 main (void) 19021 { 19022 19023 ; 19024 return 0; 19025 } 19026 _ACEOF 19027 if ac_fn_c_try_link "$LINENO" 19028 then : 19029 eval $cacheid=yes 19030 else case e in #( 19031 e) eval $cacheid=no ;; 19032 esac 19033 fi 19034 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19035 conftest$ac_exeext conftest.$ac_ext ;; 19036 esac 19037 fi 19038 19039 19040 CFLAGS="$xorg_testset_save_CFLAGS" 19041 19042 eval supported=\$$cacheid 19043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19044 printf "%s\n" "$supported" >&6; } 19045 if test "$supported" = "yes" ; then 19046 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19047 found="yes" 19048 fi 19049 fi 19050 19051 19052 fi 19053 19054 19055 19056 19057 19058 19059 19060 CWARNFLAGS="$BASE_CFLAGS" 19061 if test "x$GCC" = xyes ; then 19062 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19063 fi 19064 19065 19066 19067 19068 19069 19070 19071 19072 # Check whether --enable-strict-compilation was given. 19073 if test ${enable_strict_compilation+y} 19074 then : 19075 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19076 else case e in #( 19077 e) STRICT_COMPILE=no ;; 19078 esac 19079 fi 19080 19081 19082 19083 19084 19085 19086 STRICT_CFLAGS="" 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 xorg_testset_save_CFLAGS="$CFLAGS" 19101 19102 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19105 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19106 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19107 then : 19108 printf %s "(cached) " >&6 19109 else case e in #( 19110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19111 /* end confdefs.h. */ 19112 int i; 19113 _ACEOF 19114 if ac_fn_c_try_compile "$LINENO" 19115 then : 19116 xorg_cv_cc_flag_unknown_warning_option=yes 19117 else case e in #( 19118 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19119 esac 19120 fi 19121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19122 esac 19123 fi 19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19125 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19127 CFLAGS="$xorg_testset_save_CFLAGS" 19128 fi 19129 19130 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19133 fi 19134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19136 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19137 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19138 then : 19139 printf %s "(cached) " >&6 19140 else case e in #( 19141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19142 /* end confdefs.h. */ 19143 int i; 19144 _ACEOF 19145 if ac_fn_c_try_compile "$LINENO" 19146 then : 19147 xorg_cv_cc_flag_unused_command_line_argument=yes 19148 else case e in #( 19149 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19150 esac 19151 fi 19152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19153 esac 19154 fi 19155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19156 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19157 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19158 CFLAGS="$xorg_testset_save_CFLAGS" 19159 fi 19160 19161 found="no" 19162 19163 if test $found = "no" ; then 19164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19166 fi 19167 19168 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19170 fi 19171 19172 CFLAGS="$CFLAGS -pedantic" 19173 19174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19175 printf %s "checking if $CC supports -pedantic... " >&6; } 19176 cacheid=xorg_cv_cc_flag__pedantic 19177 if eval test \${$cacheid+y} 19178 then : 19179 printf %s "(cached) " >&6 19180 else case e in #( 19181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19182 /* end confdefs.h. */ 19183 int i; 19184 int 19185 main (void) 19186 { 19187 19188 ; 19189 return 0; 19190 } 19191 _ACEOF 19192 if ac_fn_c_try_link "$LINENO" 19193 then : 19194 eval $cacheid=yes 19195 else case e in #( 19196 e) eval $cacheid=no ;; 19197 esac 19198 fi 19199 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19200 conftest$ac_exeext conftest.$ac_ext ;; 19201 esac 19202 fi 19203 19204 19205 CFLAGS="$xorg_testset_save_CFLAGS" 19206 19207 eval supported=\$$cacheid 19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19209 printf "%s\n" "$supported" >&6; } 19210 if test "$supported" = "yes" ; then 19211 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19212 found="yes" 19213 fi 19214 fi 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 xorg_testset_save_CFLAGS="$CFLAGS" 19231 19232 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19235 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19236 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19237 then : 19238 printf %s "(cached) " >&6 19239 else case e in #( 19240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19241 /* end confdefs.h. */ 19242 int i; 19243 _ACEOF 19244 if ac_fn_c_try_compile "$LINENO" 19245 then : 19246 xorg_cv_cc_flag_unknown_warning_option=yes 19247 else case e in #( 19248 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19249 esac 19250 fi 19251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19252 esac 19253 fi 19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19255 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19257 CFLAGS="$xorg_testset_save_CFLAGS" 19258 fi 19259 19260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19263 fi 19264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19266 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19267 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19268 then : 19269 printf %s "(cached) " >&6 19270 else case e in #( 19271 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19272 /* end confdefs.h. */ 19273 int i; 19274 _ACEOF 19275 if ac_fn_c_try_compile "$LINENO" 19276 then : 19277 xorg_cv_cc_flag_unused_command_line_argument=yes 19278 else case e in #( 19279 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19280 esac 19281 fi 19282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19283 esac 19284 fi 19285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19286 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19288 CFLAGS="$xorg_testset_save_CFLAGS" 19289 fi 19290 19291 found="no" 19292 19293 if test $found = "no" ; then 19294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19296 fi 19297 19298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19300 fi 19301 19302 CFLAGS="$CFLAGS -Werror" 19303 19304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19305 printf %s "checking if $CC supports -Werror... " >&6; } 19306 cacheid=xorg_cv_cc_flag__Werror 19307 if eval test \${$cacheid+y} 19308 then : 19309 printf %s "(cached) " >&6 19310 else case e in #( 19311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19312 /* end confdefs.h. */ 19313 int i; 19314 int 19315 main (void) 19316 { 19317 19318 ; 19319 return 0; 19320 } 19321 _ACEOF 19322 if ac_fn_c_try_link "$LINENO" 19323 then : 19324 eval $cacheid=yes 19325 else case e in #( 19326 e) eval $cacheid=no ;; 19327 esac 19328 fi 19329 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19330 conftest$ac_exeext conftest.$ac_ext ;; 19331 esac 19332 fi 19333 19334 19335 CFLAGS="$xorg_testset_save_CFLAGS" 19336 19337 eval supported=\$$cacheid 19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19339 printf "%s\n" "$supported" >&6; } 19340 if test "$supported" = "yes" ; then 19341 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19342 found="yes" 19343 fi 19344 fi 19345 19346 if test $found = "no" ; then 19347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19349 fi 19350 19351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19353 fi 19354 19355 CFLAGS="$CFLAGS -errwarn" 19356 19357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19358 printf %s "checking if $CC supports -errwarn... " >&6; } 19359 cacheid=xorg_cv_cc_flag__errwarn 19360 if eval test \${$cacheid+y} 19361 then : 19362 printf %s "(cached) " >&6 19363 else case e in #( 19364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19365 /* end confdefs.h. */ 19366 int i; 19367 int 19368 main (void) 19369 { 19370 19371 ; 19372 return 0; 19373 } 19374 _ACEOF 19375 if ac_fn_c_try_link "$LINENO" 19376 then : 19377 eval $cacheid=yes 19378 else case e in #( 19379 e) eval $cacheid=no ;; 19380 esac 19381 fi 19382 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19383 conftest$ac_exeext conftest.$ac_ext ;; 19384 esac 19385 fi 19386 19387 19388 CFLAGS="$xorg_testset_save_CFLAGS" 19389 19390 eval supported=\$$cacheid 19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19392 printf "%s\n" "$supported" >&6; } 19393 if test "$supported" = "yes" ; then 19394 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19395 found="yes" 19396 fi 19397 fi 19398 19399 19400 19401 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19402 # activate it with -Werror, so we add it here explicitly. 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 xorg_testset_save_CFLAGS="$CFLAGS" 19417 19418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19421 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19422 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19423 then : 19424 printf %s "(cached) " >&6 19425 else case e in #( 19426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19427 /* end confdefs.h. */ 19428 int i; 19429 _ACEOF 19430 if ac_fn_c_try_compile "$LINENO" 19431 then : 19432 xorg_cv_cc_flag_unknown_warning_option=yes 19433 else case e in #( 19434 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19435 esac 19436 fi 19437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19438 esac 19439 fi 19440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19441 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19443 CFLAGS="$xorg_testset_save_CFLAGS" 19444 fi 19445 19446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19449 fi 19450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19452 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19453 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19454 then : 19455 printf %s "(cached) " >&6 19456 else case e in #( 19457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19458 /* end confdefs.h. */ 19459 int i; 19460 _ACEOF 19461 if ac_fn_c_try_compile "$LINENO" 19462 then : 19463 xorg_cv_cc_flag_unused_command_line_argument=yes 19464 else case e in #( 19465 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19466 esac 19467 fi 19468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19469 esac 19470 fi 19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19472 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19474 CFLAGS="$xorg_testset_save_CFLAGS" 19475 fi 19476 19477 found="no" 19478 19479 if test $found = "no" ; then 19480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19482 fi 19483 19484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19486 fi 19487 19488 CFLAGS="$CFLAGS -Werror=attributes" 19489 19490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19491 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19492 cacheid=xorg_cv_cc_flag__Werror_attributes 19493 if eval test \${$cacheid+y} 19494 then : 19495 printf %s "(cached) " >&6 19496 else case e in #( 19497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19498 /* end confdefs.h. */ 19499 int i; 19500 int 19501 main (void) 19502 { 19503 19504 ; 19505 return 0; 19506 } 19507 _ACEOF 19508 if ac_fn_c_try_link "$LINENO" 19509 then : 19510 eval $cacheid=yes 19511 else case e in #( 19512 e) eval $cacheid=no ;; 19513 esac 19514 fi 19515 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19516 conftest$ac_exeext conftest.$ac_ext ;; 19517 esac 19518 fi 19519 19520 19521 CFLAGS="$xorg_testset_save_CFLAGS" 19522 19523 eval supported=\$$cacheid 19524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19525 printf "%s\n" "$supported" >&6; } 19526 if test "$supported" = "yes" ; then 19527 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19528 found="yes" 19529 fi 19530 fi 19531 19532 19533 19534 if test "x$STRICT_COMPILE" = "xyes"; then 19535 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19536 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19537 fi 19538 19539 19540 19541 19542 19543 19544 19545 19546 cat >>confdefs.h <<_ACEOF 19547 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19548 _ACEOF 19549 19550 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19551 if test "x$PVM" = "x"; then 19552 PVM="0" 19553 fi 19554 19555 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19556 19557 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19558 if test "x$PVP" = "x"; then 19559 PVP="0" 19560 fi 19561 19562 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19563 19564 19565 19566 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19567 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19568 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19569 touch \$(top_srcdir)/ChangeLog; \ 19570 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19571 19572 19573 19574 19575 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19576 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19577 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19578 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19579 touch \$(top_srcdir)/INSTALL; \ 19580 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19581 19582 19583 19584 19585 19586 19587 case $host_os in 19588 solaris*) 19589 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19590 # check for a man page file found in later versions that use 19591 # traditional section numbers instead 19592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19593 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19594 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19595 then : 19596 printf %s "(cached) " >&6 19597 else case e in #( 19598 e) test "$cross_compiling" = yes && 19599 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19600 if test -r "/usr/share/man/man7/attributes.7"; then 19601 ac_cv_file__usr_share_man_man7_attributes_7=yes 19602 else 19603 ac_cv_file__usr_share_man_man7_attributes_7=no 19604 fi ;; 19605 esac 19606 fi 19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19608 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19609 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19610 then : 19611 SYSV_MAN_SECTIONS=false 19612 else case e in #( 19613 e) SYSV_MAN_SECTIONS=true ;; 19614 esac 19615 fi 19616 19617 ;; 19618 *) SYSV_MAN_SECTIONS=false ;; 19619 esac 19620 19621 if test x$APP_MAN_SUFFIX = x ; then 19622 APP_MAN_SUFFIX=1 19623 fi 19624 if test x$APP_MAN_DIR = x ; then 19625 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19626 fi 19627 19628 if test x$LIB_MAN_SUFFIX = x ; then 19629 LIB_MAN_SUFFIX=3 19630 fi 19631 if test x$LIB_MAN_DIR = x ; then 19632 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19633 fi 19634 19635 if test x$FILE_MAN_SUFFIX = x ; then 19636 case $SYSV_MAN_SECTIONS in 19637 true) FILE_MAN_SUFFIX=4 ;; 19638 *) FILE_MAN_SUFFIX=5 ;; 19639 esac 19640 fi 19641 if test x$FILE_MAN_DIR = x ; then 19642 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19643 fi 19644 19645 if test x$MISC_MAN_SUFFIX = x ; then 19646 case $SYSV_MAN_SECTIONS in 19647 true) MISC_MAN_SUFFIX=5 ;; 19648 *) MISC_MAN_SUFFIX=7 ;; 19649 esac 19650 fi 19651 if test x$MISC_MAN_DIR = x ; then 19652 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19653 fi 19654 19655 if test x$DRIVER_MAN_SUFFIX = x ; then 19656 case $SYSV_MAN_SECTIONS in 19657 true) DRIVER_MAN_SUFFIX=7 ;; 19658 *) DRIVER_MAN_SUFFIX=4 ;; 19659 esac 19660 fi 19661 if test x$DRIVER_MAN_DIR = x ; then 19662 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19663 fi 19664 19665 if test x$ADMIN_MAN_SUFFIX = x ; then 19666 case $SYSV_MAN_SECTIONS in 19667 true) ADMIN_MAN_SUFFIX=1m ;; 19668 *) ADMIN_MAN_SUFFIX=8 ;; 19669 esac 19670 fi 19671 if test x$ADMIN_MAN_DIR = x ; then 19672 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19673 fi 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 XORG_MAN_PAGE="X Version 11" 19690 19691 MAN_SUBSTS="\ 19692 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19693 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19694 -e 's|__xservername__|Xorg|g' \ 19695 -e 's|__xconfigfile__|xorg.conf|g' \ 19696 -e 's|__projectroot__|\$(prefix)|g' \ 19697 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19698 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19699 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19700 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19701 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19702 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19703 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19704 19705 19706 19707 # Check whether --enable-silent-rules was given. 19708 if test ${enable_silent_rules+y} 19709 then : 19710 enableval=$enable_silent_rules; 19711 fi 19712 19713 case $enable_silent_rules in # ((( 19714 yes) AM_DEFAULT_VERBOSITY=0;; 19715 no) AM_DEFAULT_VERBOSITY=1;; 19716 *) AM_DEFAULT_VERBOSITY=0;; 19717 esac 19718 am_make=${MAKE-make} 19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19720 printf %s "checking whether $am_make supports nested variables... " >&6; } 19721 if test ${am_cv_make_support_nested_variables+y} 19722 then : 19723 printf %s "(cached) " >&6 19724 else case e in #( 19725 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 19726 BAR0=false 19727 BAR1=true 19728 V=1 19729 am__doit: 19730 @$(TRUE) 19731 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19732 am_cv_make_support_nested_variables=yes 19733 else 19734 am_cv_make_support_nested_variables=no 19735 fi ;; 19736 esac 19737 fi 19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19739 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19740 if test $am_cv_make_support_nested_variables = yes; then 19741 AM_V='$(V)' 19742 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19743 else 19744 AM_V=$AM_DEFAULT_VERBOSITY 19745 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19746 fi 19747 AM_BACKSLASH='\' 19748 19749 19750 19751 19752 # Check whether --enable-malloc0returnsnull was given. 19753 if test ${enable_malloc0returnsnull+y} 19754 then : 19755 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 19756 else case e in #( 19757 e) MALLOC_ZERO_RETURNS_NULL=auto ;; 19758 esac 19759 fi 19760 19761 19762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 19763 printf %s "checking whether malloc(0) returns NULL... " >&6; } 19764 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 19765 if test ${xorg_cv_malloc0_returns_null+y} 19766 then : 19767 printf %s "(cached) " >&6 19768 else case e in #( 19769 e) if test "$cross_compiling" = yes 19770 then : 19771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 19772 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 19773 as_fn_error $? "cannot run test program while cross compiling 19774 See 'config.log' for more details" "$LINENO" 5; } 19775 else case e in #( 19776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19777 /* end confdefs.h. */ 19778 19779 #include <stdlib.h> 19780 19781 int 19782 main (void) 19783 { 19784 19785 char *m0, *r0, *c0, *p; 19786 m0 = malloc(0); 19787 p = malloc(10); 19788 r0 = realloc(p,0); 19789 c0 = calloc(0,10); 19790 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 19791 19792 ; 19793 return 0; 19794 } 19795 _ACEOF 19796 if ac_fn_c_try_run "$LINENO" 19797 then : 19798 xorg_cv_malloc0_returns_null=yes 19799 else case e in #( 19800 e) xorg_cv_malloc0_returns_null=no ;; 19801 esac 19802 fi 19803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19804 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19805 esac 19806 fi 19807 ;; 19808 esac 19809 fi 19810 19811 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 19812 fi 19813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 19814 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 19815 19816 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 19817 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 19818 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 19819 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 19820 else 19821 MALLOC_ZERO_CFLAGS="" 19822 XMALLOC_ZERO_CFLAGS="" 19823 XTMALLOC_ZERO_CFLAGS="" 19824 fi 19825 19826 19827 19828 19829 19830 19831 # Obtain compiler/linker options for dependencies 19832 19833 pkg_failed=no 19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5 19835 printf %s "checking for XVMC... " >&6; } 19836 19837 if test -n "$XVMC_CFLAGS"; then 19838 pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS" 19839 elif test -n "$PKG_CONFIG"; then 19840 if test -n "$PKG_CONFIG" && \ 19841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5 19842 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5 19843 ac_status=$? 19844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19845 test $ac_status = 0; }; then 19846 pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null` 19847 test "x$?" != "x0" && pkg_failed=yes 19848 else 19849 pkg_failed=yes 19850 fi 19851 else 19852 pkg_failed=untried 19853 fi 19854 if test -n "$XVMC_LIBS"; then 19855 pkg_cv_XVMC_LIBS="$XVMC_LIBS" 19856 elif test -n "$PKG_CONFIG"; then 19857 if test -n "$PKG_CONFIG" && \ 19858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5 19859 ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5 19860 ac_status=$? 19861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19862 test $ac_status = 0; }; then 19863 pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null` 19864 test "x$?" != "x0" && pkg_failed=yes 19865 else 19866 pkg_failed=yes 19867 fi 19868 else 19869 pkg_failed=untried 19870 fi 19871 19872 19873 19874 if test $pkg_failed = yes; then 19875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19876 printf "%s\n" "no" >&6; } 19877 19878 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19879 _pkg_short_errors_supported=yes 19880 else 19881 _pkg_short_errors_supported=no 19882 fi 19883 if test $_pkg_short_errors_supported = yes; then 19884 XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1` 19885 else 19886 XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1` 19887 fi 19888 # Put the nasty error message in config.log where it belongs 19889 echo "$XVMC_PKG_ERRORS" >&5 19890 19891 as_fn_error $? "Package requirements (x11 >= 1.6 xext xv xextproto videoproto) were not met: 19892 19893 $XVMC_PKG_ERRORS 19894 19895 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19896 installed software in a non-standard prefix. 19897 19898 Alternatively, you may set the environment variables XVMC_CFLAGS 19899 and XVMC_LIBS to avoid the need to call pkg-config. 19900 See the pkg-config man page for more details." "$LINENO" 5 19901 elif test $pkg_failed = untried; then 19902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19903 printf "%s\n" "no" >&6; } 19904 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 19905 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 19906 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19907 is in your PATH or set the PKG_CONFIG environment variable to the full 19908 path to pkg-config. 19909 19910 Alternatively, you may set the environment variables XVMC_CFLAGS 19911 and XVMC_LIBS to avoid the need to call pkg-config. 19912 See the pkg-config man page for more details. 19913 19914 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19915 See 'config.log' for more details" "$LINENO" 5; } 19916 else 19917 XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS 19918 XVMC_LIBS=$pkg_cv_XVMC_LIBS 19919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19920 printf "%s\n" "yes" >&6; } 19921 19922 fi 19923 19924 # Checks for library functions. 19925 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 19926 if test "x$ac_cv_func_shmat" = xyes 19927 then : 19928 printf "%s\n" "#define HAVE_SHMAT 1" >>confdefs.h 19929 19930 fi 19931 19932 19933 # Check to see if dlopen is in default libraries (like Solaris, which 19934 # has it in libc), or if libdl is needed to get it. 19935 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19936 if test "x$ac_cv_func_dlopen" = xyes 19937 then : 19938 19939 else case e in #( 19940 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19941 printf %s "checking for dlopen in -ldl... " >&6; } 19942 if test ${ac_cv_lib_dl_dlopen+y} 19943 then : 19944 printf %s "(cached) " >&6 19945 else case e in #( 19946 e) ac_check_lib_save_LIBS=$LIBS 19947 LIBS="-ldl $LIBS" 19948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19949 /* end confdefs.h. */ 19950 19951 /* Override any GCC internal prototype to avoid an error. 19952 Use char because int might match the return type of a GCC 19953 builtin and then its argument prototype would still apply. 19954 The 'extern "C"' is for builds by C++ compilers; 19955 although this is not generally supported in C code supporting it here 19956 has little cost and some practical benefit (sr 110532). */ 19957 #ifdef __cplusplus 19958 extern "C" 19959 #endif 19960 char dlopen (void); 19961 int 19962 main (void) 19963 { 19964 return dlopen (); 19965 ; 19966 return 0; 19967 } 19968 _ACEOF 19969 if ac_fn_c_try_link "$LINENO" 19970 then : 19971 ac_cv_lib_dl_dlopen=yes 19972 else case e in #( 19973 e) ac_cv_lib_dl_dlopen=no ;; 19974 esac 19975 fi 19976 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19977 conftest$ac_exeext conftest.$ac_ext 19978 LIBS=$ac_check_lib_save_LIBS ;; 19979 esac 19980 fi 19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19982 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19983 if test "x$ac_cv_lib_dl_dlopen" = xyes 19984 then : 19985 DLOPEN_LIBS="-ldl" 19986 fi 19987 ;; 19988 esac 19989 fi 19990 19991 19992 19993 # Allow checking code with lint, sparse, etc. 19994 19995 19996 19997 19998 19999 # Check whether --with-lint was given. 20000 if test ${with_lint+y} 20001 then : 20002 withval=$with_lint; use_lint=$withval 20003 else case e in #( 20004 e) use_lint=no ;; 20005 esac 20006 fi 20007 20008 20009 # Obtain platform specific info like program name and options 20010 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 20011 case $host_os in 20012 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20013 lint_name=splint 20014 lint_options="-badflag" 20015 ;; 20016 *freebsd* | *netbsd*) 20017 lint_name=lint 20018 lint_options="-u -b" 20019 ;; 20020 *solaris*) 20021 lint_name=lint 20022 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20023 ;; 20024 esac 20025 20026 # Test for the presence of the program (either guessed by the code or spelled out by the user) 20027 if test "x$use_lint" = x"yes" ; then 20028 # Extract the first word of "$lint_name", so it can be a program name with args. 20029 set dummy $lint_name; ac_word=$2 20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20031 printf %s "checking for $ac_word... " >&6; } 20032 if test ${ac_cv_path_LINT+y} 20033 then : 20034 printf %s "(cached) " >&6 20035 else case e in #( 20036 e) case $LINT in 20037 [\\/]* | ?:[\\/]*) 20038 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20039 ;; 20040 *) 20041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20042 for as_dir in $PATH 20043 do 20044 IFS=$as_save_IFS 20045 case $as_dir in #((( 20046 '') as_dir=./ ;; 20047 */) ;; 20048 *) as_dir=$as_dir/ ;; 20049 esac 20050 for ac_exec_ext in '' $ac_executable_extensions; do 20051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20052 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20054 break 2 20055 fi 20056 done 20057 done 20058 IFS=$as_save_IFS 20059 20060 ;; 20061 esac ;; 20062 esac 20063 fi 20064 LINT=$ac_cv_path_LINT 20065 if test -n "$LINT"; then 20066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20067 printf "%s\n" "$LINT" >&6; } 20068 else 20069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20070 printf "%s\n" "no" >&6; } 20071 fi 20072 20073 20074 if test "x$LINT" = "x"; then 20075 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20076 fi 20077 elif test "x$use_lint" = x"no" ; then 20078 if test "x$LINT" != "x"; then 20079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20080 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20081 fi 20082 else 20083 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20084 fi 20085 20086 # User supplied flags override default flags 20087 if test "x$LINT_FLAGS" != "x"; then 20088 lint_options=$LINT_FLAGS 20089 fi 20090 20091 LINT_FLAGS=$lint_options 20092 20093 if test "x$LINT" != x; then 20094 LINT_TRUE= 20095 LINT_FALSE='#' 20096 else 20097 LINT_TRUE='#' 20098 LINT_FALSE= 20099 fi 20100 20101 20102 20103 LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}" 20104 20105 ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc xvmc-wrapper.pc" 20106 20107 cat >confcache <<\_ACEOF 20108 # This file is a shell script that caches the results of configure 20109 # tests run on this system so they can be shared between configure 20110 # scripts and configure runs, see configure's option --config-cache. 20111 # It is not useful on other systems. If it contains results you don't 20112 # want to keep, you may remove or edit it. 20113 # 20114 # config.status only pays attention to the cache file if you give it 20115 # the --recheck option to rerun configure. 20116 # 20117 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20118 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20119 # following values. 20120 20121 _ACEOF 20122 20123 # The following way of writing the cache mishandles newlines in values, 20124 # but we know of no workaround that is simple, portable, and efficient. 20125 # So, we kill variables containing newlines. 20126 # Ultrix sh set writes to stderr and can't be redirected directly, 20127 # and sets the high bit in the cache file unless we assign to the vars. 20128 ( 20129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20130 eval ac_val=\$$ac_var 20131 case $ac_val in #( 20132 *${as_nl}*) 20133 case $ac_var in #( 20134 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20135 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20136 esac 20137 case $ac_var in #( 20138 _ | IFS | as_nl) ;; #( 20139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20140 *) { eval $ac_var=; unset $ac_var;} ;; 20141 esac ;; 20142 esac 20143 done 20144 20145 (set) 2>&1 | 20146 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20147 *${as_nl}ac_space=\ *) 20148 # 'set' does not quote correctly, so add quotes: double-quote 20149 # substitution turns \\\\ into \\, and sed turns \\ into \. 20150 sed -n \ 20151 "s/'/'\\\\''/g; 20152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20153 ;; #( 20154 *) 20155 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20157 ;; 20158 esac | 20159 sort 20160 ) | 20161 sed ' 20162 /^ac_cv_env_/b end 20163 t clear 20164 :clear 20165 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20166 t end 20167 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20168 :end' >>confcache 20169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20170 if test -w "$cache_file"; then 20171 if test "x$cache_file" != "x/dev/null"; then 20172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20173 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20174 if test ! -f "$cache_file" || test -h "$cache_file"; then 20175 cat confcache >"$cache_file" 20176 else 20177 case $cache_file in #( 20178 */* | ?:*) 20179 mv -f confcache "$cache_file"$$ && 20180 mv -f "$cache_file"$$ "$cache_file" ;; #( 20181 *) 20182 mv -f confcache "$cache_file" ;; 20183 esac 20184 fi 20185 fi 20186 else 20187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20188 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20189 fi 20190 fi 20191 rm -f confcache 20192 20193 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20194 # Let make expand exec_prefix. 20195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20196 20197 DEFS=-DHAVE_CONFIG_H 20198 20199 ac_libobjs= 20200 ac_ltlibobjs= 20201 U= 20202 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20203 # 1. Remove the extension, and $U if already installed. 20204 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20205 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20206 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20207 # will be set to the directory where LIBOBJS objects are built. 20208 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20209 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20210 done 20211 LIBOBJS=$ac_libobjs 20212 20213 LTLIBOBJS=$ac_ltlibobjs 20214 20215 20216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20217 printf %s "checking that generated files are newer than configure... " >&6; } 20218 if test -n "$am_sleep_pid"; then 20219 # Hide warnings about reused PIDs. 20220 wait $am_sleep_pid 2>/dev/null 20221 fi 20222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20223 printf "%s\n" "done" >&6; } 20224 if test -n "$EXEEXT"; then 20225 am__EXEEXT_TRUE= 20226 am__EXEEXT_FALSE='#' 20227 else 20228 am__EXEEXT_TRUE='#' 20229 am__EXEEXT_FALSE= 20230 fi 20231 20232 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20233 as_fn_error $? "conditional \"AMDEP\" was never defined. 20234 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20235 fi 20236 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20237 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20238 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20239 fi 20240 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 20241 as_fn_error $? "conditional \"LINT\" was never defined. 20242 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20243 fi 20244 20245 : "${CONFIG_STATUS=./config.status}" 20246 ac_write_fail=0 20247 ac_clean_files_save=$ac_clean_files 20248 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20250 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20251 as_write_fail=0 20252 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20253 #! $SHELL 20254 # Generated by $as_me. 20255 # Run this file to recreate the current configuration. 20256 # Compiler output produced by configure, useful for debugging 20257 # configure, is in config.log if it exists. 20258 20259 debug=false 20260 ac_cs_recheck=false 20261 ac_cs_silent=false 20262 20263 SHELL=\${CONFIG_SHELL-$SHELL} 20264 export SHELL 20265 _ASEOF 20266 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20267 ## -------------------- ## 20268 ## M4sh Initialization. ## 20269 ## -------------------- ## 20270 20271 # Be more Bourne compatible 20272 DUALCASE=1; export DUALCASE # for MKS sh 20273 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20274 then : 20275 emulate sh 20276 NULLCMD=: 20277 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20278 # is contrary to our usage. Disable this feature. 20279 alias -g '${1+"$@"}'='"$@"' 20280 setopt NO_GLOB_SUBST 20281 else case e in #( 20282 e) case `(set -o) 2>/dev/null` in #( 20283 *posix*) : 20284 set -o posix ;; #( 20285 *) : 20286 ;; 20287 esac ;; 20288 esac 20289 fi 20290 20291 20292 20293 # Reset variables that may have inherited troublesome values from 20294 # the environment. 20295 20296 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20297 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20298 # side effect of setting IFS to empty, thus disabling word splitting.) 20299 # Quoting is to prevent editors from complaining about space-tab. 20300 as_nl=' 20301 ' 20302 export as_nl 20303 IFS=" "" $as_nl" 20304 20305 PS1='$ ' 20306 PS2='> ' 20307 PS4='+ ' 20308 20309 # Ensure predictable behavior from utilities with locale-dependent output. 20310 LC_ALL=C 20311 export LC_ALL 20312 LANGUAGE=C 20313 export LANGUAGE 20314 20315 # We cannot yet rely on "unset" to work, but we need these variables 20316 # to be unset--not just set to an empty or harmless value--now, to 20317 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20318 # also avoids known problems related to "unset" and subshell syntax 20319 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20320 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20321 do eval test \${$as_var+y} \ 20322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20323 done 20324 20325 # Ensure that fds 0, 1, and 2 are open. 20326 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20327 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20328 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20329 20330 # The user is always right. 20331 if ${PATH_SEPARATOR+false} :; then 20332 PATH_SEPARATOR=: 20333 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20334 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20335 PATH_SEPARATOR=';' 20336 } 20337 fi 20338 20339 20340 # Find who we are. Look in the path if we contain no directory separator. 20341 as_myself= 20342 case $0 in #(( 20343 *[\\/]* ) as_myself=$0 ;; 20344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20345 for as_dir in $PATH 20346 do 20347 IFS=$as_save_IFS 20348 case $as_dir in #((( 20349 '') as_dir=./ ;; 20350 */) ;; 20351 *) as_dir=$as_dir/ ;; 20352 esac 20353 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20354 done 20355 IFS=$as_save_IFS 20356 20357 ;; 20358 esac 20359 # We did not find ourselves, most probably we were run as 'sh COMMAND' 20360 # in which case we are not to be found in the path. 20361 if test "x$as_myself" = x; then 20362 as_myself=$0 20363 fi 20364 if test ! -f "$as_myself"; then 20365 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20366 exit 1 20367 fi 20368 20369 20370 20371 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20372 # ---------------------------------------- 20373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20375 # script with STATUS, using 1 if that was 0. 20376 as_fn_error () 20377 { 20378 as_status=$1; test $as_status -eq 0 && as_status=1 20379 if test "$4"; then 20380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20382 fi 20383 printf "%s\n" "$as_me: error: $2" >&2 20384 as_fn_exit $as_status 20385 } # as_fn_error 20386 20387 20388 # as_fn_set_status STATUS 20389 # ----------------------- 20390 # Set $? to STATUS, without forking. 20391 as_fn_set_status () 20392 { 20393 return $1 20394 } # as_fn_set_status 20395 20396 # as_fn_exit STATUS 20397 # ----------------- 20398 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20399 as_fn_exit () 20400 { 20401 set +e 20402 as_fn_set_status $1 20403 exit $1 20404 } # as_fn_exit 20405 20406 # as_fn_unset VAR 20407 # --------------- 20408 # Portably unset VAR. 20409 as_fn_unset () 20410 { 20411 { eval $1=; unset $1;} 20412 } 20413 as_unset=as_fn_unset 20414 20415 # as_fn_append VAR VALUE 20416 # ---------------------- 20417 # Append the text in VALUE to the end of the definition contained in VAR. Take 20418 # advantage of any shell optimizations that allow amortized linear growth over 20419 # repeated appends, instead of the typical quadratic growth present in naive 20420 # implementations. 20421 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20422 then : 20423 eval 'as_fn_append () 20424 { 20425 eval $1+=\$2 20426 }' 20427 else case e in #( 20428 e) as_fn_append () 20429 { 20430 eval $1=\$$1\$2 20431 } ;; 20432 esac 20433 fi # as_fn_append 20434 20435 # as_fn_arith ARG... 20436 # ------------------ 20437 # Perform arithmetic evaluation on the ARGs, and store the result in the 20438 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20439 # must be portable across $(()) and expr. 20440 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20441 then : 20442 eval 'as_fn_arith () 20443 { 20444 as_val=$(( $* )) 20445 }' 20446 else case e in #( 20447 e) as_fn_arith () 20448 { 20449 as_val=`expr "$@" || test $? -eq 1` 20450 } ;; 20451 esac 20452 fi # as_fn_arith 20453 20454 20455 if expr a : '\(a\)' >/dev/null 2>&1 && 20456 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20457 as_expr=expr 20458 else 20459 as_expr=false 20460 fi 20461 20462 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20463 as_basename=basename 20464 else 20465 as_basename=false 20466 fi 20467 20468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20469 as_dirname=dirname 20470 else 20471 as_dirname=false 20472 fi 20473 20474 as_me=`$as_basename -- "$0" || 20475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20476 X"$0" : 'X\(//\)$' \| \ 20477 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20478 printf "%s\n" X/"$0" | 20479 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20480 s//\1/ 20481 q 20482 } 20483 /^X\/\(\/\/\)$/{ 20484 s//\1/ 20485 q 20486 } 20487 /^X\/\(\/\).*/{ 20488 s//\1/ 20489 q 20490 } 20491 s/.*/./; q'` 20492 20493 # Avoid depending upon Character Ranges. 20494 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20495 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20496 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20497 as_cr_digits='0123456789' 20498 as_cr_alnum=$as_cr_Letters$as_cr_digits 20499 20500 20501 # Determine whether it's possible to make 'echo' print without a newline. 20502 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20503 # for compatibility with existing Makefiles. 20504 ECHO_C= ECHO_N= ECHO_T= 20505 case `echo -n x` in #((((( 20506 -n*) 20507 case `echo 'xy\c'` in 20508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20509 xy) ECHO_C='\c';; 20510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20511 ECHO_T=' ';; 20512 esac;; 20513 *) 20514 ECHO_N='-n';; 20515 esac 20516 20517 # For backward compatibility with old third-party macros, we provide 20518 # the shell variables $as_echo and $as_echo_n. New code should use 20519 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20520 as_echo='printf %s\n' 20521 as_echo_n='printf %s' 20522 20523 rm -f conf$$ conf$$.exe conf$$.file 20524 if test -d conf$$.dir; then 20525 rm -f conf$$.dir/conf$$.file 20526 else 20527 rm -f conf$$.dir 20528 mkdir conf$$.dir 2>/dev/null 20529 fi 20530 if (echo >conf$$.file) 2>/dev/null; then 20531 if ln -s conf$$.file conf$$ 2>/dev/null; then 20532 as_ln_s='ln -s' 20533 # ... but there are two gotchas: 20534 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 20535 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 20536 # In both cases, we have to default to 'cp -pR'. 20537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20538 as_ln_s='cp -pR' 20539 elif ln conf$$.file conf$$ 2>/dev/null; then 20540 as_ln_s=ln 20541 else 20542 as_ln_s='cp -pR' 20543 fi 20544 else 20545 as_ln_s='cp -pR' 20546 fi 20547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20548 rmdir conf$$.dir 2>/dev/null 20549 20550 20551 # as_fn_mkdir_p 20552 # ------------- 20553 # Create "$as_dir" as a directory, including parents if necessary. 20554 as_fn_mkdir_p () 20555 { 20556 20557 case $as_dir in #( 20558 -*) as_dir=./$as_dir;; 20559 esac 20560 test -d "$as_dir" || eval $as_mkdir_p || { 20561 as_dirs= 20562 while :; do 20563 case $as_dir in #( 20564 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20565 *) as_qdir=$as_dir;; 20566 esac 20567 as_dirs="'$as_qdir' $as_dirs" 20568 as_dir=`$as_dirname -- "$as_dir" || 20569 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20570 X"$as_dir" : 'X\(//\)[^/]' \| \ 20571 X"$as_dir" : 'X\(//\)$' \| \ 20572 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20573 printf "%s\n" X"$as_dir" | 20574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20575 s//\1/ 20576 q 20577 } 20578 /^X\(\/\/\)[^/].*/{ 20579 s//\1/ 20580 q 20581 } 20582 /^X\(\/\/\)$/{ 20583 s//\1/ 20584 q 20585 } 20586 /^X\(\/\).*/{ 20587 s//\1/ 20588 q 20589 } 20590 s/.*/./; q'` 20591 test -d "$as_dir" && break 20592 done 20593 test -z "$as_dirs" || eval "mkdir $as_dirs" 20594 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20595 20596 20597 } # as_fn_mkdir_p 20598 if mkdir -p . 2>/dev/null; then 20599 as_mkdir_p='mkdir -p "$as_dir"' 20600 else 20601 test -d ./-p && rmdir ./-p 20602 as_mkdir_p=false 20603 fi 20604 20605 20606 # as_fn_executable_p FILE 20607 # ----------------------- 20608 # Test if FILE is an executable regular file. 20609 as_fn_executable_p () 20610 { 20611 test -f "$1" && test -x "$1" 20612 } # as_fn_executable_p 20613 as_test_x='test -x' 20614 as_executable_p=as_fn_executable_p 20615 20616 # Sed expression to map a string onto a valid CPP name. 20617 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 20618 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 20619 20620 # Sed expression to map a string onto a valid variable name. 20621 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20622 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 20623 20624 20625 exec 6>&1 20626 ## ----------------------------------- ## 20627 ## Main body of $CONFIG_STATUS script. ## 20628 ## ----------------------------------- ## 20629 _ASEOF 20630 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20631 20632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20633 # Save the log message, to keep $0 and so on meaningful, and to 20634 # report actual input values of CONFIG_FILES etc. instead of their 20635 # values after options handling. 20636 ac_log=" 20637 This file was extended by libXvMC $as_me 1.0.14, which was 20638 generated by GNU Autoconf 2.72. Invocation command line was 20639 20640 CONFIG_FILES = $CONFIG_FILES 20641 CONFIG_HEADERS = $CONFIG_HEADERS 20642 CONFIG_LINKS = $CONFIG_LINKS 20643 CONFIG_COMMANDS = $CONFIG_COMMANDS 20644 $ $0 $@ 20645 20646 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20647 " 20648 20649 _ACEOF 20650 20651 case $ac_config_files in *" 20652 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20653 esac 20654 20655 case $ac_config_headers in *" 20656 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20657 esac 20658 20659 20660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20661 # Files that config.status was made for. 20662 config_files="$ac_config_files" 20663 config_headers="$ac_config_headers" 20664 config_commands="$ac_config_commands" 20665 20666 _ACEOF 20667 20668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20669 ac_cs_usage="\ 20670 '$as_me' instantiates files and other configuration actions 20671 from templates according to the current configuration. Unless the files 20672 and actions are specified as TAGs, all are instantiated by default. 20673 20674 Usage: $0 [OPTION]... [TAG]... 20675 20676 -h, --help print this help, then exit 20677 -V, --version print version number and configuration settings, then exit 20678 --config print configuration, then exit 20679 -q, --quiet, --silent 20680 do not print progress messages 20681 -d, --debug don't remove temporary files 20682 --recheck update $as_me by reconfiguring in the same conditions 20683 --file=FILE[:TEMPLATE] 20684 instantiate the configuration file FILE 20685 --header=FILE[:TEMPLATE] 20686 instantiate the configuration header FILE 20687 20688 Configuration files: 20689 $config_files 20690 20691 Configuration headers: 20692 $config_headers 20693 20694 Configuration commands: 20695 $config_commands 20696 20697 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues>." 20698 20699 _ACEOF 20700 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20701 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20703 ac_cs_config='$ac_cs_config_escaped' 20704 ac_cs_version="\\ 20705 libXvMC config.status 1.0.14 20706 configured by $0, generated by GNU Autoconf 2.72, 20707 with options \\"\$ac_cs_config\\" 20708 20709 Copyright (C) 2023 Free Software Foundation, Inc. 20710 This config.status script is free software; the Free Software Foundation 20711 gives unlimited permission to copy, distribute and modify it." 20712 20713 ac_pwd='$ac_pwd' 20714 srcdir='$srcdir' 20715 INSTALL='$INSTALL' 20716 MKDIR_P='$MKDIR_P' 20717 AWK='$AWK' 20718 test -n "\$AWK" || AWK=awk 20719 _ACEOF 20720 20721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20722 # The default lists apply if the user does not specify any file. 20723 ac_need_defaults=: 20724 while test $# != 0 20725 do 20726 case $1 in 20727 --*=?*) 20728 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20730 ac_shift=: 20731 ;; 20732 --*=) 20733 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20734 ac_optarg= 20735 ac_shift=: 20736 ;; 20737 *) 20738 ac_option=$1 20739 ac_optarg=$2 20740 ac_shift=shift 20741 ;; 20742 esac 20743 20744 case $ac_option in 20745 # Handling of the options. 20746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20747 ac_cs_recheck=: ;; 20748 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20749 printf "%s\n" "$ac_cs_version"; exit ;; 20750 --config | --confi | --conf | --con | --co | --c ) 20751 printf "%s\n" "$ac_cs_config"; exit ;; 20752 --debug | --debu | --deb | --de | --d | -d ) 20753 debug=: ;; 20754 --file | --fil | --fi | --f ) 20755 $ac_shift 20756 case $ac_optarg in 20757 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20758 '') as_fn_error $? "missing file argument" ;; 20759 esac 20760 as_fn_append CONFIG_FILES " '$ac_optarg'" 20761 ac_need_defaults=false;; 20762 --header | --heade | --head | --hea ) 20763 $ac_shift 20764 case $ac_optarg in 20765 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20766 esac 20767 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20768 ac_need_defaults=false;; 20769 --he | --h) 20770 # Conflict between --help and --header 20771 as_fn_error $? "ambiguous option: '$1' 20772 Try '$0 --help' for more information.";; 20773 --help | --hel | -h ) 20774 printf "%s\n" "$ac_cs_usage"; exit ;; 20775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20776 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20777 ac_cs_silent=: ;; 20778 20779 # This is an error. 20780 -*) as_fn_error $? "unrecognized option: '$1' 20781 Try '$0 --help' for more information." ;; 20782 20783 *) as_fn_append ac_config_targets " $1" 20784 ac_need_defaults=false ;; 20785 20786 esac 20787 shift 20788 done 20789 20790 ac_configure_extra_args= 20791 20792 if $ac_cs_silent; then 20793 exec 6>/dev/null 20794 ac_configure_extra_args="$ac_configure_extra_args --silent" 20795 fi 20796 20797 _ACEOF 20798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20799 if \$ac_cs_recheck; then 20800 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20801 shift 20802 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20803 CONFIG_SHELL='$SHELL' 20804 export CONFIG_SHELL 20805 exec "\$@" 20806 fi 20807 20808 _ACEOF 20809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20810 exec 5>>config.log 20811 { 20812 echo 20813 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20814 ## Running $as_me. ## 20815 _ASBOX 20816 printf "%s\n" "$ac_log" 20817 } >&5 20818 20819 _ACEOF 20820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20821 # 20822 # INIT-COMMANDS 20823 # 20824 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20825 20826 20827 # The HP-UX ksh and POSIX shell print the target directory to stdout 20828 # if CDPATH is set. 20829 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20830 20831 sed_quote_subst='$sed_quote_subst' 20832 double_quote_subst='$double_quote_subst' 20833 delay_variable_subst='$delay_variable_subst' 20834 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20835 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20836 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20837 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20838 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20839 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20840 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20841 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20842 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20843 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20844 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20845 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20846 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20847 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20848 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20849 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20850 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20851 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20852 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20853 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20854 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20855 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20856 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20857 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20858 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20859 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20860 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20861 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20862 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20863 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20864 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20865 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20866 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20867 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20868 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20869 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20870 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20871 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20872 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20873 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20874 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20875 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20876 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20877 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20878 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20879 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20880 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20881 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20882 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20883 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20884 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20885 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20886 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20887 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20888 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20889 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20890 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20891 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20892 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20893 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20894 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"`' 20895 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20896 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20897 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20898 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20899 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20900 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20901 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20902 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20903 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20904 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20905 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20906 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20907 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20908 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20909 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20910 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20911 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20912 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20913 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20914 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20915 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20916 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20917 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20918 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20919 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20920 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20921 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20922 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20923 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20924 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20925 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20926 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20927 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20928 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20929 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20930 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20931 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20932 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20933 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20934 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20935 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20936 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20937 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20938 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20939 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20940 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20941 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20942 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20943 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20944 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20945 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20946 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20947 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20948 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20949 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20950 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20951 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20952 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20953 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20954 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20955 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20956 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20957 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20958 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20959 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20960 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20961 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20962 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20963 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20964 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20965 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20966 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20967 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20968 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20969 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20970 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20971 20972 LTCC='$LTCC' 20973 LTCFLAGS='$LTCFLAGS' 20974 compiler='$compiler_DEFAULT' 20975 20976 # A function that is used when there is no print builtin or printf. 20977 func_fallback_echo () 20978 { 20979 eval 'cat <<_LTECHO_EOF 20980 \$1 20981 _LTECHO_EOF' 20982 } 20983 20984 # Quote evaled strings. 20985 for var in SHELL \ 20986 ECHO \ 20987 PATH_SEPARATOR \ 20988 SED \ 20989 GREP \ 20990 EGREP \ 20991 FGREP \ 20992 LD \ 20993 NM \ 20994 LN_S \ 20995 lt_SP2NL \ 20996 lt_NL2SP \ 20997 reload_flag \ 20998 FILECMD \ 20999 OBJDUMP \ 21000 deplibs_check_method \ 21001 file_magic_cmd \ 21002 file_magic_glob \ 21003 want_nocaseglob \ 21004 DLLTOOL \ 21005 sharedlib_from_linklib_cmd \ 21006 AR \ 21007 archiver_list_spec \ 21008 STRIP \ 21009 RANLIB \ 21010 CC \ 21011 CFLAGS \ 21012 compiler \ 21013 lt_cv_sys_global_symbol_pipe \ 21014 lt_cv_sys_global_symbol_to_cdecl \ 21015 lt_cv_sys_global_symbol_to_import \ 21016 lt_cv_sys_global_symbol_to_c_name_address \ 21017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21018 lt_cv_nm_interface \ 21019 nm_file_list_spec \ 21020 lt_cv_truncate_bin \ 21021 lt_prog_compiler_no_builtin_flag \ 21022 lt_prog_compiler_pic \ 21023 lt_prog_compiler_wl \ 21024 lt_prog_compiler_static \ 21025 lt_cv_prog_compiler_c_o \ 21026 need_locks \ 21027 MANIFEST_TOOL \ 21028 DSYMUTIL \ 21029 NMEDIT \ 21030 LIPO \ 21031 OTOOL \ 21032 OTOOL64 \ 21033 shrext_cmds \ 21034 export_dynamic_flag_spec \ 21035 whole_archive_flag_spec \ 21036 compiler_needs_object \ 21037 with_gnu_ld \ 21038 allow_undefined_flag \ 21039 no_undefined_flag \ 21040 hardcode_libdir_flag_spec \ 21041 hardcode_libdir_separator \ 21042 exclude_expsyms \ 21043 include_expsyms \ 21044 file_list_spec \ 21045 variables_saved_for_relink \ 21046 libname_spec \ 21047 library_names_spec \ 21048 soname_spec \ 21049 install_override_mode \ 21050 finish_eval \ 21051 old_striplib \ 21052 striplib; do 21053 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21054 *[\\\\\\\`\\"\\\$]*) 21055 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21056 ;; 21057 *) 21058 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21059 ;; 21060 esac 21061 done 21062 21063 # Double-quote double-evaled strings. 21064 for var in reload_cmds \ 21065 old_postinstall_cmds \ 21066 old_postuninstall_cmds \ 21067 old_archive_cmds \ 21068 extract_expsyms_cmds \ 21069 old_archive_from_new_cmds \ 21070 old_archive_from_expsyms_cmds \ 21071 archive_cmds \ 21072 archive_expsym_cmds \ 21073 module_cmds \ 21074 module_expsym_cmds \ 21075 export_symbols_cmds \ 21076 prelink_cmds \ 21077 postlink_cmds \ 21078 postinstall_cmds \ 21079 postuninstall_cmds \ 21080 finish_cmds \ 21081 sys_lib_search_path_spec \ 21082 configure_time_dlsearch_path \ 21083 configure_time_lt_sys_library_path; do 21084 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21085 *[\\\\\\\`\\"\\\$]*) 21086 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21087 ;; 21088 *) 21089 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21090 ;; 21091 esac 21092 done 21093 21094 ac_aux_dir='$ac_aux_dir' 21095 21096 # See if we are running on zsh, and set the options that allow our 21097 # commands through without removal of \ escapes INIT. 21098 if test -n "\${ZSH_VERSION+set}"; then 21099 setopt NO_GLOB_SUBST 21100 fi 21101 21102 21103 PACKAGE='$PACKAGE' 21104 VERSION='$VERSION' 21105 RM='$RM' 21106 ofile='$ofile' 21107 21108 21109 21110 21111 _ACEOF 21112 21113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21114 21115 # Handling of arguments. 21116 for ac_config_target in $ac_config_targets 21117 do 21118 case $ac_config_target in 21119 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21120 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21121 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21122 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21123 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 21124 "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;; 21125 "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;; 21126 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21127 "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;; 21128 "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;; 21129 "xvmc-wrapper.pc") CONFIG_FILES="$CONFIG_FILES xvmc-wrapper.pc" ;; 21130 21131 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21132 esac 21133 done 21134 21135 21136 # If the user did not use the arguments to specify the items to instantiate, 21137 # then the envvar interface is used. Set only those that are not. 21138 # We use the long form for the default assignment because of an extremely 21139 # bizarre bug on SunOS 4.1.3. 21140 if $ac_need_defaults; then 21141 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21142 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21143 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21144 fi 21145 21146 # Have a temporary directory for convenience. Make it in the build tree 21147 # simply because there is no reason against having it here, and in addition, 21148 # creating and moving files from /tmp can sometimes cause problems. 21149 # Hook for its removal unless debugging. 21150 # Note that there is a small window in which the directory will not be cleaned: 21151 # after its creation but before its name has been assigned to '$tmp'. 21152 $debug || 21153 { 21154 tmp= ac_tmp= 21155 trap 'exit_status=$? 21156 : "${ac_tmp:=$tmp}" 21157 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21158 ' 0 21159 trap 'as_fn_exit 1' 1 2 13 15 21160 } 21161 # Create a (secure) tmp directory for tmp files. 21162 21163 { 21164 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21165 test -d "$tmp" 21166 } || 21167 { 21168 tmp=./conf$$-$RANDOM 21169 (umask 077 && mkdir "$tmp") 21170 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21171 ac_tmp=$tmp 21172 21173 # Set up the scripts for CONFIG_FILES section. 21174 # No need to generate them if there are no CONFIG_FILES. 21175 # This happens for instance with './config.status config.h'. 21176 if test -n "$CONFIG_FILES"; then 21177 21178 21179 ac_cr=`echo X | tr X '\015'` 21180 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21181 # But we know of no other shell where ac_cr would be empty at this 21182 # point, so we can use a bashism as a fallback. 21183 if test "x$ac_cr" = x; then 21184 eval ac_cr=\$\'\\r\' 21185 fi 21186 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21187 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21188 ac_cs_awk_cr='\\r' 21189 else 21190 ac_cs_awk_cr=$ac_cr 21191 fi 21192 21193 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21194 _ACEOF 21195 21196 21197 { 21198 echo "cat >conf$$subs.awk <<_ACEOF" && 21199 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21200 echo "_ACEOF" 21201 } >conf$$subs.sh || 21202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21203 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21204 ac_delim='%!_!# ' 21205 for ac_last_try in false false false false false :; do 21206 . ./conf$$subs.sh || 21207 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21208 21209 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21210 if test $ac_delim_n = $ac_delim_num; then 21211 break 21212 elif $ac_last_try; then 21213 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21214 else 21215 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21216 fi 21217 done 21218 rm -f conf$$subs.sh 21219 21220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21221 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21222 _ACEOF 21223 sed -n ' 21224 h 21225 s/^/S["/; s/!.*/"]=/ 21226 p 21227 g 21228 s/^[^!]*!// 21229 :repl 21230 t repl 21231 s/'"$ac_delim"'$// 21232 t delim 21233 :nl 21234 h 21235 s/\(.\{148\}\)..*/\1/ 21236 t more1 21237 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21238 p 21239 n 21240 b repl 21241 :more1 21242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21243 p 21244 g 21245 s/.\{148\}// 21246 t nl 21247 :delim 21248 h 21249 s/\(.\{148\}\)..*/\1/ 21250 t more2 21251 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21252 p 21253 b 21254 :more2 21255 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21256 p 21257 g 21258 s/.\{148\}// 21259 t delim 21260 ' <conf$$subs.awk | sed ' 21261 /^[^""]/{ 21262 N 21263 s/\n// 21264 } 21265 ' >>$CONFIG_STATUS || ac_write_fail=1 21266 rm -f conf$$subs.awk 21267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21268 _ACAWK 21269 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21270 for (key in S) S_is_set[key] = 1 21271 FS = "" 21272 21273 } 21274 { 21275 line = $ 0 21276 nfields = split(line, field, "@") 21277 substed = 0 21278 len = length(field[1]) 21279 for (i = 2; i < nfields; i++) { 21280 key = field[i] 21281 keylen = length(key) 21282 if (S_is_set[key]) { 21283 value = S[key] 21284 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21285 len += length(value) + length(field[++i]) 21286 substed = 1 21287 } else 21288 len += 1 + keylen 21289 } 21290 21291 print line 21292 } 21293 21294 _ACAWK 21295 _ACEOF 21296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21297 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21298 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21299 else 21300 cat 21301 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21302 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21303 _ACEOF 21304 21305 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21306 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21307 # trailing colons and then remove the whole line if VPATH becomes empty 21308 # (actually we leave an empty line to preserve line numbers). 21309 if test "x$srcdir" = x.; then 21310 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21311 h 21312 s/// 21313 s/^/:/ 21314 s/[ ]*$/:/ 21315 s/:\$(srcdir):/:/g 21316 s/:\${srcdir}:/:/g 21317 s/:@srcdir@:/:/g 21318 s/^:*// 21319 s/:*$// 21320 x 21321 s/\(=[ ]*\).*/\1/ 21322 G 21323 s/\n// 21324 s/^[^=]*=[ ]*$// 21325 }' 21326 fi 21327 21328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21329 fi # test -n "$CONFIG_FILES" 21330 21331 # Set up the scripts for CONFIG_HEADERS section. 21332 # No need to generate them if there are no CONFIG_HEADERS. 21333 # This happens for instance with './config.status Makefile'. 21334 if test -n "$CONFIG_HEADERS"; then 21335 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21336 BEGIN { 21337 _ACEOF 21338 21339 # Transform confdefs.h into an awk script 'defines.awk', embedded as 21340 # here-document in config.status, that substitutes the proper values into 21341 # config.h.in to produce config.h. 21342 21343 # Create a delimiter string that does not exist in confdefs.h, to ease 21344 # handling of long lines. 21345 ac_delim='%!_!# ' 21346 for ac_last_try in false false :; do 21347 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21348 if test -z "$ac_tt"; then 21349 break 21350 elif $ac_last_try; then 21351 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21352 else 21353 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21354 fi 21355 done 21356 21357 # For the awk script, D is an array of macro values keyed by name, 21358 # likewise P contains macro parameters if any. Preserve backslash 21359 # newline sequences. 21360 21361 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21362 sed -n ' 21363 s/.\{148\}/&'"$ac_delim"'/g 21364 t rset 21365 :rset 21366 s/^[ ]*#[ ]*define[ ][ ]*/ / 21367 t def 21368 d 21369 :def 21370 s/\\$// 21371 t bsnl 21372 s/["\\]/\\&/g 21373 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21374 D["\1"]=" \3"/p 21375 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21376 d 21377 :bsnl 21378 s/["\\]/\\&/g 21379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21380 D["\1"]=" \3\\\\\\n"\\/p 21381 t cont 21382 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21383 t cont 21384 d 21385 :cont 21386 n 21387 s/.\{148\}/&'"$ac_delim"'/g 21388 t clear 21389 :clear 21390 s/\\$// 21391 t bsnlc 21392 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21393 d 21394 :bsnlc 21395 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21396 b cont 21397 ' <confdefs.h | sed ' 21398 s/'"$ac_delim"'/"\\\ 21399 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21400 21401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21402 for (key in D) D_is_set[key] = 1 21403 FS = "" 21404 } 21405 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21406 line = \$ 0 21407 split(line, arg, " ") 21408 if (arg[1] == "#") { 21409 defundef = arg[2] 21410 mac1 = arg[3] 21411 } else { 21412 defundef = substr(arg[1], 2) 21413 mac1 = arg[2] 21414 } 21415 split(mac1, mac2, "(") #) 21416 macro = mac2[1] 21417 prefix = substr(line, 1, index(line, defundef) - 1) 21418 if (D_is_set[macro]) { 21419 # Preserve the white space surrounding the "#". 21420 print prefix "define", macro P[macro] D[macro] 21421 next 21422 } else { 21423 # Replace #undef with comments. This is necessary, for example, 21424 # in the case of _POSIX_SOURCE, which is predefined and required 21425 # on some systems where configure will not decide to define it. 21426 if (defundef == "undef") { 21427 print "/*", prefix defundef, macro, "*/" 21428 next 21429 } 21430 } 21431 } 21432 { print } 21433 _ACAWK 21434 _ACEOF 21435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21436 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21437 fi # test -n "$CONFIG_HEADERS" 21438 21439 21440 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21441 shift 21442 for ac_tag 21443 do 21444 case $ac_tag in 21445 :[FHLC]) ac_mode=$ac_tag; continue;; 21446 esac 21447 case $ac_mode$ac_tag in 21448 :[FHL]*:*);; 21449 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21450 :[FH]-) ac_tag=-:-;; 21451 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21452 esac 21453 ac_save_IFS=$IFS 21454 IFS=: 21455 set x $ac_tag 21456 IFS=$ac_save_IFS 21457 shift 21458 ac_file=$1 21459 shift 21460 21461 case $ac_mode in 21462 :L) ac_source=$1;; 21463 :[FH]) 21464 ac_file_inputs= 21465 for ac_f 21466 do 21467 case $ac_f in 21468 -) ac_f="$ac_tmp/stdin";; 21469 *) # Look for the file first in the build tree, then in the source tree 21470 # (if the path is not absolute). The absolute path cannot be DOS-style, 21471 # because $ac_f cannot contain ':'. 21472 test -f "$ac_f" || 21473 case $ac_f in 21474 [\\/$]*) false;; 21475 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21476 esac || 21477 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21478 esac 21479 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21480 as_fn_append ac_file_inputs " '$ac_f'" 21481 done 21482 21483 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21484 # use $as_me), people would be surprised to read: 21485 # /* config.h. Generated by config.status. */ 21486 configure_input='Generated from '` 21487 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21488 `' by configure.' 21489 if test x"$ac_file" != x-; then 21490 configure_input="$ac_file. $configure_input" 21491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21492 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21493 fi 21494 # Neutralize special characters interpreted by sed in replacement strings. 21495 case $configure_input in #( 21496 *\&* | *\|* | *\\* ) 21497 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21498 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21499 *) ac_sed_conf_input=$configure_input;; 21500 esac 21501 21502 case $ac_tag in 21503 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21505 esac 21506 ;; 21507 esac 21508 21509 ac_dir=`$as_dirname -- "$ac_file" || 21510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21511 X"$ac_file" : 'X\(//\)[^/]' \| \ 21512 X"$ac_file" : 'X\(//\)$' \| \ 21513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21514 printf "%s\n" X"$ac_file" | 21515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21516 s//\1/ 21517 q 21518 } 21519 /^X\(\/\/\)[^/].*/{ 21520 s//\1/ 21521 q 21522 } 21523 /^X\(\/\/\)$/{ 21524 s//\1/ 21525 q 21526 } 21527 /^X\(\/\).*/{ 21528 s//\1/ 21529 q 21530 } 21531 s/.*/./; q'` 21532 as_dir="$ac_dir"; as_fn_mkdir_p 21533 ac_builddir=. 21534 21535 case "$ac_dir" in 21536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21537 *) 21538 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21539 # A ".." for each directory in $ac_dir_suffix. 21540 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21541 case $ac_top_builddir_sub in 21542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21544 esac ;; 21545 esac 21546 ac_abs_top_builddir=$ac_pwd 21547 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21548 # for backward compatibility: 21549 ac_top_builddir=$ac_top_build_prefix 21550 21551 case $srcdir in 21552 .) # We are building in place. 21553 ac_srcdir=. 21554 ac_top_srcdir=$ac_top_builddir_sub 21555 ac_abs_top_srcdir=$ac_pwd ;; 21556 [\\/]* | ?:[\\/]* ) # Absolute name. 21557 ac_srcdir=$srcdir$ac_dir_suffix; 21558 ac_top_srcdir=$srcdir 21559 ac_abs_top_srcdir=$srcdir ;; 21560 *) # Relative name. 21561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21562 ac_top_srcdir=$ac_top_build_prefix$srcdir 21563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21564 esac 21565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21566 21567 21568 case $ac_mode in 21569 :F) 21570 # 21571 # CONFIG_FILE 21572 # 21573 21574 case $INSTALL in 21575 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21576 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21577 esac 21578 ac_MKDIR_P=$MKDIR_P 21579 case $MKDIR_P in 21580 [\\/$]* | ?:[\\/]* ) ;; 21581 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21582 esac 21583 _ACEOF 21584 21585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21586 # If the template does not know about datarootdir, expand it. 21587 # FIXME: This hack should be removed a few years after 2.60. 21588 ac_datarootdir_hack=; ac_datarootdir_seen= 21589 ac_sed_dataroot=' 21590 /datarootdir/ { 21591 p 21592 q 21593 } 21594 /@datadir@/p 21595 /@docdir@/p 21596 /@infodir@/p 21597 /@localedir@/p 21598 /@mandir@/p' 21599 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21600 *datarootdir*) ac_datarootdir_seen=yes;; 21601 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21603 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21604 _ACEOF 21605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21606 ac_datarootdir_hack=' 21607 s&@datadir@&$datadir&g 21608 s&@docdir@&$docdir&g 21609 s&@infodir@&$infodir&g 21610 s&@localedir@&$localedir&g 21611 s&@mandir@&$mandir&g 21612 s&\\\${datarootdir}&$datarootdir&g' ;; 21613 esac 21614 _ACEOF 21615 21616 # Neutralize VPATH when '$srcdir' = '.'. 21617 # Shell code in configure.ac might set extrasub. 21618 # FIXME: do we really want to maintain this feature? 21619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21620 ac_sed_extra="$ac_vpsub 21621 $extrasub 21622 _ACEOF 21623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21624 :t 21625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21626 s|@configure_input@|$ac_sed_conf_input|;t t 21627 s&@top_builddir@&$ac_top_builddir_sub&;t t 21628 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21629 s&@srcdir@&$ac_srcdir&;t t 21630 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21631 s&@top_srcdir@&$ac_top_srcdir&;t t 21632 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21633 s&@builddir@&$ac_builddir&;t t 21634 s&@abs_builddir@&$ac_abs_builddir&;t t 21635 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21636 s&@INSTALL@&$ac_INSTALL&;t t 21637 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21638 $ac_datarootdir_hack 21639 " 21640 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21641 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21642 21643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21644 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21645 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21646 "$ac_tmp/out"`; test -z "$ac_out"; } && 21647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21648 which seems to be undefined. Please make sure it is defined" >&5 21649 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21650 which seems to be undefined. Please make sure it is defined" >&2;} 21651 21652 rm -f "$ac_tmp/stdin" 21653 case $ac_file in 21654 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21655 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21656 esac \ 21657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21658 ;; 21659 :H) 21660 # 21661 # CONFIG_HEADER 21662 # 21663 if test x"$ac_file" != x-; then 21664 { 21665 printf "%s\n" "/* $configure_input */" >&1 \ 21666 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21667 } >"$ac_tmp/config.h" \ 21668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21669 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21671 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21672 else 21673 rm -f "$ac_file" 21674 mv "$ac_tmp/config.h" "$ac_file" \ 21675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21676 fi 21677 else 21678 printf "%s\n" "/* $configure_input */" >&1 \ 21679 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21680 || as_fn_error $? "could not create -" "$LINENO" 5 21681 fi 21682 # Compute "$ac_file"'s index in $config_headers. 21683 _am_arg="$ac_file" 21684 _am_stamp_count=1 21685 for _am_header in $config_headers :; do 21686 case $_am_header in 21687 $_am_arg | $_am_arg:* ) 21688 break ;; 21689 * ) 21690 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21691 esac 21692 done 21693 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21694 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21695 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21696 X"$_am_arg" : 'X\(//\)$' \| \ 21697 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21698 printf "%s\n" X"$_am_arg" | 21699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21700 s//\1/ 21701 q 21702 } 21703 /^X\(\/\/\)[^/].*/{ 21704 s//\1/ 21705 q 21706 } 21707 /^X\(\/\/\)$/{ 21708 s//\1/ 21709 q 21710 } 21711 /^X\(\/\).*/{ 21712 s//\1/ 21713 q 21714 } 21715 s/.*/./; q'`/stamp-h$_am_stamp_count 21716 ;; 21717 21718 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21719 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21720 ;; 21721 esac 21722 21723 21724 case $ac_file$ac_mode in 21725 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21726 # Older Autoconf quotes --file arguments for eval, but not when files 21727 # are listed without --file. Let's play safe and only enable the eval 21728 # if we detect the quoting. 21729 # TODO: see whether this extra hack can be removed once we start 21730 # requiring Autoconf 2.70 or later. 21731 case $CONFIG_FILES in #( 21732 *\'*) : 21733 eval set x "$CONFIG_FILES" ;; #( 21734 *) : 21735 set x $CONFIG_FILES ;; #( 21736 *) : 21737 ;; 21738 esac 21739 shift 21740 # Used to flag and report bootstrapping failures. 21741 am_rc=0 21742 for am_mf 21743 do 21744 # Strip MF so we end up with the name of the file. 21745 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21746 # Check whether this is an Automake generated Makefile which includes 21747 # dependency-tracking related rules and includes. 21748 # Grep'ing the whole file directly is not great: AIX grep has a line 21749 # limit of 2048, but all sed's we know have understand at least 4000. 21750 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21751 || continue 21752 am_dirpart=`$as_dirname -- "$am_mf" || 21753 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21754 X"$am_mf" : 'X\(//\)[^/]' \| \ 21755 X"$am_mf" : 'X\(//\)$' \| \ 21756 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21757 printf "%s\n" X"$am_mf" | 21758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21759 s//\1/ 21760 q 21761 } 21762 /^X\(\/\/\)[^/].*/{ 21763 s//\1/ 21764 q 21765 } 21766 /^X\(\/\/\)$/{ 21767 s//\1/ 21768 q 21769 } 21770 /^X\(\/\).*/{ 21771 s//\1/ 21772 q 21773 } 21774 s/.*/./; q'` 21775 am_filepart=`$as_basename -- "$am_mf" || 21776 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21777 X"$am_mf" : 'X\(//\)$' \| \ 21778 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21779 printf "%s\n" X/"$am_mf" | 21780 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21781 s//\1/ 21782 q 21783 } 21784 /^X\/\(\/\/\)$/{ 21785 s//\1/ 21786 q 21787 } 21788 /^X\/\(\/\).*/{ 21789 s//\1/ 21790 q 21791 } 21792 s/.*/./; q'` 21793 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21794 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21795 | $MAKE -f - am--depfiles" >&5 21796 (cd "$am_dirpart" \ 21797 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21798 | $MAKE -f - am--depfiles) >&5 2>&5 21799 ac_status=$? 21800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21801 (exit $ac_status); } || am_rc=$? 21802 done 21803 if test $am_rc -ne 0; then 21804 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21805 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21806 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21807 for automatic dependency tracking. If GNU make was not used, consider 21808 re-running the configure script with MAKE=\"gmake\" (or whatever is 21809 necessary). You can also try re-running configure with the 21810 '--disable-dependency-tracking' option to at least be able to build 21811 the package (albeit without support for automatic dependency tracking). 21812 See 'config.log' for more details" "$LINENO" 5; } 21813 fi 21814 { am_dirpart=; unset am_dirpart;} 21815 { am_filepart=; unset am_filepart;} 21816 { am_mf=; unset am_mf;} 21817 { am_rc=; unset am_rc;} 21818 rm -f conftest-deps.mk 21819 } 21820 ;; 21821 "libtool":C) 21822 21823 # See if we are running on zsh, and set the options that allow our 21824 # commands through without removal of \ escapes. 21825 if test -n "${ZSH_VERSION+set}"; then 21826 setopt NO_GLOB_SUBST 21827 fi 21828 21829 cfgfile=${ofile}T 21830 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21831 $RM "$cfgfile" 21832 21833 cat <<_LT_EOF >> "$cfgfile" 21834 #! $SHELL 21835 # Generated automatically by $as_me ($PACKAGE) $VERSION 21836 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21837 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21838 21839 # Provide generalized library-building support services. 21840 # Written by Gordon Matzigkeit, 1996 21841 21842 # Copyright (C) 2014 Free Software Foundation, Inc. 21843 # This is free software; see the source for copying conditions. There is NO 21844 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21845 21846 # GNU Libtool is free software; you can redistribute it and/or modify 21847 # it under the terms of the GNU General Public License as published by 21848 # the Free Software Foundation; either version 2 of of the License, or 21849 # (at your option) any later version. 21850 # 21851 # As a special exception to the GNU General Public License, if you 21852 # distribute this file as part of a program or library that is built 21853 # using GNU Libtool, you may include this file under the same 21854 # distribution terms that you use for the rest of that program. 21855 # 21856 # GNU Libtool is distributed in the hope that it will be useful, but 21857 # WITHOUT ANY WARRANTY; without even the implied warranty of 21858 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21859 # GNU General Public License for more details. 21860 # 21861 # You should have received a copy of the GNU General Public License 21862 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21863 21864 21865 # The names of the tagged configurations supported by this script. 21866 available_tags='' 21867 21868 # Configured defaults for sys_lib_dlsearch_path munging. 21869 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21870 21871 # ### BEGIN LIBTOOL CONFIG 21872 21873 # Which release of libtool.m4 was used? 21874 macro_version=$macro_version 21875 macro_revision=$macro_revision 21876 21877 # Whether or not to build shared libraries. 21878 build_libtool_libs=$enable_shared 21879 21880 # Whether or not to build static libraries. 21881 build_old_libs=$enable_static 21882 21883 # What type of objects to build. 21884 pic_mode=$pic_mode 21885 21886 # Whether or not to optimize for fast installation. 21887 fast_install=$enable_fast_install 21888 21889 # Shared archive member basename,for filename based shared library versioning on AIX. 21890 shared_archive_member_spec=$shared_archive_member_spec 21891 21892 # Shell to use when invoking shell scripts. 21893 SHELL=$lt_SHELL 21894 21895 # An echo program that protects backslashes. 21896 ECHO=$lt_ECHO 21897 21898 # The PATH separator for the build system. 21899 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21900 21901 # The host system. 21902 host_alias=$host_alias 21903 host=$host 21904 host_os=$host_os 21905 21906 # The build system. 21907 build_alias=$build_alias 21908 build=$build 21909 build_os=$build_os 21910 21911 # A sed program that does not truncate output. 21912 SED=$lt_SED 21913 21914 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21915 Xsed="\$SED -e 1s/^X//" 21916 21917 # A grep program that handles long lines. 21918 GREP=$lt_GREP 21919 21920 # An ERE matcher. 21921 EGREP=$lt_EGREP 21922 21923 # A literal string matcher. 21924 FGREP=$lt_FGREP 21925 21926 # A BSD- or MS-compatible name lister. 21927 NM=$lt_NM 21928 21929 # Whether we need soft or hard links. 21930 LN_S=$lt_LN_S 21931 21932 # What is the maximum length of a command? 21933 max_cmd_len=$max_cmd_len 21934 21935 # Object file suffix (normally "o"). 21936 objext=$ac_objext 21937 21938 # Executable file suffix (normally ""). 21939 exeext=$exeext 21940 21941 # whether the shell understands "unset". 21942 lt_unset=$lt_unset 21943 21944 # turn spaces into newlines. 21945 SP2NL=$lt_lt_SP2NL 21946 21947 # turn newlines into spaces. 21948 NL2SP=$lt_lt_NL2SP 21949 21950 # convert \$build file names to \$host format. 21951 to_host_file_cmd=$lt_cv_to_host_file_cmd 21952 21953 # convert \$build files to toolchain format. 21954 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21955 21956 # A file(cmd) program that detects file types. 21957 FILECMD=$lt_FILECMD 21958 21959 # An object symbol dumper. 21960 OBJDUMP=$lt_OBJDUMP 21961 21962 # Method to check whether dependent libraries are shared objects. 21963 deplibs_check_method=$lt_deplibs_check_method 21964 21965 # Command to use when deplibs_check_method = "file_magic". 21966 file_magic_cmd=$lt_file_magic_cmd 21967 21968 # How to find potential files when deplibs_check_method = "file_magic". 21969 file_magic_glob=$lt_file_magic_glob 21970 21971 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21972 want_nocaseglob=$lt_want_nocaseglob 21973 21974 # DLL creation program. 21975 DLLTOOL=$lt_DLLTOOL 21976 21977 # Command to associate shared and link libraries. 21978 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21979 21980 # The archiver. 21981 AR=$lt_AR 21982 21983 # Flags to create an archive (by configure). 21984 lt_ar_flags=$lt_ar_flags 21985 21986 # Flags to create an archive. 21987 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21988 21989 # How to feed a file listing to the archiver. 21990 archiver_list_spec=$lt_archiver_list_spec 21991 21992 # A symbol stripping program. 21993 STRIP=$lt_STRIP 21994 21995 # Commands used to install an old-style archive. 21996 RANLIB=$lt_RANLIB 21997 old_postinstall_cmds=$lt_old_postinstall_cmds 21998 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21999 22000 # Whether to use a lock for old archive extraction. 22001 lock_old_archive_extraction=$lock_old_archive_extraction 22002 22003 # A C compiler. 22004 LTCC=$lt_CC 22005 22006 # LTCC compiler flags. 22007 LTCFLAGS=$lt_CFLAGS 22008 22009 # Take the output of nm and produce a listing of raw symbols and C names. 22010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22011 22012 # Transform the output of nm in a proper C declaration. 22013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22014 22015 # Transform the output of nm into a list of symbols to manually relocate. 22016 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22017 22018 # Transform the output of nm in a C name address pair. 22019 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22020 22021 # Transform the output of nm in a C name address pair when lib prefix is needed. 22022 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22023 22024 # The name lister interface. 22025 nm_interface=$lt_lt_cv_nm_interface 22026 22027 # Specify filename containing input files for \$NM. 22028 nm_file_list_spec=$lt_nm_file_list_spec 22029 22030 # The root where to search for dependent libraries,and where our libraries should be installed. 22031 lt_sysroot=$lt_sysroot 22032 22033 # Command to truncate a binary pipe. 22034 lt_truncate_bin=$lt_lt_cv_truncate_bin 22035 22036 # The name of the directory that contains temporary libtool files. 22037 objdir=$objdir 22038 22039 # Used to examine libraries when file_magic_cmd begins with "file". 22040 MAGIC_CMD=$MAGIC_CMD 22041 22042 # Must we lock files when doing compilation? 22043 need_locks=$lt_need_locks 22044 22045 # Manifest tool. 22046 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22047 22048 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22049 DSYMUTIL=$lt_DSYMUTIL 22050 22051 # Tool to change global to local symbols on Mac OS X. 22052 NMEDIT=$lt_NMEDIT 22053 22054 # Tool to manipulate fat objects and archives on Mac OS X. 22055 LIPO=$lt_LIPO 22056 22057 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22058 OTOOL=$lt_OTOOL 22059 22060 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22061 OTOOL64=$lt_OTOOL64 22062 22063 # Old archive suffix (normally "a"). 22064 libext=$libext 22065 22066 # Shared library suffix (normally ".so"). 22067 shrext_cmds=$lt_shrext_cmds 22068 22069 # The commands to extract the exported symbol list from a shared archive. 22070 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22071 22072 # Variables whose values should be saved in libtool wrapper scripts and 22073 # restored at link time. 22074 variables_saved_for_relink=$lt_variables_saved_for_relink 22075 22076 # Do we need the "lib" prefix for modules? 22077 need_lib_prefix=$need_lib_prefix 22078 22079 # Do we need a version for libraries? 22080 need_version=$need_version 22081 22082 # Library versioning type. 22083 version_type=$version_type 22084 22085 # Shared library runtime path variable. 22086 runpath_var=$runpath_var 22087 22088 # Shared library path variable. 22089 shlibpath_var=$shlibpath_var 22090 22091 # Is shlibpath searched before the hard-coded library search path? 22092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22093 22094 # Format of library name prefix. 22095 libname_spec=$lt_libname_spec 22096 22097 # List of archive names. First name is the real one, the rest are links. 22098 # The last name is the one that the linker finds with -lNAME 22099 library_names_spec=$lt_library_names_spec 22100 22101 # The coded name of the library, if different from the real name. 22102 soname_spec=$lt_soname_spec 22103 22104 # Permission mode override for installation of shared libraries. 22105 install_override_mode=$lt_install_override_mode 22106 22107 # Command to use after installation of a shared archive. 22108 postinstall_cmds=$lt_postinstall_cmds 22109 22110 # Command to use after uninstallation of a shared archive. 22111 postuninstall_cmds=$lt_postuninstall_cmds 22112 22113 # Commands used to finish a libtool library installation in a directory. 22114 finish_cmds=$lt_finish_cmds 22115 22116 # As "finish_cmds", except a single script fragment to be evaled but 22117 # not shown. 22118 finish_eval=$lt_finish_eval 22119 22120 # Whether we should hardcode library paths into libraries. 22121 hardcode_into_libs=$hardcode_into_libs 22122 22123 # Compile-time system search path for libraries. 22124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22125 22126 # Detected run-time system search path for libraries. 22127 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22128 22129 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22130 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22131 22132 # Whether dlopen is supported. 22133 dlopen_support=$enable_dlopen 22134 22135 # Whether dlopen of programs is supported. 22136 dlopen_self=$enable_dlopen_self 22137 22138 # Whether dlopen of statically linked programs is supported. 22139 dlopen_self_static=$enable_dlopen_self_static 22140 22141 # Commands to strip libraries. 22142 old_striplib=$lt_old_striplib 22143 striplib=$lt_striplib 22144 22145 22146 # The linker used to build libraries. 22147 LD=$lt_LD 22148 22149 # How to create reloadable object files. 22150 reload_flag=$lt_reload_flag 22151 reload_cmds=$lt_reload_cmds 22152 22153 # Commands used to build an old-style archive. 22154 old_archive_cmds=$lt_old_archive_cmds 22155 22156 # A language specific compiler. 22157 CC=$lt_compiler 22158 22159 # Is the compiler the GNU compiler? 22160 with_gcc=$GCC 22161 22162 # Compiler flag to turn off builtin functions. 22163 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22164 22165 # Additional compiler flags for building library objects. 22166 pic_flag=$lt_lt_prog_compiler_pic 22167 22168 # How to pass a linker flag through the compiler. 22169 wl=$lt_lt_prog_compiler_wl 22170 22171 # Compiler flag to prevent dynamic linking. 22172 link_static_flag=$lt_lt_prog_compiler_static 22173 22174 # Does compiler simultaneously support -c and -o options? 22175 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22176 22177 # Whether or not to add -lc for building shared libraries. 22178 build_libtool_need_lc=$archive_cmds_need_lc 22179 22180 # Whether or not to disallow shared libs when runtime libs are static. 22181 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22182 22183 # Compiler flag to allow reflexive dlopens. 22184 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22185 22186 # Compiler flag to generate shared objects directly from archives. 22187 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22188 22189 # Whether the compiler copes with passing no objects directly. 22190 compiler_needs_object=$lt_compiler_needs_object 22191 22192 # Create an old-style archive from a shared archive. 22193 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22194 22195 # Create a temporary old-style archive to link instead of a shared archive. 22196 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22197 22198 # Commands used to build a shared archive. 22199 archive_cmds=$lt_archive_cmds 22200 archive_expsym_cmds=$lt_archive_expsym_cmds 22201 22202 # Commands used to build a loadable module if different from building 22203 # a shared archive. 22204 module_cmds=$lt_module_cmds 22205 module_expsym_cmds=$lt_module_expsym_cmds 22206 22207 # Whether we are building with GNU ld or not. 22208 with_gnu_ld=$lt_with_gnu_ld 22209 22210 # Flag that allows shared libraries with undefined symbols to be built. 22211 allow_undefined_flag=$lt_allow_undefined_flag 22212 22213 # Flag that enforces no undefined symbols. 22214 no_undefined_flag=$lt_no_undefined_flag 22215 22216 # Flag to hardcode \$libdir into a binary during linking. 22217 # This must work even if \$libdir does not exist 22218 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22219 22220 # Whether we need a single "-rpath" flag with a separated argument. 22221 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22222 22223 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22224 # DIR into the resulting binary. 22225 hardcode_direct=$hardcode_direct 22226 22227 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22228 # DIR into the resulting binary and the resulting library dependency is 22229 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 22230 # library is relocated. 22231 hardcode_direct_absolute=$hardcode_direct_absolute 22232 22233 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22234 # into the resulting binary. 22235 hardcode_minus_L=$hardcode_minus_L 22236 22237 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22238 # into the resulting binary. 22239 hardcode_shlibpath_var=$hardcode_shlibpath_var 22240 22241 # Set to "yes" if building a shared library automatically hardcodes DIR 22242 # into the library and all subsequent libraries and executables linked 22243 # against it. 22244 hardcode_automatic=$hardcode_automatic 22245 22246 # Set to yes if linker adds runtime paths of dependent libraries 22247 # to runtime path list. 22248 inherit_rpath=$inherit_rpath 22249 22250 # Whether libtool must link a program against all its dependency libraries. 22251 link_all_deplibs=$link_all_deplibs 22252 22253 # Set to "yes" if exported symbols are required. 22254 always_export_symbols=$always_export_symbols 22255 22256 # The commands to list exported symbols. 22257 export_symbols_cmds=$lt_export_symbols_cmds 22258 22259 # Symbols that should not be listed in the preloaded symbols. 22260 exclude_expsyms=$lt_exclude_expsyms 22261 22262 # Symbols that must always be exported. 22263 include_expsyms=$lt_include_expsyms 22264 22265 # Commands necessary for linking programs (against libraries) with templates. 22266 prelink_cmds=$lt_prelink_cmds 22267 22268 # Commands necessary for finishing linking programs. 22269 postlink_cmds=$lt_postlink_cmds 22270 22271 # Specify filename containing input files. 22272 file_list_spec=$lt_file_list_spec 22273 22274 # How to hardcode a shared library path into an executable. 22275 hardcode_action=$hardcode_action 22276 22277 # ### END LIBTOOL CONFIG 22278 22279 _LT_EOF 22280 22281 cat <<'_LT_EOF' >> "$cfgfile" 22282 22283 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22284 22285 # func_munge_path_list VARIABLE PATH 22286 # ----------------------------------- 22287 # VARIABLE is name of variable containing _space_ separated list of 22288 # directories to be munged by the contents of PATH, which is string 22289 # having a format: 22290 # "DIR[:DIR]:" 22291 # string "DIR[ DIR]" will be prepended to VARIABLE 22292 # ":DIR[:DIR]" 22293 # string "DIR[ DIR]" will be appended to VARIABLE 22294 # "DIRP[:DIRP]::[DIRA:]DIRA" 22295 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22296 # "DIRA[ DIRA]" will be appended to VARIABLE 22297 # "DIR[:DIR]" 22298 # VARIABLE will be replaced by "DIR[ DIR]" 22299 func_munge_path_list () 22300 { 22301 case x$2 in 22302 x) 22303 ;; 22304 *:) 22305 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22306 ;; 22307 x:*) 22308 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22309 ;; 22310 *::*) 22311 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22312 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22313 ;; 22314 *) 22315 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22316 ;; 22317 esac 22318 } 22319 22320 22321 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22322 func_cc_basename () 22323 { 22324 for cc_temp in $*""; do 22325 case $cc_temp in 22326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22328 \-*) ;; 22329 *) break;; 22330 esac 22331 done 22332 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22333 } 22334 22335 22336 # ### END FUNCTIONS SHARED WITH CONFIGURE 22337 22338 _LT_EOF 22339 22340 case $host_os in 22341 aix3*) 22342 cat <<\_LT_EOF >> "$cfgfile" 22343 # AIX sometimes has problems with the GCC collect2 program. For some 22344 # reason, if we set the COLLECT_NAMES environment variable, the problems 22345 # vanish in a puff of smoke. 22346 if test set != "${COLLECT_NAMES+set}"; then 22347 COLLECT_NAMES= 22348 export COLLECT_NAMES 22349 fi 22350 _LT_EOF 22351 ;; 22352 esac 22353 22354 22355 22356 ltmain=$ac_aux_dir/ltmain.sh 22357 22358 22359 # We use sed instead of cat because bash on DJGPP gets confused if 22360 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22361 # text mode, it properly converts lines to CR/LF. This bash problem 22362 # is reportedly fixed, but why not run on old versions too? 22363 $SED '$q' "$ltmain" >> "$cfgfile" \ 22364 || (rm -f "$cfgfile"; exit 1) 22365 22366 mv -f "$cfgfile" "$ofile" || 22367 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22368 chmod +x "$ofile" 22369 22370 ;; 22371 22372 esac 22373 done # for ac_tag 22374 22375 22376 as_fn_exit 0 22377 _ACEOF 22378 ac_clean_files=$ac_clean_files_save 22379 22380 test $ac_write_fail = 0 || 22381 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22382 22383 22384 # configure is writing to config.log, and then calls config.status. 22385 # config.status does its own redirection, appending to config.log. 22386 # Unfortunately, on DOS this fails, as config.log is still kept open 22387 # by configure, so config.status won't be able to write to it; its 22388 # output is simply discarded. So we exec the FD to /dev/null, 22389 # effectively closing config.log, so it can be properly (re)opened and 22390 # appended to by config.status. When coming back to configure, we 22391 # need to make the FD available again. 22392 if test "$no_create" != yes; then 22393 ac_cs_success=: 22394 ac_config_status_args= 22395 test "$silent" = yes && 22396 ac_config_status_args="$ac_config_status_args --quiet" 22397 exec 5>/dev/null 22398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22399 exec 5>>config.log 22400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22401 # would make configure fail if this is the last instruction. 22402 $ac_cs_success || as_fn_exit 1 22403 fi 22404 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22406 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22407 fi 22408 22409 22410