1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xf86-video-nv 2.1.23. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/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 test \$(( 1 + 1 )) = 2 || exit 1 188 189 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 190 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 193 PATH=/empty FPATH=/empty; export PATH FPATH 194 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 195 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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/driver/xf86-video-nv/-/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='xf86-video-nv' 617 PACKAGE_TARNAME='xf86-video-nv' 618 PACKAGE_VERSION='2.1.23' 619 PACKAGE_STRING='xf86-video-nv 2.1.23' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/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 DRIVER_NAME 661 moduledir 662 XAA_FALSE 663 XAA_TRUE 664 PCIACCESS_LIBS 665 PCIACCESS_CFLAGS 666 HAVE_XEXTPROTO_71_FALSE 667 HAVE_XEXTPROTO_71_TRUE 668 XEXT_LIBS 669 XEXT_CFLAGS 670 XORG_LIBS 671 XORG_CFLAGS 672 LT_SYS_LIBRARY_PATH 673 OTOOL64 674 OTOOL 675 LIPO 676 NMEDIT 677 DSYMUTIL 678 MANIFEST_TOOL 679 RANLIB 680 ac_ct_AR 681 AR 682 DLLTOOL 683 OBJDUMP 684 FILECMD 685 LN_S 686 NM 687 ac_ct_DUMPBIN 688 DUMPBIN 689 LD 690 FGREP 691 EGREP 692 GREP 693 LIBTOOL 694 CSCOPE 695 ETAGS 696 CTAGS 697 am__fastdepCC_FALSE 698 am__fastdepCC_TRUE 699 CCDEPMODE 700 am__nodep 701 AMDEPBACKSLASH 702 AMDEP_FALSE 703 AMDEP_TRUE 704 am__include 705 DEPDIR 706 am__untar 707 am__tar 708 AMTAR 709 am__leading_dot 710 SET_MAKE 711 AWK 712 mkdir_p 713 MKDIR_P 714 INSTALL_STRIP_PROGRAM 715 STRIP 716 install_sh 717 MAKEINFO 718 AUTOHEADER 719 AUTOMAKE 720 AUTOCONF 721 ACLOCAL 722 VERSION 723 PACKAGE 724 CYGPATH_W 725 am__isrc 726 AM_BACKSLASH 727 AM_DEFAULT_VERBOSITY 728 AM_DEFAULT_V 729 AM_V 730 MAN_SUBSTS 731 XORG_MAN_PAGE 732 ADMIN_MAN_DIR 733 DRIVER_MAN_DIR 734 MISC_MAN_DIR 735 FILE_MAN_DIR 736 LIB_MAN_DIR 737 APP_MAN_DIR 738 ADMIN_MAN_SUFFIX 739 DRIVER_MAN_SUFFIX 740 MISC_MAN_SUFFIX 741 FILE_MAN_SUFFIX 742 LIB_MAN_SUFFIX 743 APP_MAN_SUFFIX 744 SED 745 host_os 746 host_vendor 747 host_cpu 748 host 749 build_os 750 build_vendor 751 build_cpu 752 build 753 INSTALL_CMD 754 PKG_CONFIG_LIBDIR 755 PKG_CONFIG_PATH 756 PKG_CONFIG 757 CHANGELOG_CMD 758 STRICT_CFLAGS 759 CWARNFLAGS 760 BASE_CFLAGS 761 OBJEXT 762 EXEEXT 763 ac_ct_CC 764 CPPFLAGS 765 LDFLAGS 766 CFLAGS 767 CC 768 INSTALL_DATA 769 INSTALL_SCRIPT 770 INSTALL_PROGRAM 771 target_alias 772 host_alias 773 build_alias 774 LIBS 775 ECHO_T 776 ECHO_N 777 ECHO_C 778 DEFS 779 mandir 780 localedir 781 libdir 782 psdir 783 pdfdir 784 dvidir 785 htmldir 786 infodir 787 docdir 788 oldincludedir 789 includedir 790 runstatedir 791 localstatedir 792 sharedstatedir 793 sysconfdir 794 datadir 795 datarootdir 796 libexecdir 797 sbindir 798 bindir 799 program_transform_name 800 prefix 801 exec_prefix 802 PACKAGE_URL 803 PACKAGE_BUGREPORT 804 PACKAGE_STRING 805 PACKAGE_VERSION 806 PACKAGE_TARNAME 807 PACKAGE_NAME 808 PATH_SEPARATOR 809 SHELL 810 am__quote' 811 ac_subst_files='' 812 ac_user_opts=' 813 enable_option_checking 814 enable_selective_werror 815 enable_strict_compilation 816 enable_silent_rules 817 enable_dependency_tracking 818 enable_static 819 enable_shared 820 with_pic 821 enable_fast_install 822 with_aix_soname 823 with_gnu_ld 824 with_sysroot 825 enable_libtool_lock 826 with_xorg_module_dir 827 enable_xaa 828 ' 829 ac_precious_vars='build_alias 830 host_alias 831 target_alias 832 CC 833 CFLAGS 834 LDFLAGS 835 LIBS 836 CPPFLAGS 837 PKG_CONFIG 838 PKG_CONFIG_PATH 839 PKG_CONFIG_LIBDIR 840 LT_SYS_LIBRARY_PATH 841 XORG_CFLAGS 842 XORG_LIBS 843 XEXT_CFLAGS 844 XEXT_LIBS 845 PCIACCESS_CFLAGS 846 PCIACCESS_LIBS' 847 848 849 # Initialize some variables set by options. 850 ac_init_help= 851 ac_init_version=false 852 ac_unrecognized_opts= 853 ac_unrecognized_sep= 854 # The variables have the same names as the options, with 855 # dashes changed to underlines. 856 cache_file=/dev/null 857 exec_prefix=NONE 858 no_create= 859 no_recursion= 860 prefix=NONE 861 program_prefix=NONE 862 program_suffix=NONE 863 program_transform_name=s,x,x, 864 silent= 865 site= 866 srcdir= 867 verbose= 868 x_includes=NONE 869 x_libraries=NONE 870 871 # Installation directory options. 872 # These are left unexpanded so users can "make install exec_prefix=/foo" 873 # and all the variables that are supposed to be based on exec_prefix 874 # by default will actually change. 875 # Use braces instead of parens because sh, perl, etc. also accept them. 876 # (The list follows the same order as the GNU Coding Standards.) 877 bindir='${exec_prefix}/bin' 878 sbindir='${exec_prefix}/sbin' 879 libexecdir='${exec_prefix}/libexec' 880 datarootdir='${prefix}/share' 881 datadir='${datarootdir}' 882 sysconfdir='${prefix}/etc' 883 sharedstatedir='${prefix}/com' 884 localstatedir='${prefix}/var' 885 runstatedir='${localstatedir}/run' 886 includedir='${prefix}/include' 887 oldincludedir='/usr/include' 888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 889 infodir='${datarootdir}/info' 890 htmldir='${docdir}' 891 dvidir='${docdir}' 892 pdfdir='${docdir}' 893 psdir='${docdir}' 894 libdir='${exec_prefix}/lib' 895 localedir='${datarootdir}/locale' 896 mandir='${datarootdir}/man' 897 898 ac_prev= 899 ac_dashdash= 900 for ac_option 901 do 902 # If the previous option needs an argument, assign it. 903 if test -n "$ac_prev"; then 904 eval $ac_prev=\$ac_option 905 ac_prev= 906 continue 907 fi 908 909 case $ac_option in 910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 911 *=) ac_optarg= ;; 912 *) ac_optarg=yes ;; 913 esac 914 915 case $ac_dashdash$ac_option in 916 --) 917 ac_dashdash=yes ;; 918 919 -bindir | --bindir | --bindi | --bind | --bin | --bi) 920 ac_prev=bindir ;; 921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 922 bindir=$ac_optarg ;; 923 924 -build | --build | --buil | --bui | --bu) 925 ac_prev=build_alias ;; 926 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 927 build_alias=$ac_optarg ;; 928 929 -cache-file | --cache-file | --cache-fil | --cache-fi \ 930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 931 ac_prev=cache_file ;; 932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 934 cache_file=$ac_optarg ;; 935 936 --config-cache | -C) 937 cache_file=config.cache ;; 938 939 -datadir | --datadir | --datadi | --datad) 940 ac_prev=datadir ;; 941 -datadir=* | --datadir=* | --datadi=* | --datad=*) 942 datadir=$ac_optarg ;; 943 944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 945 | --dataroo | --dataro | --datar) 946 ac_prev=datarootdir ;; 947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 949 datarootdir=$ac_optarg ;; 950 951 -disable-* | --disable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 as_fn_error $? "invalid feature name: '$ac_useropt'" 956 ac_useropt_orig=$ac_useropt 957 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 958 case $ac_user_opts in 959 *" 960 "enable_$ac_useropt" 961 "*) ;; 962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 963 ac_unrecognized_sep=', ';; 964 esac 965 eval enable_$ac_useropt=no ;; 966 967 -docdir | --docdir | --docdi | --doc | --do) 968 ac_prev=docdir ;; 969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 970 docdir=$ac_optarg ;; 971 972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 973 ac_prev=dvidir ;; 974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 975 dvidir=$ac_optarg ;; 976 977 -enable-* | --enable-*) 978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 979 # Reject names that are not valid shell variable names. 980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 981 as_fn_error $? "invalid feature name: '$ac_useropt'" 982 ac_useropt_orig=$ac_useropt 983 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 984 case $ac_user_opts in 985 *" 986 "enable_$ac_useropt" 987 "*) ;; 988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 989 ac_unrecognized_sep=', ';; 990 esac 991 eval enable_$ac_useropt=\$ac_optarg ;; 992 993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 995 | --exec | --exe | --ex) 996 ac_prev=exec_prefix ;; 997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 999 | --exec=* | --exe=* | --ex=*) 1000 exec_prefix=$ac_optarg ;; 1001 1002 -gas | --gas | --ga | --g) 1003 # Obsolete; use --with-gas. 1004 with_gas=yes ;; 1005 1006 -help | --help | --hel | --he | -h) 1007 ac_init_help=long ;; 1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1009 ac_init_help=recursive ;; 1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1011 ac_init_help=short ;; 1012 1013 -host | --host | --hos | --ho) 1014 ac_prev=host_alias ;; 1015 -host=* | --host=* | --hos=* | --ho=*) 1016 host_alias=$ac_optarg ;; 1017 1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1019 ac_prev=htmldir ;; 1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1021 | --ht=*) 1022 htmldir=$ac_optarg ;; 1023 1024 -includedir | --includedir | --includedi | --included | --include \ 1025 | --includ | --inclu | --incl | --inc) 1026 ac_prev=includedir ;; 1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1028 | --includ=* | --inclu=* | --incl=* | --inc=*) 1029 includedir=$ac_optarg ;; 1030 1031 -infodir | --infodir | --infodi | --infod | --info | --inf) 1032 ac_prev=infodir ;; 1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1034 infodir=$ac_optarg ;; 1035 1036 -libdir | --libdir | --libdi | --libd) 1037 ac_prev=libdir ;; 1038 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1039 libdir=$ac_optarg ;; 1040 1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1042 | --libexe | --libex | --libe) 1043 ac_prev=libexecdir ;; 1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1045 | --libexe=* | --libex=* | --libe=*) 1046 libexecdir=$ac_optarg ;; 1047 1048 -localedir | --localedir | --localedi | --localed | --locale) 1049 ac_prev=localedir ;; 1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1051 localedir=$ac_optarg ;; 1052 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1054 | --localstate | --localstat | --localsta | --localst | --locals) 1055 ac_prev=localstatedir ;; 1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1058 localstatedir=$ac_optarg ;; 1059 1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1061 ac_prev=mandir ;; 1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1063 mandir=$ac_optarg ;; 1064 1065 -nfp | --nfp | --nf) 1066 # Obsolete; use --without-fp. 1067 with_fp=no ;; 1068 1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1070 | --no-cr | --no-c | -n) 1071 no_create=yes ;; 1072 1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1075 no_recursion=yes ;; 1076 1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1079 | --oldin | --oldi | --old | --ol | --o) 1080 ac_prev=oldincludedir ;; 1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1084 oldincludedir=$ac_optarg ;; 1085 1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1087 ac_prev=prefix ;; 1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1089 prefix=$ac_optarg ;; 1090 1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1092 | --program-pre | --program-pr | --program-p) 1093 ac_prev=program_prefix ;; 1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1096 program_prefix=$ac_optarg ;; 1097 1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1099 | --program-suf | --program-su | --program-s) 1100 ac_prev=program_suffix ;; 1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1103 program_suffix=$ac_optarg ;; 1104 1105 -program-transform-name | --program-transform-name \ 1106 | --program-transform-nam | --program-transform-na \ 1107 | --program-transform-n | --program-transform- \ 1108 | --program-transform | --program-transfor \ 1109 | --program-transfo | --program-transf \ 1110 | --program-trans | --program-tran \ 1111 | --progr-tra | --program-tr | --program-t) 1112 ac_prev=program_transform_name ;; 1113 -program-transform-name=* | --program-transform-name=* \ 1114 | --program-transform-nam=* | --program-transform-na=* \ 1115 | --program-transform-n=* | --program-transform-=* \ 1116 | --program-transform=* | --program-transfor=* \ 1117 | --program-transfo=* | --program-transf=* \ 1118 | --program-trans=* | --program-tran=* \ 1119 | --progr-tra=* | --program-tr=* | --program-t=*) 1120 program_transform_name=$ac_optarg ;; 1121 1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1123 ac_prev=pdfdir ;; 1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1125 pdfdir=$ac_optarg ;; 1126 1127 -psdir | --psdir | --psdi | --psd | --ps) 1128 ac_prev=psdir ;; 1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1130 psdir=$ac_optarg ;; 1131 1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1133 | -silent | --silent | --silen | --sile | --sil) 1134 silent=yes ;; 1135 1136 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1137 | --runstate | --runstat | --runsta | --runst | --runs \ 1138 | --run | --ru | --r) 1139 ac_prev=runstatedir ;; 1140 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1141 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1142 | --run=* | --ru=* | --r=*) 1143 runstatedir=$ac_optarg ;; 1144 1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1146 ac_prev=sbindir ;; 1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1148 | --sbi=* | --sb=*) 1149 sbindir=$ac_optarg ;; 1150 1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1153 | --sharedst | --shareds | --shared | --share | --shar \ 1154 | --sha | --sh) 1155 ac_prev=sharedstatedir ;; 1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1159 | --sha=* | --sh=*) 1160 sharedstatedir=$ac_optarg ;; 1161 1162 -site | --site | --sit) 1163 ac_prev=site ;; 1164 -site=* | --site=* | --sit=*) 1165 site=$ac_optarg ;; 1166 1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1168 ac_prev=srcdir ;; 1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1170 srcdir=$ac_optarg ;; 1171 1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1173 | --syscon | --sysco | --sysc | --sys | --sy) 1174 ac_prev=sysconfdir ;; 1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1177 sysconfdir=$ac_optarg ;; 1178 1179 -target | --target | --targe | --targ | --tar | --ta | --t) 1180 ac_prev=target_alias ;; 1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1182 target_alias=$ac_optarg ;; 1183 1184 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1185 verbose=yes ;; 1186 1187 -version | --version | --versio | --versi | --vers | -V) 1188 ac_init_version=: ;; 1189 1190 -with-* | --with-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error $? "invalid package name: '$ac_useropt'" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199 "with_$ac_useropt" 1200 "*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval with_$ac_useropt=\$ac_optarg ;; 1205 1206 -without-* | --without-*) 1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1208 # Reject names that are not valid shell variable names. 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 as_fn_error $? "invalid package name: '$ac_useropt'" 1211 ac_useropt_orig=$ac_useropt 1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1213 case $ac_user_opts in 1214 *" 1215 "with_$ac_useropt" 1216 "*) ;; 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1218 ac_unrecognized_sep=', ';; 1219 esac 1220 eval with_$ac_useropt=no ;; 1221 1222 --x) 1223 # Obsolete; use --with-x. 1224 with_x=yes ;; 1225 1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1227 | --x-incl | --x-inc | --x-in | --x-i) 1228 ac_prev=x_includes ;; 1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1231 x_includes=$ac_optarg ;; 1232 1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1235 ac_prev=x_libraries ;; 1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1238 x_libraries=$ac_optarg ;; 1239 1240 -*) as_fn_error $? "unrecognized option: '$ac_option' 1241 Try '$0 --help' for more information" 1242 ;; 1243 1244 *=*) 1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1246 # Reject names that are not valid shell variable names. 1247 case $ac_envvar in #( 1248 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1249 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1250 esac 1251 eval $ac_envvar=\$ac_optarg 1252 export $ac_envvar ;; 1253 1254 *) 1255 # FIXME: should be removed in autoconf 3.0. 1256 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1258 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1260 ;; 1261 1262 esac 1263 done 1264 1265 if test -n "$ac_prev"; then 1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1267 as_fn_error $? "missing argument to $ac_option" 1268 fi 1269 1270 if test -n "$ac_unrecognized_opts"; then 1271 case $enable_option_checking in 1272 no) ;; 1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1274 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1275 esac 1276 fi 1277 1278 # Check all directory arguments for consistency. 1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1280 datadir sysconfdir sharedstatedir localstatedir includedir \ 1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1282 libdir localedir mandir runstatedir 1283 do 1284 eval ac_val=\$$ac_var 1285 # Remove trailing slashes. 1286 case $ac_val in 1287 */ ) 1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1289 eval $ac_var=\$ac_val;; 1290 esac 1291 # Be sure to have absolute directory names. 1292 case $ac_val in 1293 [\\/$]* | ?:[\\/]* ) continue;; 1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1295 esac 1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1297 done 1298 1299 # There might be people who depend on the old broken behavior: '$host' 1300 # used to hold the argument of --host etc. 1301 # FIXME: To remove some day. 1302 build=$build_alias 1303 host=$host_alias 1304 target=$target_alias 1305 1306 # FIXME: To remove some day. 1307 if test "x$host_alias" != x; then 1308 if test "x$build_alias" = x; then 1309 cross_compiling=maybe 1310 elif test "x$build_alias" != "x$host_alias"; then 1311 cross_compiling=yes 1312 fi 1313 fi 1314 1315 ac_tool_prefix= 1316 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1317 1318 test "$silent" = yes && exec 6>/dev/null 1319 1320 1321 ac_pwd=`pwd` && test -n "$ac_pwd" && 1322 ac_ls_di=`ls -di .` && 1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1324 as_fn_error $? "working directory cannot be determined" 1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1326 as_fn_error $? "pwd does not report name of working directory" 1327 1328 1329 # Find the source files, if location was not specified. 1330 if test -z "$srcdir"; then 1331 ac_srcdir_defaulted=yes 1332 # Try the directory containing this script, then the parent directory. 1333 ac_confdir=`$as_dirname -- "$as_myself" || 1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1335 X"$as_myself" : 'X\(//\)[^/]' \| \ 1336 X"$as_myself" : 'X\(//\)$' \| \ 1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1338 printf "%s\n" X"$as_myself" | 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)[^/].*/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\).*/{ 1352 s//\1/ 1353 q 1354 } 1355 s/.*/./; q'` 1356 srcdir=$ac_confdir 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 srcdir=.. 1359 fi 1360 else 1361 ac_srcdir_defaulted=no 1362 fi 1363 if test ! -r "$srcdir/$ac_unique_file"; then 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1366 fi 1367 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1368 ac_abs_confdir=`( 1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1370 pwd)` 1371 # When building in place, set srcdir=. 1372 if test "$ac_abs_confdir" = "$ac_pwd"; then 1373 srcdir=. 1374 fi 1375 # Remove unnecessary trailing slashes from srcdir. 1376 # Double slashes in file names in object file debugging info 1377 # mess up M-x gdb in Emacs. 1378 case $srcdir in 1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1380 esac 1381 for ac_var in $ac_precious_vars; do 1382 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_env_${ac_var}_value=\$${ac_var} 1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1386 done 1387 1388 # 1389 # Report the --help message. 1390 # 1391 if test "$ac_init_help" = "long"; then 1392 # Omit some internal or obsolete options to make the list less imposing. 1393 # This message is too long to be a string in the A/UX 3.1 sh. 1394 cat <<_ACEOF 1395 'configure' configures xf86-video-nv 2.1.23 to adapt to many kinds of systems. 1396 1397 Usage: $0 [OPTION]... [VAR=VALUE]... 1398 1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1400 VAR=VALUE. See below for descriptions of some of the useful variables. 1401 1402 Defaults for the options are specified in brackets. 1403 1404 Configuration: 1405 -h, --help display this help and exit 1406 --help=short display options specific to this package 1407 --help=recursive display the short help of all the included packages 1408 -V, --version display version information and exit 1409 -q, --quiet, --silent do not print 'checking ...' messages 1410 --cache-file=FILE cache test results in FILE [disabled] 1411 -C, --config-cache alias for '--cache-file=config.cache' 1412 -n, --no-create do not create output files 1413 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1414 1415 Installation directories: 1416 --prefix=PREFIX install architecture-independent files in PREFIX 1417 [$ac_default_prefix] 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1419 [PREFIX] 1420 1421 By default, 'make install' will install all the files in 1422 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1423 an installation prefix other than '$ac_default_prefix' using '--prefix', 1424 for instance '--prefix=\$HOME'. 1425 1426 For better control, use the options below. 1427 1428 Fine tuning of the installation directories: 1429 --bindir=DIR user executables [EPREFIX/bin] 1430 --sbindir=DIR system admin executables [EPREFIX/sbin] 1431 --libexecdir=DIR program executables [EPREFIX/libexec] 1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1435 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1436 --libdir=DIR object code libraries [EPREFIX/lib] 1437 --includedir=DIR C header files [PREFIX/include] 1438 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1441 --infodir=DIR info documentation [DATAROOTDIR/info] 1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1443 --mandir=DIR man documentation [DATAROOTDIR/man] 1444 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-nv] 1445 --htmldir=DIR html documentation [DOCDIR] 1446 --dvidir=DIR dvi documentation [DOCDIR] 1447 --pdfdir=DIR pdf documentation [DOCDIR] 1448 --psdir=DIR ps documentation [DOCDIR] 1449 _ACEOF 1450 1451 cat <<\_ACEOF 1452 1453 Program names: 1454 --program-prefix=C prepend C to installed program names 1455 --program-suffix=SUFFIX append SUFFIX to installed program names 1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1457 1458 System types: 1459 --build=BUILD configure for building on BUILD [guessed] 1460 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1461 _ACEOF 1462 fi 1463 1464 if test -n "$ac_init_help"; then 1465 case $ac_init_help in 1466 short | recursive ) echo "Configuration of xf86-video-nv 2.1.23:";; 1467 esac 1468 cat <<\_ACEOF 1469 1470 Optional Features: 1471 --disable-option-checking ignore unrecognized --enable/--with options 1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1474 --disable-selective-werror 1475 Turn off selective compiler errors. (default: 1476 enabled) 1477 --enable-strict-compilation 1478 Enable all warnings from compiler and make them 1479 errors (default: disabled) 1480 --enable-silent-rules less verbose build output (undo: "make V=1") 1481 --disable-silent-rules verbose build output (undo: "make V=0") 1482 --enable-dependency-tracking 1483 do not reject slow dependency extractors 1484 --disable-dependency-tracking 1485 speeds up one-time build 1486 --enable-static[=PKGS] build static libraries [default=no] 1487 --enable-shared[=PKGS] build shared libraries [default=yes] 1488 --enable-fast-install[=PKGS] 1489 optimize for fast installation [default=yes] 1490 --disable-libtool-lock avoid locking (might break parallel builds) 1491 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1492 [default=auto] 1493 1494 Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1498 both] 1499 --with-aix-soname=aix|svr4|both 1500 shared library versioning (aka "SONAME") variant to 1501 provide on AIX, [default=aix]. 1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1504 compiler's sysroot if not specified). 1505 --with-xorg-module-dir=DIR 1506 Default xorg module directory 1507 [[default=$libdir/xorg/modules]] 1508 1509 Some influential environment variables: 1510 CC C compiler command 1511 CFLAGS C compiler flags 1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1513 nonstandard directory <lib dir> 1514 LIBS libraries to pass to the linker, e.g. -l<library> 1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1516 you have headers in a nonstandard directory <include dir> 1517 PKG_CONFIG path to pkg-config utility 1518 PKG_CONFIG_PATH 1519 directories to add to pkg-config's search path 1520 PKG_CONFIG_LIBDIR 1521 path overriding pkg-config's built-in search path 1522 LT_SYS_LIBRARY_PATH 1523 User-defined run-time library search path. 1524 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1525 XORG_LIBS linker flags for XORG, overriding pkg-config 1526 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1527 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1528 PCIACCESS_CFLAGS 1529 C compiler flags for PCIACCESS, overriding pkg-config 1530 PCIACCESS_LIBS 1531 linker flags for PCIACCESS, overriding pkg-config 1532 1533 Use these variables to override the choices made by 'configure' or to help 1534 it to find libraries and programs with nonstandard names/locations. 1535 1536 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/issues>. 1537 _ACEOF 1538 ac_status=$? 1539 fi 1540 1541 if test "$ac_init_help" = "recursive"; then 1542 # If there are subdirs, report their specific --help. 1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1544 test -d "$ac_dir" || 1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1546 continue 1547 ac_builddir=. 1548 1549 case "$ac_dir" in 1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551 *) 1552 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1553 # A ".." for each directory in $ac_dir_suffix. 1554 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1555 case $ac_top_builddir_sub in 1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1558 esac ;; 1559 esac 1560 ac_abs_top_builddir=$ac_pwd 1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1562 # for backward compatibility: 1563 ac_top_builddir=$ac_top_build_prefix 1564 1565 case $srcdir in 1566 .) # We are building in place. 1567 ac_srcdir=. 1568 ac_top_srcdir=$ac_top_builddir_sub 1569 ac_abs_top_srcdir=$ac_pwd ;; 1570 [\\/]* | ?:[\\/]* ) # Absolute name. 1571 ac_srcdir=$srcdir$ac_dir_suffix; 1572 ac_top_srcdir=$srcdir 1573 ac_abs_top_srcdir=$srcdir ;; 1574 *) # Relative name. 1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1576 ac_top_srcdir=$ac_top_build_prefix$srcdir 1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1578 esac 1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1580 1581 cd "$ac_dir" || { ac_status=$?; continue; } 1582 # Check for configure.gnu first; this name is used for a wrapper for 1583 # Metaconfig's "Configure" on case-insensitive file systems. 1584 if test -f "$ac_srcdir/configure.gnu"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1587 elif test -f "$ac_srcdir/configure"; then 1588 echo && 1589 $SHELL "$ac_srcdir/configure" --help=recursive 1590 else 1591 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1592 fi || ac_status=$? 1593 cd "$ac_pwd" || { ac_status=$?; break; } 1594 done 1595 fi 1596 1597 test -n "$ac_init_help" && exit $ac_status 1598 if $ac_init_version; then 1599 cat <<\_ACEOF 1600 xf86-video-nv configure 2.1.23 1601 generated by GNU Autoconf 2.72 1602 1603 Copyright (C) 2023 Free Software Foundation, Inc. 1604 This configure script is free software; the Free Software Foundation 1605 gives unlimited permission to copy, distribute and modify it. 1606 _ACEOF 1607 exit 1608 fi 1609 1610 ## ------------------------ ## 1611 ## Autoconf initialization. ## 1612 ## ------------------------ ## 1613 1614 # ac_fn_c_try_compile LINENO 1615 # -------------------------- 1616 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1617 ac_fn_c_try_compile () 1618 { 1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1620 rm -f conftest.$ac_objext conftest.beam 1621 if { { ac_try="$ac_compile" 1622 case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625 esac 1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627 printf "%s\n" "$ac_try_echo"; } >&5 1628 (eval "$ac_compile") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } && { 1637 test -z "$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 } && test -s conftest.$ac_objext 1640 then : 1641 ac_retval=0 1642 else case e in #( 1643 e) printf "%s\n" "$as_me: failed program was:" >&5 1644 sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 ;; 1647 esac 1648 fi 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652 } # ac_fn_c_try_compile 1653 1654 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1655 # ------------------------------------------------------------------ 1656 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1657 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1658 ac_fn_check_decl () 1659 { 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 as_decl_name=`echo $2|sed 's/ *(.*//'` 1662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1663 printf %s "checking whether $as_decl_name is declared... " >&6; } 1664 if eval test \${$3+y} 1665 then : 1666 printf %s "(cached) " >&6 1667 else case e in #( 1668 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1669 eval ac_save_FLAGS=\$$6 1670 as_fn_append $6 " $5" 1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672 /* end confdefs.h. */ 1673 $4 1674 int 1675 main (void) 1676 { 1677 #ifndef $as_decl_name 1678 #ifdef __cplusplus 1679 (void) $as_decl_use; 1680 #else 1681 (void) $as_decl_name; 1682 #endif 1683 #endif 1684 1685 ; 1686 return 0; 1687 } 1688 _ACEOF 1689 if ac_fn_c_try_compile "$LINENO" 1690 then : 1691 eval "$3=yes" 1692 else case e in #( 1693 e) eval "$3=no" ;; 1694 esac 1695 fi 1696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1697 eval $6=\$ac_save_FLAGS 1698 ;; 1699 esac 1700 fi 1701 eval ac_res=\$$3 1702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1703 printf "%s\n" "$ac_res" >&6; } 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 1706 } # ac_fn_check_decl 1707 1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1709 # ------------------------------------------------------- 1710 # Tests whether HEADER exists and can be compiled using the include files in 1711 # INCLUDES, setting the cache variable VAR accordingly. 1712 ac_fn_c_check_header_compile () 1713 { 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716 printf %s "checking for $2... " >&6; } 1717 if eval test \${$3+y} 1718 then : 1719 printf %s "(cached) " >&6 1720 else case e in #( 1721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1722 /* end confdefs.h. */ 1723 $4 1724 #include <$2> 1725 _ACEOF 1726 if ac_fn_c_try_compile "$LINENO" 1727 then : 1728 eval "$3=yes" 1729 else case e in #( 1730 e) eval "$3=no" ;; 1731 esac 1732 fi 1733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1734 esac 1735 fi 1736 eval ac_res=\$$3 1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738 printf "%s\n" "$ac_res" >&6; } 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741 } # ac_fn_c_check_header_compile 1742 1743 # ac_fn_c_try_link LINENO 1744 # ----------------------- 1745 # Try to link conftest.$ac_ext, and return whether this succeeded. 1746 ac_fn_c_try_link () 1747 { 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1750 if { { ac_try="$ac_link" 1751 case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754 esac 1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756 printf "%s\n" "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>conftest.err 1758 ac_status=$? 1759 if test -s conftest.err; then 1760 grep -v '^ *+' conftest.err >conftest.er1 1761 cat conftest.er1 >&5 1762 mv -f conftest.er1 conftest.err 1763 fi 1764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1765 test $ac_status = 0; } && { 1766 test -z "$ac_c_werror_flag" || 1767 test ! -s conftest.err 1768 } && test -s conftest$ac_exeext && { 1769 test "$cross_compiling" = yes || 1770 test -x conftest$ac_exeext 1771 } 1772 then : 1773 ac_retval=0 1774 else case e in #( 1775 e) printf "%s\n" "$as_me: failed program was:" >&5 1776 sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=1 ;; 1779 esac 1780 fi 1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1783 # interfere with the next link command; also delete a directory that is 1784 # left behind by Apple's compiler. We do this before executing the actions. 1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1787 as_fn_set_status $ac_retval 1788 1789 } # ac_fn_c_try_link 1790 1791 # ac_fn_c_check_func LINENO FUNC VAR 1792 # ---------------------------------- 1793 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1794 ac_fn_c_check_func () 1795 { 1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1798 printf %s "checking for $2... " >&6; } 1799 if eval test \${$3+y} 1800 then : 1801 printf %s "(cached) " >&6 1802 else case e in #( 1803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1804 /* end confdefs.h. */ 1805 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1806 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1807 #define $2 innocuous_$2 1808 1809 /* System header to define __stub macros and hopefully few prototypes, 1810 which can conflict with char $2 (void); below. */ 1811 1812 #include <limits.h> 1813 #undef $2 1814 1815 /* Override any GCC internal prototype to avoid an error. 1816 Use char because int might match the return type of a GCC 1817 builtin and then its argument prototype would still apply. */ 1818 #ifdef __cplusplus 1819 extern "C" 1820 #endif 1821 char $2 (void); 1822 /* The GNU C library defines this for functions which it implements 1823 to always fail with ENOSYS. Some functions are actually named 1824 something starting with __ and the normal name is an alias. */ 1825 #if defined __stub_$2 || defined __stub___$2 1826 choke me 1827 #endif 1828 1829 int 1830 main (void) 1831 { 1832 return $2 (); 1833 ; 1834 return 0; 1835 } 1836 _ACEOF 1837 if ac_fn_c_try_link "$LINENO" 1838 then : 1839 eval "$3=yes" 1840 else case e in #( 1841 e) eval "$3=no" ;; 1842 esac 1843 fi 1844 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1845 conftest$ac_exeext conftest.$ac_ext ;; 1846 esac 1847 fi 1848 eval ac_res=\$$3 1849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1850 printf "%s\n" "$ac_res" >&6; } 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 1853 } # ac_fn_c_check_func 1854 ac_configure_args_raw= 1855 for ac_arg 1856 do 1857 case $ac_arg in 1858 *\'*) 1859 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1860 esac 1861 as_fn_append ac_configure_args_raw " '$ac_arg'" 1862 done 1863 1864 case $ac_configure_args_raw in 1865 *$as_nl*) 1866 ac_safe_unquote= ;; 1867 *) 1868 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1869 ac_unsafe_a="$ac_unsafe_z#~" 1870 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1871 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1872 esac 1873 1874 cat >config.log <<_ACEOF 1875 This file contains any messages produced by compilers while 1876 running configure, to aid debugging if configure makes a mistake. 1877 1878 It was created by xf86-video-nv $as_me 2.1.23, which was 1879 generated by GNU Autoconf 2.72. Invocation command line was 1880 1881 $ $0$ac_configure_args_raw 1882 1883 _ACEOF 1884 exec 5>>config.log 1885 { 1886 cat <<_ASUNAME 1887 ## --------- ## 1888 ## Platform. ## 1889 ## --------- ## 1890 1891 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1892 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1893 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1894 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1895 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1896 1897 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1898 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1899 1900 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1901 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1902 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1903 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1904 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1905 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1906 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1907 1908 _ASUNAME 1909 1910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1911 for as_dir in $PATH 1912 do 1913 IFS=$as_save_IFS 1914 case $as_dir in #((( 1915 '') as_dir=./ ;; 1916 */) ;; 1917 *) as_dir=$as_dir/ ;; 1918 esac 1919 printf "%s\n" "PATH: $as_dir" 1920 done 1921 IFS=$as_save_IFS 1922 1923 } >&5 1924 1925 cat >&5 <<_ACEOF 1926 1927 1928 ## ----------- ## 1929 ## Core tests. ## 1930 ## ----------- ## 1931 1932 _ACEOF 1933 1934 1935 # Keep a trace of the command line. 1936 # Strip out --no-create and --no-recursion so they do not pile up. 1937 # Strip out --silent because we don't want to record it for future runs. 1938 # Also quote any args containing shell meta-characters. 1939 # Make two passes to allow for proper duplicate-argument suppression. 1940 ac_configure_args= 1941 ac_configure_args0= 1942 ac_configure_args1= 1943 ac_must_keep_next=false 1944 for ac_pass in 1 2 1945 do 1946 for ac_arg 1947 do 1948 case $ac_arg in 1949 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1951 | -silent | --silent | --silen | --sile | --sil) 1952 continue ;; 1953 *\'*) 1954 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1955 esac 1956 case $ac_pass in 1957 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1958 2) 1959 as_fn_append ac_configure_args1 " '$ac_arg'" 1960 if test $ac_must_keep_next = true; then 1961 ac_must_keep_next=false # Got value, back to normal. 1962 else 1963 case $ac_arg in 1964 *=* | --config-cache | -C | -disable-* | --disable-* \ 1965 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1966 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1967 | -with-* | --with-* | -without-* | --without-* | --x) 1968 case "$ac_configure_args0 " in 1969 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1970 esac 1971 ;; 1972 -* ) ac_must_keep_next=true ;; 1973 esac 1974 fi 1975 as_fn_append ac_configure_args " '$ac_arg'" 1976 ;; 1977 esac 1978 done 1979 done 1980 { ac_configure_args0=; unset ac_configure_args0;} 1981 { ac_configure_args1=; unset ac_configure_args1;} 1982 1983 # When interrupted or exit'd, cleanup temporary files, and complete 1984 # config.log. We remove comments because anyway the quotes in there 1985 # would cause problems or look ugly. 1986 # WARNING: Use '\'' to represent an apostrophe within the trap. 1987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1988 trap 'exit_status=$? 1989 # Sanitize IFS. 1990 IFS=" "" $as_nl" 1991 # Save into config.log some information that might help in debugging. 1992 { 1993 echo 1994 1995 printf "%s\n" "## ---------------- ## 1996 ## Cache variables. ## 1997 ## ---------------- ##" 1998 echo 1999 # The following way of writing the cache mishandles newlines in values, 2000 ( 2001 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in #( 2004 *${as_nl}*) 2005 case $ac_var in #( 2006 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2007 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2008 esac 2009 case $ac_var in #( 2010 _ | IFS | as_nl) ;; #( 2011 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2012 *) { eval $ac_var=; unset $ac_var;} ;; 2013 esac ;; 2014 esac 2015 done 2016 (set) 2>&1 | 2017 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2018 *${as_nl}ac_space=\ *) 2019 sed -n \ 2020 "s/'\''/'\''\\\\'\'''\''/g; 2021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2022 ;; #( 2023 *) 2024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2025 ;; 2026 esac | 2027 sort 2028 ) 2029 echo 2030 2031 printf "%s\n" "## ----------------- ## 2032 ## Output variables. ## 2033 ## ----------------- ##" 2034 echo 2035 for ac_var in $ac_subst_vars 2036 do 2037 eval ac_val=\$$ac_var 2038 case $ac_val in 2039 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2040 esac 2041 printf "%s\n" "$ac_var='\''$ac_val'\''" 2042 done | sort 2043 echo 2044 2045 if test -n "$ac_subst_files"; then 2046 printf "%s\n" "## ------------------- ## 2047 ## File substitutions. ## 2048 ## ------------------- ##" 2049 echo 2050 for ac_var in $ac_subst_files 2051 do 2052 eval ac_val=\$$ac_var 2053 case $ac_val in 2054 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2055 esac 2056 printf "%s\n" "$ac_var='\''$ac_val'\''" 2057 done | sort 2058 echo 2059 fi 2060 2061 if test -s confdefs.h; then 2062 printf "%s\n" "## ----------- ## 2063 ## confdefs.h. ## 2064 ## ----------- ##" 2065 echo 2066 cat confdefs.h 2067 echo 2068 fi 2069 test "$ac_signal" != 0 && 2070 printf "%s\n" "$as_me: caught signal $ac_signal" 2071 printf "%s\n" "$as_me: exit $exit_status" 2072 } >&5 2073 rm -f core *.core core.conftest.* && 2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2075 exit $exit_status 2076 ' 0 2077 for ac_signal in 1 2 13 15; do 2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2079 done 2080 ac_signal=0 2081 2082 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2083 rm -f -r conftest* confdefs.h 2084 2085 printf "%s\n" "/* confdefs.h */" > confdefs.h 2086 2087 # Predefined preprocessor variables. 2088 2089 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2090 2091 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2092 2093 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2094 2095 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2096 2097 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2098 2099 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2100 2101 2102 # Let the site file select an alternate cache file if it wants to. 2103 # Prefer an explicitly selected file to automatically selected ones. 2104 if test -n "$CONFIG_SITE"; then 2105 ac_site_files="$CONFIG_SITE" 2106 elif test "x$prefix" != xNONE; then 2107 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2108 else 2109 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2110 fi 2111 2112 for ac_site_file in $ac_site_files 2113 do 2114 case $ac_site_file in #( 2115 */*) : 2116 ;; #( 2117 *) : 2118 ac_site_file=./$ac_site_file ;; 2119 esac 2120 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2122 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2123 sed 's/^/| /' "$ac_site_file" >&5 2124 . "$ac_site_file" \ 2125 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2126 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2127 as_fn_error $? "failed to load site script $ac_site_file 2128 See 'config.log' for more details" "$LINENO" 5; } 2129 fi 2130 done 2131 2132 if test -r "$cache_file"; then 2133 # Some versions of bash will fail to source /dev/null (special files 2134 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2135 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2137 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2138 case $cache_file in 2139 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2140 *) . "./$cache_file";; 2141 esac 2142 fi 2143 else 2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2145 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2146 >$cache_file 2147 fi 2148 2149 # Test code for whether the C compiler supports C89 (global declarations) 2150 ac_c_conftest_c89_globals=' 2151 /* Does the compiler advertise C89 conformance? 2152 Do not test the value of __STDC__, because some compilers set it to 0 2153 while being otherwise adequately conformant. */ 2154 #if !defined __STDC__ 2155 # error "Compiler does not advertise C89 conformance" 2156 #endif 2157 2158 #include <stddef.h> 2159 #include <stdarg.h> 2160 struct stat; 2161 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2162 struct buf { int x; }; 2163 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2164 static char *e (char **p, int i) 2165 { 2166 return p[i]; 2167 } 2168 static char *f (char * (*g) (char **, int), char **p, ...) 2169 { 2170 char *s; 2171 va_list v; 2172 va_start (v,p); 2173 s = g (p, va_arg (v,int)); 2174 va_end (v); 2175 return s; 2176 } 2177 2178 /* C89 style stringification. */ 2179 #define noexpand_stringify(a) #a 2180 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2181 2182 /* C89 style token pasting. Exercises some of the corner cases that 2183 e.g. old MSVC gets wrong, but not very hard. */ 2184 #define noexpand_concat(a,b) a##b 2185 #define expand_concat(a,b) noexpand_concat(a,b) 2186 extern int vA; 2187 extern int vbee; 2188 #define aye A 2189 #define bee B 2190 int *pvA = &expand_concat(v,aye); 2191 int *pvbee = &noexpand_concat(v,bee); 2192 2193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2194 function prototypes and stuff, but not \xHH hex character constants. 2195 These do not provoke an error unfortunately, instead are silently treated 2196 as an "x". The following induces an error, until -std is added to get 2197 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2198 array size at least. It is necessary to write \x00 == 0 to get something 2199 that is true only with -std. */ 2200 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2201 2202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2203 inside strings and character constants. */ 2204 #define FOO(x) '\''x'\'' 2205 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2206 2207 int test (int i, double x); 2208 struct s1 {int (*f) (int a);}; 2209 struct s2 {int (*f) (double a);}; 2210 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2211 int, int);' 2212 2213 # Test code for whether the C compiler supports C89 (body of main). 2214 ac_c_conftest_c89_main=' 2215 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2216 ' 2217 2218 # Test code for whether the C compiler supports C99 (global declarations) 2219 ac_c_conftest_c99_globals=' 2220 /* Does the compiler advertise C99 conformance? */ 2221 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2222 # error "Compiler does not advertise C99 conformance" 2223 #endif 2224 2225 // See if C++-style comments work. 2226 2227 #include <stdbool.h> 2228 extern int puts (const char *); 2229 extern int printf (const char *, ...); 2230 extern int dprintf (int, const char *, ...); 2231 extern void *malloc (size_t); 2232 extern void free (void *); 2233 2234 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2235 // dprintf is used instead of fprintf to avoid needing to declare 2236 // FILE and stderr. 2237 #define debug(...) dprintf (2, __VA_ARGS__) 2238 #define showlist(...) puts (#__VA_ARGS__) 2239 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2240 static void 2241 test_varargs_macros (void) 2242 { 2243 int x = 1234; 2244 int y = 5678; 2245 debug ("Flag"); 2246 debug ("X = %d\n", x); 2247 showlist (The first, second, and third items.); 2248 report (x>y, "x is %d but y is %d", x, y); 2249 } 2250 2251 // Check long long types. 2252 #define BIG64 18446744073709551615ull 2253 #define BIG32 4294967295ul 2254 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2255 #if !BIG_OK 2256 #error "your preprocessor is broken" 2257 #endif 2258 #if BIG_OK 2259 #else 2260 #error "your preprocessor is broken" 2261 #endif 2262 static long long int bignum = -9223372036854775807LL; 2263 static unsigned long long int ubignum = BIG64; 2264 2265 struct incomplete_array 2266 { 2267 int datasize; 2268 double data[]; 2269 }; 2270 2271 struct named_init { 2272 int number; 2273 const wchar_t *name; 2274 double average; 2275 }; 2276 2277 typedef const char *ccp; 2278 2279 static inline int 2280 test_restrict (ccp restrict text) 2281 { 2282 // Iterate through items via the restricted pointer. 2283 // Also check for declarations in for loops. 2284 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2285 continue; 2286 return 0; 2287 } 2288 2289 // Check varargs and va_copy. 2290 static bool 2291 test_varargs (const char *format, ...) 2292 { 2293 va_list args; 2294 va_start (args, format); 2295 va_list args_copy; 2296 va_copy (args_copy, args); 2297 2298 const char *str = ""; 2299 int number = 0; 2300 float fnumber = 0; 2301 2302 while (*format) 2303 { 2304 switch (*format++) 2305 { 2306 case '\''s'\'': // string 2307 str = va_arg (args_copy, const char *); 2308 break; 2309 case '\''d'\'': // int 2310 number = va_arg (args_copy, int); 2311 break; 2312 case '\''f'\'': // float 2313 fnumber = va_arg (args_copy, double); 2314 break; 2315 default: 2316 break; 2317 } 2318 } 2319 va_end (args_copy); 2320 va_end (args); 2321 2322 return *str && number && fnumber; 2323 } 2324 ' 2325 2326 # Test code for whether the C compiler supports C99 (body of main). 2327 ac_c_conftest_c99_main=' 2328 // Check bool. 2329 _Bool success = false; 2330 success |= (argc != 0); 2331 2332 // Check restrict. 2333 if (test_restrict ("String literal") == 0) 2334 success = true; 2335 char *restrict newvar = "Another string"; 2336 2337 // Check varargs. 2338 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2339 test_varargs_macros (); 2340 2341 // Check flexible array members. 2342 struct incomplete_array *ia = 2343 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2344 ia->datasize = 10; 2345 for (int i = 0; i < ia->datasize; ++i) 2346 ia->data[i] = i * 1.234; 2347 // Work around memory leak warnings. 2348 free (ia); 2349 2350 // Check named initializers. 2351 struct named_init ni = { 2352 .number = 34, 2353 .name = L"Test wide string", 2354 .average = 543.34343, 2355 }; 2356 2357 ni.number = 58; 2358 2359 int dynamic_array[ni.number]; 2360 dynamic_array[0] = argv[0][0]; 2361 dynamic_array[ni.number - 1] = 543; 2362 2363 // work around unused variable warnings 2364 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2365 || dynamic_array[ni.number - 1] != 543); 2366 ' 2367 2368 # Test code for whether the C compiler supports C11 (global declarations) 2369 ac_c_conftest_c11_globals=' 2370 /* Does the compiler advertise C11 conformance? */ 2371 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2372 # error "Compiler does not advertise C11 conformance" 2373 #endif 2374 2375 // Check _Alignas. 2376 char _Alignas (double) aligned_as_double; 2377 char _Alignas (0) no_special_alignment; 2378 extern char aligned_as_int; 2379 char _Alignas (0) _Alignas (int) aligned_as_int; 2380 2381 // Check _Alignof. 2382 enum 2383 { 2384 int_alignment = _Alignof (int), 2385 int_array_alignment = _Alignof (int[100]), 2386 char_alignment = _Alignof (char) 2387 }; 2388 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2389 2390 // Check _Noreturn. 2391 int _Noreturn does_not_return (void) { for (;;) continue; } 2392 2393 // Check _Static_assert. 2394 struct test_static_assert 2395 { 2396 int x; 2397 _Static_assert (sizeof (int) <= sizeof (long int), 2398 "_Static_assert does not work in struct"); 2399 long int y; 2400 }; 2401 2402 // Check UTF-8 literals. 2403 #define u8 syntax error! 2404 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2405 2406 // Check duplicate typedefs. 2407 typedef long *long_ptr; 2408 typedef long int *long_ptr; 2409 typedef long_ptr long_ptr; 2410 2411 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2412 struct anonymous 2413 { 2414 union { 2415 struct { int i; int j; }; 2416 struct { int k; long int l; } w; 2417 }; 2418 int m; 2419 } v1; 2420 ' 2421 2422 # Test code for whether the C compiler supports C11 (body of main). 2423 ac_c_conftest_c11_main=' 2424 _Static_assert ((offsetof (struct anonymous, i) 2425 == offsetof (struct anonymous, w.k)), 2426 "Anonymous union alignment botch"); 2427 v1.i = 2; 2428 v1.w.k = 5; 2429 ok |= v1.i != 5; 2430 ' 2431 2432 # Test code for whether the C compiler supports C11 (complete). 2433 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2434 ${ac_c_conftest_c99_globals} 2435 ${ac_c_conftest_c11_globals} 2436 2437 int 2438 main (int argc, char **argv) 2439 { 2440 int ok = 0; 2441 ${ac_c_conftest_c89_main} 2442 ${ac_c_conftest_c99_main} 2443 ${ac_c_conftest_c11_main} 2444 return ok; 2445 } 2446 " 2447 2448 # Test code for whether the C compiler supports C99 (complete). 2449 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2450 ${ac_c_conftest_c99_globals} 2451 2452 int 2453 main (int argc, char **argv) 2454 { 2455 int ok = 0; 2456 ${ac_c_conftest_c89_main} 2457 ${ac_c_conftest_c99_main} 2458 return ok; 2459 } 2460 " 2461 2462 # Test code for whether the C compiler supports C89 (complete). 2463 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2464 2465 int 2466 main (int argc, char **argv) 2467 { 2468 int ok = 0; 2469 ${ac_c_conftest_c89_main} 2470 return ok; 2471 } 2472 " 2473 2474 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2475 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2476 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2477 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2478 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2479 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2480 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2481 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2482 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2483 2484 # Auxiliary files required by this configure script. 2485 ac_aux_files="ltmain.sh missing config.guess config.sub compile install-sh" 2486 2487 # Locations in which to look for auxiliary files. 2488 ac_aux_dir_candidates="${srcdir}/." 2489 2490 # Search for a directory containing all of the required auxiliary files, 2491 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2492 # If we don't find one directory that contains all the files we need, 2493 # we report the set of missing files from the *first* directory in 2494 # $ac_aux_dir_candidates and give up. 2495 ac_missing_aux_files="" 2496 ac_first_candidate=: 2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2499 as_found=false 2500 for as_dir in $ac_aux_dir_candidates 2501 do 2502 IFS=$as_save_IFS 2503 case $as_dir in #((( 2504 '') as_dir=./ ;; 2505 */) ;; 2506 *) as_dir=$as_dir/ ;; 2507 esac 2508 as_found=: 2509 2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2511 ac_aux_dir_found=yes 2512 ac_install_sh= 2513 for ac_aux in $ac_aux_files 2514 do 2515 # As a special case, if "install-sh" is required, that requirement 2516 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2517 # and $ac_install_sh is set appropriately for whichever one is found. 2518 if test x"$ac_aux" = x"install-sh" 2519 then 2520 if test -f "${as_dir}install-sh"; then 2521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2522 ac_install_sh="${as_dir}install-sh -c" 2523 elif test -f "${as_dir}install.sh"; then 2524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2525 ac_install_sh="${as_dir}install.sh -c" 2526 elif test -f "${as_dir}shtool"; then 2527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2528 ac_install_sh="${as_dir}shtool install -c" 2529 else 2530 ac_aux_dir_found=no 2531 if $ac_first_candidate; then 2532 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2533 else 2534 break 2535 fi 2536 fi 2537 else 2538 if test -f "${as_dir}${ac_aux}"; then 2539 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2540 else 2541 ac_aux_dir_found=no 2542 if $ac_first_candidate; then 2543 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2544 else 2545 break 2546 fi 2547 fi 2548 fi 2549 done 2550 if test "$ac_aux_dir_found" = yes; then 2551 ac_aux_dir="$as_dir" 2552 break 2553 fi 2554 ac_first_candidate=false 2555 2556 as_found=false 2557 done 2558 IFS=$as_save_IFS 2559 if $as_found 2560 then : 2561 2562 else case e in #( 2563 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2564 esac 2565 fi 2566 2567 2568 # These three variables are undocumented and unsupported, 2569 # and are intended to be withdrawn in a future Autoconf release. 2570 # They can cause serious problems if a builder's source tree is in a directory 2571 # whose full name contains unusual characters. 2572 if test -f "${ac_aux_dir}config.guess"; then 2573 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2574 fi 2575 if test -f "${ac_aux_dir}config.sub"; then 2576 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2577 fi 2578 if test -f "$ac_aux_dir/configure"; then 2579 ac_configure="$SHELL ${ac_aux_dir}configure" 2580 fi 2581 2582 # Check that the precious variables saved in the cache have kept the same 2583 # value. 2584 ac_cache_corrupted=false 2585 for ac_var in $ac_precious_vars; do 2586 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2587 eval ac_new_set=\$ac_env_${ac_var}_set 2588 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2589 eval ac_new_val=\$ac_env_${ac_var}_value 2590 case $ac_old_set,$ac_new_set in 2591 set,) 2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2593 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2594 ac_cache_corrupted=: ;; 2595 ,set) 2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2597 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2598 ac_cache_corrupted=: ;; 2599 ,);; 2600 *) 2601 if test "x$ac_old_val" != "x$ac_new_val"; then 2602 # differences in whitespace do not lead to failure. 2603 ac_old_val_w=`echo x $ac_old_val` 2604 ac_new_val_w=`echo x $ac_new_val` 2605 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2607 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2608 ac_cache_corrupted=: 2609 else 2610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2611 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2612 eval $ac_var=\$ac_old_val 2613 fi 2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2615 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2617 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2618 fi;; 2619 esac 2620 # Pass precious variables to config.status. 2621 if test "$ac_new_set" = set; then 2622 case $ac_new_val in 2623 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2624 *) ac_arg=$ac_var=$ac_new_val ;; 2625 esac 2626 case " $ac_configure_args " in 2627 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2628 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2629 esac 2630 fi 2631 done 2632 if $ac_cache_corrupted; then 2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2634 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2636 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2637 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2638 and start over" "$LINENO" 5 2639 fi 2640 ## -------------------- ## 2641 ## Main body of script. ## 2642 ## -------------------- ## 2643 2644 ac_ext=c 2645 ac_cpp='$CPP $CPPFLAGS' 2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2649 2650 2651 2652 ac_config_headers="$ac_config_headers config.h" 2653 2654 2655 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 # Find a good install program. We prefer a C program (faster), 2670 # so one script is as good as another. But avoid the broken or 2671 # incompatible versions: 2672 # SysV /etc/install, /usr/sbin/install 2673 # SunOS /usr/etc/install 2674 # IRIX /sbin/install 2675 # AIX /bin/install 2676 # AmigaOS /C/install, which installs bootblocks on floppy discs 2677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2680 # OS/2's system install, which has a completely different semantic 2681 # ./install, which can be erroneously created by make from ./install.sh. 2682 # Reject install programs that cannot install multiple files. 2683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2684 printf %s "checking for a BSD-compatible install... " >&6; } 2685 if test -z "$INSTALL"; then 2686 if test ${ac_cv_path_install+y} 2687 then : 2688 printf %s "(cached) " >&6 2689 else case e in #( 2690 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691 for as_dir in $PATH 2692 do 2693 IFS=$as_save_IFS 2694 case $as_dir in #((( 2695 '') as_dir=./ ;; 2696 */) ;; 2697 *) as_dir=$as_dir/ ;; 2698 esac 2699 # Account for fact that we put trailing slashes in our PATH walk. 2700 case $as_dir in #(( 2701 ./ | /[cC]/* | \ 2702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2704 /usr/ucb/* ) ;; 2705 *) 2706 # OSF1 and SCO ODT 3.0 have their own names for install. 2707 # Don't use installbsd from OSF since it installs stuff as root 2708 # by default. 2709 for ac_prog in ginstall scoinst install; do 2710 for ac_exec_ext in '' $ac_executable_extensions; do 2711 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2712 if test $ac_prog = install && 2713 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2714 # AIX install. It has an incompatible calling convention. 2715 : 2716 elif test $ac_prog = install && 2717 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2718 # program-specific install script used by HP pwplus--don't use. 2719 : 2720 else 2721 rm -rf conftest.one conftest.two conftest.dir 2722 echo one > conftest.one 2723 echo two > conftest.two 2724 mkdir conftest.dir 2725 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2726 test -s conftest.one && test -s conftest.two && 2727 test -s conftest.dir/conftest.one && 2728 test -s conftest.dir/conftest.two 2729 then 2730 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2731 break 3 2732 fi 2733 fi 2734 fi 2735 done 2736 done 2737 ;; 2738 esac 2739 2740 done 2741 IFS=$as_save_IFS 2742 2743 rm -rf conftest.one conftest.two conftest.dir 2744 ;; 2745 esac 2746 fi 2747 if test ${ac_cv_path_install+y}; then 2748 INSTALL=$ac_cv_path_install 2749 else 2750 # As a last resort, use the slow shell script. Don't cache a 2751 # value for INSTALL within a source directory, because that will 2752 # break other packages using the cache if that directory is 2753 # removed, or if the value is a relative name. 2754 INSTALL=$ac_install_sh 2755 fi 2756 fi 2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2758 printf "%s\n" "$INSTALL" >&6; } 2759 2760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2761 # It thinks the first close brace ends the variable substitution. 2762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2763 2764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2765 2766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 # Expand $ac_aux_dir to an absolute path. 2779 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2780 2781 ac_ext=c 2782 ac_cpp='$CPP $CPPFLAGS' 2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2786 if test -n "$ac_tool_prefix"; then 2787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2788 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2790 printf %s "checking for $ac_word... " >&6; } 2791 if test ${ac_cv_prog_CC+y} 2792 then : 2793 printf %s "(cached) " >&6 2794 else case e in #( 2795 e) if test -n "$CC"; then 2796 ac_cv_prog_CC="$CC" # Let the user override the test. 2797 else 2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799 for as_dir in $PATH 2800 do 2801 IFS=$as_save_IFS 2802 case $as_dir in #((( 2803 '') as_dir=./ ;; 2804 */) ;; 2805 *) as_dir=$as_dir/ ;; 2806 esac 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2809 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2811 break 2 2812 fi 2813 done 2814 done 2815 IFS=$as_save_IFS 2816 2817 fi ;; 2818 esac 2819 fi 2820 CC=$ac_cv_prog_CC 2821 if test -n "$CC"; then 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2823 printf "%s\n" "$CC" >&6; } 2824 else 2825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2826 printf "%s\n" "no" >&6; } 2827 fi 2828 2829 2830 fi 2831 if test -z "$ac_cv_prog_CC"; then 2832 ac_ct_CC=$CC 2833 # Extract the first word of "gcc", so it can be a program name with args. 2834 set dummy gcc; ac_word=$2 2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2836 printf %s "checking for $ac_word... " >&6; } 2837 if test ${ac_cv_prog_ac_ct_CC+y} 2838 then : 2839 printf %s "(cached) " >&6 2840 else case e in #( 2841 e) if test -n "$ac_ct_CC"; then 2842 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2843 else 2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2845 for as_dir in $PATH 2846 do 2847 IFS=$as_save_IFS 2848 case $as_dir in #((( 2849 '') as_dir=./ ;; 2850 */) ;; 2851 *) as_dir=$as_dir/ ;; 2852 esac 2853 for ac_exec_ext in '' $ac_executable_extensions; do 2854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2855 ac_cv_prog_ac_ct_CC="gcc" 2856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2857 break 2 2858 fi 2859 done 2860 done 2861 IFS=$as_save_IFS 2862 2863 fi ;; 2864 esac 2865 fi 2866 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2867 if test -n "$ac_ct_CC"; then 2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2869 printf "%s\n" "$ac_ct_CC" >&6; } 2870 else 2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2872 printf "%s\n" "no" >&6; } 2873 fi 2874 2875 if test "x$ac_ct_CC" = x; then 2876 CC="" 2877 else 2878 case $cross_compiling:$ac_tool_warned in 2879 yes:) 2880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2881 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2882 ac_tool_warned=yes ;; 2883 esac 2884 CC=$ac_ct_CC 2885 fi 2886 else 2887 CC="$ac_cv_prog_CC" 2888 fi 2889 2890 if test -z "$CC"; then 2891 if test -n "$ac_tool_prefix"; then 2892 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2893 set dummy ${ac_tool_prefix}cc; ac_word=$2 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895 printf %s "checking for $ac_word... " >&6; } 2896 if test ${ac_cv_prog_CC+y} 2897 then : 2898 printf %s "(cached) " >&6 2899 else case e in #( 2900 e) if test -n "$CC"; then 2901 ac_cv_prog_CC="$CC" # Let the user override the test. 2902 else 2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2904 for as_dir in $PATH 2905 do 2906 IFS=$as_save_IFS 2907 case $as_dir in #((( 2908 '') as_dir=./ ;; 2909 */) ;; 2910 *) as_dir=$as_dir/ ;; 2911 esac 2912 for ac_exec_ext in '' $ac_executable_extensions; do 2913 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2914 ac_cv_prog_CC="${ac_tool_prefix}cc" 2915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2916 break 2 2917 fi 2918 done 2919 done 2920 IFS=$as_save_IFS 2921 2922 fi ;; 2923 esac 2924 fi 2925 CC=$ac_cv_prog_CC 2926 if test -n "$CC"; then 2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2928 printf "%s\n" "$CC" >&6; } 2929 else 2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931 printf "%s\n" "no" >&6; } 2932 fi 2933 2934 2935 fi 2936 fi 2937 if test -z "$CC"; then 2938 # Extract the first word of "cc", so it can be a program name with args. 2939 set dummy cc; ac_word=$2 2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2941 printf %s "checking for $ac_word... " >&6; } 2942 if test ${ac_cv_prog_CC+y} 2943 then : 2944 printf %s "(cached) " >&6 2945 else case e in #( 2946 e) if test -n "$CC"; then 2947 ac_cv_prog_CC="$CC" # Let the user override the test. 2948 else 2949 ac_prog_rejected=no 2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2951 for as_dir in $PATH 2952 do 2953 IFS=$as_save_IFS 2954 case $as_dir in #((( 2955 '') as_dir=./ ;; 2956 */) ;; 2957 *) as_dir=$as_dir/ ;; 2958 esac 2959 for ac_exec_ext in '' $ac_executable_extensions; do 2960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2961 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2962 ac_prog_rejected=yes 2963 continue 2964 fi 2965 ac_cv_prog_CC="cc" 2966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969 done 2970 done 2971 IFS=$as_save_IFS 2972 2973 if test $ac_prog_rejected = yes; then 2974 # We found a bogon in the path, so make sure we never use it. 2975 set dummy $ac_cv_prog_CC 2976 shift 2977 if test $# != 0; then 2978 # We chose a different compiler from the bogus one. 2979 # However, it has the same basename, so the bogon will be chosen 2980 # first if we set CC to just the basename; use the full file name. 2981 shift 2982 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2983 fi 2984 fi 2985 fi ;; 2986 esac 2987 fi 2988 CC=$ac_cv_prog_CC 2989 if test -n "$CC"; then 2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2991 printf "%s\n" "$CC" >&6; } 2992 else 2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2994 printf "%s\n" "no" >&6; } 2995 fi 2996 2997 2998 fi 2999 if test -z "$CC"; then 3000 if test -n "$ac_tool_prefix"; then 3001 for ac_prog in cl.exe 3002 do 3003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3004 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3006 printf %s "checking for $ac_word... " >&6; } 3007 if test ${ac_cv_prog_CC+y} 3008 then : 3009 printf %s "(cached) " >&6 3010 else case e in #( 3011 e) if test -n "$CC"; then 3012 ac_cv_prog_CC="$CC" # Let the user override the test. 3013 else 3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3015 for as_dir in $PATH 3016 do 3017 IFS=$as_save_IFS 3018 case $as_dir in #((( 3019 '') as_dir=./ ;; 3020 */) ;; 3021 *) as_dir=$as_dir/ ;; 3022 esac 3023 for ac_exec_ext in '' $ac_executable_extensions; do 3024 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3026 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3027 break 2 3028 fi 3029 done 3030 done 3031 IFS=$as_save_IFS 3032 3033 fi ;; 3034 esac 3035 fi 3036 CC=$ac_cv_prog_CC 3037 if test -n "$CC"; then 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3039 printf "%s\n" "$CC" >&6; } 3040 else 3041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3042 printf "%s\n" "no" >&6; } 3043 fi 3044 3045 3046 test -n "$CC" && break 3047 done 3048 fi 3049 if test -z "$CC"; then 3050 ac_ct_CC=$CC 3051 for ac_prog in cl.exe 3052 do 3053 # Extract the first word of "$ac_prog", so it can be a program name with args. 3054 set dummy $ac_prog; ac_word=$2 3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3056 printf %s "checking for $ac_word... " >&6; } 3057 if test ${ac_cv_prog_ac_ct_CC+y} 3058 then : 3059 printf %s "(cached) " >&6 3060 else case e in #( 3061 e) if test -n "$ac_ct_CC"; then 3062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3063 else 3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3065 for as_dir in $PATH 3066 do 3067 IFS=$as_save_IFS 3068 case $as_dir in #((( 3069 '') as_dir=./ ;; 3070 */) ;; 3071 *) as_dir=$as_dir/ ;; 3072 esac 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3075 ac_cv_prog_ac_ct_CC="$ac_prog" 3076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079 done 3080 done 3081 IFS=$as_save_IFS 3082 3083 fi ;; 3084 esac 3085 fi 3086 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3087 if test -n "$ac_ct_CC"; then 3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3089 printf "%s\n" "$ac_ct_CC" >&6; } 3090 else 3091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092 printf "%s\n" "no" >&6; } 3093 fi 3094 3095 3096 test -n "$ac_ct_CC" && break 3097 done 3098 3099 if test "x$ac_ct_CC" = x; then 3100 CC="" 3101 else 3102 case $cross_compiling:$ac_tool_warned in 3103 yes:) 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3105 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3106 ac_tool_warned=yes ;; 3107 esac 3108 CC=$ac_ct_CC 3109 fi 3110 fi 3111 3112 fi 3113 if test -z "$CC"; then 3114 if test -n "$ac_tool_prefix"; then 3115 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3116 set dummy ${ac_tool_prefix}clang; ac_word=$2 3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3118 printf %s "checking for $ac_word... " >&6; } 3119 if test ${ac_cv_prog_CC+y} 3120 then : 3121 printf %s "(cached) " >&6 3122 else case e in #( 3123 e) if test -n "$CC"; then 3124 ac_cv_prog_CC="$CC" # Let the user override the test. 3125 else 3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127 for as_dir in $PATH 3128 do 3129 IFS=$as_save_IFS 3130 case $as_dir in #((( 3131 '') as_dir=./ ;; 3132 */) ;; 3133 *) as_dir=$as_dir/ ;; 3134 esac 3135 for ac_exec_ext in '' $ac_executable_extensions; do 3136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3137 ac_cv_prog_CC="${ac_tool_prefix}clang" 3138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3139 break 2 3140 fi 3141 done 3142 done 3143 IFS=$as_save_IFS 3144 3145 fi ;; 3146 esac 3147 fi 3148 CC=$ac_cv_prog_CC 3149 if test -n "$CC"; then 3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3151 printf "%s\n" "$CC" >&6; } 3152 else 3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3154 printf "%s\n" "no" >&6; } 3155 fi 3156 3157 3158 fi 3159 if test -z "$ac_cv_prog_CC"; then 3160 ac_ct_CC=$CC 3161 # Extract the first word of "clang", so it can be a program name with args. 3162 set dummy clang; ac_word=$2 3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3164 printf %s "checking for $ac_word... " >&6; } 3165 if test ${ac_cv_prog_ac_ct_CC+y} 3166 then : 3167 printf %s "(cached) " >&6 3168 else case e in #( 3169 e) if test -n "$ac_ct_CC"; then 3170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3171 else 3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3173 for as_dir in $PATH 3174 do 3175 IFS=$as_save_IFS 3176 case $as_dir in #((( 3177 '') as_dir=./ ;; 3178 */) ;; 3179 *) as_dir=$as_dir/ ;; 3180 esac 3181 for ac_exec_ext in '' $ac_executable_extensions; do 3182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3183 ac_cv_prog_ac_ct_CC="clang" 3184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3185 break 2 3186 fi 3187 done 3188 done 3189 IFS=$as_save_IFS 3190 3191 fi ;; 3192 esac 3193 fi 3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3195 if test -n "$ac_ct_CC"; then 3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3197 printf "%s\n" "$ac_ct_CC" >&6; } 3198 else 3199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3200 printf "%s\n" "no" >&6; } 3201 fi 3202 3203 if test "x$ac_ct_CC" = x; then 3204 CC="" 3205 else 3206 case $cross_compiling:$ac_tool_warned in 3207 yes:) 3208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3209 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3210 ac_tool_warned=yes ;; 3211 esac 3212 CC=$ac_ct_CC 3213 fi 3214 else 3215 CC="$ac_cv_prog_CC" 3216 fi 3217 3218 fi 3219 3220 3221 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3222 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3223 as_fn_error $? "no acceptable C compiler found in \$PATH 3224 See 'config.log' for more details" "$LINENO" 5; } 3225 3226 # Provide some information about the compiler. 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3228 set X $ac_compile 3229 ac_compiler=$2 3230 for ac_option in --version -v -V -qversion -version; do 3231 { { ac_try="$ac_compiler $ac_option >&5" 3232 case "(($ac_try" in 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3234 *) ac_try_echo=$ac_try;; 3235 esac 3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3237 printf "%s\n" "$ac_try_echo"; } >&5 3238 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3239 ac_status=$? 3240 if test -s conftest.err; then 3241 sed '10a\ 3242 ... rest of stderr output deleted ... 3243 10q' conftest.err >conftest.er1 3244 cat conftest.er1 >&5 3245 fi 3246 rm -f conftest.er1 conftest.err 3247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3248 test $ac_status = 0; } 3249 done 3250 3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3252 /* end confdefs.h. */ 3253 3254 int 3255 main (void) 3256 { 3257 3258 ; 3259 return 0; 3260 } 3261 _ACEOF 3262 ac_clean_files_save=$ac_clean_files 3263 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3264 # Try to create an executable without -o first, disregard a.out. 3265 # It will help us diagnose broken compilers, and finding out an intuition 3266 # of exeext. 3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3268 printf %s "checking whether the C compiler works... " >&6; } 3269 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3270 3271 # The possible output files: 3272 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3273 3274 ac_rmfiles= 3275 for ac_file in $ac_files 3276 do 3277 case $ac_file in 3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3279 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3280 esac 3281 done 3282 rm -f $ac_rmfiles 3283 3284 if { { ac_try="$ac_link_default" 3285 case "(($ac_try" in 3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3287 *) ac_try_echo=$ac_try;; 3288 esac 3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3290 printf "%s\n" "$ac_try_echo"; } >&5 3291 (eval "$ac_link_default") 2>&5 3292 ac_status=$? 3293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3294 test $ac_status = 0; } 3295 then : 3296 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3297 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3298 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3299 # so that the user can short-circuit this test for compilers unknown to 3300 # Autoconf. 3301 for ac_file in $ac_files '' 3302 do 3303 test -f "$ac_file" || continue 3304 case $ac_file in 3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3306 ;; 3307 [ab].out ) 3308 # We found the default executable, but exeext='' is most 3309 # certainly right. 3310 break;; 3311 *.* ) 3312 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3313 then :; else 3314 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3315 fi 3316 # We set ac_cv_exeext here because the later test for it is not 3317 # safe: cross compilers may not add the suffix if given an '-o' 3318 # argument, so we may need to know it at that point already. 3319 # Even if this section looks crufty: it has the advantage of 3320 # actually working. 3321 break;; 3322 * ) 3323 break;; 3324 esac 3325 done 3326 test "$ac_cv_exeext" = no && ac_cv_exeext= 3327 3328 else case e in #( 3329 e) ac_file='' ;; 3330 esac 3331 fi 3332 if test -z "$ac_file" 3333 then : 3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3335 printf "%s\n" "no" >&6; } 3336 printf "%s\n" "$as_me: failed program was:" >&5 3337 sed 's/^/| /' conftest.$ac_ext >&5 3338 3339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3340 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3341 as_fn_error 77 "C compiler cannot create executables 3342 See 'config.log' for more details" "$LINENO" 5; } 3343 else case e in #( 3344 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3345 printf "%s\n" "yes" >&6; } ;; 3346 esac 3347 fi 3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3349 printf %s "checking for C compiler default output file name... " >&6; } 3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3351 printf "%s\n" "$ac_file" >&6; } 3352 ac_exeext=$ac_cv_exeext 3353 3354 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3355 ac_clean_files=$ac_clean_files_save 3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3357 printf %s "checking for suffix of executables... " >&6; } 3358 if { { ac_try="$ac_link" 3359 case "(($ac_try" in 3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3361 *) ac_try_echo=$ac_try;; 3362 esac 3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3364 printf "%s\n" "$ac_try_echo"; } >&5 3365 (eval "$ac_link") 2>&5 3366 ac_status=$? 3367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3368 test $ac_status = 0; } 3369 then : 3370 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3371 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3372 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3373 # 'rm'. 3374 for ac_file in conftest.exe conftest conftest.*; do 3375 test -f "$ac_file" || continue 3376 case $ac_file in 3377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3378 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3379 break;; 3380 * ) break;; 3381 esac 3382 done 3383 else case e in #( 3384 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3385 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3386 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3387 See 'config.log' for more details" "$LINENO" 5; } ;; 3388 esac 3389 fi 3390 rm -f conftest conftest$ac_cv_exeext 3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3392 printf "%s\n" "$ac_cv_exeext" >&6; } 3393 3394 rm -f conftest.$ac_ext 3395 EXEEXT=$ac_cv_exeext 3396 ac_exeext=$EXEEXT 3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3398 /* end confdefs.h. */ 3399 #include <stdio.h> 3400 int 3401 main (void) 3402 { 3403 FILE *f = fopen ("conftest.out", "w"); 3404 if (!f) 3405 return 1; 3406 return ferror (f) || fclose (f) != 0; 3407 3408 ; 3409 return 0; 3410 } 3411 _ACEOF 3412 ac_clean_files="$ac_clean_files conftest.out" 3413 # Check that the compiler produces executables we can run. If not, either 3414 # the compiler is broken, or we cross compile. 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3416 printf %s "checking whether we are cross compiling... " >&6; } 3417 if test "$cross_compiling" != yes; then 3418 { { ac_try="$ac_link" 3419 case "(($ac_try" in 3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3421 *) ac_try_echo=$ac_try;; 3422 esac 3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3424 printf "%s\n" "$ac_try_echo"; } >&5 3425 (eval "$ac_link") 2>&5 3426 ac_status=$? 3427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3428 test $ac_status = 0; } 3429 if { ac_try='./conftest$ac_cv_exeext' 3430 { { case "(($ac_try" in 3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3432 *) ac_try_echo=$ac_try;; 3433 esac 3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3435 printf "%s\n" "$ac_try_echo"; } >&5 3436 (eval "$ac_try") 2>&5 3437 ac_status=$? 3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3439 test $ac_status = 0; }; }; then 3440 cross_compiling=no 3441 else 3442 if test "$cross_compiling" = maybe; then 3443 cross_compiling=yes 3444 else 3445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3446 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3447 as_fn_error 77 "cannot run C compiled programs. 3448 If you meant to cross compile, use '--host'. 3449 See 'config.log' for more details" "$LINENO" 5; } 3450 fi 3451 fi 3452 fi 3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3454 printf "%s\n" "$cross_compiling" >&6; } 3455 3456 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3457 conftest.o conftest.obj conftest.out 3458 ac_clean_files=$ac_clean_files_save 3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3460 printf %s "checking for suffix of object files... " >&6; } 3461 if test ${ac_cv_objext+y} 3462 then : 3463 printf %s "(cached) " >&6 3464 else case e in #( 3465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466 /* end confdefs.h. */ 3467 3468 int 3469 main (void) 3470 { 3471 3472 ; 3473 return 0; 3474 } 3475 _ACEOF 3476 rm -f conftest.o conftest.obj 3477 if { { ac_try="$ac_compile" 3478 case "(($ac_try" in 3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3480 *) ac_try_echo=$ac_try;; 3481 esac 3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3483 printf "%s\n" "$ac_try_echo"; } >&5 3484 (eval "$ac_compile") 2>&5 3485 ac_status=$? 3486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3487 test $ac_status = 0; } 3488 then : 3489 for ac_file in conftest.o conftest.obj conftest.*; do 3490 test -f "$ac_file" || continue; 3491 case $ac_file in 3492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3494 break;; 3495 esac 3496 done 3497 else case e in #( 3498 e) printf "%s\n" "$as_me: failed program was:" >&5 3499 sed 's/^/| /' conftest.$ac_ext >&5 3500 3501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3502 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3503 as_fn_error $? "cannot compute suffix of object files: cannot compile 3504 See 'config.log' for more details" "$LINENO" 5; } ;; 3505 esac 3506 fi 3507 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3508 esac 3509 fi 3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3511 printf "%s\n" "$ac_cv_objext" >&6; } 3512 OBJEXT=$ac_cv_objext 3513 ac_objext=$OBJEXT 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3515 printf %s "checking whether the compiler supports GNU C... " >&6; } 3516 if test ${ac_cv_c_compiler_gnu+y} 3517 then : 3518 printf %s "(cached) " >&6 3519 else case e in #( 3520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3521 /* end confdefs.h. */ 3522 3523 int 3524 main (void) 3525 { 3526 #ifndef __GNUC__ 3527 choke me 3528 #endif 3529 3530 ; 3531 return 0; 3532 } 3533 _ACEOF 3534 if ac_fn_c_try_compile "$LINENO" 3535 then : 3536 ac_compiler_gnu=yes 3537 else case e in #( 3538 e) ac_compiler_gnu=no ;; 3539 esac 3540 fi 3541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3542 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3543 ;; 3544 esac 3545 fi 3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3547 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3549 3550 if test $ac_compiler_gnu = yes; then 3551 GCC=yes 3552 else 3553 GCC= 3554 fi 3555 ac_test_CFLAGS=${CFLAGS+y} 3556 ac_save_CFLAGS=$CFLAGS 3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3558 printf %s "checking whether $CC accepts -g... " >&6; } 3559 if test ${ac_cv_prog_cc_g+y} 3560 then : 3561 printf %s "(cached) " >&6 3562 else case e in #( 3563 e) ac_save_c_werror_flag=$ac_c_werror_flag 3564 ac_c_werror_flag=yes 3565 ac_cv_prog_cc_g=no 3566 CFLAGS="-g" 3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3568 /* end confdefs.h. */ 3569 3570 int 3571 main (void) 3572 { 3573 3574 ; 3575 return 0; 3576 } 3577 _ACEOF 3578 if ac_fn_c_try_compile "$LINENO" 3579 then : 3580 ac_cv_prog_cc_g=yes 3581 else case e in #( 3582 e) CFLAGS="" 3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584 /* end confdefs.h. */ 3585 3586 int 3587 main (void) 3588 { 3589 3590 ; 3591 return 0; 3592 } 3593 _ACEOF 3594 if ac_fn_c_try_compile "$LINENO" 3595 then : 3596 3597 else case e in #( 3598 e) ac_c_werror_flag=$ac_save_c_werror_flag 3599 CFLAGS="-g" 3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601 /* end confdefs.h. */ 3602 3603 int 3604 main (void) 3605 { 3606 3607 ; 3608 return 0; 3609 } 3610 _ACEOF 3611 if ac_fn_c_try_compile "$LINENO" 3612 then : 3613 ac_cv_prog_cc_g=yes 3614 fi 3615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3616 esac 3617 fi 3618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3619 esac 3620 fi 3621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3622 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3623 esac 3624 fi 3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3626 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3627 if test $ac_test_CFLAGS; then 3628 CFLAGS=$ac_save_CFLAGS 3629 elif test $ac_cv_prog_cc_g = yes; then 3630 if test "$GCC" = yes; then 3631 CFLAGS="-g -O2" 3632 else 3633 CFLAGS="-g" 3634 fi 3635 else 3636 if test "$GCC" = yes; then 3637 CFLAGS="-O2" 3638 else 3639 CFLAGS= 3640 fi 3641 fi 3642 ac_prog_cc_stdc=no 3643 if test x$ac_prog_cc_stdc = xno 3644 then : 3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3646 printf %s "checking for $CC option to enable C11 features... " >&6; } 3647 if test ${ac_cv_prog_cc_c11+y} 3648 then : 3649 printf %s "(cached) " >&6 3650 else case e in #( 3651 e) ac_cv_prog_cc_c11=no 3652 ac_save_CC=$CC 3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654 /* end confdefs.h. */ 3655 $ac_c_conftest_c11_program 3656 _ACEOF 3657 for ac_arg in '' -std=gnu11 3658 do 3659 CC="$ac_save_CC $ac_arg" 3660 if ac_fn_c_try_compile "$LINENO" 3661 then : 3662 ac_cv_prog_cc_c11=$ac_arg 3663 fi 3664 rm -f core conftest.err conftest.$ac_objext conftest.beam 3665 test "x$ac_cv_prog_cc_c11" != "xno" && break 3666 done 3667 rm -f conftest.$ac_ext 3668 CC=$ac_save_CC ;; 3669 esac 3670 fi 3671 3672 if test "x$ac_cv_prog_cc_c11" = xno 3673 then : 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3675 printf "%s\n" "unsupported" >&6; } 3676 else case e in #( 3677 e) if test "x$ac_cv_prog_cc_c11" = x 3678 then : 3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3680 printf "%s\n" "none needed" >&6; } 3681 else case e in #( 3682 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3683 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3684 CC="$CC $ac_cv_prog_cc_c11" ;; 3685 esac 3686 fi 3687 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3688 ac_prog_cc_stdc=c11 ;; 3689 esac 3690 fi 3691 fi 3692 if test x$ac_prog_cc_stdc = xno 3693 then : 3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3695 printf %s "checking for $CC option to enable C99 features... " >&6; } 3696 if test ${ac_cv_prog_cc_c99+y} 3697 then : 3698 printf %s "(cached) " >&6 3699 else case e in #( 3700 e) ac_cv_prog_cc_c99=no 3701 ac_save_CC=$CC 3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3703 /* end confdefs.h. */ 3704 $ac_c_conftest_c99_program 3705 _ACEOF 3706 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3707 do 3708 CC="$ac_save_CC $ac_arg" 3709 if ac_fn_c_try_compile "$LINENO" 3710 then : 3711 ac_cv_prog_cc_c99=$ac_arg 3712 fi 3713 rm -f core conftest.err conftest.$ac_objext conftest.beam 3714 test "x$ac_cv_prog_cc_c99" != "xno" && break 3715 done 3716 rm -f conftest.$ac_ext 3717 CC=$ac_save_CC ;; 3718 esac 3719 fi 3720 3721 if test "x$ac_cv_prog_cc_c99" = xno 3722 then : 3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3724 printf "%s\n" "unsupported" >&6; } 3725 else case e in #( 3726 e) if test "x$ac_cv_prog_cc_c99" = x 3727 then : 3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3729 printf "%s\n" "none needed" >&6; } 3730 else case e in #( 3731 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3732 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3733 CC="$CC $ac_cv_prog_cc_c99" ;; 3734 esac 3735 fi 3736 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3737 ac_prog_cc_stdc=c99 ;; 3738 esac 3739 fi 3740 fi 3741 if test x$ac_prog_cc_stdc = xno 3742 then : 3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3744 printf %s "checking for $CC option to enable C89 features... " >&6; } 3745 if test ${ac_cv_prog_cc_c89+y} 3746 then : 3747 printf %s "(cached) " >&6 3748 else case e in #( 3749 e) ac_cv_prog_cc_c89=no 3750 ac_save_CC=$CC 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752 /* end confdefs.h. */ 3753 $ac_c_conftest_c89_program 3754 _ACEOF 3755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3756 do 3757 CC="$ac_save_CC $ac_arg" 3758 if ac_fn_c_try_compile "$LINENO" 3759 then : 3760 ac_cv_prog_cc_c89=$ac_arg 3761 fi 3762 rm -f core conftest.err conftest.$ac_objext conftest.beam 3763 test "x$ac_cv_prog_cc_c89" != "xno" && break 3764 done 3765 rm -f conftest.$ac_ext 3766 CC=$ac_save_CC ;; 3767 esac 3768 fi 3769 3770 if test "x$ac_cv_prog_cc_c89" = xno 3771 then : 3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3773 printf "%s\n" "unsupported" >&6; } 3774 else case e in #( 3775 e) if test "x$ac_cv_prog_cc_c89" = x 3776 then : 3777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3778 printf "%s\n" "none needed" >&6; } 3779 else case e in #( 3780 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3781 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3782 CC="$CC $ac_cv_prog_cc_c89" ;; 3783 esac 3784 fi 3785 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3786 ac_prog_cc_stdc=c89 ;; 3787 esac 3788 fi 3789 fi 3790 3791 ac_ext=c 3792 ac_cpp='$CPP $CPPFLAGS' 3793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3795 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3796 3797 3798 ac_ext=c 3799 ac_cpp='$CPP $CPPFLAGS' 3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3804 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3805 if test ${am_cv_prog_cc_c_o+y} 3806 then : 3807 printf %s "(cached) " >&6 3808 else case e in #( 3809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3810 /* end confdefs.h. */ 3811 3812 int 3813 main (void) 3814 { 3815 3816 ; 3817 return 0; 3818 } 3819 _ACEOF 3820 # Make sure it works both with $CC and with simple cc. 3821 # Following AC_PROG_CC_C_O, we do the test twice because some 3822 # compilers refuse to overwrite an existing .o file with -o, 3823 # though they will create one. 3824 am_cv_prog_cc_c_o=yes 3825 for am_i in 1 2; do 3826 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3827 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3828 ac_status=$? 3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3830 (exit $ac_status); } \ 3831 && test -f conftest2.$ac_objext; then 3832 : OK 3833 else 3834 am_cv_prog_cc_c_o=no 3835 break 3836 fi 3837 done 3838 rm -f core conftest* 3839 unset am_i ;; 3840 esac 3841 fi 3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3843 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3844 if test "$am_cv_prog_cc_c_o" != yes; then 3845 # Losing compiler, so override with the script. 3846 # FIXME: It is wrong to rewrite CC. 3847 # But if we don't then we get into trouble of one sort or another. 3848 # A longer-term fix would be to have automake use am__CC in this case, 3849 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3850 CC="$am_aux_dir/compile $CC" 3851 fi 3852 ac_ext=c 3853 ac_cpp='$CPP $CPPFLAGS' 3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3857 3858 3859 3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 3861 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 3862 if test ${ac_cv_c_undeclared_builtin_options+y} 3863 then : 3864 printf %s "(cached) " >&6 3865 else case e in #( 3866 e) ac_save_CFLAGS=$CFLAGS 3867 ac_cv_c_undeclared_builtin_options='cannot detect' 3868 for ac_arg in '' -fno-builtin; do 3869 CFLAGS="$ac_save_CFLAGS $ac_arg" 3870 # This test program should *not* compile successfully. 3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3872 /* end confdefs.h. */ 3873 3874 int 3875 main (void) 3876 { 3877 (void) strchr; 3878 ; 3879 return 0; 3880 } 3881 _ACEOF 3882 if ac_fn_c_try_compile "$LINENO" 3883 then : 3884 3885 else case e in #( 3886 e) # This test program should compile successfully. 3887 # No library function is consistently available on 3888 # freestanding implementations, so test against a dummy 3889 # declaration. Include always-available headers on the 3890 # off chance that they somehow elicit warnings. 3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3892 /* end confdefs.h. */ 3893 #include <float.h> 3894 #include <limits.h> 3895 #include <stdarg.h> 3896 #include <stddef.h> 3897 extern void ac_decl (int, char *); 3898 3899 int 3900 main (void) 3901 { 3902 (void) ac_decl (0, (char *) 0); 3903 (void) ac_decl; 3904 3905 ; 3906 return 0; 3907 } 3908 _ACEOF 3909 if ac_fn_c_try_compile "$LINENO" 3910 then : 3911 if test x"$ac_arg" = x 3912 then : 3913 ac_cv_c_undeclared_builtin_options='none needed' 3914 else case e in #( 3915 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 3916 esac 3917 fi 3918 break 3919 fi 3920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3921 esac 3922 fi 3923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3924 done 3925 CFLAGS=$ac_save_CFLAGS 3926 ;; 3927 esac 3928 fi 3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 3930 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 3931 case $ac_cv_c_undeclared_builtin_options in #( 3932 'cannot detect') : 3933 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3934 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3935 as_fn_error $? "cannot make $CC report undeclared builtins 3936 See 'config.log' for more details" "$LINENO" 5; } ;; #( 3937 'none needed') : 3938 ac_c_undeclared_builtin_options='' ;; #( 3939 *) : 3940 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 3941 esac 3942 3943 ac_header= ac_cache= 3944 for ac_item in $ac_header_c_list 3945 do 3946 if test $ac_cache; then 3947 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3948 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3949 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3950 fi 3951 ac_header= ac_cache= 3952 elif test $ac_header; then 3953 ac_cache=$ac_item 3954 else 3955 ac_header=$ac_item 3956 fi 3957 done 3958 3959 3960 3961 3962 3963 3964 3965 3966 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3967 then : 3968 3969 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3970 3971 fi 3972 3973 3974 3975 3976 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3977 if test "x$ac_cv_have_decl___clang__" = xyes 3978 then : 3979 CLANGCC="yes" 3980 else case e in #( 3981 e) CLANGCC="no" ;; 3982 esac 3983 fi 3984 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3985 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 3986 then : 3987 INTELCC="yes" 3988 else case e in #( 3989 e) INTELCC="no" ;; 3990 esac 3991 fi 3992 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 3993 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 3994 then : 3995 SUNCC="yes" 3996 else case e in #( 3997 e) SUNCC="no" ;; 3998 esac 3999 fi 4000 4001 4002 4003 4004 4005 4006 4007 4008 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4009 if test -n "$ac_tool_prefix"; then 4010 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4011 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4013 printf %s "checking for $ac_word... " >&6; } 4014 if test ${ac_cv_path_PKG_CONFIG+y} 4015 then : 4016 printf %s "(cached) " >&6 4017 else case e in #( 4018 e) case $PKG_CONFIG in 4019 [\\/]* | ?:[\\/]*) 4020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4021 ;; 4022 *) 4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4024 for as_dir in $PATH 4025 do 4026 IFS=$as_save_IFS 4027 case $as_dir in #((( 4028 '') as_dir=./ ;; 4029 */) ;; 4030 *) as_dir=$as_dir/ ;; 4031 esac 4032 for ac_exec_ext in '' $ac_executable_extensions; do 4033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4034 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4036 break 2 4037 fi 4038 done 4039 done 4040 IFS=$as_save_IFS 4041 4042 ;; 4043 esac ;; 4044 esac 4045 fi 4046 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4047 if test -n "$PKG_CONFIG"; then 4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4049 printf "%s\n" "$PKG_CONFIG" >&6; } 4050 else 4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4052 printf "%s\n" "no" >&6; } 4053 fi 4054 4055 4056 fi 4057 if test -z "$ac_cv_path_PKG_CONFIG"; then 4058 ac_pt_PKG_CONFIG=$PKG_CONFIG 4059 # Extract the first word of "pkg-config", so it can be a program name with args. 4060 set dummy pkg-config; ac_word=$2 4061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4062 printf %s "checking for $ac_word... " >&6; } 4063 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4064 then : 4065 printf %s "(cached) " >&6 4066 else case e in #( 4067 e) case $ac_pt_PKG_CONFIG in 4068 [\\/]* | ?:[\\/]*) 4069 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4070 ;; 4071 *) 4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073 for as_dir in $PATH 4074 do 4075 IFS=$as_save_IFS 4076 case $as_dir in #((( 4077 '') as_dir=./ ;; 4078 */) ;; 4079 *) as_dir=$as_dir/ ;; 4080 esac 4081 for ac_exec_ext in '' $ac_executable_extensions; do 4082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4083 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4085 break 2 4086 fi 4087 done 4088 done 4089 IFS=$as_save_IFS 4090 4091 ;; 4092 esac ;; 4093 esac 4094 fi 4095 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4096 if test -n "$ac_pt_PKG_CONFIG"; then 4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4098 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4099 else 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4101 printf "%s\n" "no" >&6; } 4102 fi 4103 4104 if test "x$ac_pt_PKG_CONFIG" = x; then 4105 PKG_CONFIG="" 4106 else 4107 case $cross_compiling:$ac_tool_warned in 4108 yes:) 4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4110 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4111 ac_tool_warned=yes ;; 4112 esac 4113 PKG_CONFIG=$ac_pt_PKG_CONFIG 4114 fi 4115 else 4116 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4117 fi 4118 4119 fi 4120 if test -n "$PKG_CONFIG"; then 4121 _pkg_min_version=0.9.0 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4123 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4124 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4126 printf "%s\n" "yes" >&6; } 4127 else 4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4129 printf "%s\n" "no" >&6; } 4130 PKG_CONFIG="" 4131 fi 4132 fi 4133 4134 4135 # Make sure we can run config.sub. 4136 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4137 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4138 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4140 printf %s "checking build system type... " >&6; } 4141 if test ${ac_cv_build+y} 4142 then : 4143 printf %s "(cached) " >&6 4144 else case e in #( 4145 e) ac_build_alias=$build_alias 4146 test "x$ac_build_alias" = x && 4147 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4148 test "x$ac_build_alias" = x && 4149 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4150 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4151 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4152 ;; 4153 esac 4154 fi 4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4156 printf "%s\n" "$ac_cv_build" >&6; } 4157 case $ac_cv_build in 4158 *-*-*) ;; 4159 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4160 esac 4161 build=$ac_cv_build 4162 ac_save_IFS=$IFS; IFS='-' 4163 set x $ac_cv_build 4164 shift 4165 build_cpu=$1 4166 build_vendor=$2 4167 shift; shift 4168 # Remember, the first character of IFS is used to create $*, 4169 # except with old shells: 4170 build_os=$* 4171 IFS=$ac_save_IFS 4172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4173 4174 4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4176 printf %s "checking host system type... " >&6; } 4177 if test ${ac_cv_host+y} 4178 then : 4179 printf %s "(cached) " >&6 4180 else case e in #( 4181 e) if test "x$host_alias" = x; then 4182 ac_cv_host=$ac_cv_build 4183 else 4184 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4185 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4186 fi 4187 ;; 4188 esac 4189 fi 4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4191 printf "%s\n" "$ac_cv_host" >&6; } 4192 case $ac_cv_host in 4193 *-*-*) ;; 4194 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4195 esac 4196 host=$ac_cv_host 4197 ac_save_IFS=$IFS; IFS='-' 4198 set x $ac_cv_host 4199 shift 4200 host_cpu=$1 4201 host_vendor=$2 4202 shift; shift 4203 # Remember, the first character of IFS is used to create $*, 4204 # except with old shells: 4205 host_os=$* 4206 IFS=$ac_save_IFS 4207 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4208 4209 4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4211 printf %s "checking for a sed that does not truncate output... " >&6; } 4212 if test ${ac_cv_path_SED+y} 4213 then : 4214 printf %s "(cached) " >&6 4215 else case e in #( 4216 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4217 for ac_i in 1 2 3 4 5 6 7; do 4218 ac_script="$ac_script$as_nl$ac_script" 4219 done 4220 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4221 { ac_script=; unset ac_script;} 4222 if test -z "$SED"; then 4223 ac_path_SED_found=false 4224 # Loop through the user's path and test for each of PROGNAME-LIST 4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4226 for as_dir in $PATH 4227 do 4228 IFS=$as_save_IFS 4229 case $as_dir in #((( 4230 '') as_dir=./ ;; 4231 */) ;; 4232 *) as_dir=$as_dir/ ;; 4233 esac 4234 for ac_prog in sed gsed 4235 do 4236 for ac_exec_ext in '' $ac_executable_extensions; do 4237 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4238 as_fn_executable_p "$ac_path_SED" || continue 4239 # Check for GNU ac_path_SED and select it if it is found. 4240 # Check for GNU $ac_path_SED 4241 case `"$ac_path_SED" --version 2>&1` in #( 4242 *GNU*) 4243 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4244 #( 4245 *) 4246 ac_count=0 4247 printf %s 0123456789 >"conftest.in" 4248 while : 4249 do 4250 cat "conftest.in" "conftest.in" >"conftest.tmp" 4251 mv "conftest.tmp" "conftest.in" 4252 cp "conftest.in" "conftest.nl" 4253 printf "%s\n" '' >> "conftest.nl" 4254 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4256 as_fn_arith $ac_count + 1 && ac_count=$as_val 4257 if test $ac_count -gt ${ac_path_SED_max-0}; then 4258 # Best one so far, save it but keep looking for a better one 4259 ac_cv_path_SED="$ac_path_SED" 4260 ac_path_SED_max=$ac_count 4261 fi 4262 # 10*(2^10) chars as input seems more than enough 4263 test $ac_count -gt 10 && break 4264 done 4265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4266 esac 4267 4268 $ac_path_SED_found && break 3 4269 done 4270 done 4271 done 4272 IFS=$as_save_IFS 4273 if test -z "$ac_cv_path_SED"; then 4274 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4275 fi 4276 else 4277 ac_cv_path_SED=$SED 4278 fi 4279 ;; 4280 esac 4281 fi 4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4283 printf "%s\n" "$ac_cv_path_SED" >&6; } 4284 SED="$ac_cv_path_SED" 4285 rm -f conftest.sed 4286 4287 4288 4289 4290 4291 4292 # Check whether --enable-selective-werror was given. 4293 if test ${enable_selective_werror+y} 4294 then : 4295 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4296 else case e in #( 4297 e) SELECTIVE_WERROR=yes ;; 4298 esac 4299 fi 4300 4301 4302 4303 4304 4305 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4306 if test "x$SUNCC" = "xyes"; then 4307 BASE_CFLAGS="-v" 4308 else 4309 BASE_CFLAGS="" 4310 fi 4311 4312 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 xorg_testset_save_CFLAGS="$CFLAGS" 4327 4328 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4331 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4332 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4333 then : 4334 printf %s "(cached) " >&6 4335 else case e in #( 4336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4337 /* end confdefs.h. */ 4338 int i; 4339 _ACEOF 4340 if ac_fn_c_try_compile "$LINENO" 4341 then : 4342 xorg_cv_cc_flag_unknown_warning_option=yes 4343 else case e in #( 4344 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4345 esac 4346 fi 4347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4348 esac 4349 fi 4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4351 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4352 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4353 CFLAGS="$xorg_testset_save_CFLAGS" 4354 fi 4355 4356 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4359 fi 4360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4362 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4363 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4364 then : 4365 printf %s "(cached) " >&6 4366 else case e in #( 4367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368 /* end confdefs.h. */ 4369 int i; 4370 _ACEOF 4371 if ac_fn_c_try_compile "$LINENO" 4372 then : 4373 xorg_cv_cc_flag_unused_command_line_argument=yes 4374 else case e in #( 4375 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4376 esac 4377 fi 4378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4379 esac 4380 fi 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4382 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4383 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4384 CFLAGS="$xorg_testset_save_CFLAGS" 4385 fi 4386 4387 found="no" 4388 4389 if test $found = "no" ; then 4390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4392 fi 4393 4394 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4396 fi 4397 4398 CFLAGS="$CFLAGS -Wall" 4399 4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4401 printf %s "checking if $CC supports -Wall... " >&6; } 4402 cacheid=xorg_cv_cc_flag__Wall 4403 if eval test \${$cacheid+y} 4404 then : 4405 printf %s "(cached) " >&6 4406 else case e in #( 4407 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4408 /* end confdefs.h. */ 4409 int i; 4410 int 4411 main (void) 4412 { 4413 4414 ; 4415 return 0; 4416 } 4417 _ACEOF 4418 if ac_fn_c_try_link "$LINENO" 4419 then : 4420 eval $cacheid=yes 4421 else case e in #( 4422 e) eval $cacheid=no ;; 4423 esac 4424 fi 4425 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4426 conftest$ac_exeext conftest.$ac_ext ;; 4427 esac 4428 fi 4429 4430 4431 CFLAGS="$xorg_testset_save_CFLAGS" 4432 4433 eval supported=\$$cacheid 4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4435 printf "%s\n" "$supported" >&6; } 4436 if test "$supported" = "yes" ; then 4437 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4438 found="yes" 4439 fi 4440 fi 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 xorg_testset_save_CFLAGS="$CFLAGS" 4457 4458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4461 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4462 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4463 then : 4464 printf %s "(cached) " >&6 4465 else case e in #( 4466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4467 /* end confdefs.h. */ 4468 int i; 4469 _ACEOF 4470 if ac_fn_c_try_compile "$LINENO" 4471 then : 4472 xorg_cv_cc_flag_unknown_warning_option=yes 4473 else case e in #( 4474 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4475 esac 4476 fi 4477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4478 esac 4479 fi 4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4481 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4483 CFLAGS="$xorg_testset_save_CFLAGS" 4484 fi 4485 4486 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4489 fi 4490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4492 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4493 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4494 then : 4495 printf %s "(cached) " >&6 4496 else case e in #( 4497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4498 /* end confdefs.h. */ 4499 int i; 4500 _ACEOF 4501 if ac_fn_c_try_compile "$LINENO" 4502 then : 4503 xorg_cv_cc_flag_unused_command_line_argument=yes 4504 else case e in #( 4505 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4506 esac 4507 fi 4508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4509 esac 4510 fi 4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4512 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4513 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4514 CFLAGS="$xorg_testset_save_CFLAGS" 4515 fi 4516 4517 found="no" 4518 4519 if test $found = "no" ; then 4520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4522 fi 4523 4524 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4526 fi 4527 4528 CFLAGS="$CFLAGS -Wpointer-arith" 4529 4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4531 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 4532 cacheid=xorg_cv_cc_flag__Wpointer_arith 4533 if eval test \${$cacheid+y} 4534 then : 4535 printf %s "(cached) " >&6 4536 else case e in #( 4537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4538 /* end confdefs.h. */ 4539 int i; 4540 int 4541 main (void) 4542 { 4543 4544 ; 4545 return 0; 4546 } 4547 _ACEOF 4548 if ac_fn_c_try_link "$LINENO" 4549 then : 4550 eval $cacheid=yes 4551 else case e in #( 4552 e) eval $cacheid=no ;; 4553 esac 4554 fi 4555 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4556 conftest$ac_exeext conftest.$ac_ext ;; 4557 esac 4558 fi 4559 4560 4561 CFLAGS="$xorg_testset_save_CFLAGS" 4562 4563 eval supported=\$$cacheid 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4565 printf "%s\n" "$supported" >&6; } 4566 if test "$supported" = "yes" ; then 4567 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4568 found="yes" 4569 fi 4570 fi 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 xorg_testset_save_CFLAGS="$CFLAGS" 4587 4588 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4591 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4592 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4593 then : 4594 printf %s "(cached) " >&6 4595 else case e in #( 4596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4597 /* end confdefs.h. */ 4598 int i; 4599 _ACEOF 4600 if ac_fn_c_try_compile "$LINENO" 4601 then : 4602 xorg_cv_cc_flag_unknown_warning_option=yes 4603 else case e in #( 4604 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4605 esac 4606 fi 4607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4608 esac 4609 fi 4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4611 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4613 CFLAGS="$xorg_testset_save_CFLAGS" 4614 fi 4615 4616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4619 fi 4620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4624 then : 4625 printf %s "(cached) " >&6 4626 else case e in #( 4627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4628 /* end confdefs.h. */ 4629 int i; 4630 _ACEOF 4631 if ac_fn_c_try_compile "$LINENO" 4632 then : 4633 xorg_cv_cc_flag_unused_command_line_argument=yes 4634 else case e in #( 4635 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4636 esac 4637 fi 4638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4639 esac 4640 fi 4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4642 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4644 CFLAGS="$xorg_testset_save_CFLAGS" 4645 fi 4646 4647 found="no" 4648 4649 if test $found = "no" ; then 4650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4652 fi 4653 4654 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4656 fi 4657 4658 CFLAGS="$CFLAGS -Wmissing-declarations" 4659 4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4661 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 4662 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4663 if eval test \${$cacheid+y} 4664 then : 4665 printf %s "(cached) " >&6 4666 else case e in #( 4667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668 /* end confdefs.h. */ 4669 int i; 4670 int 4671 main (void) 4672 { 4673 4674 ; 4675 return 0; 4676 } 4677 _ACEOF 4678 if ac_fn_c_try_link "$LINENO" 4679 then : 4680 eval $cacheid=yes 4681 else case e in #( 4682 e) eval $cacheid=no ;; 4683 esac 4684 fi 4685 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4686 conftest$ac_exeext conftest.$ac_ext ;; 4687 esac 4688 fi 4689 4690 4691 CFLAGS="$xorg_testset_save_CFLAGS" 4692 4693 eval supported=\$$cacheid 4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4695 printf "%s\n" "$supported" >&6; } 4696 if test "$supported" = "yes" ; then 4697 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4698 found="yes" 4699 fi 4700 fi 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 xorg_testset_save_CFLAGS="$CFLAGS" 4717 4718 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4721 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4722 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4723 then : 4724 printf %s "(cached) " >&6 4725 else case e in #( 4726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727 /* end confdefs.h. */ 4728 int i; 4729 _ACEOF 4730 if ac_fn_c_try_compile "$LINENO" 4731 then : 4732 xorg_cv_cc_flag_unknown_warning_option=yes 4733 else case e in #( 4734 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4735 esac 4736 fi 4737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4738 esac 4739 fi 4740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4741 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4743 CFLAGS="$xorg_testset_save_CFLAGS" 4744 fi 4745 4746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4749 fi 4750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4752 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4753 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4754 then : 4755 printf %s "(cached) " >&6 4756 else case e in #( 4757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4758 /* end confdefs.h. */ 4759 int i; 4760 _ACEOF 4761 if ac_fn_c_try_compile "$LINENO" 4762 then : 4763 xorg_cv_cc_flag_unused_command_line_argument=yes 4764 else case e in #( 4765 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4766 esac 4767 fi 4768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4769 esac 4770 fi 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4772 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4774 CFLAGS="$xorg_testset_save_CFLAGS" 4775 fi 4776 4777 found="no" 4778 4779 if test $found = "no" ; then 4780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4782 fi 4783 4784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4786 fi 4787 4788 CFLAGS="$CFLAGS -Wformat=2" 4789 4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4791 printf %s "checking if $CC supports -Wformat=2... " >&6; } 4792 cacheid=xorg_cv_cc_flag__Wformat_2 4793 if eval test \${$cacheid+y} 4794 then : 4795 printf %s "(cached) " >&6 4796 else case e in #( 4797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4798 /* end confdefs.h. */ 4799 int i; 4800 int 4801 main (void) 4802 { 4803 4804 ; 4805 return 0; 4806 } 4807 _ACEOF 4808 if ac_fn_c_try_link "$LINENO" 4809 then : 4810 eval $cacheid=yes 4811 else case e in #( 4812 e) eval $cacheid=no ;; 4813 esac 4814 fi 4815 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4816 conftest$ac_exeext conftest.$ac_ext ;; 4817 esac 4818 fi 4819 4820 4821 CFLAGS="$xorg_testset_save_CFLAGS" 4822 4823 eval supported=\$$cacheid 4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4825 printf "%s\n" "$supported" >&6; } 4826 if test "$supported" = "yes" ; then 4827 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 4828 found="yes" 4829 fi 4830 fi 4831 4832 if test $found = "no" ; then 4833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4835 fi 4836 4837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4839 fi 4840 4841 CFLAGS="$CFLAGS -Wformat" 4842 4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 4844 printf %s "checking if $CC supports -Wformat... " >&6; } 4845 cacheid=xorg_cv_cc_flag__Wformat 4846 if eval test \${$cacheid+y} 4847 then : 4848 printf %s "(cached) " >&6 4849 else case e in #( 4850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851 /* end confdefs.h. */ 4852 int i; 4853 int 4854 main (void) 4855 { 4856 4857 ; 4858 return 0; 4859 } 4860 _ACEOF 4861 if ac_fn_c_try_link "$LINENO" 4862 then : 4863 eval $cacheid=yes 4864 else case e in #( 4865 e) eval $cacheid=no ;; 4866 esac 4867 fi 4868 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4869 conftest$ac_exeext conftest.$ac_ext ;; 4870 esac 4871 fi 4872 4873 4874 CFLAGS="$xorg_testset_save_CFLAGS" 4875 4876 eval supported=\$$cacheid 4877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4878 printf "%s\n" "$supported" >&6; } 4879 if test "$supported" = "yes" ; then 4880 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 4881 found="yes" 4882 fi 4883 fi 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 xorg_testset_save_CFLAGS="$CFLAGS" 4902 4903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4906 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4907 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4908 then : 4909 printf %s "(cached) " >&6 4910 else case e in #( 4911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912 /* end confdefs.h. */ 4913 int i; 4914 _ACEOF 4915 if ac_fn_c_try_compile "$LINENO" 4916 then : 4917 xorg_cv_cc_flag_unknown_warning_option=yes 4918 else case e in #( 4919 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 4920 esac 4921 fi 4922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4923 esac 4924 fi 4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4926 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4928 CFLAGS="$xorg_testset_save_CFLAGS" 4929 fi 4930 4931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4934 fi 4935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4937 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4938 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4939 then : 4940 printf %s "(cached) " >&6 4941 else case e in #( 4942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4943 /* end confdefs.h. */ 4944 int i; 4945 _ACEOF 4946 if ac_fn_c_try_compile "$LINENO" 4947 then : 4948 xorg_cv_cc_flag_unused_command_line_argument=yes 4949 else case e in #( 4950 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 4951 esac 4952 fi 4953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4954 esac 4955 fi 4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4957 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4959 CFLAGS="$xorg_testset_save_CFLAGS" 4960 fi 4961 4962 found="no" 4963 4964 if test $found = "no" ; then 4965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4967 fi 4968 4969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4971 fi 4972 4973 CFLAGS="$CFLAGS -Wstrict-prototypes" 4974 4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 4976 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 4977 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 4978 if eval test \${$cacheid+y} 4979 then : 4980 printf %s "(cached) " >&6 4981 else case e in #( 4982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983 /* end confdefs.h. */ 4984 int i; 4985 int 4986 main (void) 4987 { 4988 4989 ; 4990 return 0; 4991 } 4992 _ACEOF 4993 if ac_fn_c_try_link "$LINENO" 4994 then : 4995 eval $cacheid=yes 4996 else case e in #( 4997 e) eval $cacheid=no ;; 4998 esac 4999 fi 5000 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5001 conftest$ac_exeext conftest.$ac_ext ;; 5002 esac 5003 fi 5004 5005 5006 CFLAGS="$xorg_testset_save_CFLAGS" 5007 5008 eval supported=\$$cacheid 5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5010 printf "%s\n" "$supported" >&6; } 5011 if test "$supported" = "yes" ; then 5012 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5013 found="yes" 5014 fi 5015 fi 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 xorg_testset_save_CFLAGS="$CFLAGS" 5032 5033 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5036 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5037 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5038 then : 5039 printf %s "(cached) " >&6 5040 else case e in #( 5041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5042 /* end confdefs.h. */ 5043 int i; 5044 _ACEOF 5045 if ac_fn_c_try_compile "$LINENO" 5046 then : 5047 xorg_cv_cc_flag_unknown_warning_option=yes 5048 else case e in #( 5049 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5050 esac 5051 fi 5052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5053 esac 5054 fi 5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5056 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5058 CFLAGS="$xorg_testset_save_CFLAGS" 5059 fi 5060 5061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5064 fi 5065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5067 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5068 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5069 then : 5070 printf %s "(cached) " >&6 5071 else case e in #( 5072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5073 /* end confdefs.h. */ 5074 int i; 5075 _ACEOF 5076 if ac_fn_c_try_compile "$LINENO" 5077 then : 5078 xorg_cv_cc_flag_unused_command_line_argument=yes 5079 else case e in #( 5080 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5081 esac 5082 fi 5083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5084 esac 5085 fi 5086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5087 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5089 CFLAGS="$xorg_testset_save_CFLAGS" 5090 fi 5091 5092 found="no" 5093 5094 if test $found = "no" ; then 5095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5096 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5097 fi 5098 5099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5101 fi 5102 5103 CFLAGS="$CFLAGS -Wmissing-prototypes" 5104 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5106 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5107 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5108 if eval test \${$cacheid+y} 5109 then : 5110 printf %s "(cached) " >&6 5111 else case e in #( 5112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5113 /* end confdefs.h. */ 5114 int i; 5115 int 5116 main (void) 5117 { 5118 5119 ; 5120 return 0; 5121 } 5122 _ACEOF 5123 if ac_fn_c_try_link "$LINENO" 5124 then : 5125 eval $cacheid=yes 5126 else case e in #( 5127 e) eval $cacheid=no ;; 5128 esac 5129 fi 5130 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5131 conftest$ac_exeext conftest.$ac_ext ;; 5132 esac 5133 fi 5134 5135 5136 CFLAGS="$xorg_testset_save_CFLAGS" 5137 5138 eval supported=\$$cacheid 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5140 printf "%s\n" "$supported" >&6; } 5141 if test "$supported" = "yes" ; then 5142 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5143 found="yes" 5144 fi 5145 fi 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 xorg_testset_save_CFLAGS="$CFLAGS" 5162 5163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5166 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5167 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5168 then : 5169 printf %s "(cached) " >&6 5170 else case e in #( 5171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5172 /* end confdefs.h. */ 5173 int i; 5174 _ACEOF 5175 if ac_fn_c_try_compile "$LINENO" 5176 then : 5177 xorg_cv_cc_flag_unknown_warning_option=yes 5178 else case e in #( 5179 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5180 esac 5181 fi 5182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5183 esac 5184 fi 5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5186 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5187 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5188 CFLAGS="$xorg_testset_save_CFLAGS" 5189 fi 5190 5191 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5194 fi 5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5197 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5198 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5199 then : 5200 printf %s "(cached) " >&6 5201 else case e in #( 5202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203 /* end confdefs.h. */ 5204 int i; 5205 _ACEOF 5206 if ac_fn_c_try_compile "$LINENO" 5207 then : 5208 xorg_cv_cc_flag_unused_command_line_argument=yes 5209 else case e in #( 5210 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5211 esac 5212 fi 5213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5214 esac 5215 fi 5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5219 CFLAGS="$xorg_testset_save_CFLAGS" 5220 fi 5221 5222 found="no" 5223 5224 if test $found = "no" ; then 5225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5227 fi 5228 5229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5231 fi 5232 5233 CFLAGS="$CFLAGS -Wnested-externs" 5234 5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5236 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5237 cacheid=xorg_cv_cc_flag__Wnested_externs 5238 if eval test \${$cacheid+y} 5239 then : 5240 printf %s "(cached) " >&6 5241 else case e in #( 5242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5243 /* end confdefs.h. */ 5244 int i; 5245 int 5246 main (void) 5247 { 5248 5249 ; 5250 return 0; 5251 } 5252 _ACEOF 5253 if ac_fn_c_try_link "$LINENO" 5254 then : 5255 eval $cacheid=yes 5256 else case e in #( 5257 e) eval $cacheid=no ;; 5258 esac 5259 fi 5260 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5261 conftest$ac_exeext conftest.$ac_ext ;; 5262 esac 5263 fi 5264 5265 5266 CFLAGS="$xorg_testset_save_CFLAGS" 5267 5268 eval supported=\$$cacheid 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5270 printf "%s\n" "$supported" >&6; } 5271 if test "$supported" = "yes" ; then 5272 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5273 found="yes" 5274 fi 5275 fi 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 xorg_testset_save_CFLAGS="$CFLAGS" 5292 5293 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5296 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5297 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5298 then : 5299 printf %s "(cached) " >&6 5300 else case e in #( 5301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5302 /* end confdefs.h. */ 5303 int i; 5304 _ACEOF 5305 if ac_fn_c_try_compile "$LINENO" 5306 then : 5307 xorg_cv_cc_flag_unknown_warning_option=yes 5308 else case e in #( 5309 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5310 esac 5311 fi 5312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5313 esac 5314 fi 5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5316 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5318 CFLAGS="$xorg_testset_save_CFLAGS" 5319 fi 5320 5321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5324 fi 5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5327 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5328 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5329 then : 5330 printf %s "(cached) " >&6 5331 else case e in #( 5332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5333 /* end confdefs.h. */ 5334 int i; 5335 _ACEOF 5336 if ac_fn_c_try_compile "$LINENO" 5337 then : 5338 xorg_cv_cc_flag_unused_command_line_argument=yes 5339 else case e in #( 5340 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5341 esac 5342 fi 5343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5344 esac 5345 fi 5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5347 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5349 CFLAGS="$xorg_testset_save_CFLAGS" 5350 fi 5351 5352 found="no" 5353 5354 if test $found = "no" ; then 5355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5357 fi 5358 5359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5361 fi 5362 5363 CFLAGS="$CFLAGS -Wbad-function-cast" 5364 5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5366 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5367 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5368 if eval test \${$cacheid+y} 5369 then : 5370 printf %s "(cached) " >&6 5371 else case e in #( 5372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5373 /* end confdefs.h. */ 5374 int i; 5375 int 5376 main (void) 5377 { 5378 5379 ; 5380 return 0; 5381 } 5382 _ACEOF 5383 if ac_fn_c_try_link "$LINENO" 5384 then : 5385 eval $cacheid=yes 5386 else case e in #( 5387 e) eval $cacheid=no ;; 5388 esac 5389 fi 5390 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5391 conftest$ac_exeext conftest.$ac_ext ;; 5392 esac 5393 fi 5394 5395 5396 CFLAGS="$xorg_testset_save_CFLAGS" 5397 5398 eval supported=\$$cacheid 5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5400 printf "%s\n" "$supported" >&6; } 5401 if test "$supported" = "yes" ; then 5402 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5403 found="yes" 5404 fi 5405 fi 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 xorg_testset_save_CFLAGS="$CFLAGS" 5422 5423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5426 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5427 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5428 then : 5429 printf %s "(cached) " >&6 5430 else case e in #( 5431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5432 /* end confdefs.h. */ 5433 int i; 5434 _ACEOF 5435 if ac_fn_c_try_compile "$LINENO" 5436 then : 5437 xorg_cv_cc_flag_unknown_warning_option=yes 5438 else case e in #( 5439 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5440 esac 5441 fi 5442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5443 esac 5444 fi 5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5446 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5448 CFLAGS="$xorg_testset_save_CFLAGS" 5449 fi 5450 5451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5454 fi 5455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5457 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5458 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5459 then : 5460 printf %s "(cached) " >&6 5461 else case e in #( 5462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5463 /* end confdefs.h. */ 5464 int i; 5465 _ACEOF 5466 if ac_fn_c_try_compile "$LINENO" 5467 then : 5468 xorg_cv_cc_flag_unused_command_line_argument=yes 5469 else case e in #( 5470 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5471 esac 5472 fi 5473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5474 esac 5475 fi 5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5477 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5479 CFLAGS="$xorg_testset_save_CFLAGS" 5480 fi 5481 5482 found="no" 5483 5484 if test $found = "no" ; then 5485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5487 fi 5488 5489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5491 fi 5492 5493 CFLAGS="$CFLAGS -Wold-style-definition" 5494 5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5496 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5497 cacheid=xorg_cv_cc_flag__Wold_style_definition 5498 if eval test \${$cacheid+y} 5499 then : 5500 printf %s "(cached) " >&6 5501 else case e in #( 5502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5503 /* end confdefs.h. */ 5504 int i; 5505 int 5506 main (void) 5507 { 5508 5509 ; 5510 return 0; 5511 } 5512 _ACEOF 5513 if ac_fn_c_try_link "$LINENO" 5514 then : 5515 eval $cacheid=yes 5516 else case e in #( 5517 e) eval $cacheid=no ;; 5518 esac 5519 fi 5520 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5521 conftest$ac_exeext conftest.$ac_ext ;; 5522 esac 5523 fi 5524 5525 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527 5528 eval supported=\$$cacheid 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5530 printf "%s\n" "$supported" >&6; } 5531 if test "$supported" = "yes" ; then 5532 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5533 found="yes" 5534 fi 5535 fi 5536 5537 if test $found = "no" ; then 5538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5540 fi 5541 5542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5544 fi 5545 5546 CFLAGS="$CFLAGS -fd" 5547 5548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5549 printf %s "checking if $CC supports -fd... " >&6; } 5550 cacheid=xorg_cv_cc_flag__fd 5551 if eval test \${$cacheid+y} 5552 then : 5553 printf %s "(cached) " >&6 5554 else case e in #( 5555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556 /* end confdefs.h. */ 5557 int i; 5558 int 5559 main (void) 5560 { 5561 5562 ; 5563 return 0; 5564 } 5565 _ACEOF 5566 if ac_fn_c_try_link "$LINENO" 5567 then : 5568 eval $cacheid=yes 5569 else case e in #( 5570 e) eval $cacheid=no ;; 5571 esac 5572 fi 5573 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5574 conftest$ac_exeext conftest.$ac_ext ;; 5575 esac 5576 fi 5577 5578 5579 CFLAGS="$xorg_testset_save_CFLAGS" 5580 5581 eval supported=\$$cacheid 5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5583 printf "%s\n" "$supported" >&6; } 5584 if test "$supported" = "yes" ; then 5585 BASE_CFLAGS="$BASE_CFLAGS -fd" 5586 found="yes" 5587 fi 5588 fi 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 xorg_testset_save_CFLAGS="$CFLAGS" 5605 5606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5609 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5610 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5611 then : 5612 printf %s "(cached) " >&6 5613 else case e in #( 5614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5615 /* end confdefs.h. */ 5616 int i; 5617 _ACEOF 5618 if ac_fn_c_try_compile "$LINENO" 5619 then : 5620 xorg_cv_cc_flag_unknown_warning_option=yes 5621 else case e in #( 5622 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5623 esac 5624 fi 5625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5626 esac 5627 fi 5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5629 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5631 CFLAGS="$xorg_testset_save_CFLAGS" 5632 fi 5633 5634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5637 fi 5638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5640 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5641 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5642 then : 5643 printf %s "(cached) " >&6 5644 else case e in #( 5645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5646 /* end confdefs.h. */ 5647 int i; 5648 _ACEOF 5649 if ac_fn_c_try_compile "$LINENO" 5650 then : 5651 xorg_cv_cc_flag_unused_command_line_argument=yes 5652 else case e in #( 5653 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5654 esac 5655 fi 5656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5657 esac 5658 fi 5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5660 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5662 CFLAGS="$xorg_testset_save_CFLAGS" 5663 fi 5664 5665 found="no" 5666 5667 if test $found = "no" ; then 5668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5670 fi 5671 5672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5674 fi 5675 5676 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5677 5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5679 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5680 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5681 if eval test \${$cacheid+y} 5682 then : 5683 printf %s "(cached) " >&6 5684 else case e in #( 5685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5686 /* end confdefs.h. */ 5687 int i; 5688 int 5689 main (void) 5690 { 5691 5692 ; 5693 return 0; 5694 } 5695 _ACEOF 5696 if ac_fn_c_try_link "$LINENO" 5697 then : 5698 eval $cacheid=yes 5699 else case e in #( 5700 e) eval $cacheid=no ;; 5701 esac 5702 fi 5703 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5704 conftest$ac_exeext conftest.$ac_ext ;; 5705 esac 5706 fi 5707 5708 5709 CFLAGS="$xorg_testset_save_CFLAGS" 5710 5711 eval supported=\$$cacheid 5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5713 printf "%s\n" "$supported" >&6; } 5714 if test "$supported" = "yes" ; then 5715 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5716 found="yes" 5717 fi 5718 fi 5719 5720 5721 5722 5723 5724 # This chunk adds additional warnings that could catch undesired effects. 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 xorg_testset_save_CFLAGS="$CFLAGS" 5739 5740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5744 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5745 then : 5746 printf %s "(cached) " >&6 5747 else case e in #( 5748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5749 /* end confdefs.h. */ 5750 int i; 5751 _ACEOF 5752 if ac_fn_c_try_compile "$LINENO" 5753 then : 5754 xorg_cv_cc_flag_unknown_warning_option=yes 5755 else case e in #( 5756 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5757 esac 5758 fi 5759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5760 esac 5761 fi 5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5763 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5764 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5765 CFLAGS="$xorg_testset_save_CFLAGS" 5766 fi 5767 5768 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5771 fi 5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5774 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5775 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5776 then : 5777 printf %s "(cached) " >&6 5778 else case e in #( 5779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5780 /* end confdefs.h. */ 5781 int i; 5782 _ACEOF 5783 if ac_fn_c_try_compile "$LINENO" 5784 then : 5785 xorg_cv_cc_flag_unused_command_line_argument=yes 5786 else case e in #( 5787 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5788 esac 5789 fi 5790 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5791 esac 5792 fi 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5796 CFLAGS="$xorg_testset_save_CFLAGS" 5797 fi 5798 5799 found="no" 5800 5801 if test $found = "no" ; then 5802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5804 fi 5805 5806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5808 fi 5809 5810 CFLAGS="$CFLAGS -Wunused" 5811 5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5813 printf %s "checking if $CC supports -Wunused... " >&6; } 5814 cacheid=xorg_cv_cc_flag__Wunused 5815 if eval test \${$cacheid+y} 5816 then : 5817 printf %s "(cached) " >&6 5818 else case e in #( 5819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5820 /* end confdefs.h. */ 5821 int i; 5822 int 5823 main (void) 5824 { 5825 5826 ; 5827 return 0; 5828 } 5829 _ACEOF 5830 if ac_fn_c_try_link "$LINENO" 5831 then : 5832 eval $cacheid=yes 5833 else case e in #( 5834 e) eval $cacheid=no ;; 5835 esac 5836 fi 5837 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5838 conftest$ac_exeext conftest.$ac_ext ;; 5839 esac 5840 fi 5841 5842 5843 CFLAGS="$xorg_testset_save_CFLAGS" 5844 5845 eval supported=\$$cacheid 5846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5847 printf "%s\n" "$supported" >&6; } 5848 if test "$supported" = "yes" ; then 5849 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5850 found="yes" 5851 fi 5852 fi 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 xorg_testset_save_CFLAGS="$CFLAGS" 5869 5870 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5873 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5874 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5875 then : 5876 printf %s "(cached) " >&6 5877 else case e in #( 5878 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5879 /* end confdefs.h. */ 5880 int i; 5881 _ACEOF 5882 if ac_fn_c_try_compile "$LINENO" 5883 then : 5884 xorg_cv_cc_flag_unknown_warning_option=yes 5885 else case e in #( 5886 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5887 esac 5888 fi 5889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5890 esac 5891 fi 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5893 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5895 CFLAGS="$xorg_testset_save_CFLAGS" 5896 fi 5897 5898 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5901 fi 5902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5904 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5905 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5906 then : 5907 printf %s "(cached) " >&6 5908 else case e in #( 5909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5910 /* end confdefs.h. */ 5911 int i; 5912 _ACEOF 5913 if ac_fn_c_try_compile "$LINENO" 5914 then : 5915 xorg_cv_cc_flag_unused_command_line_argument=yes 5916 else case e in #( 5917 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5918 esac 5919 fi 5920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5921 esac 5922 fi 5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5924 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5925 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5926 CFLAGS="$xorg_testset_save_CFLAGS" 5927 fi 5928 5929 found="no" 5930 5931 if test $found = "no" ; then 5932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5934 fi 5935 5936 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5938 fi 5939 5940 CFLAGS="$CFLAGS -Wuninitialized" 5941 5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 5943 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 5944 cacheid=xorg_cv_cc_flag__Wuninitialized 5945 if eval test \${$cacheid+y} 5946 then : 5947 printf %s "(cached) " >&6 5948 else case e in #( 5949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950 /* end confdefs.h. */ 5951 int i; 5952 int 5953 main (void) 5954 { 5955 5956 ; 5957 return 0; 5958 } 5959 _ACEOF 5960 if ac_fn_c_try_link "$LINENO" 5961 then : 5962 eval $cacheid=yes 5963 else case e in #( 5964 e) eval $cacheid=no ;; 5965 esac 5966 fi 5967 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5968 conftest$ac_exeext conftest.$ac_ext ;; 5969 esac 5970 fi 5971 5972 5973 CFLAGS="$xorg_testset_save_CFLAGS" 5974 5975 eval supported=\$$cacheid 5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5977 printf "%s\n" "$supported" >&6; } 5978 if test "$supported" = "yes" ; then 5979 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 5980 found="yes" 5981 fi 5982 fi 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 xorg_testset_save_CFLAGS="$CFLAGS" 5999 6000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6003 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6004 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6005 then : 6006 printf %s "(cached) " >&6 6007 else case e in #( 6008 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6009 /* end confdefs.h. */ 6010 int i; 6011 _ACEOF 6012 if ac_fn_c_try_compile "$LINENO" 6013 then : 6014 xorg_cv_cc_flag_unknown_warning_option=yes 6015 else case e in #( 6016 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6017 esac 6018 fi 6019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6020 esac 6021 fi 6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6023 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6025 CFLAGS="$xorg_testset_save_CFLAGS" 6026 fi 6027 6028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6031 fi 6032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6034 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6035 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6036 then : 6037 printf %s "(cached) " >&6 6038 else case e in #( 6039 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6040 /* end confdefs.h. */ 6041 int i; 6042 _ACEOF 6043 if ac_fn_c_try_compile "$LINENO" 6044 then : 6045 xorg_cv_cc_flag_unused_command_line_argument=yes 6046 else case e in #( 6047 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6048 esac 6049 fi 6050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6051 esac 6052 fi 6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6054 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6056 CFLAGS="$xorg_testset_save_CFLAGS" 6057 fi 6058 6059 found="no" 6060 6061 if test $found = "no" ; then 6062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6064 fi 6065 6066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6068 fi 6069 6070 CFLAGS="$CFLAGS -Wshadow" 6071 6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6073 printf %s "checking if $CC supports -Wshadow... " >&6; } 6074 cacheid=xorg_cv_cc_flag__Wshadow 6075 if eval test \${$cacheid+y} 6076 then : 6077 printf %s "(cached) " >&6 6078 else case e in #( 6079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6080 /* end confdefs.h. */ 6081 int i; 6082 int 6083 main (void) 6084 { 6085 6086 ; 6087 return 0; 6088 } 6089 _ACEOF 6090 if ac_fn_c_try_link "$LINENO" 6091 then : 6092 eval $cacheid=yes 6093 else case e in #( 6094 e) eval $cacheid=no ;; 6095 esac 6096 fi 6097 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6098 conftest$ac_exeext conftest.$ac_ext ;; 6099 esac 6100 fi 6101 6102 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104 6105 eval supported=\$$cacheid 6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6107 printf "%s\n" "$supported" >&6; } 6108 if test "$supported" = "yes" ; then 6109 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6110 found="yes" 6111 fi 6112 fi 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 xorg_testset_save_CFLAGS="$CFLAGS" 6129 6130 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6133 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6134 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6135 then : 6136 printf %s "(cached) " >&6 6137 else case e in #( 6138 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6139 /* end confdefs.h. */ 6140 int i; 6141 _ACEOF 6142 if ac_fn_c_try_compile "$LINENO" 6143 then : 6144 xorg_cv_cc_flag_unknown_warning_option=yes 6145 else case e in #( 6146 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6147 esac 6148 fi 6149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6150 esac 6151 fi 6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6155 CFLAGS="$xorg_testset_save_CFLAGS" 6156 fi 6157 6158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6161 fi 6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6166 then : 6167 printf %s "(cached) " >&6 6168 else case e in #( 6169 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6170 /* end confdefs.h. */ 6171 int i; 6172 _ACEOF 6173 if ac_fn_c_try_compile "$LINENO" 6174 then : 6175 xorg_cv_cc_flag_unused_command_line_argument=yes 6176 else case e in #( 6177 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6178 esac 6179 fi 6180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6181 esac 6182 fi 6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6184 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6186 CFLAGS="$xorg_testset_save_CFLAGS" 6187 fi 6188 6189 found="no" 6190 6191 if test $found = "no" ; then 6192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6194 fi 6195 6196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6198 fi 6199 6200 CFLAGS="$CFLAGS -Wmissing-noreturn" 6201 6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6203 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6204 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6205 if eval test \${$cacheid+y} 6206 then : 6207 printf %s "(cached) " >&6 6208 else case e in #( 6209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210 /* end confdefs.h. */ 6211 int i; 6212 int 6213 main (void) 6214 { 6215 6216 ; 6217 return 0; 6218 } 6219 _ACEOF 6220 if ac_fn_c_try_link "$LINENO" 6221 then : 6222 eval $cacheid=yes 6223 else case e in #( 6224 e) eval $cacheid=no ;; 6225 esac 6226 fi 6227 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6228 conftest$ac_exeext conftest.$ac_ext ;; 6229 esac 6230 fi 6231 6232 6233 CFLAGS="$xorg_testset_save_CFLAGS" 6234 6235 eval supported=\$$cacheid 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6237 printf "%s\n" "$supported" >&6; } 6238 if test "$supported" = "yes" ; then 6239 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6240 found="yes" 6241 fi 6242 fi 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 xorg_testset_save_CFLAGS="$CFLAGS" 6259 6260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6263 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6264 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6265 then : 6266 printf %s "(cached) " >&6 6267 else case e in #( 6268 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6269 /* end confdefs.h. */ 6270 int i; 6271 _ACEOF 6272 if ac_fn_c_try_compile "$LINENO" 6273 then : 6274 xorg_cv_cc_flag_unknown_warning_option=yes 6275 else case e in #( 6276 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6277 esac 6278 fi 6279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6280 esac 6281 fi 6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6283 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6285 CFLAGS="$xorg_testset_save_CFLAGS" 6286 fi 6287 6288 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6291 fi 6292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6294 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6295 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6296 then : 6297 printf %s "(cached) " >&6 6298 else case e in #( 6299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300 /* end confdefs.h. */ 6301 int i; 6302 _ACEOF 6303 if ac_fn_c_try_compile "$LINENO" 6304 then : 6305 xorg_cv_cc_flag_unused_command_line_argument=yes 6306 else case e in #( 6307 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6308 esac 6309 fi 6310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6311 esac 6312 fi 6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6314 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6316 CFLAGS="$xorg_testset_save_CFLAGS" 6317 fi 6318 6319 found="no" 6320 6321 if test $found = "no" ; then 6322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6324 fi 6325 6326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6328 fi 6329 6330 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6331 6332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6333 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6334 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6335 if eval test \${$cacheid+y} 6336 then : 6337 printf %s "(cached) " >&6 6338 else case e in #( 6339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340 /* end confdefs.h. */ 6341 int i; 6342 int 6343 main (void) 6344 { 6345 6346 ; 6347 return 0; 6348 } 6349 _ACEOF 6350 if ac_fn_c_try_link "$LINENO" 6351 then : 6352 eval $cacheid=yes 6353 else case e in #( 6354 e) eval $cacheid=no ;; 6355 esac 6356 fi 6357 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6358 conftest$ac_exeext conftest.$ac_ext ;; 6359 esac 6360 fi 6361 6362 6363 CFLAGS="$xorg_testset_save_CFLAGS" 6364 6365 eval supported=\$$cacheid 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6367 printf "%s\n" "$supported" >&6; } 6368 if test "$supported" = "yes" ; then 6369 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6370 found="yes" 6371 fi 6372 fi 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 xorg_testset_save_CFLAGS="$CFLAGS" 6389 6390 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6391 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6393 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6394 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6395 then : 6396 printf %s "(cached) " >&6 6397 else case e in #( 6398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6399 /* end confdefs.h. */ 6400 int i; 6401 _ACEOF 6402 if ac_fn_c_try_compile "$LINENO" 6403 then : 6404 xorg_cv_cc_flag_unknown_warning_option=yes 6405 else case e in #( 6406 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6407 esac 6408 fi 6409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6410 esac 6411 fi 6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6413 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6415 CFLAGS="$xorg_testset_save_CFLAGS" 6416 fi 6417 6418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6421 fi 6422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6424 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6425 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6426 then : 6427 printf %s "(cached) " >&6 6428 else case e in #( 6429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6430 /* end confdefs.h. */ 6431 int i; 6432 _ACEOF 6433 if ac_fn_c_try_compile "$LINENO" 6434 then : 6435 xorg_cv_cc_flag_unused_command_line_argument=yes 6436 else case e in #( 6437 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6438 esac 6439 fi 6440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6441 esac 6442 fi 6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6444 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6445 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6446 CFLAGS="$xorg_testset_save_CFLAGS" 6447 fi 6448 6449 found="no" 6450 6451 if test $found = "no" ; then 6452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6454 fi 6455 6456 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6458 fi 6459 6460 CFLAGS="$CFLAGS -Wredundant-decls" 6461 6462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6463 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6464 cacheid=xorg_cv_cc_flag__Wredundant_decls 6465 if eval test \${$cacheid+y} 6466 then : 6467 printf %s "(cached) " >&6 6468 else case e in #( 6469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6470 /* end confdefs.h. */ 6471 int i; 6472 int 6473 main (void) 6474 { 6475 6476 ; 6477 return 0; 6478 } 6479 _ACEOF 6480 if ac_fn_c_try_link "$LINENO" 6481 then : 6482 eval $cacheid=yes 6483 else case e in #( 6484 e) eval $cacheid=no ;; 6485 esac 6486 fi 6487 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6488 conftest$ac_exeext conftest.$ac_ext ;; 6489 esac 6490 fi 6491 6492 6493 CFLAGS="$xorg_testset_save_CFLAGS" 6494 6495 eval supported=\$$cacheid 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6497 printf "%s\n" "$supported" >&6; } 6498 if test "$supported" = "yes" ; then 6499 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6500 found="yes" 6501 fi 6502 fi 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 xorg_testset_save_CFLAGS="$CFLAGS" 6519 6520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6523 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6524 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6525 then : 6526 printf %s "(cached) " >&6 6527 else case e in #( 6528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529 /* end confdefs.h. */ 6530 int i; 6531 _ACEOF 6532 if ac_fn_c_try_compile "$LINENO" 6533 then : 6534 xorg_cv_cc_flag_unknown_warning_option=yes 6535 else case e in #( 6536 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6537 esac 6538 fi 6539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6540 esac 6541 fi 6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6543 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6545 CFLAGS="$xorg_testset_save_CFLAGS" 6546 fi 6547 6548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551 fi 6552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6554 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6555 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6556 then : 6557 printf %s "(cached) " >&6 6558 else case e in #( 6559 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560 /* end confdefs.h. */ 6561 int i; 6562 _ACEOF 6563 if ac_fn_c_try_compile "$LINENO" 6564 then : 6565 xorg_cv_cc_flag_unused_command_line_argument=yes 6566 else case e in #( 6567 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6568 esac 6569 fi 6570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6571 esac 6572 fi 6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6574 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6576 CFLAGS="$xorg_testset_save_CFLAGS" 6577 fi 6578 6579 found="no" 6580 6581 if test $found = "no" ; then 6582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6584 fi 6585 6586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6588 fi 6589 6590 CFLAGS="$CFLAGS -Wlogical-op" 6591 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6593 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6594 cacheid=xorg_cv_cc_flag__Wlogical_op 6595 if eval test \${$cacheid+y} 6596 then : 6597 printf %s "(cached) " >&6 6598 else case e in #( 6599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6600 /* end confdefs.h. */ 6601 int i; 6602 int 6603 main (void) 6604 { 6605 6606 ; 6607 return 0; 6608 } 6609 _ACEOF 6610 if ac_fn_c_try_link "$LINENO" 6611 then : 6612 eval $cacheid=yes 6613 else case e in #( 6614 e) eval $cacheid=no ;; 6615 esac 6616 fi 6617 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6618 conftest$ac_exeext conftest.$ac_ext ;; 6619 esac 6620 fi 6621 6622 6623 CFLAGS="$xorg_testset_save_CFLAGS" 6624 6625 eval supported=\$$cacheid 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6627 printf "%s\n" "$supported" >&6; } 6628 if test "$supported" = "yes" ; then 6629 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6630 found="yes" 6631 fi 6632 fi 6633 6634 6635 6636 # These are currently disabled because they are noisy. They will be enabled 6637 # in the future once the codebase is sufficiently modernized to silence 6638 # them. For now, I don't want them to drown out the other warnings. 6639 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6640 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6641 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6642 6643 # Turn some warnings into errors, so we don't accidentally get successful builds 6644 # when there are problems that should be fixed. 6645 6646 if test "x$SELECTIVE_WERROR" = "xyes" ; then 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 xorg_testset_save_CFLAGS="$CFLAGS" 6661 6662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6666 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6667 then : 6668 printf %s "(cached) " >&6 6669 else case e in #( 6670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671 /* end confdefs.h. */ 6672 int i; 6673 _ACEOF 6674 if ac_fn_c_try_compile "$LINENO" 6675 then : 6676 xorg_cv_cc_flag_unknown_warning_option=yes 6677 else case e in #( 6678 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6679 esac 6680 fi 6681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6682 esac 6683 fi 6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6687 CFLAGS="$xorg_testset_save_CFLAGS" 6688 fi 6689 6690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6693 fi 6694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6698 then : 6699 printf %s "(cached) " >&6 6700 else case e in #( 6701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702 /* end confdefs.h. */ 6703 int i; 6704 _ACEOF 6705 if ac_fn_c_try_compile "$LINENO" 6706 then : 6707 xorg_cv_cc_flag_unused_command_line_argument=yes 6708 else case e in #( 6709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6710 esac 6711 fi 6712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6713 esac 6714 fi 6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6718 CFLAGS="$xorg_testset_save_CFLAGS" 6719 fi 6720 6721 found="no" 6722 6723 if test $found = "no" ; then 6724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6726 fi 6727 6728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6730 fi 6731 6732 CFLAGS="$CFLAGS -Werror=implicit" 6733 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6735 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 6736 cacheid=xorg_cv_cc_flag__Werror_implicit 6737 if eval test \${$cacheid+y} 6738 then : 6739 printf %s "(cached) " >&6 6740 else case e in #( 6741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742 /* end confdefs.h. */ 6743 int i; 6744 int 6745 main (void) 6746 { 6747 6748 ; 6749 return 0; 6750 } 6751 _ACEOF 6752 if ac_fn_c_try_link "$LINENO" 6753 then : 6754 eval $cacheid=yes 6755 else case e in #( 6756 e) eval $cacheid=no ;; 6757 esac 6758 fi 6759 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6760 conftest$ac_exeext conftest.$ac_ext ;; 6761 esac 6762 fi 6763 6764 6765 CFLAGS="$xorg_testset_save_CFLAGS" 6766 6767 eval supported=\$$cacheid 6768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6769 printf "%s\n" "$supported" >&6; } 6770 if test "$supported" = "yes" ; then 6771 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6772 found="yes" 6773 fi 6774 fi 6775 6776 if test $found = "no" ; then 6777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6779 fi 6780 6781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6783 fi 6784 6785 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6786 6787 { 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 6788 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6789 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6790 if eval test \${$cacheid+y} 6791 then : 6792 printf %s "(cached) " >&6 6793 else case e in #( 6794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6795 /* end confdefs.h. */ 6796 int i; 6797 int 6798 main (void) 6799 { 6800 6801 ; 6802 return 0; 6803 } 6804 _ACEOF 6805 if ac_fn_c_try_link "$LINENO" 6806 then : 6807 eval $cacheid=yes 6808 else case e in #( 6809 e) eval $cacheid=no ;; 6810 esac 6811 fi 6812 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6813 conftest$ac_exeext conftest.$ac_ext ;; 6814 esac 6815 fi 6816 6817 6818 CFLAGS="$xorg_testset_save_CFLAGS" 6819 6820 eval supported=\$$cacheid 6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6822 printf "%s\n" "$supported" >&6; } 6823 if test "$supported" = "yes" ; then 6824 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6825 found="yes" 6826 fi 6827 fi 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 xorg_testset_save_CFLAGS="$CFLAGS" 6844 6845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6848 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6849 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6850 then : 6851 printf %s "(cached) " >&6 6852 else case e in #( 6853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6854 /* end confdefs.h. */ 6855 int i; 6856 _ACEOF 6857 if ac_fn_c_try_compile "$LINENO" 6858 then : 6859 xorg_cv_cc_flag_unknown_warning_option=yes 6860 else case e in #( 6861 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6862 esac 6863 fi 6864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6865 esac 6866 fi 6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6868 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6870 CFLAGS="$xorg_testset_save_CFLAGS" 6871 fi 6872 6873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6876 fi 6877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6879 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6880 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6881 then : 6882 printf %s "(cached) " >&6 6883 else case e in #( 6884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885 /* end confdefs.h. */ 6886 int i; 6887 _ACEOF 6888 if ac_fn_c_try_compile "$LINENO" 6889 then : 6890 xorg_cv_cc_flag_unused_command_line_argument=yes 6891 else case e in #( 6892 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6893 esac 6894 fi 6895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6896 esac 6897 fi 6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6899 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6901 CFLAGS="$xorg_testset_save_CFLAGS" 6902 fi 6903 6904 found="no" 6905 6906 if test $found = "no" ; then 6907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6909 fi 6910 6911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6913 fi 6914 6915 CFLAGS="$CFLAGS -Werror=nonnull" 6916 6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6918 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 6919 cacheid=xorg_cv_cc_flag__Werror_nonnull 6920 if eval test \${$cacheid+y} 6921 then : 6922 printf %s "(cached) " >&6 6923 else case e in #( 6924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6925 /* end confdefs.h. */ 6926 int i; 6927 int 6928 main (void) 6929 { 6930 6931 ; 6932 return 0; 6933 } 6934 _ACEOF 6935 if ac_fn_c_try_link "$LINENO" 6936 then : 6937 eval $cacheid=yes 6938 else case e in #( 6939 e) eval $cacheid=no ;; 6940 esac 6941 fi 6942 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6943 conftest$ac_exeext conftest.$ac_ext ;; 6944 esac 6945 fi 6946 6947 6948 CFLAGS="$xorg_testset_save_CFLAGS" 6949 6950 eval supported=\$$cacheid 6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6952 printf "%s\n" "$supported" >&6; } 6953 if test "$supported" = "yes" ; then 6954 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6955 found="yes" 6956 fi 6957 fi 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 xorg_testset_save_CFLAGS="$CFLAGS" 6974 6975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6978 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6979 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6980 then : 6981 printf %s "(cached) " >&6 6982 else case e in #( 6983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6984 /* end confdefs.h. */ 6985 int i; 6986 _ACEOF 6987 if ac_fn_c_try_compile "$LINENO" 6988 then : 6989 xorg_cv_cc_flag_unknown_warning_option=yes 6990 else case e in #( 6991 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6992 esac 6993 fi 6994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6995 esac 6996 fi 6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6998 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7000 CFLAGS="$xorg_testset_save_CFLAGS" 7001 fi 7002 7003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7006 fi 7007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7009 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7010 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7011 then : 7012 printf %s "(cached) " >&6 7013 else case e in #( 7014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7015 /* end confdefs.h. */ 7016 int i; 7017 _ACEOF 7018 if ac_fn_c_try_compile "$LINENO" 7019 then : 7020 xorg_cv_cc_flag_unused_command_line_argument=yes 7021 else case e in #( 7022 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7023 esac 7024 fi 7025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7026 esac 7027 fi 7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7029 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7031 CFLAGS="$xorg_testset_save_CFLAGS" 7032 fi 7033 7034 found="no" 7035 7036 if test $found = "no" ; then 7037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7039 fi 7040 7041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7043 fi 7044 7045 CFLAGS="$CFLAGS -Werror=init-self" 7046 7047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7048 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7049 cacheid=xorg_cv_cc_flag__Werror_init_self 7050 if eval test \${$cacheid+y} 7051 then : 7052 printf %s "(cached) " >&6 7053 else case e in #( 7054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7055 /* end confdefs.h. */ 7056 int i; 7057 int 7058 main (void) 7059 { 7060 7061 ; 7062 return 0; 7063 } 7064 _ACEOF 7065 if ac_fn_c_try_link "$LINENO" 7066 then : 7067 eval $cacheid=yes 7068 else case e in #( 7069 e) eval $cacheid=no ;; 7070 esac 7071 fi 7072 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7073 conftest$ac_exeext conftest.$ac_ext ;; 7074 esac 7075 fi 7076 7077 7078 CFLAGS="$xorg_testset_save_CFLAGS" 7079 7080 eval supported=\$$cacheid 7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7082 printf "%s\n" "$supported" >&6; } 7083 if test "$supported" = "yes" ; then 7084 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7085 found="yes" 7086 fi 7087 fi 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 xorg_testset_save_CFLAGS="$CFLAGS" 7104 7105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7108 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7109 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7110 then : 7111 printf %s "(cached) " >&6 7112 else case e in #( 7113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7114 /* end confdefs.h. */ 7115 int i; 7116 _ACEOF 7117 if ac_fn_c_try_compile "$LINENO" 7118 then : 7119 xorg_cv_cc_flag_unknown_warning_option=yes 7120 else case e in #( 7121 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7122 esac 7123 fi 7124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7125 esac 7126 fi 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7128 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7130 CFLAGS="$xorg_testset_save_CFLAGS" 7131 fi 7132 7133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7136 fi 7137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7141 then : 7142 printf %s "(cached) " >&6 7143 else case e in #( 7144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145 /* end confdefs.h. */ 7146 int i; 7147 _ACEOF 7148 if ac_fn_c_try_compile "$LINENO" 7149 then : 7150 xorg_cv_cc_flag_unused_command_line_argument=yes 7151 else case e in #( 7152 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7153 esac 7154 fi 7155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7156 esac 7157 fi 7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7159 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7161 CFLAGS="$xorg_testset_save_CFLAGS" 7162 fi 7163 7164 found="no" 7165 7166 if test $found = "no" ; then 7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7169 fi 7170 7171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7173 fi 7174 7175 CFLAGS="$CFLAGS -Werror=main" 7176 7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7178 printf %s "checking if $CC supports -Werror=main... " >&6; } 7179 cacheid=xorg_cv_cc_flag__Werror_main 7180 if eval test \${$cacheid+y} 7181 then : 7182 printf %s "(cached) " >&6 7183 else case e in #( 7184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185 /* end confdefs.h. */ 7186 int i; 7187 int 7188 main (void) 7189 { 7190 7191 ; 7192 return 0; 7193 } 7194 _ACEOF 7195 if ac_fn_c_try_link "$LINENO" 7196 then : 7197 eval $cacheid=yes 7198 else case e in #( 7199 e) eval $cacheid=no ;; 7200 esac 7201 fi 7202 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7203 conftest$ac_exeext conftest.$ac_ext ;; 7204 esac 7205 fi 7206 7207 7208 CFLAGS="$xorg_testset_save_CFLAGS" 7209 7210 eval supported=\$$cacheid 7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7212 printf "%s\n" "$supported" >&6; } 7213 if test "$supported" = "yes" ; then 7214 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7215 found="yes" 7216 fi 7217 fi 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 xorg_testset_save_CFLAGS="$CFLAGS" 7234 7235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7239 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7240 then : 7241 printf %s "(cached) " >&6 7242 else case e in #( 7243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7244 /* end confdefs.h. */ 7245 int i; 7246 _ACEOF 7247 if ac_fn_c_try_compile "$LINENO" 7248 then : 7249 xorg_cv_cc_flag_unknown_warning_option=yes 7250 else case e in #( 7251 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7252 esac 7253 fi 7254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7255 esac 7256 fi 7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7258 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7260 CFLAGS="$xorg_testset_save_CFLAGS" 7261 fi 7262 7263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7266 fi 7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7271 then : 7272 printf %s "(cached) " >&6 7273 else case e in #( 7274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7275 /* end confdefs.h. */ 7276 int i; 7277 _ACEOF 7278 if ac_fn_c_try_compile "$LINENO" 7279 then : 7280 xorg_cv_cc_flag_unused_command_line_argument=yes 7281 else case e in #( 7282 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7283 esac 7284 fi 7285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7286 esac 7287 fi 7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7289 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7291 CFLAGS="$xorg_testset_save_CFLAGS" 7292 fi 7293 7294 found="no" 7295 7296 if test $found = "no" ; then 7297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7299 fi 7300 7301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7303 fi 7304 7305 CFLAGS="$CFLAGS -Werror=missing-braces" 7306 7307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7308 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7309 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7310 if eval test \${$cacheid+y} 7311 then : 7312 printf %s "(cached) " >&6 7313 else case e in #( 7314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315 /* end confdefs.h. */ 7316 int i; 7317 int 7318 main (void) 7319 { 7320 7321 ; 7322 return 0; 7323 } 7324 _ACEOF 7325 if ac_fn_c_try_link "$LINENO" 7326 then : 7327 eval $cacheid=yes 7328 else case e in #( 7329 e) eval $cacheid=no ;; 7330 esac 7331 fi 7332 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7333 conftest$ac_exeext conftest.$ac_ext ;; 7334 esac 7335 fi 7336 7337 7338 CFLAGS="$xorg_testset_save_CFLAGS" 7339 7340 eval supported=\$$cacheid 7341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7342 printf "%s\n" "$supported" >&6; } 7343 if test "$supported" = "yes" ; then 7344 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7345 found="yes" 7346 fi 7347 fi 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 xorg_testset_save_CFLAGS="$CFLAGS" 7364 7365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7368 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7369 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7370 then : 7371 printf %s "(cached) " >&6 7372 else case e in #( 7373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7374 /* end confdefs.h. */ 7375 int i; 7376 _ACEOF 7377 if ac_fn_c_try_compile "$LINENO" 7378 then : 7379 xorg_cv_cc_flag_unknown_warning_option=yes 7380 else case e in #( 7381 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7382 esac 7383 fi 7384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7385 esac 7386 fi 7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7388 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7390 CFLAGS="$xorg_testset_save_CFLAGS" 7391 fi 7392 7393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7396 fi 7397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7401 then : 7402 printf %s "(cached) " >&6 7403 else case e in #( 7404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7405 /* end confdefs.h. */ 7406 int i; 7407 _ACEOF 7408 if ac_fn_c_try_compile "$LINENO" 7409 then : 7410 xorg_cv_cc_flag_unused_command_line_argument=yes 7411 else case e in #( 7412 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7413 esac 7414 fi 7415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7416 esac 7417 fi 7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7419 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7421 CFLAGS="$xorg_testset_save_CFLAGS" 7422 fi 7423 7424 found="no" 7425 7426 if test $found = "no" ; then 7427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7429 fi 7430 7431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7433 fi 7434 7435 CFLAGS="$CFLAGS -Werror=sequence-point" 7436 7437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7438 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7439 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7440 if eval test \${$cacheid+y} 7441 then : 7442 printf %s "(cached) " >&6 7443 else case e in #( 7444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7445 /* end confdefs.h. */ 7446 int i; 7447 int 7448 main (void) 7449 { 7450 7451 ; 7452 return 0; 7453 } 7454 _ACEOF 7455 if ac_fn_c_try_link "$LINENO" 7456 then : 7457 eval $cacheid=yes 7458 else case e in #( 7459 e) eval $cacheid=no ;; 7460 esac 7461 fi 7462 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7463 conftest$ac_exeext conftest.$ac_ext ;; 7464 esac 7465 fi 7466 7467 7468 CFLAGS="$xorg_testset_save_CFLAGS" 7469 7470 eval supported=\$$cacheid 7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7472 printf "%s\n" "$supported" >&6; } 7473 if test "$supported" = "yes" ; then 7474 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7475 found="yes" 7476 fi 7477 fi 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 xorg_testset_save_CFLAGS="$CFLAGS" 7494 7495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7499 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7500 then : 7501 printf %s "(cached) " >&6 7502 else case e in #( 7503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504 /* end confdefs.h. */ 7505 int i; 7506 _ACEOF 7507 if ac_fn_c_try_compile "$LINENO" 7508 then : 7509 xorg_cv_cc_flag_unknown_warning_option=yes 7510 else case e in #( 7511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7512 esac 7513 fi 7514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7515 esac 7516 fi 7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7518 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7520 CFLAGS="$xorg_testset_save_CFLAGS" 7521 fi 7522 7523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7529 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7530 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7531 then : 7532 printf %s "(cached) " >&6 7533 else case e in #( 7534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7535 /* end confdefs.h. */ 7536 int i; 7537 _ACEOF 7538 if ac_fn_c_try_compile "$LINENO" 7539 then : 7540 xorg_cv_cc_flag_unused_command_line_argument=yes 7541 else case e in #( 7542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7543 esac 7544 fi 7545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7546 esac 7547 fi 7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7551 CFLAGS="$xorg_testset_save_CFLAGS" 7552 fi 7553 7554 found="no" 7555 7556 if test $found = "no" ; then 7557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7559 fi 7560 7561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7563 fi 7564 7565 CFLAGS="$CFLAGS -Werror=return-type" 7566 7567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7568 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7569 cacheid=xorg_cv_cc_flag__Werror_return_type 7570 if eval test \${$cacheid+y} 7571 then : 7572 printf %s "(cached) " >&6 7573 else case e in #( 7574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7575 /* end confdefs.h. */ 7576 int i; 7577 int 7578 main (void) 7579 { 7580 7581 ; 7582 return 0; 7583 } 7584 _ACEOF 7585 if ac_fn_c_try_link "$LINENO" 7586 then : 7587 eval $cacheid=yes 7588 else case e in #( 7589 e) eval $cacheid=no ;; 7590 esac 7591 fi 7592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7593 conftest$ac_exeext conftest.$ac_ext ;; 7594 esac 7595 fi 7596 7597 7598 CFLAGS="$xorg_testset_save_CFLAGS" 7599 7600 eval supported=\$$cacheid 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7602 printf "%s\n" "$supported" >&6; } 7603 if test "$supported" = "yes" ; then 7604 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7605 found="yes" 7606 fi 7607 fi 7608 7609 if test $found = "no" ; then 7610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7612 fi 7613 7614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7616 fi 7617 7618 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7619 7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7621 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7622 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7623 if eval test \${$cacheid+y} 7624 then : 7625 printf %s "(cached) " >&6 7626 else case e in #( 7627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628 /* end confdefs.h. */ 7629 int i; 7630 int 7631 main (void) 7632 { 7633 7634 ; 7635 return 0; 7636 } 7637 _ACEOF 7638 if ac_fn_c_try_link "$LINENO" 7639 then : 7640 eval $cacheid=yes 7641 else case e in #( 7642 e) eval $cacheid=no ;; 7643 esac 7644 fi 7645 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7646 conftest$ac_exeext conftest.$ac_ext ;; 7647 esac 7648 fi 7649 7650 7651 CFLAGS="$xorg_testset_save_CFLAGS" 7652 7653 eval supported=\$$cacheid 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7655 printf "%s\n" "$supported" >&6; } 7656 if test "$supported" = "yes" ; then 7657 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7658 found="yes" 7659 fi 7660 fi 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 xorg_testset_save_CFLAGS="$CFLAGS" 7677 7678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7681 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7682 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7683 then : 7684 printf %s "(cached) " >&6 7685 else case e in #( 7686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687 /* end confdefs.h. */ 7688 int i; 7689 _ACEOF 7690 if ac_fn_c_try_compile "$LINENO" 7691 then : 7692 xorg_cv_cc_flag_unknown_warning_option=yes 7693 else case e in #( 7694 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7695 esac 7696 fi 7697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7698 esac 7699 fi 7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7703 CFLAGS="$xorg_testset_save_CFLAGS" 7704 fi 7705 7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7709 fi 7710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7714 then : 7715 printf %s "(cached) " >&6 7716 else case e in #( 7717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7718 /* end confdefs.h. */ 7719 int i; 7720 _ACEOF 7721 if ac_fn_c_try_compile "$LINENO" 7722 then : 7723 xorg_cv_cc_flag_unused_command_line_argument=yes 7724 else case e in #( 7725 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7726 esac 7727 fi 7728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7729 esac 7730 fi 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7732 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7734 CFLAGS="$xorg_testset_save_CFLAGS" 7735 fi 7736 7737 found="no" 7738 7739 if test $found = "no" ; then 7740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7742 fi 7743 7744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7746 fi 7747 7748 CFLAGS="$CFLAGS -Werror=trigraphs" 7749 7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7751 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 7752 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7753 if eval test \${$cacheid+y} 7754 then : 7755 printf %s "(cached) " >&6 7756 else case e in #( 7757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758 /* end confdefs.h. */ 7759 int i; 7760 int 7761 main (void) 7762 { 7763 7764 ; 7765 return 0; 7766 } 7767 _ACEOF 7768 if ac_fn_c_try_link "$LINENO" 7769 then : 7770 eval $cacheid=yes 7771 else case e in #( 7772 e) eval $cacheid=no ;; 7773 esac 7774 fi 7775 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7776 conftest$ac_exeext conftest.$ac_ext ;; 7777 esac 7778 fi 7779 7780 7781 CFLAGS="$xorg_testset_save_CFLAGS" 7782 7783 eval supported=\$$cacheid 7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7785 printf "%s\n" "$supported" >&6; } 7786 if test "$supported" = "yes" ; then 7787 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7788 found="yes" 7789 fi 7790 fi 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 xorg_testset_save_CFLAGS="$CFLAGS" 7807 7808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7811 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7812 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7813 then : 7814 printf %s "(cached) " >&6 7815 else case e in #( 7816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7817 /* end confdefs.h. */ 7818 int i; 7819 _ACEOF 7820 if ac_fn_c_try_compile "$LINENO" 7821 then : 7822 xorg_cv_cc_flag_unknown_warning_option=yes 7823 else case e in #( 7824 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7825 esac 7826 fi 7827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7828 esac 7829 fi 7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7831 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7832 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7833 CFLAGS="$xorg_testset_save_CFLAGS" 7834 fi 7835 7836 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7839 fi 7840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7842 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7843 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7844 then : 7845 printf %s "(cached) " >&6 7846 else case e in #( 7847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7848 /* end confdefs.h. */ 7849 int i; 7850 _ACEOF 7851 if ac_fn_c_try_compile "$LINENO" 7852 then : 7853 xorg_cv_cc_flag_unused_command_line_argument=yes 7854 else case e in #( 7855 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7856 esac 7857 fi 7858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7859 esac 7860 fi 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7862 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7863 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7864 CFLAGS="$xorg_testset_save_CFLAGS" 7865 fi 7866 7867 found="no" 7868 7869 if test $found = "no" ; then 7870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7872 fi 7873 7874 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7876 fi 7877 7878 CFLAGS="$CFLAGS -Werror=array-bounds" 7879 7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7881 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 7882 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7883 if eval test \${$cacheid+y} 7884 then : 7885 printf %s "(cached) " >&6 7886 else case e in #( 7887 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888 /* end confdefs.h. */ 7889 int i; 7890 int 7891 main (void) 7892 { 7893 7894 ; 7895 return 0; 7896 } 7897 _ACEOF 7898 if ac_fn_c_try_link "$LINENO" 7899 then : 7900 eval $cacheid=yes 7901 else case e in #( 7902 e) eval $cacheid=no ;; 7903 esac 7904 fi 7905 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7906 conftest$ac_exeext conftest.$ac_ext ;; 7907 esac 7908 fi 7909 7910 7911 CFLAGS="$xorg_testset_save_CFLAGS" 7912 7913 eval supported=\$$cacheid 7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7915 printf "%s\n" "$supported" >&6; } 7916 if test "$supported" = "yes" ; then 7917 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7918 found="yes" 7919 fi 7920 fi 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 xorg_testset_save_CFLAGS="$CFLAGS" 7937 7938 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7941 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7942 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7943 then : 7944 printf %s "(cached) " >&6 7945 else case e in #( 7946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7947 /* end confdefs.h. */ 7948 int i; 7949 _ACEOF 7950 if ac_fn_c_try_compile "$LINENO" 7951 then : 7952 xorg_cv_cc_flag_unknown_warning_option=yes 7953 else case e in #( 7954 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7955 esac 7956 fi 7957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7958 esac 7959 fi 7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7963 CFLAGS="$xorg_testset_save_CFLAGS" 7964 fi 7965 7966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7969 fi 7970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7974 then : 7975 printf %s "(cached) " >&6 7976 else case e in #( 7977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7978 /* end confdefs.h. */ 7979 int i; 7980 _ACEOF 7981 if ac_fn_c_try_compile "$LINENO" 7982 then : 7983 xorg_cv_cc_flag_unused_command_line_argument=yes 7984 else case e in #( 7985 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7986 esac 7987 fi 7988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7989 esac 7990 fi 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7992 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7994 CFLAGS="$xorg_testset_save_CFLAGS" 7995 fi 7996 7997 found="no" 7998 7999 if test $found = "no" ; then 8000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8002 fi 8003 8004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8006 fi 8007 8008 CFLAGS="$CFLAGS -Werror=write-strings" 8009 8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8011 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8012 cacheid=xorg_cv_cc_flag__Werror_write_strings 8013 if eval test \${$cacheid+y} 8014 then : 8015 printf %s "(cached) " >&6 8016 else case e in #( 8017 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018 /* end confdefs.h. */ 8019 int i; 8020 int 8021 main (void) 8022 { 8023 8024 ; 8025 return 0; 8026 } 8027 _ACEOF 8028 if ac_fn_c_try_link "$LINENO" 8029 then : 8030 eval $cacheid=yes 8031 else case e in #( 8032 e) eval $cacheid=no ;; 8033 esac 8034 fi 8035 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8036 conftest$ac_exeext conftest.$ac_ext ;; 8037 esac 8038 fi 8039 8040 8041 CFLAGS="$xorg_testset_save_CFLAGS" 8042 8043 eval supported=\$$cacheid 8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8045 printf "%s\n" "$supported" >&6; } 8046 if test "$supported" = "yes" ; then 8047 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8048 found="yes" 8049 fi 8050 fi 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 xorg_testset_save_CFLAGS="$CFLAGS" 8067 8068 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8071 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8072 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8073 then : 8074 printf %s "(cached) " >&6 8075 else case e in #( 8076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8077 /* end confdefs.h. */ 8078 int i; 8079 _ACEOF 8080 if ac_fn_c_try_compile "$LINENO" 8081 then : 8082 xorg_cv_cc_flag_unknown_warning_option=yes 8083 else case e in #( 8084 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8085 esac 8086 fi 8087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8088 esac 8089 fi 8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8091 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8093 CFLAGS="$xorg_testset_save_CFLAGS" 8094 fi 8095 8096 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8099 fi 8100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8102 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8103 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8104 then : 8105 printf %s "(cached) " >&6 8106 else case e in #( 8107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8108 /* end confdefs.h. */ 8109 int i; 8110 _ACEOF 8111 if ac_fn_c_try_compile "$LINENO" 8112 then : 8113 xorg_cv_cc_flag_unused_command_line_argument=yes 8114 else case e in #( 8115 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8116 esac 8117 fi 8118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8119 esac 8120 fi 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8122 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8124 CFLAGS="$xorg_testset_save_CFLAGS" 8125 fi 8126 8127 found="no" 8128 8129 if test $found = "no" ; then 8130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8132 fi 8133 8134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8136 fi 8137 8138 CFLAGS="$CFLAGS -Werror=address" 8139 8140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8141 printf %s "checking if $CC supports -Werror=address... " >&6; } 8142 cacheid=xorg_cv_cc_flag__Werror_address 8143 if eval test \${$cacheid+y} 8144 then : 8145 printf %s "(cached) " >&6 8146 else case e in #( 8147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148 /* end confdefs.h. */ 8149 int i; 8150 int 8151 main (void) 8152 { 8153 8154 ; 8155 return 0; 8156 } 8157 _ACEOF 8158 if ac_fn_c_try_link "$LINENO" 8159 then : 8160 eval $cacheid=yes 8161 else case e in #( 8162 e) eval $cacheid=no ;; 8163 esac 8164 fi 8165 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8166 conftest$ac_exeext conftest.$ac_ext ;; 8167 esac 8168 fi 8169 8170 8171 CFLAGS="$xorg_testset_save_CFLAGS" 8172 8173 eval supported=\$$cacheid 8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8175 printf "%s\n" "$supported" >&6; } 8176 if test "$supported" = "yes" ; then 8177 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8178 found="yes" 8179 fi 8180 fi 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 xorg_testset_save_CFLAGS="$CFLAGS" 8197 8198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8201 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8202 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8203 then : 8204 printf %s "(cached) " >&6 8205 else case e in #( 8206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8207 /* end confdefs.h. */ 8208 int i; 8209 _ACEOF 8210 if ac_fn_c_try_compile "$LINENO" 8211 then : 8212 xorg_cv_cc_flag_unknown_warning_option=yes 8213 else case e in #( 8214 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8215 esac 8216 fi 8217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8218 esac 8219 fi 8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8221 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224 fi 8225 8226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8229 fi 8230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8232 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8233 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8234 then : 8235 printf %s "(cached) " >&6 8236 else case e in #( 8237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8238 /* end confdefs.h. */ 8239 int i; 8240 _ACEOF 8241 if ac_fn_c_try_compile "$LINENO" 8242 then : 8243 xorg_cv_cc_flag_unused_command_line_argument=yes 8244 else case e in #( 8245 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8246 esac 8247 fi 8248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8249 esac 8250 fi 8251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8252 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8254 CFLAGS="$xorg_testset_save_CFLAGS" 8255 fi 8256 8257 found="no" 8258 8259 if test $found = "no" ; then 8260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8262 fi 8263 8264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8266 fi 8267 8268 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8269 8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8271 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8272 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8273 if eval test \${$cacheid+y} 8274 then : 8275 printf %s "(cached) " >&6 8276 else case e in #( 8277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8278 /* end confdefs.h. */ 8279 int i; 8280 int 8281 main (void) 8282 { 8283 8284 ; 8285 return 0; 8286 } 8287 _ACEOF 8288 if ac_fn_c_try_link "$LINENO" 8289 then : 8290 eval $cacheid=yes 8291 else case e in #( 8292 e) eval $cacheid=no ;; 8293 esac 8294 fi 8295 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8296 conftest$ac_exeext conftest.$ac_ext ;; 8297 esac 8298 fi 8299 8300 8301 CFLAGS="$xorg_testset_save_CFLAGS" 8302 8303 eval supported=\$$cacheid 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8305 printf "%s\n" "$supported" >&6; } 8306 if test "$supported" = "yes" ; then 8307 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8308 found="yes" 8309 fi 8310 fi 8311 8312 if test $found = "no" ; then 8313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8315 fi 8316 8317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8319 fi 8320 8321 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8322 8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8324 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8325 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8326 if eval test \${$cacheid+y} 8327 then : 8328 printf %s "(cached) " >&6 8329 else case e in #( 8330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8331 /* end confdefs.h. */ 8332 int i; 8333 int 8334 main (void) 8335 { 8336 8337 ; 8338 return 0; 8339 } 8340 _ACEOF 8341 if ac_fn_c_try_link "$LINENO" 8342 then : 8343 eval $cacheid=yes 8344 else case e in #( 8345 e) eval $cacheid=no ;; 8346 esac 8347 fi 8348 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8349 conftest$ac_exeext conftest.$ac_ext ;; 8350 esac 8351 fi 8352 8353 8354 CFLAGS="$xorg_testset_save_CFLAGS" 8355 8356 eval supported=\$$cacheid 8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8358 printf "%s\n" "$supported" >&6; } 8359 if test "$supported" = "yes" ; then 8360 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8361 found="yes" 8362 fi 8363 fi 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 xorg_testset_save_CFLAGS="$CFLAGS" 8380 8381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8382 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8385 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8386 then : 8387 printf %s "(cached) " >&6 8388 else case e in #( 8389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8390 /* end confdefs.h. */ 8391 int i; 8392 _ACEOF 8393 if ac_fn_c_try_compile "$LINENO" 8394 then : 8395 xorg_cv_cc_flag_unknown_warning_option=yes 8396 else case e in #( 8397 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8398 esac 8399 fi 8400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8401 esac 8402 fi 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8404 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8406 CFLAGS="$xorg_testset_save_CFLAGS" 8407 fi 8408 8409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8412 fi 8413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8417 then : 8418 printf %s "(cached) " >&6 8419 else case e in #( 8420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421 /* end confdefs.h. */ 8422 int i; 8423 _ACEOF 8424 if ac_fn_c_try_compile "$LINENO" 8425 then : 8426 xorg_cv_cc_flag_unused_command_line_argument=yes 8427 else case e in #( 8428 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8429 esac 8430 fi 8431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8432 esac 8433 fi 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8435 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8437 CFLAGS="$xorg_testset_save_CFLAGS" 8438 fi 8439 8440 found="no" 8441 8442 if test $found = "no" ; then 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 fi 8446 8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8449 fi 8450 8451 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8452 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8454 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8455 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8456 if eval test \${$cacheid+y} 8457 then : 8458 printf %s "(cached) " >&6 8459 else case e in #( 8460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461 /* end confdefs.h. */ 8462 int i; 8463 int 8464 main (void) 8465 { 8466 8467 ; 8468 return 0; 8469 } 8470 _ACEOF 8471 if ac_fn_c_try_link "$LINENO" 8472 then : 8473 eval $cacheid=yes 8474 else case e in #( 8475 e) eval $cacheid=no ;; 8476 esac 8477 fi 8478 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8479 conftest$ac_exeext conftest.$ac_ext ;; 8480 esac 8481 fi 8482 8483 8484 CFLAGS="$xorg_testset_save_CFLAGS" 8485 8486 eval supported=\$$cacheid 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8488 printf "%s\n" "$supported" >&6; } 8489 if test "$supported" = "yes" ; then 8490 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8491 found="yes" 8492 fi 8493 fi 8494 8495 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8496 else 8497 { 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 8498 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;} 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 xorg_testset_save_CFLAGS="$CFLAGS" 8513 8514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8517 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8518 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8519 then : 8520 printf %s "(cached) " >&6 8521 else case e in #( 8522 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8523 /* end confdefs.h. */ 8524 int i; 8525 _ACEOF 8526 if ac_fn_c_try_compile "$LINENO" 8527 then : 8528 xorg_cv_cc_flag_unknown_warning_option=yes 8529 else case e in #( 8530 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8531 esac 8532 fi 8533 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8534 esac 8535 fi 8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8537 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8539 CFLAGS="$xorg_testset_save_CFLAGS" 8540 fi 8541 8542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8545 fi 8546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8548 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8549 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8550 then : 8551 printf %s "(cached) " >&6 8552 else case e in #( 8553 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8554 /* end confdefs.h. */ 8555 int i; 8556 _ACEOF 8557 if ac_fn_c_try_compile "$LINENO" 8558 then : 8559 xorg_cv_cc_flag_unused_command_line_argument=yes 8560 else case e in #( 8561 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8562 esac 8563 fi 8564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8565 esac 8566 fi 8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8568 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8569 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8570 CFLAGS="$xorg_testset_save_CFLAGS" 8571 fi 8572 8573 found="no" 8574 8575 if test $found = "no" ; then 8576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8578 fi 8579 8580 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8582 fi 8583 8584 CFLAGS="$CFLAGS -Wimplicit" 8585 8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8587 printf %s "checking if $CC supports -Wimplicit... " >&6; } 8588 cacheid=xorg_cv_cc_flag__Wimplicit 8589 if eval test \${$cacheid+y} 8590 then : 8591 printf %s "(cached) " >&6 8592 else case e in #( 8593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8594 /* end confdefs.h. */ 8595 int i; 8596 int 8597 main (void) 8598 { 8599 8600 ; 8601 return 0; 8602 } 8603 _ACEOF 8604 if ac_fn_c_try_link "$LINENO" 8605 then : 8606 eval $cacheid=yes 8607 else case e in #( 8608 e) eval $cacheid=no ;; 8609 esac 8610 fi 8611 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8612 conftest$ac_exeext conftest.$ac_ext ;; 8613 esac 8614 fi 8615 8616 8617 CFLAGS="$xorg_testset_save_CFLAGS" 8618 8619 eval supported=\$$cacheid 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8621 printf "%s\n" "$supported" >&6; } 8622 if test "$supported" = "yes" ; then 8623 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8624 found="yes" 8625 fi 8626 fi 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 xorg_testset_save_CFLAGS="$CFLAGS" 8643 8644 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8647 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8648 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8649 then : 8650 printf %s "(cached) " >&6 8651 else case e in #( 8652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653 /* end confdefs.h. */ 8654 int i; 8655 _ACEOF 8656 if ac_fn_c_try_compile "$LINENO" 8657 then : 8658 xorg_cv_cc_flag_unknown_warning_option=yes 8659 else case e in #( 8660 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8661 esac 8662 fi 8663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8664 esac 8665 fi 8666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8667 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8669 CFLAGS="$xorg_testset_save_CFLAGS" 8670 fi 8671 8672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8675 fi 8676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8678 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8679 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8680 then : 8681 printf %s "(cached) " >&6 8682 else case e in #( 8683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684 /* end confdefs.h. */ 8685 int i; 8686 _ACEOF 8687 if ac_fn_c_try_compile "$LINENO" 8688 then : 8689 xorg_cv_cc_flag_unused_command_line_argument=yes 8690 else case e in #( 8691 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8692 esac 8693 fi 8694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8695 esac 8696 fi 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8698 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8700 CFLAGS="$xorg_testset_save_CFLAGS" 8701 fi 8702 8703 found="no" 8704 8705 if test $found = "no" ; then 8706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8708 fi 8709 8710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8712 fi 8713 8714 CFLAGS="$CFLAGS -Wnonnull" 8715 8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8717 printf %s "checking if $CC supports -Wnonnull... " >&6; } 8718 cacheid=xorg_cv_cc_flag__Wnonnull 8719 if eval test \${$cacheid+y} 8720 then : 8721 printf %s "(cached) " >&6 8722 else case e in #( 8723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8724 /* end confdefs.h. */ 8725 int i; 8726 int 8727 main (void) 8728 { 8729 8730 ; 8731 return 0; 8732 } 8733 _ACEOF 8734 if ac_fn_c_try_link "$LINENO" 8735 then : 8736 eval $cacheid=yes 8737 else case e in #( 8738 e) eval $cacheid=no ;; 8739 esac 8740 fi 8741 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8742 conftest$ac_exeext conftest.$ac_ext ;; 8743 esac 8744 fi 8745 8746 8747 CFLAGS="$xorg_testset_save_CFLAGS" 8748 8749 eval supported=\$$cacheid 8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8751 printf "%s\n" "$supported" >&6; } 8752 if test "$supported" = "yes" ; then 8753 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8754 found="yes" 8755 fi 8756 fi 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 xorg_testset_save_CFLAGS="$CFLAGS" 8773 8774 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8777 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8778 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8779 then : 8780 printf %s "(cached) " >&6 8781 else case e in #( 8782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8783 /* end confdefs.h. */ 8784 int i; 8785 _ACEOF 8786 if ac_fn_c_try_compile "$LINENO" 8787 then : 8788 xorg_cv_cc_flag_unknown_warning_option=yes 8789 else case e in #( 8790 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8791 esac 8792 fi 8793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8794 esac 8795 fi 8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8797 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8799 CFLAGS="$xorg_testset_save_CFLAGS" 8800 fi 8801 8802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8805 fi 8806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8808 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8809 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8810 then : 8811 printf %s "(cached) " >&6 8812 else case e in #( 8813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8814 /* end confdefs.h. */ 8815 int i; 8816 _ACEOF 8817 if ac_fn_c_try_compile "$LINENO" 8818 then : 8819 xorg_cv_cc_flag_unused_command_line_argument=yes 8820 else case e in #( 8821 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8822 esac 8823 fi 8824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8825 esac 8826 fi 8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8828 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8830 CFLAGS="$xorg_testset_save_CFLAGS" 8831 fi 8832 8833 found="no" 8834 8835 if test $found = "no" ; then 8836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8838 fi 8839 8840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8842 fi 8843 8844 CFLAGS="$CFLAGS -Winit-self" 8845 8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8847 printf %s "checking if $CC supports -Winit-self... " >&6; } 8848 cacheid=xorg_cv_cc_flag__Winit_self 8849 if eval test \${$cacheid+y} 8850 then : 8851 printf %s "(cached) " >&6 8852 else case e in #( 8853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8854 /* end confdefs.h. */ 8855 int i; 8856 int 8857 main (void) 8858 { 8859 8860 ; 8861 return 0; 8862 } 8863 _ACEOF 8864 if ac_fn_c_try_link "$LINENO" 8865 then : 8866 eval $cacheid=yes 8867 else case e in #( 8868 e) eval $cacheid=no ;; 8869 esac 8870 fi 8871 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8872 conftest$ac_exeext conftest.$ac_ext ;; 8873 esac 8874 fi 8875 8876 8877 CFLAGS="$xorg_testset_save_CFLAGS" 8878 8879 eval supported=\$$cacheid 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8881 printf "%s\n" "$supported" >&6; } 8882 if test "$supported" = "yes" ; then 8883 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8884 found="yes" 8885 fi 8886 fi 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 xorg_testset_save_CFLAGS="$CFLAGS" 8903 8904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8907 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8908 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8909 then : 8910 printf %s "(cached) " >&6 8911 else case e in #( 8912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8913 /* end confdefs.h. */ 8914 int i; 8915 _ACEOF 8916 if ac_fn_c_try_compile "$LINENO" 8917 then : 8918 xorg_cv_cc_flag_unknown_warning_option=yes 8919 else case e in #( 8920 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8921 esac 8922 fi 8923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8924 esac 8925 fi 8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8927 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8929 CFLAGS="$xorg_testset_save_CFLAGS" 8930 fi 8931 8932 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8935 fi 8936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8938 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8939 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8940 then : 8941 printf %s "(cached) " >&6 8942 else case e in #( 8943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8944 /* end confdefs.h. */ 8945 int i; 8946 _ACEOF 8947 if ac_fn_c_try_compile "$LINENO" 8948 then : 8949 xorg_cv_cc_flag_unused_command_line_argument=yes 8950 else case e in #( 8951 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8952 esac 8953 fi 8954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8955 esac 8956 fi 8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8958 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8960 CFLAGS="$xorg_testset_save_CFLAGS" 8961 fi 8962 8963 found="no" 8964 8965 if test $found = "no" ; then 8966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8968 fi 8969 8970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8972 fi 8973 8974 CFLAGS="$CFLAGS -Wmain" 8975 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8977 printf %s "checking if $CC supports -Wmain... " >&6; } 8978 cacheid=xorg_cv_cc_flag__Wmain 8979 if eval test \${$cacheid+y} 8980 then : 8981 printf %s "(cached) " >&6 8982 else case e in #( 8983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8984 /* end confdefs.h. */ 8985 int i; 8986 int 8987 main (void) 8988 { 8989 8990 ; 8991 return 0; 8992 } 8993 _ACEOF 8994 if ac_fn_c_try_link "$LINENO" 8995 then : 8996 eval $cacheid=yes 8997 else case e in #( 8998 e) eval $cacheid=no ;; 8999 esac 9000 fi 9001 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9002 conftest$ac_exeext conftest.$ac_ext ;; 9003 esac 9004 fi 9005 9006 9007 CFLAGS="$xorg_testset_save_CFLAGS" 9008 9009 eval supported=\$$cacheid 9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9011 printf "%s\n" "$supported" >&6; } 9012 if test "$supported" = "yes" ; then 9013 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9014 found="yes" 9015 fi 9016 fi 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 xorg_testset_save_CFLAGS="$CFLAGS" 9033 9034 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9037 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9038 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9039 then : 9040 printf %s "(cached) " >&6 9041 else case e in #( 9042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9043 /* end confdefs.h. */ 9044 int i; 9045 _ACEOF 9046 if ac_fn_c_try_compile "$LINENO" 9047 then : 9048 xorg_cv_cc_flag_unknown_warning_option=yes 9049 else case e in #( 9050 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9051 esac 9052 fi 9053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9054 esac 9055 fi 9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9057 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9059 CFLAGS="$xorg_testset_save_CFLAGS" 9060 fi 9061 9062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9065 fi 9066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9068 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9069 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9070 then : 9071 printf %s "(cached) " >&6 9072 else case e in #( 9073 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9074 /* end confdefs.h. */ 9075 int i; 9076 _ACEOF 9077 if ac_fn_c_try_compile "$LINENO" 9078 then : 9079 xorg_cv_cc_flag_unused_command_line_argument=yes 9080 else case e in #( 9081 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9082 esac 9083 fi 9084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9085 esac 9086 fi 9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9088 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9090 CFLAGS="$xorg_testset_save_CFLAGS" 9091 fi 9092 9093 found="no" 9094 9095 if test $found = "no" ; then 9096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9098 fi 9099 9100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9102 fi 9103 9104 CFLAGS="$CFLAGS -Wmissing-braces" 9105 9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9107 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9108 cacheid=xorg_cv_cc_flag__Wmissing_braces 9109 if eval test \${$cacheid+y} 9110 then : 9111 printf %s "(cached) " >&6 9112 else case e in #( 9113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9114 /* end confdefs.h. */ 9115 int i; 9116 int 9117 main (void) 9118 { 9119 9120 ; 9121 return 0; 9122 } 9123 _ACEOF 9124 if ac_fn_c_try_link "$LINENO" 9125 then : 9126 eval $cacheid=yes 9127 else case e in #( 9128 e) eval $cacheid=no ;; 9129 esac 9130 fi 9131 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9132 conftest$ac_exeext conftest.$ac_ext ;; 9133 esac 9134 fi 9135 9136 9137 CFLAGS="$xorg_testset_save_CFLAGS" 9138 9139 eval supported=\$$cacheid 9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9141 printf "%s\n" "$supported" >&6; } 9142 if test "$supported" = "yes" ; then 9143 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9144 found="yes" 9145 fi 9146 fi 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 xorg_testset_save_CFLAGS="$CFLAGS" 9163 9164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9167 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9168 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9169 then : 9170 printf %s "(cached) " >&6 9171 else case e in #( 9172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9173 /* end confdefs.h. */ 9174 int i; 9175 _ACEOF 9176 if ac_fn_c_try_compile "$LINENO" 9177 then : 9178 xorg_cv_cc_flag_unknown_warning_option=yes 9179 else case e in #( 9180 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9181 esac 9182 fi 9183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9184 esac 9185 fi 9186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9187 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9188 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9189 CFLAGS="$xorg_testset_save_CFLAGS" 9190 fi 9191 9192 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9195 fi 9196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9198 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9199 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9200 then : 9201 printf %s "(cached) " >&6 9202 else case e in #( 9203 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204 /* end confdefs.h. */ 9205 int i; 9206 _ACEOF 9207 if ac_fn_c_try_compile "$LINENO" 9208 then : 9209 xorg_cv_cc_flag_unused_command_line_argument=yes 9210 else case e in #( 9211 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9212 esac 9213 fi 9214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9215 esac 9216 fi 9217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9218 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9219 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9220 CFLAGS="$xorg_testset_save_CFLAGS" 9221 fi 9222 9223 found="no" 9224 9225 if test $found = "no" ; then 9226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9228 fi 9229 9230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9232 fi 9233 9234 CFLAGS="$CFLAGS -Wsequence-point" 9235 9236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9237 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9238 cacheid=xorg_cv_cc_flag__Wsequence_point 9239 if eval test \${$cacheid+y} 9240 then : 9241 printf %s "(cached) " >&6 9242 else case e in #( 9243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9244 /* end confdefs.h. */ 9245 int i; 9246 int 9247 main (void) 9248 { 9249 9250 ; 9251 return 0; 9252 } 9253 _ACEOF 9254 if ac_fn_c_try_link "$LINENO" 9255 then : 9256 eval $cacheid=yes 9257 else case e in #( 9258 e) eval $cacheid=no ;; 9259 esac 9260 fi 9261 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9262 conftest$ac_exeext conftest.$ac_ext ;; 9263 esac 9264 fi 9265 9266 9267 CFLAGS="$xorg_testset_save_CFLAGS" 9268 9269 eval supported=\$$cacheid 9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9271 printf "%s\n" "$supported" >&6; } 9272 if test "$supported" = "yes" ; then 9273 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9274 found="yes" 9275 fi 9276 fi 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 xorg_testset_save_CFLAGS="$CFLAGS" 9293 9294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9297 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9298 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9299 then : 9300 printf %s "(cached) " >&6 9301 else case e in #( 9302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9303 /* end confdefs.h. */ 9304 int i; 9305 _ACEOF 9306 if ac_fn_c_try_compile "$LINENO" 9307 then : 9308 xorg_cv_cc_flag_unknown_warning_option=yes 9309 else case e in #( 9310 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9311 esac 9312 fi 9313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9314 esac 9315 fi 9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9317 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9319 CFLAGS="$xorg_testset_save_CFLAGS" 9320 fi 9321 9322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9325 fi 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9328 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9329 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9330 then : 9331 printf %s "(cached) " >&6 9332 else case e in #( 9333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9334 /* end confdefs.h. */ 9335 int i; 9336 _ACEOF 9337 if ac_fn_c_try_compile "$LINENO" 9338 then : 9339 xorg_cv_cc_flag_unused_command_line_argument=yes 9340 else case e in #( 9341 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9342 esac 9343 fi 9344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9345 esac 9346 fi 9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9348 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9350 CFLAGS="$xorg_testset_save_CFLAGS" 9351 fi 9352 9353 found="no" 9354 9355 if test $found = "no" ; then 9356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9358 fi 9359 9360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9362 fi 9363 9364 CFLAGS="$CFLAGS -Wreturn-type" 9365 9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9367 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9368 cacheid=xorg_cv_cc_flag__Wreturn_type 9369 if eval test \${$cacheid+y} 9370 then : 9371 printf %s "(cached) " >&6 9372 else case e in #( 9373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9374 /* end confdefs.h. */ 9375 int i; 9376 int 9377 main (void) 9378 { 9379 9380 ; 9381 return 0; 9382 } 9383 _ACEOF 9384 if ac_fn_c_try_link "$LINENO" 9385 then : 9386 eval $cacheid=yes 9387 else case e in #( 9388 e) eval $cacheid=no ;; 9389 esac 9390 fi 9391 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9392 conftest$ac_exeext conftest.$ac_ext ;; 9393 esac 9394 fi 9395 9396 9397 CFLAGS="$xorg_testset_save_CFLAGS" 9398 9399 eval supported=\$$cacheid 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9401 printf "%s\n" "$supported" >&6; } 9402 if test "$supported" = "yes" ; then 9403 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9404 found="yes" 9405 fi 9406 fi 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 xorg_testset_save_CFLAGS="$CFLAGS" 9423 9424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9425 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9427 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9428 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9429 then : 9430 printf %s "(cached) " >&6 9431 else case e in #( 9432 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433 /* end confdefs.h. */ 9434 int i; 9435 _ACEOF 9436 if ac_fn_c_try_compile "$LINENO" 9437 then : 9438 xorg_cv_cc_flag_unknown_warning_option=yes 9439 else case e in #( 9440 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9441 esac 9442 fi 9443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9444 esac 9445 fi 9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9447 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9449 CFLAGS="$xorg_testset_save_CFLAGS" 9450 fi 9451 9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 fi 9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9458 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9459 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9460 then : 9461 printf %s "(cached) " >&6 9462 else case e in #( 9463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9464 /* end confdefs.h. */ 9465 int i; 9466 _ACEOF 9467 if ac_fn_c_try_compile "$LINENO" 9468 then : 9469 xorg_cv_cc_flag_unused_command_line_argument=yes 9470 else case e in #( 9471 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9472 esac 9473 fi 9474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9475 esac 9476 fi 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9478 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9479 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481 fi 9482 9483 found="no" 9484 9485 if test $found = "no" ; then 9486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9487 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9488 fi 9489 9490 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9492 fi 9493 9494 CFLAGS="$CFLAGS -Wtrigraphs" 9495 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9497 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9498 cacheid=xorg_cv_cc_flag__Wtrigraphs 9499 if eval test \${$cacheid+y} 9500 then : 9501 printf %s "(cached) " >&6 9502 else case e in #( 9503 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9504 /* end confdefs.h. */ 9505 int i; 9506 int 9507 main (void) 9508 { 9509 9510 ; 9511 return 0; 9512 } 9513 _ACEOF 9514 if ac_fn_c_try_link "$LINENO" 9515 then : 9516 eval $cacheid=yes 9517 else case e in #( 9518 e) eval $cacheid=no ;; 9519 esac 9520 fi 9521 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9522 conftest$ac_exeext conftest.$ac_ext ;; 9523 esac 9524 fi 9525 9526 9527 CFLAGS="$xorg_testset_save_CFLAGS" 9528 9529 eval supported=\$$cacheid 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9531 printf "%s\n" "$supported" >&6; } 9532 if test "$supported" = "yes" ; then 9533 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9534 found="yes" 9535 fi 9536 fi 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 xorg_testset_save_CFLAGS="$CFLAGS" 9553 9554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9557 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9558 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9559 then : 9560 printf %s "(cached) " >&6 9561 else case e in #( 9562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9563 /* end confdefs.h. */ 9564 int i; 9565 _ACEOF 9566 if ac_fn_c_try_compile "$LINENO" 9567 then : 9568 xorg_cv_cc_flag_unknown_warning_option=yes 9569 else case e in #( 9570 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9571 esac 9572 fi 9573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9574 esac 9575 fi 9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9577 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580 fi 9581 9582 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9585 fi 9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9588 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9589 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9590 then : 9591 printf %s "(cached) " >&6 9592 else case e in #( 9593 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9594 /* end confdefs.h. */ 9595 int i; 9596 _ACEOF 9597 if ac_fn_c_try_compile "$LINENO" 9598 then : 9599 xorg_cv_cc_flag_unused_command_line_argument=yes 9600 else case e in #( 9601 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9602 esac 9603 fi 9604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9605 esac 9606 fi 9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9608 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9610 CFLAGS="$xorg_testset_save_CFLAGS" 9611 fi 9612 9613 found="no" 9614 9615 if test $found = "no" ; then 9616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9618 fi 9619 9620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9622 fi 9623 9624 CFLAGS="$CFLAGS -Warray-bounds" 9625 9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9627 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9628 cacheid=xorg_cv_cc_flag__Warray_bounds 9629 if eval test \${$cacheid+y} 9630 then : 9631 printf %s "(cached) " >&6 9632 else case e in #( 9633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634 /* end confdefs.h. */ 9635 int i; 9636 int 9637 main (void) 9638 { 9639 9640 ; 9641 return 0; 9642 } 9643 _ACEOF 9644 if ac_fn_c_try_link "$LINENO" 9645 then : 9646 eval $cacheid=yes 9647 else case e in #( 9648 e) eval $cacheid=no ;; 9649 esac 9650 fi 9651 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9652 conftest$ac_exeext conftest.$ac_ext ;; 9653 esac 9654 fi 9655 9656 9657 CFLAGS="$xorg_testset_save_CFLAGS" 9658 9659 eval supported=\$$cacheid 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9661 printf "%s\n" "$supported" >&6; } 9662 if test "$supported" = "yes" ; then 9663 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9664 found="yes" 9665 fi 9666 fi 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 xorg_testset_save_CFLAGS="$CFLAGS" 9683 9684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9687 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9688 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9689 then : 9690 printf %s "(cached) " >&6 9691 else case e in #( 9692 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9693 /* end confdefs.h. */ 9694 int i; 9695 _ACEOF 9696 if ac_fn_c_try_compile "$LINENO" 9697 then : 9698 xorg_cv_cc_flag_unknown_warning_option=yes 9699 else case e in #( 9700 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9701 esac 9702 fi 9703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9704 esac 9705 fi 9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9707 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9709 CFLAGS="$xorg_testset_save_CFLAGS" 9710 fi 9711 9712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 fi 9716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9718 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9719 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9720 then : 9721 printf %s "(cached) " >&6 9722 else case e in #( 9723 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9724 /* end confdefs.h. */ 9725 int i; 9726 _ACEOF 9727 if ac_fn_c_try_compile "$LINENO" 9728 then : 9729 xorg_cv_cc_flag_unused_command_line_argument=yes 9730 else case e in #( 9731 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9732 esac 9733 fi 9734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9735 esac 9736 fi 9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9738 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741 fi 9742 9743 found="no" 9744 9745 if test $found = "no" ; then 9746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9748 fi 9749 9750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9752 fi 9753 9754 CFLAGS="$CFLAGS -Wwrite-strings" 9755 9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9757 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 9758 cacheid=xorg_cv_cc_flag__Wwrite_strings 9759 if eval test \${$cacheid+y} 9760 then : 9761 printf %s "(cached) " >&6 9762 else case e in #( 9763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9764 /* end confdefs.h. */ 9765 int i; 9766 int 9767 main (void) 9768 { 9769 9770 ; 9771 return 0; 9772 } 9773 _ACEOF 9774 if ac_fn_c_try_link "$LINENO" 9775 then : 9776 eval $cacheid=yes 9777 else case e in #( 9778 e) eval $cacheid=no ;; 9779 esac 9780 fi 9781 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9782 conftest$ac_exeext conftest.$ac_ext ;; 9783 esac 9784 fi 9785 9786 9787 CFLAGS="$xorg_testset_save_CFLAGS" 9788 9789 eval supported=\$$cacheid 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9791 printf "%s\n" "$supported" >&6; } 9792 if test "$supported" = "yes" ; then 9793 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9794 found="yes" 9795 fi 9796 fi 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 xorg_testset_save_CFLAGS="$CFLAGS" 9813 9814 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9817 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9818 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9819 then : 9820 printf %s "(cached) " >&6 9821 else case e in #( 9822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823 /* end confdefs.h. */ 9824 int i; 9825 _ACEOF 9826 if ac_fn_c_try_compile "$LINENO" 9827 then : 9828 xorg_cv_cc_flag_unknown_warning_option=yes 9829 else case e in #( 9830 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9831 esac 9832 fi 9833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9834 esac 9835 fi 9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9839 CFLAGS="$xorg_testset_save_CFLAGS" 9840 fi 9841 9842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9845 fi 9846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9850 then : 9851 printf %s "(cached) " >&6 9852 else case e in #( 9853 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9854 /* end confdefs.h. */ 9855 int i; 9856 _ACEOF 9857 if ac_fn_c_try_compile "$LINENO" 9858 then : 9859 xorg_cv_cc_flag_unused_command_line_argument=yes 9860 else case e in #( 9861 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9862 esac 9863 fi 9864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9865 esac 9866 fi 9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9870 CFLAGS="$xorg_testset_save_CFLAGS" 9871 fi 9872 9873 found="no" 9874 9875 if test $found = "no" ; then 9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 fi 9879 9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9882 fi 9883 9884 CFLAGS="$CFLAGS -Waddress" 9885 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9887 printf %s "checking if $CC supports -Waddress... " >&6; } 9888 cacheid=xorg_cv_cc_flag__Waddress 9889 if eval test \${$cacheid+y} 9890 then : 9891 printf %s "(cached) " >&6 9892 else case e in #( 9893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894 /* end confdefs.h. */ 9895 int i; 9896 int 9897 main (void) 9898 { 9899 9900 ; 9901 return 0; 9902 } 9903 _ACEOF 9904 if ac_fn_c_try_link "$LINENO" 9905 then : 9906 eval $cacheid=yes 9907 else case e in #( 9908 e) eval $cacheid=no ;; 9909 esac 9910 fi 9911 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9912 conftest$ac_exeext conftest.$ac_ext ;; 9913 esac 9914 fi 9915 9916 9917 CFLAGS="$xorg_testset_save_CFLAGS" 9918 9919 eval supported=\$$cacheid 9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9921 printf "%s\n" "$supported" >&6; } 9922 if test "$supported" = "yes" ; then 9923 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9924 found="yes" 9925 fi 9926 fi 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 xorg_testset_save_CFLAGS="$CFLAGS" 9943 9944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9947 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9948 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9949 then : 9950 printf %s "(cached) " >&6 9951 else case e in #( 9952 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9953 /* end confdefs.h. */ 9954 int i; 9955 _ACEOF 9956 if ac_fn_c_try_compile "$LINENO" 9957 then : 9958 xorg_cv_cc_flag_unknown_warning_option=yes 9959 else case e in #( 9960 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9961 esac 9962 fi 9963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9964 esac 9965 fi 9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9967 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9968 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9969 CFLAGS="$xorg_testset_save_CFLAGS" 9970 fi 9971 9972 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9973 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9975 fi 9976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9978 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9979 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9980 then : 9981 printf %s "(cached) " >&6 9982 else case e in #( 9983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984 /* end confdefs.h. */ 9985 int i; 9986 _ACEOF 9987 if ac_fn_c_try_compile "$LINENO" 9988 then : 9989 xorg_cv_cc_flag_unused_command_line_argument=yes 9990 else case e in #( 9991 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9992 esac 9993 fi 9994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9995 esac 9996 fi 9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9998 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10000 CFLAGS="$xorg_testset_save_CFLAGS" 10001 fi 10002 10003 found="no" 10004 10005 if test $found = "no" ; then 10006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10008 fi 10009 10010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10012 fi 10013 10014 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10015 10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10017 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10018 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10019 if eval test \${$cacheid+y} 10020 then : 10021 printf %s "(cached) " >&6 10022 else case e in #( 10023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024 /* end confdefs.h. */ 10025 int i; 10026 int 10027 main (void) 10028 { 10029 10030 ; 10031 return 0; 10032 } 10033 _ACEOF 10034 if ac_fn_c_try_link "$LINENO" 10035 then : 10036 eval $cacheid=yes 10037 else case e in #( 10038 e) eval $cacheid=no ;; 10039 esac 10040 fi 10041 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10042 conftest$ac_exeext conftest.$ac_ext ;; 10043 esac 10044 fi 10045 10046 10047 CFLAGS="$xorg_testset_save_CFLAGS" 10048 10049 eval supported=\$$cacheid 10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10051 printf "%s\n" "$supported" >&6; } 10052 if test "$supported" = "yes" ; then 10053 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10054 found="yes" 10055 fi 10056 fi 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 xorg_testset_save_CFLAGS="$CFLAGS" 10073 10074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10077 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10078 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10079 then : 10080 printf %s "(cached) " >&6 10081 else case e in #( 10082 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10083 /* end confdefs.h. */ 10084 int i; 10085 _ACEOF 10086 if ac_fn_c_try_compile "$LINENO" 10087 then : 10088 xorg_cv_cc_flag_unknown_warning_option=yes 10089 else case e in #( 10090 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10091 esac 10092 fi 10093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10094 esac 10095 fi 10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10097 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10099 CFLAGS="$xorg_testset_save_CFLAGS" 10100 fi 10101 10102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10105 fi 10106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10108 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10109 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10110 then : 10111 printf %s "(cached) " >&6 10112 else case e in #( 10113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10114 /* end confdefs.h. */ 10115 int i; 10116 _ACEOF 10117 if ac_fn_c_try_compile "$LINENO" 10118 then : 10119 xorg_cv_cc_flag_unused_command_line_argument=yes 10120 else case e in #( 10121 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10122 esac 10123 fi 10124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10125 esac 10126 fi 10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10128 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10130 CFLAGS="$xorg_testset_save_CFLAGS" 10131 fi 10132 10133 found="no" 10134 10135 if test $found = "no" ; then 10136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10138 fi 10139 10140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10142 fi 10143 10144 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10145 10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10147 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10148 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10149 if eval test \${$cacheid+y} 10150 then : 10151 printf %s "(cached) " >&6 10152 else case e in #( 10153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10154 /* end confdefs.h. */ 10155 int i; 10156 int 10157 main (void) 10158 { 10159 10160 ; 10161 return 0; 10162 } 10163 _ACEOF 10164 if ac_fn_c_try_link "$LINENO" 10165 then : 10166 eval $cacheid=yes 10167 else case e in #( 10168 e) eval $cacheid=no ;; 10169 esac 10170 fi 10171 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10172 conftest$ac_exeext conftest.$ac_ext ;; 10173 esac 10174 fi 10175 10176 10177 CFLAGS="$xorg_testset_save_CFLAGS" 10178 10179 eval supported=\$$cacheid 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10181 printf "%s\n" "$supported" >&6; } 10182 if test "$supported" = "yes" ; then 10183 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10184 found="yes" 10185 fi 10186 fi 10187 10188 10189 fi 10190 10191 10192 10193 10194 10195 10196 10197 CWARNFLAGS="$BASE_CFLAGS" 10198 if test "x$GCC" = xyes ; then 10199 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10200 fi 10201 10202 10203 10204 10205 10206 10207 10208 10209 # Check whether --enable-strict-compilation was given. 10210 if test ${enable_strict_compilation+y} 10211 then : 10212 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10213 else case e in #( 10214 e) STRICT_COMPILE=no ;; 10215 esac 10216 fi 10217 10218 10219 10220 10221 10222 10223 STRICT_CFLAGS="" 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 xorg_testset_save_CFLAGS="$CFLAGS" 10238 10239 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10242 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10243 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10244 then : 10245 printf %s "(cached) " >&6 10246 else case e in #( 10247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10248 /* end confdefs.h. */ 10249 int i; 10250 _ACEOF 10251 if ac_fn_c_try_compile "$LINENO" 10252 then : 10253 xorg_cv_cc_flag_unknown_warning_option=yes 10254 else case e in #( 10255 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10256 esac 10257 fi 10258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10259 esac 10260 fi 10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10262 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10263 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10264 CFLAGS="$xorg_testset_save_CFLAGS" 10265 fi 10266 10267 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10270 fi 10271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10273 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10274 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10275 then : 10276 printf %s "(cached) " >&6 10277 else case e in #( 10278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279 /* end confdefs.h. */ 10280 int i; 10281 _ACEOF 10282 if ac_fn_c_try_compile "$LINENO" 10283 then : 10284 xorg_cv_cc_flag_unused_command_line_argument=yes 10285 else case e in #( 10286 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10287 esac 10288 fi 10289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10290 esac 10291 fi 10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10293 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10295 CFLAGS="$xorg_testset_save_CFLAGS" 10296 fi 10297 10298 found="no" 10299 10300 if test $found = "no" ; then 10301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10303 fi 10304 10305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10307 fi 10308 10309 CFLAGS="$CFLAGS -pedantic" 10310 10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10312 printf %s "checking if $CC supports -pedantic... " >&6; } 10313 cacheid=xorg_cv_cc_flag__pedantic 10314 if eval test \${$cacheid+y} 10315 then : 10316 printf %s "(cached) " >&6 10317 else case e in #( 10318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10319 /* end confdefs.h. */ 10320 int i; 10321 int 10322 main (void) 10323 { 10324 10325 ; 10326 return 0; 10327 } 10328 _ACEOF 10329 if ac_fn_c_try_link "$LINENO" 10330 then : 10331 eval $cacheid=yes 10332 else case e in #( 10333 e) eval $cacheid=no ;; 10334 esac 10335 fi 10336 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10337 conftest$ac_exeext conftest.$ac_ext ;; 10338 esac 10339 fi 10340 10341 10342 CFLAGS="$xorg_testset_save_CFLAGS" 10343 10344 eval supported=\$$cacheid 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10346 printf "%s\n" "$supported" >&6; } 10347 if test "$supported" = "yes" ; then 10348 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10349 found="yes" 10350 fi 10351 fi 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 xorg_testset_save_CFLAGS="$CFLAGS" 10368 10369 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10372 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10373 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10374 then : 10375 printf %s "(cached) " >&6 10376 else case e in #( 10377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10378 /* end confdefs.h. */ 10379 int i; 10380 _ACEOF 10381 if ac_fn_c_try_compile "$LINENO" 10382 then : 10383 xorg_cv_cc_flag_unknown_warning_option=yes 10384 else case e in #( 10385 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10386 esac 10387 fi 10388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10389 esac 10390 fi 10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10392 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10394 CFLAGS="$xorg_testset_save_CFLAGS" 10395 fi 10396 10397 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10400 fi 10401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10403 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10404 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10405 then : 10406 printf %s "(cached) " >&6 10407 else case e in #( 10408 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409 /* end confdefs.h. */ 10410 int i; 10411 _ACEOF 10412 if ac_fn_c_try_compile "$LINENO" 10413 then : 10414 xorg_cv_cc_flag_unused_command_line_argument=yes 10415 else case e in #( 10416 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10417 esac 10418 fi 10419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10420 esac 10421 fi 10422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10423 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10425 CFLAGS="$xorg_testset_save_CFLAGS" 10426 fi 10427 10428 found="no" 10429 10430 if test $found = "no" ; then 10431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10433 fi 10434 10435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10437 fi 10438 10439 CFLAGS="$CFLAGS -Werror" 10440 10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10442 printf %s "checking if $CC supports -Werror... " >&6; } 10443 cacheid=xorg_cv_cc_flag__Werror 10444 if eval test \${$cacheid+y} 10445 then : 10446 printf %s "(cached) " >&6 10447 else case e in #( 10448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10449 /* end confdefs.h. */ 10450 int i; 10451 int 10452 main (void) 10453 { 10454 10455 ; 10456 return 0; 10457 } 10458 _ACEOF 10459 if ac_fn_c_try_link "$LINENO" 10460 then : 10461 eval $cacheid=yes 10462 else case e in #( 10463 e) eval $cacheid=no ;; 10464 esac 10465 fi 10466 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10467 conftest$ac_exeext conftest.$ac_ext ;; 10468 esac 10469 fi 10470 10471 10472 CFLAGS="$xorg_testset_save_CFLAGS" 10473 10474 eval supported=\$$cacheid 10475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10476 printf "%s\n" "$supported" >&6; } 10477 if test "$supported" = "yes" ; then 10478 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10479 found="yes" 10480 fi 10481 fi 10482 10483 if test $found = "no" ; then 10484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10486 fi 10487 10488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10490 fi 10491 10492 CFLAGS="$CFLAGS -errwarn" 10493 10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10495 printf %s "checking if $CC supports -errwarn... " >&6; } 10496 cacheid=xorg_cv_cc_flag__errwarn 10497 if eval test \${$cacheid+y} 10498 then : 10499 printf %s "(cached) " >&6 10500 else case e in #( 10501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502 /* end confdefs.h. */ 10503 int i; 10504 int 10505 main (void) 10506 { 10507 10508 ; 10509 return 0; 10510 } 10511 _ACEOF 10512 if ac_fn_c_try_link "$LINENO" 10513 then : 10514 eval $cacheid=yes 10515 else case e in #( 10516 e) eval $cacheid=no ;; 10517 esac 10518 fi 10519 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10520 conftest$ac_exeext conftest.$ac_ext ;; 10521 esac 10522 fi 10523 10524 10525 CFLAGS="$xorg_testset_save_CFLAGS" 10526 10527 eval supported=\$$cacheid 10528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10529 printf "%s\n" "$supported" >&6; } 10530 if test "$supported" = "yes" ; then 10531 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10532 found="yes" 10533 fi 10534 fi 10535 10536 10537 10538 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10539 # activate it with -Werror, so we add it here explicitly. 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 xorg_testset_save_CFLAGS="$CFLAGS" 10554 10555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10559 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10560 then : 10561 printf %s "(cached) " >&6 10562 else case e in #( 10563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10564 /* end confdefs.h. */ 10565 int i; 10566 _ACEOF 10567 if ac_fn_c_try_compile "$LINENO" 10568 then : 10569 xorg_cv_cc_flag_unknown_warning_option=yes 10570 else case e in #( 10571 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10572 esac 10573 fi 10574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10575 esac 10576 fi 10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10578 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10580 CFLAGS="$xorg_testset_save_CFLAGS" 10581 fi 10582 10583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10586 fi 10587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10589 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10590 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10591 then : 10592 printf %s "(cached) " >&6 10593 else case e in #( 10594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10595 /* end confdefs.h. */ 10596 int i; 10597 _ACEOF 10598 if ac_fn_c_try_compile "$LINENO" 10599 then : 10600 xorg_cv_cc_flag_unused_command_line_argument=yes 10601 else case e in #( 10602 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10603 esac 10604 fi 10605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10606 esac 10607 fi 10608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10609 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10611 CFLAGS="$xorg_testset_save_CFLAGS" 10612 fi 10613 10614 found="no" 10615 10616 if test $found = "no" ; then 10617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10619 fi 10620 10621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10623 fi 10624 10625 CFLAGS="$CFLAGS -Werror=attributes" 10626 10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10628 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10629 cacheid=xorg_cv_cc_flag__Werror_attributes 10630 if eval test \${$cacheid+y} 10631 then : 10632 printf %s "(cached) " >&6 10633 else case e in #( 10634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635 /* end confdefs.h. */ 10636 int i; 10637 int 10638 main (void) 10639 { 10640 10641 ; 10642 return 0; 10643 } 10644 _ACEOF 10645 if ac_fn_c_try_link "$LINENO" 10646 then : 10647 eval $cacheid=yes 10648 else case e in #( 10649 e) eval $cacheid=no ;; 10650 esac 10651 fi 10652 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10653 conftest$ac_exeext conftest.$ac_ext ;; 10654 esac 10655 fi 10656 10657 10658 CFLAGS="$xorg_testset_save_CFLAGS" 10659 10660 eval supported=\$$cacheid 10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10662 printf "%s\n" "$supported" >&6; } 10663 if test "$supported" = "yes" ; then 10664 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10665 found="yes" 10666 fi 10667 fi 10668 10669 10670 10671 if test "x$STRICT_COMPILE" = "xyes"; then 10672 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10673 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10674 fi 10675 10676 10677 10678 10679 10680 10681 10682 10683 cat >>confdefs.h <<_ACEOF 10684 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10685 _ACEOF 10686 10687 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10688 if test "x$PVM" = "x"; then 10689 PVM="0" 10690 fi 10691 10692 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10693 10694 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10695 if test "x$PVP" = "x"; then 10696 PVP="0" 10697 fi 10698 10699 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10700 10701 10702 10703 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10704 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10705 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10706 touch \$(top_srcdir)/ChangeLog; \ 10707 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10708 10709 10710 10711 10712 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10713 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10714 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10715 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10716 touch \$(top_srcdir)/INSTALL; \ 10717 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10718 10719 10720 10721 10722 10723 10724 case $host_os in 10725 solaris*) 10726 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10727 # check for a man page file found in later versions that use 10728 # traditional section numbers instead 10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10730 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10731 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10732 then : 10733 printf %s "(cached) " >&6 10734 else case e in #( 10735 e) test "$cross_compiling" = yes && 10736 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10737 if test -r "/usr/share/man/man7/attributes.7"; then 10738 ac_cv_file__usr_share_man_man7_attributes_7=yes 10739 else 10740 ac_cv_file__usr_share_man_man7_attributes_7=no 10741 fi ;; 10742 esac 10743 fi 10744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10745 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10746 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10747 then : 10748 SYSV_MAN_SECTIONS=false 10749 else case e in #( 10750 e) SYSV_MAN_SECTIONS=true ;; 10751 esac 10752 fi 10753 10754 ;; 10755 *) SYSV_MAN_SECTIONS=false ;; 10756 esac 10757 10758 if test x$APP_MAN_SUFFIX = x ; then 10759 APP_MAN_SUFFIX=1 10760 fi 10761 if test x$APP_MAN_DIR = x ; then 10762 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10763 fi 10764 10765 if test x$LIB_MAN_SUFFIX = x ; then 10766 LIB_MAN_SUFFIX=3 10767 fi 10768 if test x$LIB_MAN_DIR = x ; then 10769 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10770 fi 10771 10772 if test x$FILE_MAN_SUFFIX = x ; then 10773 case $SYSV_MAN_SECTIONS in 10774 true) FILE_MAN_SUFFIX=4 ;; 10775 *) FILE_MAN_SUFFIX=5 ;; 10776 esac 10777 fi 10778 if test x$FILE_MAN_DIR = x ; then 10779 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10780 fi 10781 10782 if test x$MISC_MAN_SUFFIX = x ; then 10783 case $SYSV_MAN_SECTIONS in 10784 true) MISC_MAN_SUFFIX=5 ;; 10785 *) MISC_MAN_SUFFIX=7 ;; 10786 esac 10787 fi 10788 if test x$MISC_MAN_DIR = x ; then 10789 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10790 fi 10791 10792 if test x$DRIVER_MAN_SUFFIX = x ; then 10793 case $SYSV_MAN_SECTIONS in 10794 true) DRIVER_MAN_SUFFIX=7 ;; 10795 *) DRIVER_MAN_SUFFIX=4 ;; 10796 esac 10797 fi 10798 if test x$DRIVER_MAN_DIR = x ; then 10799 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10800 fi 10801 10802 if test x$ADMIN_MAN_SUFFIX = x ; then 10803 case $SYSV_MAN_SECTIONS in 10804 true) ADMIN_MAN_SUFFIX=1m ;; 10805 *) ADMIN_MAN_SUFFIX=8 ;; 10806 esac 10807 fi 10808 if test x$ADMIN_MAN_DIR = x ; then 10809 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10810 fi 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 XORG_MAN_PAGE="X Version 11" 10827 10828 MAN_SUBSTS="\ 10829 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10830 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10831 -e 's|__xservername__|Xorg|g' \ 10832 -e 's|__xconfigfile__|xorg.conf|g' \ 10833 -e 's|__projectroot__|\$(prefix)|g' \ 10834 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10835 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10836 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10837 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10838 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10839 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10840 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10841 10842 10843 10844 # Check whether --enable-silent-rules was given. 10845 if test ${enable_silent_rules+y} 10846 then : 10847 enableval=$enable_silent_rules; 10848 fi 10849 10850 case $enable_silent_rules in # ((( 10851 yes) AM_DEFAULT_VERBOSITY=0;; 10852 no) AM_DEFAULT_VERBOSITY=1;; 10853 *) AM_DEFAULT_VERBOSITY=0;; 10854 esac 10855 am_make=${MAKE-make} 10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10857 printf %s "checking whether $am_make supports nested variables... " >&6; } 10858 if test ${am_cv_make_support_nested_variables+y} 10859 then : 10860 printf %s "(cached) " >&6 10861 else case e in #( 10862 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 10863 BAR0=false 10864 BAR1=true 10865 V=1 10866 am__doit: 10867 @$(TRUE) 10868 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10869 am_cv_make_support_nested_variables=yes 10870 else 10871 am_cv_make_support_nested_variables=no 10872 fi ;; 10873 esac 10874 fi 10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10876 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 10877 if test $am_cv_make_support_nested_variables = yes; then 10878 AM_V='$(V)' 10879 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10880 else 10881 AM_V=$AM_DEFAULT_VERBOSITY 10882 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10883 fi 10884 AM_BACKSLASH='\' 10885 10886 10887 10888 10889 10890 10891 # Initialize Automake 10892 am__api_version='1.16' 10893 10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 10895 printf %s "checking whether build environment is sane... " >&6; } 10896 # Reject unsafe characters in $srcdir or the absolute working directory 10897 # name. Accept space and tab only in the latter. 10898 am_lf=' 10899 ' 10900 case `pwd` in 10901 *[\\\"\#\$\&\'\`$am_lf]*) 10902 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 10903 esac 10904 case $srcdir in 10905 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 10906 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 10907 esac 10908 10909 # Do 'set' in a subshell so we don't clobber the current shell's 10910 # arguments. Must try -L first in case configure is actually a 10911 # symlink; some systems play weird games with the mod time of symlinks 10912 # (eg FreeBSD returns the mod time of the symlink's containing 10913 # directory). 10914 if ( 10915 am_has_slept=no 10916 for am_try in 1 2; do 10917 echo "timestamp, slept: $am_has_slept" > conftest.file 10918 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10919 if test "$*" = "X"; then 10920 # -L didn't work. 10921 set X `ls -t "$srcdir/configure" conftest.file` 10922 fi 10923 if test "$*" != "X $srcdir/configure conftest.file" \ 10924 && test "$*" != "X conftest.file $srcdir/configure"; then 10925 10926 # If neither matched, then we have a broken ls. This can happen 10927 # if, for instance, CONFIG_SHELL is bash and it inherits a 10928 # broken ls alias from the environment. This has actually 10929 # happened. Such a system could not be considered "sane". 10930 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 10931 alias in your environment" "$LINENO" 5 10932 fi 10933 if test "$2" = conftest.file || test $am_try -eq 2; then 10934 break 10935 fi 10936 # Just in case. 10937 sleep 1 10938 am_has_slept=yes 10939 done 10940 test "$2" = conftest.file 10941 ) 10942 then 10943 # Ok. 10944 : 10945 else 10946 as_fn_error $? "newly created file is older than distributed files! 10947 Check your system clock" "$LINENO" 5 10948 fi 10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10950 printf "%s\n" "yes" >&6; } 10951 # If we didn't sleep, we still need to ensure time stamps of config.status and 10952 # generated files are strictly newer. 10953 am_sleep_pid= 10954 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10955 ( sleep 1 ) & 10956 am_sleep_pid=$! 10957 fi 10958 10959 rm -f conftest.file 10960 10961 test "$program_prefix" != NONE && 10962 program_transform_name="s&^&$program_prefix&;$program_transform_name" 10963 # Use a double $ so make ignores it. 10964 test "$program_suffix" != NONE && 10965 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 10966 # Double any \ or $. 10967 # By default was 's,x,x', remove it if useless. 10968 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 10969 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 10970 10971 10972 if test x"${MISSING+set}" != xset; then 10973 MISSING="\${SHELL} '$am_aux_dir/missing'" 10974 fi 10975 # Use eval to expand $SHELL 10976 if eval "$MISSING --is-lightweight"; then 10977 am_missing_run="$MISSING " 10978 else 10979 am_missing_run= 10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 10981 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 10982 fi 10983 10984 if test x"${install_sh+set}" != xset; then 10985 case $am_aux_dir in 10986 *\ * | *\ *) 10987 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10988 *) 10989 install_sh="\${SHELL} $am_aux_dir/install-sh" 10990 esac 10991 fi 10992 10993 # Installed binaries are usually stripped using 'strip' when the user 10994 # run "make install-strip". However 'strip' might not be the right 10995 # tool to use in cross-compilation environments, therefore Automake 10996 # will honor the 'STRIP' environment variable to overrule this program. 10997 if test "$cross_compiling" != no; then 10998 if test -n "$ac_tool_prefix"; then 10999 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11000 set dummy ${ac_tool_prefix}strip; ac_word=$2 11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11002 printf %s "checking for $ac_word... " >&6; } 11003 if test ${ac_cv_prog_STRIP+y} 11004 then : 11005 printf %s "(cached) " >&6 11006 else case e in #( 11007 e) if test -n "$STRIP"; then 11008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11009 else 11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11011 for as_dir in $PATH 11012 do 11013 IFS=$as_save_IFS 11014 case $as_dir in #((( 11015 '') as_dir=./ ;; 11016 */) ;; 11017 *) as_dir=$as_dir/ ;; 11018 esac 11019 for ac_exec_ext in '' $ac_executable_extensions; do 11020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11021 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11023 break 2 11024 fi 11025 done 11026 done 11027 IFS=$as_save_IFS 11028 11029 fi ;; 11030 esac 11031 fi 11032 STRIP=$ac_cv_prog_STRIP 11033 if test -n "$STRIP"; then 11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11035 printf "%s\n" "$STRIP" >&6; } 11036 else 11037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11038 printf "%s\n" "no" >&6; } 11039 fi 11040 11041 11042 fi 11043 if test -z "$ac_cv_prog_STRIP"; then 11044 ac_ct_STRIP=$STRIP 11045 # Extract the first word of "strip", so it can be a program name with args. 11046 set dummy strip; ac_word=$2 11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11048 printf %s "checking for $ac_word... " >&6; } 11049 if test ${ac_cv_prog_ac_ct_STRIP+y} 11050 then : 11051 printf %s "(cached) " >&6 11052 else case e in #( 11053 e) if test -n "$ac_ct_STRIP"; then 11054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11055 else 11056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11057 for as_dir in $PATH 11058 do 11059 IFS=$as_save_IFS 11060 case $as_dir in #((( 11061 '') as_dir=./ ;; 11062 */) ;; 11063 *) as_dir=$as_dir/ ;; 11064 esac 11065 for ac_exec_ext in '' $ac_executable_extensions; do 11066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11067 ac_cv_prog_ac_ct_STRIP="strip" 11068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11069 break 2 11070 fi 11071 done 11072 done 11073 IFS=$as_save_IFS 11074 11075 fi ;; 11076 esac 11077 fi 11078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11079 if test -n "$ac_ct_STRIP"; then 11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11081 printf "%s\n" "$ac_ct_STRIP" >&6; } 11082 else 11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11084 printf "%s\n" "no" >&6; } 11085 fi 11086 11087 if test "x$ac_ct_STRIP" = x; then 11088 STRIP=":" 11089 else 11090 case $cross_compiling:$ac_tool_warned in 11091 yes:) 11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11093 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11094 ac_tool_warned=yes ;; 11095 esac 11096 STRIP=$ac_ct_STRIP 11097 fi 11098 else 11099 STRIP="$ac_cv_prog_STRIP" 11100 fi 11101 11102 fi 11103 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 11104 11105 11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 11107 printf %s "checking for a race-free mkdir -p... " >&6; } 11108 if test -z "$MKDIR_P"; then 11109 if test ${ac_cv_path_mkdir+y} 11110 then : 11111 printf %s "(cached) " >&6 11112 else case e in #( 11113 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11114 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 11115 do 11116 IFS=$as_save_IFS 11117 case $as_dir in #((( 11118 '') as_dir=./ ;; 11119 */) ;; 11120 *) as_dir=$as_dir/ ;; 11121 esac 11122 for ac_prog in mkdir gmkdir; do 11123 for ac_exec_ext in '' $ac_executable_extensions; do 11124 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 11125 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 11126 'mkdir ('*'coreutils) '* | \ 11127 *'BusyBox '* | \ 11128 'mkdir (fileutils) '4.1*) 11129 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 11130 break 3;; 11131 esac 11132 done 11133 done 11134 done 11135 IFS=$as_save_IFS 11136 ;; 11137 esac 11138 fi 11139 11140 test -d ./--version && rmdir ./--version 11141 if test ${ac_cv_path_mkdir+y}; then 11142 MKDIR_P="$ac_cv_path_mkdir -p" 11143 else 11144 # As a last resort, use plain mkdir -p, 11145 # in the hope it doesn't have the bugs of ancient mkdir. 11146 MKDIR_P='mkdir -p' 11147 fi 11148 fi 11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 11150 printf "%s\n" "$MKDIR_P" >&6; } 11151 11152 for ac_prog in gawk mawk nawk awk 11153 do 11154 # Extract the first word of "$ac_prog", so it can be a program name with args. 11155 set dummy $ac_prog; ac_word=$2 11156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11157 printf %s "checking for $ac_word... " >&6; } 11158 if test ${ac_cv_prog_AWK+y} 11159 then : 11160 printf %s "(cached) " >&6 11161 else case e in #( 11162 e) if test -n "$AWK"; then 11163 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11164 else 11165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11166 for as_dir in $PATH 11167 do 11168 IFS=$as_save_IFS 11169 case $as_dir in #((( 11170 '') as_dir=./ ;; 11171 */) ;; 11172 *) as_dir=$as_dir/ ;; 11173 esac 11174 for ac_exec_ext in '' $ac_executable_extensions; do 11175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11176 ac_cv_prog_AWK="$ac_prog" 11177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11178 break 2 11179 fi 11180 done 11181 done 11182 IFS=$as_save_IFS 11183 11184 fi ;; 11185 esac 11186 fi 11187 AWK=$ac_cv_prog_AWK 11188 if test -n "$AWK"; then 11189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11190 printf "%s\n" "$AWK" >&6; } 11191 else 11192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11193 printf "%s\n" "no" >&6; } 11194 fi 11195 11196 11197 test -n "$AWK" && break 11198 done 11199 11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11201 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11202 set x ${MAKE-make} 11203 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11204 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 11205 then : 11206 printf %s "(cached) " >&6 11207 else case e in #( 11208 e) cat >conftest.make <<\_ACEOF 11209 SHELL = /bin/sh 11210 all: 11211 @echo '@@@%%%=$(MAKE)=@@@%%%' 11212 _ACEOF 11213 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 11214 case `${MAKE-make} -f conftest.make 2>/dev/null` in 11215 *@@@%%%=?*=@@@%%%*) 11216 eval ac_cv_prog_make_${ac_make}_set=yes;; 11217 *) 11218 eval ac_cv_prog_make_${ac_make}_set=no;; 11219 esac 11220 rm -f conftest.make ;; 11221 esac 11222 fi 11223 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11225 printf "%s\n" "yes" >&6; } 11226 SET_MAKE= 11227 else 11228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11229 printf "%s\n" "no" >&6; } 11230 SET_MAKE="MAKE=${MAKE-make}" 11231 fi 11232 11233 rm -rf .tst 2>/dev/null 11234 mkdir .tst 2>/dev/null 11235 if test -d .tst; then 11236 am__leading_dot=. 11237 else 11238 am__leading_dot=_ 11239 fi 11240 rmdir .tst 2>/dev/null 11241 11242 DEPDIR="${am__leading_dot}deps" 11243 11244 ac_config_commands="$ac_config_commands depfiles" 11245 11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 11247 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 11248 cat > confinc.mk << 'END' 11249 am__doit: 11250 @echo this is the am__doit target >confinc.out 11251 .PHONY: am__doit 11252 END 11253 am__include="#" 11254 am__quote= 11255 # BSD make does it like this. 11256 echo '.include "confinc.mk" # ignored' > confmf.BSD 11257 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 11258 echo 'include confinc.mk # ignored' > confmf.GNU 11259 _am_result=no 11260 for s in GNU BSD; do 11261 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 11262 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 11263 ac_status=$? 11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11265 (exit $ac_status); } 11266 case $?:`cat confinc.out 2>/dev/null` in #( 11267 '0:this is the am__doit target') : 11268 case $s in #( 11269 BSD) : 11270 am__include='.include' am__quote='"' ;; #( 11271 *) : 11272 am__include='include' am__quote='' ;; 11273 esac ;; #( 11274 *) : 11275 ;; 11276 esac 11277 if test "$am__include" != "#"; then 11278 _am_result="yes ($s style)" 11279 break 11280 fi 11281 done 11282 rm -f confinc.* confmf.* 11283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 11284 printf "%s\n" "${_am_result}" >&6; } 11285 11286 # Check whether --enable-dependency-tracking was given. 11287 if test ${enable_dependency_tracking+y} 11288 then : 11289 enableval=$enable_dependency_tracking; 11290 fi 11291 11292 if test "x$enable_dependency_tracking" != xno; then 11293 am_depcomp="$ac_aux_dir/depcomp" 11294 AMDEPBACKSLASH='\' 11295 am__nodep='_no' 11296 fi 11297 if test "x$enable_dependency_tracking" != xno; then 11298 AMDEP_TRUE= 11299 AMDEP_FALSE='#' 11300 else 11301 AMDEP_TRUE='#' 11302 AMDEP_FALSE= 11303 fi 11304 11305 11306 if test "`cd $srcdir && pwd`" != "`pwd`"; then 11307 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 11308 # is not polluted with repeated "-I." 11309 am__isrc=' -I$(srcdir)' 11310 # test to see if srcdir already configured 11311 if test -f $srcdir/config.status; then 11312 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 11313 fi 11314 fi 11315 11316 # test whether we have cygpath 11317 if test -z "$CYGPATH_W"; then 11318 if (cygpath --version) >/dev/null 2>/dev/null; then 11319 CYGPATH_W='cygpath -w' 11320 else 11321 CYGPATH_W=echo 11322 fi 11323 fi 11324 11325 11326 # Define the identity of the package. 11327 PACKAGE='xf86-video-nv' 11328 VERSION='2.1.23' 11329 11330 11331 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 11332 11333 11334 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 11335 11336 # Some tools Automake needs. 11337 11338 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 11339 11340 11341 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 11342 11343 11344 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 11345 11346 11347 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 11348 11349 11350 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 11351 11352 # For better backward compatibility. To be removed once Automake 1.9.x 11353 # dies out for good. For more background, see: 11354 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 11355 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 11356 mkdir_p='$(MKDIR_P)' 11357 11358 # We need awk for the "check" target (and possibly the TAP driver). The 11359 # system "awk" is bad on some platforms. 11360 # Always define AMTAR for backward compatibility. Yes, it's still used 11361 # in the wild :-( We should find a proper way to deprecate it ... 11362 AMTAR='$${TAR-tar}' 11363 11364 11365 # We'll loop over all known methods to create a tar archive until one works. 11366 _am_tools='gnutar pax cpio none' 11367 11368 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 11369 11370 11371 11372 11373 11374 depcc="$CC" am_compiler_list= 11375 11376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11377 printf %s "checking dependency style of $depcc... " >&6; } 11378 if test ${am_cv_CC_dependencies_compiler_type+y} 11379 then : 11380 printf %s "(cached) " >&6 11381 else case e in #( 11382 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11383 # We make a subdir and do the tests there. Otherwise we can end up 11384 # making bogus files that we don't know about and never remove. For 11385 # instance it was reported that on HP-UX the gcc test will end up 11386 # making a dummy file named 'D' -- because '-MD' means "put the output 11387 # in D". 11388 rm -rf conftest.dir 11389 mkdir conftest.dir 11390 # Copy depcomp to subdir because otherwise we won't find it if we're 11391 # using a relative directory. 11392 cp "$am_depcomp" conftest.dir 11393 cd conftest.dir 11394 # We will build objects and dependencies in a subdirectory because 11395 # it helps to detect inapplicable dependency modes. For instance 11396 # both Tru64's cc and ICC support -MD to output dependencies as a 11397 # side effect of compilation, but ICC will put the dependencies in 11398 # the current directory while Tru64 will put them in the object 11399 # directory. 11400 mkdir sub 11401 11402 am_cv_CC_dependencies_compiler_type=none 11403 if test "$am_compiler_list" = ""; then 11404 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11405 fi 11406 am__universal=false 11407 case " $depcc " in #( 11408 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11409 esac 11410 11411 for depmode in $am_compiler_list; do 11412 # Setup a source with many dependencies, because some compilers 11413 # like to wrap large dependency lists on column 80 (with \), and 11414 # we should not choose a depcomp mode which is confused by this. 11415 # 11416 # We need to recreate these files for each test, as the compiler may 11417 # overwrite some of them when testing with obscure command lines. 11418 # This happens at least with the AIX C compiler. 11419 : > sub/conftest.c 11420 for i in 1 2 3 4 5 6; do 11421 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11422 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11423 # Solaris 10 /bin/sh. 11424 echo '/* dummy */' > sub/conftst$i.h 11425 done 11426 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11427 11428 # We check with '-c' and '-o' for the sake of the "dashmstdout" 11429 # mode. It turns out that the SunPro C++ compiler does not properly 11430 # handle '-M -o', and we need to detect this. Also, some Intel 11431 # versions had trouble with output in subdirs. 11432 am__obj=sub/conftest.${OBJEXT-o} 11433 am__minus_obj="-o $am__obj" 11434 case $depmode in 11435 gcc) 11436 # This depmode causes a compiler race in universal mode. 11437 test "$am__universal" = false || continue 11438 ;; 11439 nosideeffect) 11440 # After this tag, mechanisms are not by side-effect, so they'll 11441 # only be used when explicitly requested. 11442 if test "x$enable_dependency_tracking" = xyes; then 11443 continue 11444 else 11445 break 11446 fi 11447 ;; 11448 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11449 # This compiler won't grok '-c -o', but also, the minuso test has 11450 # not run yet. These depmodes are late enough in the game, and 11451 # so weak that their functioning should not be impacted. 11452 am__obj=conftest.${OBJEXT-o} 11453 am__minus_obj= 11454 ;; 11455 none) break ;; 11456 esac 11457 if depmode=$depmode \ 11458 source=sub/conftest.c object=$am__obj \ 11459 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11460 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11461 >/dev/null 2>conftest.err && 11462 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11463 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11464 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11465 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11466 # icc doesn't choke on unknown options, it will just issue warnings 11467 # or remarks (even with -Werror). So we grep stderr for any message 11468 # that says an option was ignored or not supported. 11469 # When given -MP, icc 7.0 and 7.1 complain thusly: 11470 # icc: Command line warning: ignoring option '-M'; no argument required 11471 # The diagnosis changed in icc 8.0: 11472 # icc: Command line remark: option '-MP' not supported 11473 if (grep 'ignoring option' conftest.err || 11474 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11475 am_cv_CC_dependencies_compiler_type=$depmode 11476 break 11477 fi 11478 fi 11479 done 11480 11481 cd .. 11482 rm -rf conftest.dir 11483 else 11484 am_cv_CC_dependencies_compiler_type=none 11485 fi 11486 ;; 11487 esac 11488 fi 11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11490 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 11491 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11492 11493 if 11494 test "x$enable_dependency_tracking" != xno \ 11495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11496 am__fastdepCC_TRUE= 11497 am__fastdepCC_FALSE='#' 11498 else 11499 am__fastdepCC_TRUE='#' 11500 am__fastdepCC_FALSE= 11501 fi 11502 11503 11504 # Variables for tags utilities; see am/tags.am 11505 if test -z "$CTAGS"; then 11506 CTAGS=ctags 11507 fi 11508 11509 if test -z "$ETAGS"; then 11510 ETAGS=etags 11511 fi 11512 11513 if test -z "$CSCOPE"; then 11514 CSCOPE=cscope 11515 fi 11516 11517 11518 11519 # POSIX will say in a future version that running "rm -f" with no argument 11520 # is OK; and we want to be able to make that assumption in our Makefile 11521 # recipes. So use an aggressive probe to check that the usage we want is 11522 # actually supported "in the wild" to an acceptable degree. 11523 # See automake bug#10828. 11524 # To make any issue more visible, cause the running configure to be aborted 11525 # by default if the 'rm' program in use doesn't match our expectations; the 11526 # user can still override this though. 11527 if rm -f && rm -fr && rm -rf; then : OK; else 11528 cat >&2 <<'END' 11529 Oops! 11530 11531 Your 'rm' program seems unable to run without file operands specified 11532 on the command line, even when the '-f' option is present. This is contrary 11533 to the behaviour of most rm programs out there, and not conforming with 11534 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 11535 11536 Please tell bug-automake@gnu.org about your system, including the value 11537 of your $PATH and any error possibly output before this message. This 11538 can help us improve future automake versions. 11539 11540 END 11541 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 11542 echo 'Configuration will proceed anyway, since you have set the' >&2 11543 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 11544 echo >&2 11545 else 11546 cat >&2 <<'END' 11547 Aborting the configuration process, to ensure you take notice of the issue. 11548 11549 You can download and install GNU coreutils to get an 'rm' implementation 11550 that behaves properly: <https://www.gnu.org/software/coreutils/>. 11551 11552 If you want to complete the configuration process using your problematic 11553 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 11554 to "yes", and re-run configure. 11555 11556 END 11557 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 11558 fi 11559 fi 11560 11561 11562 # Initialize libtool 11563 case `pwd` in 11564 *\ * | *\ *) 11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11566 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11567 esac 11568 11569 11570 11571 macro_version='2.4.7' 11572 macro_revision='2.4.7' 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 ltmain=$ac_aux_dir/ltmain.sh 11588 11589 # Backslashify metacharacters that are still active within 11590 # double-quoted strings. 11591 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11592 11593 # Same as above, but do not quote variable references. 11594 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11595 11596 # Sed substitution to delay expansion of an escaped shell variable in a 11597 # double_quote_subst'ed string. 11598 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11599 11600 # Sed substitution to delay expansion of an escaped single quote. 11601 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11602 11603 # Sed substitution to avoid accidental globbing in evaled expressions 11604 no_glob_subst='s/\*/\\\*/g' 11605 11606 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11607 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11608 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11609 11610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11611 printf %s "checking how to print strings... " >&6; } 11612 # Test print first, because it will be a builtin if present. 11613 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11614 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11615 ECHO='print -r --' 11616 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11617 ECHO='printf %s\n' 11618 else 11619 # Use this function as a fallback that always works. 11620 func_fallback_echo () 11621 { 11622 eval 'cat <<_LTECHO_EOF 11623 $1 11624 _LTECHO_EOF' 11625 } 11626 ECHO='func_fallback_echo' 11627 fi 11628 11629 # func_echo_all arg... 11630 # Invoke $ECHO with all args, space-separated. 11631 func_echo_all () 11632 { 11633 $ECHO "" 11634 } 11635 11636 case $ECHO in 11637 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11638 printf "%s\n" "printf" >&6; } ;; 11639 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11640 printf "%s\n" "print -r" >&6; } ;; 11641 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11642 printf "%s\n" "cat" >&6; } ;; 11643 esac 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11659 printf %s "checking for a sed that does not truncate output... " >&6; } 11660 if test ${ac_cv_path_SED+y} 11661 then : 11662 printf %s "(cached) " >&6 11663 else case e in #( 11664 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11665 for ac_i in 1 2 3 4 5 6 7; do 11666 ac_script="$ac_script$as_nl$ac_script" 11667 done 11668 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11669 { ac_script=; unset ac_script;} 11670 if test -z "$SED"; then 11671 ac_path_SED_found=false 11672 # Loop through the user's path and test for each of PROGNAME-LIST 11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11674 for as_dir in $PATH 11675 do 11676 IFS=$as_save_IFS 11677 case $as_dir in #((( 11678 '') as_dir=./ ;; 11679 */) ;; 11680 *) as_dir=$as_dir/ ;; 11681 esac 11682 for ac_prog in sed gsed 11683 do 11684 for ac_exec_ext in '' $ac_executable_extensions; do 11685 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11686 as_fn_executable_p "$ac_path_SED" || continue 11687 # Check for GNU ac_path_SED and select it if it is found. 11688 # Check for GNU $ac_path_SED 11689 case `"$ac_path_SED" --version 2>&1` in #( 11690 *GNU*) 11691 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11692 #( 11693 *) 11694 ac_count=0 11695 printf %s 0123456789 >"conftest.in" 11696 while : 11697 do 11698 cat "conftest.in" "conftest.in" >"conftest.tmp" 11699 mv "conftest.tmp" "conftest.in" 11700 cp "conftest.in" "conftest.nl" 11701 printf "%s\n" '' >> "conftest.nl" 11702 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11704 as_fn_arith $ac_count + 1 && ac_count=$as_val 11705 if test $ac_count -gt ${ac_path_SED_max-0}; then 11706 # Best one so far, save it but keep looking for a better one 11707 ac_cv_path_SED="$ac_path_SED" 11708 ac_path_SED_max=$ac_count 11709 fi 11710 # 10*(2^10) chars as input seems more than enough 11711 test $ac_count -gt 10 && break 11712 done 11713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11714 esac 11715 11716 $ac_path_SED_found && break 3 11717 done 11718 done 11719 done 11720 IFS=$as_save_IFS 11721 if test -z "$ac_cv_path_SED"; then 11722 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11723 fi 11724 else 11725 ac_cv_path_SED=$SED 11726 fi 11727 ;; 11728 esac 11729 fi 11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11731 printf "%s\n" "$ac_cv_path_SED" >&6; } 11732 SED="$ac_cv_path_SED" 11733 rm -f conftest.sed 11734 11735 test -z "$SED" && SED=sed 11736 Xsed="$SED -e 1s/^X//" 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11749 printf %s "checking for grep that handles long lines and -e... " >&6; } 11750 if test ${ac_cv_path_GREP+y} 11751 then : 11752 printf %s "(cached) " >&6 11753 else case e in #( 11754 e) if test -z "$GREP"; then 11755 ac_path_GREP_found=false 11756 # Loop through the user's path and test for each of PROGNAME-LIST 11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11759 do 11760 IFS=$as_save_IFS 11761 case $as_dir in #((( 11762 '') as_dir=./ ;; 11763 */) ;; 11764 *) as_dir=$as_dir/ ;; 11765 esac 11766 for ac_prog in grep ggrep 11767 do 11768 for ac_exec_ext in '' $ac_executable_extensions; do 11769 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11770 as_fn_executable_p "$ac_path_GREP" || continue 11771 # Check for GNU ac_path_GREP and select it if it is found. 11772 # Check for GNU $ac_path_GREP 11773 case `"$ac_path_GREP" --version 2>&1` in #( 11774 *GNU*) 11775 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11776 #( 11777 *) 11778 ac_count=0 11779 printf %s 0123456789 >"conftest.in" 11780 while : 11781 do 11782 cat "conftest.in" "conftest.in" >"conftest.tmp" 11783 mv "conftest.tmp" "conftest.in" 11784 cp "conftest.in" "conftest.nl" 11785 printf "%s\n" 'GREP' >> "conftest.nl" 11786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11788 as_fn_arith $ac_count + 1 && ac_count=$as_val 11789 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11790 # Best one so far, save it but keep looking for a better one 11791 ac_cv_path_GREP="$ac_path_GREP" 11792 ac_path_GREP_max=$ac_count 11793 fi 11794 # 10*(2^10) chars as input seems more than enough 11795 test $ac_count -gt 10 && break 11796 done 11797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11798 esac 11799 11800 $ac_path_GREP_found && break 3 11801 done 11802 done 11803 done 11804 IFS=$as_save_IFS 11805 if test -z "$ac_cv_path_GREP"; then 11806 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11807 fi 11808 else 11809 ac_cv_path_GREP=$GREP 11810 fi 11811 ;; 11812 esac 11813 fi 11814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11815 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11816 GREP="$ac_cv_path_GREP" 11817 11818 11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11820 printf %s "checking for egrep... " >&6; } 11821 if test ${ac_cv_path_EGREP+y} 11822 then : 11823 printf %s "(cached) " >&6 11824 else case e in #( 11825 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11826 then ac_cv_path_EGREP="$GREP -E" 11827 else 11828 if test -z "$EGREP"; then 11829 ac_path_EGREP_found=false 11830 # Loop through the user's path and test for each of PROGNAME-LIST 11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11833 do 11834 IFS=$as_save_IFS 11835 case $as_dir in #((( 11836 '') as_dir=./ ;; 11837 */) ;; 11838 *) as_dir=$as_dir/ ;; 11839 esac 11840 for ac_prog in egrep 11841 do 11842 for ac_exec_ext in '' $ac_executable_extensions; do 11843 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11844 as_fn_executable_p "$ac_path_EGREP" || continue 11845 # Check for GNU ac_path_EGREP and select it if it is found. 11846 # Check for GNU $ac_path_EGREP 11847 case `"$ac_path_EGREP" --version 2>&1` in #( 11848 *GNU*) 11849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11850 #( 11851 *) 11852 ac_count=0 11853 printf %s 0123456789 >"conftest.in" 11854 while : 11855 do 11856 cat "conftest.in" "conftest.in" >"conftest.tmp" 11857 mv "conftest.tmp" "conftest.in" 11858 cp "conftest.in" "conftest.nl" 11859 printf "%s\n" 'EGREP' >> "conftest.nl" 11860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11862 as_fn_arith $ac_count + 1 && ac_count=$as_val 11863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11864 # Best one so far, save it but keep looking for a better one 11865 ac_cv_path_EGREP="$ac_path_EGREP" 11866 ac_path_EGREP_max=$ac_count 11867 fi 11868 # 10*(2^10) chars as input seems more than enough 11869 test $ac_count -gt 10 && break 11870 done 11871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11872 esac 11873 11874 $ac_path_EGREP_found && break 3 11875 done 11876 done 11877 done 11878 IFS=$as_save_IFS 11879 if test -z "$ac_cv_path_EGREP"; then 11880 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11881 fi 11882 else 11883 ac_cv_path_EGREP=$EGREP 11884 fi 11885 11886 fi ;; 11887 esac 11888 fi 11889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11890 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11891 EGREP="$ac_cv_path_EGREP" 11892 11893 EGREP_TRADITIONAL=$EGREP 11894 ac_cv_path_EGREP_TRADITIONAL=$EGREP 11895 11896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11897 printf %s "checking for fgrep... " >&6; } 11898 if test ${ac_cv_path_FGREP+y} 11899 then : 11900 printf %s "(cached) " >&6 11901 else case e in #( 11902 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11903 then ac_cv_path_FGREP="$GREP -F" 11904 else 11905 if test -z "$FGREP"; then 11906 ac_path_FGREP_found=false 11907 # Loop through the user's path and test for each of PROGNAME-LIST 11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11910 do 11911 IFS=$as_save_IFS 11912 case $as_dir in #((( 11913 '') as_dir=./ ;; 11914 */) ;; 11915 *) as_dir=$as_dir/ ;; 11916 esac 11917 for ac_prog in fgrep 11918 do 11919 for ac_exec_ext in '' $ac_executable_extensions; do 11920 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11921 as_fn_executable_p "$ac_path_FGREP" || continue 11922 # Check for GNU ac_path_FGREP and select it if it is found. 11923 # Check for GNU $ac_path_FGREP 11924 case `"$ac_path_FGREP" --version 2>&1` in #( 11925 *GNU*) 11926 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11927 #( 11928 *) 11929 ac_count=0 11930 printf %s 0123456789 >"conftest.in" 11931 while : 11932 do 11933 cat "conftest.in" "conftest.in" >"conftest.tmp" 11934 mv "conftest.tmp" "conftest.in" 11935 cp "conftest.in" "conftest.nl" 11936 printf "%s\n" 'FGREP' >> "conftest.nl" 11937 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11939 as_fn_arith $ac_count + 1 && ac_count=$as_val 11940 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11941 # Best one so far, save it but keep looking for a better one 11942 ac_cv_path_FGREP="$ac_path_FGREP" 11943 ac_path_FGREP_max=$ac_count 11944 fi 11945 # 10*(2^10) chars as input seems more than enough 11946 test $ac_count -gt 10 && break 11947 done 11948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11949 esac 11950 11951 $ac_path_FGREP_found && break 3 11952 done 11953 done 11954 done 11955 IFS=$as_save_IFS 11956 if test -z "$ac_cv_path_FGREP"; then 11957 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11958 fi 11959 else 11960 ac_cv_path_FGREP=$FGREP 11961 fi 11962 11963 fi ;; 11964 esac 11965 fi 11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11967 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11968 FGREP="$ac_cv_path_FGREP" 11969 11970 11971 test -z "$GREP" && GREP=grep 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 # Check whether --with-gnu-ld was given. 11992 if test ${with_gnu_ld+y} 11993 then : 11994 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11995 else case e in #( 11996 e) with_gnu_ld=no ;; 11997 esac 11998 fi 11999 12000 ac_prog=ld 12001 if test yes = "$GCC"; then 12002 # Check if gcc -print-prog-name=ld gives a path. 12003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12004 printf %s "checking for ld used by $CC... " >&6; } 12005 case $host in 12006 *-*-mingw*) 12007 # gcc leaves a trailing carriage return, which upsets mingw 12008 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12009 *) 12010 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12011 esac 12012 case $ac_prog in 12013 # Accept absolute paths. 12014 [\\/]* | ?:[\\/]*) 12015 re_direlt='/[^/][^/]*/\.\./' 12016 # Canonicalize the pathname of ld 12017 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12018 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12019 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12020 done 12021 test -z "$LD" && LD=$ac_prog 12022 ;; 12023 "") 12024 # If it fails, then pretend we aren't using GCC. 12025 ac_prog=ld 12026 ;; 12027 *) 12028 # If it is relative, then search for the first ld in PATH. 12029 with_gnu_ld=unknown 12030 ;; 12031 esac 12032 elif test yes = "$with_gnu_ld"; then 12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12034 printf %s "checking for GNU ld... " >&6; } 12035 else 12036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12037 printf %s "checking for non-GNU ld... " >&6; } 12038 fi 12039 if test ${lt_cv_path_LD+y} 12040 then : 12041 printf %s "(cached) " >&6 12042 else case e in #( 12043 e) if test -z "$LD"; then 12044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12045 for ac_dir in $PATH; do 12046 IFS=$lt_save_ifs 12047 test -z "$ac_dir" && ac_dir=. 12048 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12049 lt_cv_path_LD=$ac_dir/$ac_prog 12050 # Check to see if the program is GNU ld. I'd rather use --version, 12051 # but apparently some variants of GNU ld only accept -v. 12052 # Break only if it was the GNU/non-GNU ld that we prefer. 12053 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12054 *GNU* | *'with BFD'*) 12055 test no != "$with_gnu_ld" && break 12056 ;; 12057 *) 12058 test yes != "$with_gnu_ld" && break 12059 ;; 12060 esac 12061 fi 12062 done 12063 IFS=$lt_save_ifs 12064 else 12065 lt_cv_path_LD=$LD # Let the user override the test with a path. 12066 fi ;; 12067 esac 12068 fi 12069 12070 LD=$lt_cv_path_LD 12071 if test -n "$LD"; then 12072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12073 printf "%s\n" "$LD" >&6; } 12074 else 12075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12076 printf "%s\n" "no" >&6; } 12077 fi 12078 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12080 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12081 if test ${lt_cv_prog_gnu_ld+y} 12082 then : 12083 printf %s "(cached) " >&6 12084 else case e in #( 12085 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 12086 case `$LD -v 2>&1 </dev/null` in 12087 *GNU* | *'with BFD'*) 12088 lt_cv_prog_gnu_ld=yes 12089 ;; 12090 *) 12091 lt_cv_prog_gnu_ld=no 12092 ;; 12093 esac ;; 12094 esac 12095 fi 12096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12097 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12098 with_gnu_ld=$lt_cv_prog_gnu_ld 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12109 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12110 if test ${lt_cv_path_NM+y} 12111 then : 12112 printf %s "(cached) " >&6 12113 else case e in #( 12114 e) if test -n "$NM"; then 12115 # Let the user override the test. 12116 lt_cv_path_NM=$NM 12117 else 12118 lt_nm_to_check=${ac_tool_prefix}nm 12119 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12120 lt_nm_to_check="$lt_nm_to_check nm" 12121 fi 12122 for lt_tmp_nm in $lt_nm_to_check; do 12123 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12124 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12125 IFS=$lt_save_ifs 12126 test -z "$ac_dir" && ac_dir=. 12127 tmp_nm=$ac_dir/$lt_tmp_nm 12128 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12129 # Check to see if the nm accepts a BSD-compat flag. 12130 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12131 # nm: unknown option "B" ignored 12132 # Tru64's nm complains that /dev/null is an invalid object file 12133 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12134 case $build_os in 12135 mingw*) lt_bad_file=conftest.nm/nofile ;; 12136 *) lt_bad_file=/dev/null ;; 12137 esac 12138 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 12139 *$lt_bad_file* | *'Invalid file or object type'*) 12140 lt_cv_path_NM="$tmp_nm -B" 12141 break 2 12142 ;; 12143 *) 12144 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 12145 */dev/null*) 12146 lt_cv_path_NM="$tmp_nm -p" 12147 break 2 12148 ;; 12149 *) 12150 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12151 continue # so that we can try to find one that supports BSD flags 12152 ;; 12153 esac 12154 ;; 12155 esac 12156 fi 12157 done 12158 IFS=$lt_save_ifs 12159 done 12160 : ${lt_cv_path_NM=no} 12161 fi ;; 12162 esac 12163 fi 12164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12165 printf "%s\n" "$lt_cv_path_NM" >&6; } 12166 if test no != "$lt_cv_path_NM"; then 12167 NM=$lt_cv_path_NM 12168 else 12169 # Didn't find any BSD compatible name lister, look for dumpbin. 12170 if test -n "$DUMPBIN"; then : 12171 # Let the user override the test. 12172 else 12173 if test -n "$ac_tool_prefix"; then 12174 for ac_prog in dumpbin "link -dump" 12175 do 12176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12179 printf %s "checking for $ac_word... " >&6; } 12180 if test ${ac_cv_prog_DUMPBIN+y} 12181 then : 12182 printf %s "(cached) " >&6 12183 else case e in #( 12184 e) if test -n "$DUMPBIN"; then 12185 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12186 else 12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12188 for as_dir in $PATH 12189 do 12190 IFS=$as_save_IFS 12191 case $as_dir in #((( 12192 '') as_dir=./ ;; 12193 */) ;; 12194 *) as_dir=$as_dir/ ;; 12195 esac 12196 for ac_exec_ext in '' $ac_executable_extensions; do 12197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12198 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12200 break 2 12201 fi 12202 done 12203 done 12204 IFS=$as_save_IFS 12205 12206 fi ;; 12207 esac 12208 fi 12209 DUMPBIN=$ac_cv_prog_DUMPBIN 12210 if test -n "$DUMPBIN"; then 12211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12212 printf "%s\n" "$DUMPBIN" >&6; } 12213 else 12214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12215 printf "%s\n" "no" >&6; } 12216 fi 12217 12218 12219 test -n "$DUMPBIN" && break 12220 done 12221 fi 12222 if test -z "$DUMPBIN"; then 12223 ac_ct_DUMPBIN=$DUMPBIN 12224 for ac_prog in dumpbin "link -dump" 12225 do 12226 # Extract the first word of "$ac_prog", so it can be a program name with args. 12227 set dummy $ac_prog; ac_word=$2 12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12229 printf %s "checking for $ac_word... " >&6; } 12230 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12231 then : 12232 printf %s "(cached) " >&6 12233 else case e in #( 12234 e) if test -n "$ac_ct_DUMPBIN"; then 12235 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12236 else 12237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12238 for as_dir in $PATH 12239 do 12240 IFS=$as_save_IFS 12241 case $as_dir in #((( 12242 '') as_dir=./ ;; 12243 */) ;; 12244 *) as_dir=$as_dir/ ;; 12245 esac 12246 for ac_exec_ext in '' $ac_executable_extensions; do 12247 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12248 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12249 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12250 break 2 12251 fi 12252 done 12253 done 12254 IFS=$as_save_IFS 12255 12256 fi ;; 12257 esac 12258 fi 12259 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12260 if test -n "$ac_ct_DUMPBIN"; then 12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12262 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12263 else 12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12265 printf "%s\n" "no" >&6; } 12266 fi 12267 12268 12269 test -n "$ac_ct_DUMPBIN" && break 12270 done 12271 12272 if test "x$ac_ct_DUMPBIN" = x; then 12273 DUMPBIN=":" 12274 else 12275 case $cross_compiling:$ac_tool_warned in 12276 yes:) 12277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12278 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12279 ac_tool_warned=yes ;; 12280 esac 12281 DUMPBIN=$ac_ct_DUMPBIN 12282 fi 12283 fi 12284 12285 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12286 *COFF*) 12287 DUMPBIN="$DUMPBIN -symbols -headers" 12288 ;; 12289 *) 12290 DUMPBIN=: 12291 ;; 12292 esac 12293 fi 12294 12295 if test : != "$DUMPBIN"; then 12296 NM=$DUMPBIN 12297 fi 12298 fi 12299 test -z "$NM" && NM=nm 12300 12301 12302 12303 12304 12305 12306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12307 printf %s "checking the name lister ($NM) interface... " >&6; } 12308 if test ${lt_cv_nm_interface+y} 12309 then : 12310 printf %s "(cached) " >&6 12311 else case e in #( 12312 e) lt_cv_nm_interface="BSD nm" 12313 echo "int some_variable = 0;" > conftest.$ac_ext 12314 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12315 (eval "$ac_compile" 2>conftest.err) 12316 cat conftest.err >&5 12317 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12318 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12319 cat conftest.err >&5 12320 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12321 cat conftest.out >&5 12322 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12323 lt_cv_nm_interface="MS dumpbin" 12324 fi 12325 rm -f conftest* ;; 12326 esac 12327 fi 12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12329 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12330 12331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12332 printf %s "checking whether ln -s works... " >&6; } 12333 LN_S=$as_ln_s 12334 if test "$LN_S" = "ln -s"; then 12335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12336 printf "%s\n" "yes" >&6; } 12337 else 12338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12339 printf "%s\n" "no, using $LN_S" >&6; } 12340 fi 12341 12342 # find the maximum length of command line arguments 12343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12344 printf %s "checking the maximum length of command line arguments... " >&6; } 12345 if test ${lt_cv_sys_max_cmd_len+y} 12346 then : 12347 printf %s "(cached) " >&6 12348 else case e in #( 12349 e) i=0 12350 teststring=ABCD 12351 12352 case $build_os in 12353 msdosdjgpp*) 12354 # On DJGPP, this test can blow up pretty badly due to problems in libc 12355 # (any single argument exceeding 2000 bytes causes a buffer overrun 12356 # during glob expansion). Even if it were fixed, the result of this 12357 # check would be larger than it should be. 12358 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12359 ;; 12360 12361 gnu*) 12362 # Under GNU Hurd, this test is not required because there is 12363 # no limit to the length of command line arguments. 12364 # Libtool will interpret -1 as no limit whatsoever 12365 lt_cv_sys_max_cmd_len=-1; 12366 ;; 12367 12368 cygwin* | mingw* | cegcc*) 12369 # On Win9x/ME, this test blows up -- it succeeds, but takes 12370 # about 5 minutes as the teststring grows exponentially. 12371 # Worse, since 9x/ME are not pre-emptively multitasking, 12372 # you end up with a "frozen" computer, even though with patience 12373 # the test eventually succeeds (with a max line length of 256k). 12374 # Instead, let's just punt: use the minimum linelength reported by 12375 # all of the supported platforms: 8192 (on NT/2K/XP). 12376 lt_cv_sys_max_cmd_len=8192; 12377 ;; 12378 12379 mint*) 12380 # On MiNT this can take a long time and run out of memory. 12381 lt_cv_sys_max_cmd_len=8192; 12382 ;; 12383 12384 amigaos*) 12385 # On AmigaOS with pdksh, this test takes hours, literally. 12386 # So we just punt and use a minimum line length of 8192. 12387 lt_cv_sys_max_cmd_len=8192; 12388 ;; 12389 12390 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12391 # This has been around since 386BSD, at least. Likely further. 12392 if test -x /sbin/sysctl; then 12393 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12394 elif test -x /usr/sbin/sysctl; then 12395 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12396 else 12397 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12398 fi 12399 # And add a safety zone 12400 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12402 ;; 12403 12404 interix*) 12405 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12406 lt_cv_sys_max_cmd_len=196608 12407 ;; 12408 12409 os2*) 12410 # The test takes a long time on OS/2. 12411 lt_cv_sys_max_cmd_len=8192 12412 ;; 12413 12414 osf*) 12415 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12416 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12417 # nice to cause kernel panics so lets avoid the loop below. 12418 # First set a reasonable default. 12419 lt_cv_sys_max_cmd_len=16384 12420 # 12421 if test -x /sbin/sysconfig; then 12422 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12423 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12424 esac 12425 fi 12426 ;; 12427 sco3.2v5*) 12428 lt_cv_sys_max_cmd_len=102400 12429 ;; 12430 sysv5* | sco5v6* | sysv4.2uw2*) 12431 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12432 if test -n "$kargmax"; then 12433 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12434 else 12435 lt_cv_sys_max_cmd_len=32768 12436 fi 12437 ;; 12438 *) 12439 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12440 if test -n "$lt_cv_sys_max_cmd_len" && \ 12441 test undefined != "$lt_cv_sys_max_cmd_len"; then 12442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12443 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12444 else 12445 # Make teststring a little bigger before we do anything with it. 12446 # a 1K string should be a reasonable start. 12447 for i in 1 2 3 4 5 6 7 8; do 12448 teststring=$teststring$teststring 12449 done 12450 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12451 # If test is not a shell built-in, we'll probably end up computing a 12452 # maximum length that is only half of the actual maximum length, but 12453 # we can't tell. 12454 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12455 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12456 test 17 != "$i" # 1/2 MB should be enough 12457 do 12458 i=`expr $i + 1` 12459 teststring=$teststring$teststring 12460 done 12461 # Only check the string length outside the loop. 12462 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12463 teststring= 12464 # Add a significant safety factor because C++ compilers can tack on 12465 # massive amounts of additional arguments before passing them to the 12466 # linker. It appears as though 1/2 is a usable value. 12467 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12468 fi 12469 ;; 12470 esac 12471 ;; 12472 esac 12473 fi 12474 12475 if test -n "$lt_cv_sys_max_cmd_len"; then 12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12477 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12478 else 12479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12480 printf "%s\n" "none" >&6; } 12481 fi 12482 max_cmd_len=$lt_cv_sys_max_cmd_len 12483 12484 12485 12486 12487 12488 12489 : ${CP="cp -f"} 12490 : ${MV="mv -f"} 12491 : ${RM="rm -f"} 12492 12493 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12494 lt_unset=unset 12495 else 12496 lt_unset=false 12497 fi 12498 12499 12500 12501 12502 12503 # test EBCDIC or ASCII 12504 case `echo X|tr X '\101'` in 12505 A) # ASCII based system 12506 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12507 lt_SP2NL='tr \040 \012' 12508 lt_NL2SP='tr \015\012 \040\040' 12509 ;; 12510 *) # EBCDIC based system 12511 lt_SP2NL='tr \100 \n' 12512 lt_NL2SP='tr \r\n \100\100' 12513 ;; 12514 esac 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12525 printf %s "checking how to convert $build file names to $host format... " >&6; } 12526 if test ${lt_cv_to_host_file_cmd+y} 12527 then : 12528 printf %s "(cached) " >&6 12529 else case e in #( 12530 e) case $host in 12531 *-*-mingw* ) 12532 case $build in 12533 *-*-mingw* ) # actually msys 12534 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12535 ;; 12536 *-*-cygwin* ) 12537 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12538 ;; 12539 * ) # otherwise, assume *nix 12540 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12541 ;; 12542 esac 12543 ;; 12544 *-*-cygwin* ) 12545 case $build in 12546 *-*-mingw* ) # actually msys 12547 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12548 ;; 12549 *-*-cygwin* ) 12550 lt_cv_to_host_file_cmd=func_convert_file_noop 12551 ;; 12552 * ) # otherwise, assume *nix 12553 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12554 ;; 12555 esac 12556 ;; 12557 * ) # unhandled hosts (and "normal" native builds) 12558 lt_cv_to_host_file_cmd=func_convert_file_noop 12559 ;; 12560 esac 12561 ;; 12562 esac 12563 fi 12564 12565 to_host_file_cmd=$lt_cv_to_host_file_cmd 12566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12567 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12568 12569 12570 12571 12572 12573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12574 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12575 if test ${lt_cv_to_tool_file_cmd+y} 12576 then : 12577 printf %s "(cached) " >&6 12578 else case e in #( 12579 e) #assume ordinary cross tools, or native build. 12580 lt_cv_to_tool_file_cmd=func_convert_file_noop 12581 case $host in 12582 *-*-mingw* ) 12583 case $build in 12584 *-*-mingw* ) # actually msys 12585 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12586 ;; 12587 esac 12588 ;; 12589 esac 12590 ;; 12591 esac 12592 fi 12593 12594 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12596 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12597 12598 12599 12600 12601 12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12603 printf %s "checking for $LD option to reload object files... " >&6; } 12604 if test ${lt_cv_ld_reload_flag+y} 12605 then : 12606 printf %s "(cached) " >&6 12607 else case e in #( 12608 e) lt_cv_ld_reload_flag='-r' ;; 12609 esac 12610 fi 12611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12612 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12613 reload_flag=$lt_cv_ld_reload_flag 12614 case $reload_flag in 12615 "" | " "*) ;; 12616 *) reload_flag=" $reload_flag" ;; 12617 esac 12618 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12619 case $host_os in 12620 cygwin* | mingw* | pw32* | cegcc*) 12621 if test yes != "$GCC"; then 12622 reload_cmds=false 12623 fi 12624 ;; 12625 darwin*) 12626 if test yes = "$GCC"; then 12627 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12628 else 12629 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12630 fi 12631 ;; 12632 esac 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 if test -n "$ac_tool_prefix"; then 12643 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12644 set dummy ${ac_tool_prefix}file; ac_word=$2 12645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12646 printf %s "checking for $ac_word... " >&6; } 12647 if test ${ac_cv_prog_FILECMD+y} 12648 then : 12649 printf %s "(cached) " >&6 12650 else case e in #( 12651 e) if test -n "$FILECMD"; then 12652 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12653 else 12654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12655 for as_dir in $PATH 12656 do 12657 IFS=$as_save_IFS 12658 case $as_dir in #((( 12659 '') as_dir=./ ;; 12660 */) ;; 12661 *) as_dir=$as_dir/ ;; 12662 esac 12663 for ac_exec_ext in '' $ac_executable_extensions; do 12664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12665 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12667 break 2 12668 fi 12669 done 12670 done 12671 IFS=$as_save_IFS 12672 12673 fi ;; 12674 esac 12675 fi 12676 FILECMD=$ac_cv_prog_FILECMD 12677 if test -n "$FILECMD"; then 12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12679 printf "%s\n" "$FILECMD" >&6; } 12680 else 12681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12682 printf "%s\n" "no" >&6; } 12683 fi 12684 12685 12686 fi 12687 if test -z "$ac_cv_prog_FILECMD"; then 12688 ac_ct_FILECMD=$FILECMD 12689 # Extract the first word of "file", so it can be a program name with args. 12690 set dummy file; ac_word=$2 12691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12692 printf %s "checking for $ac_word... " >&6; } 12693 if test ${ac_cv_prog_ac_ct_FILECMD+y} 12694 then : 12695 printf %s "(cached) " >&6 12696 else case e in #( 12697 e) if test -n "$ac_ct_FILECMD"; then 12698 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12699 else 12700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12701 for as_dir in $PATH 12702 do 12703 IFS=$as_save_IFS 12704 case $as_dir in #((( 12705 '') as_dir=./ ;; 12706 */) ;; 12707 *) as_dir=$as_dir/ ;; 12708 esac 12709 for ac_exec_ext in '' $ac_executable_extensions; do 12710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12711 ac_cv_prog_ac_ct_FILECMD="file" 12712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12713 break 2 12714 fi 12715 done 12716 done 12717 IFS=$as_save_IFS 12718 12719 fi ;; 12720 esac 12721 fi 12722 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12723 if test -n "$ac_ct_FILECMD"; then 12724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12725 printf "%s\n" "$ac_ct_FILECMD" >&6; } 12726 else 12727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12728 printf "%s\n" "no" >&6; } 12729 fi 12730 12731 if test "x$ac_ct_FILECMD" = x; then 12732 FILECMD=":" 12733 else 12734 case $cross_compiling:$ac_tool_warned in 12735 yes:) 12736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12738 ac_tool_warned=yes ;; 12739 esac 12740 FILECMD=$ac_ct_FILECMD 12741 fi 12742 else 12743 FILECMD="$ac_cv_prog_FILECMD" 12744 fi 12745 12746 12747 12748 12749 12750 12751 12752 if test -n "$ac_tool_prefix"; then 12753 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12754 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12756 printf %s "checking for $ac_word... " >&6; } 12757 if test ${ac_cv_prog_OBJDUMP+y} 12758 then : 12759 printf %s "(cached) " >&6 12760 else case e in #( 12761 e) if test -n "$OBJDUMP"; then 12762 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12763 else 12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12765 for as_dir in $PATH 12766 do 12767 IFS=$as_save_IFS 12768 case $as_dir in #((( 12769 '') as_dir=./ ;; 12770 */) ;; 12771 *) as_dir=$as_dir/ ;; 12772 esac 12773 for ac_exec_ext in '' $ac_executable_extensions; do 12774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12775 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12777 break 2 12778 fi 12779 done 12780 done 12781 IFS=$as_save_IFS 12782 12783 fi ;; 12784 esac 12785 fi 12786 OBJDUMP=$ac_cv_prog_OBJDUMP 12787 if test -n "$OBJDUMP"; then 12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12789 printf "%s\n" "$OBJDUMP" >&6; } 12790 else 12791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12792 printf "%s\n" "no" >&6; } 12793 fi 12794 12795 12796 fi 12797 if test -z "$ac_cv_prog_OBJDUMP"; then 12798 ac_ct_OBJDUMP=$OBJDUMP 12799 # Extract the first word of "objdump", so it can be a program name with args. 12800 set dummy objdump; ac_word=$2 12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12802 printf %s "checking for $ac_word... " >&6; } 12803 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12804 then : 12805 printf %s "(cached) " >&6 12806 else case e in #( 12807 e) if test -n "$ac_ct_OBJDUMP"; then 12808 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12809 else 12810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12811 for as_dir in $PATH 12812 do 12813 IFS=$as_save_IFS 12814 case $as_dir in #((( 12815 '') as_dir=./ ;; 12816 */) ;; 12817 *) as_dir=$as_dir/ ;; 12818 esac 12819 for ac_exec_ext in '' $ac_executable_extensions; do 12820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12821 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12823 break 2 12824 fi 12825 done 12826 done 12827 IFS=$as_save_IFS 12828 12829 fi ;; 12830 esac 12831 fi 12832 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12833 if test -n "$ac_ct_OBJDUMP"; then 12834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12835 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12836 else 12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12838 printf "%s\n" "no" >&6; } 12839 fi 12840 12841 if test "x$ac_ct_OBJDUMP" = x; then 12842 OBJDUMP="false" 12843 else 12844 case $cross_compiling:$ac_tool_warned in 12845 yes:) 12846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12847 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12848 ac_tool_warned=yes ;; 12849 esac 12850 OBJDUMP=$ac_ct_OBJDUMP 12851 fi 12852 else 12853 OBJDUMP="$ac_cv_prog_OBJDUMP" 12854 fi 12855 12856 test -z "$OBJDUMP" && OBJDUMP=objdump 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12867 printf %s "checking how to recognize dependent libraries... " >&6; } 12868 if test ${lt_cv_deplibs_check_method+y} 12869 then : 12870 printf %s "(cached) " >&6 12871 else case e in #( 12872 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 12873 lt_cv_file_magic_test_file= 12874 lt_cv_deplibs_check_method='unknown' 12875 # Need to set the preceding variable on all platforms that support 12876 # interlibrary dependencies. 12877 # 'none' -- dependencies not supported. 12878 # 'unknown' -- same as none, but documents that we really don't know. 12879 # 'pass_all' -- all dependencies passed with no checks. 12880 # 'test_compile' -- check by making test program. 12881 # 'file_magic [[regex]]' -- check by looking for files in library path 12882 # that responds to the $file_magic_cmd with a given extended regex. 12883 # If you have 'file' or equivalent on your system and you're not sure 12884 # whether 'pass_all' will *always* work, you probably want this one. 12885 12886 case $host_os in 12887 aix[4-9]*) 12888 lt_cv_deplibs_check_method=pass_all 12889 ;; 12890 12891 beos*) 12892 lt_cv_deplibs_check_method=pass_all 12893 ;; 12894 12895 bsdi[45]*) 12896 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12897 lt_cv_file_magic_cmd='$FILECMD -L' 12898 lt_cv_file_magic_test_file=/shlib/libc.so 12899 ;; 12900 12901 cygwin*) 12902 # func_win32_libid is a shell function defined in ltmain.sh 12903 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12904 lt_cv_file_magic_cmd='func_win32_libid' 12905 ;; 12906 12907 mingw* | pw32*) 12908 # Base MSYS/MinGW do not provide the 'file' command needed by 12909 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12910 # unless we find 'file', for example because we are cross-compiling. 12911 if ( file / ) >/dev/null 2>&1; then 12912 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12913 lt_cv_file_magic_cmd='func_win32_libid' 12914 else 12915 # Keep this pattern in sync with the one in func_win32_libid. 12916 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12917 lt_cv_file_magic_cmd='$OBJDUMP -f' 12918 fi 12919 ;; 12920 12921 cegcc*) 12922 # use the weaker test based on 'objdump'. See mingw*. 12923 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12924 lt_cv_file_magic_cmd='$OBJDUMP -f' 12925 ;; 12926 12927 darwin* | rhapsody*) 12928 lt_cv_deplibs_check_method=pass_all 12929 ;; 12930 12931 freebsd* | dragonfly* | midnightbsd*) 12932 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12933 case $host_cpu in 12934 i*86 ) 12935 # Not sure whether the presence of OpenBSD here was a mistake. 12936 # Let's accept both of them until this is cleared up. 12937 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12938 lt_cv_file_magic_cmd=$FILECMD 12939 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12940 ;; 12941 esac 12942 else 12943 lt_cv_deplibs_check_method=pass_all 12944 fi 12945 ;; 12946 12947 haiku*) 12948 lt_cv_deplibs_check_method=pass_all 12949 ;; 12950 12951 hpux10.20* | hpux11*) 12952 lt_cv_file_magic_cmd=$FILECMD 12953 case $host_cpu in 12954 ia64*) 12955 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12956 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12957 ;; 12958 hppa*64*) 12959 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]' 12960 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12961 ;; 12962 *) 12963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12964 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12965 ;; 12966 esac 12967 ;; 12968 12969 interix[3-9]*) 12970 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12972 ;; 12973 12974 irix5* | irix6* | nonstopux*) 12975 case $LD in 12976 *-32|*"-32 ") libmagic=32-bit;; 12977 *-n32|*"-n32 ") libmagic=N32;; 12978 *-64|*"-64 ") libmagic=64-bit;; 12979 *) libmagic=never-match;; 12980 esac 12981 lt_cv_deplibs_check_method=pass_all 12982 ;; 12983 12984 # This must be glibc/ELF. 12985 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12986 lt_cv_deplibs_check_method=pass_all 12987 ;; 12988 12989 netbsd*) 12990 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12991 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12992 else 12993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12994 fi 12995 ;; 12996 12997 newos6*) 12998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12999 lt_cv_file_magic_cmd=$FILECMD 13000 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13001 ;; 13002 13003 *nto* | *qnx*) 13004 lt_cv_deplibs_check_method=pass_all 13005 ;; 13006 13007 openbsd* | bitrig*) 13008 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13009 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13010 else 13011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13012 fi 13013 ;; 13014 13015 osf3* | osf4* | osf5*) 13016 lt_cv_deplibs_check_method=pass_all 13017 ;; 13018 13019 rdos*) 13020 lt_cv_deplibs_check_method=pass_all 13021 ;; 13022 13023 solaris*) 13024 lt_cv_deplibs_check_method=pass_all 13025 ;; 13026 13027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13028 lt_cv_deplibs_check_method=pass_all 13029 ;; 13030 13031 sysv4 | sysv4.3*) 13032 case $host_vendor in 13033 motorola) 13034 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]' 13035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13036 ;; 13037 ncr) 13038 lt_cv_deplibs_check_method=pass_all 13039 ;; 13040 sequent) 13041 lt_cv_file_magic_cmd='/bin/file' 13042 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13043 ;; 13044 sni) 13045 lt_cv_file_magic_cmd='/bin/file' 13046 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13047 lt_cv_file_magic_test_file=/lib/libc.so 13048 ;; 13049 siemens) 13050 lt_cv_deplibs_check_method=pass_all 13051 ;; 13052 pc) 13053 lt_cv_deplibs_check_method=pass_all 13054 ;; 13055 esac 13056 ;; 13057 13058 tpf*) 13059 lt_cv_deplibs_check_method=pass_all 13060 ;; 13061 os2*) 13062 lt_cv_deplibs_check_method=pass_all 13063 ;; 13064 esac 13065 ;; 13066 esac 13067 fi 13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13069 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 13070 13071 file_magic_glob= 13072 want_nocaseglob=no 13073 if test "$build" = "$host"; then 13074 case $host_os in 13075 mingw* | pw32*) 13076 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13077 want_nocaseglob=yes 13078 else 13079 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13080 fi 13081 ;; 13082 esac 13083 fi 13084 13085 file_magic_cmd=$lt_cv_file_magic_cmd 13086 deplibs_check_method=$lt_cv_deplibs_check_method 13087 test -z "$deplibs_check_method" && deplibs_check_method=unknown 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 if test -n "$ac_tool_prefix"; then 13111 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13112 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13114 printf %s "checking for $ac_word... " >&6; } 13115 if test ${ac_cv_prog_DLLTOOL+y} 13116 then : 13117 printf %s "(cached) " >&6 13118 else case e in #( 13119 e) if test -n "$DLLTOOL"; then 13120 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13121 else 13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13123 for as_dir in $PATH 13124 do 13125 IFS=$as_save_IFS 13126 case $as_dir in #((( 13127 '') as_dir=./ ;; 13128 */) ;; 13129 *) as_dir=$as_dir/ ;; 13130 esac 13131 for ac_exec_ext in '' $ac_executable_extensions; do 13132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13133 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13135 break 2 13136 fi 13137 done 13138 done 13139 IFS=$as_save_IFS 13140 13141 fi ;; 13142 esac 13143 fi 13144 DLLTOOL=$ac_cv_prog_DLLTOOL 13145 if test -n "$DLLTOOL"; then 13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13147 printf "%s\n" "$DLLTOOL" >&6; } 13148 else 13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13150 printf "%s\n" "no" >&6; } 13151 fi 13152 13153 13154 fi 13155 if test -z "$ac_cv_prog_DLLTOOL"; then 13156 ac_ct_DLLTOOL=$DLLTOOL 13157 # Extract the first word of "dlltool", so it can be a program name with args. 13158 set dummy dlltool; ac_word=$2 13159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13160 printf %s "checking for $ac_word... " >&6; } 13161 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13162 then : 13163 printf %s "(cached) " >&6 13164 else case e in #( 13165 e) if test -n "$ac_ct_DLLTOOL"; then 13166 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13167 else 13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13169 for as_dir in $PATH 13170 do 13171 IFS=$as_save_IFS 13172 case $as_dir in #((( 13173 '') as_dir=./ ;; 13174 */) ;; 13175 *) as_dir=$as_dir/ ;; 13176 esac 13177 for ac_exec_ext in '' $ac_executable_extensions; do 13178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13179 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13181 break 2 13182 fi 13183 done 13184 done 13185 IFS=$as_save_IFS 13186 13187 fi ;; 13188 esac 13189 fi 13190 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13191 if test -n "$ac_ct_DLLTOOL"; then 13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13193 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13194 else 13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13196 printf "%s\n" "no" >&6; } 13197 fi 13198 13199 if test "x$ac_ct_DLLTOOL" = x; then 13200 DLLTOOL="false" 13201 else 13202 case $cross_compiling:$ac_tool_warned in 13203 yes:) 13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13205 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13206 ac_tool_warned=yes ;; 13207 esac 13208 DLLTOOL=$ac_ct_DLLTOOL 13209 fi 13210 else 13211 DLLTOOL="$ac_cv_prog_DLLTOOL" 13212 fi 13213 13214 test -z "$DLLTOOL" && DLLTOOL=dlltool 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13226 printf %s "checking how to associate runtime and link libraries... " >&6; } 13227 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13228 then : 13229 printf %s "(cached) " >&6 13230 else case e in #( 13231 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 13232 13233 case $host_os in 13234 cygwin* | mingw* | pw32* | cegcc*) 13235 # two different shell functions defined in ltmain.sh; 13236 # decide which one to use based on capabilities of $DLLTOOL 13237 case `$DLLTOOL --help 2>&1` in 13238 *--identify-strict*) 13239 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13240 ;; 13241 *) 13242 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13243 ;; 13244 esac 13245 ;; 13246 *) 13247 # fallback: assume linklib IS sharedlib 13248 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13249 ;; 13250 esac 13251 ;; 13252 esac 13253 fi 13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13255 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13256 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13257 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13258 13259 13260 13261 13262 13263 13264 13265 if test -n "$ac_tool_prefix"; then 13266 for ac_prog in ar 13267 do 13268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13271 printf %s "checking for $ac_word... " >&6; } 13272 if test ${ac_cv_prog_AR+y} 13273 then : 13274 printf %s "(cached) " >&6 13275 else case e in #( 13276 e) if test -n "$AR"; then 13277 ac_cv_prog_AR="$AR" # Let the user override the test. 13278 else 13279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13280 for as_dir in $PATH 13281 do 13282 IFS=$as_save_IFS 13283 case $as_dir in #((( 13284 '') as_dir=./ ;; 13285 */) ;; 13286 *) as_dir=$as_dir/ ;; 13287 esac 13288 for ac_exec_ext in '' $ac_executable_extensions; do 13289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13290 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13292 break 2 13293 fi 13294 done 13295 done 13296 IFS=$as_save_IFS 13297 13298 fi ;; 13299 esac 13300 fi 13301 AR=$ac_cv_prog_AR 13302 if test -n "$AR"; then 13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13304 printf "%s\n" "$AR" >&6; } 13305 else 13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13307 printf "%s\n" "no" >&6; } 13308 fi 13309 13310 13311 test -n "$AR" && break 13312 done 13313 fi 13314 if test -z "$AR"; then 13315 ac_ct_AR=$AR 13316 for ac_prog in ar 13317 do 13318 # Extract the first word of "$ac_prog", so it can be a program name with args. 13319 set dummy $ac_prog; ac_word=$2 13320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13321 printf %s "checking for $ac_word... " >&6; } 13322 if test ${ac_cv_prog_ac_ct_AR+y} 13323 then : 13324 printf %s "(cached) " >&6 13325 else case e in #( 13326 e) if test -n "$ac_ct_AR"; then 13327 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13328 else 13329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13330 for as_dir in $PATH 13331 do 13332 IFS=$as_save_IFS 13333 case $as_dir in #((( 13334 '') as_dir=./ ;; 13335 */) ;; 13336 *) as_dir=$as_dir/ ;; 13337 esac 13338 for ac_exec_ext in '' $ac_executable_extensions; do 13339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13340 ac_cv_prog_ac_ct_AR="$ac_prog" 13341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13342 break 2 13343 fi 13344 done 13345 done 13346 IFS=$as_save_IFS 13347 13348 fi ;; 13349 esac 13350 fi 13351 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13352 if test -n "$ac_ct_AR"; then 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13354 printf "%s\n" "$ac_ct_AR" >&6; } 13355 else 13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13357 printf "%s\n" "no" >&6; } 13358 fi 13359 13360 13361 test -n "$ac_ct_AR" && break 13362 done 13363 13364 if test "x$ac_ct_AR" = x; then 13365 AR="false" 13366 else 13367 case $cross_compiling:$ac_tool_warned in 13368 yes:) 13369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13371 ac_tool_warned=yes ;; 13372 esac 13373 AR=$ac_ct_AR 13374 fi 13375 fi 13376 13377 : ${AR=ar} 13378 13379 13380 13381 13382 13383 13384 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13385 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13386 # higher priority because thats what people were doing historically (setting 13387 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13388 # variable obsoleted/removed. 13389 13390 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13391 lt_ar_flags=$AR_FLAGS 13392 13393 13394 13395 13396 13397 13398 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13399 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13400 13401 13402 13403 13404 13405 13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13407 printf %s "checking for archiver @FILE support... " >&6; } 13408 if test ${lt_cv_ar_at_file+y} 13409 then : 13410 printf %s "(cached) " >&6 13411 else case e in #( 13412 e) lt_cv_ar_at_file=no 13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13414 /* end confdefs.h. */ 13415 13416 int 13417 main (void) 13418 { 13419 13420 ; 13421 return 0; 13422 } 13423 _ACEOF 13424 if ac_fn_c_try_compile "$LINENO" 13425 then : 13426 echo conftest.$ac_objext > conftest.lst 13427 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13429 (eval $lt_ar_try) 2>&5 13430 ac_status=$? 13431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13432 test $ac_status = 0; } 13433 if test 0 -eq "$ac_status"; then 13434 # Ensure the archiver fails upon bogus file names. 13435 rm -f conftest.$ac_objext libconftest.a 13436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13437 (eval $lt_ar_try) 2>&5 13438 ac_status=$? 13439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13440 test $ac_status = 0; } 13441 if test 0 -ne "$ac_status"; then 13442 lt_cv_ar_at_file=@ 13443 fi 13444 fi 13445 rm -f conftest.* libconftest.a 13446 13447 fi 13448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13449 ;; 13450 esac 13451 fi 13452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13453 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13454 13455 if test no = "$lt_cv_ar_at_file"; then 13456 archiver_list_spec= 13457 else 13458 archiver_list_spec=$lt_cv_ar_at_file 13459 fi 13460 13461 13462 13463 13464 13465 13466 13467 if test -n "$ac_tool_prefix"; then 13468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13469 set dummy ${ac_tool_prefix}strip; ac_word=$2 13470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13471 printf %s "checking for $ac_word... " >&6; } 13472 if test ${ac_cv_prog_STRIP+y} 13473 then : 13474 printf %s "(cached) " >&6 13475 else case e in #( 13476 e) if test -n "$STRIP"; then 13477 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13478 else 13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13480 for as_dir in $PATH 13481 do 13482 IFS=$as_save_IFS 13483 case $as_dir in #((( 13484 '') as_dir=./ ;; 13485 */) ;; 13486 *) as_dir=$as_dir/ ;; 13487 esac 13488 for ac_exec_ext in '' $ac_executable_extensions; do 13489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13490 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13492 break 2 13493 fi 13494 done 13495 done 13496 IFS=$as_save_IFS 13497 13498 fi ;; 13499 esac 13500 fi 13501 STRIP=$ac_cv_prog_STRIP 13502 if test -n "$STRIP"; then 13503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13504 printf "%s\n" "$STRIP" >&6; } 13505 else 13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13507 printf "%s\n" "no" >&6; } 13508 fi 13509 13510 13511 fi 13512 if test -z "$ac_cv_prog_STRIP"; then 13513 ac_ct_STRIP=$STRIP 13514 # Extract the first word of "strip", so it can be a program name with args. 13515 set dummy strip; ac_word=$2 13516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13517 printf %s "checking for $ac_word... " >&6; } 13518 if test ${ac_cv_prog_ac_ct_STRIP+y} 13519 then : 13520 printf %s "(cached) " >&6 13521 else case e in #( 13522 e) if test -n "$ac_ct_STRIP"; then 13523 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13524 else 13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13526 for as_dir in $PATH 13527 do 13528 IFS=$as_save_IFS 13529 case $as_dir in #((( 13530 '') as_dir=./ ;; 13531 */) ;; 13532 *) as_dir=$as_dir/ ;; 13533 esac 13534 for ac_exec_ext in '' $ac_executable_extensions; do 13535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13536 ac_cv_prog_ac_ct_STRIP="strip" 13537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13538 break 2 13539 fi 13540 done 13541 done 13542 IFS=$as_save_IFS 13543 13544 fi ;; 13545 esac 13546 fi 13547 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13548 if test -n "$ac_ct_STRIP"; then 13549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13550 printf "%s\n" "$ac_ct_STRIP" >&6; } 13551 else 13552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13553 printf "%s\n" "no" >&6; } 13554 fi 13555 13556 if test "x$ac_ct_STRIP" = x; then 13557 STRIP=":" 13558 else 13559 case $cross_compiling:$ac_tool_warned in 13560 yes:) 13561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13562 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13563 ac_tool_warned=yes ;; 13564 esac 13565 STRIP=$ac_ct_STRIP 13566 fi 13567 else 13568 STRIP="$ac_cv_prog_STRIP" 13569 fi 13570 13571 test -z "$STRIP" && STRIP=: 13572 13573 13574 13575 13576 13577 13578 if test -n "$ac_tool_prefix"; then 13579 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13580 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13582 printf %s "checking for $ac_word... " >&6; } 13583 if test ${ac_cv_prog_RANLIB+y} 13584 then : 13585 printf %s "(cached) " >&6 13586 else case e in #( 13587 e) if test -n "$RANLIB"; then 13588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13589 else 13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13591 for as_dir in $PATH 13592 do 13593 IFS=$as_save_IFS 13594 case $as_dir in #((( 13595 '') as_dir=./ ;; 13596 */) ;; 13597 *) as_dir=$as_dir/ ;; 13598 esac 13599 for ac_exec_ext in '' $ac_executable_extensions; do 13600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13601 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13603 break 2 13604 fi 13605 done 13606 done 13607 IFS=$as_save_IFS 13608 13609 fi ;; 13610 esac 13611 fi 13612 RANLIB=$ac_cv_prog_RANLIB 13613 if test -n "$RANLIB"; then 13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13615 printf "%s\n" "$RANLIB" >&6; } 13616 else 13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13618 printf "%s\n" "no" >&6; } 13619 fi 13620 13621 13622 fi 13623 if test -z "$ac_cv_prog_RANLIB"; then 13624 ac_ct_RANLIB=$RANLIB 13625 # Extract the first word of "ranlib", so it can be a program name with args. 13626 set dummy ranlib; ac_word=$2 13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13628 printf %s "checking for $ac_word... " >&6; } 13629 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13630 then : 13631 printf %s "(cached) " >&6 13632 else case e in #( 13633 e) if test -n "$ac_ct_RANLIB"; then 13634 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13635 else 13636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13637 for as_dir in $PATH 13638 do 13639 IFS=$as_save_IFS 13640 case $as_dir in #((( 13641 '') as_dir=./ ;; 13642 */) ;; 13643 *) as_dir=$as_dir/ ;; 13644 esac 13645 for ac_exec_ext in '' $ac_executable_extensions; do 13646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13647 ac_cv_prog_ac_ct_RANLIB="ranlib" 13648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13649 break 2 13650 fi 13651 done 13652 done 13653 IFS=$as_save_IFS 13654 13655 fi ;; 13656 esac 13657 fi 13658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13659 if test -n "$ac_ct_RANLIB"; then 13660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13661 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13662 else 13663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13664 printf "%s\n" "no" >&6; } 13665 fi 13666 13667 if test "x$ac_ct_RANLIB" = x; then 13668 RANLIB=":" 13669 else 13670 case $cross_compiling:$ac_tool_warned in 13671 yes:) 13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13673 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13674 ac_tool_warned=yes ;; 13675 esac 13676 RANLIB=$ac_ct_RANLIB 13677 fi 13678 else 13679 RANLIB="$ac_cv_prog_RANLIB" 13680 fi 13681 13682 test -z "$RANLIB" && RANLIB=: 13683 13684 13685 13686 13687 13688 13689 # Determine commands to create old-style static archives. 13690 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13691 old_postinstall_cmds='chmod 644 $oldlib' 13692 old_postuninstall_cmds= 13693 13694 if test -n "$RANLIB"; then 13695 case $host_os in 13696 bitrig* | openbsd*) 13697 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13698 ;; 13699 *) 13700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13701 ;; 13702 esac 13703 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13704 fi 13705 13706 case $host_os in 13707 darwin*) 13708 lock_old_archive_extraction=yes ;; 13709 *) 13710 lock_old_archive_extraction=no ;; 13711 esac 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 # If no C compiler was specified, use CC. 13752 LTCC=${LTCC-"$CC"} 13753 13754 # If no C compiler flags were specified, use CFLAGS. 13755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13756 13757 # Allow CC to be a program name with arguments. 13758 compiler=$CC 13759 13760 13761 # Check for command to grab the raw symbol name followed by C symbol from nm. 13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13763 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13764 if test ${lt_cv_sys_global_symbol_pipe+y} 13765 then : 13766 printf %s "(cached) " >&6 13767 else case e in #( 13768 e) 13769 # These are sane defaults that work on at least a few old systems. 13770 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13771 13772 # Character class describing NM global symbol codes. 13773 symcode='[BCDEGRST]' 13774 13775 # Regexp to match symbols that can be accessed directly from C. 13776 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13777 13778 # Define system-specific variables. 13779 case $host_os in 13780 aix*) 13781 symcode='[BCDT]' 13782 ;; 13783 cygwin* | mingw* | pw32* | cegcc*) 13784 symcode='[ABCDGISTW]' 13785 ;; 13786 hpux*) 13787 if test ia64 = "$host_cpu"; then 13788 symcode='[ABCDEGRST]' 13789 fi 13790 ;; 13791 irix* | nonstopux*) 13792 symcode='[BCDEGRST]' 13793 ;; 13794 osf*) 13795 symcode='[BCDEGQRST]' 13796 ;; 13797 solaris*) 13798 symcode='[BDRT]' 13799 ;; 13800 sco3.2v5*) 13801 symcode='[DT]' 13802 ;; 13803 sysv4.2uw2*) 13804 symcode='[DT]' 13805 ;; 13806 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13807 symcode='[ABDT]' 13808 ;; 13809 sysv4) 13810 symcode='[DFNSTU]' 13811 ;; 13812 esac 13813 13814 # If we're using GNU nm, then use its standard symbol codes. 13815 case `$NM -V 2>&1` in 13816 *GNU* | *'with BFD'*) 13817 symcode='[ABCDGIRSTW]' ;; 13818 esac 13819 13820 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13821 # Gets list of data symbols to import. 13822 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13823 # Adjust the below global symbol transforms to fixup imported variables. 13824 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13825 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13826 lt_c_name_lib_hook="\ 13827 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13828 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13829 else 13830 # Disable hooks by default. 13831 lt_cv_sys_global_symbol_to_import= 13832 lt_cdecl_hook= 13833 lt_c_name_hook= 13834 lt_c_name_lib_hook= 13835 fi 13836 13837 # Transform an extracted symbol line into a proper C declaration. 13838 # Some systems (esp. on ia64) link data and code symbols differently, 13839 # so use this general approach. 13840 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13841 $lt_cdecl_hook\ 13842 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13843 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13844 13845 # Transform an extracted symbol line into symbol name and symbol address 13846 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13847 $lt_c_name_hook\ 13848 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13849 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13850 13851 # Transform an extracted symbol line into symbol name with lib prefix and 13852 # symbol address. 13853 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13854 $lt_c_name_lib_hook\ 13855 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13856 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13857 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13858 13859 # Handle CRLF in mingw tool chain 13860 opt_cr= 13861 case $build_os in 13862 mingw*) 13863 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13864 ;; 13865 esac 13866 13867 # Try without a prefix underscore, then with it. 13868 for ac_symprfx in "" "_"; do 13869 13870 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13871 symxfrm="\\1 $ac_symprfx\\2 \\2" 13872 13873 # Write the raw and C identifiers. 13874 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13875 # Fake it for dumpbin and say T for any non-static function, 13876 # D for any global variable and I for any imported variable. 13877 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13878 # which start with @ or ?. 13879 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13880 " {last_section=section; section=\$ 3};"\ 13881 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13882 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13883 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13884 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13885 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13886 " \$ 0!~/External *\|/{next};"\ 13887 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13888 " {if(hide[section]) next};"\ 13889 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13890 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13891 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13892 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13893 " ' prfx=^$ac_symprfx" 13894 else 13895 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13896 fi 13897 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13898 13899 # Check to see that the pipe works correctly. 13900 pipe_works=no 13901 13902 rm -f conftest* 13903 cat > conftest.$ac_ext <<_LT_EOF 13904 #ifdef __cplusplus 13905 extern "C" { 13906 #endif 13907 char nm_test_var; 13908 void nm_test_func(void); 13909 void nm_test_func(void){} 13910 #ifdef __cplusplus 13911 } 13912 #endif 13913 int main(){nm_test_var='a';nm_test_func();return(0);} 13914 _LT_EOF 13915 13916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13917 (eval $ac_compile) 2>&5 13918 ac_status=$? 13919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13920 test $ac_status = 0; }; then 13921 # Now try to grab the symbols. 13922 nlist=conftest.nm 13923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13924 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13925 ac_status=$? 13926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13927 test $ac_status = 0; } && test -s "$nlist"; then 13928 # Try sorting and uniquifying the output. 13929 if sort "$nlist" | uniq > "$nlist"T; then 13930 mv -f "$nlist"T "$nlist" 13931 else 13932 rm -f "$nlist"T 13933 fi 13934 13935 # Make sure that we snagged all the symbols we need. 13936 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13937 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13938 cat <<_LT_EOF > conftest.$ac_ext 13939 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13940 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13941 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13942 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13943 # define LT_DLSYM_CONST 13944 #elif defined __osf__ 13945 /* This system does not cope well with relocations in const data. */ 13946 # define LT_DLSYM_CONST 13947 #else 13948 # define LT_DLSYM_CONST const 13949 #endif 13950 13951 #ifdef __cplusplus 13952 extern "C" { 13953 #endif 13954 13955 _LT_EOF 13956 # Now generate the symbol file. 13957 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13958 13959 cat <<_LT_EOF >> conftest.$ac_ext 13960 13961 /* The mapping between symbol names and symbols. */ 13962 LT_DLSYM_CONST struct { 13963 const char *name; 13964 void *address; 13965 } 13966 lt__PROGRAM__LTX_preloaded_symbols[] = 13967 { 13968 { "@PROGRAM@", (void *) 0 }, 13969 _LT_EOF 13970 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13971 cat <<\_LT_EOF >> conftest.$ac_ext 13972 {0, (void *) 0} 13973 }; 13974 13975 /* This works around a problem in FreeBSD linker */ 13976 #ifdef FREEBSD_WORKAROUND 13977 static const void *lt_preloaded_setup() { 13978 return lt__PROGRAM__LTX_preloaded_symbols; 13979 } 13980 #endif 13981 13982 #ifdef __cplusplus 13983 } 13984 #endif 13985 _LT_EOF 13986 # Now try linking the two files. 13987 mv conftest.$ac_objext conftstm.$ac_objext 13988 lt_globsym_save_LIBS=$LIBS 13989 lt_globsym_save_CFLAGS=$CFLAGS 13990 LIBS=conftstm.$ac_objext 13991 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13993 (eval $ac_link) 2>&5 13994 ac_status=$? 13995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13996 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13997 pipe_works=yes 13998 fi 13999 LIBS=$lt_globsym_save_LIBS 14000 CFLAGS=$lt_globsym_save_CFLAGS 14001 else 14002 echo "cannot find nm_test_func in $nlist" >&5 14003 fi 14004 else 14005 echo "cannot find nm_test_var in $nlist" >&5 14006 fi 14007 else 14008 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14009 fi 14010 else 14011 echo "$progname: failed program was:" >&5 14012 cat conftest.$ac_ext >&5 14013 fi 14014 rm -rf conftest* conftst* 14015 14016 # Do not use the global_symbol_pipe unless it works. 14017 if test yes = "$pipe_works"; then 14018 break 14019 else 14020 lt_cv_sys_global_symbol_pipe= 14021 fi 14022 done 14023 ;; 14024 esac 14025 fi 14026 14027 if test -z "$lt_cv_sys_global_symbol_pipe"; then 14028 lt_cv_sys_global_symbol_to_cdecl= 14029 fi 14030 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14032 printf "%s\n" "failed" >&6; } 14033 else 14034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14035 printf "%s\n" "ok" >&6; } 14036 fi 14037 14038 # Response file support. 14039 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14040 nm_file_list_spec='@' 14041 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14042 nm_file_list_spec='@' 14043 fi 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14082 printf %s "checking for sysroot... " >&6; } 14083 14084 # Check whether --with-sysroot was given. 14085 if test ${with_sysroot+y} 14086 then : 14087 withval=$with_sysroot; 14088 else case e in #( 14089 e) with_sysroot=no ;; 14090 esac 14091 fi 14092 14093 14094 lt_sysroot= 14095 case $with_sysroot in #( 14096 yes) 14097 if test yes = "$GCC"; then 14098 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14099 fi 14100 ;; #( 14101 /*) 14102 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 14103 ;; #( 14104 no|'') 14105 ;; #( 14106 *) 14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14108 printf "%s\n" "$with_sysroot" >&6; } 14109 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14110 ;; 14111 esac 14112 14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14114 printf "%s\n" "${lt_sysroot:-no}" >&6; } 14115 14116 14117 14118 14119 14120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14121 printf %s "checking for a working dd... " >&6; } 14122 if test ${ac_cv_path_lt_DD+y} 14123 then : 14124 printf %s "(cached) " >&6 14125 else case e in #( 14126 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14127 cat conftest.i conftest.i >conftest2.i 14128 : ${lt_DD:=$DD} 14129 if test -z "$lt_DD"; then 14130 ac_path_lt_DD_found=false 14131 # Loop through the user's path and test for each of PROGNAME-LIST 14132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14133 for as_dir in $PATH 14134 do 14135 IFS=$as_save_IFS 14136 case $as_dir in #((( 14137 '') as_dir=./ ;; 14138 */) ;; 14139 *) as_dir=$as_dir/ ;; 14140 esac 14141 for ac_prog in dd 14142 do 14143 for ac_exec_ext in '' $ac_executable_extensions; do 14144 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 14145 as_fn_executable_p "$ac_path_lt_DD" || continue 14146 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14147 cmp -s conftest.i conftest.out \ 14148 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14149 fi 14150 $ac_path_lt_DD_found && break 3 14151 done 14152 done 14153 done 14154 IFS=$as_save_IFS 14155 if test -z "$ac_cv_path_lt_DD"; then 14156 : 14157 fi 14158 else 14159 ac_cv_path_lt_DD=$lt_DD 14160 fi 14161 14162 rm -f conftest.i conftest2.i conftest.out ;; 14163 esac 14164 fi 14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14166 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 14167 14168 14169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14170 printf %s "checking how to truncate binary pipes... " >&6; } 14171 if test ${lt_cv_truncate_bin+y} 14172 then : 14173 printf %s "(cached) " >&6 14174 else case e in #( 14175 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14176 cat conftest.i conftest.i >conftest2.i 14177 lt_cv_truncate_bin= 14178 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14179 cmp -s conftest.i conftest.out \ 14180 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14181 fi 14182 rm -f conftest.i conftest2.i conftest.out 14183 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 14184 esac 14185 fi 14186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14187 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 14188 14189 14190 14191 14192 14193 14194 14195 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14196 func_cc_basename () 14197 { 14198 for cc_temp in $*""; do 14199 case $cc_temp in 14200 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14201 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14202 \-*) ;; 14203 *) break;; 14204 esac 14205 done 14206 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14207 } 14208 14209 # Check whether --enable-libtool-lock was given. 14210 if test ${enable_libtool_lock+y} 14211 then : 14212 enableval=$enable_libtool_lock; 14213 fi 14214 14215 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14216 14217 # Some flags need to be propagated to the compiler or linker for good 14218 # libtool support. 14219 case $host in 14220 ia64-*-hpux*) 14221 # Find out what ABI is being produced by ac_compile, and set mode 14222 # options accordingly. 14223 echo 'int i;' > conftest.$ac_ext 14224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14225 (eval $ac_compile) 2>&5 14226 ac_status=$? 14227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14228 test $ac_status = 0; }; then 14229 case `$FILECMD conftest.$ac_objext` in 14230 *ELF-32*) 14231 HPUX_IA64_MODE=32 14232 ;; 14233 *ELF-64*) 14234 HPUX_IA64_MODE=64 14235 ;; 14236 esac 14237 fi 14238 rm -rf conftest* 14239 ;; 14240 *-*-irix6*) 14241 # Find out what ABI is being produced by ac_compile, and set linker 14242 # options accordingly. 14243 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14245 (eval $ac_compile) 2>&5 14246 ac_status=$? 14247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14248 test $ac_status = 0; }; then 14249 if test yes = "$lt_cv_prog_gnu_ld"; then 14250 case `$FILECMD conftest.$ac_objext` in 14251 *32-bit*) 14252 LD="${LD-ld} -melf32bsmip" 14253 ;; 14254 *N32*) 14255 LD="${LD-ld} -melf32bmipn32" 14256 ;; 14257 *64-bit*) 14258 LD="${LD-ld} -melf64bmip" 14259 ;; 14260 esac 14261 else 14262 case `$FILECMD conftest.$ac_objext` in 14263 *32-bit*) 14264 LD="${LD-ld} -32" 14265 ;; 14266 *N32*) 14267 LD="${LD-ld} -n32" 14268 ;; 14269 *64-bit*) 14270 LD="${LD-ld} -64" 14271 ;; 14272 esac 14273 fi 14274 fi 14275 rm -rf conftest* 14276 ;; 14277 14278 mips64*-*linux*) 14279 # Find out what ABI is being produced by ac_compile, and set linker 14280 # options accordingly. 14281 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14283 (eval $ac_compile) 2>&5 14284 ac_status=$? 14285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14286 test $ac_status = 0; }; then 14287 emul=elf 14288 case `$FILECMD conftest.$ac_objext` in 14289 *32-bit*) 14290 emul="${emul}32" 14291 ;; 14292 *64-bit*) 14293 emul="${emul}64" 14294 ;; 14295 esac 14296 case `$FILECMD conftest.$ac_objext` in 14297 *MSB*) 14298 emul="${emul}btsmip" 14299 ;; 14300 *LSB*) 14301 emul="${emul}ltsmip" 14302 ;; 14303 esac 14304 case `$FILECMD conftest.$ac_objext` in 14305 *N32*) 14306 emul="${emul}n32" 14307 ;; 14308 esac 14309 LD="${LD-ld} -m $emul" 14310 fi 14311 rm -rf conftest* 14312 ;; 14313 14314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14316 # Find out what ABI is being produced by ac_compile, and set linker 14317 # options accordingly. Note that the listed cases only cover the 14318 # situations where additional linker options are needed (such as when 14319 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14320 # vice versa); the common cases where no linker options are needed do 14321 # not appear in the list. 14322 echo 'int i;' > conftest.$ac_ext 14323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14324 (eval $ac_compile) 2>&5 14325 ac_status=$? 14326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14327 test $ac_status = 0; }; then 14328 case `$FILECMD conftest.o` in 14329 *32-bit*) 14330 case $host in 14331 x86_64-*kfreebsd*-gnu) 14332 LD="${LD-ld} -m elf_i386_fbsd" 14333 ;; 14334 x86_64-*linux*) 14335 case `$FILECMD conftest.o` in 14336 *x86-64*) 14337 LD="${LD-ld} -m elf32_x86_64" 14338 ;; 14339 *) 14340 LD="${LD-ld} -m elf_i386" 14341 ;; 14342 esac 14343 ;; 14344 powerpc64le-*linux*) 14345 LD="${LD-ld} -m elf32lppclinux" 14346 ;; 14347 powerpc64-*linux*) 14348 LD="${LD-ld} -m elf32ppclinux" 14349 ;; 14350 s390x-*linux*) 14351 LD="${LD-ld} -m elf_s390" 14352 ;; 14353 sparc64-*linux*) 14354 LD="${LD-ld} -m elf32_sparc" 14355 ;; 14356 esac 14357 ;; 14358 *64-bit*) 14359 case $host in 14360 x86_64-*kfreebsd*-gnu) 14361 LD="${LD-ld} -m elf_x86_64_fbsd" 14362 ;; 14363 x86_64-*linux*) 14364 LD="${LD-ld} -m elf_x86_64" 14365 ;; 14366 powerpcle-*linux*) 14367 LD="${LD-ld} -m elf64lppc" 14368 ;; 14369 powerpc-*linux*) 14370 LD="${LD-ld} -m elf64ppc" 14371 ;; 14372 s390*-*linux*|s390*-*tpf*) 14373 LD="${LD-ld} -m elf64_s390" 14374 ;; 14375 sparc*-*linux*) 14376 LD="${LD-ld} -m elf64_sparc" 14377 ;; 14378 esac 14379 ;; 14380 esac 14381 fi 14382 rm -rf conftest* 14383 ;; 14384 14385 *-*-sco3.2v5*) 14386 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14387 SAVE_CFLAGS=$CFLAGS 14388 CFLAGS="$CFLAGS -belf" 14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14390 printf %s "checking whether the C compiler needs -belf... " >&6; } 14391 if test ${lt_cv_cc_needs_belf+y} 14392 then : 14393 printf %s "(cached) " >&6 14394 else case e in #( 14395 e) ac_ext=c 14396 ac_cpp='$CPP $CPPFLAGS' 14397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14399 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14400 14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14402 /* end confdefs.h. */ 14403 14404 int 14405 main (void) 14406 { 14407 14408 ; 14409 return 0; 14410 } 14411 _ACEOF 14412 if ac_fn_c_try_link "$LINENO" 14413 then : 14414 lt_cv_cc_needs_belf=yes 14415 else case e in #( 14416 e) lt_cv_cc_needs_belf=no ;; 14417 esac 14418 fi 14419 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14420 conftest$ac_exeext conftest.$ac_ext 14421 ac_ext=c 14422 ac_cpp='$CPP $CPPFLAGS' 14423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14425 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14426 ;; 14427 esac 14428 fi 14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14430 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14431 if test yes != "$lt_cv_cc_needs_belf"; then 14432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14433 CFLAGS=$SAVE_CFLAGS 14434 fi 14435 ;; 14436 *-*solaris*) 14437 # Find out what ABI is being produced by ac_compile, and set linker 14438 # options accordingly. 14439 echo 'int i;' > conftest.$ac_ext 14440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14441 (eval $ac_compile) 2>&5 14442 ac_status=$? 14443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14444 test $ac_status = 0; }; then 14445 case `$FILECMD conftest.o` in 14446 *64-bit*) 14447 case $lt_cv_prog_gnu_ld in 14448 yes*) 14449 case $host in 14450 i?86-*-solaris*|x86_64-*-solaris*) 14451 LD="${LD-ld} -m elf_x86_64" 14452 ;; 14453 sparc*-*-solaris*) 14454 LD="${LD-ld} -m elf64_sparc" 14455 ;; 14456 esac 14457 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14458 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14459 LD=${LD-ld}_sol2 14460 fi 14461 ;; 14462 *) 14463 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14464 LD="${LD-ld} -64" 14465 fi 14466 ;; 14467 esac 14468 ;; 14469 esac 14470 fi 14471 rm -rf conftest* 14472 ;; 14473 esac 14474 14475 need_locks=$enable_libtool_lock 14476 14477 if test -n "$ac_tool_prefix"; then 14478 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14479 set dummy ${ac_tool_prefix}mt; ac_word=$2 14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14481 printf %s "checking for $ac_word... " >&6; } 14482 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14483 then : 14484 printf %s "(cached) " >&6 14485 else case e in #( 14486 e) if test -n "$MANIFEST_TOOL"; then 14487 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14488 else 14489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14490 for as_dir in $PATH 14491 do 14492 IFS=$as_save_IFS 14493 case $as_dir in #((( 14494 '') as_dir=./ ;; 14495 */) ;; 14496 *) as_dir=$as_dir/ ;; 14497 esac 14498 for ac_exec_ext in '' $ac_executable_extensions; do 14499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14500 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14502 break 2 14503 fi 14504 done 14505 done 14506 IFS=$as_save_IFS 14507 14508 fi ;; 14509 esac 14510 fi 14511 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14512 if test -n "$MANIFEST_TOOL"; then 14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14514 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14515 else 14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14517 printf "%s\n" "no" >&6; } 14518 fi 14519 14520 14521 fi 14522 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14523 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14524 # Extract the first word of "mt", so it can be a program name with args. 14525 set dummy mt; ac_word=$2 14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14527 printf %s "checking for $ac_word... " >&6; } 14528 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14529 then : 14530 printf %s "(cached) " >&6 14531 else case e in #( 14532 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 14533 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14534 else 14535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14536 for as_dir in $PATH 14537 do 14538 IFS=$as_save_IFS 14539 case $as_dir in #((( 14540 '') as_dir=./ ;; 14541 */) ;; 14542 *) as_dir=$as_dir/ ;; 14543 esac 14544 for ac_exec_ext in '' $ac_executable_extensions; do 14545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14546 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14548 break 2 14549 fi 14550 done 14551 done 14552 IFS=$as_save_IFS 14553 14554 fi ;; 14555 esac 14556 fi 14557 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14558 if test -n "$ac_ct_MANIFEST_TOOL"; then 14559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14560 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14561 else 14562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14563 printf "%s\n" "no" >&6; } 14564 fi 14565 14566 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14567 MANIFEST_TOOL=":" 14568 else 14569 case $cross_compiling:$ac_tool_warned in 14570 yes:) 14571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14573 ac_tool_warned=yes ;; 14574 esac 14575 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14576 fi 14577 else 14578 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14579 fi 14580 14581 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14583 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14584 if test ${lt_cv_path_mainfest_tool+y} 14585 then : 14586 printf %s "(cached) " >&6 14587 else case e in #( 14588 e) lt_cv_path_mainfest_tool=no 14589 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14590 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14591 cat conftest.err >&5 14592 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14593 lt_cv_path_mainfest_tool=yes 14594 fi 14595 rm -f conftest* ;; 14596 esac 14597 fi 14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14599 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14600 if test yes != "$lt_cv_path_mainfest_tool"; then 14601 MANIFEST_TOOL=: 14602 fi 14603 14604 14605 14606 14607 14608 14609 case $host_os in 14610 rhapsody* | darwin*) 14611 if test -n "$ac_tool_prefix"; then 14612 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14613 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14615 printf %s "checking for $ac_word... " >&6; } 14616 if test ${ac_cv_prog_DSYMUTIL+y} 14617 then : 14618 printf %s "(cached) " >&6 14619 else case e in #( 14620 e) if test -n "$DSYMUTIL"; then 14621 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14622 else 14623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14624 for as_dir in $PATH 14625 do 14626 IFS=$as_save_IFS 14627 case $as_dir in #((( 14628 '') as_dir=./ ;; 14629 */) ;; 14630 *) as_dir=$as_dir/ ;; 14631 esac 14632 for ac_exec_ext in '' $ac_executable_extensions; do 14633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14634 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14636 break 2 14637 fi 14638 done 14639 done 14640 IFS=$as_save_IFS 14641 14642 fi ;; 14643 esac 14644 fi 14645 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14646 if test -n "$DSYMUTIL"; then 14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14648 printf "%s\n" "$DSYMUTIL" >&6; } 14649 else 14650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14651 printf "%s\n" "no" >&6; } 14652 fi 14653 14654 14655 fi 14656 if test -z "$ac_cv_prog_DSYMUTIL"; then 14657 ac_ct_DSYMUTIL=$DSYMUTIL 14658 # Extract the first word of "dsymutil", so it can be a program name with args. 14659 set dummy dsymutil; ac_word=$2 14660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14661 printf %s "checking for $ac_word... " >&6; } 14662 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14663 then : 14664 printf %s "(cached) " >&6 14665 else case e in #( 14666 e) if test -n "$ac_ct_DSYMUTIL"; then 14667 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14668 else 14669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14670 for as_dir in $PATH 14671 do 14672 IFS=$as_save_IFS 14673 case $as_dir in #((( 14674 '') as_dir=./ ;; 14675 */) ;; 14676 *) as_dir=$as_dir/ ;; 14677 esac 14678 for ac_exec_ext in '' $ac_executable_extensions; do 14679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14680 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14682 break 2 14683 fi 14684 done 14685 done 14686 IFS=$as_save_IFS 14687 14688 fi ;; 14689 esac 14690 fi 14691 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14692 if test -n "$ac_ct_DSYMUTIL"; then 14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14694 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14695 else 14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14697 printf "%s\n" "no" >&6; } 14698 fi 14699 14700 if test "x$ac_ct_DSYMUTIL" = x; then 14701 DSYMUTIL=":" 14702 else 14703 case $cross_compiling:$ac_tool_warned in 14704 yes:) 14705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14706 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14707 ac_tool_warned=yes ;; 14708 esac 14709 DSYMUTIL=$ac_ct_DSYMUTIL 14710 fi 14711 else 14712 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14713 fi 14714 14715 if test -n "$ac_tool_prefix"; then 14716 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14717 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14719 printf %s "checking for $ac_word... " >&6; } 14720 if test ${ac_cv_prog_NMEDIT+y} 14721 then : 14722 printf %s "(cached) " >&6 14723 else case e in #( 14724 e) if test -n "$NMEDIT"; then 14725 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14726 else 14727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14728 for as_dir in $PATH 14729 do 14730 IFS=$as_save_IFS 14731 case $as_dir in #((( 14732 '') as_dir=./ ;; 14733 */) ;; 14734 *) as_dir=$as_dir/ ;; 14735 esac 14736 for ac_exec_ext in '' $ac_executable_extensions; do 14737 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14738 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14740 break 2 14741 fi 14742 done 14743 done 14744 IFS=$as_save_IFS 14745 14746 fi ;; 14747 esac 14748 fi 14749 NMEDIT=$ac_cv_prog_NMEDIT 14750 if test -n "$NMEDIT"; then 14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14752 printf "%s\n" "$NMEDIT" >&6; } 14753 else 14754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14755 printf "%s\n" "no" >&6; } 14756 fi 14757 14758 14759 fi 14760 if test -z "$ac_cv_prog_NMEDIT"; then 14761 ac_ct_NMEDIT=$NMEDIT 14762 # Extract the first word of "nmedit", so it can be a program name with args. 14763 set dummy nmedit; ac_word=$2 14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14765 printf %s "checking for $ac_word... " >&6; } 14766 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14767 then : 14768 printf %s "(cached) " >&6 14769 else case e in #( 14770 e) if test -n "$ac_ct_NMEDIT"; then 14771 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14772 else 14773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14774 for as_dir in $PATH 14775 do 14776 IFS=$as_save_IFS 14777 case $as_dir in #((( 14778 '') as_dir=./ ;; 14779 */) ;; 14780 *) as_dir=$as_dir/ ;; 14781 esac 14782 for ac_exec_ext in '' $ac_executable_extensions; do 14783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14784 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14786 break 2 14787 fi 14788 done 14789 done 14790 IFS=$as_save_IFS 14791 14792 fi ;; 14793 esac 14794 fi 14795 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14796 if test -n "$ac_ct_NMEDIT"; then 14797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14798 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14799 else 14800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14801 printf "%s\n" "no" >&6; } 14802 fi 14803 14804 if test "x$ac_ct_NMEDIT" = x; then 14805 NMEDIT=":" 14806 else 14807 case $cross_compiling:$ac_tool_warned in 14808 yes:) 14809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14811 ac_tool_warned=yes ;; 14812 esac 14813 NMEDIT=$ac_ct_NMEDIT 14814 fi 14815 else 14816 NMEDIT="$ac_cv_prog_NMEDIT" 14817 fi 14818 14819 if test -n "$ac_tool_prefix"; then 14820 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14821 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14823 printf %s "checking for $ac_word... " >&6; } 14824 if test ${ac_cv_prog_LIPO+y} 14825 then : 14826 printf %s "(cached) " >&6 14827 else case e in #( 14828 e) if test -n "$LIPO"; then 14829 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14830 else 14831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14832 for as_dir in $PATH 14833 do 14834 IFS=$as_save_IFS 14835 case $as_dir in #((( 14836 '') as_dir=./ ;; 14837 */) ;; 14838 *) as_dir=$as_dir/ ;; 14839 esac 14840 for ac_exec_ext in '' $ac_executable_extensions; do 14841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14842 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14844 break 2 14845 fi 14846 done 14847 done 14848 IFS=$as_save_IFS 14849 14850 fi ;; 14851 esac 14852 fi 14853 LIPO=$ac_cv_prog_LIPO 14854 if test -n "$LIPO"; then 14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14856 printf "%s\n" "$LIPO" >&6; } 14857 else 14858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14859 printf "%s\n" "no" >&6; } 14860 fi 14861 14862 14863 fi 14864 if test -z "$ac_cv_prog_LIPO"; then 14865 ac_ct_LIPO=$LIPO 14866 # Extract the first word of "lipo", so it can be a program name with args. 14867 set dummy lipo; ac_word=$2 14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14869 printf %s "checking for $ac_word... " >&6; } 14870 if test ${ac_cv_prog_ac_ct_LIPO+y} 14871 then : 14872 printf %s "(cached) " >&6 14873 else case e in #( 14874 e) if test -n "$ac_ct_LIPO"; then 14875 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14876 else 14877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14878 for as_dir in $PATH 14879 do 14880 IFS=$as_save_IFS 14881 case $as_dir in #((( 14882 '') as_dir=./ ;; 14883 */) ;; 14884 *) as_dir=$as_dir/ ;; 14885 esac 14886 for ac_exec_ext in '' $ac_executable_extensions; do 14887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14888 ac_cv_prog_ac_ct_LIPO="lipo" 14889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14890 break 2 14891 fi 14892 done 14893 done 14894 IFS=$as_save_IFS 14895 14896 fi ;; 14897 esac 14898 fi 14899 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14900 if test -n "$ac_ct_LIPO"; then 14901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14902 printf "%s\n" "$ac_ct_LIPO" >&6; } 14903 else 14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14905 printf "%s\n" "no" >&6; } 14906 fi 14907 14908 if test "x$ac_ct_LIPO" = x; then 14909 LIPO=":" 14910 else 14911 case $cross_compiling:$ac_tool_warned in 14912 yes:) 14913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14914 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14915 ac_tool_warned=yes ;; 14916 esac 14917 LIPO=$ac_ct_LIPO 14918 fi 14919 else 14920 LIPO="$ac_cv_prog_LIPO" 14921 fi 14922 14923 if test -n "$ac_tool_prefix"; then 14924 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14925 set dummy ${ac_tool_prefix}otool; ac_word=$2 14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14927 printf %s "checking for $ac_word... " >&6; } 14928 if test ${ac_cv_prog_OTOOL+y} 14929 then : 14930 printf %s "(cached) " >&6 14931 else case e in #( 14932 e) if test -n "$OTOOL"; then 14933 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14934 else 14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14936 for as_dir in $PATH 14937 do 14938 IFS=$as_save_IFS 14939 case $as_dir in #((( 14940 '') as_dir=./ ;; 14941 */) ;; 14942 *) as_dir=$as_dir/ ;; 14943 esac 14944 for ac_exec_ext in '' $ac_executable_extensions; do 14945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14946 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14948 break 2 14949 fi 14950 done 14951 done 14952 IFS=$as_save_IFS 14953 14954 fi ;; 14955 esac 14956 fi 14957 OTOOL=$ac_cv_prog_OTOOL 14958 if test -n "$OTOOL"; then 14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14960 printf "%s\n" "$OTOOL" >&6; } 14961 else 14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14963 printf "%s\n" "no" >&6; } 14964 fi 14965 14966 14967 fi 14968 if test -z "$ac_cv_prog_OTOOL"; then 14969 ac_ct_OTOOL=$OTOOL 14970 # Extract the first word of "otool", so it can be a program name with args. 14971 set dummy otool; ac_word=$2 14972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14973 printf %s "checking for $ac_word... " >&6; } 14974 if test ${ac_cv_prog_ac_ct_OTOOL+y} 14975 then : 14976 printf %s "(cached) " >&6 14977 else case e in #( 14978 e) if test -n "$ac_ct_OTOOL"; then 14979 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14980 else 14981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14982 for as_dir in $PATH 14983 do 14984 IFS=$as_save_IFS 14985 case $as_dir in #((( 14986 '') as_dir=./ ;; 14987 */) ;; 14988 *) as_dir=$as_dir/ ;; 14989 esac 14990 for ac_exec_ext in '' $ac_executable_extensions; do 14991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14992 ac_cv_prog_ac_ct_OTOOL="otool" 14993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14994 break 2 14995 fi 14996 done 14997 done 14998 IFS=$as_save_IFS 14999 15000 fi ;; 15001 esac 15002 fi 15003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15004 if test -n "$ac_ct_OTOOL"; then 15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15006 printf "%s\n" "$ac_ct_OTOOL" >&6; } 15007 else 15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15009 printf "%s\n" "no" >&6; } 15010 fi 15011 15012 if test "x$ac_ct_OTOOL" = x; then 15013 OTOOL=":" 15014 else 15015 case $cross_compiling:$ac_tool_warned in 15016 yes:) 15017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15018 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15019 ac_tool_warned=yes ;; 15020 esac 15021 OTOOL=$ac_ct_OTOOL 15022 fi 15023 else 15024 OTOOL="$ac_cv_prog_OTOOL" 15025 fi 15026 15027 if test -n "$ac_tool_prefix"; then 15028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15029 set dummy ${ac_tool_prefix}otool64; ac_word=$2 15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15031 printf %s "checking for $ac_word... " >&6; } 15032 if test ${ac_cv_prog_OTOOL64+y} 15033 then : 15034 printf %s "(cached) " >&6 15035 else case e in #( 15036 e) if test -n "$OTOOL64"; then 15037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15038 else 15039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15040 for as_dir in $PATH 15041 do 15042 IFS=$as_save_IFS 15043 case $as_dir in #((( 15044 '') as_dir=./ ;; 15045 */) ;; 15046 *) as_dir=$as_dir/ ;; 15047 esac 15048 for ac_exec_ext in '' $ac_executable_extensions; do 15049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15050 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15052 break 2 15053 fi 15054 done 15055 done 15056 IFS=$as_save_IFS 15057 15058 fi ;; 15059 esac 15060 fi 15061 OTOOL64=$ac_cv_prog_OTOOL64 15062 if test -n "$OTOOL64"; then 15063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15064 printf "%s\n" "$OTOOL64" >&6; } 15065 else 15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15067 printf "%s\n" "no" >&6; } 15068 fi 15069 15070 15071 fi 15072 if test -z "$ac_cv_prog_OTOOL64"; then 15073 ac_ct_OTOOL64=$OTOOL64 15074 # Extract the first word of "otool64", so it can be a program name with args. 15075 set dummy otool64; ac_word=$2 15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15077 printf %s "checking for $ac_word... " >&6; } 15078 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 15079 then : 15080 printf %s "(cached) " >&6 15081 else case e in #( 15082 e) if test -n "$ac_ct_OTOOL64"; then 15083 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15084 else 15085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15086 for as_dir in $PATH 15087 do 15088 IFS=$as_save_IFS 15089 case $as_dir in #((( 15090 '') as_dir=./ ;; 15091 */) ;; 15092 *) as_dir=$as_dir/ ;; 15093 esac 15094 for ac_exec_ext in '' $ac_executable_extensions; do 15095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15096 ac_cv_prog_ac_ct_OTOOL64="otool64" 15097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15098 break 2 15099 fi 15100 done 15101 done 15102 IFS=$as_save_IFS 15103 15104 fi ;; 15105 esac 15106 fi 15107 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15108 if test -n "$ac_ct_OTOOL64"; then 15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15110 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 15111 else 15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15113 printf "%s\n" "no" >&6; } 15114 fi 15115 15116 if test "x$ac_ct_OTOOL64" = x; then 15117 OTOOL64=":" 15118 else 15119 case $cross_compiling:$ac_tool_warned in 15120 yes:) 15121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15122 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15123 ac_tool_warned=yes ;; 15124 esac 15125 OTOOL64=$ac_ct_OTOOL64 15126 fi 15127 else 15128 OTOOL64="$ac_cv_prog_OTOOL64" 15129 fi 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15158 printf %s "checking for -single_module linker flag... " >&6; } 15159 if test ${lt_cv_apple_cc_single_mod+y} 15160 then : 15161 printf %s "(cached) " >&6 15162 else case e in #( 15163 e) lt_cv_apple_cc_single_mod=no 15164 if test -z "$LT_MULTI_MODULE"; then 15165 # By default we will add the -single_module flag. You can override 15166 # by either setting the environment variable LT_MULTI_MODULE 15167 # non-empty at configure time, or by adding -multi_module to the 15168 # link flags. 15169 rm -rf libconftest.dylib* 15170 echo "int foo(void){return 1;}" > conftest.c 15171 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15172 -dynamiclib -Wl,-single_module conftest.c" >&5 15173 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15174 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15175 _lt_result=$? 15176 # If there is a non-empty error log, and "single_module" 15177 # appears in it, assume the flag caused a linker warning 15178 if test -s conftest.err && $GREP single_module conftest.err; then 15179 cat conftest.err >&5 15180 # Otherwise, if the output was created with a 0 exit code from 15181 # the compiler, it worked. 15182 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15183 lt_cv_apple_cc_single_mod=yes 15184 else 15185 cat conftest.err >&5 15186 fi 15187 rm -rf libconftest.dylib* 15188 rm -f conftest.* 15189 fi ;; 15190 esac 15191 fi 15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15193 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 15194 15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15196 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 15197 if test ${lt_cv_ld_exported_symbols_list+y} 15198 then : 15199 printf %s "(cached) " >&6 15200 else case e in #( 15201 e) lt_cv_ld_exported_symbols_list=no 15202 save_LDFLAGS=$LDFLAGS 15203 echo "_main" > conftest.sym 15204 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15206 /* end confdefs.h. */ 15207 15208 int 15209 main (void) 15210 { 15211 15212 ; 15213 return 0; 15214 } 15215 _ACEOF 15216 if ac_fn_c_try_link "$LINENO" 15217 then : 15218 lt_cv_ld_exported_symbols_list=yes 15219 else case e in #( 15220 e) lt_cv_ld_exported_symbols_list=no ;; 15221 esac 15222 fi 15223 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15224 conftest$ac_exeext conftest.$ac_ext 15225 LDFLAGS=$save_LDFLAGS 15226 ;; 15227 esac 15228 fi 15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15230 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15231 15232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15233 printf %s "checking for -force_load linker flag... " >&6; } 15234 if test ${lt_cv_ld_force_load+y} 15235 then : 15236 printf %s "(cached) " >&6 15237 else case e in #( 15238 e) lt_cv_ld_force_load=no 15239 cat > conftest.c << _LT_EOF 15240 int forced_loaded() { return 2;} 15241 _LT_EOF 15242 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15243 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15244 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 15245 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 15246 echo "$RANLIB libconftest.a" >&5 15247 $RANLIB libconftest.a 2>&5 15248 cat > conftest.c << _LT_EOF 15249 int main() { return 0;} 15250 _LT_EOF 15251 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15252 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15253 _lt_result=$? 15254 if test -s conftest.err && $GREP force_load conftest.err; then 15255 cat conftest.err >&5 15256 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15257 lt_cv_ld_force_load=yes 15258 else 15259 cat conftest.err >&5 15260 fi 15261 rm -f conftest.err libconftest.a conftest conftest.c 15262 rm -rf conftest.dSYM 15263 ;; 15264 esac 15265 fi 15266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15267 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15268 case $host_os in 15269 rhapsody* | darwin1.[012]) 15270 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15271 darwin1.*) 15272 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15273 darwin*) 15274 case $MACOSX_DEPLOYMENT_TARGET,$host in 15275 10.[012],*|,*powerpc*-darwin[5-8]*) 15276 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15277 *) 15278 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15279 esac 15280 ;; 15281 esac 15282 if test yes = "$lt_cv_apple_cc_single_mod"; then 15283 _lt_dar_single_mod='$single_module' 15284 fi 15285 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15286 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15287 else 15288 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15289 fi 15290 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15291 _lt_dsymutil='~$DSYMUTIL $lib || :' 15292 else 15293 _lt_dsymutil= 15294 fi 15295 ;; 15296 esac 15297 15298 # func_munge_path_list VARIABLE PATH 15299 # ----------------------------------- 15300 # VARIABLE is name of variable containing _space_ separated list of 15301 # directories to be munged by the contents of PATH, which is string 15302 # having a format: 15303 # "DIR[:DIR]:" 15304 # string "DIR[ DIR]" will be prepended to VARIABLE 15305 # ":DIR[:DIR]" 15306 # string "DIR[ DIR]" will be appended to VARIABLE 15307 # "DIRP[:DIRP]::[DIRA:]DIRA" 15308 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15309 # "DIRA[ DIRA]" will be appended to VARIABLE 15310 # "DIR[:DIR]" 15311 # VARIABLE will be replaced by "DIR[ DIR]" 15312 func_munge_path_list () 15313 { 15314 case x$2 in 15315 x) 15316 ;; 15317 *:) 15318 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15319 ;; 15320 x:*) 15321 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15322 ;; 15323 *::*) 15324 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15325 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15326 ;; 15327 *) 15328 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15329 ;; 15330 esac 15331 } 15332 15333 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15334 " 15335 if test "x$ac_cv_header_dlfcn_h" = xyes 15336 then : 15337 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15338 15339 fi 15340 15341 15342 15343 15344 15345 # Set options 15346 # Check whether --enable-static was given. 15347 if test ${enable_static+y} 15348 then : 15349 enableval=$enable_static; p=${PACKAGE-default} 15350 case $enableval in 15351 yes) enable_static=yes ;; 15352 no) enable_static=no ;; 15353 *) 15354 enable_static=no 15355 # Look at the argument we got. We use all the common list separators. 15356 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15357 for pkg in $enableval; do 15358 IFS=$lt_save_ifs 15359 if test "X$pkg" = "X$p"; then 15360 enable_static=yes 15361 fi 15362 done 15363 IFS=$lt_save_ifs 15364 ;; 15365 esac 15366 else case e in #( 15367 e) enable_static=no ;; 15368 esac 15369 fi 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 enable_dlopen=no 15381 15382 15383 enable_win32_dll=no 15384 15385 15386 # Check whether --enable-shared was given. 15387 if test ${enable_shared+y} 15388 then : 15389 enableval=$enable_shared; p=${PACKAGE-default} 15390 case $enableval in 15391 yes) enable_shared=yes ;; 15392 no) enable_shared=no ;; 15393 *) 15394 enable_shared=no 15395 # Look at the argument we got. We use all the common list separators. 15396 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15397 for pkg in $enableval; do 15398 IFS=$lt_save_ifs 15399 if test "X$pkg" = "X$p"; then 15400 enable_shared=yes 15401 fi 15402 done 15403 IFS=$lt_save_ifs 15404 ;; 15405 esac 15406 else case e in #( 15407 e) enable_shared=yes ;; 15408 esac 15409 fi 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 # Check whether --with-pic was given. 15422 if test ${with_pic+y} 15423 then : 15424 withval=$with_pic; lt_p=${PACKAGE-default} 15425 case $withval in 15426 yes|no) pic_mode=$withval ;; 15427 *) 15428 pic_mode=default 15429 # Look at the argument we got. We use all the common list separators. 15430 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15431 for lt_pkg in $withval; do 15432 IFS=$lt_save_ifs 15433 if test "X$lt_pkg" = "X$lt_p"; then 15434 pic_mode=yes 15435 fi 15436 done 15437 IFS=$lt_save_ifs 15438 ;; 15439 esac 15440 else case e in #( 15441 e) pic_mode=default ;; 15442 esac 15443 fi 15444 15445 15446 15447 15448 15449 15450 15451 15452 # Check whether --enable-fast-install was given. 15453 if test ${enable_fast_install+y} 15454 then : 15455 enableval=$enable_fast_install; p=${PACKAGE-default} 15456 case $enableval in 15457 yes) enable_fast_install=yes ;; 15458 no) enable_fast_install=no ;; 15459 *) 15460 enable_fast_install=no 15461 # Look at the argument we got. We use all the common list separators. 15462 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15463 for pkg in $enableval; do 15464 IFS=$lt_save_ifs 15465 if test "X$pkg" = "X$p"; then 15466 enable_fast_install=yes 15467 fi 15468 done 15469 IFS=$lt_save_ifs 15470 ;; 15471 esac 15472 else case e in #( 15473 e) enable_fast_install=yes ;; 15474 esac 15475 fi 15476 15477 15478 15479 15480 15481 15482 15483 15484 shared_archive_member_spec= 15485 case $host,$enable_shared in 15486 power*-*-aix[5-9]*,yes) 15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15488 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15489 15490 # Check whether --with-aix-soname was given. 15491 if test ${with_aix_soname+y} 15492 then : 15493 withval=$with_aix_soname; case $withval in 15494 aix|svr4|both) 15495 ;; 15496 *) 15497 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15498 ;; 15499 esac 15500 lt_cv_with_aix_soname=$with_aix_soname 15501 else case e in #( 15502 e) if test ${lt_cv_with_aix_soname+y} 15503 then : 15504 printf %s "(cached) " >&6 15505 else case e in #( 15506 e) lt_cv_with_aix_soname=aix ;; 15507 esac 15508 fi 15509 15510 with_aix_soname=$lt_cv_with_aix_soname ;; 15511 esac 15512 fi 15513 15514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15515 printf "%s\n" "$with_aix_soname" >&6; } 15516 if test aix != "$with_aix_soname"; then 15517 # For the AIX way of multilib, we name the shared archive member 15518 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15519 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15520 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15521 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15522 if test 64 = "${OBJECT_MODE-32}"; then 15523 shared_archive_member_spec=shr_64 15524 else 15525 shared_archive_member_spec=shr 15526 fi 15527 fi 15528 ;; 15529 *) 15530 with_aix_soname=aix 15531 ;; 15532 esac 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 # This can be used to rebuild libtool when needed 15544 LIBTOOL_DEPS=$ltmain 15545 15546 # Always use our own libtool. 15547 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 test -z "$LN_S" && LN_S="ln -s" 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 if test -n "${ZSH_VERSION+set}"; then 15594 setopt NO_GLOB_SUBST 15595 fi 15596 15597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15598 printf %s "checking for objdir... " >&6; } 15599 if test ${lt_cv_objdir+y} 15600 then : 15601 printf %s "(cached) " >&6 15602 else case e in #( 15603 e) rm -f .libs 2>/dev/null 15604 mkdir .libs 2>/dev/null 15605 if test -d .libs; then 15606 lt_cv_objdir=.libs 15607 else 15608 # MS-DOS does not allow filenames that begin with a dot. 15609 lt_cv_objdir=_libs 15610 fi 15611 rmdir .libs 2>/dev/null ;; 15612 esac 15613 fi 15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15615 printf "%s\n" "$lt_cv_objdir" >&6; } 15616 objdir=$lt_cv_objdir 15617 15618 15619 15620 15621 15622 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15623 15624 15625 15626 15627 case $host_os in 15628 aix3*) 15629 # AIX sometimes has problems with the GCC collect2 program. For some 15630 # reason, if we set the COLLECT_NAMES environment variable, the problems 15631 # vanish in a puff of smoke. 15632 if test set != "${COLLECT_NAMES+set}"; then 15633 COLLECT_NAMES= 15634 export COLLECT_NAMES 15635 fi 15636 ;; 15637 esac 15638 15639 # Global variables: 15640 ofile=libtool 15641 can_build_shared=yes 15642 15643 # All known linkers require a '.a' archive for static linking (except MSVC and 15644 # ICC, which need '.lib'). 15645 libext=a 15646 15647 with_gnu_ld=$lt_cv_prog_gnu_ld 15648 15649 old_CC=$CC 15650 old_CFLAGS=$CFLAGS 15651 15652 # Set sane defaults for various variables 15653 test -z "$CC" && CC=cc 15654 test -z "$LTCC" && LTCC=$CC 15655 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15656 test -z "$LD" && LD=ld 15657 test -z "$ac_objext" && ac_objext=o 15658 15659 func_cc_basename $compiler 15660 cc_basename=$func_cc_basename_result 15661 15662 15663 # Only perform the check for file, if the check method requires it 15664 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15665 case $deplibs_check_method in 15666 file_magic*) 15667 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15669 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15670 if test ${lt_cv_path_MAGIC_CMD+y} 15671 then : 15672 printf %s "(cached) " >&6 15673 else case e in #( 15674 e) case $MAGIC_CMD in 15675 [\\/*] | ?:[\\/]*) 15676 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15677 ;; 15678 *) 15679 lt_save_MAGIC_CMD=$MAGIC_CMD 15680 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15681 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15682 for ac_dir in $ac_dummy; do 15683 IFS=$lt_save_ifs 15684 test -z "$ac_dir" && ac_dir=. 15685 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15686 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15687 if test -n "$file_magic_test_file"; then 15688 case $deplibs_check_method in 15689 "file_magic "*) 15690 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15691 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15692 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15693 $EGREP "$file_magic_regex" > /dev/null; then 15694 : 15695 else 15696 cat <<_LT_EOF 1>&2 15697 15698 *** Warning: the command libtool uses to detect shared libraries, 15699 *** $file_magic_cmd, produces output that libtool cannot recognize. 15700 *** The result is that libtool may fail to recognize shared libraries 15701 *** as such. This will affect the creation of libtool libraries that 15702 *** depend on shared libraries, but programs linked with such libtool 15703 *** libraries will work regardless of this problem. Nevertheless, you 15704 *** may want to report the problem to your system manager and/or to 15705 *** bug-libtool@gnu.org 15706 15707 _LT_EOF 15708 fi ;; 15709 esac 15710 fi 15711 break 15712 fi 15713 done 15714 IFS=$lt_save_ifs 15715 MAGIC_CMD=$lt_save_MAGIC_CMD 15716 ;; 15717 esac ;; 15718 esac 15719 fi 15720 15721 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15722 if test -n "$MAGIC_CMD"; then 15723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15724 printf "%s\n" "$MAGIC_CMD" >&6; } 15725 else 15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15727 printf "%s\n" "no" >&6; } 15728 fi 15729 15730 15731 15732 15733 15734 if test -z "$lt_cv_path_MAGIC_CMD"; then 15735 if test -n "$ac_tool_prefix"; then 15736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15737 printf %s "checking for file... " >&6; } 15738 if test ${lt_cv_path_MAGIC_CMD+y} 15739 then : 15740 printf %s "(cached) " >&6 15741 else case e in #( 15742 e) case $MAGIC_CMD in 15743 [\\/*] | ?:[\\/]*) 15744 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15745 ;; 15746 *) 15747 lt_save_MAGIC_CMD=$MAGIC_CMD 15748 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15749 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15750 for ac_dir in $ac_dummy; do 15751 IFS=$lt_save_ifs 15752 test -z "$ac_dir" && ac_dir=. 15753 if test -f "$ac_dir/file"; then 15754 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15755 if test -n "$file_magic_test_file"; then 15756 case $deplibs_check_method in 15757 "file_magic "*) 15758 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15759 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15760 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15761 $EGREP "$file_magic_regex" > /dev/null; then 15762 : 15763 else 15764 cat <<_LT_EOF 1>&2 15765 15766 *** Warning: the command libtool uses to detect shared libraries, 15767 *** $file_magic_cmd, produces output that libtool cannot recognize. 15768 *** The result is that libtool may fail to recognize shared libraries 15769 *** as such. This will affect the creation of libtool libraries that 15770 *** depend on shared libraries, but programs linked with such libtool 15771 *** libraries will work regardless of this problem. Nevertheless, you 15772 *** may want to report the problem to your system manager and/or to 15773 *** bug-libtool@gnu.org 15774 15775 _LT_EOF 15776 fi ;; 15777 esac 15778 fi 15779 break 15780 fi 15781 done 15782 IFS=$lt_save_ifs 15783 MAGIC_CMD=$lt_save_MAGIC_CMD 15784 ;; 15785 esac ;; 15786 esac 15787 fi 15788 15789 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15790 if test -n "$MAGIC_CMD"; then 15791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15792 printf "%s\n" "$MAGIC_CMD" >&6; } 15793 else 15794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15795 printf "%s\n" "no" >&6; } 15796 fi 15797 15798 15799 else 15800 MAGIC_CMD=: 15801 fi 15802 fi 15803 15804 fi 15805 ;; 15806 esac 15807 15808 # Use C for the default configuration in the libtool script 15809 15810 lt_save_CC=$CC 15811 ac_ext=c 15812 ac_cpp='$CPP $CPPFLAGS' 15813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15815 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15816 15817 15818 # Source file extension for C test sources. 15819 ac_ext=c 15820 15821 # Object file extension for compiled C test sources. 15822 objext=o 15823 objext=$objext 15824 15825 # Code to be used in simple compile tests 15826 lt_simple_compile_test_code="int some_variable = 0;" 15827 15828 # Code to be used in simple link tests 15829 lt_simple_link_test_code='int main(){return(0);}' 15830 15831 15832 15833 15834 15835 15836 15837 # If no C compiler was specified, use CC. 15838 LTCC=${LTCC-"$CC"} 15839 15840 # If no C compiler flags were specified, use CFLAGS. 15841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15842 15843 # Allow CC to be a program name with arguments. 15844 compiler=$CC 15845 15846 # Save the default compiler, since it gets overwritten when the other 15847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15848 compiler_DEFAULT=$CC 15849 15850 # save warnings/boilerplate of simple test code 15851 ac_outfile=conftest.$ac_objext 15852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15854 _lt_compiler_boilerplate=`cat conftest.err` 15855 $RM conftest* 15856 15857 ac_outfile=conftest.$ac_objext 15858 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15860 _lt_linker_boilerplate=`cat conftest.err` 15861 $RM -r conftest* 15862 15863 15864 if test -n "$compiler"; then 15865 15866 lt_prog_compiler_no_builtin_flag= 15867 15868 if test yes = "$GCC"; then 15869 case $cc_basename in 15870 nvcc*) 15871 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15872 *) 15873 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15874 esac 15875 15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15877 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15878 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15879 then : 15880 printf %s "(cached) " >&6 15881 else case e in #( 15882 e) lt_cv_prog_compiler_rtti_exceptions=no 15883 ac_outfile=conftest.$ac_objext 15884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15885 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15886 # Insert the option either (1) after the last *FLAGS variable, or 15887 # (2) before a word containing "conftest.", or (3) at the end. 15888 # Note that $ac_compile itself does not contain backslashes and begins 15889 # with a dollar sign (not a hyphen), so the echo should work correctly. 15890 # The option is referenced via a variable to avoid confusing sed. 15891 lt_compile=`echo "$ac_compile" | $SED \ 15892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15894 -e 's:$: $lt_compiler_flag:'` 15895 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15896 (eval "$lt_compile" 2>conftest.err) 15897 ac_status=$? 15898 cat conftest.err >&5 15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15900 if (exit $ac_status) && test -s "$ac_outfile"; then 15901 # The compiler can only warn and ignore the option if not recognized 15902 # So say no if there are warnings other than the usual output. 15903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15906 lt_cv_prog_compiler_rtti_exceptions=yes 15907 fi 15908 fi 15909 $RM conftest* 15910 ;; 15911 esac 15912 fi 15913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15914 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15915 15916 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15917 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15918 else 15919 : 15920 fi 15921 15922 fi 15923 15924 15925 15926 15927 15928 15929 lt_prog_compiler_wl= 15930 lt_prog_compiler_pic= 15931 lt_prog_compiler_static= 15932 15933 15934 if test yes = "$GCC"; then 15935 lt_prog_compiler_wl='-Wl,' 15936 lt_prog_compiler_static='-static' 15937 15938 case $host_os in 15939 aix*) 15940 # All AIX code is PIC. 15941 if test ia64 = "$host_cpu"; then 15942 # AIX 5 now supports IA64 processor 15943 lt_prog_compiler_static='-Bstatic' 15944 fi 15945 lt_prog_compiler_pic='-fPIC' 15946 ;; 15947 15948 amigaos*) 15949 case $host_cpu in 15950 powerpc) 15951 # see comment about AmigaOS4 .so support 15952 lt_prog_compiler_pic='-fPIC' 15953 ;; 15954 m68k) 15955 # FIXME: we need at least 68020 code to build shared libraries, but 15956 # adding the '-m68020' flag to GCC prevents building anything better, 15957 # like '-m68040'. 15958 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15959 ;; 15960 esac 15961 ;; 15962 15963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15964 # PIC is the default for these OSes. 15965 ;; 15966 15967 mingw* | cygwin* | pw32* | os2* | cegcc*) 15968 # This hack is so that the source file can tell whether it is being 15969 # built for inclusion in a dll (and should export symbols for example). 15970 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15971 # (--disable-auto-import) libraries 15972 lt_prog_compiler_pic='-DDLL_EXPORT' 15973 case $host_os in 15974 os2*) 15975 lt_prog_compiler_static='$wl-static' 15976 ;; 15977 esac 15978 ;; 15979 15980 darwin* | rhapsody*) 15981 # PIC is the default on this platform 15982 # Common symbols not allowed in MH_DYLIB files 15983 lt_prog_compiler_pic='-fno-common' 15984 ;; 15985 15986 haiku*) 15987 # PIC is the default for Haiku. 15988 # The "-static" flag exists, but is broken. 15989 lt_prog_compiler_static= 15990 ;; 15991 15992 hpux*) 15993 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15994 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15995 # sets the default TLS model and affects inlining. 15996 case $host_cpu in 15997 hppa*64*) 15998 # +Z the default 15999 ;; 16000 *) 16001 lt_prog_compiler_pic='-fPIC' 16002 ;; 16003 esac 16004 ;; 16005 16006 interix[3-9]*) 16007 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16008 # Instead, we relocate shared libraries at runtime. 16009 ;; 16010 16011 msdosdjgpp*) 16012 # Just because we use GCC doesn't mean we suddenly get shared libraries 16013 # on systems that don't support them. 16014 lt_prog_compiler_can_build_shared=no 16015 enable_shared=no 16016 ;; 16017 16018 *nto* | *qnx*) 16019 # QNX uses GNU C++, but need to define -shared option too, otherwise 16020 # it will coredump. 16021 lt_prog_compiler_pic='-fPIC -shared' 16022 ;; 16023 16024 sysv4*MP*) 16025 if test -d /usr/nec; then 16026 lt_prog_compiler_pic=-Kconform_pic 16027 fi 16028 ;; 16029 16030 *) 16031 lt_prog_compiler_pic='-fPIC' 16032 ;; 16033 esac 16034 16035 case $cc_basename in 16036 nvcc*) # Cuda Compiler Driver 2.2 16037 lt_prog_compiler_wl='-Xlinker ' 16038 if test -n "$lt_prog_compiler_pic"; then 16039 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16040 fi 16041 ;; 16042 esac 16043 else 16044 # PORTME Check for flag to pass linker flags through the system compiler. 16045 case $host_os in 16046 aix*) 16047 lt_prog_compiler_wl='-Wl,' 16048 if test ia64 = "$host_cpu"; then 16049 # AIX 5 now supports IA64 processor 16050 lt_prog_compiler_static='-Bstatic' 16051 else 16052 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16053 fi 16054 ;; 16055 16056 darwin* | rhapsody*) 16057 # PIC is the default on this platform 16058 # Common symbols not allowed in MH_DYLIB files 16059 lt_prog_compiler_pic='-fno-common' 16060 case $cc_basename in 16061 nagfor*) 16062 # NAG Fortran compiler 16063 lt_prog_compiler_wl='-Wl,-Wl,,' 16064 lt_prog_compiler_pic='-PIC' 16065 lt_prog_compiler_static='-Bstatic' 16066 ;; 16067 esac 16068 ;; 16069 16070 mingw* | cygwin* | pw32* | os2* | cegcc*) 16071 # This hack is so that the source file can tell whether it is being 16072 # built for inclusion in a dll (and should export symbols for example). 16073 lt_prog_compiler_pic='-DDLL_EXPORT' 16074 case $host_os in 16075 os2*) 16076 lt_prog_compiler_static='$wl-static' 16077 ;; 16078 esac 16079 ;; 16080 16081 hpux9* | hpux10* | hpux11*) 16082 lt_prog_compiler_wl='-Wl,' 16083 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16084 # not for PA HP-UX. 16085 case $host_cpu in 16086 hppa*64*|ia64*) 16087 # +Z the default 16088 ;; 16089 *) 16090 lt_prog_compiler_pic='+Z' 16091 ;; 16092 esac 16093 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16094 lt_prog_compiler_static='$wl-a ${wl}archive' 16095 ;; 16096 16097 irix5* | irix6* | nonstopux*) 16098 lt_prog_compiler_wl='-Wl,' 16099 # PIC (with -KPIC) is the default. 16100 lt_prog_compiler_static='-non_shared' 16101 ;; 16102 16103 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16104 case $cc_basename in 16105 # old Intel for x86_64, which still supported -KPIC. 16106 ecc*) 16107 lt_prog_compiler_wl='-Wl,' 16108 lt_prog_compiler_pic='-KPIC' 16109 lt_prog_compiler_static='-static' 16110 ;; 16111 # icc used to be incompatible with GCC. 16112 # ICC 10 doesn't accept -KPIC any more. 16113 icc* | ifort*) 16114 lt_prog_compiler_wl='-Wl,' 16115 lt_prog_compiler_pic='-fPIC' 16116 lt_prog_compiler_static='-static' 16117 ;; 16118 # Lahey Fortran 8.1. 16119 lf95*) 16120 lt_prog_compiler_wl='-Wl,' 16121 lt_prog_compiler_pic='--shared' 16122 lt_prog_compiler_static='--static' 16123 ;; 16124 nagfor*) 16125 # NAG Fortran compiler 16126 lt_prog_compiler_wl='-Wl,-Wl,,' 16127 lt_prog_compiler_pic='-PIC' 16128 lt_prog_compiler_static='-Bstatic' 16129 ;; 16130 tcc*) 16131 # Fabrice Bellard et al's Tiny C Compiler 16132 lt_prog_compiler_wl='-Wl,' 16133 lt_prog_compiler_pic='-fPIC' 16134 lt_prog_compiler_static='-static' 16135 ;; 16136 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16137 # Portland Group compilers (*not* the Pentium gcc compiler, 16138 # which looks to be a dead project) 16139 lt_prog_compiler_wl='-Wl,' 16140 lt_prog_compiler_pic='-fpic' 16141 lt_prog_compiler_static='-Bstatic' 16142 ;; 16143 ccc*) 16144 lt_prog_compiler_wl='-Wl,' 16145 # All Alpha code is PIC. 16146 lt_prog_compiler_static='-non_shared' 16147 ;; 16148 xl* | bgxl* | bgf* | mpixl*) 16149 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16150 lt_prog_compiler_wl='-Wl,' 16151 lt_prog_compiler_pic='-qpic' 16152 lt_prog_compiler_static='-qstaticlink' 16153 ;; 16154 *) 16155 case `$CC -V 2>&1 | $SED 5q` in 16156 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16157 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16158 lt_prog_compiler_pic='-KPIC' 16159 lt_prog_compiler_static='-Bstatic' 16160 lt_prog_compiler_wl='' 16161 ;; 16162 *Sun\ F* | *Sun*Fortran*) 16163 lt_prog_compiler_pic='-KPIC' 16164 lt_prog_compiler_static='-Bstatic' 16165 lt_prog_compiler_wl='-Qoption ld ' 16166 ;; 16167 *Sun\ C*) 16168 # Sun C 5.9 16169 lt_prog_compiler_pic='-KPIC' 16170 lt_prog_compiler_static='-Bstatic' 16171 lt_prog_compiler_wl='-Wl,' 16172 ;; 16173 *Intel*\ [CF]*Compiler*) 16174 lt_prog_compiler_wl='-Wl,' 16175 lt_prog_compiler_pic='-fPIC' 16176 lt_prog_compiler_static='-static' 16177 ;; 16178 *Portland\ Group*) 16179 lt_prog_compiler_wl='-Wl,' 16180 lt_prog_compiler_pic='-fpic' 16181 lt_prog_compiler_static='-Bstatic' 16182 ;; 16183 esac 16184 ;; 16185 esac 16186 ;; 16187 16188 newsos6) 16189 lt_prog_compiler_pic='-KPIC' 16190 lt_prog_compiler_static='-Bstatic' 16191 ;; 16192 16193 *nto* | *qnx*) 16194 # QNX uses GNU C++, but need to define -shared option too, otherwise 16195 # it will coredump. 16196 lt_prog_compiler_pic='-fPIC -shared' 16197 ;; 16198 16199 osf3* | osf4* | osf5*) 16200 lt_prog_compiler_wl='-Wl,' 16201 # All OSF/1 code is PIC. 16202 lt_prog_compiler_static='-non_shared' 16203 ;; 16204 16205 rdos*) 16206 lt_prog_compiler_static='-non_shared' 16207 ;; 16208 16209 solaris*) 16210 lt_prog_compiler_pic='-KPIC' 16211 lt_prog_compiler_static='-Bstatic' 16212 case $cc_basename in 16213 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16214 lt_prog_compiler_wl='-Qoption ld ';; 16215 *) 16216 lt_prog_compiler_wl='-Wl,';; 16217 esac 16218 ;; 16219 16220 sunos4*) 16221 lt_prog_compiler_wl='-Qoption ld ' 16222 lt_prog_compiler_pic='-PIC' 16223 lt_prog_compiler_static='-Bstatic' 16224 ;; 16225 16226 sysv4 | sysv4.2uw2* | sysv4.3*) 16227 lt_prog_compiler_wl='-Wl,' 16228 lt_prog_compiler_pic='-KPIC' 16229 lt_prog_compiler_static='-Bstatic' 16230 ;; 16231 16232 sysv4*MP*) 16233 if test -d /usr/nec; then 16234 lt_prog_compiler_pic='-Kconform_pic' 16235 lt_prog_compiler_static='-Bstatic' 16236 fi 16237 ;; 16238 16239 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16240 lt_prog_compiler_wl='-Wl,' 16241 lt_prog_compiler_pic='-KPIC' 16242 lt_prog_compiler_static='-Bstatic' 16243 ;; 16244 16245 unicos*) 16246 lt_prog_compiler_wl='-Wl,' 16247 lt_prog_compiler_can_build_shared=no 16248 ;; 16249 16250 uts4*) 16251 lt_prog_compiler_pic='-pic' 16252 lt_prog_compiler_static='-Bstatic' 16253 ;; 16254 16255 *) 16256 lt_prog_compiler_can_build_shared=no 16257 ;; 16258 esac 16259 fi 16260 16261 case $host_os in 16262 # For platforms that do not support PIC, -DPIC is meaningless: 16263 *djgpp*) 16264 lt_prog_compiler_pic= 16265 ;; 16266 *) 16267 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16268 ;; 16269 esac 16270 16271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16272 printf %s "checking for $compiler option to produce PIC... " >&6; } 16273 if test ${lt_cv_prog_compiler_pic+y} 16274 then : 16275 printf %s "(cached) " >&6 16276 else case e in #( 16277 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 16278 esac 16279 fi 16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16281 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16282 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16283 16284 # 16285 # Check to make sure the PIC flag actually works. 16286 # 16287 if test -n "$lt_prog_compiler_pic"; then 16288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16289 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16290 if test ${lt_cv_prog_compiler_pic_works+y} 16291 then : 16292 printf %s "(cached) " >&6 16293 else case e in #( 16294 e) lt_cv_prog_compiler_pic_works=no 16295 ac_outfile=conftest.$ac_objext 16296 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16297 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16298 # Insert the option either (1) after the last *FLAGS variable, or 16299 # (2) before a word containing "conftest.", or (3) at the end. 16300 # Note that $ac_compile itself does not contain backslashes and begins 16301 # with a dollar sign (not a hyphen), so the echo should work correctly. 16302 # The option is referenced via a variable to avoid confusing sed. 16303 lt_compile=`echo "$ac_compile" | $SED \ 16304 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16305 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16306 -e 's:$: $lt_compiler_flag:'` 16307 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16308 (eval "$lt_compile" 2>conftest.err) 16309 ac_status=$? 16310 cat conftest.err >&5 16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16312 if (exit $ac_status) && test -s "$ac_outfile"; then 16313 # The compiler can only warn and ignore the option if not recognized 16314 # So say no if there are warnings other than the usual output. 16315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16316 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16317 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16318 lt_cv_prog_compiler_pic_works=yes 16319 fi 16320 fi 16321 $RM conftest* 16322 ;; 16323 esac 16324 fi 16325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16326 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16327 16328 if test yes = "$lt_cv_prog_compiler_pic_works"; then 16329 case $lt_prog_compiler_pic in 16330 "" | " "*) ;; 16331 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16332 esac 16333 else 16334 lt_prog_compiler_pic= 16335 lt_prog_compiler_can_build_shared=no 16336 fi 16337 16338 fi 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 # 16351 # Check to make sure the static flag actually works. 16352 # 16353 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16355 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16356 if test ${lt_cv_prog_compiler_static_works+y} 16357 then : 16358 printf %s "(cached) " >&6 16359 else case e in #( 16360 e) lt_cv_prog_compiler_static_works=no 16361 save_LDFLAGS=$LDFLAGS 16362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16363 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16365 # The linker can only warn and ignore the option if not recognized 16366 # So say no if there are warnings 16367 if test -s conftest.err; then 16368 # Append any errors to the config.log. 16369 cat conftest.err 1>&5 16370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16372 if diff conftest.exp conftest.er2 >/dev/null; then 16373 lt_cv_prog_compiler_static_works=yes 16374 fi 16375 else 16376 lt_cv_prog_compiler_static_works=yes 16377 fi 16378 fi 16379 $RM -r conftest* 16380 LDFLAGS=$save_LDFLAGS 16381 ;; 16382 esac 16383 fi 16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16385 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16386 16387 if test yes = "$lt_cv_prog_compiler_static_works"; then 16388 : 16389 else 16390 lt_prog_compiler_static= 16391 fi 16392 16393 16394 16395 16396 16397 16398 16399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16400 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16401 if test ${lt_cv_prog_compiler_c_o+y} 16402 then : 16403 printf %s "(cached) " >&6 16404 else case e in #( 16405 e) lt_cv_prog_compiler_c_o=no 16406 $RM -r conftest 2>/dev/null 16407 mkdir conftest 16408 cd conftest 16409 mkdir out 16410 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16411 16412 lt_compiler_flag="-o out/conftest2.$ac_objext" 16413 # Insert the option either (1) after the last *FLAGS variable, or 16414 # (2) before a word containing "conftest.", or (3) at the end. 16415 # Note that $ac_compile itself does not contain backslashes and begins 16416 # with a dollar sign (not a hyphen), so the echo should work correctly. 16417 lt_compile=`echo "$ac_compile" | $SED \ 16418 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16419 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16420 -e 's:$: $lt_compiler_flag:'` 16421 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16422 (eval "$lt_compile" 2>out/conftest.err) 16423 ac_status=$? 16424 cat out/conftest.err >&5 16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16426 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16427 then 16428 # The compiler can only warn and ignore the option if not recognized 16429 # So say no if there are warnings 16430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16431 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16432 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16433 lt_cv_prog_compiler_c_o=yes 16434 fi 16435 fi 16436 chmod u+w . 2>&5 16437 $RM conftest* 16438 # SGI C++ compiler will create directory out/ii_files/ for 16439 # template instantiation 16440 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16441 $RM out/* && rmdir out 16442 cd .. 16443 $RM -r conftest 16444 $RM conftest* 16445 ;; 16446 esac 16447 fi 16448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16449 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16450 16451 16452 16453 16454 16455 16456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16457 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16458 if test ${lt_cv_prog_compiler_c_o+y} 16459 then : 16460 printf %s "(cached) " >&6 16461 else case e in #( 16462 e) lt_cv_prog_compiler_c_o=no 16463 $RM -r conftest 2>/dev/null 16464 mkdir conftest 16465 cd conftest 16466 mkdir out 16467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16468 16469 lt_compiler_flag="-o out/conftest2.$ac_objext" 16470 # Insert the option either (1) after the last *FLAGS variable, or 16471 # (2) before a word containing "conftest.", or (3) at the end. 16472 # Note that $ac_compile itself does not contain backslashes and begins 16473 # with a dollar sign (not a hyphen), so the echo should work correctly. 16474 lt_compile=`echo "$ac_compile" | $SED \ 16475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16477 -e 's:$: $lt_compiler_flag:'` 16478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16479 (eval "$lt_compile" 2>out/conftest.err) 16480 ac_status=$? 16481 cat out/conftest.err >&5 16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16483 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16484 then 16485 # The compiler can only warn and ignore the option if not recognized 16486 # So say no if there are warnings 16487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16490 lt_cv_prog_compiler_c_o=yes 16491 fi 16492 fi 16493 chmod u+w . 2>&5 16494 $RM conftest* 16495 # SGI C++ compiler will create directory out/ii_files/ for 16496 # template instantiation 16497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16498 $RM out/* && rmdir out 16499 cd .. 16500 $RM -r conftest 16501 $RM conftest* 16502 ;; 16503 esac 16504 fi 16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16506 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16507 16508 16509 16510 16511 hard_links=nottested 16512 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16513 # do not overwrite the value of need_locks provided by the user 16514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16515 printf %s "checking if we can lock with hard links... " >&6; } 16516 hard_links=yes 16517 $RM conftest* 16518 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16519 touch conftest.a 16520 ln conftest.a conftest.b 2>&5 || hard_links=no 16521 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16523 printf "%s\n" "$hard_links" >&6; } 16524 if test no = "$hard_links"; then 16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16526 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16527 need_locks=warn 16528 fi 16529 else 16530 need_locks=no 16531 fi 16532 16533 16534 16535 16536 16537 16538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16539 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16540 16541 runpath_var= 16542 allow_undefined_flag= 16543 always_export_symbols=no 16544 archive_cmds= 16545 archive_expsym_cmds= 16546 compiler_needs_object=no 16547 enable_shared_with_static_runtimes=no 16548 export_dynamic_flag_spec= 16549 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16550 hardcode_automatic=no 16551 hardcode_direct=no 16552 hardcode_direct_absolute=no 16553 hardcode_libdir_flag_spec= 16554 hardcode_libdir_separator= 16555 hardcode_minus_L=no 16556 hardcode_shlibpath_var=unsupported 16557 inherit_rpath=no 16558 link_all_deplibs=unknown 16559 module_cmds= 16560 module_expsym_cmds= 16561 old_archive_from_new_cmds= 16562 old_archive_from_expsyms_cmds= 16563 thread_safe_flag_spec= 16564 whole_archive_flag_spec= 16565 # include_expsyms should be a list of space-separated symbols to be *always* 16566 # included in the symbol list 16567 include_expsyms= 16568 # exclude_expsyms can be an extended regexp of symbols to exclude 16569 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16570 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16571 # as well as any symbol that contains 'd'. 16572 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16573 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16574 # platforms (ab)use it in PIC code, but their linkers get confused if 16575 # the symbol is explicitly referenced. Since portable code cannot 16576 # rely on this symbol name, it's probably fine to never include it in 16577 # preloaded symbol tables. 16578 # Exclude shared library initialization/finalization symbols. 16579 extract_expsyms_cmds= 16580 16581 case $host_os in 16582 cygwin* | mingw* | pw32* | cegcc*) 16583 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16584 # When not using gcc, we currently assume that we are using 16585 # Microsoft Visual C++ or Intel C++ Compiler. 16586 if test yes != "$GCC"; then 16587 with_gnu_ld=no 16588 fi 16589 ;; 16590 interix*) 16591 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16592 with_gnu_ld=yes 16593 ;; 16594 openbsd* | bitrig*) 16595 with_gnu_ld=no 16596 ;; 16597 esac 16598 16599 ld_shlibs=yes 16600 16601 # On some targets, GNU ld is compatible enough with the native linker 16602 # that we're better off using the native interface for both. 16603 lt_use_gnu_ld_interface=no 16604 if test yes = "$with_gnu_ld"; then 16605 case $host_os in 16606 aix*) 16607 # The AIX port of GNU ld has always aspired to compatibility 16608 # with the native linker. However, as the warning in the GNU ld 16609 # block says, versions before 2.19.5* couldn't really create working 16610 # shared libraries, regardless of the interface used. 16611 case `$LD -v 2>&1` in 16612 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16613 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16614 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16615 *) 16616 lt_use_gnu_ld_interface=yes 16617 ;; 16618 esac 16619 ;; 16620 *) 16621 lt_use_gnu_ld_interface=yes 16622 ;; 16623 esac 16624 fi 16625 16626 if test yes = "$lt_use_gnu_ld_interface"; then 16627 # If archive_cmds runs LD, not CC, wlarc should be empty 16628 wlarc='$wl' 16629 16630 # Set some defaults for GNU ld with shared library support. These 16631 # are reset later if shared libraries are not supported. Putting them 16632 # here allows them to be overridden if necessary. 16633 runpath_var=LD_RUN_PATH 16634 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16635 export_dynamic_flag_spec='$wl--export-dynamic' 16636 # ancient GNU ld didn't support --whole-archive et. al. 16637 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16638 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16639 else 16640 whole_archive_flag_spec= 16641 fi 16642 supports_anon_versioning=no 16643 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16644 *GNU\ gold*) supports_anon_versioning=yes ;; 16645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16648 *\ 2.11.*) ;; # other 2.11 versions 16649 *) supports_anon_versioning=yes ;; 16650 esac 16651 16652 # See if GNU ld supports shared libraries. 16653 case $host_os in 16654 aix[3-9]*) 16655 # On AIX/PPC, the GNU linker is very broken 16656 if test ia64 != "$host_cpu"; then 16657 ld_shlibs=no 16658 cat <<_LT_EOF 1>&2 16659 16660 *** Warning: the GNU linker, at least up to release 2.19, is reported 16661 *** to be unable to reliably create shared libraries on AIX. 16662 *** Therefore, libtool is disabling shared libraries support. If you 16663 *** really care for shared libraries, you may want to install binutils 16664 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16665 *** You will then need to restart the configuration process. 16666 16667 _LT_EOF 16668 fi 16669 ;; 16670 16671 amigaos*) 16672 case $host_cpu in 16673 powerpc) 16674 # see comment about AmigaOS4 .so support 16675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16676 archive_expsym_cmds='' 16677 ;; 16678 m68k) 16679 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)' 16680 hardcode_libdir_flag_spec='-L$libdir' 16681 hardcode_minus_L=yes 16682 ;; 16683 esac 16684 ;; 16685 16686 beos*) 16687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16688 allow_undefined_flag=unsupported 16689 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16690 # support --undefined. This deserves some investigation. FIXME 16691 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16692 else 16693 ld_shlibs=no 16694 fi 16695 ;; 16696 16697 cygwin* | mingw* | pw32* | cegcc*) 16698 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16699 # as there is no search path for DLLs. 16700 hardcode_libdir_flag_spec='-L$libdir' 16701 export_dynamic_flag_spec='$wl--export-all-symbols' 16702 allow_undefined_flag=unsupported 16703 always_export_symbols=no 16704 enable_shared_with_static_runtimes=yes 16705 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' 16706 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16707 16708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16710 # If the export-symbols file already is a .def file, use it as 16711 # is; otherwise, prepend EXPORTS... 16712 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16713 cp $export_symbols $output_objdir/$soname.def; 16714 else 16715 echo EXPORTS > $output_objdir/$soname.def; 16716 cat $export_symbols >> $output_objdir/$soname.def; 16717 fi~ 16718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16719 else 16720 ld_shlibs=no 16721 fi 16722 ;; 16723 16724 haiku*) 16725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16726 link_all_deplibs=yes 16727 ;; 16728 16729 os2*) 16730 hardcode_libdir_flag_spec='-L$libdir' 16731 hardcode_minus_L=yes 16732 allow_undefined_flag=unsupported 16733 shrext_cmds=.dll 16734 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16735 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16736 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16737 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16738 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16739 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16740 emximp -o $lib $output_objdir/$libname.def' 16741 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16744 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16745 prefix_cmds="$SED"~ 16746 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16747 prefix_cmds="$prefix_cmds -e 1d"; 16748 fi~ 16749 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16750 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16751 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16752 emximp -o $lib $output_objdir/$libname.def' 16753 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16754 enable_shared_with_static_runtimes=yes 16755 file_list_spec='@' 16756 ;; 16757 16758 interix[3-9]*) 16759 hardcode_direct=no 16760 hardcode_shlibpath_var=no 16761 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16762 export_dynamic_flag_spec='$wl-E' 16763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16764 # Instead, shared libraries are loaded at an image base (0x10000000 by 16765 # default) and relocated if they conflict, which is a slow very memory 16766 # consuming and fragmenting process. To avoid this, we pick a random, 16767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16768 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16770 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' 16771 ;; 16772 16773 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16774 tmp_diet=no 16775 if test linux-dietlibc = "$host_os"; then 16776 case $cc_basename in 16777 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16778 esac 16779 fi 16780 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16781 && test no = "$tmp_diet" 16782 then 16783 tmp_addflag=' $pic_flag' 16784 tmp_sharedflag='-shared' 16785 case $cc_basename,$host_cpu in 16786 pgcc*) # Portland Group C compiler 16787 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' 16788 tmp_addflag=' $pic_flag' 16789 ;; 16790 pgf77* | pgf90* | pgf95* | pgfortran*) 16791 # Portland Group f77 and f90 compilers 16792 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' 16793 tmp_addflag=' $pic_flag -Mnomain' ;; 16794 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16795 tmp_addflag=' -i_dynamic' ;; 16796 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16797 tmp_addflag=' -i_dynamic -nofor_main' ;; 16798 ifc* | ifort*) # Intel Fortran compiler 16799 tmp_addflag=' -nofor_main' ;; 16800 lf95*) # Lahey Fortran 8.1 16801 whole_archive_flag_spec= 16802 tmp_sharedflag='--shared' ;; 16803 nagfor*) # NAGFOR 5.3 16804 tmp_sharedflag='-Wl,-shared' ;; 16805 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16806 tmp_sharedflag='-qmkshrobj' 16807 tmp_addflag= ;; 16808 nvcc*) # Cuda Compiler Driver 2.2 16809 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' 16810 compiler_needs_object=yes 16811 ;; 16812 esac 16813 case `$CC -V 2>&1 | $SED 5q` in 16814 *Sun\ C*) # Sun C 5.9 16815 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' 16816 compiler_needs_object=yes 16817 tmp_sharedflag='-G' ;; 16818 *Sun\ F*) # Sun Fortran 8.3 16819 tmp_sharedflag='-G' ;; 16820 esac 16821 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16822 16823 if test yes = "$supports_anon_versioning"; then 16824 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16825 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16826 echo "local: *; };" >> $output_objdir/$libname.ver~ 16827 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16828 fi 16829 16830 case $cc_basename in 16831 tcc*) 16832 export_dynamic_flag_spec='-rdynamic' 16833 ;; 16834 xlf* | bgf* | bgxlf* | mpixlf*) 16835 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16836 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16837 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16838 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16839 if test yes = "$supports_anon_versioning"; then 16840 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16841 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16842 echo "local: *; };" >> $output_objdir/$libname.ver~ 16843 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16844 fi 16845 ;; 16846 esac 16847 else 16848 ld_shlibs=no 16849 fi 16850 ;; 16851 16852 netbsd*) 16853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16854 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16855 wlarc= 16856 else 16857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16858 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16859 fi 16860 ;; 16861 16862 solaris*) 16863 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16864 ld_shlibs=no 16865 cat <<_LT_EOF 1>&2 16866 16867 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16868 *** create shared libraries on Solaris systems. Therefore, libtool 16869 *** is disabling shared libraries support. We urge you to upgrade GNU 16870 *** binutils to release 2.9.1 or newer. Another option is to modify 16871 *** your PATH or compiler configuration so that the native linker is 16872 *** used, and then restart. 16873 16874 _LT_EOF 16875 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16877 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16878 else 16879 ld_shlibs=no 16880 fi 16881 ;; 16882 16883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16884 case `$LD -v 2>&1` in 16885 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16886 ld_shlibs=no 16887 cat <<_LT_EOF 1>&2 16888 16889 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16890 *** reliably create shared libraries on SCO systems. Therefore, libtool 16891 *** is disabling shared libraries support. We urge you to upgrade GNU 16892 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16893 *** your PATH or compiler configuration so that the native linker is 16894 *** used, and then restart. 16895 16896 _LT_EOF 16897 ;; 16898 *) 16899 # For security reasons, it is highly recommended that you always 16900 # use absolute paths for naming shared libraries, and exclude the 16901 # DT_RUNPATH tag from executables and libraries. But doing so 16902 # requires that you compile everything twice, which is a pain. 16903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16904 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16906 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16907 else 16908 ld_shlibs=no 16909 fi 16910 ;; 16911 esac 16912 ;; 16913 16914 sunos4*) 16915 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16916 wlarc= 16917 hardcode_direct=yes 16918 hardcode_shlibpath_var=no 16919 ;; 16920 16921 *) 16922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16924 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16925 else 16926 ld_shlibs=no 16927 fi 16928 ;; 16929 esac 16930 16931 if test no = "$ld_shlibs"; then 16932 runpath_var= 16933 hardcode_libdir_flag_spec= 16934 export_dynamic_flag_spec= 16935 whole_archive_flag_spec= 16936 fi 16937 else 16938 # PORTME fill in a description of your system's linker (not GNU ld) 16939 case $host_os in 16940 aix3*) 16941 allow_undefined_flag=unsupported 16942 always_export_symbols=yes 16943 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' 16944 # Note: this linker hardcodes the directories in LIBPATH if there 16945 # are no directories specified by -L. 16946 hardcode_minus_L=yes 16947 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16948 # Neither direct hardcoding nor static linking is supported with a 16949 # broken collect2. 16950 hardcode_direct=unsupported 16951 fi 16952 ;; 16953 16954 aix[4-9]*) 16955 if test ia64 = "$host_cpu"; then 16956 # On IA64, the linker does run time linking by default, so we don't 16957 # have to do anything special. 16958 aix_use_runtimelinking=no 16959 exp_sym_flag='-Bexport' 16960 no_entry_flag= 16961 else 16962 # If we're using GNU nm, then we don't want the "-C" option. 16963 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16964 # Without the "-l" option, or with the "-B" option, AIX nm treats 16965 # weak defined symbols like other global defined symbols, whereas 16966 # GNU nm marks them as "W". 16967 # While the 'weak' keyword is ignored in the Export File, we need 16968 # it in the Import File for the 'aix-soname' feature, so we have 16969 # to replace the "-B" option with "-P" for AIX nm. 16970 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16971 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' 16972 else 16973 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' 16974 fi 16975 aix_use_runtimelinking=no 16976 16977 # Test if we are trying to use run time linking or normal 16978 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16979 # have runtime linking enabled, and use it for executables. 16980 # For shared libraries, we enable/disable runtime linking 16981 # depending on the kind of the shared library created - 16982 # when "with_aix_soname,aix_use_runtimelinking" is: 16983 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16984 # "aix,yes" lib.so shared, rtl:yes, for executables 16985 # lib.a static archive 16986 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16987 # lib.a(lib.so.V) shared, rtl:no, for executables 16988 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16989 # lib.a(lib.so.V) shared, rtl:no 16990 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16991 # lib.a static archive 16992 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16993 for ld_flag in $LDFLAGS; do 16994 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16995 aix_use_runtimelinking=yes 16996 break 16997 fi 16998 done 16999 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17000 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17001 # so we don't have lib.a shared libs to link our executables. 17002 # We have to force runtime linking in this case. 17003 aix_use_runtimelinking=yes 17004 LDFLAGS="$LDFLAGS -Wl,-brtl" 17005 fi 17006 ;; 17007 esac 17008 17009 exp_sym_flag='-bexport' 17010 no_entry_flag='-bnoentry' 17011 fi 17012 17013 # When large executables or shared objects are built, AIX ld can 17014 # have problems creating the table of contents. If linking a library 17015 # or program results in "error TOC overflow" add -mminimal-toc to 17016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17018 17019 archive_cmds='' 17020 hardcode_direct=yes 17021 hardcode_direct_absolute=yes 17022 hardcode_libdir_separator=':' 17023 link_all_deplibs=yes 17024 file_list_spec='$wl-f,' 17025 case $with_aix_soname,$aix_use_runtimelinking in 17026 aix,*) ;; # traditional, no import file 17027 svr4,* | *,yes) # use import file 17028 # The Import File defines what to hardcode. 17029 hardcode_direct=no 17030 hardcode_direct_absolute=no 17031 ;; 17032 esac 17033 17034 if test yes = "$GCC"; then 17035 case $host_os in aix4.[012]|aix4.[012].*) 17036 # We only want to do this on AIX 4.2 and lower, the check 17037 # below for broken collect2 doesn't work under 4.3+ 17038 collect2name=`$CC -print-prog-name=collect2` 17039 if test -f "$collect2name" && 17040 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17041 then 17042 # We have reworked collect2 17043 : 17044 else 17045 # We have old collect2 17046 hardcode_direct=unsupported 17047 # It fails to find uninstalled libraries when the uninstalled 17048 # path is not listed in the libpath. Setting hardcode_minus_L 17049 # to unsupported forces relinking 17050 hardcode_minus_L=yes 17051 hardcode_libdir_flag_spec='-L$libdir' 17052 hardcode_libdir_separator= 17053 fi 17054 ;; 17055 esac 17056 shared_flag='-shared' 17057 if test yes = "$aix_use_runtimelinking"; then 17058 shared_flag="$shared_flag "'$wl-G' 17059 fi 17060 # Need to ensure runtime linking is disabled for the traditional 17061 # shared library, or the linker may eventually find shared libraries 17062 # /with/ Import File - we do not want to mix them. 17063 shared_flag_aix='-shared' 17064 shared_flag_svr4='-shared $wl-G' 17065 else 17066 # not using gcc 17067 if test ia64 = "$host_cpu"; then 17068 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17069 # chokes on -Wl,-G. The following line is correct: 17070 shared_flag='-G' 17071 else 17072 if test yes = "$aix_use_runtimelinking"; then 17073 shared_flag='$wl-G' 17074 else 17075 shared_flag='$wl-bM:SRE' 17076 fi 17077 shared_flag_aix='$wl-bM:SRE' 17078 shared_flag_svr4='$wl-G' 17079 fi 17080 fi 17081 17082 export_dynamic_flag_spec='$wl-bexpall' 17083 # It seems that -bexpall does not export symbols beginning with 17084 # underscore (_), so it is better to generate a list of symbols to export. 17085 always_export_symbols=yes 17086 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17087 # Warning - without using the other runtime loading flags (-brtl), 17088 # -berok will link without error, but may produce a broken library. 17089 allow_undefined_flag='-berok' 17090 # Determine the default libpath from the value encoded in an 17091 # empty executable. 17092 if test set = "${lt_cv_aix_libpath+set}"; then 17093 aix_libpath=$lt_cv_aix_libpath 17094 else 17095 if test ${lt_cv_aix_libpath_+y} 17096 then : 17097 printf %s "(cached) " >&6 17098 else case e in #( 17099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17100 /* end confdefs.h. */ 17101 17102 int 17103 main (void) 17104 { 17105 17106 ; 17107 return 0; 17108 } 17109 _ACEOF 17110 if ac_fn_c_try_link "$LINENO" 17111 then : 17112 17113 lt_aix_libpath_sed=' 17114 /Import File Strings/,/^$/ { 17115 /^0/ { 17116 s/^0 *\([^ ]*\) *$/\1/ 17117 p 17118 } 17119 }' 17120 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17121 # Check for a 64-bit object if we didn't find anything. 17122 if test -z "$lt_cv_aix_libpath_"; then 17123 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17124 fi 17125 fi 17126 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17127 conftest$ac_exeext conftest.$ac_ext 17128 if test -z "$lt_cv_aix_libpath_"; then 17129 lt_cv_aix_libpath_=/usr/lib:/lib 17130 fi 17131 ;; 17132 esac 17133 fi 17134 17135 aix_libpath=$lt_cv_aix_libpath_ 17136 fi 17137 17138 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17139 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 17140 else 17141 if test ia64 = "$host_cpu"; then 17142 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17143 allow_undefined_flag="-z nodefs" 17144 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" 17145 else 17146 # Determine the default libpath from the value encoded in an 17147 # empty executable. 17148 if test set = "${lt_cv_aix_libpath+set}"; then 17149 aix_libpath=$lt_cv_aix_libpath 17150 else 17151 if test ${lt_cv_aix_libpath_+y} 17152 then : 17153 printf %s "(cached) " >&6 17154 else case e in #( 17155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17156 /* end confdefs.h. */ 17157 17158 int 17159 main (void) 17160 { 17161 17162 ; 17163 return 0; 17164 } 17165 _ACEOF 17166 if ac_fn_c_try_link "$LINENO" 17167 then : 17168 17169 lt_aix_libpath_sed=' 17170 /Import File Strings/,/^$/ { 17171 /^0/ { 17172 s/^0 *\([^ ]*\) *$/\1/ 17173 p 17174 } 17175 }' 17176 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17177 # Check for a 64-bit object if we didn't find anything. 17178 if test -z "$lt_cv_aix_libpath_"; then 17179 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17180 fi 17181 fi 17182 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17183 conftest$ac_exeext conftest.$ac_ext 17184 if test -z "$lt_cv_aix_libpath_"; then 17185 lt_cv_aix_libpath_=/usr/lib:/lib 17186 fi 17187 ;; 17188 esac 17189 fi 17190 17191 aix_libpath=$lt_cv_aix_libpath_ 17192 fi 17193 17194 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17195 # Warning - without using the other run time loading flags, 17196 # -berok will link without error, but may produce a broken library. 17197 no_undefined_flag=' $wl-bernotok' 17198 allow_undefined_flag=' $wl-berok' 17199 if test yes = "$with_gnu_ld"; then 17200 # We only use this code for GNU lds that support --whole-archive. 17201 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17202 else 17203 # Exported symbols can be pulled into shared objects from archives 17204 whole_archive_flag_spec='$convenience' 17205 fi 17206 archive_cmds_need_lc=yes 17207 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17208 # -brtl affects multiple linker settings, -berok does not and is overridden later 17209 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17210 if test svr4 != "$with_aix_soname"; then 17211 # This is similar to how AIX traditionally builds its shared libraries. 17212 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' 17213 fi 17214 if test aix != "$with_aix_soname"; then 17215 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' 17216 else 17217 # used by -dlpreopen to get the symbols 17218 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17219 fi 17220 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17221 fi 17222 fi 17223 ;; 17224 17225 amigaos*) 17226 case $host_cpu in 17227 powerpc) 17228 # see comment about AmigaOS4 .so support 17229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17230 archive_expsym_cmds='' 17231 ;; 17232 m68k) 17233 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)' 17234 hardcode_libdir_flag_spec='-L$libdir' 17235 hardcode_minus_L=yes 17236 ;; 17237 esac 17238 ;; 17239 17240 bsdi[45]*) 17241 export_dynamic_flag_spec=-rdynamic 17242 ;; 17243 17244 cygwin* | mingw* | pw32* | cegcc*) 17245 # When not using gcc, we currently assume that we are using 17246 # Microsoft Visual C++ or Intel C++ Compiler. 17247 # hardcode_libdir_flag_spec is actually meaningless, as there is 17248 # no search path for DLLs. 17249 case $cc_basename in 17250 cl* | icl*) 17251 # Native MSVC or ICC 17252 hardcode_libdir_flag_spec=' ' 17253 allow_undefined_flag=unsupported 17254 always_export_symbols=yes 17255 file_list_spec='@' 17256 # Tell ltmain to make .lib files, not .a files. 17257 libext=lib 17258 # Tell ltmain to make .dll files, not .so files. 17259 shrext_cmds=.dll 17260 # FIXME: Setting linknames here is a bad hack. 17261 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17262 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17263 cp "$export_symbols" "$output_objdir/$soname.def"; 17264 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17265 else 17266 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17267 fi~ 17268 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17269 linknames=' 17270 # The linker will not automatically build a static lib if we build a DLL. 17271 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17272 enable_shared_with_static_runtimes=yes 17273 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17274 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17275 # Don't use ranlib 17276 old_postinstall_cmds='chmod 644 $oldlib' 17277 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17278 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17279 case $lt_outputfile in 17280 *.exe|*.EXE) ;; 17281 *) 17282 lt_outputfile=$lt_outputfile.exe 17283 lt_tool_outputfile=$lt_tool_outputfile.exe 17284 ;; 17285 esac~ 17286 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17287 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17288 $RM "$lt_outputfile.manifest"; 17289 fi' 17290 ;; 17291 *) 17292 # Assume MSVC and ICC wrapper 17293 hardcode_libdir_flag_spec=' ' 17294 allow_undefined_flag=unsupported 17295 # Tell ltmain to make .lib files, not .a files. 17296 libext=lib 17297 # Tell ltmain to make .dll files, not .so files. 17298 shrext_cmds=.dll 17299 # FIXME: Setting linknames here is a bad hack. 17300 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17301 # The linker will automatically build a .lib file if we build a DLL. 17302 old_archive_from_new_cmds='true' 17303 # FIXME: Should let the user specify the lib program. 17304 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17305 enable_shared_with_static_runtimes=yes 17306 ;; 17307 esac 17308 ;; 17309 17310 darwin* | rhapsody*) 17311 17312 17313 archive_cmds_need_lc=no 17314 hardcode_direct=no 17315 hardcode_automatic=yes 17316 hardcode_shlibpath_var=unsupported 17317 if test yes = "$lt_cv_ld_force_load"; then 17318 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\"`' 17319 17320 else 17321 whole_archive_flag_spec='' 17322 fi 17323 link_all_deplibs=yes 17324 allow_undefined_flag=$_lt_dar_allow_undefined 17325 case $cc_basename in 17326 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17327 *) _lt_dar_can_shared=$GCC ;; 17328 esac 17329 if test yes = "$_lt_dar_can_shared"; then 17330 output_verbose_link_cmd=func_echo_all 17331 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17332 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17333 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" 17334 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" 17335 17336 else 17337 ld_shlibs=no 17338 fi 17339 17340 ;; 17341 17342 dgux*) 17343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17344 hardcode_libdir_flag_spec='-L$libdir' 17345 hardcode_shlibpath_var=no 17346 ;; 17347 17348 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17349 # support. Future versions do this automatically, but an explicit c++rt0.o 17350 # does not break anything, and helps significantly (at the cost of a little 17351 # extra space). 17352 freebsd2.2*) 17353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17354 hardcode_libdir_flag_spec='-R$libdir' 17355 hardcode_direct=yes 17356 hardcode_shlibpath_var=no 17357 ;; 17358 17359 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17360 freebsd2.*) 17361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17362 hardcode_direct=yes 17363 hardcode_minus_L=yes 17364 hardcode_shlibpath_var=no 17365 ;; 17366 17367 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17368 freebsd* | dragonfly* | midnightbsd*) 17369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17370 hardcode_libdir_flag_spec='-R$libdir' 17371 hardcode_direct=yes 17372 hardcode_shlibpath_var=no 17373 ;; 17374 17375 hpux9*) 17376 if test yes = "$GCC"; then 17377 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' 17378 else 17379 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' 17380 fi 17381 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17382 hardcode_libdir_separator=: 17383 hardcode_direct=yes 17384 17385 # hardcode_minus_L: Not really in the search PATH, 17386 # but as the default location of the library. 17387 hardcode_minus_L=yes 17388 export_dynamic_flag_spec='$wl-E' 17389 ;; 17390 17391 hpux10*) 17392 if test yes,no = "$GCC,$with_gnu_ld"; then 17393 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17394 else 17395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17396 fi 17397 if test no = "$with_gnu_ld"; then 17398 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17399 hardcode_libdir_separator=: 17400 hardcode_direct=yes 17401 hardcode_direct_absolute=yes 17402 export_dynamic_flag_spec='$wl-E' 17403 # hardcode_minus_L: Not really in the search PATH, 17404 # but as the default location of the library. 17405 hardcode_minus_L=yes 17406 fi 17407 ;; 17408 17409 hpux11*) 17410 if test yes,no = "$GCC,$with_gnu_ld"; then 17411 case $host_cpu in 17412 hppa*64*) 17413 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17414 ;; 17415 ia64*) 17416 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17417 ;; 17418 *) 17419 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17420 ;; 17421 esac 17422 else 17423 case $host_cpu in 17424 hppa*64*) 17425 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17426 ;; 17427 ia64*) 17428 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17429 ;; 17430 *) 17431 17432 # Older versions of the 11.00 compiler do not understand -b yet 17433 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17435 printf %s "checking if $CC understands -b... " >&6; } 17436 if test ${lt_cv_prog_compiler__b+y} 17437 then : 17438 printf %s "(cached) " >&6 17439 else case e in #( 17440 e) lt_cv_prog_compiler__b=no 17441 save_LDFLAGS=$LDFLAGS 17442 LDFLAGS="$LDFLAGS -b" 17443 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17445 # The linker can only warn and ignore the option if not recognized 17446 # So say no if there are warnings 17447 if test -s conftest.err; then 17448 # Append any errors to the config.log. 17449 cat conftest.err 1>&5 17450 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17452 if diff conftest.exp conftest.er2 >/dev/null; then 17453 lt_cv_prog_compiler__b=yes 17454 fi 17455 else 17456 lt_cv_prog_compiler__b=yes 17457 fi 17458 fi 17459 $RM -r conftest* 17460 LDFLAGS=$save_LDFLAGS 17461 ;; 17462 esac 17463 fi 17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17465 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17466 17467 if test yes = "$lt_cv_prog_compiler__b"; then 17468 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17469 else 17470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17471 fi 17472 17473 ;; 17474 esac 17475 fi 17476 if test no = "$with_gnu_ld"; then 17477 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17478 hardcode_libdir_separator=: 17479 17480 case $host_cpu in 17481 hppa*64*|ia64*) 17482 hardcode_direct=no 17483 hardcode_shlibpath_var=no 17484 ;; 17485 *) 17486 hardcode_direct=yes 17487 hardcode_direct_absolute=yes 17488 export_dynamic_flag_spec='$wl-E' 17489 17490 # hardcode_minus_L: Not really in the search PATH, 17491 # but as the default location of the library. 17492 hardcode_minus_L=yes 17493 ;; 17494 esac 17495 fi 17496 ;; 17497 17498 irix5* | irix6* | nonstopux*) 17499 if test yes = "$GCC"; then 17500 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' 17501 # Try to use the -exported_symbol ld option, if it does not 17502 # work, assume that -exports_file does not work either and 17503 # implicitly export all symbols. 17504 # This should be the same for all languages, so no per-tag cache variable. 17505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17506 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17507 if test ${lt_cv_irix_exported_symbol+y} 17508 then : 17509 printf %s "(cached) " >&6 17510 else case e in #( 17511 e) save_LDFLAGS=$LDFLAGS 17512 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17514 /* end confdefs.h. */ 17515 int foo (void) { return 0; } 17516 _ACEOF 17517 if ac_fn_c_try_link "$LINENO" 17518 then : 17519 lt_cv_irix_exported_symbol=yes 17520 else case e in #( 17521 e) lt_cv_irix_exported_symbol=no ;; 17522 esac 17523 fi 17524 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17525 conftest$ac_exeext conftest.$ac_ext 17526 LDFLAGS=$save_LDFLAGS ;; 17527 esac 17528 fi 17529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17530 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17531 if test yes = "$lt_cv_irix_exported_symbol"; then 17532 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' 17533 fi 17534 else 17535 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' 17536 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' 17537 fi 17538 archive_cmds_need_lc='no' 17539 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17540 hardcode_libdir_separator=: 17541 inherit_rpath=yes 17542 link_all_deplibs=yes 17543 ;; 17544 17545 linux*) 17546 case $cc_basename in 17547 tcc*) 17548 # Fabrice Bellard et al's Tiny C Compiler 17549 ld_shlibs=yes 17550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17551 ;; 17552 esac 17553 ;; 17554 17555 netbsd*) 17556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17558 else 17559 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17560 fi 17561 hardcode_libdir_flag_spec='-R$libdir' 17562 hardcode_direct=yes 17563 hardcode_shlibpath_var=no 17564 ;; 17565 17566 newsos6) 17567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17568 hardcode_direct=yes 17569 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17570 hardcode_libdir_separator=: 17571 hardcode_shlibpath_var=no 17572 ;; 17573 17574 *nto* | *qnx*) 17575 ;; 17576 17577 openbsd* | bitrig*) 17578 if test -f /usr/libexec/ld.so; then 17579 hardcode_direct=yes 17580 hardcode_shlibpath_var=no 17581 hardcode_direct_absolute=yes 17582 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17583 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17584 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17585 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17586 export_dynamic_flag_spec='$wl-E' 17587 else 17588 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17589 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17590 fi 17591 else 17592 ld_shlibs=no 17593 fi 17594 ;; 17595 17596 os2*) 17597 hardcode_libdir_flag_spec='-L$libdir' 17598 hardcode_minus_L=yes 17599 allow_undefined_flag=unsupported 17600 shrext_cmds=.dll 17601 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17602 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17603 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17604 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17605 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17606 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17607 emximp -o $lib $output_objdir/$libname.def' 17608 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17609 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17610 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17611 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17612 prefix_cmds="$SED"~ 17613 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17614 prefix_cmds="$prefix_cmds -e 1d"; 17615 fi~ 17616 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17617 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17618 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17619 emximp -o $lib $output_objdir/$libname.def' 17620 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17621 enable_shared_with_static_runtimes=yes 17622 file_list_spec='@' 17623 ;; 17624 17625 osf3*) 17626 if test yes = "$GCC"; then 17627 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17628 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' 17629 else 17630 allow_undefined_flag=' -expect_unresolved \*' 17631 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' 17632 fi 17633 archive_cmds_need_lc='no' 17634 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17635 hardcode_libdir_separator=: 17636 ;; 17637 17638 osf4* | osf5*) # as osf3* with the addition of -msym flag 17639 if test yes = "$GCC"; then 17640 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17641 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' 17642 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17643 else 17644 allow_undefined_flag=' -expect_unresolved \*' 17645 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' 17646 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~ 17647 $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' 17648 17649 # Both c and cxx compiler support -rpath directly 17650 hardcode_libdir_flag_spec='-rpath $libdir' 17651 fi 17652 archive_cmds_need_lc='no' 17653 hardcode_libdir_separator=: 17654 ;; 17655 17656 solaris*) 17657 no_undefined_flag=' -z defs' 17658 if test yes = "$GCC"; then 17659 wlarc='$wl' 17660 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17661 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17662 $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' 17663 else 17664 case `$CC -V 2>&1` in 17665 *"Compilers 5.0"*) 17666 wlarc='' 17667 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17669 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17670 ;; 17671 *) 17672 wlarc='$wl' 17673 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17675 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17676 ;; 17677 esac 17678 fi 17679 hardcode_libdir_flag_spec='-R$libdir' 17680 hardcode_shlibpath_var=no 17681 case $host_os in 17682 solaris2.[0-5] | solaris2.[0-5].*) ;; 17683 *) 17684 # The compiler driver will combine and reorder linker options, 17685 # but understands '-z linker_flag'. GCC discards it without '$wl', 17686 # but is careful enough not to reorder. 17687 # Supported since Solaris 2.6 (maybe 2.5.1?) 17688 if test yes = "$GCC"; then 17689 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17690 else 17691 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17692 fi 17693 ;; 17694 esac 17695 link_all_deplibs=yes 17696 ;; 17697 17698 sunos4*) 17699 if test sequent = "$host_vendor"; then 17700 # Use $CC to link under sequent, because it throws in some extra .o 17701 # files that make .init and .fini sections work. 17702 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17703 else 17704 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17705 fi 17706 hardcode_libdir_flag_spec='-L$libdir' 17707 hardcode_direct=yes 17708 hardcode_minus_L=yes 17709 hardcode_shlibpath_var=no 17710 ;; 17711 17712 sysv4) 17713 case $host_vendor in 17714 sni) 17715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17716 hardcode_direct=yes # is this really true??? 17717 ;; 17718 siemens) 17719 ## LD is ld it makes a PLAMLIB 17720 ## CC just makes a GrossModule. 17721 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17722 reload_cmds='$CC -r -o $output$reload_objs' 17723 hardcode_direct=no 17724 ;; 17725 motorola) 17726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17727 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17728 ;; 17729 esac 17730 runpath_var='LD_RUN_PATH' 17731 hardcode_shlibpath_var=no 17732 ;; 17733 17734 sysv4.3*) 17735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17736 hardcode_shlibpath_var=no 17737 export_dynamic_flag_spec='-Bexport' 17738 ;; 17739 17740 sysv4*MP*) 17741 if test -d /usr/nec; then 17742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17743 hardcode_shlibpath_var=no 17744 runpath_var=LD_RUN_PATH 17745 hardcode_runpath_var=yes 17746 ld_shlibs=yes 17747 fi 17748 ;; 17749 17750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17751 no_undefined_flag='$wl-z,text' 17752 archive_cmds_need_lc=no 17753 hardcode_shlibpath_var=no 17754 runpath_var='LD_RUN_PATH' 17755 17756 if test yes = "$GCC"; then 17757 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17758 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17759 else 17760 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17761 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17762 fi 17763 ;; 17764 17765 sysv5* | sco3.2v5* | sco5v6*) 17766 # Note: We CANNOT use -z defs as we might desire, because we do not 17767 # link with -lc, and that would cause any symbols used from libc to 17768 # always be unresolved, which means just about no library would 17769 # ever link correctly. If we're not using GNU ld we use -z text 17770 # though, which does catch some bad symbols but isn't as heavy-handed 17771 # as -z defs. 17772 no_undefined_flag='$wl-z,text' 17773 allow_undefined_flag='$wl-z,nodefs' 17774 archive_cmds_need_lc=no 17775 hardcode_shlibpath_var=no 17776 hardcode_libdir_flag_spec='$wl-R,$libdir' 17777 hardcode_libdir_separator=':' 17778 link_all_deplibs=yes 17779 export_dynamic_flag_spec='$wl-Bexport' 17780 runpath_var='LD_RUN_PATH' 17781 17782 if test yes = "$GCC"; then 17783 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17784 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17785 else 17786 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17787 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17788 fi 17789 ;; 17790 17791 uts4*) 17792 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17793 hardcode_libdir_flag_spec='-L$libdir' 17794 hardcode_shlibpath_var=no 17795 ;; 17796 17797 *) 17798 ld_shlibs=no 17799 ;; 17800 esac 17801 17802 if test sni = "$host_vendor"; then 17803 case $host in 17804 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17805 export_dynamic_flag_spec='$wl-Blargedynsym' 17806 ;; 17807 esac 17808 fi 17809 fi 17810 17811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17812 printf "%s\n" "$ld_shlibs" >&6; } 17813 test no = "$ld_shlibs" && can_build_shared=no 17814 17815 with_gnu_ld=$with_gnu_ld 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 # 17832 # Do we need to explicitly link libc? 17833 # 17834 case "x$archive_cmds_need_lc" in 17835 x|xyes) 17836 # Assume -lc should be added 17837 archive_cmds_need_lc=yes 17838 17839 if test yes,yes = "$GCC,$enable_shared"; then 17840 case $archive_cmds in 17841 *'~'*) 17842 # FIXME: we may have to deal with multi-command sequences. 17843 ;; 17844 '$CC '*) 17845 # Test whether the compiler implicitly links with -lc since on some 17846 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17847 # to ld, don't add -lc before -lgcc. 17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17849 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17850 if test ${lt_cv_archive_cmds_need_lc+y} 17851 then : 17852 printf %s "(cached) " >&6 17853 else case e in #( 17854 e) $RM conftest* 17855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17856 17857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17858 (eval $ac_compile) 2>&5 17859 ac_status=$? 17860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17861 test $ac_status = 0; } 2>conftest.err; then 17862 soname=conftest 17863 lib=conftest 17864 libobjs=conftest.$ac_objext 17865 deplibs= 17866 wl=$lt_prog_compiler_wl 17867 pic_flag=$lt_prog_compiler_pic 17868 compiler_flags=-v 17869 linker_flags=-v 17870 verstring= 17871 output_objdir=. 17872 libname=conftest 17873 lt_save_allow_undefined_flag=$allow_undefined_flag 17874 allow_undefined_flag= 17875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17876 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17877 ac_status=$? 17878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17879 test $ac_status = 0; } 17880 then 17881 lt_cv_archive_cmds_need_lc=no 17882 else 17883 lt_cv_archive_cmds_need_lc=yes 17884 fi 17885 allow_undefined_flag=$lt_save_allow_undefined_flag 17886 else 17887 cat conftest.err 1>&5 17888 fi 17889 $RM conftest* 17890 ;; 17891 esac 17892 fi 17893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17894 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17895 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17896 ;; 17897 esac 17898 fi 17899 ;; 17900 esac 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18054 printf %s "checking dynamic linker characteristics... " >&6; } 18055 18056 if test yes = "$GCC"; then 18057 case $host_os in 18058 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18059 *) lt_awk_arg='/^libraries:/' ;; 18060 esac 18061 case $host_os in 18062 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18063 *) lt_sed_strip_eq='s|=/|/|g' ;; 18064 esac 18065 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18066 case $lt_search_path_spec in 18067 *\;*) 18068 # if the path contains ";" then we assume it to be the separator 18069 # otherwise default to the standard path separator (i.e. ":") - it is 18070 # assumed that no part of a normal pathname contains ";" but that should 18071 # okay in the real world where ";" in dirpaths is itself problematic. 18072 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18073 ;; 18074 *) 18075 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18076 ;; 18077 esac 18078 # Ok, now we have the path, separated by spaces, we can step through it 18079 # and add multilib dir if necessary... 18080 lt_tmp_lt_search_path_spec= 18081 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18082 # ...but if some path component already ends with the multilib dir we assume 18083 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18084 case "$lt_multi_os_dir; $lt_search_path_spec " in 18085 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18086 lt_multi_os_dir= 18087 ;; 18088 esac 18089 for lt_sys_path in $lt_search_path_spec; do 18090 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18091 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18092 elif test -n "$lt_multi_os_dir"; then 18093 test -d "$lt_sys_path" && \ 18094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18095 fi 18096 done 18097 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18098 BEGIN {RS = " "; FS = "/|\n";} { 18099 lt_foo = ""; 18100 lt_count = 0; 18101 for (lt_i = NF; lt_i > 0; lt_i--) { 18102 if ($lt_i != "" && $lt_i != ".") { 18103 if ($lt_i == "..") { 18104 lt_count++; 18105 } else { 18106 if (lt_count == 0) { 18107 lt_foo = "/" $lt_i lt_foo; 18108 } else { 18109 lt_count--; 18110 } 18111 } 18112 } 18113 } 18114 if (lt_foo != "") { lt_freq[lt_foo]++; } 18115 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18116 }'` 18117 # AWK program above erroneously prepends '/' to C:/dos/paths 18118 # for these hosts. 18119 case $host_os in 18120 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18121 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18122 esac 18123 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18124 else 18125 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18126 fi 18127 library_names_spec= 18128 libname_spec='lib$name' 18129 soname_spec= 18130 shrext_cmds=.so 18131 postinstall_cmds= 18132 postuninstall_cmds= 18133 finish_cmds= 18134 finish_eval= 18135 shlibpath_var= 18136 shlibpath_overrides_runpath=unknown 18137 version_type=none 18138 dynamic_linker="$host_os ld.so" 18139 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18140 need_lib_prefix=unknown 18141 hardcode_into_libs=no 18142 18143 # when you set need_version to no, make sure it does not cause -set_version 18144 # flags to be left without arguments 18145 need_version=unknown 18146 18147 18148 18149 case $host_os in 18150 aix3*) 18151 version_type=linux # correct to gnu/linux during the next big refactor 18152 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18153 shlibpath_var=LIBPATH 18154 18155 # AIX 3 has no versioning support, so we append a major version to the name. 18156 soname_spec='$libname$release$shared_ext$major' 18157 ;; 18158 18159 aix[4-9]*) 18160 version_type=linux # correct to gnu/linux during the next big refactor 18161 need_lib_prefix=no 18162 need_version=no 18163 hardcode_into_libs=yes 18164 if test ia64 = "$host_cpu"; then 18165 # AIX 5 supports IA64 18166 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18167 shlibpath_var=LD_LIBRARY_PATH 18168 else 18169 # With GCC up to 2.95.x, collect2 would create an import file 18170 # for dependence libraries. The import file would start with 18171 # the line '#! .'. This would cause the generated library to 18172 # depend on '.', always an invalid library. This was fixed in 18173 # development snapshots of GCC prior to 3.0. 18174 case $host_os in 18175 aix4 | aix4.[01] | aix4.[01].*) 18176 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18177 echo ' yes ' 18178 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18179 : 18180 else 18181 can_build_shared=no 18182 fi 18183 ;; 18184 esac 18185 # Using Import Files as archive members, it is possible to support 18186 # filename-based versioning of shared library archives on AIX. While 18187 # this would work for both with and without runtime linking, it will 18188 # prevent static linking of such archives. So we do filename-based 18189 # shared library versioning with .so extension only, which is used 18190 # when both runtime linking and shared linking is enabled. 18191 # Unfortunately, runtime linking may impact performance, so we do 18192 # not want this to be the default eventually. Also, we use the 18193 # versioned .so libs for executables only if there is the -brtl 18194 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18195 # To allow for filename-based versioning support, we need to create 18196 # libNAME.so.V as an archive file, containing: 18197 # *) an Import File, referring to the versioned filename of the 18198 # archive as well as the shared archive member, telling the 18199 # bitwidth (32 or 64) of that shared object, and providing the 18200 # list of exported symbols of that shared object, eventually 18201 # decorated with the 'weak' keyword 18202 # *) the shared object with the F_LOADONLY flag set, to really avoid 18203 # it being seen by the linker. 18204 # At run time we better use the real file rather than another symlink, 18205 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18206 18207 case $with_aix_soname,$aix_use_runtimelinking in 18208 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18209 # soname into executable. Probably we can add versioning support to 18210 # collect2, so additional links can be useful in future. 18211 aix,yes) # traditional libtool 18212 dynamic_linker='AIX unversionable lib.so' 18213 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18214 # instead of lib<name>.a to let people know that these are not 18215 # typical AIX shared libraries. 18216 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18217 ;; 18218 aix,no) # traditional AIX only 18219 dynamic_linker='AIX lib.a(lib.so.V)' 18220 # We preserve .a as extension for shared libraries through AIX4.2 18221 # and later when we are not doing run time linking. 18222 library_names_spec='$libname$release.a $libname.a' 18223 soname_spec='$libname$release$shared_ext$major' 18224 ;; 18225 svr4,*) # full svr4 only 18226 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18227 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18228 # We do not specify a path in Import Files, so LIBPATH fires. 18229 shlibpath_overrides_runpath=yes 18230 ;; 18231 *,yes) # both, prefer svr4 18232 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18233 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18234 # unpreferred sharedlib libNAME.a needs extra handling 18235 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"' 18236 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"' 18237 # We do not specify a path in Import Files, so LIBPATH fires. 18238 shlibpath_overrides_runpath=yes 18239 ;; 18240 *,no) # both, prefer aix 18241 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18242 library_names_spec='$libname$release.a $libname.a' 18243 soname_spec='$libname$release$shared_ext$major' 18244 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18245 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)' 18246 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"' 18247 ;; 18248 esac 18249 shlibpath_var=LIBPATH 18250 fi 18251 ;; 18252 18253 amigaos*) 18254 case $host_cpu in 18255 powerpc) 18256 # Since July 2007 AmigaOS4 officially supports .so libraries. 18257 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18259 ;; 18260 m68k) 18261 library_names_spec='$libname.ixlibrary $libname.a' 18262 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18263 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' 18264 ;; 18265 esac 18266 ;; 18267 18268 beos*) 18269 library_names_spec='$libname$shared_ext' 18270 dynamic_linker="$host_os ld.so" 18271 shlibpath_var=LIBRARY_PATH 18272 ;; 18273 18274 bsdi[45]*) 18275 version_type=linux # correct to gnu/linux during the next big refactor 18276 need_version=no 18277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18278 soname_spec='$libname$release$shared_ext$major' 18279 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18280 shlibpath_var=LD_LIBRARY_PATH 18281 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18282 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18283 # the default ld.so.conf also contains /usr/contrib/lib and 18284 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18285 # libtool to hard-code these into programs 18286 ;; 18287 18288 cygwin* | mingw* | pw32* | cegcc*) 18289 version_type=windows 18290 shrext_cmds=.dll 18291 need_version=no 18292 need_lib_prefix=no 18293 18294 case $GCC,$cc_basename in 18295 yes,*) 18296 # gcc 18297 library_names_spec='$libname.dll.a' 18298 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18299 postinstall_cmds='base_file=`basename \$file`~ 18300 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18301 dldir=$destdir/`dirname \$dlpath`~ 18302 test -d \$dldir || mkdir -p \$dldir~ 18303 $install_prog $dir/$dlname \$dldir/$dlname~ 18304 chmod a+x \$dldir/$dlname~ 18305 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18306 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18307 fi' 18308 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18309 dlpath=$dir/\$dldll~ 18310 $RM \$dlpath' 18311 shlibpath_overrides_runpath=yes 18312 18313 case $host_os in 18314 cygwin*) 18315 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18316 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18317 18318 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18319 ;; 18320 mingw* | cegcc*) 18321 # MinGW DLLs use traditional 'lib' prefix 18322 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18323 ;; 18324 pw32*) 18325 # pw32 DLLs use 'pw' prefix rather than 'lib' 18326 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18327 ;; 18328 esac 18329 dynamic_linker='Win32 ld.exe' 18330 ;; 18331 18332 *,cl* | *,icl*) 18333 # Native MSVC or ICC 18334 libname_spec='$name' 18335 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18336 library_names_spec='$libname.dll.lib' 18337 18338 case $build_os in 18339 mingw*) 18340 sys_lib_search_path_spec= 18341 lt_save_ifs=$IFS 18342 IFS=';' 18343 for lt_path in $LIB 18344 do 18345 IFS=$lt_save_ifs 18346 # Let DOS variable expansion print the short 8.3 style file name. 18347 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18348 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18349 done 18350 IFS=$lt_save_ifs 18351 # Convert to MSYS style. 18352 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18353 ;; 18354 cygwin*) 18355 # Convert to unix form, then to dos form, then back to unix form 18356 # but this time dos style (no spaces!) so that the unix form looks 18357 # like /cygdrive/c/PROGRA~1:/cygdr... 18358 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18359 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18360 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18361 ;; 18362 *) 18363 sys_lib_search_path_spec=$LIB 18364 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18365 # It is most probably a Windows format PATH. 18366 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18367 else 18368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18369 fi 18370 # FIXME: find the short name or the path components, as spaces are 18371 # common. (e.g. "Program Files" -> "PROGRA~1") 18372 ;; 18373 esac 18374 18375 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18376 postinstall_cmds='base_file=`basename \$file`~ 18377 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18378 dldir=$destdir/`dirname \$dlpath`~ 18379 test -d \$dldir || mkdir -p \$dldir~ 18380 $install_prog $dir/$dlname \$dldir/$dlname' 18381 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18382 dlpath=$dir/\$dldll~ 18383 $RM \$dlpath' 18384 shlibpath_overrides_runpath=yes 18385 dynamic_linker='Win32 link.exe' 18386 ;; 18387 18388 *) 18389 # Assume MSVC and ICC wrapper 18390 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18391 dynamic_linker='Win32 ld.exe' 18392 ;; 18393 esac 18394 # FIXME: first we should search . and the directory the executable is in 18395 shlibpath_var=PATH 18396 ;; 18397 18398 darwin* | rhapsody*) 18399 dynamic_linker="$host_os dyld" 18400 version_type=darwin 18401 need_lib_prefix=no 18402 need_version=no 18403 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18404 soname_spec='$libname$release$major$shared_ext' 18405 shlibpath_overrides_runpath=yes 18406 shlibpath_var=DYLD_LIBRARY_PATH 18407 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18408 18409 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18410 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18411 ;; 18412 18413 dgux*) 18414 version_type=linux # correct to gnu/linux during the next big refactor 18415 need_lib_prefix=no 18416 need_version=no 18417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18418 soname_spec='$libname$release$shared_ext$major' 18419 shlibpath_var=LD_LIBRARY_PATH 18420 ;; 18421 18422 freebsd* | dragonfly* | midnightbsd*) 18423 # DragonFly does not have aout. When/if they implement a new 18424 # versioning mechanism, adjust this. 18425 if test -x /usr/bin/objformat; then 18426 objformat=`/usr/bin/objformat` 18427 else 18428 case $host_os in 18429 freebsd[23].*) objformat=aout ;; 18430 *) objformat=elf ;; 18431 esac 18432 fi 18433 version_type=freebsd-$objformat 18434 case $version_type in 18435 freebsd-elf*) 18436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18437 soname_spec='$libname$release$shared_ext$major' 18438 need_version=no 18439 need_lib_prefix=no 18440 ;; 18441 freebsd-*) 18442 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18443 need_version=yes 18444 ;; 18445 esac 18446 shlibpath_var=LD_LIBRARY_PATH 18447 case $host_os in 18448 freebsd2.*) 18449 shlibpath_overrides_runpath=yes 18450 ;; 18451 freebsd3.[01]* | freebsdelf3.[01]*) 18452 shlibpath_overrides_runpath=yes 18453 hardcode_into_libs=yes 18454 ;; 18455 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18456 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18457 shlibpath_overrides_runpath=no 18458 hardcode_into_libs=yes 18459 ;; 18460 *) # from 4.6 on, and DragonFly 18461 shlibpath_overrides_runpath=yes 18462 hardcode_into_libs=yes 18463 ;; 18464 esac 18465 ;; 18466 18467 haiku*) 18468 version_type=linux # correct to gnu/linux during the next big refactor 18469 need_lib_prefix=no 18470 need_version=no 18471 dynamic_linker="$host_os runtime_loader" 18472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18473 soname_spec='$libname$release$shared_ext$major' 18474 shlibpath_var=LIBRARY_PATH 18475 shlibpath_overrides_runpath=no 18476 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18477 hardcode_into_libs=yes 18478 ;; 18479 18480 hpux9* | hpux10* | hpux11*) 18481 # Give a soname corresponding to the major version so that dld.sl refuses to 18482 # link against other versions. 18483 version_type=sunos 18484 need_lib_prefix=no 18485 need_version=no 18486 case $host_cpu in 18487 ia64*) 18488 shrext_cmds='.so' 18489 hardcode_into_libs=yes 18490 dynamic_linker="$host_os dld.so" 18491 shlibpath_var=LD_LIBRARY_PATH 18492 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18494 soname_spec='$libname$release$shared_ext$major' 18495 if test 32 = "$HPUX_IA64_MODE"; then 18496 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18497 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18498 else 18499 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18500 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18501 fi 18502 ;; 18503 hppa*64*) 18504 shrext_cmds='.sl' 18505 hardcode_into_libs=yes 18506 dynamic_linker="$host_os dld.sl" 18507 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18508 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18509 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18510 soname_spec='$libname$release$shared_ext$major' 18511 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18512 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18513 ;; 18514 *) 18515 shrext_cmds='.sl' 18516 dynamic_linker="$host_os dld.sl" 18517 shlibpath_var=SHLIB_PATH 18518 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18520 soname_spec='$libname$release$shared_ext$major' 18521 ;; 18522 esac 18523 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18524 postinstall_cmds='chmod 555 $lib' 18525 # or fails outright, so override atomically: 18526 install_override_mode=555 18527 ;; 18528 18529 interix[3-9]*) 18530 version_type=linux # correct to gnu/linux during the next big refactor 18531 need_lib_prefix=no 18532 need_version=no 18533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18534 soname_spec='$libname$release$shared_ext$major' 18535 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18536 shlibpath_var=LD_LIBRARY_PATH 18537 shlibpath_overrides_runpath=no 18538 hardcode_into_libs=yes 18539 ;; 18540 18541 irix5* | irix6* | nonstopux*) 18542 case $host_os in 18543 nonstopux*) version_type=nonstopux ;; 18544 *) 18545 if test yes = "$lt_cv_prog_gnu_ld"; then 18546 version_type=linux # correct to gnu/linux during the next big refactor 18547 else 18548 version_type=irix 18549 fi ;; 18550 esac 18551 need_lib_prefix=no 18552 need_version=no 18553 soname_spec='$libname$release$shared_ext$major' 18554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18555 case $host_os in 18556 irix5* | nonstopux*) 18557 libsuff= shlibsuff= 18558 ;; 18559 *) 18560 case $LD in # libtool.m4 will add one of these switches to LD 18561 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18562 libsuff= shlibsuff= libmagic=32-bit;; 18563 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18564 libsuff=32 shlibsuff=N32 libmagic=N32;; 18565 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18566 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18567 *) libsuff= shlibsuff= libmagic=never-match;; 18568 esac 18569 ;; 18570 esac 18571 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18572 shlibpath_overrides_runpath=no 18573 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18574 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18575 hardcode_into_libs=yes 18576 ;; 18577 18578 # No shared lib support for Linux oldld, aout, or coff. 18579 linux*oldld* | linux*aout* | linux*coff*) 18580 dynamic_linker=no 18581 ;; 18582 18583 linux*android*) 18584 version_type=none # Android doesn't support versioned libraries. 18585 need_lib_prefix=no 18586 need_version=no 18587 library_names_spec='$libname$release$shared_ext' 18588 soname_spec='$libname$release$shared_ext' 18589 finish_cmds= 18590 shlibpath_var=LD_LIBRARY_PATH 18591 shlibpath_overrides_runpath=yes 18592 18593 # This implies no fast_install, which is unacceptable. 18594 # Some rework will be needed to allow for fast_install 18595 # before this can be enabled. 18596 hardcode_into_libs=yes 18597 18598 dynamic_linker='Android linker' 18599 # Don't embed -rpath directories since the linker doesn't support them. 18600 hardcode_libdir_flag_spec='-L$libdir' 18601 ;; 18602 18603 # This must be glibc/ELF. 18604 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18605 version_type=linux # correct to gnu/linux during the next big refactor 18606 need_lib_prefix=no 18607 need_version=no 18608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18609 soname_spec='$libname$release$shared_ext$major' 18610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18611 shlibpath_var=LD_LIBRARY_PATH 18612 shlibpath_overrides_runpath=no 18613 18614 # Some binutils ld are patched to set DT_RUNPATH 18615 if test ${lt_cv_shlibpath_overrides_runpath+y} 18616 then : 18617 printf %s "(cached) " >&6 18618 else case e in #( 18619 e) lt_cv_shlibpath_overrides_runpath=no 18620 save_LDFLAGS=$LDFLAGS 18621 save_libdir=$libdir 18622 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18623 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18625 /* end confdefs.h. */ 18626 18627 int 18628 main (void) 18629 { 18630 18631 ; 18632 return 0; 18633 } 18634 _ACEOF 18635 if ac_fn_c_try_link "$LINENO" 18636 then : 18637 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18638 then : 18639 lt_cv_shlibpath_overrides_runpath=yes 18640 fi 18641 fi 18642 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18643 conftest$ac_exeext conftest.$ac_ext 18644 LDFLAGS=$save_LDFLAGS 18645 libdir=$save_libdir 18646 ;; 18647 esac 18648 fi 18649 18650 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18651 18652 # This implies no fast_install, which is unacceptable. 18653 # Some rework will be needed to allow for fast_install 18654 # before this can be enabled. 18655 hardcode_into_libs=yes 18656 18657 # Ideally, we could use ldconfig to report *all* directores which are 18658 # searched for libraries, however this is still not possible. Aside from not 18659 # being certain /sbin/ldconfig is available, command 18660 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18661 # even though it is searched at run-time. Try to do the best guess by 18662 # appending ld.so.conf contents (and includes) to the search path. 18663 if test -f /etc/ld.so.conf; then 18664 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' ' '` 18665 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18666 fi 18667 18668 # We used to test for /lib/ld.so.1 and disable shared libraries on 18669 # powerpc, because MkLinux only supported shared libraries with the 18670 # GNU dynamic linker. Since this was broken with cross compilers, 18671 # most powerpc-linux boxes support dynamic linking these days and 18672 # people can always --disable-shared, the test was removed, and we 18673 # assume the GNU/Linux dynamic linker is in use. 18674 dynamic_linker='GNU/Linux ld.so' 18675 ;; 18676 18677 netbsd*) 18678 version_type=sunos 18679 need_lib_prefix=no 18680 need_version=no 18681 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18682 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18684 dynamic_linker='NetBSD (a.out) ld.so' 18685 else 18686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18687 soname_spec='$libname$release$shared_ext$major' 18688 dynamic_linker='NetBSD ld.elf_so' 18689 fi 18690 shlibpath_var=LD_LIBRARY_PATH 18691 shlibpath_overrides_runpath=yes 18692 hardcode_into_libs=yes 18693 ;; 18694 18695 newsos6) 18696 version_type=linux # correct to gnu/linux during the next big refactor 18697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18698 shlibpath_var=LD_LIBRARY_PATH 18699 shlibpath_overrides_runpath=yes 18700 ;; 18701 18702 *nto* | *qnx*) 18703 version_type=qnx 18704 need_lib_prefix=no 18705 need_version=no 18706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18707 soname_spec='$libname$release$shared_ext$major' 18708 shlibpath_var=LD_LIBRARY_PATH 18709 shlibpath_overrides_runpath=no 18710 hardcode_into_libs=yes 18711 dynamic_linker='ldqnx.so' 18712 ;; 18713 18714 openbsd* | bitrig*) 18715 version_type=sunos 18716 sys_lib_dlsearch_path_spec=/usr/lib 18717 need_lib_prefix=no 18718 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18719 need_version=no 18720 else 18721 need_version=yes 18722 fi 18723 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18725 shlibpath_var=LD_LIBRARY_PATH 18726 shlibpath_overrides_runpath=yes 18727 ;; 18728 18729 os2*) 18730 libname_spec='$name' 18731 version_type=windows 18732 shrext_cmds=.dll 18733 need_version=no 18734 need_lib_prefix=no 18735 # OS/2 can only load a DLL with a base name of 8 characters or less. 18736 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18737 v=$($ECHO $release$versuffix | tr -d .-); 18738 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18739 $ECHO $n$v`$shared_ext' 18740 library_names_spec='${libname}_dll.$libext' 18741 dynamic_linker='OS/2 ld.exe' 18742 shlibpath_var=BEGINLIBPATH 18743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18745 postinstall_cmds='base_file=`basename \$file`~ 18746 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18747 dldir=$destdir/`dirname \$dlpath`~ 18748 test -d \$dldir || mkdir -p \$dldir~ 18749 $install_prog $dir/$dlname \$dldir/$dlname~ 18750 chmod a+x \$dldir/$dlname~ 18751 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18752 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18753 fi' 18754 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18755 dlpath=$dir/\$dldll~ 18756 $RM \$dlpath' 18757 ;; 18758 18759 osf3* | osf4* | osf5*) 18760 version_type=osf 18761 need_lib_prefix=no 18762 need_version=no 18763 soname_spec='$libname$release$shared_ext$major' 18764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18765 shlibpath_var=LD_LIBRARY_PATH 18766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18768 ;; 18769 18770 rdos*) 18771 dynamic_linker=no 18772 ;; 18773 18774 solaris*) 18775 version_type=linux # correct to gnu/linux during the next big refactor 18776 need_lib_prefix=no 18777 need_version=no 18778 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18779 soname_spec='$libname$release$shared_ext$major' 18780 shlibpath_var=LD_LIBRARY_PATH 18781 shlibpath_overrides_runpath=yes 18782 hardcode_into_libs=yes 18783 # ldd complains unless libraries are executable 18784 postinstall_cmds='chmod +x $lib' 18785 ;; 18786 18787 sunos4*) 18788 version_type=sunos 18789 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18791 shlibpath_var=LD_LIBRARY_PATH 18792 shlibpath_overrides_runpath=yes 18793 if test yes = "$with_gnu_ld"; then 18794 need_lib_prefix=no 18795 fi 18796 need_version=yes 18797 ;; 18798 18799 sysv4 | sysv4.3*) 18800 version_type=linux # correct to gnu/linux during the next big refactor 18801 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18802 soname_spec='$libname$release$shared_ext$major' 18803 shlibpath_var=LD_LIBRARY_PATH 18804 case $host_vendor in 18805 sni) 18806 shlibpath_overrides_runpath=no 18807 need_lib_prefix=no 18808 runpath_var=LD_RUN_PATH 18809 ;; 18810 siemens) 18811 need_lib_prefix=no 18812 ;; 18813 motorola) 18814 need_lib_prefix=no 18815 need_version=no 18816 shlibpath_overrides_runpath=no 18817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18818 ;; 18819 esac 18820 ;; 18821 18822 sysv4*MP*) 18823 if test -d /usr/nec; then 18824 version_type=linux # correct to gnu/linux during the next big refactor 18825 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18826 soname_spec='$libname$shared_ext.$major' 18827 shlibpath_var=LD_LIBRARY_PATH 18828 fi 18829 ;; 18830 18831 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18832 version_type=sco 18833 need_lib_prefix=no 18834 need_version=no 18835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18836 soname_spec='$libname$release$shared_ext$major' 18837 shlibpath_var=LD_LIBRARY_PATH 18838 shlibpath_overrides_runpath=yes 18839 hardcode_into_libs=yes 18840 if test yes = "$with_gnu_ld"; then 18841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18842 else 18843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18844 case $host_os in 18845 sco3.2v5*) 18846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18847 ;; 18848 esac 18849 fi 18850 sys_lib_dlsearch_path_spec='/usr/lib' 18851 ;; 18852 18853 tpf*) 18854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18855 version_type=linux # correct to gnu/linux during the next big refactor 18856 need_lib_prefix=no 18857 need_version=no 18858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18859 shlibpath_var=LD_LIBRARY_PATH 18860 shlibpath_overrides_runpath=no 18861 hardcode_into_libs=yes 18862 ;; 18863 18864 uts4*) 18865 version_type=linux # correct to gnu/linux during the next big refactor 18866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18867 soname_spec='$libname$release$shared_ext$major' 18868 shlibpath_var=LD_LIBRARY_PATH 18869 ;; 18870 18871 *) 18872 dynamic_linker=no 18873 ;; 18874 esac 18875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18876 printf "%s\n" "$dynamic_linker" >&6; } 18877 test no = "$dynamic_linker" && can_build_shared=no 18878 18879 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18880 if test yes = "$GCC"; then 18881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18882 fi 18883 18884 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18885 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18886 fi 18887 18888 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18889 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18890 fi 18891 18892 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18893 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18894 18895 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18896 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18897 18898 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18899 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18998 printf %s "checking how to hardcode library paths into programs... " >&6; } 18999 hardcode_action= 19000 if test -n "$hardcode_libdir_flag_spec" || 19001 test -n "$runpath_var" || 19002 test yes = "$hardcode_automatic"; then 19003 19004 # We can hardcode non-existent directories. 19005 if test no != "$hardcode_direct" && 19006 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19007 # have to relink, otherwise we might link with an installed library 19008 # when we should be linking with a yet-to-be-installed one 19009 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19010 test no != "$hardcode_minus_L"; then 19011 # Linking always hardcodes the temporary library directory. 19012 hardcode_action=relink 19013 else 19014 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19015 hardcode_action=immediate 19016 fi 19017 else 19018 # We cannot hardcode anything, or else we can only hardcode existing 19019 # directories. 19020 hardcode_action=unsupported 19021 fi 19022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19023 printf "%s\n" "$hardcode_action" >&6; } 19024 19025 if test relink = "$hardcode_action" || 19026 test yes = "$inherit_rpath"; then 19027 # Fast installation is not supported 19028 enable_fast_install=no 19029 elif test yes = "$shlibpath_overrides_runpath" || 19030 test no = "$enable_shared"; then 19031 # Fast installation is not necessary 19032 enable_fast_install=needless 19033 fi 19034 19035 19036 19037 19038 19039 19040 if test yes != "$enable_dlopen"; then 19041 enable_dlopen=unknown 19042 enable_dlopen_self=unknown 19043 enable_dlopen_self_static=unknown 19044 else 19045 lt_cv_dlopen=no 19046 lt_cv_dlopen_libs= 19047 19048 case $host_os in 19049 beos*) 19050 lt_cv_dlopen=load_add_on 19051 lt_cv_dlopen_libs= 19052 lt_cv_dlopen_self=yes 19053 ;; 19054 19055 mingw* | pw32* | cegcc*) 19056 lt_cv_dlopen=LoadLibrary 19057 lt_cv_dlopen_libs= 19058 ;; 19059 19060 cygwin*) 19061 lt_cv_dlopen=dlopen 19062 lt_cv_dlopen_libs= 19063 ;; 19064 19065 darwin*) 19066 # if libdl is installed we need to link against it 19067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19068 printf %s "checking for dlopen in -ldl... " >&6; } 19069 if test ${ac_cv_lib_dl_dlopen+y} 19070 then : 19071 printf %s "(cached) " >&6 19072 else case e in #( 19073 e) ac_check_lib_save_LIBS=$LIBS 19074 LIBS="-ldl $LIBS" 19075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19076 /* end confdefs.h. */ 19077 19078 /* Override any GCC internal prototype to avoid an error. 19079 Use char because int might match the return type of a GCC 19080 builtin and then its argument prototype would still apply. 19081 The 'extern "C"' is for builds by C++ compilers; 19082 although this is not generally supported in C code supporting it here 19083 has little cost and some practical benefit (sr 110532). */ 19084 #ifdef __cplusplus 19085 extern "C" 19086 #endif 19087 char dlopen (void); 19088 int 19089 main (void) 19090 { 19091 return dlopen (); 19092 ; 19093 return 0; 19094 } 19095 _ACEOF 19096 if ac_fn_c_try_link "$LINENO" 19097 then : 19098 ac_cv_lib_dl_dlopen=yes 19099 else case e in #( 19100 e) ac_cv_lib_dl_dlopen=no ;; 19101 esac 19102 fi 19103 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19104 conftest$ac_exeext conftest.$ac_ext 19105 LIBS=$ac_check_lib_save_LIBS ;; 19106 esac 19107 fi 19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19109 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19110 if test "x$ac_cv_lib_dl_dlopen" = xyes 19111 then : 19112 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19113 else case e in #( 19114 e) 19115 lt_cv_dlopen=dyld 19116 lt_cv_dlopen_libs= 19117 lt_cv_dlopen_self=yes 19118 ;; 19119 esac 19120 fi 19121 19122 ;; 19123 19124 tpf*) 19125 # Don't try to run any link tests for TPF. We know it's impossible 19126 # because TPF is a cross-compiler, and we know how we open DSOs. 19127 lt_cv_dlopen=dlopen 19128 lt_cv_dlopen_libs= 19129 lt_cv_dlopen_self=no 19130 ;; 19131 19132 *) 19133 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19134 if test "x$ac_cv_func_shl_load" = xyes 19135 then : 19136 lt_cv_dlopen=shl_load 19137 else case e in #( 19138 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19139 printf %s "checking for shl_load in -ldld... " >&6; } 19140 if test ${ac_cv_lib_dld_shl_load+y} 19141 then : 19142 printf %s "(cached) " >&6 19143 else case e in #( 19144 e) ac_check_lib_save_LIBS=$LIBS 19145 LIBS="-ldld $LIBS" 19146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19147 /* end confdefs.h. */ 19148 19149 /* Override any GCC internal prototype to avoid an error. 19150 Use char because int might match the return type of a GCC 19151 builtin and then its argument prototype would still apply. 19152 The 'extern "C"' is for builds by C++ compilers; 19153 although this is not generally supported in C code supporting it here 19154 has little cost and some practical benefit (sr 110532). */ 19155 #ifdef __cplusplus 19156 extern "C" 19157 #endif 19158 char shl_load (void); 19159 int 19160 main (void) 19161 { 19162 return shl_load (); 19163 ; 19164 return 0; 19165 } 19166 _ACEOF 19167 if ac_fn_c_try_link "$LINENO" 19168 then : 19169 ac_cv_lib_dld_shl_load=yes 19170 else case e in #( 19171 e) ac_cv_lib_dld_shl_load=no ;; 19172 esac 19173 fi 19174 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19175 conftest$ac_exeext conftest.$ac_ext 19176 LIBS=$ac_check_lib_save_LIBS ;; 19177 esac 19178 fi 19179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19180 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 19181 if test "x$ac_cv_lib_dld_shl_load" = xyes 19182 then : 19183 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19184 else case e in #( 19185 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19186 if test "x$ac_cv_func_dlopen" = xyes 19187 then : 19188 lt_cv_dlopen=dlopen 19189 else case e in #( 19190 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19191 printf %s "checking for dlopen in -ldl... " >&6; } 19192 if test ${ac_cv_lib_dl_dlopen+y} 19193 then : 19194 printf %s "(cached) " >&6 19195 else case e in #( 19196 e) ac_check_lib_save_LIBS=$LIBS 19197 LIBS="-ldl $LIBS" 19198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19199 /* end confdefs.h. */ 19200 19201 /* Override any GCC internal prototype to avoid an error. 19202 Use char because int might match the return type of a GCC 19203 builtin and then its argument prototype would still apply. 19204 The 'extern "C"' is for builds by C++ compilers; 19205 although this is not generally supported in C code supporting it here 19206 has little cost and some practical benefit (sr 110532). */ 19207 #ifdef __cplusplus 19208 extern "C" 19209 #endif 19210 char dlopen (void); 19211 int 19212 main (void) 19213 { 19214 return dlopen (); 19215 ; 19216 return 0; 19217 } 19218 _ACEOF 19219 if ac_fn_c_try_link "$LINENO" 19220 then : 19221 ac_cv_lib_dl_dlopen=yes 19222 else case e in #( 19223 e) ac_cv_lib_dl_dlopen=no ;; 19224 esac 19225 fi 19226 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19227 conftest$ac_exeext conftest.$ac_ext 19228 LIBS=$ac_check_lib_save_LIBS ;; 19229 esac 19230 fi 19231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19232 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19233 if test "x$ac_cv_lib_dl_dlopen" = xyes 19234 then : 19235 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19236 else case e in #( 19237 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19238 printf %s "checking for dlopen in -lsvld... " >&6; } 19239 if test ${ac_cv_lib_svld_dlopen+y} 19240 then : 19241 printf %s "(cached) " >&6 19242 else case e in #( 19243 e) ac_check_lib_save_LIBS=$LIBS 19244 LIBS="-lsvld $LIBS" 19245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19246 /* end confdefs.h. */ 19247 19248 /* Override any GCC internal prototype to avoid an error. 19249 Use char because int might match the return type of a GCC 19250 builtin and then its argument prototype would still apply. 19251 The 'extern "C"' is for builds by C++ compilers; 19252 although this is not generally supported in C code supporting it here 19253 has little cost and some practical benefit (sr 110532). */ 19254 #ifdef __cplusplus 19255 extern "C" 19256 #endif 19257 char dlopen (void); 19258 int 19259 main (void) 19260 { 19261 return dlopen (); 19262 ; 19263 return 0; 19264 } 19265 _ACEOF 19266 if ac_fn_c_try_link "$LINENO" 19267 then : 19268 ac_cv_lib_svld_dlopen=yes 19269 else case e in #( 19270 e) ac_cv_lib_svld_dlopen=no ;; 19271 esac 19272 fi 19273 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19274 conftest$ac_exeext conftest.$ac_ext 19275 LIBS=$ac_check_lib_save_LIBS ;; 19276 esac 19277 fi 19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19279 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 19280 if test "x$ac_cv_lib_svld_dlopen" = xyes 19281 then : 19282 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19283 else case e in #( 19284 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19285 printf %s "checking for dld_link in -ldld... " >&6; } 19286 if test ${ac_cv_lib_dld_dld_link+y} 19287 then : 19288 printf %s "(cached) " >&6 19289 else case e in #( 19290 e) ac_check_lib_save_LIBS=$LIBS 19291 LIBS="-ldld $LIBS" 19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19293 /* end confdefs.h. */ 19294 19295 /* Override any GCC internal prototype to avoid an error. 19296 Use char because int might match the return type of a GCC 19297 builtin and then its argument prototype would still apply. 19298 The 'extern "C"' is for builds by C++ compilers; 19299 although this is not generally supported in C code supporting it here 19300 has little cost and some practical benefit (sr 110532). */ 19301 #ifdef __cplusplus 19302 extern "C" 19303 #endif 19304 char dld_link (void); 19305 int 19306 main (void) 19307 { 19308 return dld_link (); 19309 ; 19310 return 0; 19311 } 19312 _ACEOF 19313 if ac_fn_c_try_link "$LINENO" 19314 then : 19315 ac_cv_lib_dld_dld_link=yes 19316 else case e in #( 19317 e) ac_cv_lib_dld_dld_link=no ;; 19318 esac 19319 fi 19320 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19321 conftest$ac_exeext conftest.$ac_ext 19322 LIBS=$ac_check_lib_save_LIBS ;; 19323 esac 19324 fi 19325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19326 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 19327 if test "x$ac_cv_lib_dld_dld_link" = xyes 19328 then : 19329 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19330 fi 19331 19332 ;; 19333 esac 19334 fi 19335 19336 ;; 19337 esac 19338 fi 19339 19340 ;; 19341 esac 19342 fi 19343 19344 ;; 19345 esac 19346 fi 19347 19348 ;; 19349 esac 19350 fi 19351 19352 ;; 19353 esac 19354 19355 if test no = "$lt_cv_dlopen"; then 19356 enable_dlopen=no 19357 else 19358 enable_dlopen=yes 19359 fi 19360 19361 case $lt_cv_dlopen in 19362 dlopen) 19363 save_CPPFLAGS=$CPPFLAGS 19364 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19365 19366 save_LDFLAGS=$LDFLAGS 19367 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19368 19369 save_LIBS=$LIBS 19370 LIBS="$lt_cv_dlopen_libs $LIBS" 19371 19372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19373 printf %s "checking whether a program can dlopen itself... " >&6; } 19374 if test ${lt_cv_dlopen_self+y} 19375 then : 19376 printf %s "(cached) " >&6 19377 else case e in #( 19378 e) if test yes = "$cross_compiling"; then : 19379 lt_cv_dlopen_self=cross 19380 else 19381 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19382 lt_status=$lt_dlunknown 19383 cat > conftest.$ac_ext <<_LT_EOF 19384 #line $LINENO "configure" 19385 #include "confdefs.h" 19386 19387 #if HAVE_DLFCN_H 19388 #include <dlfcn.h> 19389 #endif 19390 19391 #include <stdio.h> 19392 19393 #ifdef RTLD_GLOBAL 19394 # define LT_DLGLOBAL RTLD_GLOBAL 19395 #else 19396 # ifdef DL_GLOBAL 19397 # define LT_DLGLOBAL DL_GLOBAL 19398 # else 19399 # define LT_DLGLOBAL 0 19400 # endif 19401 #endif 19402 19403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19404 find out it does not work in some platform. */ 19405 #ifndef LT_DLLAZY_OR_NOW 19406 # ifdef RTLD_LAZY 19407 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19408 # else 19409 # ifdef DL_LAZY 19410 # define LT_DLLAZY_OR_NOW DL_LAZY 19411 # else 19412 # ifdef RTLD_NOW 19413 # define LT_DLLAZY_OR_NOW RTLD_NOW 19414 # else 19415 # ifdef DL_NOW 19416 # define LT_DLLAZY_OR_NOW DL_NOW 19417 # else 19418 # define LT_DLLAZY_OR_NOW 0 19419 # endif 19420 # endif 19421 # endif 19422 # endif 19423 #endif 19424 19425 /* When -fvisibility=hidden is used, assume the code has been annotated 19426 correspondingly for the symbols needed. */ 19427 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19428 int fnord () __attribute__((visibility("default"))); 19429 #endif 19430 19431 int fnord () { return 42; } 19432 int main () 19433 { 19434 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19435 int status = $lt_dlunknown; 19436 19437 if (self) 19438 { 19439 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19440 else 19441 { 19442 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19443 else puts (dlerror ()); 19444 } 19445 /* dlclose (self); */ 19446 } 19447 else 19448 puts (dlerror ()); 19449 19450 return status; 19451 } 19452 _LT_EOF 19453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19454 (eval $ac_link) 2>&5 19455 ac_status=$? 19456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19457 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19458 (./conftest; exit; ) >&5 2>/dev/null 19459 lt_status=$? 19460 case x$lt_status in 19461 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19462 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19463 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19464 esac 19465 else : 19466 # compilation failed 19467 lt_cv_dlopen_self=no 19468 fi 19469 fi 19470 rm -fr conftest* 19471 19472 ;; 19473 esac 19474 fi 19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19476 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19477 19478 if test yes = "$lt_cv_dlopen_self"; then 19479 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19481 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19482 if test ${lt_cv_dlopen_self_static+y} 19483 then : 19484 printf %s "(cached) " >&6 19485 else case e in #( 19486 e) if test yes = "$cross_compiling"; then : 19487 lt_cv_dlopen_self_static=cross 19488 else 19489 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19490 lt_status=$lt_dlunknown 19491 cat > conftest.$ac_ext <<_LT_EOF 19492 #line $LINENO "configure" 19493 #include "confdefs.h" 19494 19495 #if HAVE_DLFCN_H 19496 #include <dlfcn.h> 19497 #endif 19498 19499 #include <stdio.h> 19500 19501 #ifdef RTLD_GLOBAL 19502 # define LT_DLGLOBAL RTLD_GLOBAL 19503 #else 19504 # ifdef DL_GLOBAL 19505 # define LT_DLGLOBAL DL_GLOBAL 19506 # else 19507 # define LT_DLGLOBAL 0 19508 # endif 19509 #endif 19510 19511 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19512 find out it does not work in some platform. */ 19513 #ifndef LT_DLLAZY_OR_NOW 19514 # ifdef RTLD_LAZY 19515 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19516 # else 19517 # ifdef DL_LAZY 19518 # define LT_DLLAZY_OR_NOW DL_LAZY 19519 # else 19520 # ifdef RTLD_NOW 19521 # define LT_DLLAZY_OR_NOW RTLD_NOW 19522 # else 19523 # ifdef DL_NOW 19524 # define LT_DLLAZY_OR_NOW DL_NOW 19525 # else 19526 # define LT_DLLAZY_OR_NOW 0 19527 # endif 19528 # endif 19529 # endif 19530 # endif 19531 #endif 19532 19533 /* When -fvisibility=hidden is used, assume the code has been annotated 19534 correspondingly for the symbols needed. */ 19535 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19536 int fnord () __attribute__((visibility("default"))); 19537 #endif 19538 19539 int fnord () { return 42; } 19540 int main () 19541 { 19542 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19543 int status = $lt_dlunknown; 19544 19545 if (self) 19546 { 19547 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19548 else 19549 { 19550 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19551 else puts (dlerror ()); 19552 } 19553 /* dlclose (self); */ 19554 } 19555 else 19556 puts (dlerror ()); 19557 19558 return status; 19559 } 19560 _LT_EOF 19561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19562 (eval $ac_link) 2>&5 19563 ac_status=$? 19564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19565 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19566 (./conftest; exit; ) >&5 2>/dev/null 19567 lt_status=$? 19568 case x$lt_status in 19569 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19570 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19571 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19572 esac 19573 else : 19574 # compilation failed 19575 lt_cv_dlopen_self_static=no 19576 fi 19577 fi 19578 rm -fr conftest* 19579 19580 ;; 19581 esac 19582 fi 19583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19584 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19585 fi 19586 19587 CPPFLAGS=$save_CPPFLAGS 19588 LDFLAGS=$save_LDFLAGS 19589 LIBS=$save_LIBS 19590 ;; 19591 esac 19592 19593 case $lt_cv_dlopen_self in 19594 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19595 *) enable_dlopen_self=unknown ;; 19596 esac 19597 19598 case $lt_cv_dlopen_self_static in 19599 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19600 *) enable_dlopen_self_static=unknown ;; 19601 esac 19602 fi 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 striplib= 19621 old_striplib= 19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19623 printf %s "checking whether stripping libraries is possible... " >&6; } 19624 if test -z "$STRIP"; then 19625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19626 printf "%s\n" "no" >&6; } 19627 else 19628 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19629 old_striplib="$STRIP --strip-debug" 19630 striplib="$STRIP --strip-unneeded" 19631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19632 printf "%s\n" "yes" >&6; } 19633 else 19634 case $host_os in 19635 darwin*) 19636 # FIXME - insert some real tests, host_os isn't really good enough 19637 striplib="$STRIP -x" 19638 old_striplib="$STRIP -S" 19639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19640 printf "%s\n" "yes" >&6; } 19641 ;; 19642 freebsd*) 19643 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19644 old_striplib="$STRIP --strip-debug" 19645 striplib="$STRIP --strip-unneeded" 19646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19647 printf "%s\n" "yes" >&6; } 19648 else 19649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19650 printf "%s\n" "no" >&6; } 19651 fi 19652 ;; 19653 *) 19654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19655 printf "%s\n" "no" >&6; } 19656 ;; 19657 esac 19658 fi 19659 fi 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 # Report what library types will actually be built 19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19674 printf %s "checking if libtool supports shared libraries... " >&6; } 19675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19676 printf "%s\n" "$can_build_shared" >&6; } 19677 19678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19679 printf %s "checking whether to build shared libraries... " >&6; } 19680 test no = "$can_build_shared" && enable_shared=no 19681 19682 # On AIX, shared libraries and static libraries use the same namespace, and 19683 # are all built from PIC. 19684 case $host_os in 19685 aix3*) 19686 test yes = "$enable_shared" && enable_static=no 19687 if test -n "$RANLIB"; then 19688 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19689 postinstall_cmds='$RANLIB $lib' 19690 fi 19691 ;; 19692 19693 aix[4-9]*) 19694 if test ia64 != "$host_cpu"; then 19695 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19696 yes,aix,yes) ;; # shared object as lib.so file only 19697 yes,svr4,*) ;; # shared object as lib.so archive member only 19698 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19699 esac 19700 fi 19701 ;; 19702 esac 19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19704 printf "%s\n" "$enable_shared" >&6; } 19705 19706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19707 printf %s "checking whether to build static libraries... " >&6; } 19708 # Make sure either enable_shared or enable_static is yes. 19709 test yes = "$enable_shared" || enable_static=yes 19710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19711 printf "%s\n" "$enable_static" >&6; } 19712 19713 19714 19715 19716 fi 19717 ac_ext=c 19718 ac_cpp='$CPP $CPPFLAGS' 19719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19721 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19722 19723 CC=$lt_save_CC 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 ac_config_commands="$ac_config_commands libtool" 19740 19741 19742 19743 19744 # Only expand once: 19745 19746 19747 19748 19749 19750 # Options 19751 # Define a configure option for an alternate module directory 19752 19753 # Check whether --with-xorg-module-dir was given. 19754 if test ${with_xorg_module_dir+y} 19755 then : 19756 withval=$with_xorg_module_dir; moduledir="$withval" 19757 else case e in #( 19758 e) moduledir="$libdir/xorg/modules" ;; 19759 esac 19760 fi 19761 19762 19763 # Store the list of server defined optional extensions in REQUIRED_MODULES 19764 19765 19766 SAVE_CFLAGS="$CFLAGS" 19767 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19769 /* end confdefs.h. */ 19770 19771 #include "xorg-server.h" 19772 #if !defined RANDR 19773 #error RANDR not defined 19774 #endif 19775 19776 int 19777 main (void) 19778 { 19779 19780 ; 19781 return 0; 19782 } 19783 _ACEOF 19784 if ac_fn_c_try_compile "$LINENO" 19785 then : 19786 _EXT_CHECK=yes 19787 else case e in #( 19788 e) _EXT_CHECK=no ;; 19789 esac 19790 fi 19791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19792 CFLAGS="$SAVE_CFLAGS" 19793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19794 printf %s "checking if RANDR is defined... " >&6; } 19795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19796 printf "%s\n" "$_EXT_CHECK" >&6; } 19797 if test "$_EXT_CHECK" != no; then 19798 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19799 fi 19800 19801 19802 19803 SAVE_CFLAGS="$CFLAGS" 19804 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19806 /* end confdefs.h. */ 19807 19808 #include "xorg-server.h" 19809 #if !defined RENDER 19810 #error RENDER not defined 19811 #endif 19812 19813 int 19814 main (void) 19815 { 19816 19817 ; 19818 return 0; 19819 } 19820 _ACEOF 19821 if ac_fn_c_try_compile "$LINENO" 19822 then : 19823 _EXT_CHECK=yes 19824 else case e in #( 19825 e) _EXT_CHECK=no ;; 19826 esac 19827 fi 19828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19829 CFLAGS="$SAVE_CFLAGS" 19830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19831 printf %s "checking if RENDER is defined... " >&6; } 19832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19833 printf "%s\n" "$_EXT_CHECK" >&6; } 19834 if test "$_EXT_CHECK" != no; then 19835 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19836 fi 19837 19838 19839 19840 SAVE_CFLAGS="$CFLAGS" 19841 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19843 /* end confdefs.h. */ 19844 19845 #include "xorg-server.h" 19846 #if !defined XV 19847 #error XV not defined 19848 #endif 19849 19850 int 19851 main (void) 19852 { 19853 19854 ; 19855 return 0; 19856 } 19857 _ACEOF 19858 if ac_fn_c_try_compile "$LINENO" 19859 then : 19860 _EXT_CHECK=yes 19861 else case e in #( 19862 e) _EXT_CHECK=no ;; 19863 esac 19864 fi 19865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19866 CFLAGS="$SAVE_CFLAGS" 19867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 19868 printf %s "checking if XV is defined... " >&6; } 19869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19870 printf "%s\n" "$_EXT_CHECK" >&6; } 19871 if test "$_EXT_CHECK" != no; then 19872 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 19873 fi 19874 19875 19876 19877 SAVE_CFLAGS="$CFLAGS" 19878 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19880 /* end confdefs.h. */ 19881 19882 #include "xorg-server.h" 19883 #if !defined DPMSExtension 19884 #error DPMSExtension not defined 19885 #endif 19886 19887 int 19888 main (void) 19889 { 19890 19891 ; 19892 return 0; 19893 } 19894 _ACEOF 19895 if ac_fn_c_try_compile "$LINENO" 19896 then : 19897 _EXT_CHECK=yes 19898 else case e in #( 19899 e) _EXT_CHECK=no ;; 19900 esac 19901 fi 19902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19903 CFLAGS="$SAVE_CFLAGS" 19904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19905 printf %s "checking if DPMSExtension is defined... " >&6; } 19906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19907 printf "%s\n" "$_EXT_CHECK" >&6; } 19908 if test "$_EXT_CHECK" != no; then 19909 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19910 fi 19911 19912 19913 # Obtain compiler/linker options for the driver dependencies 19914 19915 pkg_failed=no 19916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19917 printf %s "checking for XORG... " >&6; } 19918 19919 if test -n "$XORG_CFLAGS"; then 19920 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19921 elif test -n "$PKG_CONFIG"; then 19922 if test -n "$PKG_CONFIG" && \ 19923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19924 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 19925 ac_status=$? 19926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19927 test $ac_status = 0; }; then 19928 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19929 test "x$?" != "x0" && pkg_failed=yes 19930 else 19931 pkg_failed=yes 19932 fi 19933 else 19934 pkg_failed=untried 19935 fi 19936 if test -n "$XORG_LIBS"; then 19937 pkg_cv_XORG_LIBS="$XORG_LIBS" 19938 elif test -n "$PKG_CONFIG"; then 19939 if test -n "$PKG_CONFIG" && \ 19940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19941 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5 19942 ac_status=$? 19943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19944 test $ac_status = 0; }; then 19945 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19946 test "x$?" != "x0" && pkg_failed=yes 19947 else 19948 pkg_failed=yes 19949 fi 19950 else 19951 pkg_failed=untried 19952 fi 19953 19954 19955 19956 if test $pkg_failed = yes; then 19957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19958 printf "%s\n" "no" >&6; } 19959 19960 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19961 _pkg_short_errors_supported=yes 19962 else 19963 _pkg_short_errors_supported=no 19964 fi 19965 if test $_pkg_short_errors_supported = yes; then 19966 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19967 else 19968 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19969 fi 19970 # Put the nasty error message in config.log where it belongs 19971 echo "$XORG_PKG_ERRORS" >&5 19972 19973 as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met: 19974 19975 $XORG_PKG_ERRORS 19976 19977 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19978 installed software in a non-standard prefix. 19979 19980 Alternatively, you may set the environment variables XORG_CFLAGS 19981 and XORG_LIBS to avoid the need to call pkg-config. 19982 See the pkg-config man page for more details." "$LINENO" 5 19983 elif test $pkg_failed = untried; then 19984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19985 printf "%s\n" "no" >&6; } 19986 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 19987 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 19988 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19989 is in your PATH or set the PKG_CONFIG environment variable to the full 19990 path to pkg-config. 19991 19992 Alternatively, you may set the environment variables XORG_CFLAGS 19993 and XORG_LIBS to avoid the need to call pkg-config. 19994 See the pkg-config man page for more details. 19995 19996 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19997 See 'config.log' for more details" "$LINENO" 5; } 19998 else 19999 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20000 XORG_LIBS=$pkg_cv_XORG_LIBS 20001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20002 printf "%s\n" "yes" >&6; } 20003 20004 fi 20005 20006 pkg_failed=no 20007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 20008 printf %s "checking for XEXT... " >&6; } 20009 20010 if test -n "$XEXT_CFLAGS"; then 20011 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 20012 elif test -n "$PKG_CONFIG"; then 20013 if test -n "$PKG_CONFIG" && \ 20014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 20015 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 20016 ac_status=$? 20017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20018 test $ac_status = 0; }; then 20019 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 20020 test "x$?" != "x0" && pkg_failed=yes 20021 else 20022 pkg_failed=yes 20023 fi 20024 else 20025 pkg_failed=untried 20026 fi 20027 if test -n "$XEXT_LIBS"; then 20028 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 20029 elif test -n "$PKG_CONFIG"; then 20030 if test -n "$PKG_CONFIG" && \ 20031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 20032 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 20033 ac_status=$? 20034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20035 test $ac_status = 0; }; then 20036 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 20037 test "x$?" != "x0" && pkg_failed=yes 20038 else 20039 pkg_failed=yes 20040 fi 20041 else 20042 pkg_failed=untried 20043 fi 20044 20045 20046 20047 if test $pkg_failed = yes; then 20048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20049 printf "%s\n" "no" >&6; } 20050 20051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20052 _pkg_short_errors_supported=yes 20053 else 20054 _pkg_short_errors_supported=no 20055 fi 20056 if test $_pkg_short_errors_supported = yes; then 20057 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 20058 else 20059 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 20060 fi 20061 # Put the nasty error message in config.log where it belongs 20062 echo "$XEXT_PKG_ERRORS" >&5 20063 20064 HAVE_XEXTPROTO_71="no" 20065 elif test $pkg_failed = untried; then 20066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20067 printf "%s\n" "no" >&6; } 20068 HAVE_XEXTPROTO_71="no" 20069 else 20070 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 20071 XEXT_LIBS=$pkg_cv_XEXT_LIBS 20072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20073 printf "%s\n" "yes" >&6; } 20074 HAVE_XEXTPROTO_71="yes"; 20075 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 20076 20077 fi 20078 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 20079 HAVE_XEXTPROTO_71_TRUE= 20080 HAVE_XEXTPROTO_71_FALSE='#' 20081 else 20082 HAVE_XEXTPROTO_71_TRUE='#' 20083 HAVE_XEXTPROTO_71_FALSE= 20084 fi 20085 20086 20087 # Checks for libraries. 20088 20089 20090 save_CFLAGS="$CFLAGS" 20091 CFLAGS="$XORG_CFLAGS" 20092 20093 # PCI rework 20094 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 20095 " "$ac_c_undeclared_builtin_options" "CFLAGS" 20096 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 20097 then : 20098 XSERVER_LIBPCIACCESS=yes 20099 else case e in #( 20100 e) XSERVER_LIBPCIACCESS=no ;; 20101 esac 20102 fi 20103 if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then 20104 20105 pkg_failed=no 20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 20107 printf %s "checking for PCIACCESS... " >&6; } 20108 20109 if test -n "$PCIACCESS_CFLAGS"; then 20110 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 20111 elif test -n "$PKG_CONFIG"; then 20112 if test -n "$PKG_CONFIG" && \ 20113 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5 20114 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5 20115 ac_status=$? 20116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20117 test $ac_status = 0; }; then 20118 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10.7" 2>/dev/null` 20119 test "x$?" != "x0" && pkg_failed=yes 20120 else 20121 pkg_failed=yes 20122 fi 20123 else 20124 pkg_failed=untried 20125 fi 20126 if test -n "$PCIACCESS_LIBS"; then 20127 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20128 elif test -n "$PKG_CONFIG"; then 20129 if test -n "$PKG_CONFIG" && \ 20130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5 20131 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5 20132 ac_status=$? 20133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20134 test $ac_status = 0; }; then 20135 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10.7" 2>/dev/null` 20136 test "x$?" != "x0" && pkg_failed=yes 20137 else 20138 pkg_failed=yes 20139 fi 20140 else 20141 pkg_failed=untried 20142 fi 20143 20144 20145 20146 if test $pkg_failed = yes; then 20147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20148 printf "%s\n" "no" >&6; } 20149 20150 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20151 _pkg_short_errors_supported=yes 20152 else 20153 _pkg_short_errors_supported=no 20154 fi 20155 if test $_pkg_short_errors_supported = yes; then 20156 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1` 20157 else 20158 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1` 20159 fi 20160 # Put the nasty error message in config.log where it belongs 20161 echo "$PCIACCESS_PKG_ERRORS" >&5 20162 20163 as_fn_error $? "Package requirements (pciaccess >= 0.10.7) were not met: 20164 20165 $PCIACCESS_PKG_ERRORS 20166 20167 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20168 installed software in a non-standard prefix. 20169 20170 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20171 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20172 See the pkg-config man page for more details." "$LINENO" 5 20173 elif test $pkg_failed = untried; then 20174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20175 printf "%s\n" "no" >&6; } 20176 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20177 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20178 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20179 is in your PATH or set the PKG_CONFIG environment variable to the full 20180 path to pkg-config. 20181 20182 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20183 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20184 See the pkg-config man page for more details. 20185 20186 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20187 See 'config.log' for more details" "$LINENO" 5; } 20188 else 20189 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20190 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20192 printf "%s\n" "yes" >&6; } 20193 20194 fi 20195 fi 20196 20197 CFLAGS="$save_CFLAGS" 20198 20199 # Check whether --enable-xaa was given. 20200 if test ${enable_xaa+y} 20201 then : 20202 enableval=$enable_xaa; XAA="$enableval" 20203 else case e in #( 20204 e) XAA=auto ;; 20205 esac 20206 fi 20207 20208 if test "x$XAA" != xno; then 20209 save_CFLAGS=$CFLAGS 20210 save_CPPFLAGS=$CPPFLAGS 20211 CFLAGS=$XORG_CFLAGS 20212 CPPFLAGS="$XORG_CFLAGS" 20213 for ac_header in xaa.h 20214 do : 20215 ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 20216 if test "x$ac_cv_header_xaa_h" = xyes 20217 then : 20218 printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h 20219 XAA=yes 20220 else case e in #( 20221 e) XAA=no ;; 20222 esac 20223 fi 20224 20225 done 20226 CFLAGS=$save_CFLAGS 20227 CPPFLAGS=$save_CPPFLAGS 20228 fi 20229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 20230 printf %s "checking whether to include XAA support... " >&6; } 20231 if test "x$XAA" = xyes; then 20232 XAA_TRUE= 20233 XAA_FALSE='#' 20234 else 20235 XAA_TRUE='#' 20236 XAA_FALSE= 20237 fi 20238 20239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 20240 printf "%s\n" "$XAA" >&6; } 20241 20242 # Substitutions 20243 20244 20245 DRIVER_NAME=nv 20246 20247 20248 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20249 20250 cat >confcache <<\_ACEOF 20251 # This file is a shell script that caches the results of configure 20252 # tests run on this system so they can be shared between configure 20253 # scripts and configure runs, see configure's option --config-cache. 20254 # It is not useful on other systems. If it contains results you don't 20255 # want to keep, you may remove or edit it. 20256 # 20257 # config.status only pays attention to the cache file if you give it 20258 # the --recheck option to rerun configure. 20259 # 20260 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20261 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20262 # following values. 20263 20264 _ACEOF 20265 20266 # The following way of writing the cache mishandles newlines in values, 20267 # but we know of no workaround that is simple, portable, and efficient. 20268 # So, we kill variables containing newlines. 20269 # Ultrix sh set writes to stderr and can't be redirected directly, 20270 # and sets the high bit in the cache file unless we assign to the vars. 20271 ( 20272 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20273 eval ac_val=\$$ac_var 20274 case $ac_val in #( 20275 *${as_nl}*) 20276 case $ac_var in #( 20277 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20278 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20279 esac 20280 case $ac_var in #( 20281 _ | IFS | as_nl) ;; #( 20282 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20283 *) { eval $ac_var=; unset $ac_var;} ;; 20284 esac ;; 20285 esac 20286 done 20287 20288 (set) 2>&1 | 20289 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20290 *${as_nl}ac_space=\ *) 20291 # 'set' does not quote correctly, so add quotes: double-quote 20292 # substitution turns \\\\ into \\, and sed turns \\ into \. 20293 sed -n \ 20294 "s/'/'\\\\''/g; 20295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20296 ;; #( 20297 *) 20298 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20299 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20300 ;; 20301 esac | 20302 sort 20303 ) | 20304 sed ' 20305 /^ac_cv_env_/b end 20306 t clear 20307 :clear 20308 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20309 t end 20310 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20311 :end' >>confcache 20312 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20313 if test -w "$cache_file"; then 20314 if test "x$cache_file" != "x/dev/null"; then 20315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20316 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20317 if test ! -f "$cache_file" || test -h "$cache_file"; then 20318 cat confcache >"$cache_file" 20319 else 20320 case $cache_file in #( 20321 */* | ?:*) 20322 mv -f confcache "$cache_file"$$ && 20323 mv -f "$cache_file"$$ "$cache_file" ;; #( 20324 *) 20325 mv -f confcache "$cache_file" ;; 20326 esac 20327 fi 20328 fi 20329 else 20330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20331 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20332 fi 20333 fi 20334 rm -f confcache 20335 20336 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20337 # Let make expand exec_prefix. 20338 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20339 20340 DEFS=-DHAVE_CONFIG_H 20341 20342 ac_libobjs= 20343 ac_ltlibobjs= 20344 U= 20345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20346 # 1. Remove the extension, and $U if already installed. 20347 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20348 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20349 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20350 # will be set to the directory where LIBOBJS objects are built. 20351 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20352 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20353 done 20354 LIBOBJS=$ac_libobjs 20355 20356 LTLIBOBJS=$ac_ltlibobjs 20357 20358 20359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20360 printf %s "checking that generated files are newer than configure... " >&6; } 20361 if test -n "$am_sleep_pid"; then 20362 # Hide warnings about reused PIDs. 20363 wait $am_sleep_pid 2>/dev/null 20364 fi 20365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20366 printf "%s\n" "done" >&6; } 20367 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20368 as_fn_error $? "conditional \"AMDEP\" was never defined. 20369 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20370 fi 20371 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20372 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20373 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20374 fi 20375 if test -n "$EXEEXT"; then 20376 am__EXEEXT_TRUE= 20377 am__EXEEXT_FALSE='#' 20378 else 20379 am__EXEEXT_TRUE='#' 20380 am__EXEEXT_FALSE= 20381 fi 20382 20383 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20384 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20385 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20386 fi 20387 if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 20388 as_fn_error $? "conditional \"XAA\" was never defined. 20389 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20390 fi 20391 20392 : "${CONFIG_STATUS=./config.status}" 20393 ac_write_fail=0 20394 ac_clean_files_save=$ac_clean_files 20395 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20397 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20398 as_write_fail=0 20399 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20400 #! $SHELL 20401 # Generated by $as_me. 20402 # Run this file to recreate the current configuration. 20403 # Compiler output produced by configure, useful for debugging 20404 # configure, is in config.log if it exists. 20405 20406 debug=false 20407 ac_cs_recheck=false 20408 ac_cs_silent=false 20409 20410 SHELL=\${CONFIG_SHELL-$SHELL} 20411 export SHELL 20412 _ASEOF 20413 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20414 ## -------------------- ## 20415 ## M4sh Initialization. ## 20416 ## -------------------- ## 20417 20418 # Be more Bourne compatible 20419 DUALCASE=1; export DUALCASE # for MKS sh 20420 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20421 then : 20422 emulate sh 20423 NULLCMD=: 20424 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20425 # is contrary to our usage. Disable this feature. 20426 alias -g '${1+"$@"}'='"$@"' 20427 setopt NO_GLOB_SUBST 20428 else case e in #( 20429 e) case `(set -o) 2>/dev/null` in #( 20430 *posix*) : 20431 set -o posix ;; #( 20432 *) : 20433 ;; 20434 esac ;; 20435 esac 20436 fi 20437 20438 20439 20440 # Reset variables that may have inherited troublesome values from 20441 # the environment. 20442 20443 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20444 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20445 # side effect of setting IFS to empty, thus disabling word splitting.) 20446 # Quoting is to prevent editors from complaining about space-tab. 20447 as_nl=' 20448 ' 20449 export as_nl 20450 IFS=" "" $as_nl" 20451 20452 PS1='$ ' 20453 PS2='> ' 20454 PS4='+ ' 20455 20456 # Ensure predictable behavior from utilities with locale-dependent output. 20457 LC_ALL=C 20458 export LC_ALL 20459 LANGUAGE=C 20460 export LANGUAGE 20461 20462 # We cannot yet rely on "unset" to work, but we need these variables 20463 # to be unset--not just set to an empty or harmless value--now, to 20464 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20465 # also avoids known problems related to "unset" and subshell syntax 20466 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20467 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20468 do eval test \${$as_var+y} \ 20469 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20470 done 20471 20472 # Ensure that fds 0, 1, and 2 are open. 20473 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20474 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20475 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20476 20477 # The user is always right. 20478 if ${PATH_SEPARATOR+false} :; then 20479 PATH_SEPARATOR=: 20480 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20481 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20482 PATH_SEPARATOR=';' 20483 } 20484 fi 20485 20486 20487 # Find who we are. Look in the path if we contain no directory separator. 20488 as_myself= 20489 case $0 in #(( 20490 *[\\/]* ) as_myself=$0 ;; 20491 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20492 for as_dir in $PATH 20493 do 20494 IFS=$as_save_IFS 20495 case $as_dir in #((( 20496 '') as_dir=./ ;; 20497 */) ;; 20498 *) as_dir=$as_dir/ ;; 20499 esac 20500 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20501 done 20502 IFS=$as_save_IFS 20503 20504 ;; 20505 esac 20506 # We did not find ourselves, most probably we were run as 'sh COMMAND' 20507 # in which case we are not to be found in the path. 20508 if test "x$as_myself" = x; then 20509 as_myself=$0 20510 fi 20511 if test ! -f "$as_myself"; then 20512 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20513 exit 1 20514 fi 20515 20516 20517 20518 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20519 # ---------------------------------------- 20520 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20521 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20522 # script with STATUS, using 1 if that was 0. 20523 as_fn_error () 20524 { 20525 as_status=$1; test $as_status -eq 0 && as_status=1 20526 if test "$4"; then 20527 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20529 fi 20530 printf "%s\n" "$as_me: error: $2" >&2 20531 as_fn_exit $as_status 20532 } # as_fn_error 20533 20534 20535 # as_fn_set_status STATUS 20536 # ----------------------- 20537 # Set $? to STATUS, without forking. 20538 as_fn_set_status () 20539 { 20540 return $1 20541 } # as_fn_set_status 20542 20543 # as_fn_exit STATUS 20544 # ----------------- 20545 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20546 as_fn_exit () 20547 { 20548 set +e 20549 as_fn_set_status $1 20550 exit $1 20551 } # as_fn_exit 20552 20553 # as_fn_unset VAR 20554 # --------------- 20555 # Portably unset VAR. 20556 as_fn_unset () 20557 { 20558 { eval $1=; unset $1;} 20559 } 20560 as_unset=as_fn_unset 20561 20562 # as_fn_append VAR VALUE 20563 # ---------------------- 20564 # Append the text in VALUE to the end of the definition contained in VAR. Take 20565 # advantage of any shell optimizations that allow amortized linear growth over 20566 # repeated appends, instead of the typical quadratic growth present in naive 20567 # implementations. 20568 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20569 then : 20570 eval 'as_fn_append () 20571 { 20572 eval $1+=\$2 20573 }' 20574 else case e in #( 20575 e) as_fn_append () 20576 { 20577 eval $1=\$$1\$2 20578 } ;; 20579 esac 20580 fi # as_fn_append 20581 20582 # as_fn_arith ARG... 20583 # ------------------ 20584 # Perform arithmetic evaluation on the ARGs, and store the result in the 20585 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20586 # must be portable across $(()) and expr. 20587 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20588 then : 20589 eval 'as_fn_arith () 20590 { 20591 as_val=$(( $* )) 20592 }' 20593 else case e in #( 20594 e) as_fn_arith () 20595 { 20596 as_val=`expr "$@" || test $? -eq 1` 20597 } ;; 20598 esac 20599 fi # as_fn_arith 20600 20601 20602 if expr a : '\(a\)' >/dev/null 2>&1 && 20603 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20604 as_expr=expr 20605 else 20606 as_expr=false 20607 fi 20608 20609 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20610 as_basename=basename 20611 else 20612 as_basename=false 20613 fi 20614 20615 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20616 as_dirname=dirname 20617 else 20618 as_dirname=false 20619 fi 20620 20621 as_me=`$as_basename -- "$0" || 20622 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20623 X"$0" : 'X\(//\)$' \| \ 20624 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20625 printf "%s\n" X/"$0" | 20626 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20627 s//\1/ 20628 q 20629 } 20630 /^X\/\(\/\/\)$/{ 20631 s//\1/ 20632 q 20633 } 20634 /^X\/\(\/\).*/{ 20635 s//\1/ 20636 q 20637 } 20638 s/.*/./; q'` 20639 20640 # Avoid depending upon Character Ranges. 20641 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20642 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20643 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20644 as_cr_digits='0123456789' 20645 as_cr_alnum=$as_cr_Letters$as_cr_digits 20646 20647 20648 # Determine whether it's possible to make 'echo' print without a newline. 20649 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20650 # for compatibility with existing Makefiles. 20651 ECHO_C= ECHO_N= ECHO_T= 20652 case `echo -n x` in #((((( 20653 -n*) 20654 case `echo 'xy\c'` in 20655 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20656 xy) ECHO_C='\c';; 20657 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20658 ECHO_T=' ';; 20659 esac;; 20660 *) 20661 ECHO_N='-n';; 20662 esac 20663 20664 # For backward compatibility with old third-party macros, we provide 20665 # the shell variables $as_echo and $as_echo_n. New code should use 20666 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20667 as_echo='printf %s\n' 20668 as_echo_n='printf %s' 20669 20670 rm -f conf$$ conf$$.exe conf$$.file 20671 if test -d conf$$.dir; then 20672 rm -f conf$$.dir/conf$$.file 20673 else 20674 rm -f conf$$.dir 20675 mkdir conf$$.dir 2>/dev/null 20676 fi 20677 if (echo >conf$$.file) 2>/dev/null; then 20678 if ln -s conf$$.file conf$$ 2>/dev/null; then 20679 as_ln_s='ln -s' 20680 # ... but there are two gotchas: 20681 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 20682 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 20683 # In both cases, we have to default to 'cp -pR'. 20684 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20685 as_ln_s='cp -pR' 20686 elif ln conf$$.file conf$$ 2>/dev/null; then 20687 as_ln_s=ln 20688 else 20689 as_ln_s='cp -pR' 20690 fi 20691 else 20692 as_ln_s='cp -pR' 20693 fi 20694 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20695 rmdir conf$$.dir 2>/dev/null 20696 20697 20698 # as_fn_mkdir_p 20699 # ------------- 20700 # Create "$as_dir" as a directory, including parents if necessary. 20701 as_fn_mkdir_p () 20702 { 20703 20704 case $as_dir in #( 20705 -*) as_dir=./$as_dir;; 20706 esac 20707 test -d "$as_dir" || eval $as_mkdir_p || { 20708 as_dirs= 20709 while :; do 20710 case $as_dir in #( 20711 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20712 *) as_qdir=$as_dir;; 20713 esac 20714 as_dirs="'$as_qdir' $as_dirs" 20715 as_dir=`$as_dirname -- "$as_dir" || 20716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20717 X"$as_dir" : 'X\(//\)[^/]' \| \ 20718 X"$as_dir" : 'X\(//\)$' \| \ 20719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20720 printf "%s\n" X"$as_dir" | 20721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20722 s//\1/ 20723 q 20724 } 20725 /^X\(\/\/\)[^/].*/{ 20726 s//\1/ 20727 q 20728 } 20729 /^X\(\/\/\)$/{ 20730 s//\1/ 20731 q 20732 } 20733 /^X\(\/\).*/{ 20734 s//\1/ 20735 q 20736 } 20737 s/.*/./; q'` 20738 test -d "$as_dir" && break 20739 done 20740 test -z "$as_dirs" || eval "mkdir $as_dirs" 20741 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20742 20743 20744 } # as_fn_mkdir_p 20745 if mkdir -p . 2>/dev/null; then 20746 as_mkdir_p='mkdir -p "$as_dir"' 20747 else 20748 test -d ./-p && rmdir ./-p 20749 as_mkdir_p=false 20750 fi 20751 20752 20753 # as_fn_executable_p FILE 20754 # ----------------------- 20755 # Test if FILE is an executable regular file. 20756 as_fn_executable_p () 20757 { 20758 test -f "$1" && test -x "$1" 20759 } # as_fn_executable_p 20760 as_test_x='test -x' 20761 as_executable_p=as_fn_executable_p 20762 20763 # Sed expression to map a string onto a valid CPP name. 20764 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 20765 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 20766 20767 # Sed expression to map a string onto a valid variable name. 20768 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20769 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 20770 20771 20772 exec 6>&1 20773 ## ----------------------------------- ## 20774 ## Main body of $CONFIG_STATUS script. ## 20775 ## ----------------------------------- ## 20776 _ASEOF 20777 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20778 20779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20780 # Save the log message, to keep $0 and so on meaningful, and to 20781 # report actual input values of CONFIG_FILES etc. instead of their 20782 # values after options handling. 20783 ac_log=" 20784 This file was extended by xf86-video-nv $as_me 2.1.23, which was 20785 generated by GNU Autoconf 2.72. Invocation command line was 20786 20787 CONFIG_FILES = $CONFIG_FILES 20788 CONFIG_HEADERS = $CONFIG_HEADERS 20789 CONFIG_LINKS = $CONFIG_LINKS 20790 CONFIG_COMMANDS = $CONFIG_COMMANDS 20791 $ $0 $@ 20792 20793 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20794 " 20795 20796 _ACEOF 20797 20798 case $ac_config_files in *" 20799 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20800 esac 20801 20802 case $ac_config_headers in *" 20803 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20804 esac 20805 20806 20807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20808 # Files that config.status was made for. 20809 config_files="$ac_config_files" 20810 config_headers="$ac_config_headers" 20811 config_commands="$ac_config_commands" 20812 20813 _ACEOF 20814 20815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20816 ac_cs_usage="\ 20817 '$as_me' instantiates files and other configuration actions 20818 from templates according to the current configuration. Unless the files 20819 and actions are specified as TAGs, all are instantiated by default. 20820 20821 Usage: $0 [OPTION]... [TAG]... 20822 20823 -h, --help print this help, then exit 20824 -V, --version print version number and configuration settings, then exit 20825 --config print configuration, then exit 20826 -q, --quiet, --silent 20827 do not print progress messages 20828 -d, --debug don't remove temporary files 20829 --recheck update $as_me by reconfiguring in the same conditions 20830 --file=FILE[:TEMPLATE] 20831 instantiate the configuration file FILE 20832 --header=FILE[:TEMPLATE] 20833 instantiate the configuration header FILE 20834 20835 Configuration files: 20836 $config_files 20837 20838 Configuration headers: 20839 $config_headers 20840 20841 Configuration commands: 20842 $config_commands 20843 20844 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/issues>." 20845 20846 _ACEOF 20847 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20848 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20850 ac_cs_config='$ac_cs_config_escaped' 20851 ac_cs_version="\\ 20852 xf86-video-nv config.status 2.1.23 20853 configured by $0, generated by GNU Autoconf 2.72, 20854 with options \\"\$ac_cs_config\\" 20855 20856 Copyright (C) 2023 Free Software Foundation, Inc. 20857 This config.status script is free software; the Free Software Foundation 20858 gives unlimited permission to copy, distribute and modify it." 20859 20860 ac_pwd='$ac_pwd' 20861 srcdir='$srcdir' 20862 INSTALL='$INSTALL' 20863 MKDIR_P='$MKDIR_P' 20864 AWK='$AWK' 20865 test -n "\$AWK" || AWK=awk 20866 _ACEOF 20867 20868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20869 # The default lists apply if the user does not specify any file. 20870 ac_need_defaults=: 20871 while test $# != 0 20872 do 20873 case $1 in 20874 --*=?*) 20875 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20877 ac_shift=: 20878 ;; 20879 --*=) 20880 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20881 ac_optarg= 20882 ac_shift=: 20883 ;; 20884 *) 20885 ac_option=$1 20886 ac_optarg=$2 20887 ac_shift=shift 20888 ;; 20889 esac 20890 20891 case $ac_option in 20892 # Handling of the options. 20893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20894 ac_cs_recheck=: ;; 20895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20896 printf "%s\n" "$ac_cs_version"; exit ;; 20897 --config | --confi | --conf | --con | --co | --c ) 20898 printf "%s\n" "$ac_cs_config"; exit ;; 20899 --debug | --debu | --deb | --de | --d | -d ) 20900 debug=: ;; 20901 --file | --fil | --fi | --f ) 20902 $ac_shift 20903 case $ac_optarg in 20904 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20905 '') as_fn_error $? "missing file argument" ;; 20906 esac 20907 as_fn_append CONFIG_FILES " '$ac_optarg'" 20908 ac_need_defaults=false;; 20909 --header | --heade | --head | --hea ) 20910 $ac_shift 20911 case $ac_optarg in 20912 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20913 esac 20914 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20915 ac_need_defaults=false;; 20916 --he | --h) 20917 # Conflict between --help and --header 20918 as_fn_error $? "ambiguous option: '$1' 20919 Try '$0 --help' for more information.";; 20920 --help | --hel | -h ) 20921 printf "%s\n" "$ac_cs_usage"; exit ;; 20922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20923 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20924 ac_cs_silent=: ;; 20925 20926 # This is an error. 20927 -*) as_fn_error $? "unrecognized option: '$1' 20928 Try '$0 --help' for more information." ;; 20929 20930 *) as_fn_append ac_config_targets " $1" 20931 ac_need_defaults=false ;; 20932 20933 esac 20934 shift 20935 done 20936 20937 ac_configure_extra_args= 20938 20939 if $ac_cs_silent; then 20940 exec 6>/dev/null 20941 ac_configure_extra_args="$ac_configure_extra_args --silent" 20942 fi 20943 20944 _ACEOF 20945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20946 if \$ac_cs_recheck; then 20947 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20948 shift 20949 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20950 CONFIG_SHELL='$SHELL' 20951 export CONFIG_SHELL 20952 exec "\$@" 20953 fi 20954 20955 _ACEOF 20956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20957 exec 5>>config.log 20958 { 20959 echo 20960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20961 ## Running $as_me. ## 20962 _ASBOX 20963 printf "%s\n" "$ac_log" 20964 } >&5 20965 20966 _ACEOF 20967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20968 # 20969 # INIT-COMMANDS 20970 # 20971 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20972 20973 20974 # The HP-UX ksh and POSIX shell print the target directory to stdout 20975 # if CDPATH is set. 20976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20977 20978 sed_quote_subst='$sed_quote_subst' 20979 double_quote_subst='$double_quote_subst' 20980 delay_variable_subst='$delay_variable_subst' 20981 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20982 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20983 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20984 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20985 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20986 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20987 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20988 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20989 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20990 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20991 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20992 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20993 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20994 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20995 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20996 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20997 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20998 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20999 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21000 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21001 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21002 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21003 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21004 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21005 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21006 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21007 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21008 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21009 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21010 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21011 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21012 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21013 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21014 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21015 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21016 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21017 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21018 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21019 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21020 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21021 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21022 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21023 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21024 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21025 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21026 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21027 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21028 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21029 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21030 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21031 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21032 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21033 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21034 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21035 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21036 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21037 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21038 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21039 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21040 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21041 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"`' 21042 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21043 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21044 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21045 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21046 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21047 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21048 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21049 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21050 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21051 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21052 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21053 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21054 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21055 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21056 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21057 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21058 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21059 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21060 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21061 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21062 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21063 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21064 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21065 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21066 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21067 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21068 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21069 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21070 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21071 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21072 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21073 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21074 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21075 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21076 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21077 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21078 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21079 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21080 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21081 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21082 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21083 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21084 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21085 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21086 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21087 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21088 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21089 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21090 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21091 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21092 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21093 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21094 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21095 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21096 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21097 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21098 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21099 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21100 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21101 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21102 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21103 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21104 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21105 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21106 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21107 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21108 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21109 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21110 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21111 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21112 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21113 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21114 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21115 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21116 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21117 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21118 21119 LTCC='$LTCC' 21120 LTCFLAGS='$LTCFLAGS' 21121 compiler='$compiler_DEFAULT' 21122 21123 # A function that is used when there is no print builtin or printf. 21124 func_fallback_echo () 21125 { 21126 eval 'cat <<_LTECHO_EOF 21127 \$1 21128 _LTECHO_EOF' 21129 } 21130 21131 # Quote evaled strings. 21132 for var in SHELL \ 21133 ECHO \ 21134 PATH_SEPARATOR \ 21135 SED \ 21136 GREP \ 21137 EGREP \ 21138 FGREP \ 21139 LD \ 21140 NM \ 21141 LN_S \ 21142 lt_SP2NL \ 21143 lt_NL2SP \ 21144 reload_flag \ 21145 FILECMD \ 21146 OBJDUMP \ 21147 deplibs_check_method \ 21148 file_magic_cmd \ 21149 file_magic_glob \ 21150 want_nocaseglob \ 21151 DLLTOOL \ 21152 sharedlib_from_linklib_cmd \ 21153 AR \ 21154 archiver_list_spec \ 21155 STRIP \ 21156 RANLIB \ 21157 CC \ 21158 CFLAGS \ 21159 compiler \ 21160 lt_cv_sys_global_symbol_pipe \ 21161 lt_cv_sys_global_symbol_to_cdecl \ 21162 lt_cv_sys_global_symbol_to_import \ 21163 lt_cv_sys_global_symbol_to_c_name_address \ 21164 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21165 lt_cv_nm_interface \ 21166 nm_file_list_spec \ 21167 lt_cv_truncate_bin \ 21168 lt_prog_compiler_no_builtin_flag \ 21169 lt_prog_compiler_pic \ 21170 lt_prog_compiler_wl \ 21171 lt_prog_compiler_static \ 21172 lt_cv_prog_compiler_c_o \ 21173 need_locks \ 21174 MANIFEST_TOOL \ 21175 DSYMUTIL \ 21176 NMEDIT \ 21177 LIPO \ 21178 OTOOL \ 21179 OTOOL64 \ 21180 shrext_cmds \ 21181 export_dynamic_flag_spec \ 21182 whole_archive_flag_spec \ 21183 compiler_needs_object \ 21184 with_gnu_ld \ 21185 allow_undefined_flag \ 21186 no_undefined_flag \ 21187 hardcode_libdir_flag_spec \ 21188 hardcode_libdir_separator \ 21189 exclude_expsyms \ 21190 include_expsyms \ 21191 file_list_spec \ 21192 variables_saved_for_relink \ 21193 libname_spec \ 21194 library_names_spec \ 21195 soname_spec \ 21196 install_override_mode \ 21197 finish_eval \ 21198 old_striplib \ 21199 striplib; do 21200 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21201 *[\\\\\\\`\\"\\\$]*) 21202 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21203 ;; 21204 *) 21205 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21206 ;; 21207 esac 21208 done 21209 21210 # Double-quote double-evaled strings. 21211 for var in reload_cmds \ 21212 old_postinstall_cmds \ 21213 old_postuninstall_cmds \ 21214 old_archive_cmds \ 21215 extract_expsyms_cmds \ 21216 old_archive_from_new_cmds \ 21217 old_archive_from_expsyms_cmds \ 21218 archive_cmds \ 21219 archive_expsym_cmds \ 21220 module_cmds \ 21221 module_expsym_cmds \ 21222 export_symbols_cmds \ 21223 prelink_cmds \ 21224 postlink_cmds \ 21225 postinstall_cmds \ 21226 postuninstall_cmds \ 21227 finish_cmds \ 21228 sys_lib_search_path_spec \ 21229 configure_time_dlsearch_path \ 21230 configure_time_lt_sys_library_path; do 21231 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21232 *[\\\\\\\`\\"\\\$]*) 21233 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21234 ;; 21235 *) 21236 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21237 ;; 21238 esac 21239 done 21240 21241 ac_aux_dir='$ac_aux_dir' 21242 21243 # See if we are running on zsh, and set the options that allow our 21244 # commands through without removal of \ escapes INIT. 21245 if test -n "\${ZSH_VERSION+set}"; then 21246 setopt NO_GLOB_SUBST 21247 fi 21248 21249 21250 PACKAGE='$PACKAGE' 21251 VERSION='$VERSION' 21252 RM='$RM' 21253 ofile='$ofile' 21254 21255 21256 21257 21258 _ACEOF 21259 21260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21261 21262 # Handling of arguments. 21263 for ac_config_target in $ac_config_targets 21264 do 21265 case $ac_config_target in 21266 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21267 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21268 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21269 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21270 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21271 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21272 21273 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21274 esac 21275 done 21276 21277 21278 # If the user did not use the arguments to specify the items to instantiate, 21279 # then the envvar interface is used. Set only those that are not. 21280 # We use the long form for the default assignment because of an extremely 21281 # bizarre bug on SunOS 4.1.3. 21282 if $ac_need_defaults; then 21283 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21284 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21285 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21286 fi 21287 21288 # Have a temporary directory for convenience. Make it in the build tree 21289 # simply because there is no reason against having it here, and in addition, 21290 # creating and moving files from /tmp can sometimes cause problems. 21291 # Hook for its removal unless debugging. 21292 # Note that there is a small window in which the directory will not be cleaned: 21293 # after its creation but before its name has been assigned to '$tmp'. 21294 $debug || 21295 { 21296 tmp= ac_tmp= 21297 trap 'exit_status=$? 21298 : "${ac_tmp:=$tmp}" 21299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21300 ' 0 21301 trap 'as_fn_exit 1' 1 2 13 15 21302 } 21303 # Create a (secure) tmp directory for tmp files. 21304 21305 { 21306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21307 test -d "$tmp" 21308 } || 21309 { 21310 tmp=./conf$$-$RANDOM 21311 (umask 077 && mkdir "$tmp") 21312 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21313 ac_tmp=$tmp 21314 21315 # Set up the scripts for CONFIG_FILES section. 21316 # No need to generate them if there are no CONFIG_FILES. 21317 # This happens for instance with './config.status config.h'. 21318 if test -n "$CONFIG_FILES"; then 21319 21320 21321 ac_cr=`echo X | tr X '\015'` 21322 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21323 # But we know of no other shell where ac_cr would be empty at this 21324 # point, so we can use a bashism as a fallback. 21325 if test "x$ac_cr" = x; then 21326 eval ac_cr=\$\'\\r\' 21327 fi 21328 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21329 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21330 ac_cs_awk_cr='\\r' 21331 else 21332 ac_cs_awk_cr=$ac_cr 21333 fi 21334 21335 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21336 _ACEOF 21337 21338 21339 { 21340 echo "cat >conf$$subs.awk <<_ACEOF" && 21341 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21342 echo "_ACEOF" 21343 } >conf$$subs.sh || 21344 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21345 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21346 ac_delim='%!_!# ' 21347 for ac_last_try in false false false false false :; do 21348 . ./conf$$subs.sh || 21349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21350 21351 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21352 if test $ac_delim_n = $ac_delim_num; then 21353 break 21354 elif $ac_last_try; then 21355 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21356 else 21357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21358 fi 21359 done 21360 rm -f conf$$subs.sh 21361 21362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21363 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21364 _ACEOF 21365 sed -n ' 21366 h 21367 s/^/S["/; s/!.*/"]=/ 21368 p 21369 g 21370 s/^[^!]*!// 21371 :repl 21372 t repl 21373 s/'"$ac_delim"'$// 21374 t delim 21375 :nl 21376 h 21377 s/\(.\{148\}\)..*/\1/ 21378 t more1 21379 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21380 p 21381 n 21382 b repl 21383 :more1 21384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21385 p 21386 g 21387 s/.\{148\}// 21388 t nl 21389 :delim 21390 h 21391 s/\(.\{148\}\)..*/\1/ 21392 t more2 21393 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21394 p 21395 b 21396 :more2 21397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21398 p 21399 g 21400 s/.\{148\}// 21401 t delim 21402 ' <conf$$subs.awk | sed ' 21403 /^[^""]/{ 21404 N 21405 s/\n// 21406 } 21407 ' >>$CONFIG_STATUS || ac_write_fail=1 21408 rm -f conf$$subs.awk 21409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21410 _ACAWK 21411 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21412 for (key in S) S_is_set[key] = 1 21413 FS = "" 21414 21415 } 21416 { 21417 line = $ 0 21418 nfields = split(line, field, "@") 21419 substed = 0 21420 len = length(field[1]) 21421 for (i = 2; i < nfields; i++) { 21422 key = field[i] 21423 keylen = length(key) 21424 if (S_is_set[key]) { 21425 value = S[key] 21426 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21427 len += length(value) + length(field[++i]) 21428 substed = 1 21429 } else 21430 len += 1 + keylen 21431 } 21432 21433 print line 21434 } 21435 21436 _ACAWK 21437 _ACEOF 21438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21439 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21441 else 21442 cat 21443 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21445 _ACEOF 21446 21447 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21448 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21449 # trailing colons and then remove the whole line if VPATH becomes empty 21450 # (actually we leave an empty line to preserve line numbers). 21451 if test "x$srcdir" = x.; then 21452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21453 h 21454 s/// 21455 s/^/:/ 21456 s/[ ]*$/:/ 21457 s/:\$(srcdir):/:/g 21458 s/:\${srcdir}:/:/g 21459 s/:@srcdir@:/:/g 21460 s/^:*// 21461 s/:*$// 21462 x 21463 s/\(=[ ]*\).*/\1/ 21464 G 21465 s/\n// 21466 s/^[^=]*=[ ]*$// 21467 }' 21468 fi 21469 21470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21471 fi # test -n "$CONFIG_FILES" 21472 21473 # Set up the scripts for CONFIG_HEADERS section. 21474 # No need to generate them if there are no CONFIG_HEADERS. 21475 # This happens for instance with './config.status Makefile'. 21476 if test -n "$CONFIG_HEADERS"; then 21477 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21478 BEGIN { 21479 _ACEOF 21480 21481 # Transform confdefs.h into an awk script 'defines.awk', embedded as 21482 # here-document in config.status, that substitutes the proper values into 21483 # config.h.in to produce config.h. 21484 21485 # Create a delimiter string that does not exist in confdefs.h, to ease 21486 # handling of long lines. 21487 ac_delim='%!_!# ' 21488 for ac_last_try in false false :; do 21489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21490 if test -z "$ac_tt"; then 21491 break 21492 elif $ac_last_try; then 21493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21494 else 21495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21496 fi 21497 done 21498 21499 # For the awk script, D is an array of macro values keyed by name, 21500 # likewise P contains macro parameters if any. Preserve backslash 21501 # newline sequences. 21502 21503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21504 sed -n ' 21505 s/.\{148\}/&'"$ac_delim"'/g 21506 t rset 21507 :rset 21508 s/^[ ]*#[ ]*define[ ][ ]*/ / 21509 t def 21510 d 21511 :def 21512 s/\\$// 21513 t bsnl 21514 s/["\\]/\\&/g 21515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21516 D["\1"]=" \3"/p 21517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21518 d 21519 :bsnl 21520 s/["\\]/\\&/g 21521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21522 D["\1"]=" \3\\\\\\n"\\/p 21523 t cont 21524 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21525 t cont 21526 d 21527 :cont 21528 n 21529 s/.\{148\}/&'"$ac_delim"'/g 21530 t clear 21531 :clear 21532 s/\\$// 21533 t bsnlc 21534 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21535 d 21536 :bsnlc 21537 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21538 b cont 21539 ' <confdefs.h | sed ' 21540 s/'"$ac_delim"'/"\\\ 21541 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21542 21543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21544 for (key in D) D_is_set[key] = 1 21545 FS = "" 21546 } 21547 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21548 line = \$ 0 21549 split(line, arg, " ") 21550 if (arg[1] == "#") { 21551 defundef = arg[2] 21552 mac1 = arg[3] 21553 } else { 21554 defundef = substr(arg[1], 2) 21555 mac1 = arg[2] 21556 } 21557 split(mac1, mac2, "(") #) 21558 macro = mac2[1] 21559 prefix = substr(line, 1, index(line, defundef) - 1) 21560 if (D_is_set[macro]) { 21561 # Preserve the white space surrounding the "#". 21562 print prefix "define", macro P[macro] D[macro] 21563 next 21564 } else { 21565 # Replace #undef with comments. This is necessary, for example, 21566 # in the case of _POSIX_SOURCE, which is predefined and required 21567 # on some systems where configure will not decide to define it. 21568 if (defundef == "undef") { 21569 print "/*", prefix defundef, macro, "*/" 21570 next 21571 } 21572 } 21573 } 21574 { print } 21575 _ACAWK 21576 _ACEOF 21577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21579 fi # test -n "$CONFIG_HEADERS" 21580 21581 21582 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21583 shift 21584 for ac_tag 21585 do 21586 case $ac_tag in 21587 :[FHLC]) ac_mode=$ac_tag; continue;; 21588 esac 21589 case $ac_mode$ac_tag in 21590 :[FHL]*:*);; 21591 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 21592 :[FH]-) ac_tag=-:-;; 21593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21594 esac 21595 ac_save_IFS=$IFS 21596 IFS=: 21597 set x $ac_tag 21598 IFS=$ac_save_IFS 21599 shift 21600 ac_file=$1 21601 shift 21602 21603 case $ac_mode in 21604 :L) ac_source=$1;; 21605 :[FH]) 21606 ac_file_inputs= 21607 for ac_f 21608 do 21609 case $ac_f in 21610 -) ac_f="$ac_tmp/stdin";; 21611 *) # Look for the file first in the build tree, then in the source tree 21612 # (if the path is not absolute). The absolute path cannot be DOS-style, 21613 # because $ac_f cannot contain ':'. 21614 test -f "$ac_f" || 21615 case $ac_f in 21616 [\\/$]*) false;; 21617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21618 esac || 21619 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 21620 esac 21621 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21622 as_fn_append ac_file_inputs " '$ac_f'" 21623 done 21624 21625 # Let's still pretend it is 'configure' which instantiates (i.e., don't 21626 # use $as_me), people would be surprised to read: 21627 # /* config.h. Generated by config.status. */ 21628 configure_input='Generated from '` 21629 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21630 `' by configure.' 21631 if test x"$ac_file" != x-; then 21632 configure_input="$ac_file. $configure_input" 21633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21634 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21635 fi 21636 # Neutralize special characters interpreted by sed in replacement strings. 21637 case $configure_input in #( 21638 *\&* | *\|* | *\\* ) 21639 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21640 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21641 *) ac_sed_conf_input=$configure_input;; 21642 esac 21643 21644 case $ac_tag in 21645 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21647 esac 21648 ;; 21649 esac 21650 21651 ac_dir=`$as_dirname -- "$ac_file" || 21652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21653 X"$ac_file" : 'X\(//\)[^/]' \| \ 21654 X"$ac_file" : 'X\(//\)$' \| \ 21655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21656 printf "%s\n" X"$ac_file" | 21657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21658 s//\1/ 21659 q 21660 } 21661 /^X\(\/\/\)[^/].*/{ 21662 s//\1/ 21663 q 21664 } 21665 /^X\(\/\/\)$/{ 21666 s//\1/ 21667 q 21668 } 21669 /^X\(\/\).*/{ 21670 s//\1/ 21671 q 21672 } 21673 s/.*/./; q'` 21674 as_dir="$ac_dir"; as_fn_mkdir_p 21675 ac_builddir=. 21676 21677 case "$ac_dir" in 21678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21679 *) 21680 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21681 # A ".." for each directory in $ac_dir_suffix. 21682 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21683 case $ac_top_builddir_sub in 21684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21686 esac ;; 21687 esac 21688 ac_abs_top_builddir=$ac_pwd 21689 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21690 # for backward compatibility: 21691 ac_top_builddir=$ac_top_build_prefix 21692 21693 case $srcdir in 21694 .) # We are building in place. 21695 ac_srcdir=. 21696 ac_top_srcdir=$ac_top_builddir_sub 21697 ac_abs_top_srcdir=$ac_pwd ;; 21698 [\\/]* | ?:[\\/]* ) # Absolute name. 21699 ac_srcdir=$srcdir$ac_dir_suffix; 21700 ac_top_srcdir=$srcdir 21701 ac_abs_top_srcdir=$srcdir ;; 21702 *) # Relative name. 21703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21704 ac_top_srcdir=$ac_top_build_prefix$srcdir 21705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21706 esac 21707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21708 21709 21710 case $ac_mode in 21711 :F) 21712 # 21713 # CONFIG_FILE 21714 # 21715 21716 case $INSTALL in 21717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21719 esac 21720 ac_MKDIR_P=$MKDIR_P 21721 case $MKDIR_P in 21722 [\\/$]* | ?:[\\/]* ) ;; 21723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21724 esac 21725 _ACEOF 21726 21727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21728 # If the template does not know about datarootdir, expand it. 21729 # FIXME: This hack should be removed a few years after 2.60. 21730 ac_datarootdir_hack=; ac_datarootdir_seen= 21731 ac_sed_dataroot=' 21732 /datarootdir/ { 21733 p 21734 q 21735 } 21736 /@datadir@/p 21737 /@docdir@/p 21738 /@infodir@/p 21739 /@localedir@/p 21740 /@mandir@/p' 21741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21742 *datarootdir*) ac_datarootdir_seen=yes;; 21743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21745 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21746 _ACEOF 21747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21748 ac_datarootdir_hack=' 21749 s&@datadir@&$datadir&g 21750 s&@docdir@&$docdir&g 21751 s&@infodir@&$infodir&g 21752 s&@localedir@&$localedir&g 21753 s&@mandir@&$mandir&g 21754 s&\\\${datarootdir}&$datarootdir&g' ;; 21755 esac 21756 _ACEOF 21757 21758 # Neutralize VPATH when '$srcdir' = '.'. 21759 # Shell code in configure.ac might set extrasub. 21760 # FIXME: do we really want to maintain this feature? 21761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21762 ac_sed_extra="$ac_vpsub 21763 $extrasub 21764 _ACEOF 21765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21766 :t 21767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21768 s|@configure_input@|$ac_sed_conf_input|;t t 21769 s&@top_builddir@&$ac_top_builddir_sub&;t t 21770 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21771 s&@srcdir@&$ac_srcdir&;t t 21772 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21773 s&@top_srcdir@&$ac_top_srcdir&;t t 21774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21775 s&@builddir@&$ac_builddir&;t t 21776 s&@abs_builddir@&$ac_abs_builddir&;t t 21777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21778 s&@INSTALL@&$ac_INSTALL&;t t 21779 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21780 $ac_datarootdir_hack 21781 " 21782 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21783 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21784 21785 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21786 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21787 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21788 "$ac_tmp/out"`; test -z "$ac_out"; } && 21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21790 which seems to be undefined. Please make sure it is defined" >&5 21791 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 21792 which seems to be undefined. Please make sure it is defined" >&2;} 21793 21794 rm -f "$ac_tmp/stdin" 21795 case $ac_file in 21796 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21797 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21798 esac \ 21799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21800 ;; 21801 :H) 21802 # 21803 # CONFIG_HEADER 21804 # 21805 if test x"$ac_file" != x-; then 21806 { 21807 printf "%s\n" "/* $configure_input */" >&1 \ 21808 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21809 } >"$ac_tmp/config.h" \ 21810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21811 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21813 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21814 else 21815 rm -f "$ac_file" 21816 mv "$ac_tmp/config.h" "$ac_file" \ 21817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21818 fi 21819 else 21820 printf "%s\n" "/* $configure_input */" >&1 \ 21821 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21822 || as_fn_error $? "could not create -" "$LINENO" 5 21823 fi 21824 # Compute "$ac_file"'s index in $config_headers. 21825 _am_arg="$ac_file" 21826 _am_stamp_count=1 21827 for _am_header in $config_headers :; do 21828 case $_am_header in 21829 $_am_arg | $_am_arg:* ) 21830 break ;; 21831 * ) 21832 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21833 esac 21834 done 21835 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21836 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21837 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21838 X"$_am_arg" : 'X\(//\)$' \| \ 21839 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21840 printf "%s\n" X"$_am_arg" | 21841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21842 s//\1/ 21843 q 21844 } 21845 /^X\(\/\/\)[^/].*/{ 21846 s//\1/ 21847 q 21848 } 21849 /^X\(\/\/\)$/{ 21850 s//\1/ 21851 q 21852 } 21853 /^X\(\/\).*/{ 21854 s//\1/ 21855 q 21856 } 21857 s/.*/./; q'`/stamp-h$_am_stamp_count 21858 ;; 21859 21860 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21861 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21862 ;; 21863 esac 21864 21865 21866 case $ac_file$ac_mode in 21867 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21868 # Older Autoconf quotes --file arguments for eval, but not when files 21869 # are listed without --file. Let's play safe and only enable the eval 21870 # if we detect the quoting. 21871 # TODO: see whether this extra hack can be removed once we start 21872 # requiring Autoconf 2.70 or later. 21873 case $CONFIG_FILES in #( 21874 *\'*) : 21875 eval set x "$CONFIG_FILES" ;; #( 21876 *) : 21877 set x $CONFIG_FILES ;; #( 21878 *) : 21879 ;; 21880 esac 21881 shift 21882 # Used to flag and report bootstrapping failures. 21883 am_rc=0 21884 for am_mf 21885 do 21886 # Strip MF so we end up with the name of the file. 21887 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21888 # Check whether this is an Automake generated Makefile which includes 21889 # dependency-tracking related rules and includes. 21890 # Grep'ing the whole file directly is not great: AIX grep has a line 21891 # limit of 2048, but all sed's we know have understand at least 4000. 21892 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21893 || continue 21894 am_dirpart=`$as_dirname -- "$am_mf" || 21895 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21896 X"$am_mf" : 'X\(//\)[^/]' \| \ 21897 X"$am_mf" : 'X\(//\)$' \| \ 21898 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21899 printf "%s\n" X"$am_mf" | 21900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21901 s//\1/ 21902 q 21903 } 21904 /^X\(\/\/\)[^/].*/{ 21905 s//\1/ 21906 q 21907 } 21908 /^X\(\/\/\)$/{ 21909 s//\1/ 21910 q 21911 } 21912 /^X\(\/\).*/{ 21913 s//\1/ 21914 q 21915 } 21916 s/.*/./; q'` 21917 am_filepart=`$as_basename -- "$am_mf" || 21918 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21919 X"$am_mf" : 'X\(//\)$' \| \ 21920 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21921 printf "%s\n" X/"$am_mf" | 21922 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21923 s//\1/ 21924 q 21925 } 21926 /^X\/\(\/\/\)$/{ 21927 s//\1/ 21928 q 21929 } 21930 /^X\/\(\/\).*/{ 21931 s//\1/ 21932 q 21933 } 21934 s/.*/./; q'` 21935 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21936 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21937 | $MAKE -f - am--depfiles" >&5 21938 (cd "$am_dirpart" \ 21939 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21940 | $MAKE -f - am--depfiles) >&5 2>&5 21941 ac_status=$? 21942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21943 (exit $ac_status); } || am_rc=$? 21944 done 21945 if test $am_rc -ne 0; then 21946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21947 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21948 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21949 for automatic dependency tracking. If GNU make was not used, consider 21950 re-running the configure script with MAKE=\"gmake\" (or whatever is 21951 necessary). You can also try re-running configure with the 21952 '--disable-dependency-tracking' option to at least be able to build 21953 the package (albeit without support for automatic dependency tracking). 21954 See 'config.log' for more details" "$LINENO" 5; } 21955 fi 21956 { am_dirpart=; unset am_dirpart;} 21957 { am_filepart=; unset am_filepart;} 21958 { am_mf=; unset am_mf;} 21959 { am_rc=; unset am_rc;} 21960 rm -f conftest-deps.mk 21961 } 21962 ;; 21963 "libtool":C) 21964 21965 # See if we are running on zsh, and set the options that allow our 21966 # commands through without removal of \ escapes. 21967 if test -n "${ZSH_VERSION+set}"; then 21968 setopt NO_GLOB_SUBST 21969 fi 21970 21971 cfgfile=${ofile}T 21972 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21973 $RM "$cfgfile" 21974 21975 cat <<_LT_EOF >> "$cfgfile" 21976 #! $SHELL 21977 # Generated automatically by $as_me ($PACKAGE) $VERSION 21978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21979 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21980 21981 # Provide generalized library-building support services. 21982 # Written by Gordon Matzigkeit, 1996 21983 21984 # Copyright (C) 2014 Free Software Foundation, Inc. 21985 # This is free software; see the source for copying conditions. There is NO 21986 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21987 21988 # GNU Libtool is free software; you can redistribute it and/or modify 21989 # it under the terms of the GNU General Public License as published by 21990 # the Free Software Foundation; either version 2 of of the License, or 21991 # (at your option) any later version. 21992 # 21993 # As a special exception to the GNU General Public License, if you 21994 # distribute this file as part of a program or library that is built 21995 # using GNU Libtool, you may include this file under the same 21996 # distribution terms that you use for the rest of that program. 21997 # 21998 # GNU Libtool is distributed in the hope that it will be useful, but 21999 # WITHOUT ANY WARRANTY; without even the implied warranty of 22000 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22001 # GNU General Public License for more details. 22002 # 22003 # You should have received a copy of the GNU General Public License 22004 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22005 22006 22007 # The names of the tagged configurations supported by this script. 22008 available_tags='' 22009 22010 # Configured defaults for sys_lib_dlsearch_path munging. 22011 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22012 22013 # ### BEGIN LIBTOOL CONFIG 22014 22015 # Which release of libtool.m4 was used? 22016 macro_version=$macro_version 22017 macro_revision=$macro_revision 22018 22019 # Whether or not to build static libraries. 22020 build_old_libs=$enable_static 22021 22022 # Whether or not to build shared libraries. 22023 build_libtool_libs=$enable_shared 22024 22025 # What type of objects to build. 22026 pic_mode=$pic_mode 22027 22028 # Whether or not to optimize for fast installation. 22029 fast_install=$enable_fast_install 22030 22031 # Shared archive member basename,for filename based shared library versioning on AIX. 22032 shared_archive_member_spec=$shared_archive_member_spec 22033 22034 # Shell to use when invoking shell scripts. 22035 SHELL=$lt_SHELL 22036 22037 # An echo program that protects backslashes. 22038 ECHO=$lt_ECHO 22039 22040 # The PATH separator for the build system. 22041 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22042 22043 # The host system. 22044 host_alias=$host_alias 22045 host=$host 22046 host_os=$host_os 22047 22048 # The build system. 22049 build_alias=$build_alias 22050 build=$build 22051 build_os=$build_os 22052 22053 # A sed program that does not truncate output. 22054 SED=$lt_SED 22055 22056 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22057 Xsed="\$SED -e 1s/^X//" 22058 22059 # A grep program that handles long lines. 22060 GREP=$lt_GREP 22061 22062 # An ERE matcher. 22063 EGREP=$lt_EGREP 22064 22065 # A literal string matcher. 22066 FGREP=$lt_FGREP 22067 22068 # A BSD- or MS-compatible name lister. 22069 NM=$lt_NM 22070 22071 # Whether we need soft or hard links. 22072 LN_S=$lt_LN_S 22073 22074 # What is the maximum length of a command? 22075 max_cmd_len=$max_cmd_len 22076 22077 # Object file suffix (normally "o"). 22078 objext=$ac_objext 22079 22080 # Executable file suffix (normally ""). 22081 exeext=$exeext 22082 22083 # whether the shell understands "unset". 22084 lt_unset=$lt_unset 22085 22086 # turn spaces into newlines. 22087 SP2NL=$lt_lt_SP2NL 22088 22089 # turn newlines into spaces. 22090 NL2SP=$lt_lt_NL2SP 22091 22092 # convert \$build file names to \$host format. 22093 to_host_file_cmd=$lt_cv_to_host_file_cmd 22094 22095 # convert \$build files to toolchain format. 22096 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22097 22098 # A file(cmd) program that detects file types. 22099 FILECMD=$lt_FILECMD 22100 22101 # An object symbol dumper. 22102 OBJDUMP=$lt_OBJDUMP 22103 22104 # Method to check whether dependent libraries are shared objects. 22105 deplibs_check_method=$lt_deplibs_check_method 22106 22107 # Command to use when deplibs_check_method = "file_magic". 22108 file_magic_cmd=$lt_file_magic_cmd 22109 22110 # How to find potential files when deplibs_check_method = "file_magic". 22111 file_magic_glob=$lt_file_magic_glob 22112 22113 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22114 want_nocaseglob=$lt_want_nocaseglob 22115 22116 # DLL creation program. 22117 DLLTOOL=$lt_DLLTOOL 22118 22119 # Command to associate shared and link libraries. 22120 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22121 22122 # The archiver. 22123 AR=$lt_AR 22124 22125 # Flags to create an archive (by configure). 22126 lt_ar_flags=$lt_ar_flags 22127 22128 # Flags to create an archive. 22129 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22130 22131 # How to feed a file listing to the archiver. 22132 archiver_list_spec=$lt_archiver_list_spec 22133 22134 # A symbol stripping program. 22135 STRIP=$lt_STRIP 22136 22137 # Commands used to install an old-style archive. 22138 RANLIB=$lt_RANLIB 22139 old_postinstall_cmds=$lt_old_postinstall_cmds 22140 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22141 22142 # Whether to use a lock for old archive extraction. 22143 lock_old_archive_extraction=$lock_old_archive_extraction 22144 22145 # A C compiler. 22146 LTCC=$lt_CC 22147 22148 # LTCC compiler flags. 22149 LTCFLAGS=$lt_CFLAGS 22150 22151 # Take the output of nm and produce a listing of raw symbols and C names. 22152 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22153 22154 # Transform the output of nm in a proper C declaration. 22155 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22156 22157 # Transform the output of nm into a list of symbols to manually relocate. 22158 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22159 22160 # Transform the output of nm in a C name address pair. 22161 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22162 22163 # Transform the output of nm in a C name address pair when lib prefix is needed. 22164 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22165 22166 # The name lister interface. 22167 nm_interface=$lt_lt_cv_nm_interface 22168 22169 # Specify filename containing input files for \$NM. 22170 nm_file_list_spec=$lt_nm_file_list_spec 22171 22172 # The root where to search for dependent libraries,and where our libraries should be installed. 22173 lt_sysroot=$lt_sysroot 22174 22175 # Command to truncate a binary pipe. 22176 lt_truncate_bin=$lt_lt_cv_truncate_bin 22177 22178 # The name of the directory that contains temporary libtool files. 22179 objdir=$objdir 22180 22181 # Used to examine libraries when file_magic_cmd begins with "file". 22182 MAGIC_CMD=$MAGIC_CMD 22183 22184 # Must we lock files when doing compilation? 22185 need_locks=$lt_need_locks 22186 22187 # Manifest tool. 22188 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22189 22190 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22191 DSYMUTIL=$lt_DSYMUTIL 22192 22193 # Tool to change global to local symbols on Mac OS X. 22194 NMEDIT=$lt_NMEDIT 22195 22196 # Tool to manipulate fat objects and archives on Mac OS X. 22197 LIPO=$lt_LIPO 22198 22199 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22200 OTOOL=$lt_OTOOL 22201 22202 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22203 OTOOL64=$lt_OTOOL64 22204 22205 # Old archive suffix (normally "a"). 22206 libext=$libext 22207 22208 # Shared library suffix (normally ".so"). 22209 shrext_cmds=$lt_shrext_cmds 22210 22211 # The commands to extract the exported symbol list from a shared archive. 22212 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22213 22214 # Variables whose values should be saved in libtool wrapper scripts and 22215 # restored at link time. 22216 variables_saved_for_relink=$lt_variables_saved_for_relink 22217 22218 # Do we need the "lib" prefix for modules? 22219 need_lib_prefix=$need_lib_prefix 22220 22221 # Do we need a version for libraries? 22222 need_version=$need_version 22223 22224 # Library versioning type. 22225 version_type=$version_type 22226 22227 # Shared library runtime path variable. 22228 runpath_var=$runpath_var 22229 22230 # Shared library path variable. 22231 shlibpath_var=$shlibpath_var 22232 22233 # Is shlibpath searched before the hard-coded library search path? 22234 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22235 22236 # Format of library name prefix. 22237 libname_spec=$lt_libname_spec 22238 22239 # List of archive names. First name is the real one, the rest are links. 22240 # The last name is the one that the linker finds with -lNAME 22241 library_names_spec=$lt_library_names_spec 22242 22243 # The coded name of the library, if different from the real name. 22244 soname_spec=$lt_soname_spec 22245 22246 # Permission mode override for installation of shared libraries. 22247 install_override_mode=$lt_install_override_mode 22248 22249 # Command to use after installation of a shared archive. 22250 postinstall_cmds=$lt_postinstall_cmds 22251 22252 # Command to use after uninstallation of a shared archive. 22253 postuninstall_cmds=$lt_postuninstall_cmds 22254 22255 # Commands used to finish a libtool library installation in a directory. 22256 finish_cmds=$lt_finish_cmds 22257 22258 # As "finish_cmds", except a single script fragment to be evaled but 22259 # not shown. 22260 finish_eval=$lt_finish_eval 22261 22262 # Whether we should hardcode library paths into libraries. 22263 hardcode_into_libs=$hardcode_into_libs 22264 22265 # Compile-time system search path for libraries. 22266 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22267 22268 # Detected run-time system search path for libraries. 22269 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22270 22271 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22272 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22273 22274 # Whether dlopen is supported. 22275 dlopen_support=$enable_dlopen 22276 22277 # Whether dlopen of programs is supported. 22278 dlopen_self=$enable_dlopen_self 22279 22280 # Whether dlopen of statically linked programs is supported. 22281 dlopen_self_static=$enable_dlopen_self_static 22282 22283 # Commands to strip libraries. 22284 old_striplib=$lt_old_striplib 22285 striplib=$lt_striplib 22286 22287 22288 # The linker used to build libraries. 22289 LD=$lt_LD 22290 22291 # How to create reloadable object files. 22292 reload_flag=$lt_reload_flag 22293 reload_cmds=$lt_reload_cmds 22294 22295 # Commands used to build an old-style archive. 22296 old_archive_cmds=$lt_old_archive_cmds 22297 22298 # A language specific compiler. 22299 CC=$lt_compiler 22300 22301 # Is the compiler the GNU compiler? 22302 with_gcc=$GCC 22303 22304 # Compiler flag to turn off builtin functions. 22305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22306 22307 # Additional compiler flags for building library objects. 22308 pic_flag=$lt_lt_prog_compiler_pic 22309 22310 # How to pass a linker flag through the compiler. 22311 wl=$lt_lt_prog_compiler_wl 22312 22313 # Compiler flag to prevent dynamic linking. 22314 link_static_flag=$lt_lt_prog_compiler_static 22315 22316 # Does compiler simultaneously support -c and -o options? 22317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22318 22319 # Whether or not to add -lc for building shared libraries. 22320 build_libtool_need_lc=$archive_cmds_need_lc 22321 22322 # Whether or not to disallow shared libs when runtime libs are static. 22323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22324 22325 # Compiler flag to allow reflexive dlopens. 22326 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22327 22328 # Compiler flag to generate shared objects directly from archives. 22329 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22330 22331 # Whether the compiler copes with passing no objects directly. 22332 compiler_needs_object=$lt_compiler_needs_object 22333 22334 # Create an old-style archive from a shared archive. 22335 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22336 22337 # Create a temporary old-style archive to link instead of a shared archive. 22338 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22339 22340 # Commands used to build a shared archive. 22341 archive_cmds=$lt_archive_cmds 22342 archive_expsym_cmds=$lt_archive_expsym_cmds 22343 22344 # Commands used to build a loadable module if different from building 22345 # a shared archive. 22346 module_cmds=$lt_module_cmds 22347 module_expsym_cmds=$lt_module_expsym_cmds 22348 22349 # Whether we are building with GNU ld or not. 22350 with_gnu_ld=$lt_with_gnu_ld 22351 22352 # Flag that allows shared libraries with undefined symbols to be built. 22353 allow_undefined_flag=$lt_allow_undefined_flag 22354 22355 # Flag that enforces no undefined symbols. 22356 no_undefined_flag=$lt_no_undefined_flag 22357 22358 # Flag to hardcode \$libdir into a binary during linking. 22359 # This must work even if \$libdir does not exist 22360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22361 22362 # Whether we need a single "-rpath" flag with a separated argument. 22363 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22364 22365 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22366 # DIR into the resulting binary. 22367 hardcode_direct=$hardcode_direct 22368 22369 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22370 # DIR into the resulting binary and the resulting library dependency is 22371 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 22372 # library is relocated. 22373 hardcode_direct_absolute=$hardcode_direct_absolute 22374 22375 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22376 # into the resulting binary. 22377 hardcode_minus_L=$hardcode_minus_L 22378 22379 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22380 # into the resulting binary. 22381 hardcode_shlibpath_var=$hardcode_shlibpath_var 22382 22383 # Set to "yes" if building a shared library automatically hardcodes DIR 22384 # into the library and all subsequent libraries and executables linked 22385 # against it. 22386 hardcode_automatic=$hardcode_automatic 22387 22388 # Set to yes if linker adds runtime paths of dependent libraries 22389 # to runtime path list. 22390 inherit_rpath=$inherit_rpath 22391 22392 # Whether libtool must link a program against all its dependency libraries. 22393 link_all_deplibs=$link_all_deplibs 22394 22395 # Set to "yes" if exported symbols are required. 22396 always_export_symbols=$always_export_symbols 22397 22398 # The commands to list exported symbols. 22399 export_symbols_cmds=$lt_export_symbols_cmds 22400 22401 # Symbols that should not be listed in the preloaded symbols. 22402 exclude_expsyms=$lt_exclude_expsyms 22403 22404 # Symbols that must always be exported. 22405 include_expsyms=$lt_include_expsyms 22406 22407 # Commands necessary for linking programs (against libraries) with templates. 22408 prelink_cmds=$lt_prelink_cmds 22409 22410 # Commands necessary for finishing linking programs. 22411 postlink_cmds=$lt_postlink_cmds 22412 22413 # Specify filename containing input files. 22414 file_list_spec=$lt_file_list_spec 22415 22416 # How to hardcode a shared library path into an executable. 22417 hardcode_action=$hardcode_action 22418 22419 # ### END LIBTOOL CONFIG 22420 22421 _LT_EOF 22422 22423 cat <<'_LT_EOF' >> "$cfgfile" 22424 22425 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22426 22427 # func_munge_path_list VARIABLE PATH 22428 # ----------------------------------- 22429 # VARIABLE is name of variable containing _space_ separated list of 22430 # directories to be munged by the contents of PATH, which is string 22431 # having a format: 22432 # "DIR[:DIR]:" 22433 # string "DIR[ DIR]" will be prepended to VARIABLE 22434 # ":DIR[:DIR]" 22435 # string "DIR[ DIR]" will be appended to VARIABLE 22436 # "DIRP[:DIRP]::[DIRA:]DIRA" 22437 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22438 # "DIRA[ DIRA]" will be appended to VARIABLE 22439 # "DIR[:DIR]" 22440 # VARIABLE will be replaced by "DIR[ DIR]" 22441 func_munge_path_list () 22442 { 22443 case x$2 in 22444 x) 22445 ;; 22446 *:) 22447 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22448 ;; 22449 x:*) 22450 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22451 ;; 22452 *::*) 22453 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22454 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22455 ;; 22456 *) 22457 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22458 ;; 22459 esac 22460 } 22461 22462 22463 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22464 func_cc_basename () 22465 { 22466 for cc_temp in $*""; do 22467 case $cc_temp in 22468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22470 \-*) ;; 22471 *) break;; 22472 esac 22473 done 22474 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22475 } 22476 22477 22478 # ### END FUNCTIONS SHARED WITH CONFIGURE 22479 22480 _LT_EOF 22481 22482 case $host_os in 22483 aix3*) 22484 cat <<\_LT_EOF >> "$cfgfile" 22485 # AIX sometimes has problems with the GCC collect2 program. For some 22486 # reason, if we set the COLLECT_NAMES environment variable, the problems 22487 # vanish in a puff of smoke. 22488 if test set != "${COLLECT_NAMES+set}"; then 22489 COLLECT_NAMES= 22490 export COLLECT_NAMES 22491 fi 22492 _LT_EOF 22493 ;; 22494 esac 22495 22496 22497 22498 ltmain=$ac_aux_dir/ltmain.sh 22499 22500 22501 # We use sed instead of cat because bash on DJGPP gets confused if 22502 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22503 # text mode, it properly converts lines to CR/LF. This bash problem 22504 # is reportedly fixed, but why not run on old versions too? 22505 $SED '$q' "$ltmain" >> "$cfgfile" \ 22506 || (rm -f "$cfgfile"; exit 1) 22507 22508 mv -f "$cfgfile" "$ofile" || 22509 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22510 chmod +x "$ofile" 22511 22512 ;; 22513 22514 esac 22515 done # for ac_tag 22516 22517 22518 as_fn_exit 0 22519 _ACEOF 22520 ac_clean_files=$ac_clean_files_save 22521 22522 test $ac_write_fail = 0 || 22523 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22524 22525 22526 # configure is writing to config.log, and then calls config.status. 22527 # config.status does its own redirection, appending to config.log. 22528 # Unfortunately, on DOS this fails, as config.log is still kept open 22529 # by configure, so config.status won't be able to write to it; its 22530 # output is simply discarded. So we exec the FD to /dev/null, 22531 # effectively closing config.log, so it can be properly (re)opened and 22532 # appended to by config.status. When coming back to configure, we 22533 # need to make the FD available again. 22534 if test "$no_create" != yes; then 22535 ac_cs_success=: 22536 ac_config_status_args= 22537 test "$silent" = yes && 22538 ac_config_status_args="$ac_config_status_args --quiet" 22539 exec 5>/dev/null 22540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22541 exec 5>>config.log 22542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22543 # would make configure fail if this is the last instruction. 22544 $ac_cs_success || as_fn_exit 1 22545 fi 22546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22548 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22549 fi 22550 22551 22552