1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for xf86-video-nouveau 1.0.18. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/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-nouveau/-/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-nouveau' 617 PACKAGE_TARNAME='xf86-video-nouveau' 618 PACKAGE_VERSION='1.0.18' 619 PACKAGE_STRING='xf86-video-nouveau 1.0.18' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/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 LIBUDEV_FALSE 663 LIBUDEV_TRUE 664 LIBUDEV_LIBS 665 LIBUDEV_CFLAGS 666 PCIACCESS_LIBS 667 PCIACCESS_CFLAGS 668 HAVE_XEXTPROTO_71_FALSE 669 HAVE_XEXTPROTO_71_TRUE 670 XEXT_LIBS 671 XEXT_CFLAGS 672 XORG_LIBS 673 XORG_CFLAGS 674 LIBDRM_NOUVEAU_LIBS 675 LIBDRM_NOUVEAU_CFLAGS 676 LIBDRM_LIBS 677 LIBDRM_CFLAGS 678 LT_SYS_LIBRARY_PATH 679 OTOOL64 680 OTOOL 681 LIPO 682 NMEDIT 683 DSYMUTIL 684 MANIFEST_TOOL 685 RANLIB 686 ac_ct_AR 687 AR 688 DLLTOOL 689 OBJDUMP 690 FILECMD 691 LN_S 692 NM 693 ac_ct_DUMPBIN 694 DUMPBIN 695 LD 696 FGREP 697 EGREP 698 GREP 699 LIBTOOL 700 MAN_SUBSTS 701 XORG_MAN_PAGE 702 ADMIN_MAN_DIR 703 DRIVER_MAN_DIR 704 MISC_MAN_DIR 705 FILE_MAN_DIR 706 LIB_MAN_DIR 707 APP_MAN_DIR 708 ADMIN_MAN_SUFFIX 709 DRIVER_MAN_SUFFIX 710 MISC_MAN_SUFFIX 711 FILE_MAN_SUFFIX 712 LIB_MAN_SUFFIX 713 APP_MAN_SUFFIX 714 SED 715 host_os 716 host_vendor 717 host_cpu 718 host 719 build_os 720 build_vendor 721 build_cpu 722 build 723 INSTALL_CMD 724 PKG_CONFIG_LIBDIR 725 PKG_CONFIG_PATH 726 PKG_CONFIG 727 CHANGELOG_CMD 728 STRICT_CFLAGS 729 CWARNFLAGS 730 BASE_CFLAGS 731 am__fastdepCC_FALSE 732 am__fastdepCC_TRUE 733 CCDEPMODE 734 am__nodep 735 AMDEPBACKSLASH 736 AMDEP_FALSE 737 AMDEP_TRUE 738 am__include 739 DEPDIR 740 OBJEXT 741 EXEEXT 742 ac_ct_CC 743 CPPFLAGS 744 LDFLAGS 745 CFLAGS 746 CC 747 AM_BACKSLASH 748 AM_DEFAULT_VERBOSITY 749 AM_DEFAULT_V 750 AM_V 751 CSCOPE 752 ETAGS 753 CTAGS 754 am__untar 755 am__tar 756 AMTAR 757 am__leading_dot 758 SET_MAKE 759 AWK 760 mkdir_p 761 MKDIR_P 762 INSTALL_STRIP_PROGRAM 763 STRIP 764 install_sh 765 MAKEINFO 766 AUTOHEADER 767 AUTOMAKE 768 AUTOCONF 769 ACLOCAL 770 VERSION 771 PACKAGE 772 CYGPATH_W 773 am__isrc 774 INSTALL_DATA 775 INSTALL_SCRIPT 776 INSTALL_PROGRAM 777 target_alias 778 host_alias 779 build_alias 780 LIBS 781 ECHO_T 782 ECHO_N 783 ECHO_C 784 DEFS 785 mandir 786 localedir 787 libdir 788 psdir 789 pdfdir 790 dvidir 791 htmldir 792 infodir 793 docdir 794 oldincludedir 795 includedir 796 runstatedir 797 localstatedir 798 sharedstatedir 799 sysconfdir 800 datadir 801 datarootdir 802 libexecdir 803 sbindir 804 bindir 805 program_transform_name 806 prefix 807 exec_prefix 808 PACKAGE_URL 809 PACKAGE_BUGREPORT 810 PACKAGE_STRING 811 PACKAGE_VERSION 812 PACKAGE_TARNAME 813 PACKAGE_NAME 814 PATH_SEPARATOR 815 SHELL 816 am__quote' 817 ac_subst_files='' 818 ac_user_opts=' 819 enable_option_checking 820 enable_silent_rules 821 enable_dependency_tracking 822 enable_selective_werror 823 enable_strict_compilation 824 enable_static 825 enable_shared 826 with_pic 827 enable_fast_install 828 with_aix_soname 829 with_gnu_ld 830 with_sysroot 831 enable_libtool_lock 832 with_xorg_module_dir 833 ' 834 ac_precious_vars='build_alias 835 host_alias 836 target_alias 837 CC 838 CFLAGS 839 LDFLAGS 840 LIBS 841 CPPFLAGS 842 PKG_CONFIG 843 PKG_CONFIG_PATH 844 PKG_CONFIG_LIBDIR 845 LT_SYS_LIBRARY_PATH 846 LIBDRM_CFLAGS 847 LIBDRM_LIBS 848 LIBDRM_NOUVEAU_CFLAGS 849 LIBDRM_NOUVEAU_LIBS 850 XORG_CFLAGS 851 XORG_LIBS 852 XEXT_CFLAGS 853 XEXT_LIBS 854 PCIACCESS_CFLAGS 855 PCIACCESS_LIBS 856 LIBUDEV_CFLAGS 857 LIBUDEV_LIBS' 858 859 860 # Initialize some variables set by options. 861 ac_init_help= 862 ac_init_version=false 863 ac_unrecognized_opts= 864 ac_unrecognized_sep= 865 # The variables have the same names as the options, with 866 # dashes changed to underlines. 867 cache_file=/dev/null 868 exec_prefix=NONE 869 no_create= 870 no_recursion= 871 prefix=NONE 872 program_prefix=NONE 873 program_suffix=NONE 874 program_transform_name=s,x,x, 875 silent= 876 site= 877 srcdir= 878 verbose= 879 x_includes=NONE 880 x_libraries=NONE 881 882 # Installation directory options. 883 # These are left unexpanded so users can "make install exec_prefix=/foo" 884 # and all the variables that are supposed to be based on exec_prefix 885 # by default will actually change. 886 # Use braces instead of parens because sh, perl, etc. also accept them. 887 # (The list follows the same order as the GNU Coding Standards.) 888 bindir='${exec_prefix}/bin' 889 sbindir='${exec_prefix}/sbin' 890 libexecdir='${exec_prefix}/libexec' 891 datarootdir='${prefix}/share' 892 datadir='${datarootdir}' 893 sysconfdir='${prefix}/etc' 894 sharedstatedir='${prefix}/com' 895 localstatedir='${prefix}/var' 896 runstatedir='${localstatedir}/run' 897 includedir='${prefix}/include' 898 oldincludedir='/usr/include' 899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 900 infodir='${datarootdir}/info' 901 htmldir='${docdir}' 902 dvidir='${docdir}' 903 pdfdir='${docdir}' 904 psdir='${docdir}' 905 libdir='${exec_prefix}/lib' 906 localedir='${datarootdir}/locale' 907 mandir='${datarootdir}/man' 908 909 ac_prev= 910 ac_dashdash= 911 for ac_option 912 do 913 # If the previous option needs an argument, assign it. 914 if test -n "$ac_prev"; then 915 eval $ac_prev=\$ac_option 916 ac_prev= 917 continue 918 fi 919 920 case $ac_option in 921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 922 *=) ac_optarg= ;; 923 *) ac_optarg=yes ;; 924 esac 925 926 case $ac_dashdash$ac_option in 927 --) 928 ac_dashdash=yes ;; 929 930 -bindir | --bindir | --bindi | --bind | --bin | --bi) 931 ac_prev=bindir ;; 932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 933 bindir=$ac_optarg ;; 934 935 -build | --build | --buil | --bui | --bu) 936 ac_prev=build_alias ;; 937 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 938 build_alias=$ac_optarg ;; 939 940 -cache-file | --cache-file | --cache-fil | --cache-fi \ 941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 942 ac_prev=cache_file ;; 943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 945 cache_file=$ac_optarg ;; 946 947 --config-cache | -C) 948 cache_file=config.cache ;; 949 950 -datadir | --datadir | --datadi | --datad) 951 ac_prev=datadir ;; 952 -datadir=* | --datadir=* | --datadi=* | --datad=*) 953 datadir=$ac_optarg ;; 954 955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 956 | --dataroo | --dataro | --datar) 957 ac_prev=datarootdir ;; 958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 960 datarootdir=$ac_optarg ;; 961 962 -disable-* | --disable-*) 963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 964 # Reject names that are not valid shell variable names. 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 966 as_fn_error $? "invalid feature name: '$ac_useropt'" 967 ac_useropt_orig=$ac_useropt 968 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 969 case $ac_user_opts in 970 *" 971 "enable_$ac_useropt" 972 "*) ;; 973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 974 ac_unrecognized_sep=', ';; 975 esac 976 eval enable_$ac_useropt=no ;; 977 978 -docdir | --docdir | --docdi | --doc | --do) 979 ac_prev=docdir ;; 980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 981 docdir=$ac_optarg ;; 982 983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 984 ac_prev=dvidir ;; 985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 986 dvidir=$ac_optarg ;; 987 988 -enable-* | --enable-*) 989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 990 # Reject names that are not valid shell variable names. 991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 992 as_fn_error $? "invalid feature name: '$ac_useropt'" 993 ac_useropt_orig=$ac_useropt 994 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 995 case $ac_user_opts in 996 *" 997 "enable_$ac_useropt" 998 "*) ;; 999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1000 ac_unrecognized_sep=', ';; 1001 esac 1002 eval enable_$ac_useropt=\$ac_optarg ;; 1003 1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1006 | --exec | --exe | --ex) 1007 ac_prev=exec_prefix ;; 1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1010 | --exec=* | --exe=* | --ex=*) 1011 exec_prefix=$ac_optarg ;; 1012 1013 -gas | --gas | --ga | --g) 1014 # Obsolete; use --with-gas. 1015 with_gas=yes ;; 1016 1017 -help | --help | --hel | --he | -h) 1018 ac_init_help=long ;; 1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1020 ac_init_help=recursive ;; 1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1022 ac_init_help=short ;; 1023 1024 -host | --host | --hos | --ho) 1025 ac_prev=host_alias ;; 1026 -host=* | --host=* | --hos=* | --ho=*) 1027 host_alias=$ac_optarg ;; 1028 1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1030 ac_prev=htmldir ;; 1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1032 | --ht=*) 1033 htmldir=$ac_optarg ;; 1034 1035 -includedir | --includedir | --includedi | --included | --include \ 1036 | --includ | --inclu | --incl | --inc) 1037 ac_prev=includedir ;; 1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1039 | --includ=* | --inclu=* | --incl=* | --inc=*) 1040 includedir=$ac_optarg ;; 1041 1042 -infodir | --infodir | --infodi | --infod | --info | --inf) 1043 ac_prev=infodir ;; 1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1045 infodir=$ac_optarg ;; 1046 1047 -libdir | --libdir | --libdi | --libd) 1048 ac_prev=libdir ;; 1049 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1050 libdir=$ac_optarg ;; 1051 1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1053 | --libexe | --libex | --libe) 1054 ac_prev=libexecdir ;; 1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1056 | --libexe=* | --libex=* | --libe=*) 1057 libexecdir=$ac_optarg ;; 1058 1059 -localedir | --localedir | --localedi | --localed | --locale) 1060 ac_prev=localedir ;; 1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1062 localedir=$ac_optarg ;; 1063 1064 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1065 | --localstate | --localstat | --localsta | --localst | --locals) 1066 ac_prev=localstatedir ;; 1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1069 localstatedir=$ac_optarg ;; 1070 1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1072 ac_prev=mandir ;; 1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1074 mandir=$ac_optarg ;; 1075 1076 -nfp | --nfp | --nf) 1077 # Obsolete; use --without-fp. 1078 with_fp=no ;; 1079 1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1081 | --no-cr | --no-c | -n) 1082 no_create=yes ;; 1083 1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1086 no_recursion=yes ;; 1087 1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1090 | --oldin | --oldi | --old | --ol | --o) 1091 ac_prev=oldincludedir ;; 1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1095 oldincludedir=$ac_optarg ;; 1096 1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1098 ac_prev=prefix ;; 1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1100 prefix=$ac_optarg ;; 1101 1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1103 | --program-pre | --program-pr | --program-p) 1104 ac_prev=program_prefix ;; 1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1107 program_prefix=$ac_optarg ;; 1108 1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1110 | --program-suf | --program-su | --program-s) 1111 ac_prev=program_suffix ;; 1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1114 program_suffix=$ac_optarg ;; 1115 1116 -program-transform-name | --program-transform-name \ 1117 | --program-transform-nam | --program-transform-na \ 1118 | --program-transform-n | --program-transform- \ 1119 | --program-transform | --program-transfor \ 1120 | --program-transfo | --program-transf \ 1121 | --program-trans | --program-tran \ 1122 | --progr-tra | --program-tr | --program-t) 1123 ac_prev=program_transform_name ;; 1124 -program-transform-name=* | --program-transform-name=* \ 1125 | --program-transform-nam=* | --program-transform-na=* \ 1126 | --program-transform-n=* | --program-transform-=* \ 1127 | --program-transform=* | --program-transfor=* \ 1128 | --program-transfo=* | --program-transf=* \ 1129 | --program-trans=* | --program-tran=* \ 1130 | --progr-tra=* | --program-tr=* | --program-t=*) 1131 program_transform_name=$ac_optarg ;; 1132 1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1134 ac_prev=pdfdir ;; 1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1136 pdfdir=$ac_optarg ;; 1137 1138 -psdir | --psdir | --psdi | --psd | --ps) 1139 ac_prev=psdir ;; 1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1141 psdir=$ac_optarg ;; 1142 1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1144 | -silent | --silent | --silen | --sile | --sil) 1145 silent=yes ;; 1146 1147 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1148 | --runstate | --runstat | --runsta | --runst | --runs \ 1149 | --run | --ru | --r) 1150 ac_prev=runstatedir ;; 1151 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1152 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1153 | --run=* | --ru=* | --r=*) 1154 runstatedir=$ac_optarg ;; 1155 1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1157 ac_prev=sbindir ;; 1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1159 | --sbi=* | --sb=*) 1160 sbindir=$ac_optarg ;; 1161 1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1164 | --sharedst | --shareds | --shared | --share | --shar \ 1165 | --sha | --sh) 1166 ac_prev=sharedstatedir ;; 1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1170 | --sha=* | --sh=*) 1171 sharedstatedir=$ac_optarg ;; 1172 1173 -site | --site | --sit) 1174 ac_prev=site ;; 1175 -site=* | --site=* | --sit=*) 1176 site=$ac_optarg ;; 1177 1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1179 ac_prev=srcdir ;; 1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1181 srcdir=$ac_optarg ;; 1182 1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1184 | --syscon | --sysco | --sysc | --sys | --sy) 1185 ac_prev=sysconfdir ;; 1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1188 sysconfdir=$ac_optarg ;; 1189 1190 -target | --target | --targe | --targ | --tar | --ta | --t) 1191 ac_prev=target_alias ;; 1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1193 target_alias=$ac_optarg ;; 1194 1195 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1196 verbose=yes ;; 1197 1198 -version | --version | --versio | --versi | --vers | -V) 1199 ac_init_version=: ;; 1200 1201 -with-* | --with-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid package name: '$ac_useropt'" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210 "with_$ac_useropt" 1211 "*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=\$ac_optarg ;; 1216 1217 -without-* | --without-*) 1218 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1219 # Reject names that are not valid shell variable names. 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1221 as_fn_error $? "invalid package name: '$ac_useropt'" 1222 ac_useropt_orig=$ac_useropt 1223 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1224 case $ac_user_opts in 1225 *" 1226 "with_$ac_useropt" 1227 "*) ;; 1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1229 ac_unrecognized_sep=', ';; 1230 esac 1231 eval with_$ac_useropt=no ;; 1232 1233 --x) 1234 # Obsolete; use --with-x. 1235 with_x=yes ;; 1236 1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1238 | --x-incl | --x-inc | --x-in | --x-i) 1239 ac_prev=x_includes ;; 1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1242 x_includes=$ac_optarg ;; 1243 1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1246 ac_prev=x_libraries ;; 1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1249 x_libraries=$ac_optarg ;; 1250 1251 -*) as_fn_error $? "unrecognized option: '$ac_option' 1252 Try '$0 --help' for more information" 1253 ;; 1254 1255 *=*) 1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1257 # Reject names that are not valid shell variable names. 1258 case $ac_envvar in #( 1259 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1260 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1261 esac 1262 eval $ac_envvar=\$ac_optarg 1263 export $ac_envvar ;; 1264 1265 *) 1266 # FIXME: should be removed in autoconf 3.0. 1267 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1269 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1270 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1271 ;; 1272 1273 esac 1274 done 1275 1276 if test -n "$ac_prev"; then 1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1278 as_fn_error $? "missing argument to $ac_option" 1279 fi 1280 1281 if test -n "$ac_unrecognized_opts"; then 1282 case $enable_option_checking in 1283 no) ;; 1284 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1285 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1286 esac 1287 fi 1288 1289 # Check all directory arguments for consistency. 1290 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1291 datadir sysconfdir sharedstatedir localstatedir includedir \ 1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1293 libdir localedir mandir runstatedir 1294 do 1295 eval ac_val=\$$ac_var 1296 # Remove trailing slashes. 1297 case $ac_val in 1298 */ ) 1299 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1300 eval $ac_var=\$ac_val;; 1301 esac 1302 # Be sure to have absolute directory names. 1303 case $ac_val in 1304 [\\/$]* | ?:[\\/]* ) continue;; 1305 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1306 esac 1307 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1308 done 1309 1310 # There might be people who depend on the old broken behavior: '$host' 1311 # used to hold the argument of --host etc. 1312 # FIXME: To remove some day. 1313 build=$build_alias 1314 host=$host_alias 1315 target=$target_alias 1316 1317 # FIXME: To remove some day. 1318 if test "x$host_alias" != x; then 1319 if test "x$build_alias" = x; then 1320 cross_compiling=maybe 1321 elif test "x$build_alias" != "x$host_alias"; then 1322 cross_compiling=yes 1323 fi 1324 fi 1325 1326 ac_tool_prefix= 1327 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1328 1329 test "$silent" = yes && exec 6>/dev/null 1330 1331 1332 ac_pwd=`pwd` && test -n "$ac_pwd" && 1333 ac_ls_di=`ls -di .` && 1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1335 as_fn_error $? "working directory cannot be determined" 1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1337 as_fn_error $? "pwd does not report name of working directory" 1338 1339 1340 # Find the source files, if location was not specified. 1341 if test -z "$srcdir"; then 1342 ac_srcdir_defaulted=yes 1343 # Try the directory containing this script, then the parent directory. 1344 ac_confdir=`$as_dirname -- "$as_myself" || 1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1346 X"$as_myself" : 'X\(//\)[^/]' \| \ 1347 X"$as_myself" : 'X\(//\)$' \| \ 1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1349 printf "%s\n" X"$as_myself" | 1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1351 s//\1/ 1352 q 1353 } 1354 /^X\(\/\/\)[^/].*/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)$/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\).*/{ 1363 s//\1/ 1364 q 1365 } 1366 s/.*/./; q'` 1367 srcdir=$ac_confdir 1368 if test ! -r "$srcdir/$ac_unique_file"; then 1369 srcdir=.. 1370 fi 1371 else 1372 ac_srcdir_defaulted=no 1373 fi 1374 if test ! -r "$srcdir/$ac_unique_file"; then 1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1376 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1377 fi 1378 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1379 ac_abs_confdir=`( 1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1381 pwd)` 1382 # When building in place, set srcdir=. 1383 if test "$ac_abs_confdir" = "$ac_pwd"; then 1384 srcdir=. 1385 fi 1386 # Remove unnecessary trailing slashes from srcdir. 1387 # Double slashes in file names in object file debugging info 1388 # mess up M-x gdb in Emacs. 1389 case $srcdir in 1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1391 esac 1392 for ac_var in $ac_precious_vars; do 1393 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_env_${ac_var}_value=\$${ac_var} 1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1396 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1397 done 1398 1399 # 1400 # Report the --help message. 1401 # 1402 if test "$ac_init_help" = "long"; then 1403 # Omit some internal or obsolete options to make the list less imposing. 1404 # This message is too long to be a string in the A/UX 3.1 sh. 1405 cat <<_ACEOF 1406 'configure' configures xf86-video-nouveau 1.0.18 to adapt to many kinds of systems. 1407 1408 Usage: $0 [OPTION]... [VAR=VALUE]... 1409 1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1411 VAR=VALUE. See below for descriptions of some of the useful variables. 1412 1413 Defaults for the options are specified in brackets. 1414 1415 Configuration: 1416 -h, --help display this help and exit 1417 --help=short display options specific to this package 1418 --help=recursive display the short help of all the included packages 1419 -V, --version display version information and exit 1420 -q, --quiet, --silent do not print 'checking ...' messages 1421 --cache-file=FILE cache test results in FILE [disabled] 1422 -C, --config-cache alias for '--cache-file=config.cache' 1423 -n, --no-create do not create output files 1424 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1425 1426 Installation directories: 1427 --prefix=PREFIX install architecture-independent files in PREFIX 1428 [$ac_default_prefix] 1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1430 [PREFIX] 1431 1432 By default, 'make install' will install all the files in 1433 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1434 an installation prefix other than '$ac_default_prefix' using '--prefix', 1435 for instance '--prefix=\$HOME'. 1436 1437 For better control, use the options below. 1438 1439 Fine tuning of the installation directories: 1440 --bindir=DIR user executables [EPREFIX/bin] 1441 --sbindir=DIR system admin executables [EPREFIX/sbin] 1442 --libexecdir=DIR program executables [EPREFIX/libexec] 1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1446 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1447 --libdir=DIR object code libraries [EPREFIX/lib] 1448 --includedir=DIR C header files [PREFIX/include] 1449 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1452 --infodir=DIR info documentation [DATAROOTDIR/info] 1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1454 --mandir=DIR man documentation [DATAROOTDIR/man] 1455 --docdir=DIR documentation root 1456 [DATAROOTDIR/doc/xf86-video-nouveau] 1457 --htmldir=DIR html documentation [DOCDIR] 1458 --dvidir=DIR dvi documentation [DOCDIR] 1459 --pdfdir=DIR pdf documentation [DOCDIR] 1460 --psdir=DIR ps documentation [DOCDIR] 1461 _ACEOF 1462 1463 cat <<\_ACEOF 1464 1465 Program names: 1466 --program-prefix=PREFIX prepend PREFIX to installed program names 1467 --program-suffix=SUFFIX append SUFFIX to installed program names 1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1469 1470 System types: 1471 --build=BUILD configure for building on BUILD [guessed] 1472 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1473 _ACEOF 1474 fi 1475 1476 if test -n "$ac_init_help"; then 1477 case $ac_init_help in 1478 short | recursive ) echo "Configuration of xf86-video-nouveau 1.0.18:";; 1479 esac 1480 cat <<\_ACEOF 1481 1482 Optional Features: 1483 --disable-option-checking ignore unrecognized --enable/--with options 1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1486 --enable-silent-rules less verbose build output (undo: "make V=1") 1487 --disable-silent-rules verbose build output (undo: "make V=0") 1488 --enable-dependency-tracking 1489 do not reject slow dependency extractors 1490 --disable-dependency-tracking 1491 speeds up one-time build 1492 --disable-selective-werror 1493 Turn off selective compiler errors. (default: 1494 enabled) 1495 --enable-strict-compilation 1496 Enable all warnings from compiler and make them 1497 errors (default: disabled) 1498 --enable-static[=PKGS] build static libraries [default=no] 1499 --enable-shared[=PKGS] build shared libraries [default=yes] 1500 --enable-fast-install[=PKGS] 1501 optimize for fast installation [default=yes] 1502 --disable-libtool-lock avoid locking (might break parallel builds) 1503 1504 Optional Packages: 1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1507 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1508 both] 1509 --with-aix-soname=aix|svr4|both 1510 shared library versioning (aka "SONAME") variant to 1511 provide on AIX, [default=aix]. 1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1513 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1514 compiler's sysroot if not specified). 1515 --with-xorg-module-dir=DIR 1516 Default xorg module directory 1517 [[default=$libdir/xorg/modules]] 1518 1519 Some influential environment variables: 1520 CC C compiler command 1521 CFLAGS C compiler flags 1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1523 nonstandard directory <lib dir> 1524 LIBS libraries to pass to the linker, e.g. -l<library> 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1526 you have headers in a nonstandard directory <include dir> 1527 PKG_CONFIG path to pkg-config utility 1528 PKG_CONFIG_PATH 1529 directories to add to pkg-config's search path 1530 PKG_CONFIG_LIBDIR 1531 path overriding pkg-config's built-in search path 1532 LT_SYS_LIBRARY_PATH 1533 User-defined run-time library search path. 1534 LIBDRM_CFLAGS 1535 C compiler flags for LIBDRM, overriding pkg-config 1536 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config 1537 LIBDRM_NOUVEAU_CFLAGS 1538 C compiler flags for LIBDRM_NOUVEAU, overriding pkg-config 1539 LIBDRM_NOUVEAU_LIBS 1540 linker flags for LIBDRM_NOUVEAU, overriding pkg-config 1541 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1542 XORG_LIBS linker flags for XORG, overriding pkg-config 1543 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1544 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1545 PCIACCESS_CFLAGS 1546 C compiler flags for PCIACCESS, overriding pkg-config 1547 PCIACCESS_LIBS 1548 linker flags for PCIACCESS, overriding pkg-config 1549 LIBUDEV_CFLAGS 1550 C compiler flags for LIBUDEV, overriding pkg-config 1551 LIBUDEV_LIBS 1552 linker flags for LIBUDEV, overriding pkg-config 1553 1554 Use these variables to override the choices made by 'configure' or to help 1555 it to find libraries and programs with nonstandard names/locations. 1556 1557 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/issues/>. 1558 _ACEOF 1559 ac_status=$? 1560 fi 1561 1562 if test "$ac_init_help" = "recursive"; then 1563 # If there are subdirs, report their specific --help. 1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1565 test -d "$ac_dir" || 1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1567 continue 1568 ac_builddir=. 1569 1570 case "$ac_dir" in 1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1572 *) 1573 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1574 # A ".." for each directory in $ac_dir_suffix. 1575 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1576 case $ac_top_builddir_sub in 1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1579 esac ;; 1580 esac 1581 ac_abs_top_builddir=$ac_pwd 1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1583 # for backward compatibility: 1584 ac_top_builddir=$ac_top_build_prefix 1585 1586 case $srcdir in 1587 .) # We are building in place. 1588 ac_srcdir=. 1589 ac_top_srcdir=$ac_top_builddir_sub 1590 ac_abs_top_srcdir=$ac_pwd ;; 1591 [\\/]* | ?:[\\/]* ) # Absolute name. 1592 ac_srcdir=$srcdir$ac_dir_suffix; 1593 ac_top_srcdir=$srcdir 1594 ac_abs_top_srcdir=$srcdir ;; 1595 *) # Relative name. 1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1597 ac_top_srcdir=$ac_top_build_prefix$srcdir 1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1599 esac 1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1601 1602 cd "$ac_dir" || { ac_status=$?; continue; } 1603 # Check for configure.gnu first; this name is used for a wrapper for 1604 # Metaconfig's "Configure" on case-insensitive file systems. 1605 if test -f "$ac_srcdir/configure.gnu"; then 1606 echo && 1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1608 elif test -f "$ac_srcdir/configure"; then 1609 echo && 1610 $SHELL "$ac_srcdir/configure" --help=recursive 1611 else 1612 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1613 fi || ac_status=$? 1614 cd "$ac_pwd" || { ac_status=$?; break; } 1615 done 1616 fi 1617 1618 test -n "$ac_init_help" && exit $ac_status 1619 if $ac_init_version; then 1620 cat <<\_ACEOF 1621 xf86-video-nouveau configure 1.0.18 1622 generated by GNU Autoconf 2.72 1623 1624 Copyright (C) 2023 Free Software Foundation, Inc. 1625 This configure script is free software; the Free Software Foundation 1626 gives unlimited permission to copy, distribute and modify it. 1627 _ACEOF 1628 exit 1629 fi 1630 1631 ## ------------------------ ## 1632 ## Autoconf initialization. ## 1633 ## ------------------------ ## 1634 1635 # ac_fn_c_try_compile LINENO 1636 # -------------------------- 1637 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1638 ac_fn_c_try_compile () 1639 { 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 rm -f conftest.$ac_objext conftest.beam 1642 if { { ac_try="$ac_compile" 1643 case "(($ac_try" in 1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1645 *) ac_try_echo=$ac_try;; 1646 esac 1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1648 printf "%s\n" "$ac_try_echo"; } >&5 1649 (eval "$ac_compile") 2>conftest.err 1650 ac_status=$? 1651 if test -s conftest.err; then 1652 grep -v '^ *+' conftest.err >conftest.er1 1653 cat conftest.er1 >&5 1654 mv -f conftest.er1 conftest.err 1655 fi 1656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1657 test $ac_status = 0; } && { 1658 test -z "$ac_c_werror_flag" || 1659 test ! -s conftest.err 1660 } && test -s conftest.$ac_objext 1661 then : 1662 ac_retval=0 1663 else case e in #( 1664 e) printf "%s\n" "$as_me: failed program was:" >&5 1665 sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 ;; 1668 esac 1669 fi 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673 } # ac_fn_c_try_compile 1674 1675 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1676 # ------------------------------------------------------------------ 1677 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1678 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1679 ac_fn_check_decl () 1680 { 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 as_decl_name=`echo $2|sed 's/ *(.*//'` 1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1684 printf %s "checking whether $as_decl_name is declared... " >&6; } 1685 if eval test \${$3+y} 1686 then : 1687 printf %s "(cached) " >&6 1688 else case e in #( 1689 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1690 eval ac_save_FLAGS=\$$6 1691 as_fn_append $6 " $5" 1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1693 /* end confdefs.h. */ 1694 $4 1695 int 1696 main (void) 1697 { 1698 #ifndef $as_decl_name 1699 #ifdef __cplusplus 1700 (void) $as_decl_use; 1701 #else 1702 (void) $as_decl_name; 1703 #endif 1704 #endif 1705 1706 ; 1707 return 0; 1708 } 1709 _ACEOF 1710 if ac_fn_c_try_compile "$LINENO" 1711 then : 1712 eval "$3=yes" 1713 else case e in #( 1714 e) eval "$3=no" ;; 1715 esac 1716 fi 1717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1718 eval $6=\$ac_save_FLAGS 1719 ;; 1720 esac 1721 fi 1722 eval ac_res=\$$3 1723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1724 printf "%s\n" "$ac_res" >&6; } 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 1727 } # ac_fn_check_decl 1728 1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1730 # ------------------------------------------------------- 1731 # Tests whether HEADER exists and can be compiled using the include files in 1732 # INCLUDES, setting the cache variable VAR accordingly. 1733 ac_fn_c_check_header_compile () 1734 { 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1737 printf %s "checking for $2... " >&6; } 1738 if eval test \${$3+y} 1739 then : 1740 printf %s "(cached) " >&6 1741 else case e in #( 1742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1743 /* end confdefs.h. */ 1744 $4 1745 #include <$2> 1746 _ACEOF 1747 if ac_fn_c_try_compile "$LINENO" 1748 then : 1749 eval "$3=yes" 1750 else case e in #( 1751 e) eval "$3=no" ;; 1752 esac 1753 fi 1754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1755 esac 1756 fi 1757 eval ac_res=\$$3 1758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1759 printf "%s\n" "$ac_res" >&6; } 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 1762 } # ac_fn_c_check_header_compile 1763 1764 # ac_fn_c_try_link LINENO 1765 # ----------------------- 1766 # Try to link conftest.$ac_ext, and return whether this succeeded. 1767 ac_fn_c_try_link () 1768 { 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1771 if { { ac_try="$ac_link" 1772 case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775 esac 1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777 printf "%s\n" "$ac_try_echo"; } >&5 1778 (eval "$ac_link") 2>conftest.err 1779 ac_status=$? 1780 if test -s conftest.err; then 1781 grep -v '^ *+' conftest.err >conftest.er1 1782 cat conftest.er1 >&5 1783 mv -f conftest.er1 conftest.err 1784 fi 1785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { 1787 test -z "$ac_c_werror_flag" || 1788 test ! -s conftest.err 1789 } && test -s conftest$ac_exeext && { 1790 test "$cross_compiling" = yes || 1791 test -x conftest$ac_exeext 1792 } 1793 then : 1794 ac_retval=0 1795 else case e in #( 1796 e) printf "%s\n" "$as_me: failed program was:" >&5 1797 sed 's/^/| /' conftest.$ac_ext >&5 1798 1799 ac_retval=1 ;; 1800 esac 1801 fi 1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1804 # interfere with the next link command; also delete a directory that is 1805 # left behind by Apple's compiler. We do this before executing the actions. 1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 as_fn_set_status $ac_retval 1809 1810 } # ac_fn_c_try_link 1811 1812 # ac_fn_c_check_func LINENO FUNC VAR 1813 # ---------------------------------- 1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1815 ac_fn_c_check_func () 1816 { 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1819 printf %s "checking for $2... " >&6; } 1820 if eval test \${$3+y} 1821 then : 1822 printf %s "(cached) " >&6 1823 else case e in #( 1824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825 /* end confdefs.h. */ 1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1828 #define $2 innocuous_$2 1829 1830 /* System header to define __stub macros and hopefully few prototypes, 1831 which can conflict with char $2 (void); below. */ 1832 1833 #include <limits.h> 1834 #undef $2 1835 1836 /* Override any GCC internal prototype to avoid an error. 1837 Use char because int might match the return type of a GCC 1838 builtin and then its argument prototype would still apply. */ 1839 #ifdef __cplusplus 1840 extern "C" 1841 #endif 1842 char $2 (void); 1843 /* The GNU C library defines this for functions which it implements 1844 to always fail with ENOSYS. Some functions are actually named 1845 something starting with __ and the normal name is an alias. */ 1846 #if defined __stub_$2 || defined __stub___$2 1847 choke me 1848 #endif 1849 1850 int 1851 main (void) 1852 { 1853 return $2 (); 1854 ; 1855 return 0; 1856 } 1857 _ACEOF 1858 if ac_fn_c_try_link "$LINENO" 1859 then : 1860 eval "$3=yes" 1861 else case e in #( 1862 e) eval "$3=no" ;; 1863 esac 1864 fi 1865 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1866 conftest$ac_exeext conftest.$ac_ext ;; 1867 esac 1868 fi 1869 eval ac_res=\$$3 1870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871 printf "%s\n" "$ac_res" >&6; } 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 1874 } # ac_fn_c_check_func 1875 ac_configure_args_raw= 1876 for ac_arg 1877 do 1878 case $ac_arg in 1879 *\'*) 1880 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1881 esac 1882 as_fn_append ac_configure_args_raw " '$ac_arg'" 1883 done 1884 1885 case $ac_configure_args_raw in 1886 *$as_nl*) 1887 ac_safe_unquote= ;; 1888 *) 1889 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1890 ac_unsafe_a="$ac_unsafe_z#~" 1891 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1892 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1893 esac 1894 1895 cat >config.log <<_ACEOF 1896 This file contains any messages produced by compilers while 1897 running configure, to aid debugging if configure makes a mistake. 1898 1899 It was created by xf86-video-nouveau $as_me 1.0.18, which was 1900 generated by GNU Autoconf 2.72. Invocation command line was 1901 1902 $ $0$ac_configure_args_raw 1903 1904 _ACEOF 1905 exec 5>>config.log 1906 { 1907 cat <<_ASUNAME 1908 ## --------- ## 1909 ## Platform. ## 1910 ## --------- ## 1911 1912 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1913 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1914 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1915 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1916 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1917 1918 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1919 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1920 1921 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1922 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1923 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1924 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1925 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1926 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1927 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1928 1929 _ASUNAME 1930 1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1932 for as_dir in $PATH 1933 do 1934 IFS=$as_save_IFS 1935 case $as_dir in #((( 1936 '') as_dir=./ ;; 1937 */) ;; 1938 *) as_dir=$as_dir/ ;; 1939 esac 1940 printf "%s\n" "PATH: $as_dir" 1941 done 1942 IFS=$as_save_IFS 1943 1944 } >&5 1945 1946 cat >&5 <<_ACEOF 1947 1948 1949 ## ----------- ## 1950 ## Core tests. ## 1951 ## ----------- ## 1952 1953 _ACEOF 1954 1955 1956 # Keep a trace of the command line. 1957 # Strip out --no-create and --no-recursion so they do not pile up. 1958 # Strip out --silent because we don't want to record it for future runs. 1959 # Also quote any args containing shell meta-characters. 1960 # Make two passes to allow for proper duplicate-argument suppression. 1961 ac_configure_args= 1962 ac_configure_args0= 1963 ac_configure_args1= 1964 ac_must_keep_next=false 1965 for ac_pass in 1 2 1966 do 1967 for ac_arg 1968 do 1969 case $ac_arg in 1970 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1972 | -silent | --silent | --silen | --sile | --sil) 1973 continue ;; 1974 *\'*) 1975 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1976 esac 1977 case $ac_pass in 1978 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1979 2) 1980 as_fn_append ac_configure_args1 " '$ac_arg'" 1981 if test $ac_must_keep_next = true; then 1982 ac_must_keep_next=false # Got value, back to normal. 1983 else 1984 case $ac_arg in 1985 *=* | --config-cache | -C | -disable-* | --disable-* \ 1986 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1987 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1988 | -with-* | --with-* | -without-* | --without-* | --x) 1989 case "$ac_configure_args0 " in 1990 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1991 esac 1992 ;; 1993 -* ) ac_must_keep_next=true ;; 1994 esac 1995 fi 1996 as_fn_append ac_configure_args " '$ac_arg'" 1997 ;; 1998 esac 1999 done 2000 done 2001 { ac_configure_args0=; unset ac_configure_args0;} 2002 { ac_configure_args1=; unset ac_configure_args1;} 2003 2004 # When interrupted or exit'd, cleanup temporary files, and complete 2005 # config.log. We remove comments because anyway the quotes in there 2006 # would cause problems or look ugly. 2007 # WARNING: Use '\'' to represent an apostrophe within the trap. 2008 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2009 trap 'exit_status=$? 2010 # Sanitize IFS. 2011 IFS=" "" $as_nl" 2012 # Save into config.log some information that might help in debugging. 2013 { 2014 echo 2015 2016 printf "%s\n" "## ---------------- ## 2017 ## Cache variables. ## 2018 ## ---------------- ##" 2019 echo 2020 # The following way of writing the cache mishandles newlines in values, 2021 ( 2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2023 eval ac_val=\$$ac_var 2024 case $ac_val in #( 2025 *${as_nl}*) 2026 case $ac_var in #( 2027 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2028 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2029 esac 2030 case $ac_var in #( 2031 _ | IFS | as_nl) ;; #( 2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2033 *) { eval $ac_var=; unset $ac_var;} ;; 2034 esac ;; 2035 esac 2036 done 2037 (set) 2>&1 | 2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2039 *${as_nl}ac_space=\ *) 2040 sed -n \ 2041 "s/'\''/'\''\\\\'\'''\''/g; 2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2043 ;; #( 2044 *) 2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2046 ;; 2047 esac | 2048 sort 2049 ) 2050 echo 2051 2052 printf "%s\n" "## ----------------- ## 2053 ## Output variables. ## 2054 ## ----------------- ##" 2055 echo 2056 for ac_var in $ac_subst_vars 2057 do 2058 eval ac_val=\$$ac_var 2059 case $ac_val in 2060 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2061 esac 2062 printf "%s\n" "$ac_var='\''$ac_val'\''" 2063 done | sort 2064 echo 2065 2066 if test -n "$ac_subst_files"; then 2067 printf "%s\n" "## ------------------- ## 2068 ## File substitutions. ## 2069 ## ------------------- ##" 2070 echo 2071 for ac_var in $ac_subst_files 2072 do 2073 eval ac_val=\$$ac_var 2074 case $ac_val in 2075 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2076 esac 2077 printf "%s\n" "$ac_var='\''$ac_val'\''" 2078 done | sort 2079 echo 2080 fi 2081 2082 if test -s confdefs.h; then 2083 printf "%s\n" "## ----------- ## 2084 ## confdefs.h. ## 2085 ## ----------- ##" 2086 echo 2087 cat confdefs.h 2088 echo 2089 fi 2090 test "$ac_signal" != 0 && 2091 printf "%s\n" "$as_me: caught signal $ac_signal" 2092 printf "%s\n" "$as_me: exit $exit_status" 2093 } >&5 2094 rm -f core *.core core.conftest.* && 2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2096 exit $exit_status 2097 ' 0 2098 for ac_signal in 1 2 13 15; do 2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2100 done 2101 ac_signal=0 2102 2103 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2104 rm -f -r conftest* confdefs.h 2105 2106 printf "%s\n" "/* confdefs.h */" > confdefs.h 2107 2108 # Predefined preprocessor variables. 2109 2110 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2111 2112 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2113 2114 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2115 2116 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2117 2118 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2119 2120 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2121 2122 2123 # Let the site file select an alternate cache file if it wants to. 2124 # Prefer an explicitly selected file to automatically selected ones. 2125 if test -n "$CONFIG_SITE"; then 2126 ac_site_files="$CONFIG_SITE" 2127 elif test "x$prefix" != xNONE; then 2128 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2129 else 2130 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2131 fi 2132 2133 for ac_site_file in $ac_site_files 2134 do 2135 case $ac_site_file in #( 2136 */*) : 2137 ;; #( 2138 *) : 2139 ac_site_file=./$ac_site_file ;; 2140 esac 2141 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2143 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2144 sed 's/^/| /' "$ac_site_file" >&5 2145 . "$ac_site_file" \ 2146 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2147 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2148 as_fn_error $? "failed to load site script $ac_site_file 2149 See 'config.log' for more details" "$LINENO" 5; } 2150 fi 2151 done 2152 2153 if test -r "$cache_file"; then 2154 # Some versions of bash will fail to source /dev/null (special files 2155 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2158 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2159 case $cache_file in 2160 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2161 *) . "./$cache_file";; 2162 esac 2163 fi 2164 else 2165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2166 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2167 >$cache_file 2168 fi 2169 2170 # Test code for whether the C compiler supports C89 (global declarations) 2171 ac_c_conftest_c89_globals=' 2172 /* Does the compiler advertise C89 conformance? 2173 Do not test the value of __STDC__, because some compilers set it to 0 2174 while being otherwise adequately conformant. */ 2175 #if !defined __STDC__ 2176 # error "Compiler does not advertise C89 conformance" 2177 #endif 2178 2179 #include <stddef.h> 2180 #include <stdarg.h> 2181 struct stat; 2182 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2183 struct buf { int x; }; 2184 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2185 static char *e (char **p, int i) 2186 { 2187 return p[i]; 2188 } 2189 static char *f (char * (*g) (char **, int), char **p, ...) 2190 { 2191 char *s; 2192 va_list v; 2193 va_start (v,p); 2194 s = g (p, va_arg (v,int)); 2195 va_end (v); 2196 return s; 2197 } 2198 2199 /* C89 style stringification. */ 2200 #define noexpand_stringify(a) #a 2201 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2202 2203 /* C89 style token pasting. Exercises some of the corner cases that 2204 e.g. old MSVC gets wrong, but not very hard. */ 2205 #define noexpand_concat(a,b) a##b 2206 #define expand_concat(a,b) noexpand_concat(a,b) 2207 extern int vA; 2208 extern int vbee; 2209 #define aye A 2210 #define bee B 2211 int *pvA = &expand_concat(v,aye); 2212 int *pvbee = &noexpand_concat(v,bee); 2213 2214 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2215 function prototypes and stuff, but not \xHH hex character constants. 2216 These do not provoke an error unfortunately, instead are silently treated 2217 as an "x". The following induces an error, until -std is added to get 2218 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2219 array size at least. It is necessary to write \x00 == 0 to get something 2220 that is true only with -std. */ 2221 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2222 2223 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2224 inside strings and character constants. */ 2225 #define FOO(x) '\''x'\'' 2226 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2227 2228 int test (int i, double x); 2229 struct s1 {int (*f) (int a);}; 2230 struct s2 {int (*f) (double a);}; 2231 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2232 int, int);' 2233 2234 # Test code for whether the C compiler supports C89 (body of main). 2235 ac_c_conftest_c89_main=' 2236 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2237 ' 2238 2239 # Test code for whether the C compiler supports C99 (global declarations) 2240 ac_c_conftest_c99_globals=' 2241 /* Does the compiler advertise C99 conformance? */ 2242 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2243 # error "Compiler does not advertise C99 conformance" 2244 #endif 2245 2246 // See if C++-style comments work. 2247 2248 #include <stdbool.h> 2249 extern int puts (const char *); 2250 extern int printf (const char *, ...); 2251 extern int dprintf (int, const char *, ...); 2252 extern void *malloc (size_t); 2253 extern void free (void *); 2254 2255 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2256 // dprintf is used instead of fprintf to avoid needing to declare 2257 // FILE and stderr. 2258 #define debug(...) dprintf (2, __VA_ARGS__) 2259 #define showlist(...) puts (#__VA_ARGS__) 2260 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2261 static void 2262 test_varargs_macros (void) 2263 { 2264 int x = 1234; 2265 int y = 5678; 2266 debug ("Flag"); 2267 debug ("X = %d\n", x); 2268 showlist (The first, second, and third items.); 2269 report (x>y, "x is %d but y is %d", x, y); 2270 } 2271 2272 // Check long long types. 2273 #define BIG64 18446744073709551615ull 2274 #define BIG32 4294967295ul 2275 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2276 #if !BIG_OK 2277 #error "your preprocessor is broken" 2278 #endif 2279 #if BIG_OK 2280 #else 2281 #error "your preprocessor is broken" 2282 #endif 2283 static long long int bignum = -9223372036854775807LL; 2284 static unsigned long long int ubignum = BIG64; 2285 2286 struct incomplete_array 2287 { 2288 int datasize; 2289 double data[]; 2290 }; 2291 2292 struct named_init { 2293 int number; 2294 const wchar_t *name; 2295 double average; 2296 }; 2297 2298 typedef const char *ccp; 2299 2300 static inline int 2301 test_restrict (ccp restrict text) 2302 { 2303 // Iterate through items via the restricted pointer. 2304 // Also check for declarations in for loops. 2305 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2306 continue; 2307 return 0; 2308 } 2309 2310 // Check varargs and va_copy. 2311 static bool 2312 test_varargs (const char *format, ...) 2313 { 2314 va_list args; 2315 va_start (args, format); 2316 va_list args_copy; 2317 va_copy (args_copy, args); 2318 2319 const char *str = ""; 2320 int number = 0; 2321 float fnumber = 0; 2322 2323 while (*format) 2324 { 2325 switch (*format++) 2326 { 2327 case '\''s'\'': // string 2328 str = va_arg (args_copy, const char *); 2329 break; 2330 case '\''d'\'': // int 2331 number = va_arg (args_copy, int); 2332 break; 2333 case '\''f'\'': // float 2334 fnumber = va_arg (args_copy, double); 2335 break; 2336 default: 2337 break; 2338 } 2339 } 2340 va_end (args_copy); 2341 va_end (args); 2342 2343 return *str && number && fnumber; 2344 } 2345 ' 2346 2347 # Test code for whether the C compiler supports C99 (body of main). 2348 ac_c_conftest_c99_main=' 2349 // Check bool. 2350 _Bool success = false; 2351 success |= (argc != 0); 2352 2353 // Check restrict. 2354 if (test_restrict ("String literal") == 0) 2355 success = true; 2356 char *restrict newvar = "Another string"; 2357 2358 // Check varargs. 2359 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2360 test_varargs_macros (); 2361 2362 // Check flexible array members. 2363 struct incomplete_array *ia = 2364 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2365 ia->datasize = 10; 2366 for (int i = 0; i < ia->datasize; ++i) 2367 ia->data[i] = i * 1.234; 2368 // Work around memory leak warnings. 2369 free (ia); 2370 2371 // Check named initializers. 2372 struct named_init ni = { 2373 .number = 34, 2374 .name = L"Test wide string", 2375 .average = 543.34343, 2376 }; 2377 2378 ni.number = 58; 2379 2380 int dynamic_array[ni.number]; 2381 dynamic_array[0] = argv[0][0]; 2382 dynamic_array[ni.number - 1] = 543; 2383 2384 // work around unused variable warnings 2385 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2386 || dynamic_array[ni.number - 1] != 543); 2387 ' 2388 2389 # Test code for whether the C compiler supports C11 (global declarations) 2390 ac_c_conftest_c11_globals=' 2391 /* Does the compiler advertise C11 conformance? */ 2392 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2393 # error "Compiler does not advertise C11 conformance" 2394 #endif 2395 2396 // Check _Alignas. 2397 char _Alignas (double) aligned_as_double; 2398 char _Alignas (0) no_special_alignment; 2399 extern char aligned_as_int; 2400 char _Alignas (0) _Alignas (int) aligned_as_int; 2401 2402 // Check _Alignof. 2403 enum 2404 { 2405 int_alignment = _Alignof (int), 2406 int_array_alignment = _Alignof (int[100]), 2407 char_alignment = _Alignof (char) 2408 }; 2409 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2410 2411 // Check _Noreturn. 2412 int _Noreturn does_not_return (void) { for (;;) continue; } 2413 2414 // Check _Static_assert. 2415 struct test_static_assert 2416 { 2417 int x; 2418 _Static_assert (sizeof (int) <= sizeof (long int), 2419 "_Static_assert does not work in struct"); 2420 long int y; 2421 }; 2422 2423 // Check UTF-8 literals. 2424 #define u8 syntax error! 2425 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2426 2427 // Check duplicate typedefs. 2428 typedef long *long_ptr; 2429 typedef long int *long_ptr; 2430 typedef long_ptr long_ptr; 2431 2432 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2433 struct anonymous 2434 { 2435 union { 2436 struct { int i; int j; }; 2437 struct { int k; long int l; } w; 2438 }; 2439 int m; 2440 } v1; 2441 ' 2442 2443 # Test code for whether the C compiler supports C11 (body of main). 2444 ac_c_conftest_c11_main=' 2445 _Static_assert ((offsetof (struct anonymous, i) 2446 == offsetof (struct anonymous, w.k)), 2447 "Anonymous union alignment botch"); 2448 v1.i = 2; 2449 v1.w.k = 5; 2450 ok |= v1.i != 5; 2451 ' 2452 2453 # Test code for whether the C compiler supports C11 (complete). 2454 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2455 ${ac_c_conftest_c99_globals} 2456 ${ac_c_conftest_c11_globals} 2457 2458 int 2459 main (int argc, char **argv) 2460 { 2461 int ok = 0; 2462 ${ac_c_conftest_c89_main} 2463 ${ac_c_conftest_c99_main} 2464 ${ac_c_conftest_c11_main} 2465 return ok; 2466 } 2467 " 2468 2469 # Test code for whether the C compiler supports C99 (complete). 2470 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2471 ${ac_c_conftest_c99_globals} 2472 2473 int 2474 main (int argc, char **argv) 2475 { 2476 int ok = 0; 2477 ${ac_c_conftest_c89_main} 2478 ${ac_c_conftest_c99_main} 2479 return ok; 2480 } 2481 " 2482 2483 # Test code for whether the C compiler supports C89 (complete). 2484 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2485 2486 int 2487 main (int argc, char **argv) 2488 { 2489 int ok = 0; 2490 ${ac_c_conftest_c89_main} 2491 return ok; 2492 } 2493 " 2494 2495 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2496 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2497 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2498 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2499 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2500 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2501 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2502 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2503 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2504 2505 # Auxiliary files required by this configure script. 2506 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2507 2508 # Locations in which to look for auxiliary files. 2509 ac_aux_dir_candidates="${srcdir}/." 2510 2511 # Search for a directory containing all of the required auxiliary files, 2512 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2513 # If we don't find one directory that contains all the files we need, 2514 # we report the set of missing files from the *first* directory in 2515 # $ac_aux_dir_candidates and give up. 2516 ac_missing_aux_files="" 2517 ac_first_candidate=: 2518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2520 as_found=false 2521 for as_dir in $ac_aux_dir_candidates 2522 do 2523 IFS=$as_save_IFS 2524 case $as_dir in #((( 2525 '') as_dir=./ ;; 2526 */) ;; 2527 *) as_dir=$as_dir/ ;; 2528 esac 2529 as_found=: 2530 2531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2532 ac_aux_dir_found=yes 2533 ac_install_sh= 2534 for ac_aux in $ac_aux_files 2535 do 2536 # As a special case, if "install-sh" is required, that requirement 2537 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2538 # and $ac_install_sh is set appropriately for whichever one is found. 2539 if test x"$ac_aux" = x"install-sh" 2540 then 2541 if test -f "${as_dir}install-sh"; then 2542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2543 ac_install_sh="${as_dir}install-sh -c" 2544 elif test -f "${as_dir}install.sh"; then 2545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2546 ac_install_sh="${as_dir}install.sh -c" 2547 elif test -f "${as_dir}shtool"; then 2548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2549 ac_install_sh="${as_dir}shtool install -c" 2550 else 2551 ac_aux_dir_found=no 2552 if $ac_first_candidate; then 2553 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2554 else 2555 break 2556 fi 2557 fi 2558 else 2559 if test -f "${as_dir}${ac_aux}"; then 2560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2561 else 2562 ac_aux_dir_found=no 2563 if $ac_first_candidate; then 2564 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2565 else 2566 break 2567 fi 2568 fi 2569 fi 2570 done 2571 if test "$ac_aux_dir_found" = yes; then 2572 ac_aux_dir="$as_dir" 2573 break 2574 fi 2575 ac_first_candidate=false 2576 2577 as_found=false 2578 done 2579 IFS=$as_save_IFS 2580 if $as_found 2581 then : 2582 2583 else case e in #( 2584 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2585 esac 2586 fi 2587 2588 2589 # These three variables are undocumented and unsupported, 2590 # and are intended to be withdrawn in a future Autoconf release. 2591 # They can cause serious problems if a builder's source tree is in a directory 2592 # whose full name contains unusual characters. 2593 if test -f "${ac_aux_dir}config.guess"; then 2594 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2595 fi 2596 if test -f "${ac_aux_dir}config.sub"; then 2597 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2598 fi 2599 if test -f "$ac_aux_dir/configure"; then 2600 ac_configure="$SHELL ${ac_aux_dir}configure" 2601 fi 2602 2603 # Check that the precious variables saved in the cache have kept the same 2604 # value. 2605 ac_cache_corrupted=false 2606 for ac_var in $ac_precious_vars; do 2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2608 eval ac_new_set=\$ac_env_${ac_var}_set 2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2610 eval ac_new_val=\$ac_env_${ac_var}_value 2611 case $ac_old_set,$ac_new_set in 2612 set,) 2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2614 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2615 ac_cache_corrupted=: ;; 2616 ,set) 2617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2618 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2619 ac_cache_corrupted=: ;; 2620 ,);; 2621 *) 2622 if test "x$ac_old_val" != "x$ac_new_val"; then 2623 # differences in whitespace do not lead to failure. 2624 ac_old_val_w=`echo x $ac_old_val` 2625 ac_new_val_w=`echo x $ac_new_val` 2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2628 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2629 ac_cache_corrupted=: 2630 else 2631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2632 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2633 eval $ac_var=\$ac_old_val 2634 fi 2635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2636 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2638 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2639 fi;; 2640 esac 2641 # Pass precious variables to config.status. 2642 if test "$ac_new_set" = set; then 2643 case $ac_new_val in 2644 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2645 *) ac_arg=$ac_var=$ac_new_val ;; 2646 esac 2647 case " $ac_configure_args " in 2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2650 esac 2651 fi 2652 done 2653 if $ac_cache_corrupted; then 2654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2655 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2657 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2658 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2659 and start over" "$LINENO" 5 2660 fi 2661 ## -------------------- ## 2662 ## Main body of script. ## 2663 ## -------------------- ## 2664 2665 ac_ext=c 2666 ac_cpp='$CPP $CPPFLAGS' 2667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2669 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2670 2671 2672 2673 2674 cat >>confdefs.h <<_ACEOF 2675 #define NV_DRIVER_DATE $(echo -n \";git log |head -3|tail -1|tr -d '\n';echo -n \") 2676 _ACEOF 2677 2678 2679 2680 ac_config_headers="$ac_config_headers config.h" 2681 2682 2683 2684 2685 # Initialize Automake 2686 am__api_version='1.16' 2687 2688 2689 2690 # Find a good install program. We prefer a C program (faster), 2691 # so one script is as good as another. But avoid the broken or 2692 # incompatible versions: 2693 # SysV /etc/install, /usr/sbin/install 2694 # SunOS /usr/etc/install 2695 # IRIX /sbin/install 2696 # AIX /bin/install 2697 # AmigaOS /C/install, which installs bootblocks on floppy discs 2698 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2699 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2700 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2701 # OS/2's system install, which has a completely different semantic 2702 # ./install, which can be erroneously created by make from ./install.sh. 2703 # Reject install programs that cannot install multiple files. 2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2705 printf %s "checking for a BSD-compatible install... " >&6; } 2706 if test -z "$INSTALL"; then 2707 if test ${ac_cv_path_install+y} 2708 then : 2709 printf %s "(cached) " >&6 2710 else case e in #( 2711 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2712 for as_dir in $PATH 2713 do 2714 IFS=$as_save_IFS 2715 case $as_dir in #((( 2716 '') as_dir=./ ;; 2717 */) ;; 2718 *) as_dir=$as_dir/ ;; 2719 esac 2720 # Account for fact that we put trailing slashes in our PATH walk. 2721 case $as_dir in #(( 2722 ./ | /[cC]/* | \ 2723 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2724 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2725 /usr/ucb/* ) ;; 2726 *) 2727 # OSF1 and SCO ODT 3.0 have their own names for install. 2728 # Don't use installbsd from OSF since it installs stuff as root 2729 # by default. 2730 for ac_prog in ginstall scoinst install; do 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2733 if test $ac_prog = install && 2734 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2735 # AIX install. It has an incompatible calling convention. 2736 : 2737 elif test $ac_prog = install && 2738 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2739 # program-specific install script used by HP pwplus--don't use. 2740 : 2741 else 2742 rm -rf conftest.one conftest.two conftest.dir 2743 echo one > conftest.one 2744 echo two > conftest.two 2745 mkdir conftest.dir 2746 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2747 test -s conftest.one && test -s conftest.two && 2748 test -s conftest.dir/conftest.one && 2749 test -s conftest.dir/conftest.two 2750 then 2751 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2752 break 3 2753 fi 2754 fi 2755 fi 2756 done 2757 done 2758 ;; 2759 esac 2760 2761 done 2762 IFS=$as_save_IFS 2763 2764 rm -rf conftest.one conftest.two conftest.dir 2765 ;; 2766 esac 2767 fi 2768 if test ${ac_cv_path_install+y}; then 2769 INSTALL=$ac_cv_path_install 2770 else 2771 # As a last resort, use the slow shell script. Don't cache a 2772 # value for INSTALL within a source directory, because that will 2773 # break other packages using the cache if that directory is 2774 # removed, or if the value is a relative name. 2775 INSTALL=$ac_install_sh 2776 fi 2777 fi 2778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2779 printf "%s\n" "$INSTALL" >&6; } 2780 2781 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2782 # It thinks the first close brace ends the variable substitution. 2783 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2784 2785 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2786 2787 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2788 2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2790 printf %s "checking whether build environment is sane... " >&6; } 2791 # Reject unsafe characters in $srcdir or the absolute working directory 2792 # name. Accept space and tab only in the latter. 2793 am_lf=' 2794 ' 2795 case `pwd` in 2796 *[\\\"\#\$\&\'\`$am_lf]*) 2797 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2798 esac 2799 case $srcdir in 2800 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2801 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2802 esac 2803 2804 # Do 'set' in a subshell so we don't clobber the current shell's 2805 # arguments. Must try -L first in case configure is actually a 2806 # symlink; some systems play weird games with the mod time of symlinks 2807 # (eg FreeBSD returns the mod time of the symlink's containing 2808 # directory). 2809 if ( 2810 am_has_slept=no 2811 for am_try in 1 2; do 2812 echo "timestamp, slept: $am_has_slept" > conftest.file 2813 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2814 if test "$*" = "X"; then 2815 # -L didn't work. 2816 set X `ls -t "$srcdir/configure" conftest.file` 2817 fi 2818 if test "$*" != "X $srcdir/configure conftest.file" \ 2819 && test "$*" != "X conftest.file $srcdir/configure"; then 2820 2821 # If neither matched, then we have a broken ls. This can happen 2822 # if, for instance, CONFIG_SHELL is bash and it inherits a 2823 # broken ls alias from the environment. This has actually 2824 # happened. Such a system could not be considered "sane". 2825 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2826 alias in your environment" "$LINENO" 5 2827 fi 2828 if test "$2" = conftest.file || test $am_try -eq 2; then 2829 break 2830 fi 2831 # Just in case. 2832 sleep 1 2833 am_has_slept=yes 2834 done 2835 test "$2" = conftest.file 2836 ) 2837 then 2838 # Ok. 2839 : 2840 else 2841 as_fn_error $? "newly created file is older than distributed files! 2842 Check your system clock" "$LINENO" 5 2843 fi 2844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2845 printf "%s\n" "yes" >&6; } 2846 # If we didn't sleep, we still need to ensure time stamps of config.status and 2847 # generated files are strictly newer. 2848 am_sleep_pid= 2849 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2850 ( sleep 1 ) & 2851 am_sleep_pid=$! 2852 fi 2853 2854 rm -f conftest.file 2855 2856 test "$program_prefix" != NONE && 2857 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2858 # Use a double $ so make ignores it. 2859 test "$program_suffix" != NONE && 2860 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2861 # Double any \ or $. 2862 # By default was 's,x,x', remove it if useless. 2863 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2864 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2865 2866 2867 # Expand $ac_aux_dir to an absolute path. 2868 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2869 2870 2871 if test x"${MISSING+set}" != xset; then 2872 MISSING="\${SHELL} '$am_aux_dir/missing'" 2873 fi 2874 # Use eval to expand $SHELL 2875 if eval "$MISSING --is-lightweight"; then 2876 am_missing_run="$MISSING " 2877 else 2878 am_missing_run= 2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2880 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2881 fi 2882 2883 if test x"${install_sh+set}" != xset; then 2884 case $am_aux_dir in 2885 *\ * | *\ *) 2886 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2887 *) 2888 install_sh="\${SHELL} $am_aux_dir/install-sh" 2889 esac 2890 fi 2891 2892 # Installed binaries are usually stripped using 'strip' when the user 2893 # run "make install-strip". However 'strip' might not be the right 2894 # tool to use in cross-compilation environments, therefore Automake 2895 # will honor the 'STRIP' environment variable to overrule this program. 2896 if test "$cross_compiling" != no; then 2897 if test -n "$ac_tool_prefix"; then 2898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2899 set dummy ${ac_tool_prefix}strip; ac_word=$2 2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901 printf %s "checking for $ac_word... " >&6; } 2902 if test ${ac_cv_prog_STRIP+y} 2903 then : 2904 printf %s "(cached) " >&6 2905 else case e in #( 2906 e) if test -n "$STRIP"; then 2907 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2908 else 2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910 for as_dir in $PATH 2911 do 2912 IFS=$as_save_IFS 2913 case $as_dir in #((( 2914 '') as_dir=./ ;; 2915 */) ;; 2916 *) as_dir=$as_dir/ ;; 2917 esac 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2920 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924 done 2925 done 2926 IFS=$as_save_IFS 2927 2928 fi ;; 2929 esac 2930 fi 2931 STRIP=$ac_cv_prog_STRIP 2932 if test -n "$STRIP"; then 2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2934 printf "%s\n" "$STRIP" >&6; } 2935 else 2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2937 printf "%s\n" "no" >&6; } 2938 fi 2939 2940 2941 fi 2942 if test -z "$ac_cv_prog_STRIP"; then 2943 ac_ct_STRIP=$STRIP 2944 # Extract the first word of "strip", so it can be a program name with args. 2945 set dummy strip; ac_word=$2 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2947 printf %s "checking for $ac_word... " >&6; } 2948 if test ${ac_cv_prog_ac_ct_STRIP+y} 2949 then : 2950 printf %s "(cached) " >&6 2951 else case e in #( 2952 e) if test -n "$ac_ct_STRIP"; then 2953 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2954 else 2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2956 for as_dir in $PATH 2957 do 2958 IFS=$as_save_IFS 2959 case $as_dir in #((( 2960 '') as_dir=./ ;; 2961 */) ;; 2962 *) as_dir=$as_dir/ ;; 2963 esac 2964 for ac_exec_ext in '' $ac_executable_extensions; do 2965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2966 ac_cv_prog_ac_ct_STRIP="strip" 2967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2968 break 2 2969 fi 2970 done 2971 done 2972 IFS=$as_save_IFS 2973 2974 fi ;; 2975 esac 2976 fi 2977 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2978 if test -n "$ac_ct_STRIP"; then 2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2980 printf "%s\n" "$ac_ct_STRIP" >&6; } 2981 else 2982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2983 printf "%s\n" "no" >&6; } 2984 fi 2985 2986 if test "x$ac_ct_STRIP" = x; then 2987 STRIP=":" 2988 else 2989 case $cross_compiling:$ac_tool_warned in 2990 yes:) 2991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2992 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2993 ac_tool_warned=yes ;; 2994 esac 2995 STRIP=$ac_ct_STRIP 2996 fi 2997 else 2998 STRIP="$ac_cv_prog_STRIP" 2999 fi 3000 3001 fi 3002 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3003 3004 3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3006 printf %s "checking for a race-free mkdir -p... " >&6; } 3007 if test -z "$MKDIR_P"; then 3008 if test ${ac_cv_path_mkdir+y} 3009 then : 3010 printf %s "(cached) " >&6 3011 else case e in #( 3012 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3014 do 3015 IFS=$as_save_IFS 3016 case $as_dir in #((( 3017 '') as_dir=./ ;; 3018 */) ;; 3019 *) as_dir=$as_dir/ ;; 3020 esac 3021 for ac_prog in mkdir gmkdir; do 3022 for ac_exec_ext in '' $ac_executable_extensions; do 3023 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3024 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3025 'mkdir ('*'coreutils) '* | \ 3026 *'BusyBox '* | \ 3027 'mkdir (fileutils) '4.1*) 3028 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3029 break 3;; 3030 esac 3031 done 3032 done 3033 done 3034 IFS=$as_save_IFS 3035 ;; 3036 esac 3037 fi 3038 3039 test -d ./--version && rmdir ./--version 3040 if test ${ac_cv_path_mkdir+y}; then 3041 MKDIR_P="$ac_cv_path_mkdir -p" 3042 else 3043 # As a last resort, use plain mkdir -p, 3044 # in the hope it doesn't have the bugs of ancient mkdir. 3045 MKDIR_P='mkdir -p' 3046 fi 3047 fi 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3049 printf "%s\n" "$MKDIR_P" >&6; } 3050 3051 for ac_prog in gawk mawk nawk awk 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_AWK+y} 3058 then : 3059 printf %s "(cached) " >&6 3060 else case e in #( 3061 e) if test -n "$AWK"; then 3062 ac_cv_prog_AWK="$AWK" # 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_AWK="$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 AWK=$ac_cv_prog_AWK 3087 if test -n "$AWK"; then 3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3089 printf "%s\n" "$AWK" >&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 "$AWK" && break 3097 done 3098 3099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3100 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3101 set x ${MAKE-make} 3102 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3103 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3104 then : 3105 printf %s "(cached) " >&6 3106 else case e in #( 3107 e) cat >conftest.make <<\_ACEOF 3108 SHELL = /bin/sh 3109 all: 3110 @echo '@@@%%%=$(MAKE)=@@@%%%' 3111 _ACEOF 3112 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3113 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3114 *@@@%%%=?*=@@@%%%*) 3115 eval ac_cv_prog_make_${ac_make}_set=yes;; 3116 *) 3117 eval ac_cv_prog_make_${ac_make}_set=no;; 3118 esac 3119 rm -f conftest.make ;; 3120 esac 3121 fi 3122 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3124 printf "%s\n" "yes" >&6; } 3125 SET_MAKE= 3126 else 3127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3128 printf "%s\n" "no" >&6; } 3129 SET_MAKE="MAKE=${MAKE-make}" 3130 fi 3131 3132 rm -rf .tst 2>/dev/null 3133 mkdir .tst 2>/dev/null 3134 if test -d .tst; then 3135 am__leading_dot=. 3136 else 3137 am__leading_dot=_ 3138 fi 3139 rmdir .tst 2>/dev/null 3140 3141 # Check whether --enable-silent-rules was given. 3142 if test ${enable_silent_rules+y} 3143 then : 3144 enableval=$enable_silent_rules; 3145 fi 3146 3147 case $enable_silent_rules in # ((( 3148 yes) AM_DEFAULT_VERBOSITY=0;; 3149 no) AM_DEFAULT_VERBOSITY=1;; 3150 *) AM_DEFAULT_VERBOSITY=1;; 3151 esac 3152 am_make=${MAKE-make} 3153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3154 printf %s "checking whether $am_make supports nested variables... " >&6; } 3155 if test ${am_cv_make_support_nested_variables+y} 3156 then : 3157 printf %s "(cached) " >&6 3158 else case e in #( 3159 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3160 BAR0=false 3161 BAR1=true 3162 V=1 3163 am__doit: 3164 @$(TRUE) 3165 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3166 am_cv_make_support_nested_variables=yes 3167 else 3168 am_cv_make_support_nested_variables=no 3169 fi ;; 3170 esac 3171 fi 3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3173 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3174 if test $am_cv_make_support_nested_variables = yes; then 3175 AM_V='$(V)' 3176 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3177 else 3178 AM_V=$AM_DEFAULT_VERBOSITY 3179 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3180 fi 3181 AM_BACKSLASH='\' 3182 3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3185 # is not polluted with repeated "-I." 3186 am__isrc=' -I$(srcdir)' 3187 # test to see if srcdir already configured 3188 if test -f $srcdir/config.status; then 3189 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3190 fi 3191 fi 3192 3193 # test whether we have cygpath 3194 if test -z "$CYGPATH_W"; then 3195 if (cygpath --version) >/dev/null 2>/dev/null; then 3196 CYGPATH_W='cygpath -w' 3197 else 3198 CYGPATH_W=echo 3199 fi 3200 fi 3201 3202 3203 # Define the identity of the package. 3204 PACKAGE='xf86-video-nouveau' 3205 VERSION='1.0.18' 3206 3207 3208 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3209 3210 3211 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3212 3213 # Some tools Automake needs. 3214 3215 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3216 3217 3218 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3219 3220 3221 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3222 3223 3224 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3225 3226 3227 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3228 3229 # For better backward compatibility. To be removed once Automake 1.9.x 3230 # dies out for good. For more background, see: 3231 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3232 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3233 mkdir_p='$(MKDIR_P)' 3234 3235 # We need awk for the "check" target (and possibly the TAP driver). The 3236 # system "awk" is bad on some platforms. 3237 # Always define AMTAR for backward compatibility. Yes, it's still used 3238 # in the wild :-( We should find a proper way to deprecate it ... 3239 AMTAR='$${TAR-tar}' 3240 3241 3242 # We'll loop over all known methods to create a tar archive until one works. 3243 _am_tools='gnutar pax cpio none' 3244 3245 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3246 3247 3248 3249 3250 3251 # Variables for tags utilities; see am/tags.am 3252 if test -z "$CTAGS"; then 3253 CTAGS=ctags 3254 fi 3255 3256 if test -z "$ETAGS"; then 3257 ETAGS=etags 3258 fi 3259 3260 if test -z "$CSCOPE"; then 3261 CSCOPE=cscope 3262 fi 3263 3264 3265 3266 # POSIX will say in a future version that running "rm -f" with no argument 3267 # is OK; and we want to be able to make that assumption in our Makefile 3268 # recipes. So use an aggressive probe to check that the usage we want is 3269 # actually supported "in the wild" to an acceptable degree. 3270 # See automake bug#10828. 3271 # To make any issue more visible, cause the running configure to be aborted 3272 # by default if the 'rm' program in use doesn't match our expectations; the 3273 # user can still override this though. 3274 if rm -f && rm -fr && rm -rf; then : OK; else 3275 cat >&2 <<'END' 3276 Oops! 3277 3278 Your 'rm' program seems unable to run without file operands specified 3279 on the command line, even when the '-f' option is present. This is contrary 3280 to the behaviour of most rm programs out there, and not conforming with 3281 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3282 3283 Please tell bug-automake@gnu.org about your system, including the value 3284 of your $PATH and any error possibly output before this message. This 3285 can help us improve future automake versions. 3286 3287 END 3288 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3289 echo 'Configuration will proceed anyway, since you have set the' >&2 3290 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3291 echo >&2 3292 else 3293 cat >&2 <<'END' 3294 Aborting the configuration process, to ensure you take notice of the issue. 3295 3296 You can download and install GNU coreutils to get an 'rm' implementation 3297 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3298 3299 If you want to complete the configuration process using your problematic 3300 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3301 to "yes", and re-run configure. 3302 3303 END 3304 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3305 fi 3306 fi 3307 3308 3309 # Check whether --enable-silent-rules was given. 3310 if test ${enable_silent_rules+y} 3311 then : 3312 enableval=$enable_silent_rules; 3313 fi 3314 3315 case $enable_silent_rules in # ((( 3316 yes) AM_DEFAULT_VERBOSITY=0;; 3317 no) AM_DEFAULT_VERBOSITY=1;; 3318 *) AM_DEFAULT_VERBOSITY=0;; 3319 esac 3320 am_make=${MAKE-make} 3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3322 printf %s "checking whether $am_make supports nested variables... " >&6; } 3323 if test ${am_cv_make_support_nested_variables+y} 3324 then : 3325 printf %s "(cached) " >&6 3326 else case e in #( 3327 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3328 BAR0=false 3329 BAR1=true 3330 V=1 3331 am__doit: 3332 @$(TRUE) 3333 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3334 am_cv_make_support_nested_variables=yes 3335 else 3336 am_cv_make_support_nested_variables=no 3337 fi ;; 3338 esac 3339 fi 3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3341 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3342 if test $am_cv_make_support_nested_variables = yes; then 3343 AM_V='$(V)' 3344 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3345 else 3346 AM_V=$AM_DEFAULT_VERBOSITY 3347 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3348 fi 3349 AM_BACKSLASH='\' 3350 3351 3352 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 DEPDIR="${am__leading_dot}deps" 3375 3376 ac_config_commands="$ac_config_commands depfiles" 3377 3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3379 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3380 cat > confinc.mk << 'END' 3381 am__doit: 3382 @echo this is the am__doit target >confinc.out 3383 .PHONY: am__doit 3384 END 3385 am__include="#" 3386 am__quote= 3387 # BSD make does it like this. 3388 echo '.include "confinc.mk" # ignored' > confmf.BSD 3389 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3390 echo 'include confinc.mk # ignored' > confmf.GNU 3391 _am_result=no 3392 for s in GNU BSD; do 3393 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3394 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3395 ac_status=$? 3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3397 (exit $ac_status); } 3398 case $?:`cat confinc.out 2>/dev/null` in #( 3399 '0:this is the am__doit target') : 3400 case $s in #( 3401 BSD) : 3402 am__include='.include' am__quote='"' ;; #( 3403 *) : 3404 am__include='include' am__quote='' ;; 3405 esac ;; #( 3406 *) : 3407 ;; 3408 esac 3409 if test "$am__include" != "#"; then 3410 _am_result="yes ($s style)" 3411 break 3412 fi 3413 done 3414 rm -f confinc.* confmf.* 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3416 printf "%s\n" "${_am_result}" >&6; } 3417 3418 # Check whether --enable-dependency-tracking was given. 3419 if test ${enable_dependency_tracking+y} 3420 then : 3421 enableval=$enable_dependency_tracking; 3422 fi 3423 3424 if test "x$enable_dependency_tracking" != xno; then 3425 am_depcomp="$ac_aux_dir/depcomp" 3426 AMDEPBACKSLASH='\' 3427 am__nodep='_no' 3428 fi 3429 if test "x$enable_dependency_tracking" != xno; then 3430 AMDEP_TRUE= 3431 AMDEP_FALSE='#' 3432 else 3433 AMDEP_TRUE='#' 3434 AMDEP_FALSE= 3435 fi 3436 3437 3438 ac_ext=c 3439 ac_cpp='$CPP $CPPFLAGS' 3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3443 if test -n "$ac_tool_prefix"; then 3444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3445 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3447 printf %s "checking for $ac_word... " >&6; } 3448 if test ${ac_cv_prog_CC+y} 3449 then : 3450 printf %s "(cached) " >&6 3451 else case e in #( 3452 e) if test -n "$CC"; then 3453 ac_cv_prog_CC="$CC" # Let the user override the test. 3454 else 3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3456 for as_dir in $PATH 3457 do 3458 IFS=$as_save_IFS 3459 case $as_dir in #((( 3460 '') as_dir=./ ;; 3461 */) ;; 3462 *) as_dir=$as_dir/ ;; 3463 esac 3464 for ac_exec_ext in '' $ac_executable_extensions; do 3465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3466 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3468 break 2 3469 fi 3470 done 3471 done 3472 IFS=$as_save_IFS 3473 3474 fi ;; 3475 esac 3476 fi 3477 CC=$ac_cv_prog_CC 3478 if test -n "$CC"; then 3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3480 printf "%s\n" "$CC" >&6; } 3481 else 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3483 printf "%s\n" "no" >&6; } 3484 fi 3485 3486 3487 fi 3488 if test -z "$ac_cv_prog_CC"; then 3489 ac_ct_CC=$CC 3490 # Extract the first word of "gcc", so it can be a program name with args. 3491 set dummy gcc; ac_word=$2 3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3493 printf %s "checking for $ac_word... " >&6; } 3494 if test ${ac_cv_prog_ac_ct_CC+y} 3495 then : 3496 printf %s "(cached) " >&6 3497 else case e in #( 3498 e) if test -n "$ac_ct_CC"; then 3499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3500 else 3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3502 for as_dir in $PATH 3503 do 3504 IFS=$as_save_IFS 3505 case $as_dir in #((( 3506 '') as_dir=./ ;; 3507 */) ;; 3508 *) as_dir=$as_dir/ ;; 3509 esac 3510 for ac_exec_ext in '' $ac_executable_extensions; do 3511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3512 ac_cv_prog_ac_ct_CC="gcc" 3513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3514 break 2 3515 fi 3516 done 3517 done 3518 IFS=$as_save_IFS 3519 3520 fi ;; 3521 esac 3522 fi 3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3524 if test -n "$ac_ct_CC"; then 3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3526 printf "%s\n" "$ac_ct_CC" >&6; } 3527 else 3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3529 printf "%s\n" "no" >&6; } 3530 fi 3531 3532 if test "x$ac_ct_CC" = x; then 3533 CC="" 3534 else 3535 case $cross_compiling:$ac_tool_warned in 3536 yes:) 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3539 ac_tool_warned=yes ;; 3540 esac 3541 CC=$ac_ct_CC 3542 fi 3543 else 3544 CC="$ac_cv_prog_CC" 3545 fi 3546 3547 if test -z "$CC"; then 3548 if test -n "$ac_tool_prefix"; then 3549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3550 set dummy ${ac_tool_prefix}cc; ac_word=$2 3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3552 printf %s "checking for $ac_word... " >&6; } 3553 if test ${ac_cv_prog_CC+y} 3554 then : 3555 printf %s "(cached) " >&6 3556 else case e in #( 3557 e) if test -n "$CC"; then 3558 ac_cv_prog_CC="$CC" # Let the user override the test. 3559 else 3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3561 for as_dir in $PATH 3562 do 3563 IFS=$as_save_IFS 3564 case $as_dir in #((( 3565 '') as_dir=./ ;; 3566 */) ;; 3567 *) as_dir=$as_dir/ ;; 3568 esac 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3571 ac_cv_prog_CC="${ac_tool_prefix}cc" 3572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3573 break 2 3574 fi 3575 done 3576 done 3577 IFS=$as_save_IFS 3578 3579 fi ;; 3580 esac 3581 fi 3582 CC=$ac_cv_prog_CC 3583 if test -n "$CC"; then 3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3585 printf "%s\n" "$CC" >&6; } 3586 else 3587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3588 printf "%s\n" "no" >&6; } 3589 fi 3590 3591 3592 fi 3593 fi 3594 if test -z "$CC"; then 3595 # Extract the first word of "cc", so it can be a program name with args. 3596 set dummy cc; ac_word=$2 3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3598 printf %s "checking for $ac_word... " >&6; } 3599 if test ${ac_cv_prog_CC+y} 3600 then : 3601 printf %s "(cached) " >&6 3602 else case e in #( 3603 e) if test -n "$CC"; then 3604 ac_cv_prog_CC="$CC" # Let the user override the test. 3605 else 3606 ac_prog_rejected=no 3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608 for as_dir in $PATH 3609 do 3610 IFS=$as_save_IFS 3611 case $as_dir in #((( 3612 '') as_dir=./ ;; 3613 */) ;; 3614 *) as_dir=$as_dir/ ;; 3615 esac 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3618 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3619 ac_prog_rejected=yes 3620 continue 3621 fi 3622 ac_cv_prog_CC="cc" 3623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3624 break 2 3625 fi 3626 done 3627 done 3628 IFS=$as_save_IFS 3629 3630 if test $ac_prog_rejected = yes; then 3631 # We found a bogon in the path, so make sure we never use it. 3632 set dummy $ac_cv_prog_CC 3633 shift 3634 if test $# != 0; then 3635 # We chose a different compiler from the bogus one. 3636 # However, it has the same basename, so the bogon will be chosen 3637 # first if we set CC to just the basename; use the full file name. 3638 shift 3639 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3640 fi 3641 fi 3642 fi ;; 3643 esac 3644 fi 3645 CC=$ac_cv_prog_CC 3646 if test -n "$CC"; then 3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3648 printf "%s\n" "$CC" >&6; } 3649 else 3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3651 printf "%s\n" "no" >&6; } 3652 fi 3653 3654 3655 fi 3656 if test -z "$CC"; then 3657 if test -n "$ac_tool_prefix"; then 3658 for ac_prog in cl.exe 3659 do 3660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3663 printf %s "checking for $ac_word... " >&6; } 3664 if test ${ac_cv_prog_CC+y} 3665 then : 3666 printf %s "(cached) " >&6 3667 else case e in #( 3668 e) if test -n "$CC"; then 3669 ac_cv_prog_CC="$CC" # Let the user override the test. 3670 else 3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3672 for as_dir in $PATH 3673 do 3674 IFS=$as_save_IFS 3675 case $as_dir in #((( 3676 '') as_dir=./ ;; 3677 */) ;; 3678 *) as_dir=$as_dir/ ;; 3679 esac 3680 for ac_exec_ext in '' $ac_executable_extensions; do 3681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3682 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3684 break 2 3685 fi 3686 done 3687 done 3688 IFS=$as_save_IFS 3689 3690 fi ;; 3691 esac 3692 fi 3693 CC=$ac_cv_prog_CC 3694 if test -n "$CC"; then 3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3696 printf "%s\n" "$CC" >&6; } 3697 else 3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3699 printf "%s\n" "no" >&6; } 3700 fi 3701 3702 3703 test -n "$CC" && break 3704 done 3705 fi 3706 if test -z "$CC"; then 3707 ac_ct_CC=$CC 3708 for ac_prog in cl.exe 3709 do 3710 # Extract the first word of "$ac_prog", so it can be a program name with args. 3711 set dummy $ac_prog; ac_word=$2 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3713 printf %s "checking for $ac_word... " >&6; } 3714 if test ${ac_cv_prog_ac_ct_CC+y} 3715 then : 3716 printf %s "(cached) " >&6 3717 else case e in #( 3718 e) if test -n "$ac_ct_CC"; then 3719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3720 else 3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722 for as_dir in $PATH 3723 do 3724 IFS=$as_save_IFS 3725 case $as_dir in #((( 3726 '') as_dir=./ ;; 3727 */) ;; 3728 *) as_dir=$as_dir/ ;; 3729 esac 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_ac_ct_CC="$ac_prog" 3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736 done 3737 done 3738 IFS=$as_save_IFS 3739 3740 fi ;; 3741 esac 3742 fi 3743 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3744 if test -n "$ac_ct_CC"; then 3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3746 printf "%s\n" "$ac_ct_CC" >&6; } 3747 else 3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3749 printf "%s\n" "no" >&6; } 3750 fi 3751 3752 3753 test -n "$ac_ct_CC" && break 3754 done 3755 3756 if test "x$ac_ct_CC" = x; then 3757 CC="" 3758 else 3759 case $cross_compiling:$ac_tool_warned in 3760 yes:) 3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3763 ac_tool_warned=yes ;; 3764 esac 3765 CC=$ac_ct_CC 3766 fi 3767 fi 3768 3769 fi 3770 if test -z "$CC"; then 3771 if test -n "$ac_tool_prefix"; then 3772 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3773 set dummy ${ac_tool_prefix}clang; ac_word=$2 3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3775 printf %s "checking for $ac_word... " >&6; } 3776 if test ${ac_cv_prog_CC+y} 3777 then : 3778 printf %s "(cached) " >&6 3779 else case e in #( 3780 e) if test -n "$CC"; then 3781 ac_cv_prog_CC="$CC" # Let the user override the test. 3782 else 3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3784 for as_dir in $PATH 3785 do 3786 IFS=$as_save_IFS 3787 case $as_dir in #((( 3788 '') as_dir=./ ;; 3789 */) ;; 3790 *) as_dir=$as_dir/ ;; 3791 esac 3792 for ac_exec_ext in '' $ac_executable_extensions; do 3793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3794 ac_cv_prog_CC="${ac_tool_prefix}clang" 3795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3796 break 2 3797 fi 3798 done 3799 done 3800 IFS=$as_save_IFS 3801 3802 fi ;; 3803 esac 3804 fi 3805 CC=$ac_cv_prog_CC 3806 if test -n "$CC"; then 3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3808 printf "%s\n" "$CC" >&6; } 3809 else 3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3811 printf "%s\n" "no" >&6; } 3812 fi 3813 3814 3815 fi 3816 if test -z "$ac_cv_prog_CC"; then 3817 ac_ct_CC=$CC 3818 # Extract the first word of "clang", so it can be a program name with args. 3819 set dummy clang; ac_word=$2 3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3821 printf %s "checking for $ac_word... " >&6; } 3822 if test ${ac_cv_prog_ac_ct_CC+y} 3823 then : 3824 printf %s "(cached) " >&6 3825 else case e in #( 3826 e) if test -n "$ac_ct_CC"; then 3827 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3828 else 3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3830 for as_dir in $PATH 3831 do 3832 IFS=$as_save_IFS 3833 case $as_dir in #((( 3834 '') as_dir=./ ;; 3835 */) ;; 3836 *) as_dir=$as_dir/ ;; 3837 esac 3838 for ac_exec_ext in '' $ac_executable_extensions; do 3839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3840 ac_cv_prog_ac_ct_CC="clang" 3841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3842 break 2 3843 fi 3844 done 3845 done 3846 IFS=$as_save_IFS 3847 3848 fi ;; 3849 esac 3850 fi 3851 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3852 if test -n "$ac_ct_CC"; then 3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3854 printf "%s\n" "$ac_ct_CC" >&6; } 3855 else 3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3857 printf "%s\n" "no" >&6; } 3858 fi 3859 3860 if test "x$ac_ct_CC" = x; then 3861 CC="" 3862 else 3863 case $cross_compiling:$ac_tool_warned in 3864 yes:) 3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3867 ac_tool_warned=yes ;; 3868 esac 3869 CC=$ac_ct_CC 3870 fi 3871 else 3872 CC="$ac_cv_prog_CC" 3873 fi 3874 3875 fi 3876 3877 3878 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3879 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3880 as_fn_error $? "no acceptable C compiler found in \$PATH 3881 See 'config.log' for more details" "$LINENO" 5; } 3882 3883 # Provide some information about the compiler. 3884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3885 set X $ac_compile 3886 ac_compiler=$2 3887 for ac_option in --version -v -V -qversion -version; do 3888 { { ac_try="$ac_compiler $ac_option >&5" 3889 case "(($ac_try" in 3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3891 *) ac_try_echo=$ac_try;; 3892 esac 3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3894 printf "%s\n" "$ac_try_echo"; } >&5 3895 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3896 ac_status=$? 3897 if test -s conftest.err; then 3898 sed '10a\ 3899 ... rest of stderr output deleted ... 3900 10q' conftest.err >conftest.er1 3901 cat conftest.er1 >&5 3902 fi 3903 rm -f conftest.er1 conftest.err 3904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3905 test $ac_status = 0; } 3906 done 3907 3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3909 /* end confdefs.h. */ 3910 3911 int 3912 main (void) 3913 { 3914 3915 ; 3916 return 0; 3917 } 3918 _ACEOF 3919 ac_clean_files_save=$ac_clean_files 3920 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3921 # Try to create an executable without -o first, disregard a.out. 3922 # It will help us diagnose broken compilers, and finding out an intuition 3923 # of exeext. 3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3925 printf %s "checking whether the C compiler works... " >&6; } 3926 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3927 3928 # The possible output files: 3929 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3930 3931 ac_rmfiles= 3932 for ac_file in $ac_files 3933 do 3934 case $ac_file in 3935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3936 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3937 esac 3938 done 3939 rm -f $ac_rmfiles 3940 3941 if { { ac_try="$ac_link_default" 3942 case "(($ac_try" in 3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3944 *) ac_try_echo=$ac_try;; 3945 esac 3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3947 printf "%s\n" "$ac_try_echo"; } >&5 3948 (eval "$ac_link_default") 2>&5 3949 ac_status=$? 3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; } 3952 then : 3953 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3954 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3955 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3956 # so that the user can short-circuit this test for compilers unknown to 3957 # Autoconf. 3958 for ac_file in $ac_files '' 3959 do 3960 test -f "$ac_file" || continue 3961 case $ac_file in 3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3963 ;; 3964 [ab].out ) 3965 # We found the default executable, but exeext='' is most 3966 # certainly right. 3967 break;; 3968 *.* ) 3969 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3970 then :; else 3971 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3972 fi 3973 # We set ac_cv_exeext here because the later test for it is not 3974 # safe: cross compilers may not add the suffix if given an '-o' 3975 # argument, so we may need to know it at that point already. 3976 # Even if this section looks crufty: it has the advantage of 3977 # actually working. 3978 break;; 3979 * ) 3980 break;; 3981 esac 3982 done 3983 test "$ac_cv_exeext" = no && ac_cv_exeext= 3984 3985 else case e in #( 3986 e) ac_file='' ;; 3987 esac 3988 fi 3989 if test -z "$ac_file" 3990 then : 3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3992 printf "%s\n" "no" >&6; } 3993 printf "%s\n" "$as_me: failed program was:" >&5 3994 sed 's/^/| /' conftest.$ac_ext >&5 3995 3996 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3997 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3998 as_fn_error 77 "C compiler cannot create executables 3999 See 'config.log' for more details" "$LINENO" 5; } 4000 else case e in #( 4001 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4002 printf "%s\n" "yes" >&6; } ;; 4003 esac 4004 fi 4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4006 printf %s "checking for C compiler default output file name... " >&6; } 4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4008 printf "%s\n" "$ac_file" >&6; } 4009 ac_exeext=$ac_cv_exeext 4010 4011 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4012 ac_clean_files=$ac_clean_files_save 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4014 printf %s "checking for suffix of executables... " >&6; } 4015 if { { ac_try="$ac_link" 4016 case "(($ac_try" in 4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4018 *) ac_try_echo=$ac_try;; 4019 esac 4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4021 printf "%s\n" "$ac_try_echo"; } >&5 4022 (eval "$ac_link") 2>&5 4023 ac_status=$? 4024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4025 test $ac_status = 0; } 4026 then : 4027 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4028 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4029 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4030 # 'rm'. 4031 for ac_file in conftest.exe conftest conftest.*; do 4032 test -f "$ac_file" || continue 4033 case $ac_file in 4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4036 break;; 4037 * ) break;; 4038 esac 4039 done 4040 else case e in #( 4041 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4042 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4043 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4044 See 'config.log' for more details" "$LINENO" 5; } ;; 4045 esac 4046 fi 4047 rm -f conftest conftest$ac_cv_exeext 4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4049 printf "%s\n" "$ac_cv_exeext" >&6; } 4050 4051 rm -f conftest.$ac_ext 4052 EXEEXT=$ac_cv_exeext 4053 ac_exeext=$EXEEXT 4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4055 /* end confdefs.h. */ 4056 #include <stdio.h> 4057 int 4058 main (void) 4059 { 4060 FILE *f = fopen ("conftest.out", "w"); 4061 if (!f) 4062 return 1; 4063 return ferror (f) || fclose (f) != 0; 4064 4065 ; 4066 return 0; 4067 } 4068 _ACEOF 4069 ac_clean_files="$ac_clean_files conftest.out" 4070 # Check that the compiler produces executables we can run. If not, either 4071 # the compiler is broken, or we cross compile. 4072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4073 printf %s "checking whether we are cross compiling... " >&6; } 4074 if test "$cross_compiling" != yes; then 4075 { { ac_try="$ac_link" 4076 case "(($ac_try" in 4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4078 *) ac_try_echo=$ac_try;; 4079 esac 4080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4081 printf "%s\n" "$ac_try_echo"; } >&5 4082 (eval "$ac_link") 2>&5 4083 ac_status=$? 4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4085 test $ac_status = 0; } 4086 if { ac_try='./conftest$ac_cv_exeext' 4087 { { case "(($ac_try" in 4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4089 *) ac_try_echo=$ac_try;; 4090 esac 4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4092 printf "%s\n" "$ac_try_echo"; } >&5 4093 (eval "$ac_try") 2>&5 4094 ac_status=$? 4095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4096 test $ac_status = 0; }; }; then 4097 cross_compiling=no 4098 else 4099 if test "$cross_compiling" = maybe; then 4100 cross_compiling=yes 4101 else 4102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4103 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4104 as_fn_error 77 "cannot run C compiled programs. 4105 If you meant to cross compile, use '--host'. 4106 See 'config.log' for more details" "$LINENO" 5; } 4107 fi 4108 fi 4109 fi 4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4111 printf "%s\n" "$cross_compiling" >&6; } 4112 4113 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4114 conftest.o conftest.obj conftest.out 4115 ac_clean_files=$ac_clean_files_save 4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4117 printf %s "checking for suffix of object files... " >&6; } 4118 if test ${ac_cv_objext+y} 4119 then : 4120 printf %s "(cached) " >&6 4121 else case e in #( 4122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123 /* end confdefs.h. */ 4124 4125 int 4126 main (void) 4127 { 4128 4129 ; 4130 return 0; 4131 } 4132 _ACEOF 4133 rm -f conftest.o conftest.obj 4134 if { { ac_try="$ac_compile" 4135 case "(($ac_try" in 4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4137 *) ac_try_echo=$ac_try;; 4138 esac 4139 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4140 printf "%s\n" "$ac_try_echo"; } >&5 4141 (eval "$ac_compile") 2>&5 4142 ac_status=$? 4143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4144 test $ac_status = 0; } 4145 then : 4146 for ac_file in conftest.o conftest.obj conftest.*; do 4147 test -f "$ac_file" || continue; 4148 case $ac_file in 4149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4150 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4151 break;; 4152 esac 4153 done 4154 else case e in #( 4155 e) printf "%s\n" "$as_me: failed program was:" >&5 4156 sed 's/^/| /' conftest.$ac_ext >&5 4157 4158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4159 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4160 as_fn_error $? "cannot compute suffix of object files: cannot compile 4161 See 'config.log' for more details" "$LINENO" 5; } ;; 4162 esac 4163 fi 4164 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4165 esac 4166 fi 4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4168 printf "%s\n" "$ac_cv_objext" >&6; } 4169 OBJEXT=$ac_cv_objext 4170 ac_objext=$OBJEXT 4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4172 printf %s "checking whether the compiler supports GNU C... " >&6; } 4173 if test ${ac_cv_c_compiler_gnu+y} 4174 then : 4175 printf %s "(cached) " >&6 4176 else case e in #( 4177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4178 /* end confdefs.h. */ 4179 4180 int 4181 main (void) 4182 { 4183 #ifndef __GNUC__ 4184 choke me 4185 #endif 4186 4187 ; 4188 return 0; 4189 } 4190 _ACEOF 4191 if ac_fn_c_try_compile "$LINENO" 4192 then : 4193 ac_compiler_gnu=yes 4194 else case e in #( 4195 e) ac_compiler_gnu=no ;; 4196 esac 4197 fi 4198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4199 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4200 ;; 4201 esac 4202 fi 4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4204 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4206 4207 if test $ac_compiler_gnu = yes; then 4208 GCC=yes 4209 else 4210 GCC= 4211 fi 4212 ac_test_CFLAGS=${CFLAGS+y} 4213 ac_save_CFLAGS=$CFLAGS 4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4215 printf %s "checking whether $CC accepts -g... " >&6; } 4216 if test ${ac_cv_prog_cc_g+y} 4217 then : 4218 printf %s "(cached) " >&6 4219 else case e in #( 4220 e) ac_save_c_werror_flag=$ac_c_werror_flag 4221 ac_c_werror_flag=yes 4222 ac_cv_prog_cc_g=no 4223 CFLAGS="-g" 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225 /* end confdefs.h. */ 4226 4227 int 4228 main (void) 4229 { 4230 4231 ; 4232 return 0; 4233 } 4234 _ACEOF 4235 if ac_fn_c_try_compile "$LINENO" 4236 then : 4237 ac_cv_prog_cc_g=yes 4238 else case e in #( 4239 e) CFLAGS="" 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241 /* end confdefs.h. */ 4242 4243 int 4244 main (void) 4245 { 4246 4247 ; 4248 return 0; 4249 } 4250 _ACEOF 4251 if ac_fn_c_try_compile "$LINENO" 4252 then : 4253 4254 else case e in #( 4255 e) ac_c_werror_flag=$ac_save_c_werror_flag 4256 CFLAGS="-g" 4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4258 /* end confdefs.h. */ 4259 4260 int 4261 main (void) 4262 { 4263 4264 ; 4265 return 0; 4266 } 4267 _ACEOF 4268 if ac_fn_c_try_compile "$LINENO" 4269 then : 4270 ac_cv_prog_cc_g=yes 4271 fi 4272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4273 esac 4274 fi 4275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4276 esac 4277 fi 4278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4279 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4280 esac 4281 fi 4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4283 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4284 if test $ac_test_CFLAGS; then 4285 CFLAGS=$ac_save_CFLAGS 4286 elif test $ac_cv_prog_cc_g = yes; then 4287 if test "$GCC" = yes; then 4288 CFLAGS="-g -O2" 4289 else 4290 CFLAGS="-g" 4291 fi 4292 else 4293 if test "$GCC" = yes; then 4294 CFLAGS="-O2" 4295 else 4296 CFLAGS= 4297 fi 4298 fi 4299 ac_prog_cc_stdc=no 4300 if test x$ac_prog_cc_stdc = xno 4301 then : 4302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4303 printf %s "checking for $CC option to enable C11 features... " >&6; } 4304 if test ${ac_cv_prog_cc_c11+y} 4305 then : 4306 printf %s "(cached) " >&6 4307 else case e in #( 4308 e) ac_cv_prog_cc_c11=no 4309 ac_save_CC=$CC 4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4311 /* end confdefs.h. */ 4312 $ac_c_conftest_c11_program 4313 _ACEOF 4314 for ac_arg in '' -std=gnu11 4315 do 4316 CC="$ac_save_CC $ac_arg" 4317 if ac_fn_c_try_compile "$LINENO" 4318 then : 4319 ac_cv_prog_cc_c11=$ac_arg 4320 fi 4321 rm -f core conftest.err conftest.$ac_objext conftest.beam 4322 test "x$ac_cv_prog_cc_c11" != "xno" && break 4323 done 4324 rm -f conftest.$ac_ext 4325 CC=$ac_save_CC ;; 4326 esac 4327 fi 4328 4329 if test "x$ac_cv_prog_cc_c11" = xno 4330 then : 4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4332 printf "%s\n" "unsupported" >&6; } 4333 else case e in #( 4334 e) if test "x$ac_cv_prog_cc_c11" = x 4335 then : 4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4337 printf "%s\n" "none needed" >&6; } 4338 else case e in #( 4339 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4340 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4341 CC="$CC $ac_cv_prog_cc_c11" ;; 4342 esac 4343 fi 4344 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4345 ac_prog_cc_stdc=c11 ;; 4346 esac 4347 fi 4348 fi 4349 if test x$ac_prog_cc_stdc = xno 4350 then : 4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4352 printf %s "checking for $CC option to enable C99 features... " >&6; } 4353 if test ${ac_cv_prog_cc_c99+y} 4354 then : 4355 printf %s "(cached) " >&6 4356 else case e in #( 4357 e) ac_cv_prog_cc_c99=no 4358 ac_save_CC=$CC 4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4360 /* end confdefs.h. */ 4361 $ac_c_conftest_c99_program 4362 _ACEOF 4363 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4364 do 4365 CC="$ac_save_CC $ac_arg" 4366 if ac_fn_c_try_compile "$LINENO" 4367 then : 4368 ac_cv_prog_cc_c99=$ac_arg 4369 fi 4370 rm -f core conftest.err conftest.$ac_objext conftest.beam 4371 test "x$ac_cv_prog_cc_c99" != "xno" && break 4372 done 4373 rm -f conftest.$ac_ext 4374 CC=$ac_save_CC ;; 4375 esac 4376 fi 4377 4378 if test "x$ac_cv_prog_cc_c99" = xno 4379 then : 4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4381 printf "%s\n" "unsupported" >&6; } 4382 else case e in #( 4383 e) if test "x$ac_cv_prog_cc_c99" = x 4384 then : 4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4386 printf "%s\n" "none needed" >&6; } 4387 else case e in #( 4388 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4389 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4390 CC="$CC $ac_cv_prog_cc_c99" ;; 4391 esac 4392 fi 4393 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4394 ac_prog_cc_stdc=c99 ;; 4395 esac 4396 fi 4397 fi 4398 if test x$ac_prog_cc_stdc = xno 4399 then : 4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4401 printf %s "checking for $CC option to enable C89 features... " >&6; } 4402 if test ${ac_cv_prog_cc_c89+y} 4403 then : 4404 printf %s "(cached) " >&6 4405 else case e in #( 4406 e) ac_cv_prog_cc_c89=no 4407 ac_save_CC=$CC 4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4409 /* end confdefs.h. */ 4410 $ac_c_conftest_c89_program 4411 _ACEOF 4412 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4413 do 4414 CC="$ac_save_CC $ac_arg" 4415 if ac_fn_c_try_compile "$LINENO" 4416 then : 4417 ac_cv_prog_cc_c89=$ac_arg 4418 fi 4419 rm -f core conftest.err conftest.$ac_objext conftest.beam 4420 test "x$ac_cv_prog_cc_c89" != "xno" && break 4421 done 4422 rm -f conftest.$ac_ext 4423 CC=$ac_save_CC ;; 4424 esac 4425 fi 4426 4427 if test "x$ac_cv_prog_cc_c89" = xno 4428 then : 4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4430 printf "%s\n" "unsupported" >&6; } 4431 else case e in #( 4432 e) if test "x$ac_cv_prog_cc_c89" = x 4433 then : 4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4435 printf "%s\n" "none needed" >&6; } 4436 else case e in #( 4437 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4438 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4439 CC="$CC $ac_cv_prog_cc_c89" ;; 4440 esac 4441 fi 4442 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4443 ac_prog_cc_stdc=c89 ;; 4444 esac 4445 fi 4446 fi 4447 4448 ac_ext=c 4449 ac_cpp='$CPP $CPPFLAGS' 4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4453 4454 4455 ac_ext=c 4456 ac_cpp='$CPP $CPPFLAGS' 4457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4459 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4461 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4462 if test ${am_cv_prog_cc_c_o+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 4469 int 4470 main (void) 4471 { 4472 4473 ; 4474 return 0; 4475 } 4476 _ACEOF 4477 # Make sure it works both with $CC and with simple cc. 4478 # Following AC_PROG_CC_C_O, we do the test twice because some 4479 # compilers refuse to overwrite an existing .o file with -o, 4480 # though they will create one. 4481 am_cv_prog_cc_c_o=yes 4482 for am_i in 1 2; do 4483 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4484 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4485 ac_status=$? 4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4487 (exit $ac_status); } \ 4488 && test -f conftest2.$ac_objext; then 4489 : OK 4490 else 4491 am_cv_prog_cc_c_o=no 4492 break 4493 fi 4494 done 4495 rm -f core conftest* 4496 unset am_i ;; 4497 esac 4498 fi 4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4500 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4501 if test "$am_cv_prog_cc_c_o" != yes; then 4502 # Losing compiler, so override with the script. 4503 # FIXME: It is wrong to rewrite CC. 4504 # But if we don't then we get into trouble of one sort or another. 4505 # A longer-term fix would be to have automake use am__CC in this case, 4506 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4507 CC="$am_aux_dir/compile $CC" 4508 fi 4509 ac_ext=c 4510 ac_cpp='$CPP $CPPFLAGS' 4511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4513 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4514 4515 4516 depcc="$CC" am_compiler_list= 4517 4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4519 printf %s "checking dependency style of $depcc... " >&6; } 4520 if test ${am_cv_CC_dependencies_compiler_type+y} 4521 then : 4522 printf %s "(cached) " >&6 4523 else case e in #( 4524 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4525 # We make a subdir and do the tests there. Otherwise we can end up 4526 # making bogus files that we don't know about and never remove. For 4527 # instance it was reported that on HP-UX the gcc test will end up 4528 # making a dummy file named 'D' -- because '-MD' means "put the output 4529 # in D". 4530 rm -rf conftest.dir 4531 mkdir conftest.dir 4532 # Copy depcomp to subdir because otherwise we won't find it if we're 4533 # using a relative directory. 4534 cp "$am_depcomp" conftest.dir 4535 cd conftest.dir 4536 # We will build objects and dependencies in a subdirectory because 4537 # it helps to detect inapplicable dependency modes. For instance 4538 # both Tru64's cc and ICC support -MD to output dependencies as a 4539 # side effect of compilation, but ICC will put the dependencies in 4540 # the current directory while Tru64 will put them in the object 4541 # directory. 4542 mkdir sub 4543 4544 am_cv_CC_dependencies_compiler_type=none 4545 if test "$am_compiler_list" = ""; then 4546 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4547 fi 4548 am__universal=false 4549 case " $depcc " in #( 4550 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4551 esac 4552 4553 for depmode in $am_compiler_list; do 4554 # Setup a source with many dependencies, because some compilers 4555 # like to wrap large dependency lists on column 80 (with \), and 4556 # we should not choose a depcomp mode which is confused by this. 4557 # 4558 # We need to recreate these files for each test, as the compiler may 4559 # overwrite some of them when testing with obscure command lines. 4560 # This happens at least with the AIX C compiler. 4561 : > sub/conftest.c 4562 for i in 1 2 3 4 5 6; do 4563 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4564 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4565 # Solaris 10 /bin/sh. 4566 echo '/* dummy */' > sub/conftst$i.h 4567 done 4568 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4569 4570 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4571 # mode. It turns out that the SunPro C++ compiler does not properly 4572 # handle '-M -o', and we need to detect this. Also, some Intel 4573 # versions had trouble with output in subdirs. 4574 am__obj=sub/conftest.${OBJEXT-o} 4575 am__minus_obj="-o $am__obj" 4576 case $depmode in 4577 gcc) 4578 # This depmode causes a compiler race in universal mode. 4579 test "$am__universal" = false || continue 4580 ;; 4581 nosideeffect) 4582 # After this tag, mechanisms are not by side-effect, so they'll 4583 # only be used when explicitly requested. 4584 if test "x$enable_dependency_tracking" = xyes; then 4585 continue 4586 else 4587 break 4588 fi 4589 ;; 4590 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4591 # This compiler won't grok '-c -o', but also, the minuso test has 4592 # not run yet. These depmodes are late enough in the game, and 4593 # so weak that their functioning should not be impacted. 4594 am__obj=conftest.${OBJEXT-o} 4595 am__minus_obj= 4596 ;; 4597 none) break ;; 4598 esac 4599 if depmode=$depmode \ 4600 source=sub/conftest.c object=$am__obj \ 4601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4602 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4603 >/dev/null 2>conftest.err && 4604 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4606 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4608 # icc doesn't choke on unknown options, it will just issue warnings 4609 # or remarks (even with -Werror). So we grep stderr for any message 4610 # that says an option was ignored or not supported. 4611 # When given -MP, icc 7.0 and 7.1 complain thusly: 4612 # icc: Command line warning: ignoring option '-M'; no argument required 4613 # The diagnosis changed in icc 8.0: 4614 # icc: Command line remark: option '-MP' not supported 4615 if (grep 'ignoring option' conftest.err || 4616 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4617 am_cv_CC_dependencies_compiler_type=$depmode 4618 break 4619 fi 4620 fi 4621 done 4622 4623 cd .. 4624 rm -rf conftest.dir 4625 else 4626 am_cv_CC_dependencies_compiler_type=none 4627 fi 4628 ;; 4629 esac 4630 fi 4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4632 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4633 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4634 4635 if 4636 test "x$enable_dependency_tracking" != xno \ 4637 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4638 am__fastdepCC_TRUE= 4639 am__fastdepCC_FALSE='#' 4640 else 4641 am__fastdepCC_TRUE='#' 4642 am__fastdepCC_FALSE= 4643 fi 4644 4645 4646 4647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4648 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4649 if test ${ac_cv_c_undeclared_builtin_options+y} 4650 then : 4651 printf %s "(cached) " >&6 4652 else case e in #( 4653 e) ac_save_CFLAGS=$CFLAGS 4654 ac_cv_c_undeclared_builtin_options='cannot detect' 4655 for ac_arg in '' -fno-builtin; do 4656 CFLAGS="$ac_save_CFLAGS $ac_arg" 4657 # This test program should *not* compile successfully. 4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4659 /* end confdefs.h. */ 4660 4661 int 4662 main (void) 4663 { 4664 (void) strchr; 4665 ; 4666 return 0; 4667 } 4668 _ACEOF 4669 if ac_fn_c_try_compile "$LINENO" 4670 then : 4671 4672 else case e in #( 4673 e) # This test program should compile successfully. 4674 # No library function is consistently available on 4675 # freestanding implementations, so test against a dummy 4676 # declaration. Include always-available headers on the 4677 # off chance that they somehow elicit warnings. 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679 /* end confdefs.h. */ 4680 #include <float.h> 4681 #include <limits.h> 4682 #include <stdarg.h> 4683 #include <stddef.h> 4684 extern void ac_decl (int, char *); 4685 4686 int 4687 main (void) 4688 { 4689 (void) ac_decl (0, (char *) 0); 4690 (void) ac_decl; 4691 4692 ; 4693 return 0; 4694 } 4695 _ACEOF 4696 if ac_fn_c_try_compile "$LINENO" 4697 then : 4698 if test x"$ac_arg" = x 4699 then : 4700 ac_cv_c_undeclared_builtin_options='none needed' 4701 else case e in #( 4702 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4703 esac 4704 fi 4705 break 4706 fi 4707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4708 esac 4709 fi 4710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4711 done 4712 CFLAGS=$ac_save_CFLAGS 4713 ;; 4714 esac 4715 fi 4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4717 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4718 case $ac_cv_c_undeclared_builtin_options in #( 4719 'cannot detect') : 4720 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4721 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4722 as_fn_error $? "cannot make $CC report undeclared builtins 4723 See 'config.log' for more details" "$LINENO" 5; } ;; #( 4724 'none needed') : 4725 ac_c_undeclared_builtin_options='' ;; #( 4726 *) : 4727 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4728 esac 4729 4730 ac_header= ac_cache= 4731 for ac_item in $ac_header_c_list 4732 do 4733 if test $ac_cache; then 4734 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4735 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4736 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4737 fi 4738 ac_header= ac_cache= 4739 elif test $ac_header; then 4740 ac_cache=$ac_item 4741 else 4742 ac_header=$ac_item 4743 fi 4744 done 4745 4746 4747 4748 4749 4750 4751 4752 4753 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4754 then : 4755 4756 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4757 4758 fi 4759 4760 4761 4762 4763 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4764 if test "x$ac_cv_have_decl___clang__" = xyes 4765 then : 4766 CLANGCC="yes" 4767 else case e in #( 4768 e) CLANGCC="no" ;; 4769 esac 4770 fi 4771 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4772 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4773 then : 4774 INTELCC="yes" 4775 else case e in #( 4776 e) INTELCC="no" ;; 4777 esac 4778 fi 4779 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4780 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4781 then : 4782 SUNCC="yes" 4783 else case e in #( 4784 e) SUNCC="no" ;; 4785 esac 4786 fi 4787 4788 4789 4790 4791 4792 4793 4794 4795 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4796 if test -n "$ac_tool_prefix"; then 4797 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4798 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4800 printf %s "checking for $ac_word... " >&6; } 4801 if test ${ac_cv_path_PKG_CONFIG+y} 4802 then : 4803 printf %s "(cached) " >&6 4804 else case e in #( 4805 e) case $PKG_CONFIG in 4806 [\\/]* | ?:[\\/]*) 4807 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4808 ;; 4809 *) 4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4811 for as_dir in $PATH 4812 do 4813 IFS=$as_save_IFS 4814 case $as_dir in #((( 4815 '') as_dir=./ ;; 4816 */) ;; 4817 *) as_dir=$as_dir/ ;; 4818 esac 4819 for ac_exec_ext in '' $ac_executable_extensions; do 4820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4821 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4823 break 2 4824 fi 4825 done 4826 done 4827 IFS=$as_save_IFS 4828 4829 ;; 4830 esac ;; 4831 esac 4832 fi 4833 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4834 if test -n "$PKG_CONFIG"; then 4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4836 printf "%s\n" "$PKG_CONFIG" >&6; } 4837 else 4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4839 printf "%s\n" "no" >&6; } 4840 fi 4841 4842 4843 fi 4844 if test -z "$ac_cv_path_PKG_CONFIG"; then 4845 ac_pt_PKG_CONFIG=$PKG_CONFIG 4846 # Extract the first word of "pkg-config", so it can be a program name with args. 4847 set dummy pkg-config; ac_word=$2 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4849 printf %s "checking for $ac_word... " >&6; } 4850 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4851 then : 4852 printf %s "(cached) " >&6 4853 else case e in #( 4854 e) case $ac_pt_PKG_CONFIG in 4855 [\\/]* | ?:[\\/]*) 4856 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4857 ;; 4858 *) 4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4860 for as_dir in $PATH 4861 do 4862 IFS=$as_save_IFS 4863 case $as_dir in #((( 4864 '') as_dir=./ ;; 4865 */) ;; 4866 *) as_dir=$as_dir/ ;; 4867 esac 4868 for ac_exec_ext in '' $ac_executable_extensions; do 4869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4870 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4872 break 2 4873 fi 4874 done 4875 done 4876 IFS=$as_save_IFS 4877 4878 ;; 4879 esac ;; 4880 esac 4881 fi 4882 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4883 if test -n "$ac_pt_PKG_CONFIG"; then 4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4885 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4886 else 4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4888 printf "%s\n" "no" >&6; } 4889 fi 4890 4891 if test "x$ac_pt_PKG_CONFIG" = x; then 4892 PKG_CONFIG="" 4893 else 4894 case $cross_compiling:$ac_tool_warned in 4895 yes:) 4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4897 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4898 ac_tool_warned=yes ;; 4899 esac 4900 PKG_CONFIG=$ac_pt_PKG_CONFIG 4901 fi 4902 else 4903 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4904 fi 4905 4906 fi 4907 if test -n "$PKG_CONFIG"; then 4908 _pkg_min_version=0.9.0 4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4910 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4911 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4913 printf "%s\n" "yes" >&6; } 4914 else 4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4916 printf "%s\n" "no" >&6; } 4917 PKG_CONFIG="" 4918 fi 4919 fi 4920 if test -z "$PKG_CONFIG"; then 4921 as_fn_error $? "pkg-config not found" "$LINENO" 5 4922 fi 4923 4924 4925 # Make sure we can run config.sub. 4926 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4927 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4928 4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4930 printf %s "checking build system type... " >&6; } 4931 if test ${ac_cv_build+y} 4932 then : 4933 printf %s "(cached) " >&6 4934 else case e in #( 4935 e) ac_build_alias=$build_alias 4936 test "x$ac_build_alias" = x && 4937 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4938 test "x$ac_build_alias" = x && 4939 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4940 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4941 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4942 ;; 4943 esac 4944 fi 4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4946 printf "%s\n" "$ac_cv_build" >&6; } 4947 case $ac_cv_build in 4948 *-*-*) ;; 4949 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4950 esac 4951 build=$ac_cv_build 4952 ac_save_IFS=$IFS; IFS='-' 4953 set x $ac_cv_build 4954 shift 4955 build_cpu=$1 4956 build_vendor=$2 4957 shift; shift 4958 # Remember, the first character of IFS is used to create $*, 4959 # except with old shells: 4960 build_os=$* 4961 IFS=$ac_save_IFS 4962 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4963 4964 4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4966 printf %s "checking host system type... " >&6; } 4967 if test ${ac_cv_host+y} 4968 then : 4969 printf %s "(cached) " >&6 4970 else case e in #( 4971 e) if test "x$host_alias" = x; then 4972 ac_cv_host=$ac_cv_build 4973 else 4974 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4975 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4976 fi 4977 ;; 4978 esac 4979 fi 4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4981 printf "%s\n" "$ac_cv_host" >&6; } 4982 case $ac_cv_host in 4983 *-*-*) ;; 4984 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4985 esac 4986 host=$ac_cv_host 4987 ac_save_IFS=$IFS; IFS='-' 4988 set x $ac_cv_host 4989 shift 4990 host_cpu=$1 4991 host_vendor=$2 4992 shift; shift 4993 # Remember, the first character of IFS is used to create $*, 4994 # except with old shells: 4995 host_os=$* 4996 IFS=$ac_save_IFS 4997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4998 4999 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5001 printf %s "checking for a sed that does not truncate output... " >&6; } 5002 if test ${ac_cv_path_SED+y} 5003 then : 5004 printf %s "(cached) " >&6 5005 else case e in #( 5006 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5007 for ac_i in 1 2 3 4 5 6 7; do 5008 ac_script="$ac_script$as_nl$ac_script" 5009 done 5010 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5011 { ac_script=; unset ac_script;} 5012 if test -z "$SED"; then 5013 ac_path_SED_found=false 5014 # Loop through the user's path and test for each of PROGNAME-LIST 5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5016 for as_dir in $PATH 5017 do 5018 IFS=$as_save_IFS 5019 case $as_dir in #((( 5020 '') as_dir=./ ;; 5021 */) ;; 5022 *) as_dir=$as_dir/ ;; 5023 esac 5024 for ac_prog in sed gsed 5025 do 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5028 as_fn_executable_p "$ac_path_SED" || continue 5029 # Check for GNU ac_path_SED and select it if it is found. 5030 # Check for GNU $ac_path_SED 5031 case `"$ac_path_SED" --version 2>&1` in #( 5032 *GNU*) 5033 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5034 #( 5035 *) 5036 ac_count=0 5037 printf %s 0123456789 >"conftest.in" 5038 while : 5039 do 5040 cat "conftest.in" "conftest.in" >"conftest.tmp" 5041 mv "conftest.tmp" "conftest.in" 5042 cp "conftest.in" "conftest.nl" 5043 printf "%s\n" '' >> "conftest.nl" 5044 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5046 as_fn_arith $ac_count + 1 && ac_count=$as_val 5047 if test $ac_count -gt ${ac_path_SED_max-0}; then 5048 # Best one so far, save it but keep looking for a better one 5049 ac_cv_path_SED="$ac_path_SED" 5050 ac_path_SED_max=$ac_count 5051 fi 5052 # 10*(2^10) chars as input seems more than enough 5053 test $ac_count -gt 10 && break 5054 done 5055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5056 esac 5057 5058 $ac_path_SED_found && break 3 5059 done 5060 done 5061 done 5062 IFS=$as_save_IFS 5063 if test -z "$ac_cv_path_SED"; then 5064 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5065 fi 5066 else 5067 ac_cv_path_SED=$SED 5068 fi 5069 ;; 5070 esac 5071 fi 5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5073 printf "%s\n" "$ac_cv_path_SED" >&6; } 5074 SED="$ac_cv_path_SED" 5075 rm -f conftest.sed 5076 5077 5078 5079 5080 5081 5082 # Check whether --enable-selective-werror was given. 5083 if test ${enable_selective_werror+y} 5084 then : 5085 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5086 else case e in #( 5087 e) SELECTIVE_WERROR=yes ;; 5088 esac 5089 fi 5090 5091 5092 5093 5094 5095 # -v is too short to test reliably with XORG_TESTSET_CFLAG 5096 if test "x$SUNCC" = "xyes"; then 5097 BASE_CFLAGS="-v" 5098 else 5099 BASE_CFLAGS="" 5100 fi 5101 5102 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 xorg_testset_save_CFLAGS="$CFLAGS" 5117 5118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5121 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5122 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5123 then : 5124 printf %s "(cached) " >&6 5125 else case e in #( 5126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5127 /* end confdefs.h. */ 5128 int i; 5129 _ACEOF 5130 if ac_fn_c_try_compile "$LINENO" 5131 then : 5132 xorg_cv_cc_flag_unknown_warning_option=yes 5133 else case e in #( 5134 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5135 esac 5136 fi 5137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5138 esac 5139 fi 5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5141 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5142 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5143 CFLAGS="$xorg_testset_save_CFLAGS" 5144 fi 5145 5146 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5149 fi 5150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5152 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5153 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5154 then : 5155 printf %s "(cached) " >&6 5156 else case e in #( 5157 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5158 /* end confdefs.h. */ 5159 int i; 5160 _ACEOF 5161 if ac_fn_c_try_compile "$LINENO" 5162 then : 5163 xorg_cv_cc_flag_unused_command_line_argument=yes 5164 else case e in #( 5165 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5166 esac 5167 fi 5168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5169 esac 5170 fi 5171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5172 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5173 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5174 CFLAGS="$xorg_testset_save_CFLAGS" 5175 fi 5176 5177 found="no" 5178 5179 if test $found = "no" ; then 5180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5182 fi 5183 5184 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5186 fi 5187 5188 CFLAGS="$CFLAGS -Wall" 5189 5190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5191 printf %s "checking if $CC supports -Wall... " >&6; } 5192 cacheid=xorg_cv_cc_flag__Wall 5193 if eval test \${$cacheid+y} 5194 then : 5195 printf %s "(cached) " >&6 5196 else case e in #( 5197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5198 /* end confdefs.h. */ 5199 int i; 5200 int 5201 main (void) 5202 { 5203 5204 ; 5205 return 0; 5206 } 5207 _ACEOF 5208 if ac_fn_c_try_link "$LINENO" 5209 then : 5210 eval $cacheid=yes 5211 else case e in #( 5212 e) eval $cacheid=no ;; 5213 esac 5214 fi 5215 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5216 conftest$ac_exeext conftest.$ac_ext ;; 5217 esac 5218 fi 5219 5220 5221 CFLAGS="$xorg_testset_save_CFLAGS" 5222 5223 eval supported=\$$cacheid 5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5225 printf "%s\n" "$supported" >&6; } 5226 if test "$supported" = "yes" ; then 5227 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5228 found="yes" 5229 fi 5230 fi 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 xorg_testset_save_CFLAGS="$CFLAGS" 5247 5248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5251 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5252 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5253 then : 5254 printf %s "(cached) " >&6 5255 else case e in #( 5256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5257 /* end confdefs.h. */ 5258 int i; 5259 _ACEOF 5260 if ac_fn_c_try_compile "$LINENO" 5261 then : 5262 xorg_cv_cc_flag_unknown_warning_option=yes 5263 else case e in #( 5264 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5265 esac 5266 fi 5267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5268 esac 5269 fi 5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5271 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5273 CFLAGS="$xorg_testset_save_CFLAGS" 5274 fi 5275 5276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5279 fi 5280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5282 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5283 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5284 then : 5285 printf %s "(cached) " >&6 5286 else case e in #( 5287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5288 /* end confdefs.h. */ 5289 int i; 5290 _ACEOF 5291 if ac_fn_c_try_compile "$LINENO" 5292 then : 5293 xorg_cv_cc_flag_unused_command_line_argument=yes 5294 else case e in #( 5295 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5296 esac 5297 fi 5298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5299 esac 5300 fi 5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5302 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5304 CFLAGS="$xorg_testset_save_CFLAGS" 5305 fi 5306 5307 found="no" 5308 5309 if test $found = "no" ; then 5310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5312 fi 5313 5314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5316 fi 5317 5318 CFLAGS="$CFLAGS -Wpointer-arith" 5319 5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5321 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5322 cacheid=xorg_cv_cc_flag__Wpointer_arith 5323 if eval test \${$cacheid+y} 5324 then : 5325 printf %s "(cached) " >&6 5326 else case e in #( 5327 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328 /* end confdefs.h. */ 5329 int i; 5330 int 5331 main (void) 5332 { 5333 5334 ; 5335 return 0; 5336 } 5337 _ACEOF 5338 if ac_fn_c_try_link "$LINENO" 5339 then : 5340 eval $cacheid=yes 5341 else case e in #( 5342 e) eval $cacheid=no ;; 5343 esac 5344 fi 5345 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5346 conftest$ac_exeext conftest.$ac_ext ;; 5347 esac 5348 fi 5349 5350 5351 CFLAGS="$xorg_testset_save_CFLAGS" 5352 5353 eval supported=\$$cacheid 5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5355 printf "%s\n" "$supported" >&6; } 5356 if test "$supported" = "yes" ; then 5357 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5358 found="yes" 5359 fi 5360 fi 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 xorg_testset_save_CFLAGS="$CFLAGS" 5377 5378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5381 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5382 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5383 then : 5384 printf %s "(cached) " >&6 5385 else case e in #( 5386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387 /* end confdefs.h. */ 5388 int i; 5389 _ACEOF 5390 if ac_fn_c_try_compile "$LINENO" 5391 then : 5392 xorg_cv_cc_flag_unknown_warning_option=yes 5393 else case e in #( 5394 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5395 esac 5396 fi 5397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5398 esac 5399 fi 5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5401 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5403 CFLAGS="$xorg_testset_save_CFLAGS" 5404 fi 5405 5406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5409 fi 5410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5412 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5413 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5414 then : 5415 printf %s "(cached) " >&6 5416 else case e in #( 5417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418 /* end confdefs.h. */ 5419 int i; 5420 _ACEOF 5421 if ac_fn_c_try_compile "$LINENO" 5422 then : 5423 xorg_cv_cc_flag_unused_command_line_argument=yes 5424 else case e in #( 5425 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5426 esac 5427 fi 5428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5429 esac 5430 fi 5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5432 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5433 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5434 CFLAGS="$xorg_testset_save_CFLAGS" 5435 fi 5436 5437 found="no" 5438 5439 if test $found = "no" ; then 5440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5442 fi 5443 5444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5446 fi 5447 5448 CFLAGS="$CFLAGS -Wmissing-declarations" 5449 5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5451 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5452 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5453 if eval test \${$cacheid+y} 5454 then : 5455 printf %s "(cached) " >&6 5456 else case e in #( 5457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458 /* end confdefs.h. */ 5459 int i; 5460 int 5461 main (void) 5462 { 5463 5464 ; 5465 return 0; 5466 } 5467 _ACEOF 5468 if ac_fn_c_try_link "$LINENO" 5469 then : 5470 eval $cacheid=yes 5471 else case e in #( 5472 e) eval $cacheid=no ;; 5473 esac 5474 fi 5475 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5476 conftest$ac_exeext conftest.$ac_ext ;; 5477 esac 5478 fi 5479 5480 5481 CFLAGS="$xorg_testset_save_CFLAGS" 5482 5483 eval supported=\$$cacheid 5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5485 printf "%s\n" "$supported" >&6; } 5486 if test "$supported" = "yes" ; then 5487 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5488 found="yes" 5489 fi 5490 fi 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 xorg_testset_save_CFLAGS="$CFLAGS" 5507 5508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5511 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5512 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5513 then : 5514 printf %s "(cached) " >&6 5515 else case e in #( 5516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5517 /* end confdefs.h. */ 5518 int i; 5519 _ACEOF 5520 if ac_fn_c_try_compile "$LINENO" 5521 then : 5522 xorg_cv_cc_flag_unknown_warning_option=yes 5523 else case e in #( 5524 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5525 esac 5526 fi 5527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5528 esac 5529 fi 5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5531 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5533 CFLAGS="$xorg_testset_save_CFLAGS" 5534 fi 5535 5536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5539 fi 5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5542 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5543 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5544 then : 5545 printf %s "(cached) " >&6 5546 else case e in #( 5547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5548 /* end confdefs.h. */ 5549 int i; 5550 _ACEOF 5551 if ac_fn_c_try_compile "$LINENO" 5552 then : 5553 xorg_cv_cc_flag_unused_command_line_argument=yes 5554 else case e in #( 5555 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5556 esac 5557 fi 5558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5559 esac 5560 fi 5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5562 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5564 CFLAGS="$xorg_testset_save_CFLAGS" 5565 fi 5566 5567 found="no" 5568 5569 if test $found = "no" ; then 5570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5572 fi 5573 5574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5576 fi 5577 5578 CFLAGS="$CFLAGS -Wformat=2" 5579 5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5581 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5582 cacheid=xorg_cv_cc_flag__Wformat_2 5583 if eval test \${$cacheid+y} 5584 then : 5585 printf %s "(cached) " >&6 5586 else case e in #( 5587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5588 /* end confdefs.h. */ 5589 int i; 5590 int 5591 main (void) 5592 { 5593 5594 ; 5595 return 0; 5596 } 5597 _ACEOF 5598 if ac_fn_c_try_link "$LINENO" 5599 then : 5600 eval $cacheid=yes 5601 else case e in #( 5602 e) eval $cacheid=no ;; 5603 esac 5604 fi 5605 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5606 conftest$ac_exeext conftest.$ac_ext ;; 5607 esac 5608 fi 5609 5610 5611 CFLAGS="$xorg_testset_save_CFLAGS" 5612 5613 eval supported=\$$cacheid 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5615 printf "%s\n" "$supported" >&6; } 5616 if test "$supported" = "yes" ; then 5617 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5618 found="yes" 5619 fi 5620 fi 5621 5622 if test $found = "no" ; then 5623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5625 fi 5626 5627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5629 fi 5630 5631 CFLAGS="$CFLAGS -Wformat" 5632 5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5634 printf %s "checking if $CC supports -Wformat... " >&6; } 5635 cacheid=xorg_cv_cc_flag__Wformat 5636 if eval test \${$cacheid+y} 5637 then : 5638 printf %s "(cached) " >&6 5639 else case e in #( 5640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5641 /* end confdefs.h. */ 5642 int i; 5643 int 5644 main (void) 5645 { 5646 5647 ; 5648 return 0; 5649 } 5650 _ACEOF 5651 if ac_fn_c_try_link "$LINENO" 5652 then : 5653 eval $cacheid=yes 5654 else case e in #( 5655 e) eval $cacheid=no ;; 5656 esac 5657 fi 5658 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5659 conftest$ac_exeext conftest.$ac_ext ;; 5660 esac 5661 fi 5662 5663 5664 CFLAGS="$xorg_testset_save_CFLAGS" 5665 5666 eval supported=\$$cacheid 5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5668 printf "%s\n" "$supported" >&6; } 5669 if test "$supported" = "yes" ; then 5670 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5671 found="yes" 5672 fi 5673 fi 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 xorg_testset_save_CFLAGS="$CFLAGS" 5692 5693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5697 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5698 then : 5699 printf %s "(cached) " >&6 5700 else case e in #( 5701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5702 /* end confdefs.h. */ 5703 int i; 5704 _ACEOF 5705 if ac_fn_c_try_compile "$LINENO" 5706 then : 5707 xorg_cv_cc_flag_unknown_warning_option=yes 5708 else case e in #( 5709 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5710 esac 5711 fi 5712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5713 esac 5714 fi 5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5716 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5717 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5718 CFLAGS="$xorg_testset_save_CFLAGS" 5719 fi 5720 5721 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5724 fi 5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5727 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5728 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5729 then : 5730 printf %s "(cached) " >&6 5731 else case e in #( 5732 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5733 /* end confdefs.h. */ 5734 int i; 5735 _ACEOF 5736 if ac_fn_c_try_compile "$LINENO" 5737 then : 5738 xorg_cv_cc_flag_unused_command_line_argument=yes 5739 else case e in #( 5740 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5741 esac 5742 fi 5743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5744 esac 5745 fi 5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5747 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5749 CFLAGS="$xorg_testset_save_CFLAGS" 5750 fi 5751 5752 found="no" 5753 5754 if test $found = "no" ; then 5755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5757 fi 5758 5759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5761 fi 5762 5763 CFLAGS="$CFLAGS -Wstrict-prototypes" 5764 5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5766 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5767 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5768 if eval test \${$cacheid+y} 5769 then : 5770 printf %s "(cached) " >&6 5771 else case e in #( 5772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5773 /* end confdefs.h. */ 5774 int i; 5775 int 5776 main (void) 5777 { 5778 5779 ; 5780 return 0; 5781 } 5782 _ACEOF 5783 if ac_fn_c_try_link "$LINENO" 5784 then : 5785 eval $cacheid=yes 5786 else case e in #( 5787 e) eval $cacheid=no ;; 5788 esac 5789 fi 5790 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5791 conftest$ac_exeext conftest.$ac_ext ;; 5792 esac 5793 fi 5794 5795 5796 CFLAGS="$xorg_testset_save_CFLAGS" 5797 5798 eval supported=\$$cacheid 5799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5800 printf "%s\n" "$supported" >&6; } 5801 if test "$supported" = "yes" ; then 5802 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5803 found="yes" 5804 fi 5805 fi 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 xorg_testset_save_CFLAGS="$CFLAGS" 5822 5823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5827 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5828 then : 5829 printf %s "(cached) " >&6 5830 else case e in #( 5831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5832 /* end confdefs.h. */ 5833 int i; 5834 _ACEOF 5835 if ac_fn_c_try_compile "$LINENO" 5836 then : 5837 xorg_cv_cc_flag_unknown_warning_option=yes 5838 else case e in #( 5839 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5840 esac 5841 fi 5842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5843 esac 5844 fi 5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5848 CFLAGS="$xorg_testset_save_CFLAGS" 5849 fi 5850 5851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5854 fi 5855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5859 then : 5860 printf %s "(cached) " >&6 5861 else case e in #( 5862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5863 /* end confdefs.h. */ 5864 int i; 5865 _ACEOF 5866 if ac_fn_c_try_compile "$LINENO" 5867 then : 5868 xorg_cv_cc_flag_unused_command_line_argument=yes 5869 else case e in #( 5870 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5871 esac 5872 fi 5873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5874 esac 5875 fi 5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5877 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5879 CFLAGS="$xorg_testset_save_CFLAGS" 5880 fi 5881 5882 found="no" 5883 5884 if test $found = "no" ; then 5885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5887 fi 5888 5889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5891 fi 5892 5893 CFLAGS="$CFLAGS -Wmissing-prototypes" 5894 5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5896 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5897 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5898 if eval test \${$cacheid+y} 5899 then : 5900 printf %s "(cached) " >&6 5901 else case e in #( 5902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5903 /* end confdefs.h. */ 5904 int i; 5905 int 5906 main (void) 5907 { 5908 5909 ; 5910 return 0; 5911 } 5912 _ACEOF 5913 if ac_fn_c_try_link "$LINENO" 5914 then : 5915 eval $cacheid=yes 5916 else case e in #( 5917 e) eval $cacheid=no ;; 5918 esac 5919 fi 5920 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5921 conftest$ac_exeext conftest.$ac_ext ;; 5922 esac 5923 fi 5924 5925 5926 CFLAGS="$xorg_testset_save_CFLAGS" 5927 5928 eval supported=\$$cacheid 5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5930 printf "%s\n" "$supported" >&6; } 5931 if test "$supported" = "yes" ; then 5932 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5933 found="yes" 5934 fi 5935 fi 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 xorg_testset_save_CFLAGS="$CFLAGS" 5952 5953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5957 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5958 then : 5959 printf %s "(cached) " >&6 5960 else case e in #( 5961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962 /* end confdefs.h. */ 5963 int i; 5964 _ACEOF 5965 if ac_fn_c_try_compile "$LINENO" 5966 then : 5967 xorg_cv_cc_flag_unknown_warning_option=yes 5968 else case e in #( 5969 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5970 esac 5971 fi 5972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5973 esac 5974 fi 5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5976 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5978 CFLAGS="$xorg_testset_save_CFLAGS" 5979 fi 5980 5981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5984 fi 5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5987 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5988 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5989 then : 5990 printf %s "(cached) " >&6 5991 else case e in #( 5992 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5993 /* end confdefs.h. */ 5994 int i; 5995 _ACEOF 5996 if ac_fn_c_try_compile "$LINENO" 5997 then : 5998 xorg_cv_cc_flag_unused_command_line_argument=yes 5999 else case e in #( 6000 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6001 esac 6002 fi 6003 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6004 esac 6005 fi 6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6009 CFLAGS="$xorg_testset_save_CFLAGS" 6010 fi 6011 6012 found="no" 6013 6014 if test $found = "no" ; then 6015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6017 fi 6018 6019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6021 fi 6022 6023 CFLAGS="$CFLAGS -Wnested-externs" 6024 6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6026 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6027 cacheid=xorg_cv_cc_flag__Wnested_externs 6028 if eval test \${$cacheid+y} 6029 then : 6030 printf %s "(cached) " >&6 6031 else case e in #( 6032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6033 /* end confdefs.h. */ 6034 int i; 6035 int 6036 main (void) 6037 { 6038 6039 ; 6040 return 0; 6041 } 6042 _ACEOF 6043 if ac_fn_c_try_link "$LINENO" 6044 then : 6045 eval $cacheid=yes 6046 else case e in #( 6047 e) eval $cacheid=no ;; 6048 esac 6049 fi 6050 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6051 conftest$ac_exeext conftest.$ac_ext ;; 6052 esac 6053 fi 6054 6055 6056 CFLAGS="$xorg_testset_save_CFLAGS" 6057 6058 eval supported=\$$cacheid 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6060 printf "%s\n" "$supported" >&6; } 6061 if test "$supported" = "yes" ; then 6062 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6063 found="yes" 6064 fi 6065 fi 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 xorg_testset_save_CFLAGS="$CFLAGS" 6082 6083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6087 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6088 then : 6089 printf %s "(cached) " >&6 6090 else case e in #( 6091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6092 /* end confdefs.h. */ 6093 int i; 6094 _ACEOF 6095 if ac_fn_c_try_compile "$LINENO" 6096 then : 6097 xorg_cv_cc_flag_unknown_warning_option=yes 6098 else case e in #( 6099 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6100 esac 6101 fi 6102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6103 esac 6104 fi 6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6108 CFLAGS="$xorg_testset_save_CFLAGS" 6109 fi 6110 6111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6114 fi 6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6119 then : 6120 printf %s "(cached) " >&6 6121 else case e in #( 6122 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6123 /* end confdefs.h. */ 6124 int i; 6125 _ACEOF 6126 if ac_fn_c_try_compile "$LINENO" 6127 then : 6128 xorg_cv_cc_flag_unused_command_line_argument=yes 6129 else case e in #( 6130 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6131 esac 6132 fi 6133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6134 esac 6135 fi 6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6139 CFLAGS="$xorg_testset_save_CFLAGS" 6140 fi 6141 6142 found="no" 6143 6144 if test $found = "no" ; then 6145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6147 fi 6148 6149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6151 fi 6152 6153 CFLAGS="$CFLAGS -Wbad-function-cast" 6154 6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6156 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6157 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6158 if eval test \${$cacheid+y} 6159 then : 6160 printf %s "(cached) " >&6 6161 else case e in #( 6162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6163 /* end confdefs.h. */ 6164 int i; 6165 int 6166 main (void) 6167 { 6168 6169 ; 6170 return 0; 6171 } 6172 _ACEOF 6173 if ac_fn_c_try_link "$LINENO" 6174 then : 6175 eval $cacheid=yes 6176 else case e in #( 6177 e) eval $cacheid=no ;; 6178 esac 6179 fi 6180 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6181 conftest$ac_exeext conftest.$ac_ext ;; 6182 esac 6183 fi 6184 6185 6186 CFLAGS="$xorg_testset_save_CFLAGS" 6187 6188 eval supported=\$$cacheid 6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6190 printf "%s\n" "$supported" >&6; } 6191 if test "$supported" = "yes" ; then 6192 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6193 found="yes" 6194 fi 6195 fi 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 xorg_testset_save_CFLAGS="$CFLAGS" 6212 6213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6217 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6218 then : 6219 printf %s "(cached) " >&6 6220 else case e in #( 6221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6222 /* end confdefs.h. */ 6223 int i; 6224 _ACEOF 6225 if ac_fn_c_try_compile "$LINENO" 6226 then : 6227 xorg_cv_cc_flag_unknown_warning_option=yes 6228 else case e in #( 6229 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6230 esac 6231 fi 6232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6233 esac 6234 fi 6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6236 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6238 CFLAGS="$xorg_testset_save_CFLAGS" 6239 fi 6240 6241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6244 fi 6245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6247 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6248 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6249 then : 6250 printf %s "(cached) " >&6 6251 else case e in #( 6252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6253 /* end confdefs.h. */ 6254 int i; 6255 _ACEOF 6256 if ac_fn_c_try_compile "$LINENO" 6257 then : 6258 xorg_cv_cc_flag_unused_command_line_argument=yes 6259 else case e in #( 6260 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6261 esac 6262 fi 6263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6264 esac 6265 fi 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6267 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6269 CFLAGS="$xorg_testset_save_CFLAGS" 6270 fi 6271 6272 found="no" 6273 6274 if test $found = "no" ; then 6275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6277 fi 6278 6279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6281 fi 6282 6283 CFLAGS="$CFLAGS -Wold-style-definition" 6284 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6286 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6287 cacheid=xorg_cv_cc_flag__Wold_style_definition 6288 if eval test \${$cacheid+y} 6289 then : 6290 printf %s "(cached) " >&6 6291 else case e in #( 6292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6293 /* end confdefs.h. */ 6294 int i; 6295 int 6296 main (void) 6297 { 6298 6299 ; 6300 return 0; 6301 } 6302 _ACEOF 6303 if ac_fn_c_try_link "$LINENO" 6304 then : 6305 eval $cacheid=yes 6306 else case e in #( 6307 e) eval $cacheid=no ;; 6308 esac 6309 fi 6310 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6311 conftest$ac_exeext conftest.$ac_ext ;; 6312 esac 6313 fi 6314 6315 6316 CFLAGS="$xorg_testset_save_CFLAGS" 6317 6318 eval supported=\$$cacheid 6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6320 printf "%s\n" "$supported" >&6; } 6321 if test "$supported" = "yes" ; then 6322 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6323 found="yes" 6324 fi 6325 fi 6326 6327 if test $found = "no" ; then 6328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6330 fi 6331 6332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6334 fi 6335 6336 CFLAGS="$CFLAGS -fd" 6337 6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6339 printf %s "checking if $CC supports -fd... " >&6; } 6340 cacheid=xorg_cv_cc_flag__fd 6341 if eval test \${$cacheid+y} 6342 then : 6343 printf %s "(cached) " >&6 6344 else case e in #( 6345 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346 /* end confdefs.h. */ 6347 int i; 6348 int 6349 main (void) 6350 { 6351 6352 ; 6353 return 0; 6354 } 6355 _ACEOF 6356 if ac_fn_c_try_link "$LINENO" 6357 then : 6358 eval $cacheid=yes 6359 else case e in #( 6360 e) eval $cacheid=no ;; 6361 esac 6362 fi 6363 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6364 conftest$ac_exeext conftest.$ac_ext ;; 6365 esac 6366 fi 6367 6368 6369 CFLAGS="$xorg_testset_save_CFLAGS" 6370 6371 eval supported=\$$cacheid 6372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6373 printf "%s\n" "$supported" >&6; } 6374 if test "$supported" = "yes" ; then 6375 BASE_CFLAGS="$BASE_CFLAGS -fd" 6376 found="yes" 6377 fi 6378 fi 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 xorg_testset_save_CFLAGS="$CFLAGS" 6395 6396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6399 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6400 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6401 then : 6402 printf %s "(cached) " >&6 6403 else case e in #( 6404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405 /* end confdefs.h. */ 6406 int i; 6407 _ACEOF 6408 if ac_fn_c_try_compile "$LINENO" 6409 then : 6410 xorg_cv_cc_flag_unknown_warning_option=yes 6411 else case e in #( 6412 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6413 esac 6414 fi 6415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6416 esac 6417 fi 6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6419 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6421 CFLAGS="$xorg_testset_save_CFLAGS" 6422 fi 6423 6424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427 fi 6428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6430 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6431 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6432 then : 6433 printf %s "(cached) " >&6 6434 else case e in #( 6435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436 /* end confdefs.h. */ 6437 int i; 6438 _ACEOF 6439 if ac_fn_c_try_compile "$LINENO" 6440 then : 6441 xorg_cv_cc_flag_unused_command_line_argument=yes 6442 else case e in #( 6443 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6444 esac 6445 fi 6446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6447 esac 6448 fi 6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6450 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6452 CFLAGS="$xorg_testset_save_CFLAGS" 6453 fi 6454 6455 found="no" 6456 6457 if test $found = "no" ; then 6458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6460 fi 6461 6462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6464 fi 6465 6466 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6467 6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6469 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6470 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6471 if eval test \${$cacheid+y} 6472 then : 6473 printf %s "(cached) " >&6 6474 else case e in #( 6475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6476 /* end confdefs.h. */ 6477 int i; 6478 int 6479 main (void) 6480 { 6481 6482 ; 6483 return 0; 6484 } 6485 _ACEOF 6486 if ac_fn_c_try_link "$LINENO" 6487 then : 6488 eval $cacheid=yes 6489 else case e in #( 6490 e) eval $cacheid=no ;; 6491 esac 6492 fi 6493 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6494 conftest$ac_exeext conftest.$ac_ext ;; 6495 esac 6496 fi 6497 6498 6499 CFLAGS="$xorg_testset_save_CFLAGS" 6500 6501 eval supported=\$$cacheid 6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6503 printf "%s\n" "$supported" >&6; } 6504 if test "$supported" = "yes" ; then 6505 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6506 found="yes" 6507 fi 6508 fi 6509 6510 6511 6512 6513 6514 # This chunk adds additional warnings that could catch undesired effects. 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 xorg_testset_save_CFLAGS="$CFLAGS" 6529 6530 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6533 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6534 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6535 then : 6536 printf %s "(cached) " >&6 6537 else case e in #( 6538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6539 /* end confdefs.h. */ 6540 int i; 6541 _ACEOF 6542 if ac_fn_c_try_compile "$LINENO" 6543 then : 6544 xorg_cv_cc_flag_unknown_warning_option=yes 6545 else case e in #( 6546 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6547 esac 6548 fi 6549 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6550 esac 6551 fi 6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6553 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6555 CFLAGS="$xorg_testset_save_CFLAGS" 6556 fi 6557 6558 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6561 fi 6562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6564 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6565 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6566 then : 6567 printf %s "(cached) " >&6 6568 else case e in #( 6569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6570 /* end confdefs.h. */ 6571 int i; 6572 _ACEOF 6573 if ac_fn_c_try_compile "$LINENO" 6574 then : 6575 xorg_cv_cc_flag_unused_command_line_argument=yes 6576 else case e in #( 6577 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6578 esac 6579 fi 6580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6581 esac 6582 fi 6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6586 CFLAGS="$xorg_testset_save_CFLAGS" 6587 fi 6588 6589 found="no" 6590 6591 if test $found = "no" ; then 6592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6594 fi 6595 6596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6598 fi 6599 6600 CFLAGS="$CFLAGS -Wunused" 6601 6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6603 printf %s "checking if $CC supports -Wunused... " >&6; } 6604 cacheid=xorg_cv_cc_flag__Wunused 6605 if eval test \${$cacheid+y} 6606 then : 6607 printf %s "(cached) " >&6 6608 else case e in #( 6609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6610 /* end confdefs.h. */ 6611 int i; 6612 int 6613 main (void) 6614 { 6615 6616 ; 6617 return 0; 6618 } 6619 _ACEOF 6620 if ac_fn_c_try_link "$LINENO" 6621 then : 6622 eval $cacheid=yes 6623 else case e in #( 6624 e) eval $cacheid=no ;; 6625 esac 6626 fi 6627 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6628 conftest$ac_exeext conftest.$ac_ext ;; 6629 esac 6630 fi 6631 6632 6633 CFLAGS="$xorg_testset_save_CFLAGS" 6634 6635 eval supported=\$$cacheid 6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6637 printf "%s\n" "$supported" >&6; } 6638 if test "$supported" = "yes" ; then 6639 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6640 found="yes" 6641 fi 6642 fi 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 xorg_testset_save_CFLAGS="$CFLAGS" 6659 6660 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6663 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6664 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6665 then : 6666 printf %s "(cached) " >&6 6667 else case e in #( 6668 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6669 /* end confdefs.h. */ 6670 int i; 6671 _ACEOF 6672 if ac_fn_c_try_compile "$LINENO" 6673 then : 6674 xorg_cv_cc_flag_unknown_warning_option=yes 6675 else case e in #( 6676 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6677 esac 6678 fi 6679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6680 esac 6681 fi 6682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6683 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6685 CFLAGS="$xorg_testset_save_CFLAGS" 6686 fi 6687 6688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6691 fi 6692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6694 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6695 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6696 then : 6697 printf %s "(cached) " >&6 6698 else case e in #( 6699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6700 /* end confdefs.h. */ 6701 int i; 6702 _ACEOF 6703 if ac_fn_c_try_compile "$LINENO" 6704 then : 6705 xorg_cv_cc_flag_unused_command_line_argument=yes 6706 else case e in #( 6707 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6708 esac 6709 fi 6710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6711 esac 6712 fi 6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6714 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6715 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717 fi 6718 6719 found="no" 6720 6721 if test $found = "no" ; then 6722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6724 fi 6725 6726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6728 fi 6729 6730 CFLAGS="$CFLAGS -Wuninitialized" 6731 6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6733 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6734 cacheid=xorg_cv_cc_flag__Wuninitialized 6735 if eval test \${$cacheid+y} 6736 then : 6737 printf %s "(cached) " >&6 6738 else case e in #( 6739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6740 /* end confdefs.h. */ 6741 int i; 6742 int 6743 main (void) 6744 { 6745 6746 ; 6747 return 0; 6748 } 6749 _ACEOF 6750 if ac_fn_c_try_link "$LINENO" 6751 then : 6752 eval $cacheid=yes 6753 else case e in #( 6754 e) eval $cacheid=no ;; 6755 esac 6756 fi 6757 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6758 conftest$ac_exeext conftest.$ac_ext ;; 6759 esac 6760 fi 6761 6762 6763 CFLAGS="$xorg_testset_save_CFLAGS" 6764 6765 eval supported=\$$cacheid 6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6767 printf "%s\n" "$supported" >&6; } 6768 if test "$supported" = "yes" ; then 6769 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6770 found="yes" 6771 fi 6772 fi 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 xorg_testset_save_CFLAGS="$CFLAGS" 6789 6790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6794 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6795 then : 6796 printf %s "(cached) " >&6 6797 else case e in #( 6798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6799 /* end confdefs.h. */ 6800 int i; 6801 _ACEOF 6802 if ac_fn_c_try_compile "$LINENO" 6803 then : 6804 xorg_cv_cc_flag_unknown_warning_option=yes 6805 else case e in #( 6806 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6807 esac 6808 fi 6809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6810 esac 6811 fi 6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6813 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6815 CFLAGS="$xorg_testset_save_CFLAGS" 6816 fi 6817 6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6821 fi 6822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6824 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6825 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6826 then : 6827 printf %s "(cached) " >&6 6828 else case e in #( 6829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6830 /* end confdefs.h. */ 6831 int i; 6832 _ACEOF 6833 if ac_fn_c_try_compile "$LINENO" 6834 then : 6835 xorg_cv_cc_flag_unused_command_line_argument=yes 6836 else case e in #( 6837 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6838 esac 6839 fi 6840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6841 esac 6842 fi 6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6846 CFLAGS="$xorg_testset_save_CFLAGS" 6847 fi 6848 6849 found="no" 6850 6851 if test $found = "no" ; then 6852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6854 fi 6855 6856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6858 fi 6859 6860 CFLAGS="$CFLAGS -Wshadow" 6861 6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6863 printf %s "checking if $CC supports -Wshadow... " >&6; } 6864 cacheid=xorg_cv_cc_flag__Wshadow 6865 if eval test \${$cacheid+y} 6866 then : 6867 printf %s "(cached) " >&6 6868 else case e in #( 6869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6870 /* end confdefs.h. */ 6871 int i; 6872 int 6873 main (void) 6874 { 6875 6876 ; 6877 return 0; 6878 } 6879 _ACEOF 6880 if ac_fn_c_try_link "$LINENO" 6881 then : 6882 eval $cacheid=yes 6883 else case e in #( 6884 e) eval $cacheid=no ;; 6885 esac 6886 fi 6887 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6888 conftest$ac_exeext conftest.$ac_ext ;; 6889 esac 6890 fi 6891 6892 6893 CFLAGS="$xorg_testset_save_CFLAGS" 6894 6895 eval supported=\$$cacheid 6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6897 printf "%s\n" "$supported" >&6; } 6898 if test "$supported" = "yes" ; then 6899 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6900 found="yes" 6901 fi 6902 fi 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 xorg_testset_save_CFLAGS="$CFLAGS" 6919 6920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6923 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6924 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6925 then : 6926 printf %s "(cached) " >&6 6927 else case e in #( 6928 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6929 /* end confdefs.h. */ 6930 int i; 6931 _ACEOF 6932 if ac_fn_c_try_compile "$LINENO" 6933 then : 6934 xorg_cv_cc_flag_unknown_warning_option=yes 6935 else case e in #( 6936 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6937 esac 6938 fi 6939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6940 esac 6941 fi 6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6943 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6945 CFLAGS="$xorg_testset_save_CFLAGS" 6946 fi 6947 6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951 fi 6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6954 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6955 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6956 then : 6957 printf %s "(cached) " >&6 6958 else case e in #( 6959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960 /* end confdefs.h. */ 6961 int i; 6962 _ACEOF 6963 if ac_fn_c_try_compile "$LINENO" 6964 then : 6965 xorg_cv_cc_flag_unused_command_line_argument=yes 6966 else case e in #( 6967 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6968 esac 6969 fi 6970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6971 esac 6972 fi 6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6974 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6976 CFLAGS="$xorg_testset_save_CFLAGS" 6977 fi 6978 6979 found="no" 6980 6981 if test $found = "no" ; then 6982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6984 fi 6985 6986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6988 fi 6989 6990 CFLAGS="$CFLAGS -Wmissing-noreturn" 6991 6992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6993 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6994 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6995 if eval test \${$cacheid+y} 6996 then : 6997 printf %s "(cached) " >&6 6998 else case e in #( 6999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7000 /* end confdefs.h. */ 7001 int i; 7002 int 7003 main (void) 7004 { 7005 7006 ; 7007 return 0; 7008 } 7009 _ACEOF 7010 if ac_fn_c_try_link "$LINENO" 7011 then : 7012 eval $cacheid=yes 7013 else case e in #( 7014 e) eval $cacheid=no ;; 7015 esac 7016 fi 7017 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7018 conftest$ac_exeext conftest.$ac_ext ;; 7019 esac 7020 fi 7021 7022 7023 CFLAGS="$xorg_testset_save_CFLAGS" 7024 7025 eval supported=\$$cacheid 7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7027 printf "%s\n" "$supported" >&6; } 7028 if test "$supported" = "yes" ; then 7029 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7030 found="yes" 7031 fi 7032 fi 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 xorg_testset_save_CFLAGS="$CFLAGS" 7049 7050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7054 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7055 then : 7056 printf %s "(cached) " >&6 7057 else case e in #( 7058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7059 /* end confdefs.h. */ 7060 int i; 7061 _ACEOF 7062 if ac_fn_c_try_compile "$LINENO" 7063 then : 7064 xorg_cv_cc_flag_unknown_warning_option=yes 7065 else case e in #( 7066 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7067 esac 7068 fi 7069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7070 esac 7071 fi 7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7073 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7074 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7075 CFLAGS="$xorg_testset_save_CFLAGS" 7076 fi 7077 7078 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7081 fi 7082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7084 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7085 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7086 then : 7087 printf %s "(cached) " >&6 7088 else case e in #( 7089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7090 /* end confdefs.h. */ 7091 int i; 7092 _ACEOF 7093 if ac_fn_c_try_compile "$LINENO" 7094 then : 7095 xorg_cv_cc_flag_unused_command_line_argument=yes 7096 else case e in #( 7097 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7098 esac 7099 fi 7100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7101 esac 7102 fi 7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7104 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7106 CFLAGS="$xorg_testset_save_CFLAGS" 7107 fi 7108 7109 found="no" 7110 7111 if test $found = "no" ; then 7112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7114 fi 7115 7116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7118 fi 7119 7120 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7121 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7123 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7124 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7125 if eval test \${$cacheid+y} 7126 then : 7127 printf %s "(cached) " >&6 7128 else case e in #( 7129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7130 /* end confdefs.h. */ 7131 int i; 7132 int 7133 main (void) 7134 { 7135 7136 ; 7137 return 0; 7138 } 7139 _ACEOF 7140 if ac_fn_c_try_link "$LINENO" 7141 then : 7142 eval $cacheid=yes 7143 else case e in #( 7144 e) eval $cacheid=no ;; 7145 esac 7146 fi 7147 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7148 conftest$ac_exeext conftest.$ac_ext ;; 7149 esac 7150 fi 7151 7152 7153 CFLAGS="$xorg_testset_save_CFLAGS" 7154 7155 eval supported=\$$cacheid 7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7157 printf "%s\n" "$supported" >&6; } 7158 if test "$supported" = "yes" ; then 7159 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7160 found="yes" 7161 fi 7162 fi 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 xorg_testset_save_CFLAGS="$CFLAGS" 7179 7180 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7181 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7183 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7184 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7185 then : 7186 printf %s "(cached) " >&6 7187 else case e in #( 7188 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7189 /* end confdefs.h. */ 7190 int i; 7191 _ACEOF 7192 if ac_fn_c_try_compile "$LINENO" 7193 then : 7194 xorg_cv_cc_flag_unknown_warning_option=yes 7195 else case e in #( 7196 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7197 esac 7198 fi 7199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7200 esac 7201 fi 7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7203 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7205 CFLAGS="$xorg_testset_save_CFLAGS" 7206 fi 7207 7208 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7211 fi 7212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7214 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7215 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7216 then : 7217 printf %s "(cached) " >&6 7218 else case e in #( 7219 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220 /* end confdefs.h. */ 7221 int i; 7222 _ACEOF 7223 if ac_fn_c_try_compile "$LINENO" 7224 then : 7225 xorg_cv_cc_flag_unused_command_line_argument=yes 7226 else case e in #( 7227 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7228 esac 7229 fi 7230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7231 esac 7232 fi 7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7234 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7235 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237 fi 7238 7239 found="no" 7240 7241 if test $found = "no" ; then 7242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7244 fi 7245 7246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7248 fi 7249 7250 CFLAGS="$CFLAGS -Wredundant-decls" 7251 7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7253 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7254 cacheid=xorg_cv_cc_flag__Wredundant_decls 7255 if eval test \${$cacheid+y} 7256 then : 7257 printf %s "(cached) " >&6 7258 else case e in #( 7259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7260 /* end confdefs.h. */ 7261 int i; 7262 int 7263 main (void) 7264 { 7265 7266 ; 7267 return 0; 7268 } 7269 _ACEOF 7270 if ac_fn_c_try_link "$LINENO" 7271 then : 7272 eval $cacheid=yes 7273 else case e in #( 7274 e) eval $cacheid=no ;; 7275 esac 7276 fi 7277 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7278 conftest$ac_exeext conftest.$ac_ext ;; 7279 esac 7280 fi 7281 7282 7283 CFLAGS="$xorg_testset_save_CFLAGS" 7284 7285 eval supported=\$$cacheid 7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7287 printf "%s\n" "$supported" >&6; } 7288 if test "$supported" = "yes" ; then 7289 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7290 found="yes" 7291 fi 7292 fi 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 xorg_testset_save_CFLAGS="$CFLAGS" 7309 7310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7313 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7314 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7315 then : 7316 printf %s "(cached) " >&6 7317 else case e in #( 7318 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7319 /* end confdefs.h. */ 7320 int i; 7321 _ACEOF 7322 if ac_fn_c_try_compile "$LINENO" 7323 then : 7324 xorg_cv_cc_flag_unknown_warning_option=yes 7325 else case e in #( 7326 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7327 esac 7328 fi 7329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7330 esac 7331 fi 7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7333 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7334 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7335 CFLAGS="$xorg_testset_save_CFLAGS" 7336 fi 7337 7338 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7341 fi 7342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7344 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7345 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7346 then : 7347 printf %s "(cached) " >&6 7348 else case e in #( 7349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7350 /* end confdefs.h. */ 7351 int i; 7352 _ACEOF 7353 if ac_fn_c_try_compile "$LINENO" 7354 then : 7355 xorg_cv_cc_flag_unused_command_line_argument=yes 7356 else case e in #( 7357 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7358 esac 7359 fi 7360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7361 esac 7362 fi 7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7364 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7366 CFLAGS="$xorg_testset_save_CFLAGS" 7367 fi 7368 7369 found="no" 7370 7371 if test $found = "no" ; then 7372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7374 fi 7375 7376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7378 fi 7379 7380 CFLAGS="$CFLAGS -Wlogical-op" 7381 7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7383 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7384 cacheid=xorg_cv_cc_flag__Wlogical_op 7385 if eval test \${$cacheid+y} 7386 then : 7387 printf %s "(cached) " >&6 7388 else case e in #( 7389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7390 /* end confdefs.h. */ 7391 int i; 7392 int 7393 main (void) 7394 { 7395 7396 ; 7397 return 0; 7398 } 7399 _ACEOF 7400 if ac_fn_c_try_link "$LINENO" 7401 then : 7402 eval $cacheid=yes 7403 else case e in #( 7404 e) eval $cacheid=no ;; 7405 esac 7406 fi 7407 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7408 conftest$ac_exeext conftest.$ac_ext ;; 7409 esac 7410 fi 7411 7412 7413 CFLAGS="$xorg_testset_save_CFLAGS" 7414 7415 eval supported=\$$cacheid 7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7417 printf "%s\n" "$supported" >&6; } 7418 if test "$supported" = "yes" ; then 7419 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7420 found="yes" 7421 fi 7422 fi 7423 7424 7425 7426 # These are currently disabled because they are noisy. They will be enabled 7427 # in the future once the codebase is sufficiently modernized to silence 7428 # them. For now, I don't want them to drown out the other warnings. 7429 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7430 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7431 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7432 7433 # Turn some warnings into errors, so we don't accidentally get successful builds 7434 # when there are problems that should be fixed. 7435 7436 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 xorg_testset_save_CFLAGS="$CFLAGS" 7451 7452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7455 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7456 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7457 then : 7458 printf %s "(cached) " >&6 7459 else case e in #( 7460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7461 /* end confdefs.h. */ 7462 int i; 7463 _ACEOF 7464 if ac_fn_c_try_compile "$LINENO" 7465 then : 7466 xorg_cv_cc_flag_unknown_warning_option=yes 7467 else case e in #( 7468 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7469 esac 7470 fi 7471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7472 esac 7473 fi 7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7475 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7476 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7477 CFLAGS="$xorg_testset_save_CFLAGS" 7478 fi 7479 7480 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7483 fi 7484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7486 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7487 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7488 then : 7489 printf %s "(cached) " >&6 7490 else case e in #( 7491 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7492 /* end confdefs.h. */ 7493 int i; 7494 _ACEOF 7495 if ac_fn_c_try_compile "$LINENO" 7496 then : 7497 xorg_cv_cc_flag_unused_command_line_argument=yes 7498 else case e in #( 7499 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7500 esac 7501 fi 7502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7503 esac 7504 fi 7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7506 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7507 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7508 CFLAGS="$xorg_testset_save_CFLAGS" 7509 fi 7510 7511 found="no" 7512 7513 if test $found = "no" ; then 7514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7516 fi 7517 7518 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7520 fi 7521 7522 CFLAGS="$CFLAGS -Werror=implicit" 7523 7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7525 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7526 cacheid=xorg_cv_cc_flag__Werror_implicit 7527 if eval test \${$cacheid+y} 7528 then : 7529 printf %s "(cached) " >&6 7530 else case e in #( 7531 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7532 /* end confdefs.h. */ 7533 int i; 7534 int 7535 main (void) 7536 { 7537 7538 ; 7539 return 0; 7540 } 7541 _ACEOF 7542 if ac_fn_c_try_link "$LINENO" 7543 then : 7544 eval $cacheid=yes 7545 else case e in #( 7546 e) eval $cacheid=no ;; 7547 esac 7548 fi 7549 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7550 conftest$ac_exeext conftest.$ac_ext ;; 7551 esac 7552 fi 7553 7554 7555 CFLAGS="$xorg_testset_save_CFLAGS" 7556 7557 eval supported=\$$cacheid 7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7559 printf "%s\n" "$supported" >&6; } 7560 if test "$supported" = "yes" ; then 7561 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7562 found="yes" 7563 fi 7564 fi 7565 7566 if test $found = "no" ; then 7567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7569 fi 7570 7571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7573 fi 7574 7575 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7576 7577 { 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 7578 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7579 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7580 if eval test \${$cacheid+y} 7581 then : 7582 printf %s "(cached) " >&6 7583 else case e in #( 7584 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585 /* end confdefs.h. */ 7586 int i; 7587 int 7588 main (void) 7589 { 7590 7591 ; 7592 return 0; 7593 } 7594 _ACEOF 7595 if ac_fn_c_try_link "$LINENO" 7596 then : 7597 eval $cacheid=yes 7598 else case e in #( 7599 e) eval $cacheid=no ;; 7600 esac 7601 fi 7602 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7603 conftest$ac_exeext conftest.$ac_ext ;; 7604 esac 7605 fi 7606 7607 7608 CFLAGS="$xorg_testset_save_CFLAGS" 7609 7610 eval supported=\$$cacheid 7611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7612 printf "%s\n" "$supported" >&6; } 7613 if test "$supported" = "yes" ; then 7614 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7615 found="yes" 7616 fi 7617 fi 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 xorg_testset_save_CFLAGS="$CFLAGS" 7634 7635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7638 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7639 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7640 then : 7641 printf %s "(cached) " >&6 7642 else case e in #( 7643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7644 /* end confdefs.h. */ 7645 int i; 7646 _ACEOF 7647 if ac_fn_c_try_compile "$LINENO" 7648 then : 7649 xorg_cv_cc_flag_unknown_warning_option=yes 7650 else case e in #( 7651 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7652 esac 7653 fi 7654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7655 esac 7656 fi 7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7658 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7660 CFLAGS="$xorg_testset_save_CFLAGS" 7661 fi 7662 7663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7666 fi 7667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7669 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7670 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7671 then : 7672 printf %s "(cached) " >&6 7673 else case e in #( 7674 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675 /* end confdefs.h. */ 7676 int i; 7677 _ACEOF 7678 if ac_fn_c_try_compile "$LINENO" 7679 then : 7680 xorg_cv_cc_flag_unused_command_line_argument=yes 7681 else case e in #( 7682 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7683 esac 7684 fi 7685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7686 esac 7687 fi 7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7689 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7691 CFLAGS="$xorg_testset_save_CFLAGS" 7692 fi 7693 7694 found="no" 7695 7696 if test $found = "no" ; then 7697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7699 fi 7700 7701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7703 fi 7704 7705 CFLAGS="$CFLAGS -Werror=nonnull" 7706 7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7708 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7709 cacheid=xorg_cv_cc_flag__Werror_nonnull 7710 if eval test \${$cacheid+y} 7711 then : 7712 printf %s "(cached) " >&6 7713 else case e in #( 7714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7715 /* end confdefs.h. */ 7716 int i; 7717 int 7718 main (void) 7719 { 7720 7721 ; 7722 return 0; 7723 } 7724 _ACEOF 7725 if ac_fn_c_try_link "$LINENO" 7726 then : 7727 eval $cacheid=yes 7728 else case e in #( 7729 e) eval $cacheid=no ;; 7730 esac 7731 fi 7732 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7733 conftest$ac_exeext conftest.$ac_ext ;; 7734 esac 7735 fi 7736 7737 7738 CFLAGS="$xorg_testset_save_CFLAGS" 7739 7740 eval supported=\$$cacheid 7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7742 printf "%s\n" "$supported" >&6; } 7743 if test "$supported" = "yes" ; then 7744 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7745 found="yes" 7746 fi 7747 fi 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 xorg_testset_save_CFLAGS="$CFLAGS" 7764 7765 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7768 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7769 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7770 then : 7771 printf %s "(cached) " >&6 7772 else case e in #( 7773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7774 /* end confdefs.h. */ 7775 int i; 7776 _ACEOF 7777 if ac_fn_c_try_compile "$LINENO" 7778 then : 7779 xorg_cv_cc_flag_unknown_warning_option=yes 7780 else case e in #( 7781 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7782 esac 7783 fi 7784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7785 esac 7786 fi 7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7788 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7790 CFLAGS="$xorg_testset_save_CFLAGS" 7791 fi 7792 7793 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7796 fi 7797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7799 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7800 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7801 then : 7802 printf %s "(cached) " >&6 7803 else case e in #( 7804 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805 /* end confdefs.h. */ 7806 int i; 7807 _ACEOF 7808 if ac_fn_c_try_compile "$LINENO" 7809 then : 7810 xorg_cv_cc_flag_unused_command_line_argument=yes 7811 else case e in #( 7812 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7813 esac 7814 fi 7815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7816 esac 7817 fi 7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7819 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7821 CFLAGS="$xorg_testset_save_CFLAGS" 7822 fi 7823 7824 found="no" 7825 7826 if test $found = "no" ; then 7827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7829 fi 7830 7831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7833 fi 7834 7835 CFLAGS="$CFLAGS -Werror=init-self" 7836 7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7838 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7839 cacheid=xorg_cv_cc_flag__Werror_init_self 7840 if eval test \${$cacheid+y} 7841 then : 7842 printf %s "(cached) " >&6 7843 else case e in #( 7844 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845 /* end confdefs.h. */ 7846 int i; 7847 int 7848 main (void) 7849 { 7850 7851 ; 7852 return 0; 7853 } 7854 _ACEOF 7855 if ac_fn_c_try_link "$LINENO" 7856 then : 7857 eval $cacheid=yes 7858 else case e in #( 7859 e) eval $cacheid=no ;; 7860 esac 7861 fi 7862 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7863 conftest$ac_exeext conftest.$ac_ext ;; 7864 esac 7865 fi 7866 7867 7868 CFLAGS="$xorg_testset_save_CFLAGS" 7869 7870 eval supported=\$$cacheid 7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7872 printf "%s\n" "$supported" >&6; } 7873 if test "$supported" = "yes" ; then 7874 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7875 found="yes" 7876 fi 7877 fi 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 xorg_testset_save_CFLAGS="$CFLAGS" 7894 7895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7899 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7900 then : 7901 printf %s "(cached) " >&6 7902 else case e in #( 7903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7904 /* end confdefs.h. */ 7905 int i; 7906 _ACEOF 7907 if ac_fn_c_try_compile "$LINENO" 7908 then : 7909 xorg_cv_cc_flag_unknown_warning_option=yes 7910 else case e in #( 7911 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7912 esac 7913 fi 7914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7915 esac 7916 fi 7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7918 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7920 CFLAGS="$xorg_testset_save_CFLAGS" 7921 fi 7922 7923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7926 fi 7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7929 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7930 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7931 then : 7932 printf %s "(cached) " >&6 7933 else case e in #( 7934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935 /* end confdefs.h. */ 7936 int i; 7937 _ACEOF 7938 if ac_fn_c_try_compile "$LINENO" 7939 then : 7940 xorg_cv_cc_flag_unused_command_line_argument=yes 7941 else case e in #( 7942 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7943 esac 7944 fi 7945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7946 esac 7947 fi 7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7951 CFLAGS="$xorg_testset_save_CFLAGS" 7952 fi 7953 7954 found="no" 7955 7956 if test $found = "no" ; then 7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7959 fi 7960 7961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7963 fi 7964 7965 CFLAGS="$CFLAGS -Werror=main" 7966 7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7968 printf %s "checking if $CC supports -Werror=main... " >&6; } 7969 cacheid=xorg_cv_cc_flag__Werror_main 7970 if eval test \${$cacheid+y} 7971 then : 7972 printf %s "(cached) " >&6 7973 else case e in #( 7974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7975 /* end confdefs.h. */ 7976 int i; 7977 int 7978 main (void) 7979 { 7980 7981 ; 7982 return 0; 7983 } 7984 _ACEOF 7985 if ac_fn_c_try_link "$LINENO" 7986 then : 7987 eval $cacheid=yes 7988 else case e in #( 7989 e) eval $cacheid=no ;; 7990 esac 7991 fi 7992 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7993 conftest$ac_exeext conftest.$ac_ext ;; 7994 esac 7995 fi 7996 7997 7998 CFLAGS="$xorg_testset_save_CFLAGS" 7999 8000 eval supported=\$$cacheid 8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8002 printf "%s\n" "$supported" >&6; } 8003 if test "$supported" = "yes" ; then 8004 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 8005 found="yes" 8006 fi 8007 fi 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 xorg_testset_save_CFLAGS="$CFLAGS" 8024 8025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8028 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8029 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8030 then : 8031 printf %s "(cached) " >&6 8032 else case e in #( 8033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8034 /* end confdefs.h. */ 8035 int i; 8036 _ACEOF 8037 if ac_fn_c_try_compile "$LINENO" 8038 then : 8039 xorg_cv_cc_flag_unknown_warning_option=yes 8040 else case e in #( 8041 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8042 esac 8043 fi 8044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8045 esac 8046 fi 8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8048 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8050 CFLAGS="$xorg_testset_save_CFLAGS" 8051 fi 8052 8053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8056 fi 8057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8059 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8060 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8061 then : 8062 printf %s "(cached) " >&6 8063 else case e in #( 8064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8065 /* end confdefs.h. */ 8066 int i; 8067 _ACEOF 8068 if ac_fn_c_try_compile "$LINENO" 8069 then : 8070 xorg_cv_cc_flag_unused_command_line_argument=yes 8071 else case e in #( 8072 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8073 esac 8074 fi 8075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8076 esac 8077 fi 8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8079 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8081 CFLAGS="$xorg_testset_save_CFLAGS" 8082 fi 8083 8084 found="no" 8085 8086 if test $found = "no" ; then 8087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8089 fi 8090 8091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8093 fi 8094 8095 CFLAGS="$CFLAGS -Werror=missing-braces" 8096 8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8098 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8099 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8100 if eval test \${$cacheid+y} 8101 then : 8102 printf %s "(cached) " >&6 8103 else case e in #( 8104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105 /* end confdefs.h. */ 8106 int i; 8107 int 8108 main (void) 8109 { 8110 8111 ; 8112 return 0; 8113 } 8114 _ACEOF 8115 if ac_fn_c_try_link "$LINENO" 8116 then : 8117 eval $cacheid=yes 8118 else case e in #( 8119 e) eval $cacheid=no ;; 8120 esac 8121 fi 8122 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8123 conftest$ac_exeext conftest.$ac_ext ;; 8124 esac 8125 fi 8126 8127 8128 CFLAGS="$xorg_testset_save_CFLAGS" 8129 8130 eval supported=\$$cacheid 8131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8132 printf "%s\n" "$supported" >&6; } 8133 if test "$supported" = "yes" ; then 8134 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8135 found="yes" 8136 fi 8137 fi 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 xorg_testset_save_CFLAGS="$CFLAGS" 8154 8155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8158 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8159 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8160 then : 8161 printf %s "(cached) " >&6 8162 else case e in #( 8163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8164 /* end confdefs.h. */ 8165 int i; 8166 _ACEOF 8167 if ac_fn_c_try_compile "$LINENO" 8168 then : 8169 xorg_cv_cc_flag_unknown_warning_option=yes 8170 else case e in #( 8171 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8172 esac 8173 fi 8174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8175 esac 8176 fi 8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8178 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8180 CFLAGS="$xorg_testset_save_CFLAGS" 8181 fi 8182 8183 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8186 fi 8187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8189 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8190 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8191 then : 8192 printf %s "(cached) " >&6 8193 else case e in #( 8194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8195 /* end confdefs.h. */ 8196 int i; 8197 _ACEOF 8198 if ac_fn_c_try_compile "$LINENO" 8199 then : 8200 xorg_cv_cc_flag_unused_command_line_argument=yes 8201 else case e in #( 8202 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8203 esac 8204 fi 8205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8206 esac 8207 fi 8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8211 CFLAGS="$xorg_testset_save_CFLAGS" 8212 fi 8213 8214 found="no" 8215 8216 if test $found = "no" ; then 8217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8219 fi 8220 8221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8223 fi 8224 8225 CFLAGS="$CFLAGS -Werror=sequence-point" 8226 8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8228 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8229 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8230 if eval test \${$cacheid+y} 8231 then : 8232 printf %s "(cached) " >&6 8233 else case e in #( 8234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8235 /* end confdefs.h. */ 8236 int i; 8237 int 8238 main (void) 8239 { 8240 8241 ; 8242 return 0; 8243 } 8244 _ACEOF 8245 if ac_fn_c_try_link "$LINENO" 8246 then : 8247 eval $cacheid=yes 8248 else case e in #( 8249 e) eval $cacheid=no ;; 8250 esac 8251 fi 8252 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8253 conftest$ac_exeext conftest.$ac_ext ;; 8254 esac 8255 fi 8256 8257 8258 CFLAGS="$xorg_testset_save_CFLAGS" 8259 8260 eval supported=\$$cacheid 8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8262 printf "%s\n" "$supported" >&6; } 8263 if test "$supported" = "yes" ; then 8264 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8265 found="yes" 8266 fi 8267 fi 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 xorg_testset_save_CFLAGS="$CFLAGS" 8284 8285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8288 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8289 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8290 then : 8291 printf %s "(cached) " >&6 8292 else case e in #( 8293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8294 /* end confdefs.h. */ 8295 int i; 8296 _ACEOF 8297 if ac_fn_c_try_compile "$LINENO" 8298 then : 8299 xorg_cv_cc_flag_unknown_warning_option=yes 8300 else case e in #( 8301 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8302 esac 8303 fi 8304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8305 esac 8306 fi 8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8308 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8310 CFLAGS="$xorg_testset_save_CFLAGS" 8311 fi 8312 8313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8316 fi 8317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8319 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8320 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8321 then : 8322 printf %s "(cached) " >&6 8323 else case e in #( 8324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8325 /* end confdefs.h. */ 8326 int i; 8327 _ACEOF 8328 if ac_fn_c_try_compile "$LINENO" 8329 then : 8330 xorg_cv_cc_flag_unused_command_line_argument=yes 8331 else case e in #( 8332 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8333 esac 8334 fi 8335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8336 esac 8337 fi 8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8339 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8341 CFLAGS="$xorg_testset_save_CFLAGS" 8342 fi 8343 8344 found="no" 8345 8346 if test $found = "no" ; then 8347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8349 fi 8350 8351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8353 fi 8354 8355 CFLAGS="$CFLAGS -Werror=return-type" 8356 8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8358 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8359 cacheid=xorg_cv_cc_flag__Werror_return_type 8360 if eval test \${$cacheid+y} 8361 then : 8362 printf %s "(cached) " >&6 8363 else case e in #( 8364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8365 /* end confdefs.h. */ 8366 int i; 8367 int 8368 main (void) 8369 { 8370 8371 ; 8372 return 0; 8373 } 8374 _ACEOF 8375 if ac_fn_c_try_link "$LINENO" 8376 then : 8377 eval $cacheid=yes 8378 else case e in #( 8379 e) eval $cacheid=no ;; 8380 esac 8381 fi 8382 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8383 conftest$ac_exeext conftest.$ac_ext ;; 8384 esac 8385 fi 8386 8387 8388 CFLAGS="$xorg_testset_save_CFLAGS" 8389 8390 eval supported=\$$cacheid 8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8392 printf "%s\n" "$supported" >&6; } 8393 if test "$supported" = "yes" ; then 8394 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8395 found="yes" 8396 fi 8397 fi 8398 8399 if test $found = "no" ; then 8400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8402 fi 8403 8404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8406 fi 8407 8408 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8409 8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8411 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8412 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8413 if eval test \${$cacheid+y} 8414 then : 8415 printf %s "(cached) " >&6 8416 else case e in #( 8417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8418 /* end confdefs.h. */ 8419 int i; 8420 int 8421 main (void) 8422 { 8423 8424 ; 8425 return 0; 8426 } 8427 _ACEOF 8428 if ac_fn_c_try_link "$LINENO" 8429 then : 8430 eval $cacheid=yes 8431 else case e in #( 8432 e) eval $cacheid=no ;; 8433 esac 8434 fi 8435 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8436 conftest$ac_exeext conftest.$ac_ext ;; 8437 esac 8438 fi 8439 8440 8441 CFLAGS="$xorg_testset_save_CFLAGS" 8442 8443 eval supported=\$$cacheid 8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8445 printf "%s\n" "$supported" >&6; } 8446 if test "$supported" = "yes" ; then 8447 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8448 found="yes" 8449 fi 8450 fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 xorg_testset_save_CFLAGS="$CFLAGS" 8467 8468 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8471 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8472 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8473 then : 8474 printf %s "(cached) " >&6 8475 else case e in #( 8476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8477 /* end confdefs.h. */ 8478 int i; 8479 _ACEOF 8480 if ac_fn_c_try_compile "$LINENO" 8481 then : 8482 xorg_cv_cc_flag_unknown_warning_option=yes 8483 else case e in #( 8484 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8485 esac 8486 fi 8487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8488 esac 8489 fi 8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8491 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8492 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8493 CFLAGS="$xorg_testset_save_CFLAGS" 8494 fi 8495 8496 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8499 fi 8500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8502 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8503 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8504 then : 8505 printf %s "(cached) " >&6 8506 else case e in #( 8507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8508 /* end confdefs.h. */ 8509 int i; 8510 _ACEOF 8511 if ac_fn_c_try_compile "$LINENO" 8512 then : 8513 xorg_cv_cc_flag_unused_command_line_argument=yes 8514 else case e in #( 8515 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8516 esac 8517 fi 8518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8519 esac 8520 fi 8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8522 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8524 CFLAGS="$xorg_testset_save_CFLAGS" 8525 fi 8526 8527 found="no" 8528 8529 if test $found = "no" ; then 8530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8532 fi 8533 8534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8536 fi 8537 8538 CFLAGS="$CFLAGS -Werror=trigraphs" 8539 8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8541 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8542 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8543 if eval test \${$cacheid+y} 8544 then : 8545 printf %s "(cached) " >&6 8546 else case e in #( 8547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8548 /* end confdefs.h. */ 8549 int i; 8550 int 8551 main (void) 8552 { 8553 8554 ; 8555 return 0; 8556 } 8557 _ACEOF 8558 if ac_fn_c_try_link "$LINENO" 8559 then : 8560 eval $cacheid=yes 8561 else case e in #( 8562 e) eval $cacheid=no ;; 8563 esac 8564 fi 8565 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8566 conftest$ac_exeext conftest.$ac_ext ;; 8567 esac 8568 fi 8569 8570 8571 CFLAGS="$xorg_testset_save_CFLAGS" 8572 8573 eval supported=\$$cacheid 8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8575 printf "%s\n" "$supported" >&6; } 8576 if test "$supported" = "yes" ; then 8577 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8578 found="yes" 8579 fi 8580 fi 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 xorg_testset_save_CFLAGS="$CFLAGS" 8597 8598 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8601 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8602 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8603 then : 8604 printf %s "(cached) " >&6 8605 else case e in #( 8606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607 /* end confdefs.h. */ 8608 int i; 8609 _ACEOF 8610 if ac_fn_c_try_compile "$LINENO" 8611 then : 8612 xorg_cv_cc_flag_unknown_warning_option=yes 8613 else case e in #( 8614 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8615 esac 8616 fi 8617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8618 esac 8619 fi 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8621 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8623 CFLAGS="$xorg_testset_save_CFLAGS" 8624 fi 8625 8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8629 fi 8630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8632 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8633 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8634 then : 8635 printf %s "(cached) " >&6 8636 else case e in #( 8637 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8638 /* end confdefs.h. */ 8639 int i; 8640 _ACEOF 8641 if ac_fn_c_try_compile "$LINENO" 8642 then : 8643 xorg_cv_cc_flag_unused_command_line_argument=yes 8644 else case e in #( 8645 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8646 esac 8647 fi 8648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8649 esac 8650 fi 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8652 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8654 CFLAGS="$xorg_testset_save_CFLAGS" 8655 fi 8656 8657 found="no" 8658 8659 if test $found = "no" ; then 8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8662 fi 8663 8664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8666 fi 8667 8668 CFLAGS="$CFLAGS -Werror=array-bounds" 8669 8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8671 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8672 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8673 if eval test \${$cacheid+y} 8674 then : 8675 printf %s "(cached) " >&6 8676 else case e in #( 8677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8678 /* end confdefs.h. */ 8679 int i; 8680 int 8681 main (void) 8682 { 8683 8684 ; 8685 return 0; 8686 } 8687 _ACEOF 8688 if ac_fn_c_try_link "$LINENO" 8689 then : 8690 eval $cacheid=yes 8691 else case e in #( 8692 e) eval $cacheid=no ;; 8693 esac 8694 fi 8695 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8696 conftest$ac_exeext conftest.$ac_ext ;; 8697 esac 8698 fi 8699 8700 8701 CFLAGS="$xorg_testset_save_CFLAGS" 8702 8703 eval supported=\$$cacheid 8704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8705 printf "%s\n" "$supported" >&6; } 8706 if test "$supported" = "yes" ; then 8707 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8708 found="yes" 8709 fi 8710 fi 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 xorg_testset_save_CFLAGS="$CFLAGS" 8727 8728 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8731 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8732 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8733 then : 8734 printf %s "(cached) " >&6 8735 else case e in #( 8736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737 /* end confdefs.h. */ 8738 int i; 8739 _ACEOF 8740 if ac_fn_c_try_compile "$LINENO" 8741 then : 8742 xorg_cv_cc_flag_unknown_warning_option=yes 8743 else case e in #( 8744 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8745 esac 8746 fi 8747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8748 esac 8749 fi 8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8751 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8753 CFLAGS="$xorg_testset_save_CFLAGS" 8754 fi 8755 8756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8759 fi 8760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8762 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8763 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8764 then : 8765 printf %s "(cached) " >&6 8766 else case e in #( 8767 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8768 /* end confdefs.h. */ 8769 int i; 8770 _ACEOF 8771 if ac_fn_c_try_compile "$LINENO" 8772 then : 8773 xorg_cv_cc_flag_unused_command_line_argument=yes 8774 else case e in #( 8775 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8776 esac 8777 fi 8778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8779 esac 8780 fi 8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8782 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8783 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8784 CFLAGS="$xorg_testset_save_CFLAGS" 8785 fi 8786 8787 found="no" 8788 8789 if test $found = "no" ; then 8790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8792 fi 8793 8794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8796 fi 8797 8798 CFLAGS="$CFLAGS -Werror=write-strings" 8799 8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8801 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8802 cacheid=xorg_cv_cc_flag__Werror_write_strings 8803 if eval test \${$cacheid+y} 8804 then : 8805 printf %s "(cached) " >&6 8806 else case e in #( 8807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8808 /* end confdefs.h. */ 8809 int i; 8810 int 8811 main (void) 8812 { 8813 8814 ; 8815 return 0; 8816 } 8817 _ACEOF 8818 if ac_fn_c_try_link "$LINENO" 8819 then : 8820 eval $cacheid=yes 8821 else case e in #( 8822 e) eval $cacheid=no ;; 8823 esac 8824 fi 8825 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8826 conftest$ac_exeext conftest.$ac_ext ;; 8827 esac 8828 fi 8829 8830 8831 CFLAGS="$xorg_testset_save_CFLAGS" 8832 8833 eval supported=\$$cacheid 8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8835 printf "%s\n" "$supported" >&6; } 8836 if test "$supported" = "yes" ; then 8837 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8838 found="yes" 8839 fi 8840 fi 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 xorg_testset_save_CFLAGS="$CFLAGS" 8857 8858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8861 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8862 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8863 then : 8864 printf %s "(cached) " >&6 8865 else case e in #( 8866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8867 /* end confdefs.h. */ 8868 int i; 8869 _ACEOF 8870 if ac_fn_c_try_compile "$LINENO" 8871 then : 8872 xorg_cv_cc_flag_unknown_warning_option=yes 8873 else case e in #( 8874 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8875 esac 8876 fi 8877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8878 esac 8879 fi 8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8883 CFLAGS="$xorg_testset_save_CFLAGS" 8884 fi 8885 8886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8889 fi 8890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8894 then : 8895 printf %s "(cached) " >&6 8896 else case e in #( 8897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8898 /* end confdefs.h. */ 8899 int i; 8900 _ACEOF 8901 if ac_fn_c_try_compile "$LINENO" 8902 then : 8903 xorg_cv_cc_flag_unused_command_line_argument=yes 8904 else case e in #( 8905 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8906 esac 8907 fi 8908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8909 esac 8910 fi 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8912 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8914 CFLAGS="$xorg_testset_save_CFLAGS" 8915 fi 8916 8917 found="no" 8918 8919 if test $found = "no" ; then 8920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8922 fi 8923 8924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8926 fi 8927 8928 CFLAGS="$CFLAGS -Werror=address" 8929 8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8931 printf %s "checking if $CC supports -Werror=address... " >&6; } 8932 cacheid=xorg_cv_cc_flag__Werror_address 8933 if eval test \${$cacheid+y} 8934 then : 8935 printf %s "(cached) " >&6 8936 else case e in #( 8937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8938 /* end confdefs.h. */ 8939 int i; 8940 int 8941 main (void) 8942 { 8943 8944 ; 8945 return 0; 8946 } 8947 _ACEOF 8948 if ac_fn_c_try_link "$LINENO" 8949 then : 8950 eval $cacheid=yes 8951 else case e in #( 8952 e) eval $cacheid=no ;; 8953 esac 8954 fi 8955 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8956 conftest$ac_exeext conftest.$ac_ext ;; 8957 esac 8958 fi 8959 8960 8961 CFLAGS="$xorg_testset_save_CFLAGS" 8962 8963 eval supported=\$$cacheid 8964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8965 printf "%s\n" "$supported" >&6; } 8966 if test "$supported" = "yes" ; then 8967 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8968 found="yes" 8969 fi 8970 fi 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 xorg_testset_save_CFLAGS="$CFLAGS" 8987 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8991 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8992 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8993 then : 8994 printf %s "(cached) " >&6 8995 else case e in #( 8996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8997 /* end confdefs.h. */ 8998 int i; 8999 _ACEOF 9000 if ac_fn_c_try_compile "$LINENO" 9001 then : 9002 xorg_cv_cc_flag_unknown_warning_option=yes 9003 else case e in #( 9004 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9005 esac 9006 fi 9007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9008 esac 9009 fi 9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9011 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9012 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014 fi 9015 9016 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9019 fi 9020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9022 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9023 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9024 then : 9025 printf %s "(cached) " >&6 9026 else case e in #( 9027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9028 /* end confdefs.h. */ 9029 int i; 9030 _ACEOF 9031 if ac_fn_c_try_compile "$LINENO" 9032 then : 9033 xorg_cv_cc_flag_unused_command_line_argument=yes 9034 else case e in #( 9035 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9036 esac 9037 fi 9038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9039 esac 9040 fi 9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9042 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9043 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9044 CFLAGS="$xorg_testset_save_CFLAGS" 9045 fi 9046 9047 found="no" 9048 9049 if test $found = "no" ; then 9050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9052 fi 9053 9054 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9056 fi 9057 9058 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9059 9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9061 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9062 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9063 if eval test \${$cacheid+y} 9064 then : 9065 printf %s "(cached) " >&6 9066 else case e in #( 9067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068 /* end confdefs.h. */ 9069 int i; 9070 int 9071 main (void) 9072 { 9073 9074 ; 9075 return 0; 9076 } 9077 _ACEOF 9078 if ac_fn_c_try_link "$LINENO" 9079 then : 9080 eval $cacheid=yes 9081 else case e in #( 9082 e) eval $cacheid=no ;; 9083 esac 9084 fi 9085 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9086 conftest$ac_exeext conftest.$ac_ext ;; 9087 esac 9088 fi 9089 9090 9091 CFLAGS="$xorg_testset_save_CFLAGS" 9092 9093 eval supported=\$$cacheid 9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9095 printf "%s\n" "$supported" >&6; } 9096 if test "$supported" = "yes" ; then 9097 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9098 found="yes" 9099 fi 9100 fi 9101 9102 if test $found = "no" ; then 9103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9105 fi 9106 9107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9109 fi 9110 9111 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9112 9113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9114 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9115 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9116 if eval test \${$cacheid+y} 9117 then : 9118 printf %s "(cached) " >&6 9119 else case e in #( 9120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9121 /* end confdefs.h. */ 9122 int i; 9123 int 9124 main (void) 9125 { 9126 9127 ; 9128 return 0; 9129 } 9130 _ACEOF 9131 if ac_fn_c_try_link "$LINENO" 9132 then : 9133 eval $cacheid=yes 9134 else case e in #( 9135 e) eval $cacheid=no ;; 9136 esac 9137 fi 9138 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9139 conftest$ac_exeext conftest.$ac_ext ;; 9140 esac 9141 fi 9142 9143 9144 CFLAGS="$xorg_testset_save_CFLAGS" 9145 9146 eval supported=\$$cacheid 9147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9148 printf "%s\n" "$supported" >&6; } 9149 if test "$supported" = "yes" ; then 9150 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9151 found="yes" 9152 fi 9153 fi 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 xorg_testset_save_CFLAGS="$CFLAGS" 9170 9171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9174 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9175 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9176 then : 9177 printf %s "(cached) " >&6 9178 else case e in #( 9179 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9180 /* end confdefs.h. */ 9181 int i; 9182 _ACEOF 9183 if ac_fn_c_try_compile "$LINENO" 9184 then : 9185 xorg_cv_cc_flag_unknown_warning_option=yes 9186 else case e in #( 9187 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9188 esac 9189 fi 9190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9191 esac 9192 fi 9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9194 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9195 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9196 CFLAGS="$xorg_testset_save_CFLAGS" 9197 fi 9198 9199 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9202 fi 9203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9205 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9206 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9207 then : 9208 printf %s "(cached) " >&6 9209 else case e in #( 9210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9211 /* end confdefs.h. */ 9212 int i; 9213 _ACEOF 9214 if ac_fn_c_try_compile "$LINENO" 9215 then : 9216 xorg_cv_cc_flag_unused_command_line_argument=yes 9217 else case e in #( 9218 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9219 esac 9220 fi 9221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9222 esac 9223 fi 9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9225 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9227 CFLAGS="$xorg_testset_save_CFLAGS" 9228 fi 9229 9230 found="no" 9231 9232 if test $found = "no" ; then 9233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9235 fi 9236 9237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9239 fi 9240 9241 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9242 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9244 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9245 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9246 if eval test \${$cacheid+y} 9247 then : 9248 printf %s "(cached) " >&6 9249 else case e in #( 9250 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9251 /* end confdefs.h. */ 9252 int i; 9253 int 9254 main (void) 9255 { 9256 9257 ; 9258 return 0; 9259 } 9260 _ACEOF 9261 if ac_fn_c_try_link "$LINENO" 9262 then : 9263 eval $cacheid=yes 9264 else case e in #( 9265 e) eval $cacheid=no ;; 9266 esac 9267 fi 9268 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9269 conftest$ac_exeext conftest.$ac_ext ;; 9270 esac 9271 fi 9272 9273 9274 CFLAGS="$xorg_testset_save_CFLAGS" 9275 9276 eval supported=\$$cacheid 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9278 printf "%s\n" "$supported" >&6; } 9279 if test "$supported" = "yes" ; then 9280 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9281 found="yes" 9282 fi 9283 fi 9284 9285 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9286 else 9287 { 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 9288 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;} 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 xorg_testset_save_CFLAGS="$CFLAGS" 9303 9304 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9307 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9308 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9309 then : 9310 printf %s "(cached) " >&6 9311 else case e in #( 9312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313 /* end confdefs.h. */ 9314 int i; 9315 _ACEOF 9316 if ac_fn_c_try_compile "$LINENO" 9317 then : 9318 xorg_cv_cc_flag_unknown_warning_option=yes 9319 else case e in #( 9320 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9321 esac 9322 fi 9323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9324 esac 9325 fi 9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9327 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9329 CFLAGS="$xorg_testset_save_CFLAGS" 9330 fi 9331 9332 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 fi 9336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9338 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9339 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9340 then : 9341 printf %s "(cached) " >&6 9342 else case e in #( 9343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9344 /* end confdefs.h. */ 9345 int i; 9346 _ACEOF 9347 if ac_fn_c_try_compile "$LINENO" 9348 then : 9349 xorg_cv_cc_flag_unused_command_line_argument=yes 9350 else case e in #( 9351 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9352 esac 9353 fi 9354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9355 esac 9356 fi 9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9358 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9360 CFLAGS="$xorg_testset_save_CFLAGS" 9361 fi 9362 9363 found="no" 9364 9365 if test $found = "no" ; then 9366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9368 fi 9369 9370 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9372 fi 9373 9374 CFLAGS="$CFLAGS -Wimplicit" 9375 9376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9377 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9378 cacheid=xorg_cv_cc_flag__Wimplicit 9379 if eval test \${$cacheid+y} 9380 then : 9381 printf %s "(cached) " >&6 9382 else case e in #( 9383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9384 /* end confdefs.h. */ 9385 int i; 9386 int 9387 main (void) 9388 { 9389 9390 ; 9391 return 0; 9392 } 9393 _ACEOF 9394 if ac_fn_c_try_link "$LINENO" 9395 then : 9396 eval $cacheid=yes 9397 else case e in #( 9398 e) eval $cacheid=no ;; 9399 esac 9400 fi 9401 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9402 conftest$ac_exeext conftest.$ac_ext ;; 9403 esac 9404 fi 9405 9406 9407 CFLAGS="$xorg_testset_save_CFLAGS" 9408 9409 eval supported=\$$cacheid 9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9411 printf "%s\n" "$supported" >&6; } 9412 if test "$supported" = "yes" ; then 9413 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9414 found="yes" 9415 fi 9416 fi 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 xorg_testset_save_CFLAGS="$CFLAGS" 9433 9434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9437 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9438 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9439 then : 9440 printf %s "(cached) " >&6 9441 else case e in #( 9442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9443 /* end confdefs.h. */ 9444 int i; 9445 _ACEOF 9446 if ac_fn_c_try_compile "$LINENO" 9447 then : 9448 xorg_cv_cc_flag_unknown_warning_option=yes 9449 else case e in #( 9450 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9451 esac 9452 fi 9453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9454 esac 9455 fi 9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9457 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9459 CFLAGS="$xorg_testset_save_CFLAGS" 9460 fi 9461 9462 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9465 fi 9466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9468 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9469 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9470 then : 9471 printf %s "(cached) " >&6 9472 else case e in #( 9473 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9474 /* end confdefs.h. */ 9475 int i; 9476 _ACEOF 9477 if ac_fn_c_try_compile "$LINENO" 9478 then : 9479 xorg_cv_cc_flag_unused_command_line_argument=yes 9480 else case e in #( 9481 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9482 esac 9483 fi 9484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9485 esac 9486 fi 9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9488 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9489 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9490 CFLAGS="$xorg_testset_save_CFLAGS" 9491 fi 9492 9493 found="no" 9494 9495 if test $found = "no" ; then 9496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9498 fi 9499 9500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9502 fi 9503 9504 CFLAGS="$CFLAGS -Wnonnull" 9505 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9507 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9508 cacheid=xorg_cv_cc_flag__Wnonnull 9509 if eval test \${$cacheid+y} 9510 then : 9511 printf %s "(cached) " >&6 9512 else case e in #( 9513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9514 /* end confdefs.h. */ 9515 int i; 9516 int 9517 main (void) 9518 { 9519 9520 ; 9521 return 0; 9522 } 9523 _ACEOF 9524 if ac_fn_c_try_link "$LINENO" 9525 then : 9526 eval $cacheid=yes 9527 else case e in #( 9528 e) eval $cacheid=no ;; 9529 esac 9530 fi 9531 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9532 conftest$ac_exeext conftest.$ac_ext ;; 9533 esac 9534 fi 9535 9536 9537 CFLAGS="$xorg_testset_save_CFLAGS" 9538 9539 eval supported=\$$cacheid 9540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9541 printf "%s\n" "$supported" >&6; } 9542 if test "$supported" = "yes" ; then 9543 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9544 found="yes" 9545 fi 9546 fi 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 xorg_testset_save_CFLAGS="$CFLAGS" 9563 9564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9567 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9568 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9569 then : 9570 printf %s "(cached) " >&6 9571 else case e in #( 9572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9573 /* end confdefs.h. */ 9574 int i; 9575 _ACEOF 9576 if ac_fn_c_try_compile "$LINENO" 9577 then : 9578 xorg_cv_cc_flag_unknown_warning_option=yes 9579 else case e in #( 9580 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9581 esac 9582 fi 9583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9584 esac 9585 fi 9586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9587 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9589 CFLAGS="$xorg_testset_save_CFLAGS" 9590 fi 9591 9592 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9595 fi 9596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9598 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9599 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9600 then : 9601 printf %s "(cached) " >&6 9602 else case e in #( 9603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604 /* end confdefs.h. */ 9605 int i; 9606 _ACEOF 9607 if ac_fn_c_try_compile "$LINENO" 9608 then : 9609 xorg_cv_cc_flag_unused_command_line_argument=yes 9610 else case e in #( 9611 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9612 esac 9613 fi 9614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9615 esac 9616 fi 9617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9618 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9620 CFLAGS="$xorg_testset_save_CFLAGS" 9621 fi 9622 9623 found="no" 9624 9625 if test $found = "no" ; then 9626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9628 fi 9629 9630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9632 fi 9633 9634 CFLAGS="$CFLAGS -Winit-self" 9635 9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9637 printf %s "checking if $CC supports -Winit-self... " >&6; } 9638 cacheid=xorg_cv_cc_flag__Winit_self 9639 if eval test \${$cacheid+y} 9640 then : 9641 printf %s "(cached) " >&6 9642 else case e in #( 9643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9644 /* end confdefs.h. */ 9645 int i; 9646 int 9647 main (void) 9648 { 9649 9650 ; 9651 return 0; 9652 } 9653 _ACEOF 9654 if ac_fn_c_try_link "$LINENO" 9655 then : 9656 eval $cacheid=yes 9657 else case e in #( 9658 e) eval $cacheid=no ;; 9659 esac 9660 fi 9661 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9662 conftest$ac_exeext conftest.$ac_ext ;; 9663 esac 9664 fi 9665 9666 9667 CFLAGS="$xorg_testset_save_CFLAGS" 9668 9669 eval supported=\$$cacheid 9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9671 printf "%s\n" "$supported" >&6; } 9672 if test "$supported" = "yes" ; then 9673 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9674 found="yes" 9675 fi 9676 fi 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 xorg_testset_save_CFLAGS="$CFLAGS" 9693 9694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9698 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9699 then : 9700 printf %s "(cached) " >&6 9701 else case e in #( 9702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703 /* end confdefs.h. */ 9704 int i; 9705 _ACEOF 9706 if ac_fn_c_try_compile "$LINENO" 9707 then : 9708 xorg_cv_cc_flag_unknown_warning_option=yes 9709 else case e in #( 9710 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9711 esac 9712 fi 9713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9714 esac 9715 fi 9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9717 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9718 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9719 CFLAGS="$xorg_testset_save_CFLAGS" 9720 fi 9721 9722 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9725 fi 9726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9728 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9729 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9730 then : 9731 printf %s "(cached) " >&6 9732 else case e in #( 9733 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734 /* end confdefs.h. */ 9735 int i; 9736 _ACEOF 9737 if ac_fn_c_try_compile "$LINENO" 9738 then : 9739 xorg_cv_cc_flag_unused_command_line_argument=yes 9740 else case e in #( 9741 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9742 esac 9743 fi 9744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9745 esac 9746 fi 9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9748 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9749 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9750 CFLAGS="$xorg_testset_save_CFLAGS" 9751 fi 9752 9753 found="no" 9754 9755 if test $found = "no" ; then 9756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9758 fi 9759 9760 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9762 fi 9763 9764 CFLAGS="$CFLAGS -Wmain" 9765 9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9767 printf %s "checking if $CC supports -Wmain... " >&6; } 9768 cacheid=xorg_cv_cc_flag__Wmain 9769 if eval test \${$cacheid+y} 9770 then : 9771 printf %s "(cached) " >&6 9772 else case e in #( 9773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9774 /* end confdefs.h. */ 9775 int i; 9776 int 9777 main (void) 9778 { 9779 9780 ; 9781 return 0; 9782 } 9783 _ACEOF 9784 if ac_fn_c_try_link "$LINENO" 9785 then : 9786 eval $cacheid=yes 9787 else case e in #( 9788 e) eval $cacheid=no ;; 9789 esac 9790 fi 9791 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9792 conftest$ac_exeext conftest.$ac_ext ;; 9793 esac 9794 fi 9795 9796 9797 CFLAGS="$xorg_testset_save_CFLAGS" 9798 9799 eval supported=\$$cacheid 9800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9801 printf "%s\n" "$supported" >&6; } 9802 if test "$supported" = "yes" ; then 9803 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9804 found="yes" 9805 fi 9806 fi 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 xorg_testset_save_CFLAGS="$CFLAGS" 9823 9824 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9827 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9828 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9829 then : 9830 printf %s "(cached) " >&6 9831 else case e in #( 9832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9833 /* end confdefs.h. */ 9834 int i; 9835 _ACEOF 9836 if ac_fn_c_try_compile "$LINENO" 9837 then : 9838 xorg_cv_cc_flag_unknown_warning_option=yes 9839 else case e in #( 9840 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9841 esac 9842 fi 9843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9844 esac 9845 fi 9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9847 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9849 CFLAGS="$xorg_testset_save_CFLAGS" 9850 fi 9851 9852 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9855 fi 9856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9858 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9859 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9860 then : 9861 printf %s "(cached) " >&6 9862 else case e in #( 9863 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9864 /* end confdefs.h. */ 9865 int i; 9866 _ACEOF 9867 if ac_fn_c_try_compile "$LINENO" 9868 then : 9869 xorg_cv_cc_flag_unused_command_line_argument=yes 9870 else case e in #( 9871 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9872 esac 9873 fi 9874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9875 esac 9876 fi 9877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9878 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9880 CFLAGS="$xorg_testset_save_CFLAGS" 9881 fi 9882 9883 found="no" 9884 9885 if test $found = "no" ; then 9886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9888 fi 9889 9890 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9892 fi 9893 9894 CFLAGS="$CFLAGS -Wmissing-braces" 9895 9896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9897 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9898 cacheid=xorg_cv_cc_flag__Wmissing_braces 9899 if eval test \${$cacheid+y} 9900 then : 9901 printf %s "(cached) " >&6 9902 else case e in #( 9903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9904 /* end confdefs.h. */ 9905 int i; 9906 int 9907 main (void) 9908 { 9909 9910 ; 9911 return 0; 9912 } 9913 _ACEOF 9914 if ac_fn_c_try_link "$LINENO" 9915 then : 9916 eval $cacheid=yes 9917 else case e in #( 9918 e) eval $cacheid=no ;; 9919 esac 9920 fi 9921 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9922 conftest$ac_exeext conftest.$ac_ext ;; 9923 esac 9924 fi 9925 9926 9927 CFLAGS="$xorg_testset_save_CFLAGS" 9928 9929 eval supported=\$$cacheid 9930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9931 printf "%s\n" "$supported" >&6; } 9932 if test "$supported" = "yes" ; then 9933 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9934 found="yes" 9935 fi 9936 fi 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 xorg_testset_save_CFLAGS="$CFLAGS" 9953 9954 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9957 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9958 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9959 then : 9960 printf %s "(cached) " >&6 9961 else case e in #( 9962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9963 /* end confdefs.h. */ 9964 int i; 9965 _ACEOF 9966 if ac_fn_c_try_compile "$LINENO" 9967 then : 9968 xorg_cv_cc_flag_unknown_warning_option=yes 9969 else case e in #( 9970 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9971 esac 9972 fi 9973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9974 esac 9975 fi 9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9977 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980 fi 9981 9982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9985 fi 9986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9988 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9989 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9990 then : 9991 printf %s "(cached) " >&6 9992 else case e in #( 9993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9994 /* end confdefs.h. */ 9995 int i; 9996 _ACEOF 9997 if ac_fn_c_try_compile "$LINENO" 9998 then : 9999 xorg_cv_cc_flag_unused_command_line_argument=yes 10000 else case e in #( 10001 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10002 esac 10003 fi 10004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10005 esac 10006 fi 10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10008 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10010 CFLAGS="$xorg_testset_save_CFLAGS" 10011 fi 10012 10013 found="no" 10014 10015 if test $found = "no" ; then 10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10018 fi 10019 10020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10022 fi 10023 10024 CFLAGS="$CFLAGS -Wsequence-point" 10025 10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10027 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10028 cacheid=xorg_cv_cc_flag__Wsequence_point 10029 if eval test \${$cacheid+y} 10030 then : 10031 printf %s "(cached) " >&6 10032 else case e in #( 10033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10034 /* end confdefs.h. */ 10035 int i; 10036 int 10037 main (void) 10038 { 10039 10040 ; 10041 return 0; 10042 } 10043 _ACEOF 10044 if ac_fn_c_try_link "$LINENO" 10045 then : 10046 eval $cacheid=yes 10047 else case e in #( 10048 e) eval $cacheid=no ;; 10049 esac 10050 fi 10051 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10052 conftest$ac_exeext conftest.$ac_ext ;; 10053 esac 10054 fi 10055 10056 10057 CFLAGS="$xorg_testset_save_CFLAGS" 10058 10059 eval supported=\$$cacheid 10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10061 printf "%s\n" "$supported" >&6; } 10062 if test "$supported" = "yes" ; then 10063 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10064 found="yes" 10065 fi 10066 fi 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 xorg_testset_save_CFLAGS="$CFLAGS" 10083 10084 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10087 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10088 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10089 then : 10090 printf %s "(cached) " >&6 10091 else case e in #( 10092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10093 /* end confdefs.h. */ 10094 int i; 10095 _ACEOF 10096 if ac_fn_c_try_compile "$LINENO" 10097 then : 10098 xorg_cv_cc_flag_unknown_warning_option=yes 10099 else case e in #( 10100 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10101 esac 10102 fi 10103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10104 esac 10105 fi 10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10107 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10109 CFLAGS="$xorg_testset_save_CFLAGS" 10110 fi 10111 10112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10115 fi 10116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10120 then : 10121 printf %s "(cached) " >&6 10122 else case e in #( 10123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10124 /* end confdefs.h. */ 10125 int i; 10126 _ACEOF 10127 if ac_fn_c_try_compile "$LINENO" 10128 then : 10129 xorg_cv_cc_flag_unused_command_line_argument=yes 10130 else case e in #( 10131 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10132 esac 10133 fi 10134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10135 esac 10136 fi 10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10140 CFLAGS="$xorg_testset_save_CFLAGS" 10141 fi 10142 10143 found="no" 10144 10145 if test $found = "no" ; then 10146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10148 fi 10149 10150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10152 fi 10153 10154 CFLAGS="$CFLAGS -Wreturn-type" 10155 10156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10157 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10158 cacheid=xorg_cv_cc_flag__Wreturn_type 10159 if eval test \${$cacheid+y} 10160 then : 10161 printf %s "(cached) " >&6 10162 else case e in #( 10163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10164 /* end confdefs.h. */ 10165 int i; 10166 int 10167 main (void) 10168 { 10169 10170 ; 10171 return 0; 10172 } 10173 _ACEOF 10174 if ac_fn_c_try_link "$LINENO" 10175 then : 10176 eval $cacheid=yes 10177 else case e in #( 10178 e) eval $cacheid=no ;; 10179 esac 10180 fi 10181 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10182 conftest$ac_exeext conftest.$ac_ext ;; 10183 esac 10184 fi 10185 10186 10187 CFLAGS="$xorg_testset_save_CFLAGS" 10188 10189 eval supported=\$$cacheid 10190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10191 printf "%s\n" "$supported" >&6; } 10192 if test "$supported" = "yes" ; then 10193 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10194 found="yes" 10195 fi 10196 fi 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 xorg_testset_save_CFLAGS="$CFLAGS" 10213 10214 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10217 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10218 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10219 then : 10220 printf %s "(cached) " >&6 10221 else case e in #( 10222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10223 /* end confdefs.h. */ 10224 int i; 10225 _ACEOF 10226 if ac_fn_c_try_compile "$LINENO" 10227 then : 10228 xorg_cv_cc_flag_unknown_warning_option=yes 10229 else case e in #( 10230 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10231 esac 10232 fi 10233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10234 esac 10235 fi 10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10237 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10238 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10239 CFLAGS="$xorg_testset_save_CFLAGS" 10240 fi 10241 10242 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10245 fi 10246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10248 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10249 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10250 then : 10251 printf %s "(cached) " >&6 10252 else case e in #( 10253 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254 /* end confdefs.h. */ 10255 int i; 10256 _ACEOF 10257 if ac_fn_c_try_compile "$LINENO" 10258 then : 10259 xorg_cv_cc_flag_unused_command_line_argument=yes 10260 else case e in #( 10261 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10262 esac 10263 fi 10264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10265 esac 10266 fi 10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10268 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10270 CFLAGS="$xorg_testset_save_CFLAGS" 10271 fi 10272 10273 found="no" 10274 10275 if test $found = "no" ; then 10276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10278 fi 10279 10280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10282 fi 10283 10284 CFLAGS="$CFLAGS -Wtrigraphs" 10285 10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10287 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10288 cacheid=xorg_cv_cc_flag__Wtrigraphs 10289 if eval test \${$cacheid+y} 10290 then : 10291 printf %s "(cached) " >&6 10292 else case e in #( 10293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10294 /* end confdefs.h. */ 10295 int i; 10296 int 10297 main (void) 10298 { 10299 10300 ; 10301 return 0; 10302 } 10303 _ACEOF 10304 if ac_fn_c_try_link "$LINENO" 10305 then : 10306 eval $cacheid=yes 10307 else case e in #( 10308 e) eval $cacheid=no ;; 10309 esac 10310 fi 10311 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10312 conftest$ac_exeext conftest.$ac_ext ;; 10313 esac 10314 fi 10315 10316 10317 CFLAGS="$xorg_testset_save_CFLAGS" 10318 10319 eval supported=\$$cacheid 10320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10321 printf "%s\n" "$supported" >&6; } 10322 if test "$supported" = "yes" ; then 10323 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10324 found="yes" 10325 fi 10326 fi 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 xorg_testset_save_CFLAGS="$CFLAGS" 10343 10344 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10347 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10348 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10349 then : 10350 printf %s "(cached) " >&6 10351 else case e in #( 10352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353 /* end confdefs.h. */ 10354 int i; 10355 _ACEOF 10356 if ac_fn_c_try_compile "$LINENO" 10357 then : 10358 xorg_cv_cc_flag_unknown_warning_option=yes 10359 else case e in #( 10360 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10361 esac 10362 fi 10363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10364 esac 10365 fi 10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10369 CFLAGS="$xorg_testset_save_CFLAGS" 10370 fi 10371 10372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10375 fi 10376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10380 then : 10381 printf %s "(cached) " >&6 10382 else case e in #( 10383 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10384 /* end confdefs.h. */ 10385 int i; 10386 _ACEOF 10387 if ac_fn_c_try_compile "$LINENO" 10388 then : 10389 xorg_cv_cc_flag_unused_command_line_argument=yes 10390 else case e in #( 10391 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10392 esac 10393 fi 10394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10395 esac 10396 fi 10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10398 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10399 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10400 CFLAGS="$xorg_testset_save_CFLAGS" 10401 fi 10402 10403 found="no" 10404 10405 if test $found = "no" ; then 10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10408 fi 10409 10410 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10412 fi 10413 10414 CFLAGS="$CFLAGS -Warray-bounds" 10415 10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10417 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10418 cacheid=xorg_cv_cc_flag__Warray_bounds 10419 if eval test \${$cacheid+y} 10420 then : 10421 printf %s "(cached) " >&6 10422 else case e in #( 10423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10424 /* end confdefs.h. */ 10425 int i; 10426 int 10427 main (void) 10428 { 10429 10430 ; 10431 return 0; 10432 } 10433 _ACEOF 10434 if ac_fn_c_try_link "$LINENO" 10435 then : 10436 eval $cacheid=yes 10437 else case e in #( 10438 e) eval $cacheid=no ;; 10439 esac 10440 fi 10441 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10442 conftest$ac_exeext conftest.$ac_ext ;; 10443 esac 10444 fi 10445 10446 10447 CFLAGS="$xorg_testset_save_CFLAGS" 10448 10449 eval supported=\$$cacheid 10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10451 printf "%s\n" "$supported" >&6; } 10452 if test "$supported" = "yes" ; then 10453 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10454 found="yes" 10455 fi 10456 fi 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 xorg_testset_save_CFLAGS="$CFLAGS" 10473 10474 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10477 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10478 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10479 then : 10480 printf %s "(cached) " >&6 10481 else case e in #( 10482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10483 /* end confdefs.h. */ 10484 int i; 10485 _ACEOF 10486 if ac_fn_c_try_compile "$LINENO" 10487 then : 10488 xorg_cv_cc_flag_unknown_warning_option=yes 10489 else case e in #( 10490 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10491 esac 10492 fi 10493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10494 esac 10495 fi 10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10497 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10499 CFLAGS="$xorg_testset_save_CFLAGS" 10500 fi 10501 10502 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10505 fi 10506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10508 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10509 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10510 then : 10511 printf %s "(cached) " >&6 10512 else case e in #( 10513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10514 /* end confdefs.h. */ 10515 int i; 10516 _ACEOF 10517 if ac_fn_c_try_compile "$LINENO" 10518 then : 10519 xorg_cv_cc_flag_unused_command_line_argument=yes 10520 else case e in #( 10521 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10522 esac 10523 fi 10524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10525 esac 10526 fi 10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10528 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10529 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10530 CFLAGS="$xorg_testset_save_CFLAGS" 10531 fi 10532 10533 found="no" 10534 10535 if test $found = "no" ; then 10536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10538 fi 10539 10540 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10542 fi 10543 10544 CFLAGS="$CFLAGS -Wwrite-strings" 10545 10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10547 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10548 cacheid=xorg_cv_cc_flag__Wwrite_strings 10549 if eval test \${$cacheid+y} 10550 then : 10551 printf %s "(cached) " >&6 10552 else case e in #( 10553 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10554 /* end confdefs.h. */ 10555 int i; 10556 int 10557 main (void) 10558 { 10559 10560 ; 10561 return 0; 10562 } 10563 _ACEOF 10564 if ac_fn_c_try_link "$LINENO" 10565 then : 10566 eval $cacheid=yes 10567 else case e in #( 10568 e) eval $cacheid=no ;; 10569 esac 10570 fi 10571 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10572 conftest$ac_exeext conftest.$ac_ext ;; 10573 esac 10574 fi 10575 10576 10577 CFLAGS="$xorg_testset_save_CFLAGS" 10578 10579 eval supported=\$$cacheid 10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10581 printf "%s\n" "$supported" >&6; } 10582 if test "$supported" = "yes" ; then 10583 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10584 found="yes" 10585 fi 10586 fi 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 xorg_testset_save_CFLAGS="$CFLAGS" 10603 10604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10607 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10608 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10609 then : 10610 printf %s "(cached) " >&6 10611 else case e in #( 10612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10613 /* end confdefs.h. */ 10614 int i; 10615 _ACEOF 10616 if ac_fn_c_try_compile "$LINENO" 10617 then : 10618 xorg_cv_cc_flag_unknown_warning_option=yes 10619 else case e in #( 10620 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10621 esac 10622 fi 10623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10624 esac 10625 fi 10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10627 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10629 CFLAGS="$xorg_testset_save_CFLAGS" 10630 fi 10631 10632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10635 fi 10636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10638 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10639 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10640 then : 10641 printf %s "(cached) " >&6 10642 else case e in #( 10643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10644 /* end confdefs.h. */ 10645 int i; 10646 _ACEOF 10647 if ac_fn_c_try_compile "$LINENO" 10648 then : 10649 xorg_cv_cc_flag_unused_command_line_argument=yes 10650 else case e in #( 10651 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10652 esac 10653 fi 10654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10655 esac 10656 fi 10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10658 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10659 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10660 CFLAGS="$xorg_testset_save_CFLAGS" 10661 fi 10662 10663 found="no" 10664 10665 if test $found = "no" ; then 10666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10668 fi 10669 10670 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10672 fi 10673 10674 CFLAGS="$CFLAGS -Waddress" 10675 10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10677 printf %s "checking if $CC supports -Waddress... " >&6; } 10678 cacheid=xorg_cv_cc_flag__Waddress 10679 if eval test \${$cacheid+y} 10680 then : 10681 printf %s "(cached) " >&6 10682 else case e in #( 10683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10684 /* end confdefs.h. */ 10685 int i; 10686 int 10687 main (void) 10688 { 10689 10690 ; 10691 return 0; 10692 } 10693 _ACEOF 10694 if ac_fn_c_try_link "$LINENO" 10695 then : 10696 eval $cacheid=yes 10697 else case e in #( 10698 e) eval $cacheid=no ;; 10699 esac 10700 fi 10701 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10702 conftest$ac_exeext conftest.$ac_ext ;; 10703 esac 10704 fi 10705 10706 10707 CFLAGS="$xorg_testset_save_CFLAGS" 10708 10709 eval supported=\$$cacheid 10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10711 printf "%s\n" "$supported" >&6; } 10712 if test "$supported" = "yes" ; then 10713 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10714 found="yes" 10715 fi 10716 fi 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 xorg_testset_save_CFLAGS="$CFLAGS" 10733 10734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10737 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10738 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10739 then : 10740 printf %s "(cached) " >&6 10741 else case e in #( 10742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10743 /* end confdefs.h. */ 10744 int i; 10745 _ACEOF 10746 if ac_fn_c_try_compile "$LINENO" 10747 then : 10748 xorg_cv_cc_flag_unknown_warning_option=yes 10749 else case e in #( 10750 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10751 esac 10752 fi 10753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10754 esac 10755 fi 10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10757 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10759 CFLAGS="$xorg_testset_save_CFLAGS" 10760 fi 10761 10762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10765 fi 10766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10770 then : 10771 printf %s "(cached) " >&6 10772 else case e in #( 10773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10774 /* end confdefs.h. */ 10775 int i; 10776 _ACEOF 10777 if ac_fn_c_try_compile "$LINENO" 10778 then : 10779 xorg_cv_cc_flag_unused_command_line_argument=yes 10780 else case e in #( 10781 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10782 esac 10783 fi 10784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10785 esac 10786 fi 10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10788 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10790 CFLAGS="$xorg_testset_save_CFLAGS" 10791 fi 10792 10793 found="no" 10794 10795 if test $found = "no" ; then 10796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10797 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10798 fi 10799 10800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10802 fi 10803 10804 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10805 10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10807 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10808 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10809 if eval test \${$cacheid+y} 10810 then : 10811 printf %s "(cached) " >&6 10812 else case e in #( 10813 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10814 /* end confdefs.h. */ 10815 int i; 10816 int 10817 main (void) 10818 { 10819 10820 ; 10821 return 0; 10822 } 10823 _ACEOF 10824 if ac_fn_c_try_link "$LINENO" 10825 then : 10826 eval $cacheid=yes 10827 else case e in #( 10828 e) eval $cacheid=no ;; 10829 esac 10830 fi 10831 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10832 conftest$ac_exeext conftest.$ac_ext ;; 10833 esac 10834 fi 10835 10836 10837 CFLAGS="$xorg_testset_save_CFLAGS" 10838 10839 eval supported=\$$cacheid 10840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10841 printf "%s\n" "$supported" >&6; } 10842 if test "$supported" = "yes" ; then 10843 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10844 found="yes" 10845 fi 10846 fi 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 xorg_testset_save_CFLAGS="$CFLAGS" 10863 10864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10867 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10868 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10869 then : 10870 printf %s "(cached) " >&6 10871 else case e in #( 10872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10873 /* end confdefs.h. */ 10874 int i; 10875 _ACEOF 10876 if ac_fn_c_try_compile "$LINENO" 10877 then : 10878 xorg_cv_cc_flag_unknown_warning_option=yes 10879 else case e in #( 10880 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10881 esac 10882 fi 10883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10884 esac 10885 fi 10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10887 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10889 CFLAGS="$xorg_testset_save_CFLAGS" 10890 fi 10891 10892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10894 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10895 fi 10896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10898 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10899 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10900 then : 10901 printf %s "(cached) " >&6 10902 else case e in #( 10903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904 /* end confdefs.h. */ 10905 int i; 10906 _ACEOF 10907 if ac_fn_c_try_compile "$LINENO" 10908 then : 10909 xorg_cv_cc_flag_unused_command_line_argument=yes 10910 else case e in #( 10911 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10912 esac 10913 fi 10914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10915 esac 10916 fi 10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10918 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10920 CFLAGS="$xorg_testset_save_CFLAGS" 10921 fi 10922 10923 found="no" 10924 10925 if test $found = "no" ; then 10926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10928 fi 10929 10930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10932 fi 10933 10934 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10935 10936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10937 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10938 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10939 if eval test \${$cacheid+y} 10940 then : 10941 printf %s "(cached) " >&6 10942 else case e in #( 10943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10944 /* end confdefs.h. */ 10945 int i; 10946 int 10947 main (void) 10948 { 10949 10950 ; 10951 return 0; 10952 } 10953 _ACEOF 10954 if ac_fn_c_try_link "$LINENO" 10955 then : 10956 eval $cacheid=yes 10957 else case e in #( 10958 e) eval $cacheid=no ;; 10959 esac 10960 fi 10961 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10962 conftest$ac_exeext conftest.$ac_ext ;; 10963 esac 10964 fi 10965 10966 10967 CFLAGS="$xorg_testset_save_CFLAGS" 10968 10969 eval supported=\$$cacheid 10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10971 printf "%s\n" "$supported" >&6; } 10972 if test "$supported" = "yes" ; then 10973 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10974 found="yes" 10975 fi 10976 fi 10977 10978 10979 fi 10980 10981 10982 10983 10984 10985 10986 10987 CWARNFLAGS="$BASE_CFLAGS" 10988 if test "x$GCC" = xyes ; then 10989 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10990 fi 10991 10992 10993 10994 10995 10996 10997 10998 10999 # Check whether --enable-strict-compilation was given. 11000 if test ${enable_strict_compilation+y} 11001 then : 11002 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11003 else case e in #( 11004 e) STRICT_COMPILE=no ;; 11005 esac 11006 fi 11007 11008 11009 11010 11011 11012 11013 STRICT_CFLAGS="" 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 xorg_testset_save_CFLAGS="$CFLAGS" 11028 11029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11032 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11033 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11034 then : 11035 printf %s "(cached) " >&6 11036 else case e in #( 11037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11038 /* end confdefs.h. */ 11039 int i; 11040 _ACEOF 11041 if ac_fn_c_try_compile "$LINENO" 11042 then : 11043 xorg_cv_cc_flag_unknown_warning_option=yes 11044 else case e in #( 11045 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11046 esac 11047 fi 11048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11049 esac 11050 fi 11051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11052 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11054 CFLAGS="$xorg_testset_save_CFLAGS" 11055 fi 11056 11057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11060 fi 11061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11063 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11064 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11065 then : 11066 printf %s "(cached) " >&6 11067 else case e in #( 11068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11069 /* end confdefs.h. */ 11070 int i; 11071 _ACEOF 11072 if ac_fn_c_try_compile "$LINENO" 11073 then : 11074 xorg_cv_cc_flag_unused_command_line_argument=yes 11075 else case e in #( 11076 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11077 esac 11078 fi 11079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11080 esac 11081 fi 11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11083 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11085 CFLAGS="$xorg_testset_save_CFLAGS" 11086 fi 11087 11088 found="no" 11089 11090 if test $found = "no" ; then 11091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11093 fi 11094 11095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11097 fi 11098 11099 CFLAGS="$CFLAGS -pedantic" 11100 11101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11102 printf %s "checking if $CC supports -pedantic... " >&6; } 11103 cacheid=xorg_cv_cc_flag__pedantic 11104 if eval test \${$cacheid+y} 11105 then : 11106 printf %s "(cached) " >&6 11107 else case e in #( 11108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11109 /* end confdefs.h. */ 11110 int i; 11111 int 11112 main (void) 11113 { 11114 11115 ; 11116 return 0; 11117 } 11118 _ACEOF 11119 if ac_fn_c_try_link "$LINENO" 11120 then : 11121 eval $cacheid=yes 11122 else case e in #( 11123 e) eval $cacheid=no ;; 11124 esac 11125 fi 11126 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11127 conftest$ac_exeext conftest.$ac_ext ;; 11128 esac 11129 fi 11130 11131 11132 CFLAGS="$xorg_testset_save_CFLAGS" 11133 11134 eval supported=\$$cacheid 11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11136 printf "%s\n" "$supported" >&6; } 11137 if test "$supported" = "yes" ; then 11138 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11139 found="yes" 11140 fi 11141 fi 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 xorg_testset_save_CFLAGS="$CFLAGS" 11158 11159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11163 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11164 then : 11165 printf %s "(cached) " >&6 11166 else case e in #( 11167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11168 /* end confdefs.h. */ 11169 int i; 11170 _ACEOF 11171 if ac_fn_c_try_compile "$LINENO" 11172 then : 11173 xorg_cv_cc_flag_unknown_warning_option=yes 11174 else case e in #( 11175 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11176 esac 11177 fi 11178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11179 esac 11180 fi 11181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11182 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11184 CFLAGS="$xorg_testset_save_CFLAGS" 11185 fi 11186 11187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11190 fi 11191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11193 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11194 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11195 then : 11196 printf %s "(cached) " >&6 11197 else case e in #( 11198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11199 /* end confdefs.h. */ 11200 int i; 11201 _ACEOF 11202 if ac_fn_c_try_compile "$LINENO" 11203 then : 11204 xorg_cv_cc_flag_unused_command_line_argument=yes 11205 else case e in #( 11206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11207 esac 11208 fi 11209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11210 esac 11211 fi 11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11213 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11215 CFLAGS="$xorg_testset_save_CFLAGS" 11216 fi 11217 11218 found="no" 11219 11220 if test $found = "no" ; then 11221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11223 fi 11224 11225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11227 fi 11228 11229 CFLAGS="$CFLAGS -Werror" 11230 11231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11232 printf %s "checking if $CC supports -Werror... " >&6; } 11233 cacheid=xorg_cv_cc_flag__Werror 11234 if eval test \${$cacheid+y} 11235 then : 11236 printf %s "(cached) " >&6 11237 else case e in #( 11238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11239 /* end confdefs.h. */ 11240 int i; 11241 int 11242 main (void) 11243 { 11244 11245 ; 11246 return 0; 11247 } 11248 _ACEOF 11249 if ac_fn_c_try_link "$LINENO" 11250 then : 11251 eval $cacheid=yes 11252 else case e in #( 11253 e) eval $cacheid=no ;; 11254 esac 11255 fi 11256 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11257 conftest$ac_exeext conftest.$ac_ext ;; 11258 esac 11259 fi 11260 11261 11262 CFLAGS="$xorg_testset_save_CFLAGS" 11263 11264 eval supported=\$$cacheid 11265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11266 printf "%s\n" "$supported" >&6; } 11267 if test "$supported" = "yes" ; then 11268 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11269 found="yes" 11270 fi 11271 fi 11272 11273 if test $found = "no" ; then 11274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11276 fi 11277 11278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11280 fi 11281 11282 CFLAGS="$CFLAGS -errwarn" 11283 11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11285 printf %s "checking if $CC supports -errwarn... " >&6; } 11286 cacheid=xorg_cv_cc_flag__errwarn 11287 if eval test \${$cacheid+y} 11288 then : 11289 printf %s "(cached) " >&6 11290 else case e in #( 11291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11292 /* end confdefs.h. */ 11293 int i; 11294 int 11295 main (void) 11296 { 11297 11298 ; 11299 return 0; 11300 } 11301 _ACEOF 11302 if ac_fn_c_try_link "$LINENO" 11303 then : 11304 eval $cacheid=yes 11305 else case e in #( 11306 e) eval $cacheid=no ;; 11307 esac 11308 fi 11309 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11310 conftest$ac_exeext conftest.$ac_ext ;; 11311 esac 11312 fi 11313 11314 11315 CFLAGS="$xorg_testset_save_CFLAGS" 11316 11317 eval supported=\$$cacheid 11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11319 printf "%s\n" "$supported" >&6; } 11320 if test "$supported" = "yes" ; then 11321 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11322 found="yes" 11323 fi 11324 fi 11325 11326 11327 11328 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11329 # activate it with -Werror, so we add it here explicitly. 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 xorg_testset_save_CFLAGS="$CFLAGS" 11344 11345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11348 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11349 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11350 then : 11351 printf %s "(cached) " >&6 11352 else case e in #( 11353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11354 /* end confdefs.h. */ 11355 int i; 11356 _ACEOF 11357 if ac_fn_c_try_compile "$LINENO" 11358 then : 11359 xorg_cv_cc_flag_unknown_warning_option=yes 11360 else case e in #( 11361 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11362 esac 11363 fi 11364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11365 esac 11366 fi 11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11368 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11370 CFLAGS="$xorg_testset_save_CFLAGS" 11371 fi 11372 11373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11376 fi 11377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11381 then : 11382 printf %s "(cached) " >&6 11383 else case e in #( 11384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11385 /* end confdefs.h. */ 11386 int i; 11387 _ACEOF 11388 if ac_fn_c_try_compile "$LINENO" 11389 then : 11390 xorg_cv_cc_flag_unused_command_line_argument=yes 11391 else case e in #( 11392 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11393 esac 11394 fi 11395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11396 esac 11397 fi 11398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11399 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11401 CFLAGS="$xorg_testset_save_CFLAGS" 11402 fi 11403 11404 found="no" 11405 11406 if test $found = "no" ; then 11407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11409 fi 11410 11411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11413 fi 11414 11415 CFLAGS="$CFLAGS -Werror=attributes" 11416 11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11418 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11419 cacheid=xorg_cv_cc_flag__Werror_attributes 11420 if eval test \${$cacheid+y} 11421 then : 11422 printf %s "(cached) " >&6 11423 else case e in #( 11424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11425 /* end confdefs.h. */ 11426 int i; 11427 int 11428 main (void) 11429 { 11430 11431 ; 11432 return 0; 11433 } 11434 _ACEOF 11435 if ac_fn_c_try_link "$LINENO" 11436 then : 11437 eval $cacheid=yes 11438 else case e in #( 11439 e) eval $cacheid=no ;; 11440 esac 11441 fi 11442 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11443 conftest$ac_exeext conftest.$ac_ext ;; 11444 esac 11445 fi 11446 11447 11448 CFLAGS="$xorg_testset_save_CFLAGS" 11449 11450 eval supported=\$$cacheid 11451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11452 printf "%s\n" "$supported" >&6; } 11453 if test "$supported" = "yes" ; then 11454 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11455 found="yes" 11456 fi 11457 fi 11458 11459 11460 11461 if test "x$STRICT_COMPILE" = "xyes"; then 11462 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11463 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11464 fi 11465 11466 11467 11468 11469 11470 11471 11472 11473 cat >>confdefs.h <<_ACEOF 11474 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11475 _ACEOF 11476 11477 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11478 if test "x$PVM" = "x"; then 11479 PVM="0" 11480 fi 11481 11482 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11483 11484 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11485 if test "x$PVP" = "x"; then 11486 PVP="0" 11487 fi 11488 11489 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11490 11491 11492 11493 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11494 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11495 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11496 touch \$(top_srcdir)/ChangeLog; \ 11497 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11498 11499 11500 11501 11502 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11503 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11504 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11505 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11506 touch \$(top_srcdir)/INSTALL; \ 11507 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11508 11509 11510 11511 11512 11513 11514 case $host_os in 11515 solaris*) 11516 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11517 # check for a man page file found in later versions that use 11518 # traditional section numbers instead 11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11520 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11521 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11522 then : 11523 printf %s "(cached) " >&6 11524 else case e in #( 11525 e) test "$cross_compiling" = yes && 11526 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11527 if test -r "/usr/share/man/man7/attributes.7"; then 11528 ac_cv_file__usr_share_man_man7_attributes_7=yes 11529 else 11530 ac_cv_file__usr_share_man_man7_attributes_7=no 11531 fi ;; 11532 esac 11533 fi 11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11535 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11536 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11537 then : 11538 SYSV_MAN_SECTIONS=false 11539 else case e in #( 11540 e) SYSV_MAN_SECTIONS=true ;; 11541 esac 11542 fi 11543 11544 ;; 11545 *) SYSV_MAN_SECTIONS=false ;; 11546 esac 11547 11548 if test x$APP_MAN_SUFFIX = x ; then 11549 APP_MAN_SUFFIX=1 11550 fi 11551 if test x$APP_MAN_DIR = x ; then 11552 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11553 fi 11554 11555 if test x$LIB_MAN_SUFFIX = x ; then 11556 LIB_MAN_SUFFIX=3 11557 fi 11558 if test x$LIB_MAN_DIR = x ; then 11559 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11560 fi 11561 11562 if test x$FILE_MAN_SUFFIX = x ; then 11563 case $SYSV_MAN_SECTIONS in 11564 true) FILE_MAN_SUFFIX=4 ;; 11565 *) FILE_MAN_SUFFIX=5 ;; 11566 esac 11567 fi 11568 if test x$FILE_MAN_DIR = x ; then 11569 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11570 fi 11571 11572 if test x$MISC_MAN_SUFFIX = x ; then 11573 case $SYSV_MAN_SECTIONS in 11574 true) MISC_MAN_SUFFIX=5 ;; 11575 *) MISC_MAN_SUFFIX=7 ;; 11576 esac 11577 fi 11578 if test x$MISC_MAN_DIR = x ; then 11579 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11580 fi 11581 11582 if test x$DRIVER_MAN_SUFFIX = x ; then 11583 case $SYSV_MAN_SECTIONS in 11584 true) DRIVER_MAN_SUFFIX=7 ;; 11585 *) DRIVER_MAN_SUFFIX=4 ;; 11586 esac 11587 fi 11588 if test x$DRIVER_MAN_DIR = x ; then 11589 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11590 fi 11591 11592 if test x$ADMIN_MAN_SUFFIX = x ; then 11593 case $SYSV_MAN_SECTIONS in 11594 true) ADMIN_MAN_SUFFIX=1m ;; 11595 *) ADMIN_MAN_SUFFIX=8 ;; 11596 esac 11597 fi 11598 if test x$ADMIN_MAN_DIR = x ; then 11599 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11600 fi 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 XORG_MAN_PAGE="X Version 11" 11617 11618 MAN_SUBSTS="\ 11619 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11620 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11621 -e 's|__xservername__|Xorg|g' \ 11622 -e 's|__xconfigfile__|xorg.conf|g' \ 11623 -e 's|__projectroot__|\$(prefix)|g' \ 11624 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11625 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11626 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11627 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11628 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11629 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11630 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11631 11632 11633 11634 # Check whether --enable-silent-rules was given. 11635 if test ${enable_silent_rules+y} 11636 then : 11637 enableval=$enable_silent_rules; 11638 fi 11639 11640 case $enable_silent_rules in # ((( 11641 yes) AM_DEFAULT_VERBOSITY=0;; 11642 no) AM_DEFAULT_VERBOSITY=1;; 11643 *) AM_DEFAULT_VERBOSITY=0;; 11644 esac 11645 am_make=${MAKE-make} 11646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11647 printf %s "checking whether $am_make supports nested variables... " >&6; } 11648 if test ${am_cv_make_support_nested_variables+y} 11649 then : 11650 printf %s "(cached) " >&6 11651 else case e in #( 11652 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11653 BAR0=false 11654 BAR1=true 11655 V=1 11656 am__doit: 11657 @$(TRUE) 11658 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11659 am_cv_make_support_nested_variables=yes 11660 else 11661 am_cv_make_support_nested_variables=no 11662 fi ;; 11663 esac 11664 fi 11665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11666 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11667 if test $am_cv_make_support_nested_variables = yes; then 11668 AM_V='$(V)' 11669 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11670 else 11671 AM_V=$AM_DEFAULT_VERBOSITY 11672 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11673 fi 11674 AM_BACKSLASH='\' 11675 11676 11677 11678 11679 # Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules 11680 11681 11682 # Initialize libtool 11683 case `pwd` in 11684 *\ * | *\ *) 11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11686 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11687 esac 11688 11689 11690 11691 macro_version='2.4.7' 11692 macro_revision='2.4.7' 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 ltmain=$ac_aux_dir/ltmain.sh 11708 11709 # Backslashify metacharacters that are still active within 11710 # double-quoted strings. 11711 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11712 11713 # Same as above, but do not quote variable references. 11714 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11715 11716 # Sed substitution to delay expansion of an escaped shell variable in a 11717 # double_quote_subst'ed string. 11718 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11719 11720 # Sed substitution to delay expansion of an escaped single quote. 11721 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11722 11723 # Sed substitution to avoid accidental globbing in evaled expressions 11724 no_glob_subst='s/\*/\\\*/g' 11725 11726 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11727 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11728 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11729 11730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11731 printf %s "checking how to print strings... " >&6; } 11732 # Test print first, because it will be a builtin if present. 11733 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11734 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11735 ECHO='print -r --' 11736 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11737 ECHO='printf %s\n' 11738 else 11739 # Use this function as a fallback that always works. 11740 func_fallback_echo () 11741 { 11742 eval 'cat <<_LTECHO_EOF 11743 $1 11744 _LTECHO_EOF' 11745 } 11746 ECHO='func_fallback_echo' 11747 fi 11748 11749 # func_echo_all arg... 11750 # Invoke $ECHO with all args, space-separated. 11751 func_echo_all () 11752 { 11753 $ECHO "" 11754 } 11755 11756 case $ECHO in 11757 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11758 printf "%s\n" "printf" >&6; } ;; 11759 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11760 printf "%s\n" "print -r" >&6; } ;; 11761 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11762 printf "%s\n" "cat" >&6; } ;; 11763 esac 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11779 printf %s "checking for a sed that does not truncate output... " >&6; } 11780 if test ${ac_cv_path_SED+y} 11781 then : 11782 printf %s "(cached) " >&6 11783 else case e in #( 11784 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11785 for ac_i in 1 2 3 4 5 6 7; do 11786 ac_script="$ac_script$as_nl$ac_script" 11787 done 11788 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11789 { ac_script=; unset ac_script;} 11790 if test -z "$SED"; then 11791 ac_path_SED_found=false 11792 # Loop through the user's path and test for each of PROGNAME-LIST 11793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11794 for as_dir in $PATH 11795 do 11796 IFS=$as_save_IFS 11797 case $as_dir in #((( 11798 '') as_dir=./ ;; 11799 */) ;; 11800 *) as_dir=$as_dir/ ;; 11801 esac 11802 for ac_prog in sed gsed 11803 do 11804 for ac_exec_ext in '' $ac_executable_extensions; do 11805 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11806 as_fn_executable_p "$ac_path_SED" || continue 11807 # Check for GNU ac_path_SED and select it if it is found. 11808 # Check for GNU $ac_path_SED 11809 case `"$ac_path_SED" --version 2>&1` in #( 11810 *GNU*) 11811 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11812 #( 11813 *) 11814 ac_count=0 11815 printf %s 0123456789 >"conftest.in" 11816 while : 11817 do 11818 cat "conftest.in" "conftest.in" >"conftest.tmp" 11819 mv "conftest.tmp" "conftest.in" 11820 cp "conftest.in" "conftest.nl" 11821 printf "%s\n" '' >> "conftest.nl" 11822 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11824 as_fn_arith $ac_count + 1 && ac_count=$as_val 11825 if test $ac_count -gt ${ac_path_SED_max-0}; then 11826 # Best one so far, save it but keep looking for a better one 11827 ac_cv_path_SED="$ac_path_SED" 11828 ac_path_SED_max=$ac_count 11829 fi 11830 # 10*(2^10) chars as input seems more than enough 11831 test $ac_count -gt 10 && break 11832 done 11833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11834 esac 11835 11836 $ac_path_SED_found && break 3 11837 done 11838 done 11839 done 11840 IFS=$as_save_IFS 11841 if test -z "$ac_cv_path_SED"; then 11842 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11843 fi 11844 else 11845 ac_cv_path_SED=$SED 11846 fi 11847 ;; 11848 esac 11849 fi 11850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11851 printf "%s\n" "$ac_cv_path_SED" >&6; } 11852 SED="$ac_cv_path_SED" 11853 rm -f conftest.sed 11854 11855 test -z "$SED" && SED=sed 11856 Xsed="$SED -e 1s/^X//" 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11869 printf %s "checking for grep that handles long lines and -e... " >&6; } 11870 if test ${ac_cv_path_GREP+y} 11871 then : 11872 printf %s "(cached) " >&6 11873 else case e in #( 11874 e) if test -z "$GREP"; then 11875 ac_path_GREP_found=false 11876 # Loop through the user's path and test for each of PROGNAME-LIST 11877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11879 do 11880 IFS=$as_save_IFS 11881 case $as_dir in #((( 11882 '') as_dir=./ ;; 11883 */) ;; 11884 *) as_dir=$as_dir/ ;; 11885 esac 11886 for ac_prog in grep ggrep 11887 do 11888 for ac_exec_ext in '' $ac_executable_extensions; do 11889 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11890 as_fn_executable_p "$ac_path_GREP" || continue 11891 # Check for GNU ac_path_GREP and select it if it is found. 11892 # Check for GNU $ac_path_GREP 11893 case `"$ac_path_GREP" --version 2>&1` in #( 11894 *GNU*) 11895 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11896 #( 11897 *) 11898 ac_count=0 11899 printf %s 0123456789 >"conftest.in" 11900 while : 11901 do 11902 cat "conftest.in" "conftest.in" >"conftest.tmp" 11903 mv "conftest.tmp" "conftest.in" 11904 cp "conftest.in" "conftest.nl" 11905 printf "%s\n" 'GREP' >> "conftest.nl" 11906 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11908 as_fn_arith $ac_count + 1 && ac_count=$as_val 11909 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11910 # Best one so far, save it but keep looking for a better one 11911 ac_cv_path_GREP="$ac_path_GREP" 11912 ac_path_GREP_max=$ac_count 11913 fi 11914 # 10*(2^10) chars as input seems more than enough 11915 test $ac_count -gt 10 && break 11916 done 11917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11918 esac 11919 11920 $ac_path_GREP_found && break 3 11921 done 11922 done 11923 done 11924 IFS=$as_save_IFS 11925 if test -z "$ac_cv_path_GREP"; then 11926 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11927 fi 11928 else 11929 ac_cv_path_GREP=$GREP 11930 fi 11931 ;; 11932 esac 11933 fi 11934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11935 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11936 GREP="$ac_cv_path_GREP" 11937 11938 11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11940 printf %s "checking for egrep... " >&6; } 11941 if test ${ac_cv_path_EGREP+y} 11942 then : 11943 printf %s "(cached) " >&6 11944 else case e in #( 11945 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11946 then ac_cv_path_EGREP="$GREP -E" 11947 else 11948 if test -z "$EGREP"; then 11949 ac_path_EGREP_found=false 11950 # Loop through the user's path and test for each of PROGNAME-LIST 11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11953 do 11954 IFS=$as_save_IFS 11955 case $as_dir in #((( 11956 '') as_dir=./ ;; 11957 */) ;; 11958 *) as_dir=$as_dir/ ;; 11959 esac 11960 for ac_prog in egrep 11961 do 11962 for ac_exec_ext in '' $ac_executable_extensions; do 11963 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11964 as_fn_executable_p "$ac_path_EGREP" || continue 11965 # Check for GNU ac_path_EGREP and select it if it is found. 11966 # Check for GNU $ac_path_EGREP 11967 case `"$ac_path_EGREP" --version 2>&1` in #( 11968 *GNU*) 11969 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11970 #( 11971 *) 11972 ac_count=0 11973 printf %s 0123456789 >"conftest.in" 11974 while : 11975 do 11976 cat "conftest.in" "conftest.in" >"conftest.tmp" 11977 mv "conftest.tmp" "conftest.in" 11978 cp "conftest.in" "conftest.nl" 11979 printf "%s\n" 'EGREP' >> "conftest.nl" 11980 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11982 as_fn_arith $ac_count + 1 && ac_count=$as_val 11983 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11984 # Best one so far, save it but keep looking for a better one 11985 ac_cv_path_EGREP="$ac_path_EGREP" 11986 ac_path_EGREP_max=$ac_count 11987 fi 11988 # 10*(2^10) chars as input seems more than enough 11989 test $ac_count -gt 10 && break 11990 done 11991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11992 esac 11993 11994 $ac_path_EGREP_found && break 3 11995 done 11996 done 11997 done 11998 IFS=$as_save_IFS 11999 if test -z "$ac_cv_path_EGREP"; then 12000 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12001 fi 12002 else 12003 ac_cv_path_EGREP=$EGREP 12004 fi 12005 12006 fi ;; 12007 esac 12008 fi 12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12010 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 12011 EGREP="$ac_cv_path_EGREP" 12012 12013 EGREP_TRADITIONAL=$EGREP 12014 ac_cv_path_EGREP_TRADITIONAL=$EGREP 12015 12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12017 printf %s "checking for fgrep... " >&6; } 12018 if test ${ac_cv_path_FGREP+y} 12019 then : 12020 printf %s "(cached) " >&6 12021 else case e in #( 12022 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12023 then ac_cv_path_FGREP="$GREP -F" 12024 else 12025 if test -z "$FGREP"; then 12026 ac_path_FGREP_found=false 12027 # Loop through the user's path and test for each of PROGNAME-LIST 12028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12030 do 12031 IFS=$as_save_IFS 12032 case $as_dir in #((( 12033 '') as_dir=./ ;; 12034 */) ;; 12035 *) as_dir=$as_dir/ ;; 12036 esac 12037 for ac_prog in fgrep 12038 do 12039 for ac_exec_ext in '' $ac_executable_extensions; do 12040 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 12041 as_fn_executable_p "$ac_path_FGREP" || continue 12042 # Check for GNU ac_path_FGREP and select it if it is found. 12043 # Check for GNU $ac_path_FGREP 12044 case `"$ac_path_FGREP" --version 2>&1` in #( 12045 *GNU*) 12046 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12047 #( 12048 *) 12049 ac_count=0 12050 printf %s 0123456789 >"conftest.in" 12051 while : 12052 do 12053 cat "conftest.in" "conftest.in" >"conftest.tmp" 12054 mv "conftest.tmp" "conftest.in" 12055 cp "conftest.in" "conftest.nl" 12056 printf "%s\n" 'FGREP' >> "conftest.nl" 12057 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12058 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12059 as_fn_arith $ac_count + 1 && ac_count=$as_val 12060 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12061 # Best one so far, save it but keep looking for a better one 12062 ac_cv_path_FGREP="$ac_path_FGREP" 12063 ac_path_FGREP_max=$ac_count 12064 fi 12065 # 10*(2^10) chars as input seems more than enough 12066 test $ac_count -gt 10 && break 12067 done 12068 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12069 esac 12070 12071 $ac_path_FGREP_found && break 3 12072 done 12073 done 12074 done 12075 IFS=$as_save_IFS 12076 if test -z "$ac_cv_path_FGREP"; then 12077 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12078 fi 12079 else 12080 ac_cv_path_FGREP=$FGREP 12081 fi 12082 12083 fi ;; 12084 esac 12085 fi 12086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12087 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 12088 FGREP="$ac_cv_path_FGREP" 12089 12090 12091 test -z "$GREP" && GREP=grep 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 # Check whether --with-gnu-ld was given. 12112 if test ${with_gnu_ld+y} 12113 then : 12114 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12115 else case e in #( 12116 e) with_gnu_ld=no ;; 12117 esac 12118 fi 12119 12120 ac_prog=ld 12121 if test yes = "$GCC"; then 12122 # Check if gcc -print-prog-name=ld gives a path. 12123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12124 printf %s "checking for ld used by $CC... " >&6; } 12125 case $host in 12126 *-*-mingw*) 12127 # gcc leaves a trailing carriage return, which upsets mingw 12128 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12129 *) 12130 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12131 esac 12132 case $ac_prog in 12133 # Accept absolute paths. 12134 [\\/]* | ?:[\\/]*) 12135 re_direlt='/[^/][^/]*/\.\./' 12136 # Canonicalize the pathname of ld 12137 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12138 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12139 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12140 done 12141 test -z "$LD" && LD=$ac_prog 12142 ;; 12143 "") 12144 # If it fails, then pretend we aren't using GCC. 12145 ac_prog=ld 12146 ;; 12147 *) 12148 # If it is relative, then search for the first ld in PATH. 12149 with_gnu_ld=unknown 12150 ;; 12151 esac 12152 elif test yes = "$with_gnu_ld"; then 12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12154 printf %s "checking for GNU ld... " >&6; } 12155 else 12156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12157 printf %s "checking for non-GNU ld... " >&6; } 12158 fi 12159 if test ${lt_cv_path_LD+y} 12160 then : 12161 printf %s "(cached) " >&6 12162 else case e in #( 12163 e) if test -z "$LD"; then 12164 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12165 for ac_dir in $PATH; do 12166 IFS=$lt_save_ifs 12167 test -z "$ac_dir" && ac_dir=. 12168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12169 lt_cv_path_LD=$ac_dir/$ac_prog 12170 # Check to see if the program is GNU ld. I'd rather use --version, 12171 # but apparently some variants of GNU ld only accept -v. 12172 # Break only if it was the GNU/non-GNU ld that we prefer. 12173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12174 *GNU* | *'with BFD'*) 12175 test no != "$with_gnu_ld" && break 12176 ;; 12177 *) 12178 test yes != "$with_gnu_ld" && break 12179 ;; 12180 esac 12181 fi 12182 done 12183 IFS=$lt_save_ifs 12184 else 12185 lt_cv_path_LD=$LD # Let the user override the test with a path. 12186 fi ;; 12187 esac 12188 fi 12189 12190 LD=$lt_cv_path_LD 12191 if test -n "$LD"; then 12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12193 printf "%s\n" "$LD" >&6; } 12194 else 12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12196 printf "%s\n" "no" >&6; } 12197 fi 12198 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12200 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 12201 if test ${lt_cv_prog_gnu_ld+y} 12202 then : 12203 printf %s "(cached) " >&6 12204 else case e in #( 12205 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 12206 case `$LD -v 2>&1 </dev/null` in 12207 *GNU* | *'with BFD'*) 12208 lt_cv_prog_gnu_ld=yes 12209 ;; 12210 *) 12211 lt_cv_prog_gnu_ld=no 12212 ;; 12213 esac ;; 12214 esac 12215 fi 12216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12217 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 12218 with_gnu_ld=$lt_cv_prog_gnu_ld 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 12229 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 12230 if test ${lt_cv_path_NM+y} 12231 then : 12232 printf %s "(cached) " >&6 12233 else case e in #( 12234 e) if test -n "$NM"; then 12235 # Let the user override the test. 12236 lt_cv_path_NM=$NM 12237 else 12238 lt_nm_to_check=${ac_tool_prefix}nm 12239 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 12240 lt_nm_to_check="$lt_nm_to_check nm" 12241 fi 12242 for lt_tmp_nm in $lt_nm_to_check; do 12243 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12244 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 12245 IFS=$lt_save_ifs 12246 test -z "$ac_dir" && ac_dir=. 12247 tmp_nm=$ac_dir/$lt_tmp_nm 12248 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 12249 # Check to see if the nm accepts a BSD-compat flag. 12250 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 12251 # nm: unknown option "B" ignored 12252 # Tru64's nm complains that /dev/null is an invalid object file 12253 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 12254 case $build_os in 12255 mingw*) lt_bad_file=conftest.nm/nofile ;; 12256 *) lt_bad_file=/dev/null ;; 12257 esac 12258 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 12259 *$lt_bad_file* | *'Invalid file or object type'*) 12260 lt_cv_path_NM="$tmp_nm -B" 12261 break 2 12262 ;; 12263 *) 12264 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 12265 */dev/null*) 12266 lt_cv_path_NM="$tmp_nm -p" 12267 break 2 12268 ;; 12269 *) 12270 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 12271 continue # so that we can try to find one that supports BSD flags 12272 ;; 12273 esac 12274 ;; 12275 esac 12276 fi 12277 done 12278 IFS=$lt_save_ifs 12279 done 12280 : ${lt_cv_path_NM=no} 12281 fi ;; 12282 esac 12283 fi 12284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 12285 printf "%s\n" "$lt_cv_path_NM" >&6; } 12286 if test no != "$lt_cv_path_NM"; then 12287 NM=$lt_cv_path_NM 12288 else 12289 # Didn't find any BSD compatible name lister, look for dumpbin. 12290 if test -n "$DUMPBIN"; then : 12291 # Let the user override the test. 12292 else 12293 if test -n "$ac_tool_prefix"; then 12294 for ac_prog in dumpbin "link -dump" 12295 do 12296 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12297 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12299 printf %s "checking for $ac_word... " >&6; } 12300 if test ${ac_cv_prog_DUMPBIN+y} 12301 then : 12302 printf %s "(cached) " >&6 12303 else case e in #( 12304 e) if test -n "$DUMPBIN"; then 12305 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 12306 else 12307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12308 for as_dir in $PATH 12309 do 12310 IFS=$as_save_IFS 12311 case $as_dir in #((( 12312 '') as_dir=./ ;; 12313 */) ;; 12314 *) as_dir=$as_dir/ ;; 12315 esac 12316 for ac_exec_ext in '' $ac_executable_extensions; do 12317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12318 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 12319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12320 break 2 12321 fi 12322 done 12323 done 12324 IFS=$as_save_IFS 12325 12326 fi ;; 12327 esac 12328 fi 12329 DUMPBIN=$ac_cv_prog_DUMPBIN 12330 if test -n "$DUMPBIN"; then 12331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 12332 printf "%s\n" "$DUMPBIN" >&6; } 12333 else 12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12335 printf "%s\n" "no" >&6; } 12336 fi 12337 12338 12339 test -n "$DUMPBIN" && break 12340 done 12341 fi 12342 if test -z "$DUMPBIN"; then 12343 ac_ct_DUMPBIN=$DUMPBIN 12344 for ac_prog in dumpbin "link -dump" 12345 do 12346 # Extract the first word of "$ac_prog", so it can be a program name with args. 12347 set dummy $ac_prog; ac_word=$2 12348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12349 printf %s "checking for $ac_word... " >&6; } 12350 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 12351 then : 12352 printf %s "(cached) " >&6 12353 else case e in #( 12354 e) if test -n "$ac_ct_DUMPBIN"; then 12355 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 12356 else 12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12358 for as_dir in $PATH 12359 do 12360 IFS=$as_save_IFS 12361 case $as_dir in #((( 12362 '') as_dir=./ ;; 12363 */) ;; 12364 *) as_dir=$as_dir/ ;; 12365 esac 12366 for ac_exec_ext in '' $ac_executable_extensions; do 12367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12368 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 12369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12370 break 2 12371 fi 12372 done 12373 done 12374 IFS=$as_save_IFS 12375 12376 fi ;; 12377 esac 12378 fi 12379 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 12380 if test -n "$ac_ct_DUMPBIN"; then 12381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 12382 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 12383 else 12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12385 printf "%s\n" "no" >&6; } 12386 fi 12387 12388 12389 test -n "$ac_ct_DUMPBIN" && break 12390 done 12391 12392 if test "x$ac_ct_DUMPBIN" = x; then 12393 DUMPBIN=":" 12394 else 12395 case $cross_compiling:$ac_tool_warned in 12396 yes:) 12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12399 ac_tool_warned=yes ;; 12400 esac 12401 DUMPBIN=$ac_ct_DUMPBIN 12402 fi 12403 fi 12404 12405 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 12406 *COFF*) 12407 DUMPBIN="$DUMPBIN -symbols -headers" 12408 ;; 12409 *) 12410 DUMPBIN=: 12411 ;; 12412 esac 12413 fi 12414 12415 if test : != "$DUMPBIN"; then 12416 NM=$DUMPBIN 12417 fi 12418 fi 12419 test -z "$NM" && NM=nm 12420 12421 12422 12423 12424 12425 12426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 12427 printf %s "checking the name lister ($NM) interface... " >&6; } 12428 if test ${lt_cv_nm_interface+y} 12429 then : 12430 printf %s "(cached) " >&6 12431 else case e in #( 12432 e) lt_cv_nm_interface="BSD nm" 12433 echo "int some_variable = 0;" > conftest.$ac_ext 12434 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12435 (eval "$ac_compile" 2>conftest.err) 12436 cat conftest.err >&5 12437 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12438 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12439 cat conftest.err >&5 12440 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12441 cat conftest.out >&5 12442 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12443 lt_cv_nm_interface="MS dumpbin" 12444 fi 12445 rm -f conftest* ;; 12446 esac 12447 fi 12448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12449 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12450 12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12452 printf %s "checking whether ln -s works... " >&6; } 12453 LN_S=$as_ln_s 12454 if test "$LN_S" = "ln -s"; then 12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12456 printf "%s\n" "yes" >&6; } 12457 else 12458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12459 printf "%s\n" "no, using $LN_S" >&6; } 12460 fi 12461 12462 # find the maximum length of command line arguments 12463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12464 printf %s "checking the maximum length of command line arguments... " >&6; } 12465 if test ${lt_cv_sys_max_cmd_len+y} 12466 then : 12467 printf %s "(cached) " >&6 12468 else case e in #( 12469 e) i=0 12470 teststring=ABCD 12471 12472 case $build_os in 12473 msdosdjgpp*) 12474 # On DJGPP, this test can blow up pretty badly due to problems in libc 12475 # (any single argument exceeding 2000 bytes causes a buffer overrun 12476 # during glob expansion). Even if it were fixed, the result of this 12477 # check would be larger than it should be. 12478 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12479 ;; 12480 12481 gnu*) 12482 # Under GNU Hurd, this test is not required because there is 12483 # no limit to the length of command line arguments. 12484 # Libtool will interpret -1 as no limit whatsoever 12485 lt_cv_sys_max_cmd_len=-1; 12486 ;; 12487 12488 cygwin* | mingw* | cegcc*) 12489 # On Win9x/ME, this test blows up -- it succeeds, but takes 12490 # about 5 minutes as the teststring grows exponentially. 12491 # Worse, since 9x/ME are not pre-emptively multitasking, 12492 # you end up with a "frozen" computer, even though with patience 12493 # the test eventually succeeds (with a max line length of 256k). 12494 # Instead, let's just punt: use the minimum linelength reported by 12495 # all of the supported platforms: 8192 (on NT/2K/XP). 12496 lt_cv_sys_max_cmd_len=8192; 12497 ;; 12498 12499 mint*) 12500 # On MiNT this can take a long time and run out of memory. 12501 lt_cv_sys_max_cmd_len=8192; 12502 ;; 12503 12504 amigaos*) 12505 # On AmigaOS with pdksh, this test takes hours, literally. 12506 # So we just punt and use a minimum line length of 8192. 12507 lt_cv_sys_max_cmd_len=8192; 12508 ;; 12509 12510 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12511 # This has been around since 386BSD, at least. Likely further. 12512 if test -x /sbin/sysctl; then 12513 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12514 elif test -x /usr/sbin/sysctl; then 12515 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12516 else 12517 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12518 fi 12519 # And add a safety zone 12520 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12522 ;; 12523 12524 interix*) 12525 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12526 lt_cv_sys_max_cmd_len=196608 12527 ;; 12528 12529 os2*) 12530 # The test takes a long time on OS/2. 12531 lt_cv_sys_max_cmd_len=8192 12532 ;; 12533 12534 osf*) 12535 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12536 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12537 # nice to cause kernel panics so lets avoid the loop below. 12538 # First set a reasonable default. 12539 lt_cv_sys_max_cmd_len=16384 12540 # 12541 if test -x /sbin/sysconfig; then 12542 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12543 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12544 esac 12545 fi 12546 ;; 12547 sco3.2v5*) 12548 lt_cv_sys_max_cmd_len=102400 12549 ;; 12550 sysv5* | sco5v6* | sysv4.2uw2*) 12551 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12552 if test -n "$kargmax"; then 12553 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12554 else 12555 lt_cv_sys_max_cmd_len=32768 12556 fi 12557 ;; 12558 *) 12559 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12560 if test -n "$lt_cv_sys_max_cmd_len" && \ 12561 test undefined != "$lt_cv_sys_max_cmd_len"; then 12562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12564 else 12565 # Make teststring a little bigger before we do anything with it. 12566 # a 1K string should be a reasonable start. 12567 for i in 1 2 3 4 5 6 7 8; do 12568 teststring=$teststring$teststring 12569 done 12570 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12571 # If test is not a shell built-in, we'll probably end up computing a 12572 # maximum length that is only half of the actual maximum length, but 12573 # we can't tell. 12574 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12575 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12576 test 17 != "$i" # 1/2 MB should be enough 12577 do 12578 i=`expr $i + 1` 12579 teststring=$teststring$teststring 12580 done 12581 # Only check the string length outside the loop. 12582 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12583 teststring= 12584 # Add a significant safety factor because C++ compilers can tack on 12585 # massive amounts of additional arguments before passing them to the 12586 # linker. It appears as though 1/2 is a usable value. 12587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12588 fi 12589 ;; 12590 esac 12591 ;; 12592 esac 12593 fi 12594 12595 if test -n "$lt_cv_sys_max_cmd_len"; then 12596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12597 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12598 else 12599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12600 printf "%s\n" "none" >&6; } 12601 fi 12602 max_cmd_len=$lt_cv_sys_max_cmd_len 12603 12604 12605 12606 12607 12608 12609 : ${CP="cp -f"} 12610 : ${MV="mv -f"} 12611 : ${RM="rm -f"} 12612 12613 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12614 lt_unset=unset 12615 else 12616 lt_unset=false 12617 fi 12618 12619 12620 12621 12622 12623 # test EBCDIC or ASCII 12624 case `echo X|tr X '\101'` in 12625 A) # ASCII based system 12626 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12627 lt_SP2NL='tr \040 \012' 12628 lt_NL2SP='tr \015\012 \040\040' 12629 ;; 12630 *) # EBCDIC based system 12631 lt_SP2NL='tr \100 \n' 12632 lt_NL2SP='tr \r\n \100\100' 12633 ;; 12634 esac 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12645 printf %s "checking how to convert $build file names to $host format... " >&6; } 12646 if test ${lt_cv_to_host_file_cmd+y} 12647 then : 12648 printf %s "(cached) " >&6 12649 else case e in #( 12650 e) case $host in 12651 *-*-mingw* ) 12652 case $build in 12653 *-*-mingw* ) # actually msys 12654 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12655 ;; 12656 *-*-cygwin* ) 12657 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12658 ;; 12659 * ) # otherwise, assume *nix 12660 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12661 ;; 12662 esac 12663 ;; 12664 *-*-cygwin* ) 12665 case $build in 12666 *-*-mingw* ) # actually msys 12667 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12668 ;; 12669 *-*-cygwin* ) 12670 lt_cv_to_host_file_cmd=func_convert_file_noop 12671 ;; 12672 * ) # otherwise, assume *nix 12673 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12674 ;; 12675 esac 12676 ;; 12677 * ) # unhandled hosts (and "normal" native builds) 12678 lt_cv_to_host_file_cmd=func_convert_file_noop 12679 ;; 12680 esac 12681 ;; 12682 esac 12683 fi 12684 12685 to_host_file_cmd=$lt_cv_to_host_file_cmd 12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12687 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12688 12689 12690 12691 12692 12693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12694 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12695 if test ${lt_cv_to_tool_file_cmd+y} 12696 then : 12697 printf %s "(cached) " >&6 12698 else case e in #( 12699 e) #assume ordinary cross tools, or native build. 12700 lt_cv_to_tool_file_cmd=func_convert_file_noop 12701 case $host in 12702 *-*-mingw* ) 12703 case $build in 12704 *-*-mingw* ) # actually msys 12705 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12706 ;; 12707 esac 12708 ;; 12709 esac 12710 ;; 12711 esac 12712 fi 12713 12714 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12716 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12717 12718 12719 12720 12721 12722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12723 printf %s "checking for $LD option to reload object files... " >&6; } 12724 if test ${lt_cv_ld_reload_flag+y} 12725 then : 12726 printf %s "(cached) " >&6 12727 else case e in #( 12728 e) lt_cv_ld_reload_flag='-r' ;; 12729 esac 12730 fi 12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12732 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12733 reload_flag=$lt_cv_ld_reload_flag 12734 case $reload_flag in 12735 "" | " "*) ;; 12736 *) reload_flag=" $reload_flag" ;; 12737 esac 12738 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12739 case $host_os in 12740 cygwin* | mingw* | pw32* | cegcc*) 12741 if test yes != "$GCC"; then 12742 reload_cmds=false 12743 fi 12744 ;; 12745 darwin*) 12746 if test yes = "$GCC"; then 12747 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12748 else 12749 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12750 fi 12751 ;; 12752 esac 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 if test -n "$ac_tool_prefix"; then 12763 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12764 set dummy ${ac_tool_prefix}file; ac_word=$2 12765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12766 printf %s "checking for $ac_word... " >&6; } 12767 if test ${ac_cv_prog_FILECMD+y} 12768 then : 12769 printf %s "(cached) " >&6 12770 else case e in #( 12771 e) if test -n "$FILECMD"; then 12772 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12773 else 12774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12775 for as_dir in $PATH 12776 do 12777 IFS=$as_save_IFS 12778 case $as_dir in #((( 12779 '') as_dir=./ ;; 12780 */) ;; 12781 *) as_dir=$as_dir/ ;; 12782 esac 12783 for ac_exec_ext in '' $ac_executable_extensions; do 12784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12785 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12787 break 2 12788 fi 12789 done 12790 done 12791 IFS=$as_save_IFS 12792 12793 fi ;; 12794 esac 12795 fi 12796 FILECMD=$ac_cv_prog_FILECMD 12797 if test -n "$FILECMD"; then 12798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12799 printf "%s\n" "$FILECMD" >&6; } 12800 else 12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12802 printf "%s\n" "no" >&6; } 12803 fi 12804 12805 12806 fi 12807 if test -z "$ac_cv_prog_FILECMD"; then 12808 ac_ct_FILECMD=$FILECMD 12809 # Extract the first word of "file", so it can be a program name with args. 12810 set dummy file; ac_word=$2 12811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12812 printf %s "checking for $ac_word... " >&6; } 12813 if test ${ac_cv_prog_ac_ct_FILECMD+y} 12814 then : 12815 printf %s "(cached) " >&6 12816 else case e in #( 12817 e) if test -n "$ac_ct_FILECMD"; then 12818 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12819 else 12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12821 for as_dir in $PATH 12822 do 12823 IFS=$as_save_IFS 12824 case $as_dir in #((( 12825 '') as_dir=./ ;; 12826 */) ;; 12827 *) as_dir=$as_dir/ ;; 12828 esac 12829 for ac_exec_ext in '' $ac_executable_extensions; do 12830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12831 ac_cv_prog_ac_ct_FILECMD="file" 12832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12833 break 2 12834 fi 12835 done 12836 done 12837 IFS=$as_save_IFS 12838 12839 fi ;; 12840 esac 12841 fi 12842 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12843 if test -n "$ac_ct_FILECMD"; then 12844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12845 printf "%s\n" "$ac_ct_FILECMD" >&6; } 12846 else 12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12848 printf "%s\n" "no" >&6; } 12849 fi 12850 12851 if test "x$ac_ct_FILECMD" = x; then 12852 FILECMD=":" 12853 else 12854 case $cross_compiling:$ac_tool_warned in 12855 yes:) 12856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12857 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12858 ac_tool_warned=yes ;; 12859 esac 12860 FILECMD=$ac_ct_FILECMD 12861 fi 12862 else 12863 FILECMD="$ac_cv_prog_FILECMD" 12864 fi 12865 12866 12867 12868 12869 12870 12871 12872 if test -n "$ac_tool_prefix"; then 12873 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12874 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12876 printf %s "checking for $ac_word... " >&6; } 12877 if test ${ac_cv_prog_OBJDUMP+y} 12878 then : 12879 printf %s "(cached) " >&6 12880 else case e in #( 12881 e) if test -n "$OBJDUMP"; then 12882 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12883 else 12884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12885 for as_dir in $PATH 12886 do 12887 IFS=$as_save_IFS 12888 case $as_dir in #((( 12889 '') as_dir=./ ;; 12890 */) ;; 12891 *) as_dir=$as_dir/ ;; 12892 esac 12893 for ac_exec_ext in '' $ac_executable_extensions; do 12894 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12895 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12897 break 2 12898 fi 12899 done 12900 done 12901 IFS=$as_save_IFS 12902 12903 fi ;; 12904 esac 12905 fi 12906 OBJDUMP=$ac_cv_prog_OBJDUMP 12907 if test -n "$OBJDUMP"; then 12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12909 printf "%s\n" "$OBJDUMP" >&6; } 12910 else 12911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12912 printf "%s\n" "no" >&6; } 12913 fi 12914 12915 12916 fi 12917 if test -z "$ac_cv_prog_OBJDUMP"; then 12918 ac_ct_OBJDUMP=$OBJDUMP 12919 # Extract the first word of "objdump", so it can be a program name with args. 12920 set dummy objdump; ac_word=$2 12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12922 printf %s "checking for $ac_word... " >&6; } 12923 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12924 then : 12925 printf %s "(cached) " >&6 12926 else case e in #( 12927 e) if test -n "$ac_ct_OBJDUMP"; then 12928 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12929 else 12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12931 for as_dir in $PATH 12932 do 12933 IFS=$as_save_IFS 12934 case $as_dir in #((( 12935 '') as_dir=./ ;; 12936 */) ;; 12937 *) as_dir=$as_dir/ ;; 12938 esac 12939 for ac_exec_ext in '' $ac_executable_extensions; do 12940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12941 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12943 break 2 12944 fi 12945 done 12946 done 12947 IFS=$as_save_IFS 12948 12949 fi ;; 12950 esac 12951 fi 12952 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12953 if test -n "$ac_ct_OBJDUMP"; then 12954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12955 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12956 else 12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12958 printf "%s\n" "no" >&6; } 12959 fi 12960 12961 if test "x$ac_ct_OBJDUMP" = x; then 12962 OBJDUMP="false" 12963 else 12964 case $cross_compiling:$ac_tool_warned in 12965 yes:) 12966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12967 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12968 ac_tool_warned=yes ;; 12969 esac 12970 OBJDUMP=$ac_ct_OBJDUMP 12971 fi 12972 else 12973 OBJDUMP="$ac_cv_prog_OBJDUMP" 12974 fi 12975 12976 test -z "$OBJDUMP" && OBJDUMP=objdump 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12987 printf %s "checking how to recognize dependent libraries... " >&6; } 12988 if test ${lt_cv_deplibs_check_method+y} 12989 then : 12990 printf %s "(cached) " >&6 12991 else case e in #( 12992 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 12993 lt_cv_file_magic_test_file= 12994 lt_cv_deplibs_check_method='unknown' 12995 # Need to set the preceding variable on all platforms that support 12996 # interlibrary dependencies. 12997 # 'none' -- dependencies not supported. 12998 # 'unknown' -- same as none, but documents that we really don't know. 12999 # 'pass_all' -- all dependencies passed with no checks. 13000 # 'test_compile' -- check by making test program. 13001 # 'file_magic [[regex]]' -- check by looking for files in library path 13002 # that responds to the $file_magic_cmd with a given extended regex. 13003 # If you have 'file' or equivalent on your system and you're not sure 13004 # whether 'pass_all' will *always* work, you probably want this one. 13005 13006 case $host_os in 13007 aix[4-9]*) 13008 lt_cv_deplibs_check_method=pass_all 13009 ;; 13010 13011 beos*) 13012 lt_cv_deplibs_check_method=pass_all 13013 ;; 13014 13015 bsdi[45]*) 13016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 13017 lt_cv_file_magic_cmd='$FILECMD -L' 13018 lt_cv_file_magic_test_file=/shlib/libc.so 13019 ;; 13020 13021 cygwin*) 13022 # func_win32_libid is a shell function defined in ltmain.sh 13023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13024 lt_cv_file_magic_cmd='func_win32_libid' 13025 ;; 13026 13027 mingw* | pw32*) 13028 # Base MSYS/MinGW do not provide the 'file' command needed by 13029 # func_win32_libid shell function, so use a weaker test based on 'objdump', 13030 # unless we find 'file', for example because we are cross-compiling. 13031 if ( file / ) >/dev/null 2>&1; then 13032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 13033 lt_cv_file_magic_cmd='func_win32_libid' 13034 else 13035 # Keep this pattern in sync with the one in func_win32_libid. 13036 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 13037 lt_cv_file_magic_cmd='$OBJDUMP -f' 13038 fi 13039 ;; 13040 13041 cegcc*) 13042 # use the weaker test based on 'objdump'. See mingw*. 13043 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 13044 lt_cv_file_magic_cmd='$OBJDUMP -f' 13045 ;; 13046 13047 darwin* | rhapsody*) 13048 lt_cv_deplibs_check_method=pass_all 13049 ;; 13050 13051 freebsd* | dragonfly* | midnightbsd*) 13052 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13053 case $host_cpu in 13054 i*86 ) 13055 # Not sure whether the presence of OpenBSD here was a mistake. 13056 # Let's accept both of them until this is cleared up. 13057 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 13058 lt_cv_file_magic_cmd=$FILECMD 13059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 13060 ;; 13061 esac 13062 else 13063 lt_cv_deplibs_check_method=pass_all 13064 fi 13065 ;; 13066 13067 haiku*) 13068 lt_cv_deplibs_check_method=pass_all 13069 ;; 13070 13071 hpux10.20* | hpux11*) 13072 lt_cv_file_magic_cmd=$FILECMD 13073 case $host_cpu in 13074 ia64*) 13075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 13076 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 13077 ;; 13078 hppa*64*) 13079 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]' 13080 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 13081 ;; 13082 *) 13083 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 13084 lt_cv_file_magic_test_file=/usr/lib/libc.sl 13085 ;; 13086 esac 13087 ;; 13088 13089 interix[3-9]*) 13090 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 13091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 13092 ;; 13093 13094 irix5* | irix6* | nonstopux*) 13095 case $LD in 13096 *-32|*"-32 ") libmagic=32-bit;; 13097 *-n32|*"-n32 ") libmagic=N32;; 13098 *-64|*"-64 ") libmagic=64-bit;; 13099 *) libmagic=never-match;; 13100 esac 13101 lt_cv_deplibs_check_method=pass_all 13102 ;; 13103 13104 # This must be glibc/ELF. 13105 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13106 lt_cv_deplibs_check_method=pass_all 13107 ;; 13108 13109 netbsd*) 13110 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 13111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13112 else 13113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 13114 fi 13115 ;; 13116 13117 newos6*) 13118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 13119 lt_cv_file_magic_cmd=$FILECMD 13120 lt_cv_file_magic_test_file=/usr/lib/libnls.so 13121 ;; 13122 13123 *nto* | *qnx*) 13124 lt_cv_deplibs_check_method=pass_all 13125 ;; 13126 13127 openbsd* | bitrig*) 13128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 13129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 13130 else 13131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 13132 fi 13133 ;; 13134 13135 osf3* | osf4* | osf5*) 13136 lt_cv_deplibs_check_method=pass_all 13137 ;; 13138 13139 rdos*) 13140 lt_cv_deplibs_check_method=pass_all 13141 ;; 13142 13143 solaris*) 13144 lt_cv_deplibs_check_method=pass_all 13145 ;; 13146 13147 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13148 lt_cv_deplibs_check_method=pass_all 13149 ;; 13150 13151 sysv4 | sysv4.3*) 13152 case $host_vendor in 13153 motorola) 13154 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]' 13155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 13156 ;; 13157 ncr) 13158 lt_cv_deplibs_check_method=pass_all 13159 ;; 13160 sequent) 13161 lt_cv_file_magic_cmd='/bin/file' 13162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 13163 ;; 13164 sni) 13165 lt_cv_file_magic_cmd='/bin/file' 13166 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 13167 lt_cv_file_magic_test_file=/lib/libc.so 13168 ;; 13169 siemens) 13170 lt_cv_deplibs_check_method=pass_all 13171 ;; 13172 pc) 13173 lt_cv_deplibs_check_method=pass_all 13174 ;; 13175 esac 13176 ;; 13177 13178 tpf*) 13179 lt_cv_deplibs_check_method=pass_all 13180 ;; 13181 os2*) 13182 lt_cv_deplibs_check_method=pass_all 13183 ;; 13184 esac 13185 ;; 13186 esac 13187 fi 13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 13189 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 13190 13191 file_magic_glob= 13192 want_nocaseglob=no 13193 if test "$build" = "$host"; then 13194 case $host_os in 13195 mingw* | pw32*) 13196 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 13197 want_nocaseglob=yes 13198 else 13199 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 13200 fi 13201 ;; 13202 esac 13203 fi 13204 13205 file_magic_cmd=$lt_cv_file_magic_cmd 13206 deplibs_check_method=$lt_cv_deplibs_check_method 13207 test -z "$deplibs_check_method" && deplibs_check_method=unknown 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 if test -n "$ac_tool_prefix"; then 13231 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 13232 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13234 printf %s "checking for $ac_word... " >&6; } 13235 if test ${ac_cv_prog_DLLTOOL+y} 13236 then : 13237 printf %s "(cached) " >&6 13238 else case e in #( 13239 e) if test -n "$DLLTOOL"; then 13240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 13241 else 13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13243 for as_dir in $PATH 13244 do 13245 IFS=$as_save_IFS 13246 case $as_dir in #((( 13247 '') as_dir=./ ;; 13248 */) ;; 13249 *) as_dir=$as_dir/ ;; 13250 esac 13251 for ac_exec_ext in '' $ac_executable_extensions; do 13252 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13253 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 13254 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13255 break 2 13256 fi 13257 done 13258 done 13259 IFS=$as_save_IFS 13260 13261 fi ;; 13262 esac 13263 fi 13264 DLLTOOL=$ac_cv_prog_DLLTOOL 13265 if test -n "$DLLTOOL"; then 13266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 13267 printf "%s\n" "$DLLTOOL" >&6; } 13268 else 13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13270 printf "%s\n" "no" >&6; } 13271 fi 13272 13273 13274 fi 13275 if test -z "$ac_cv_prog_DLLTOOL"; then 13276 ac_ct_DLLTOOL=$DLLTOOL 13277 # Extract the first word of "dlltool", so it can be a program name with args. 13278 set dummy dlltool; ac_word=$2 13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13280 printf %s "checking for $ac_word... " >&6; } 13281 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 13282 then : 13283 printf %s "(cached) " >&6 13284 else case e in #( 13285 e) if test -n "$ac_ct_DLLTOOL"; then 13286 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 13287 else 13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13289 for as_dir in $PATH 13290 do 13291 IFS=$as_save_IFS 13292 case $as_dir in #((( 13293 '') as_dir=./ ;; 13294 */) ;; 13295 *) as_dir=$as_dir/ ;; 13296 esac 13297 for ac_exec_ext in '' $ac_executable_extensions; do 13298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13299 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 13300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13301 break 2 13302 fi 13303 done 13304 done 13305 IFS=$as_save_IFS 13306 13307 fi ;; 13308 esac 13309 fi 13310 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 13311 if test -n "$ac_ct_DLLTOOL"; then 13312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 13313 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 13314 else 13315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13316 printf "%s\n" "no" >&6; } 13317 fi 13318 13319 if test "x$ac_ct_DLLTOOL" = x; then 13320 DLLTOOL="false" 13321 else 13322 case $cross_compiling:$ac_tool_warned in 13323 yes:) 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13326 ac_tool_warned=yes ;; 13327 esac 13328 DLLTOOL=$ac_ct_DLLTOOL 13329 fi 13330 else 13331 DLLTOOL="$ac_cv_prog_DLLTOOL" 13332 fi 13333 13334 test -z "$DLLTOOL" && DLLTOOL=dlltool 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 13346 printf %s "checking how to associate runtime and link libraries... " >&6; } 13347 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 13348 then : 13349 printf %s "(cached) " >&6 13350 else case e in #( 13351 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 13352 13353 case $host_os in 13354 cygwin* | mingw* | pw32* | cegcc*) 13355 # two different shell functions defined in ltmain.sh; 13356 # decide which one to use based on capabilities of $DLLTOOL 13357 case `$DLLTOOL --help 2>&1` in 13358 *--identify-strict*) 13359 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 13360 ;; 13361 *) 13362 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 13363 ;; 13364 esac 13365 ;; 13366 *) 13367 # fallback: assume linklib IS sharedlib 13368 lt_cv_sharedlib_from_linklib_cmd=$ECHO 13369 ;; 13370 esac 13371 ;; 13372 esac 13373 fi 13374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 13375 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 13376 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 13377 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 13378 13379 13380 13381 13382 13383 13384 13385 if test -n "$ac_tool_prefix"; then 13386 for ac_prog in ar 13387 do 13388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13391 printf %s "checking for $ac_word... " >&6; } 13392 if test ${ac_cv_prog_AR+y} 13393 then : 13394 printf %s "(cached) " >&6 13395 else case e in #( 13396 e) if test -n "$AR"; then 13397 ac_cv_prog_AR="$AR" # Let the user override the test. 13398 else 13399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13400 for as_dir in $PATH 13401 do 13402 IFS=$as_save_IFS 13403 case $as_dir in #((( 13404 '') as_dir=./ ;; 13405 */) ;; 13406 *) as_dir=$as_dir/ ;; 13407 esac 13408 for ac_exec_ext in '' $ac_executable_extensions; do 13409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13410 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13412 break 2 13413 fi 13414 done 13415 done 13416 IFS=$as_save_IFS 13417 13418 fi ;; 13419 esac 13420 fi 13421 AR=$ac_cv_prog_AR 13422 if test -n "$AR"; then 13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13424 printf "%s\n" "$AR" >&6; } 13425 else 13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13427 printf "%s\n" "no" >&6; } 13428 fi 13429 13430 13431 test -n "$AR" && break 13432 done 13433 fi 13434 if test -z "$AR"; then 13435 ac_ct_AR=$AR 13436 for ac_prog in ar 13437 do 13438 # Extract the first word of "$ac_prog", so it can be a program name with args. 13439 set dummy $ac_prog; ac_word=$2 13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13441 printf %s "checking for $ac_word... " >&6; } 13442 if test ${ac_cv_prog_ac_ct_AR+y} 13443 then : 13444 printf %s "(cached) " >&6 13445 else case e in #( 13446 e) if test -n "$ac_ct_AR"; then 13447 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13448 else 13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13450 for as_dir in $PATH 13451 do 13452 IFS=$as_save_IFS 13453 case $as_dir in #((( 13454 '') as_dir=./ ;; 13455 */) ;; 13456 *) as_dir=$as_dir/ ;; 13457 esac 13458 for ac_exec_ext in '' $ac_executable_extensions; do 13459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13460 ac_cv_prog_ac_ct_AR="$ac_prog" 13461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13462 break 2 13463 fi 13464 done 13465 done 13466 IFS=$as_save_IFS 13467 13468 fi ;; 13469 esac 13470 fi 13471 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13472 if test -n "$ac_ct_AR"; then 13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13474 printf "%s\n" "$ac_ct_AR" >&6; } 13475 else 13476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13477 printf "%s\n" "no" >&6; } 13478 fi 13479 13480 13481 test -n "$ac_ct_AR" && break 13482 done 13483 13484 if test "x$ac_ct_AR" = x; then 13485 AR="false" 13486 else 13487 case $cross_compiling:$ac_tool_warned in 13488 yes:) 13489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13490 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13491 ac_tool_warned=yes ;; 13492 esac 13493 AR=$ac_ct_AR 13494 fi 13495 fi 13496 13497 : ${AR=ar} 13498 13499 13500 13501 13502 13503 13504 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13505 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13506 # higher priority because thats what people were doing historically (setting 13507 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13508 # variable obsoleted/removed. 13509 13510 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13511 lt_ar_flags=$AR_FLAGS 13512 13513 13514 13515 13516 13517 13518 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13519 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13520 13521 13522 13523 13524 13525 13526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13527 printf %s "checking for archiver @FILE support... " >&6; } 13528 if test ${lt_cv_ar_at_file+y} 13529 then : 13530 printf %s "(cached) " >&6 13531 else case e in #( 13532 e) lt_cv_ar_at_file=no 13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13534 /* end confdefs.h. */ 13535 13536 int 13537 main (void) 13538 { 13539 13540 ; 13541 return 0; 13542 } 13543 _ACEOF 13544 if ac_fn_c_try_compile "$LINENO" 13545 then : 13546 echo conftest.$ac_objext > conftest.lst 13547 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13549 (eval $lt_ar_try) 2>&5 13550 ac_status=$? 13551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13552 test $ac_status = 0; } 13553 if test 0 -eq "$ac_status"; then 13554 # Ensure the archiver fails upon bogus file names. 13555 rm -f conftest.$ac_objext libconftest.a 13556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13557 (eval $lt_ar_try) 2>&5 13558 ac_status=$? 13559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13560 test $ac_status = 0; } 13561 if test 0 -ne "$ac_status"; then 13562 lt_cv_ar_at_file=@ 13563 fi 13564 fi 13565 rm -f conftest.* libconftest.a 13566 13567 fi 13568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13569 ;; 13570 esac 13571 fi 13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13573 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13574 13575 if test no = "$lt_cv_ar_at_file"; then 13576 archiver_list_spec= 13577 else 13578 archiver_list_spec=$lt_cv_ar_at_file 13579 fi 13580 13581 13582 13583 13584 13585 13586 13587 if test -n "$ac_tool_prefix"; then 13588 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13589 set dummy ${ac_tool_prefix}strip; ac_word=$2 13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13591 printf %s "checking for $ac_word... " >&6; } 13592 if test ${ac_cv_prog_STRIP+y} 13593 then : 13594 printf %s "(cached) " >&6 13595 else case e in #( 13596 e) if test -n "$STRIP"; then 13597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13598 else 13599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13600 for as_dir in $PATH 13601 do 13602 IFS=$as_save_IFS 13603 case $as_dir in #((( 13604 '') as_dir=./ ;; 13605 */) ;; 13606 *) as_dir=$as_dir/ ;; 13607 esac 13608 for ac_exec_ext in '' $ac_executable_extensions; do 13609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13610 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13612 break 2 13613 fi 13614 done 13615 done 13616 IFS=$as_save_IFS 13617 13618 fi ;; 13619 esac 13620 fi 13621 STRIP=$ac_cv_prog_STRIP 13622 if test -n "$STRIP"; then 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13624 printf "%s\n" "$STRIP" >&6; } 13625 else 13626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13627 printf "%s\n" "no" >&6; } 13628 fi 13629 13630 13631 fi 13632 if test -z "$ac_cv_prog_STRIP"; then 13633 ac_ct_STRIP=$STRIP 13634 # Extract the first word of "strip", so it can be a program name with args. 13635 set dummy strip; ac_word=$2 13636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13637 printf %s "checking for $ac_word... " >&6; } 13638 if test ${ac_cv_prog_ac_ct_STRIP+y} 13639 then : 13640 printf %s "(cached) " >&6 13641 else case e in #( 13642 e) if test -n "$ac_ct_STRIP"; then 13643 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13644 else 13645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13646 for as_dir in $PATH 13647 do 13648 IFS=$as_save_IFS 13649 case $as_dir in #((( 13650 '') as_dir=./ ;; 13651 */) ;; 13652 *) as_dir=$as_dir/ ;; 13653 esac 13654 for ac_exec_ext in '' $ac_executable_extensions; do 13655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13656 ac_cv_prog_ac_ct_STRIP="strip" 13657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13658 break 2 13659 fi 13660 done 13661 done 13662 IFS=$as_save_IFS 13663 13664 fi ;; 13665 esac 13666 fi 13667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13668 if test -n "$ac_ct_STRIP"; then 13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13670 printf "%s\n" "$ac_ct_STRIP" >&6; } 13671 else 13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13673 printf "%s\n" "no" >&6; } 13674 fi 13675 13676 if test "x$ac_ct_STRIP" = x; then 13677 STRIP=":" 13678 else 13679 case $cross_compiling:$ac_tool_warned in 13680 yes:) 13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13683 ac_tool_warned=yes ;; 13684 esac 13685 STRIP=$ac_ct_STRIP 13686 fi 13687 else 13688 STRIP="$ac_cv_prog_STRIP" 13689 fi 13690 13691 test -z "$STRIP" && STRIP=: 13692 13693 13694 13695 13696 13697 13698 if test -n "$ac_tool_prefix"; then 13699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13702 printf %s "checking for $ac_word... " >&6; } 13703 if test ${ac_cv_prog_RANLIB+y} 13704 then : 13705 printf %s "(cached) " >&6 13706 else case e in #( 13707 e) if test -n "$RANLIB"; then 13708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13709 else 13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13711 for as_dir in $PATH 13712 do 13713 IFS=$as_save_IFS 13714 case $as_dir in #((( 13715 '') as_dir=./ ;; 13716 */) ;; 13717 *) as_dir=$as_dir/ ;; 13718 esac 13719 for ac_exec_ext in '' $ac_executable_extensions; do 13720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13721 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13723 break 2 13724 fi 13725 done 13726 done 13727 IFS=$as_save_IFS 13728 13729 fi ;; 13730 esac 13731 fi 13732 RANLIB=$ac_cv_prog_RANLIB 13733 if test -n "$RANLIB"; then 13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13735 printf "%s\n" "$RANLIB" >&6; } 13736 else 13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13738 printf "%s\n" "no" >&6; } 13739 fi 13740 13741 13742 fi 13743 if test -z "$ac_cv_prog_RANLIB"; then 13744 ac_ct_RANLIB=$RANLIB 13745 # Extract the first word of "ranlib", so it can be a program name with args. 13746 set dummy ranlib; ac_word=$2 13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13748 printf %s "checking for $ac_word... " >&6; } 13749 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13750 then : 13751 printf %s "(cached) " >&6 13752 else case e in #( 13753 e) if test -n "$ac_ct_RANLIB"; then 13754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13755 else 13756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13757 for as_dir in $PATH 13758 do 13759 IFS=$as_save_IFS 13760 case $as_dir in #((( 13761 '') as_dir=./ ;; 13762 */) ;; 13763 *) as_dir=$as_dir/ ;; 13764 esac 13765 for ac_exec_ext in '' $ac_executable_extensions; do 13766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13767 ac_cv_prog_ac_ct_RANLIB="ranlib" 13768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13769 break 2 13770 fi 13771 done 13772 done 13773 IFS=$as_save_IFS 13774 13775 fi ;; 13776 esac 13777 fi 13778 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13779 if test -n "$ac_ct_RANLIB"; then 13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13781 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13782 else 13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13784 printf "%s\n" "no" >&6; } 13785 fi 13786 13787 if test "x$ac_ct_RANLIB" = x; then 13788 RANLIB=":" 13789 else 13790 case $cross_compiling:$ac_tool_warned in 13791 yes:) 13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13794 ac_tool_warned=yes ;; 13795 esac 13796 RANLIB=$ac_ct_RANLIB 13797 fi 13798 else 13799 RANLIB="$ac_cv_prog_RANLIB" 13800 fi 13801 13802 test -z "$RANLIB" && RANLIB=: 13803 13804 13805 13806 13807 13808 13809 # Determine commands to create old-style static archives. 13810 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13811 old_postinstall_cmds='chmod 644 $oldlib' 13812 old_postuninstall_cmds= 13813 13814 if test -n "$RANLIB"; then 13815 case $host_os in 13816 bitrig* | openbsd*) 13817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13818 ;; 13819 *) 13820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13821 ;; 13822 esac 13823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13824 fi 13825 13826 case $host_os in 13827 darwin*) 13828 lock_old_archive_extraction=yes ;; 13829 *) 13830 lock_old_archive_extraction=no ;; 13831 esac 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 # If no C compiler was specified, use CC. 13872 LTCC=${LTCC-"$CC"} 13873 13874 # If no C compiler flags were specified, use CFLAGS. 13875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13876 13877 # Allow CC to be a program name with arguments. 13878 compiler=$CC 13879 13880 13881 # Check for command to grab the raw symbol name followed by C symbol from nm. 13882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13883 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13884 if test ${lt_cv_sys_global_symbol_pipe+y} 13885 then : 13886 printf %s "(cached) " >&6 13887 else case e in #( 13888 e) 13889 # These are sane defaults that work on at least a few old systems. 13890 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13891 13892 # Character class describing NM global symbol codes. 13893 symcode='[BCDEGRST]' 13894 13895 # Regexp to match symbols that can be accessed directly from C. 13896 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13897 13898 # Define system-specific variables. 13899 case $host_os in 13900 aix*) 13901 symcode='[BCDT]' 13902 ;; 13903 cygwin* | mingw* | pw32* | cegcc*) 13904 symcode='[ABCDGISTW]' 13905 ;; 13906 hpux*) 13907 if test ia64 = "$host_cpu"; then 13908 symcode='[ABCDEGRST]' 13909 fi 13910 ;; 13911 irix* | nonstopux*) 13912 symcode='[BCDEGRST]' 13913 ;; 13914 osf*) 13915 symcode='[BCDEGQRST]' 13916 ;; 13917 solaris*) 13918 symcode='[BDRT]' 13919 ;; 13920 sco3.2v5*) 13921 symcode='[DT]' 13922 ;; 13923 sysv4.2uw2*) 13924 symcode='[DT]' 13925 ;; 13926 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13927 symcode='[ABDT]' 13928 ;; 13929 sysv4) 13930 symcode='[DFNSTU]' 13931 ;; 13932 esac 13933 13934 # If we're using GNU nm, then use its standard symbol codes. 13935 case `$NM -V 2>&1` in 13936 *GNU* | *'with BFD'*) 13937 symcode='[ABCDGIRSTW]' ;; 13938 esac 13939 13940 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13941 # Gets list of data symbols to import. 13942 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13943 # Adjust the below global symbol transforms to fixup imported variables. 13944 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13945 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13946 lt_c_name_lib_hook="\ 13947 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13948 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13949 else 13950 # Disable hooks by default. 13951 lt_cv_sys_global_symbol_to_import= 13952 lt_cdecl_hook= 13953 lt_c_name_hook= 13954 lt_c_name_lib_hook= 13955 fi 13956 13957 # Transform an extracted symbol line into a proper C declaration. 13958 # Some systems (esp. on ia64) link data and code symbols differently, 13959 # so use this general approach. 13960 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13961 $lt_cdecl_hook\ 13962 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13963 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13964 13965 # Transform an extracted symbol line into symbol name and symbol address 13966 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13967 $lt_c_name_hook\ 13968 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13969 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13970 13971 # Transform an extracted symbol line into symbol name with lib prefix and 13972 # symbol address. 13973 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13974 $lt_c_name_lib_hook\ 13975 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13976 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13977 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13978 13979 # Handle CRLF in mingw tool chain 13980 opt_cr= 13981 case $build_os in 13982 mingw*) 13983 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13984 ;; 13985 esac 13986 13987 # Try without a prefix underscore, then with it. 13988 for ac_symprfx in "" "_"; do 13989 13990 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13991 symxfrm="\\1 $ac_symprfx\\2 \\2" 13992 13993 # Write the raw and C identifiers. 13994 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13995 # Fake it for dumpbin and say T for any non-static function, 13996 # D for any global variable and I for any imported variable. 13997 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13998 # which start with @ or ?. 13999 lt_cv_sys_global_symbol_pipe="$AWK '"\ 14000 " {last_section=section; section=\$ 3};"\ 14001 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 14002 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 14003 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 14004 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 14005 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 14006 " \$ 0!~/External *\|/{next};"\ 14007 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 14008 " {if(hide[section]) next};"\ 14009 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 14010 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 14011 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 14012 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 14013 " ' prfx=^$ac_symprfx" 14014 else 14015 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 14016 fi 14017 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 14018 14019 # Check to see that the pipe works correctly. 14020 pipe_works=no 14021 14022 rm -f conftest* 14023 cat > conftest.$ac_ext <<_LT_EOF 14024 #ifdef __cplusplus 14025 extern "C" { 14026 #endif 14027 char nm_test_var; 14028 void nm_test_func(void); 14029 void nm_test_func(void){} 14030 #ifdef __cplusplus 14031 } 14032 #endif 14033 int main(){nm_test_var='a';nm_test_func();return(0);} 14034 _LT_EOF 14035 14036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14037 (eval $ac_compile) 2>&5 14038 ac_status=$? 14039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14040 test $ac_status = 0; }; then 14041 # Now try to grab the symbols. 14042 nlist=conftest.nm 14043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 14044 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 14045 ac_status=$? 14046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14047 test $ac_status = 0; } && test -s "$nlist"; then 14048 # Try sorting and uniquifying the output. 14049 if sort "$nlist" | uniq > "$nlist"T; then 14050 mv -f "$nlist"T "$nlist" 14051 else 14052 rm -f "$nlist"T 14053 fi 14054 14055 # Make sure that we snagged all the symbols we need. 14056 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 14057 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 14058 cat <<_LT_EOF > conftest.$ac_ext 14059 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 14060 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 14061 /* DATA imports from DLLs on WIN32 can't be const, because runtime 14062 relocations are performed -- see ld's documentation on pseudo-relocs. */ 14063 # define LT_DLSYM_CONST 14064 #elif defined __osf__ 14065 /* This system does not cope well with relocations in const data. */ 14066 # define LT_DLSYM_CONST 14067 #else 14068 # define LT_DLSYM_CONST const 14069 #endif 14070 14071 #ifdef __cplusplus 14072 extern "C" { 14073 #endif 14074 14075 _LT_EOF 14076 # Now generate the symbol file. 14077 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 14078 14079 cat <<_LT_EOF >> conftest.$ac_ext 14080 14081 /* The mapping between symbol names and symbols. */ 14082 LT_DLSYM_CONST struct { 14083 const char *name; 14084 void *address; 14085 } 14086 lt__PROGRAM__LTX_preloaded_symbols[] = 14087 { 14088 { "@PROGRAM@", (void *) 0 }, 14089 _LT_EOF 14090 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 14091 cat <<\_LT_EOF >> conftest.$ac_ext 14092 {0, (void *) 0} 14093 }; 14094 14095 /* This works around a problem in FreeBSD linker */ 14096 #ifdef FREEBSD_WORKAROUND 14097 static const void *lt_preloaded_setup() { 14098 return lt__PROGRAM__LTX_preloaded_symbols; 14099 } 14100 #endif 14101 14102 #ifdef __cplusplus 14103 } 14104 #endif 14105 _LT_EOF 14106 # Now try linking the two files. 14107 mv conftest.$ac_objext conftstm.$ac_objext 14108 lt_globsym_save_LIBS=$LIBS 14109 lt_globsym_save_CFLAGS=$CFLAGS 14110 LIBS=conftstm.$ac_objext 14111 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 14112 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14113 (eval $ac_link) 2>&5 14114 ac_status=$? 14115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14116 test $ac_status = 0; } && test -s conftest$ac_exeext; then 14117 pipe_works=yes 14118 fi 14119 LIBS=$lt_globsym_save_LIBS 14120 CFLAGS=$lt_globsym_save_CFLAGS 14121 else 14122 echo "cannot find nm_test_func in $nlist" >&5 14123 fi 14124 else 14125 echo "cannot find nm_test_var in $nlist" >&5 14126 fi 14127 else 14128 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 14129 fi 14130 else 14131 echo "$progname: failed program was:" >&5 14132 cat conftest.$ac_ext >&5 14133 fi 14134 rm -rf conftest* conftst* 14135 14136 # Do not use the global_symbol_pipe unless it works. 14137 if test yes = "$pipe_works"; then 14138 break 14139 else 14140 lt_cv_sys_global_symbol_pipe= 14141 fi 14142 done 14143 ;; 14144 esac 14145 fi 14146 14147 if test -z "$lt_cv_sys_global_symbol_pipe"; then 14148 lt_cv_sys_global_symbol_to_cdecl= 14149 fi 14150 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 14152 printf "%s\n" "failed" >&6; } 14153 else 14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 14155 printf "%s\n" "ok" >&6; } 14156 fi 14157 14158 # Response file support. 14159 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 14160 nm_file_list_spec='@' 14161 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 14162 nm_file_list_spec='@' 14163 fi 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 14202 printf %s "checking for sysroot... " >&6; } 14203 14204 # Check whether --with-sysroot was given. 14205 if test ${with_sysroot+y} 14206 then : 14207 withval=$with_sysroot; 14208 else case e in #( 14209 e) with_sysroot=no ;; 14210 esac 14211 fi 14212 14213 14214 lt_sysroot= 14215 case $with_sysroot in #( 14216 yes) 14217 if test yes = "$GCC"; then 14218 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 14219 fi 14220 ;; #( 14221 /*) 14222 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 14223 ;; #( 14224 no|'') 14225 ;; #( 14226 *) 14227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 14228 printf "%s\n" "$with_sysroot" >&6; } 14229 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 14230 ;; 14231 esac 14232 14233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 14234 printf "%s\n" "${lt_sysroot:-no}" >&6; } 14235 14236 14237 14238 14239 14240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 14241 printf %s "checking for a working dd... " >&6; } 14242 if test ${ac_cv_path_lt_DD+y} 14243 then : 14244 printf %s "(cached) " >&6 14245 else case e in #( 14246 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14247 cat conftest.i conftest.i >conftest2.i 14248 : ${lt_DD:=$DD} 14249 if test -z "$lt_DD"; then 14250 ac_path_lt_DD_found=false 14251 # Loop through the user's path and test for each of PROGNAME-LIST 14252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14253 for as_dir in $PATH 14254 do 14255 IFS=$as_save_IFS 14256 case $as_dir in #((( 14257 '') as_dir=./ ;; 14258 */) ;; 14259 *) as_dir=$as_dir/ ;; 14260 esac 14261 for ac_prog in dd 14262 do 14263 for ac_exec_ext in '' $ac_executable_extensions; do 14264 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 14265 as_fn_executable_p "$ac_path_lt_DD" || continue 14266 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14267 cmp -s conftest.i conftest.out \ 14268 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 14269 fi 14270 $ac_path_lt_DD_found && break 3 14271 done 14272 done 14273 done 14274 IFS=$as_save_IFS 14275 if test -z "$ac_cv_path_lt_DD"; then 14276 : 14277 fi 14278 else 14279 ac_cv_path_lt_DD=$lt_DD 14280 fi 14281 14282 rm -f conftest.i conftest2.i conftest.out ;; 14283 esac 14284 fi 14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 14286 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 14287 14288 14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 14290 printf %s "checking how to truncate binary pipes... " >&6; } 14291 if test ${lt_cv_truncate_bin+y} 14292 then : 14293 printf %s "(cached) " >&6 14294 else case e in #( 14295 e) printf 0123456789abcdef0123456789abcdef >conftest.i 14296 cat conftest.i conftest.i >conftest2.i 14297 lt_cv_truncate_bin= 14298 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 14299 cmp -s conftest.i conftest.out \ 14300 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 14301 fi 14302 rm -f conftest.i conftest2.i conftest.out 14303 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 14304 esac 14305 fi 14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 14307 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 14308 14309 14310 14311 14312 14313 14314 14315 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 14316 func_cc_basename () 14317 { 14318 for cc_temp in $*""; do 14319 case $cc_temp in 14320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14322 \-*) ;; 14323 *) break;; 14324 esac 14325 done 14326 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14327 } 14328 14329 # Check whether --enable-libtool-lock was given. 14330 if test ${enable_libtool_lock+y} 14331 then : 14332 enableval=$enable_libtool_lock; 14333 fi 14334 14335 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 14336 14337 # Some flags need to be propagated to the compiler or linker for good 14338 # libtool support. 14339 case $host in 14340 ia64-*-hpux*) 14341 # Find out what ABI is being produced by ac_compile, and set mode 14342 # options accordingly. 14343 echo 'int i;' > conftest.$ac_ext 14344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14345 (eval $ac_compile) 2>&5 14346 ac_status=$? 14347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14348 test $ac_status = 0; }; then 14349 case `$FILECMD conftest.$ac_objext` in 14350 *ELF-32*) 14351 HPUX_IA64_MODE=32 14352 ;; 14353 *ELF-64*) 14354 HPUX_IA64_MODE=64 14355 ;; 14356 esac 14357 fi 14358 rm -rf conftest* 14359 ;; 14360 *-*-irix6*) 14361 # Find out what ABI is being produced by ac_compile, and set linker 14362 # options accordingly. 14363 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14365 (eval $ac_compile) 2>&5 14366 ac_status=$? 14367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14368 test $ac_status = 0; }; then 14369 if test yes = "$lt_cv_prog_gnu_ld"; then 14370 case `$FILECMD conftest.$ac_objext` in 14371 *32-bit*) 14372 LD="${LD-ld} -melf32bsmip" 14373 ;; 14374 *N32*) 14375 LD="${LD-ld} -melf32bmipn32" 14376 ;; 14377 *64-bit*) 14378 LD="${LD-ld} -melf64bmip" 14379 ;; 14380 esac 14381 else 14382 case `$FILECMD conftest.$ac_objext` in 14383 *32-bit*) 14384 LD="${LD-ld} -32" 14385 ;; 14386 *N32*) 14387 LD="${LD-ld} -n32" 14388 ;; 14389 *64-bit*) 14390 LD="${LD-ld} -64" 14391 ;; 14392 esac 14393 fi 14394 fi 14395 rm -rf conftest* 14396 ;; 14397 14398 mips64*-*linux*) 14399 # Find out what ABI is being produced by ac_compile, and set linker 14400 # options accordingly. 14401 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 14402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14403 (eval $ac_compile) 2>&5 14404 ac_status=$? 14405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14406 test $ac_status = 0; }; then 14407 emul=elf 14408 case `$FILECMD conftest.$ac_objext` in 14409 *32-bit*) 14410 emul="${emul}32" 14411 ;; 14412 *64-bit*) 14413 emul="${emul}64" 14414 ;; 14415 esac 14416 case `$FILECMD conftest.$ac_objext` in 14417 *MSB*) 14418 emul="${emul}btsmip" 14419 ;; 14420 *LSB*) 14421 emul="${emul}ltsmip" 14422 ;; 14423 esac 14424 case `$FILECMD conftest.$ac_objext` in 14425 *N32*) 14426 emul="${emul}n32" 14427 ;; 14428 esac 14429 LD="${LD-ld} -m $emul" 14430 fi 14431 rm -rf conftest* 14432 ;; 14433 14434 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 14435 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 14436 # Find out what ABI is being produced by ac_compile, and set linker 14437 # options accordingly. Note that the listed cases only cover the 14438 # situations where additional linker options are needed (such as when 14439 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 14440 # vice versa); the common cases where no linker options are needed do 14441 # not appear in the list. 14442 echo 'int i;' > conftest.$ac_ext 14443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14444 (eval $ac_compile) 2>&5 14445 ac_status=$? 14446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14447 test $ac_status = 0; }; then 14448 case `$FILECMD conftest.o` in 14449 *32-bit*) 14450 case $host in 14451 x86_64-*kfreebsd*-gnu) 14452 LD="${LD-ld} -m elf_i386_fbsd" 14453 ;; 14454 x86_64-*linux*) 14455 case `$FILECMD conftest.o` in 14456 *x86-64*) 14457 LD="${LD-ld} -m elf32_x86_64" 14458 ;; 14459 *) 14460 LD="${LD-ld} -m elf_i386" 14461 ;; 14462 esac 14463 ;; 14464 powerpc64le-*linux*) 14465 LD="${LD-ld} -m elf32lppclinux" 14466 ;; 14467 powerpc64-*linux*) 14468 LD="${LD-ld} -m elf32ppclinux" 14469 ;; 14470 s390x-*linux*) 14471 LD="${LD-ld} -m elf_s390" 14472 ;; 14473 sparc64-*linux*) 14474 LD="${LD-ld} -m elf32_sparc" 14475 ;; 14476 esac 14477 ;; 14478 *64-bit*) 14479 case $host in 14480 x86_64-*kfreebsd*-gnu) 14481 LD="${LD-ld} -m elf_x86_64_fbsd" 14482 ;; 14483 x86_64-*linux*) 14484 LD="${LD-ld} -m elf_x86_64" 14485 ;; 14486 powerpcle-*linux*|powerpc64le-*linux*) 14487 LD="${LD-ld} -m elf64lppc" 14488 ;; 14489 powerpc-*linux*|powerpc64-*linux*) 14490 LD="${LD-ld} -m elf64ppc" 14491 ;; 14492 s390*-*linux*|s390*-*tpf*) 14493 LD="${LD-ld} -m elf64_s390" 14494 ;; 14495 sparc*-*linux*) 14496 LD="${LD-ld} -m elf64_sparc" 14497 ;; 14498 esac 14499 ;; 14500 esac 14501 fi 14502 rm -rf conftest* 14503 ;; 14504 14505 *-*-sco3.2v5*) 14506 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14507 SAVE_CFLAGS=$CFLAGS 14508 CFLAGS="$CFLAGS -belf" 14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14510 printf %s "checking whether the C compiler needs -belf... " >&6; } 14511 if test ${lt_cv_cc_needs_belf+y} 14512 then : 14513 printf %s "(cached) " >&6 14514 else case e in #( 14515 e) ac_ext=c 14516 ac_cpp='$CPP $CPPFLAGS' 14517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14519 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14520 14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522 /* end confdefs.h. */ 14523 14524 int 14525 main (void) 14526 { 14527 14528 ; 14529 return 0; 14530 } 14531 _ACEOF 14532 if ac_fn_c_try_link "$LINENO" 14533 then : 14534 lt_cv_cc_needs_belf=yes 14535 else case e in #( 14536 e) lt_cv_cc_needs_belf=no ;; 14537 esac 14538 fi 14539 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14540 conftest$ac_exeext conftest.$ac_ext 14541 ac_ext=c 14542 ac_cpp='$CPP $CPPFLAGS' 14543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14545 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14546 ;; 14547 esac 14548 fi 14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14550 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14551 if test yes != "$lt_cv_cc_needs_belf"; then 14552 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14553 CFLAGS=$SAVE_CFLAGS 14554 fi 14555 ;; 14556 *-*solaris*) 14557 # Find out what ABI is being produced by ac_compile, and set linker 14558 # options accordingly. 14559 echo 'int i;' > conftest.$ac_ext 14560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14561 (eval $ac_compile) 2>&5 14562 ac_status=$? 14563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14564 test $ac_status = 0; }; then 14565 case `$FILECMD conftest.o` in 14566 *64-bit*) 14567 case $lt_cv_prog_gnu_ld in 14568 yes*) 14569 case $host in 14570 i?86-*-solaris*|x86_64-*-solaris*) 14571 LD="${LD-ld} -m elf_x86_64" 14572 ;; 14573 sparc*-*-solaris*) 14574 LD="${LD-ld} -m elf64_sparc" 14575 ;; 14576 esac 14577 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14578 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14579 LD=${LD-ld}_sol2 14580 fi 14581 ;; 14582 *) 14583 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14584 LD="${LD-ld} -64" 14585 fi 14586 ;; 14587 esac 14588 ;; 14589 esac 14590 fi 14591 rm -rf conftest* 14592 ;; 14593 esac 14594 14595 need_locks=$enable_libtool_lock 14596 14597 if test -n "$ac_tool_prefix"; then 14598 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14599 set dummy ${ac_tool_prefix}mt; ac_word=$2 14600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14601 printf %s "checking for $ac_word... " >&6; } 14602 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14603 then : 14604 printf %s "(cached) " >&6 14605 else case e in #( 14606 e) if test -n "$MANIFEST_TOOL"; then 14607 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14608 else 14609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14610 for as_dir in $PATH 14611 do 14612 IFS=$as_save_IFS 14613 case $as_dir in #((( 14614 '') as_dir=./ ;; 14615 */) ;; 14616 *) as_dir=$as_dir/ ;; 14617 esac 14618 for ac_exec_ext in '' $ac_executable_extensions; do 14619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14620 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14622 break 2 14623 fi 14624 done 14625 done 14626 IFS=$as_save_IFS 14627 14628 fi ;; 14629 esac 14630 fi 14631 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14632 if test -n "$MANIFEST_TOOL"; then 14633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14634 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14635 else 14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14637 printf "%s\n" "no" >&6; } 14638 fi 14639 14640 14641 fi 14642 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14643 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14644 # Extract the first word of "mt", so it can be a program name with args. 14645 set dummy mt; ac_word=$2 14646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14647 printf %s "checking for $ac_word... " >&6; } 14648 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14649 then : 14650 printf %s "(cached) " >&6 14651 else case e in #( 14652 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 14653 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14654 else 14655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14656 for as_dir in $PATH 14657 do 14658 IFS=$as_save_IFS 14659 case $as_dir in #((( 14660 '') as_dir=./ ;; 14661 */) ;; 14662 *) as_dir=$as_dir/ ;; 14663 esac 14664 for ac_exec_ext in '' $ac_executable_extensions; do 14665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14666 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14668 break 2 14669 fi 14670 done 14671 done 14672 IFS=$as_save_IFS 14673 14674 fi ;; 14675 esac 14676 fi 14677 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14678 if test -n "$ac_ct_MANIFEST_TOOL"; then 14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14680 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14681 else 14682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14683 printf "%s\n" "no" >&6; } 14684 fi 14685 14686 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14687 MANIFEST_TOOL=":" 14688 else 14689 case $cross_compiling:$ac_tool_warned in 14690 yes:) 14691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14692 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14693 ac_tool_warned=yes ;; 14694 esac 14695 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14696 fi 14697 else 14698 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14699 fi 14700 14701 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14703 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14704 if test ${lt_cv_path_mainfest_tool+y} 14705 then : 14706 printf %s "(cached) " >&6 14707 else case e in #( 14708 e) lt_cv_path_mainfest_tool=no 14709 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14710 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14711 cat conftest.err >&5 14712 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14713 lt_cv_path_mainfest_tool=yes 14714 fi 14715 rm -f conftest* ;; 14716 esac 14717 fi 14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14719 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14720 if test yes != "$lt_cv_path_mainfest_tool"; then 14721 MANIFEST_TOOL=: 14722 fi 14723 14724 14725 14726 14727 14728 14729 case $host_os in 14730 rhapsody* | darwin*) 14731 if test -n "$ac_tool_prefix"; then 14732 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14733 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14735 printf %s "checking for $ac_word... " >&6; } 14736 if test ${ac_cv_prog_DSYMUTIL+y} 14737 then : 14738 printf %s "(cached) " >&6 14739 else case e in #( 14740 e) if test -n "$DSYMUTIL"; then 14741 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14742 else 14743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14744 for as_dir in $PATH 14745 do 14746 IFS=$as_save_IFS 14747 case $as_dir in #((( 14748 '') as_dir=./ ;; 14749 */) ;; 14750 *) as_dir=$as_dir/ ;; 14751 esac 14752 for ac_exec_ext in '' $ac_executable_extensions; do 14753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14754 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14756 break 2 14757 fi 14758 done 14759 done 14760 IFS=$as_save_IFS 14761 14762 fi ;; 14763 esac 14764 fi 14765 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14766 if test -n "$DSYMUTIL"; then 14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14768 printf "%s\n" "$DSYMUTIL" >&6; } 14769 else 14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14771 printf "%s\n" "no" >&6; } 14772 fi 14773 14774 14775 fi 14776 if test -z "$ac_cv_prog_DSYMUTIL"; then 14777 ac_ct_DSYMUTIL=$DSYMUTIL 14778 # Extract the first word of "dsymutil", so it can be a program name with args. 14779 set dummy dsymutil; ac_word=$2 14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14781 printf %s "checking for $ac_word... " >&6; } 14782 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14783 then : 14784 printf %s "(cached) " >&6 14785 else case e in #( 14786 e) if test -n "$ac_ct_DSYMUTIL"; then 14787 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14788 else 14789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14790 for as_dir in $PATH 14791 do 14792 IFS=$as_save_IFS 14793 case $as_dir in #((( 14794 '') as_dir=./ ;; 14795 */) ;; 14796 *) as_dir=$as_dir/ ;; 14797 esac 14798 for ac_exec_ext in '' $ac_executable_extensions; do 14799 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14800 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14801 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14802 break 2 14803 fi 14804 done 14805 done 14806 IFS=$as_save_IFS 14807 14808 fi ;; 14809 esac 14810 fi 14811 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14812 if test -n "$ac_ct_DSYMUTIL"; then 14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14814 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14815 else 14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14817 printf "%s\n" "no" >&6; } 14818 fi 14819 14820 if test "x$ac_ct_DSYMUTIL" = x; then 14821 DSYMUTIL=":" 14822 else 14823 case $cross_compiling:$ac_tool_warned in 14824 yes:) 14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14826 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14827 ac_tool_warned=yes ;; 14828 esac 14829 DSYMUTIL=$ac_ct_DSYMUTIL 14830 fi 14831 else 14832 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14833 fi 14834 14835 if test -n "$ac_tool_prefix"; then 14836 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14837 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14839 printf %s "checking for $ac_word... " >&6; } 14840 if test ${ac_cv_prog_NMEDIT+y} 14841 then : 14842 printf %s "(cached) " >&6 14843 else case e in #( 14844 e) if test -n "$NMEDIT"; then 14845 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14846 else 14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14848 for as_dir in $PATH 14849 do 14850 IFS=$as_save_IFS 14851 case $as_dir in #((( 14852 '') as_dir=./ ;; 14853 */) ;; 14854 *) as_dir=$as_dir/ ;; 14855 esac 14856 for ac_exec_ext in '' $ac_executable_extensions; do 14857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14858 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14860 break 2 14861 fi 14862 done 14863 done 14864 IFS=$as_save_IFS 14865 14866 fi ;; 14867 esac 14868 fi 14869 NMEDIT=$ac_cv_prog_NMEDIT 14870 if test -n "$NMEDIT"; then 14871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14872 printf "%s\n" "$NMEDIT" >&6; } 14873 else 14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14875 printf "%s\n" "no" >&6; } 14876 fi 14877 14878 14879 fi 14880 if test -z "$ac_cv_prog_NMEDIT"; then 14881 ac_ct_NMEDIT=$NMEDIT 14882 # Extract the first word of "nmedit", so it can be a program name with args. 14883 set dummy nmedit; ac_word=$2 14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14885 printf %s "checking for $ac_word... " >&6; } 14886 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14887 then : 14888 printf %s "(cached) " >&6 14889 else case e in #( 14890 e) if test -n "$ac_ct_NMEDIT"; then 14891 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14892 else 14893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14894 for as_dir in $PATH 14895 do 14896 IFS=$as_save_IFS 14897 case $as_dir in #((( 14898 '') as_dir=./ ;; 14899 */) ;; 14900 *) as_dir=$as_dir/ ;; 14901 esac 14902 for ac_exec_ext in '' $ac_executable_extensions; do 14903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14904 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14906 break 2 14907 fi 14908 done 14909 done 14910 IFS=$as_save_IFS 14911 14912 fi ;; 14913 esac 14914 fi 14915 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14916 if test -n "$ac_ct_NMEDIT"; then 14917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14918 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14919 else 14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14921 printf "%s\n" "no" >&6; } 14922 fi 14923 14924 if test "x$ac_ct_NMEDIT" = x; then 14925 NMEDIT=":" 14926 else 14927 case $cross_compiling:$ac_tool_warned in 14928 yes:) 14929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14930 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14931 ac_tool_warned=yes ;; 14932 esac 14933 NMEDIT=$ac_ct_NMEDIT 14934 fi 14935 else 14936 NMEDIT="$ac_cv_prog_NMEDIT" 14937 fi 14938 14939 if test -n "$ac_tool_prefix"; then 14940 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14941 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14943 printf %s "checking for $ac_word... " >&6; } 14944 if test ${ac_cv_prog_LIPO+y} 14945 then : 14946 printf %s "(cached) " >&6 14947 else case e in #( 14948 e) if test -n "$LIPO"; then 14949 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14950 else 14951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14952 for as_dir in $PATH 14953 do 14954 IFS=$as_save_IFS 14955 case $as_dir in #((( 14956 '') as_dir=./ ;; 14957 */) ;; 14958 *) as_dir=$as_dir/ ;; 14959 esac 14960 for ac_exec_ext in '' $ac_executable_extensions; do 14961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14962 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14964 break 2 14965 fi 14966 done 14967 done 14968 IFS=$as_save_IFS 14969 14970 fi ;; 14971 esac 14972 fi 14973 LIPO=$ac_cv_prog_LIPO 14974 if test -n "$LIPO"; then 14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14976 printf "%s\n" "$LIPO" >&6; } 14977 else 14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14979 printf "%s\n" "no" >&6; } 14980 fi 14981 14982 14983 fi 14984 if test -z "$ac_cv_prog_LIPO"; then 14985 ac_ct_LIPO=$LIPO 14986 # Extract the first word of "lipo", so it can be a program name with args. 14987 set dummy lipo; ac_word=$2 14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14989 printf %s "checking for $ac_word... " >&6; } 14990 if test ${ac_cv_prog_ac_ct_LIPO+y} 14991 then : 14992 printf %s "(cached) " >&6 14993 else case e in #( 14994 e) if test -n "$ac_ct_LIPO"; then 14995 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14996 else 14997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14998 for as_dir in $PATH 14999 do 15000 IFS=$as_save_IFS 15001 case $as_dir in #((( 15002 '') as_dir=./ ;; 15003 */) ;; 15004 *) as_dir=$as_dir/ ;; 15005 esac 15006 for ac_exec_ext in '' $ac_executable_extensions; do 15007 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15008 ac_cv_prog_ac_ct_LIPO="lipo" 15009 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15010 break 2 15011 fi 15012 done 15013 done 15014 IFS=$as_save_IFS 15015 15016 fi ;; 15017 esac 15018 fi 15019 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 15020 if test -n "$ac_ct_LIPO"; then 15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 15022 printf "%s\n" "$ac_ct_LIPO" >&6; } 15023 else 15024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15025 printf "%s\n" "no" >&6; } 15026 fi 15027 15028 if test "x$ac_ct_LIPO" = x; then 15029 LIPO=":" 15030 else 15031 case $cross_compiling:$ac_tool_warned in 15032 yes:) 15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15034 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15035 ac_tool_warned=yes ;; 15036 esac 15037 LIPO=$ac_ct_LIPO 15038 fi 15039 else 15040 LIPO="$ac_cv_prog_LIPO" 15041 fi 15042 15043 if test -n "$ac_tool_prefix"; then 15044 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 15045 set dummy ${ac_tool_prefix}otool; ac_word=$2 15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15047 printf %s "checking for $ac_word... " >&6; } 15048 if test ${ac_cv_prog_OTOOL+y} 15049 then : 15050 printf %s "(cached) " >&6 15051 else case e in #( 15052 e) if test -n "$OTOOL"; then 15053 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 15054 else 15055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15056 for as_dir in $PATH 15057 do 15058 IFS=$as_save_IFS 15059 case $as_dir in #((( 15060 '') as_dir=./ ;; 15061 */) ;; 15062 *) as_dir=$as_dir/ ;; 15063 esac 15064 for ac_exec_ext in '' $ac_executable_extensions; do 15065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15066 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 15067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15068 break 2 15069 fi 15070 done 15071 done 15072 IFS=$as_save_IFS 15073 15074 fi ;; 15075 esac 15076 fi 15077 OTOOL=$ac_cv_prog_OTOOL 15078 if test -n "$OTOOL"; then 15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 15080 printf "%s\n" "$OTOOL" >&6; } 15081 else 15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15083 printf "%s\n" "no" >&6; } 15084 fi 15085 15086 15087 fi 15088 if test -z "$ac_cv_prog_OTOOL"; then 15089 ac_ct_OTOOL=$OTOOL 15090 # Extract the first word of "otool", so it can be a program name with args. 15091 set dummy otool; ac_word=$2 15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15093 printf %s "checking for $ac_word... " >&6; } 15094 if test ${ac_cv_prog_ac_ct_OTOOL+y} 15095 then : 15096 printf %s "(cached) " >&6 15097 else case e in #( 15098 e) if test -n "$ac_ct_OTOOL"; then 15099 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 15100 else 15101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15102 for as_dir in $PATH 15103 do 15104 IFS=$as_save_IFS 15105 case $as_dir in #((( 15106 '') as_dir=./ ;; 15107 */) ;; 15108 *) as_dir=$as_dir/ ;; 15109 esac 15110 for ac_exec_ext in '' $ac_executable_extensions; do 15111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15112 ac_cv_prog_ac_ct_OTOOL="otool" 15113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15114 break 2 15115 fi 15116 done 15117 done 15118 IFS=$as_save_IFS 15119 15120 fi ;; 15121 esac 15122 fi 15123 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 15124 if test -n "$ac_ct_OTOOL"; then 15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 15126 printf "%s\n" "$ac_ct_OTOOL" >&6; } 15127 else 15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15129 printf "%s\n" "no" >&6; } 15130 fi 15131 15132 if test "x$ac_ct_OTOOL" = x; then 15133 OTOOL=":" 15134 else 15135 case $cross_compiling:$ac_tool_warned in 15136 yes:) 15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15138 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15139 ac_tool_warned=yes ;; 15140 esac 15141 OTOOL=$ac_ct_OTOOL 15142 fi 15143 else 15144 OTOOL="$ac_cv_prog_OTOOL" 15145 fi 15146 15147 if test -n "$ac_tool_prefix"; then 15148 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 15149 set dummy ${ac_tool_prefix}otool64; ac_word=$2 15150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15151 printf %s "checking for $ac_word... " >&6; } 15152 if test ${ac_cv_prog_OTOOL64+y} 15153 then : 15154 printf %s "(cached) " >&6 15155 else case e in #( 15156 e) if test -n "$OTOOL64"; then 15157 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 15158 else 15159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15160 for as_dir in $PATH 15161 do 15162 IFS=$as_save_IFS 15163 case $as_dir in #((( 15164 '') as_dir=./ ;; 15165 */) ;; 15166 *) as_dir=$as_dir/ ;; 15167 esac 15168 for ac_exec_ext in '' $ac_executable_extensions; do 15169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15170 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 15171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15172 break 2 15173 fi 15174 done 15175 done 15176 IFS=$as_save_IFS 15177 15178 fi ;; 15179 esac 15180 fi 15181 OTOOL64=$ac_cv_prog_OTOOL64 15182 if test -n "$OTOOL64"; then 15183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 15184 printf "%s\n" "$OTOOL64" >&6; } 15185 else 15186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15187 printf "%s\n" "no" >&6; } 15188 fi 15189 15190 15191 fi 15192 if test -z "$ac_cv_prog_OTOOL64"; then 15193 ac_ct_OTOOL64=$OTOOL64 15194 # Extract the first word of "otool64", so it can be a program name with args. 15195 set dummy otool64; ac_word=$2 15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15197 printf %s "checking for $ac_word... " >&6; } 15198 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 15199 then : 15200 printf %s "(cached) " >&6 15201 else case e in #( 15202 e) if test -n "$ac_ct_OTOOL64"; then 15203 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 15204 else 15205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15206 for as_dir in $PATH 15207 do 15208 IFS=$as_save_IFS 15209 case $as_dir in #((( 15210 '') as_dir=./ ;; 15211 */) ;; 15212 *) as_dir=$as_dir/ ;; 15213 esac 15214 for ac_exec_ext in '' $ac_executable_extensions; do 15215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 15216 ac_cv_prog_ac_ct_OTOOL64="otool64" 15217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 15218 break 2 15219 fi 15220 done 15221 done 15222 IFS=$as_save_IFS 15223 15224 fi ;; 15225 esac 15226 fi 15227 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 15228 if test -n "$ac_ct_OTOOL64"; then 15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 15230 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 15231 else 15232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15233 printf "%s\n" "no" >&6; } 15234 fi 15235 15236 if test "x$ac_ct_OTOOL64" = x; then 15237 OTOOL64=":" 15238 else 15239 case $cross_compiling:$ac_tool_warned in 15240 yes:) 15241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15243 ac_tool_warned=yes ;; 15244 esac 15245 OTOOL64=$ac_ct_OTOOL64 15246 fi 15247 else 15248 OTOOL64="$ac_cv_prog_OTOOL64" 15249 fi 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 15278 printf %s "checking for -single_module linker flag... " >&6; } 15279 if test ${lt_cv_apple_cc_single_mod+y} 15280 then : 15281 printf %s "(cached) " >&6 15282 else case e in #( 15283 e) lt_cv_apple_cc_single_mod=no 15284 if test -z "$LT_MULTI_MODULE"; then 15285 # By default we will add the -single_module flag. You can override 15286 # by either setting the environment variable LT_MULTI_MODULE 15287 # non-empty at configure time, or by adding -multi_module to the 15288 # link flags. 15289 rm -rf libconftest.dylib* 15290 echo "int foo(void){return 1;}" > conftest.c 15291 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15292 -dynamiclib -Wl,-single_module conftest.c" >&5 15293 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 15294 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 15295 _lt_result=$? 15296 # If there is a non-empty error log, and "single_module" 15297 # appears in it, assume the flag caused a linker warning 15298 if test -s conftest.err && $GREP single_module conftest.err; then 15299 cat conftest.err >&5 15300 # Otherwise, if the output was created with a 0 exit code from 15301 # the compiler, it worked. 15302 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 15303 lt_cv_apple_cc_single_mod=yes 15304 else 15305 cat conftest.err >&5 15306 fi 15307 rm -rf libconftest.dylib* 15308 rm -f conftest.* 15309 fi ;; 15310 esac 15311 fi 15312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 15313 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 15314 15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 15316 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 15317 if test ${lt_cv_ld_exported_symbols_list+y} 15318 then : 15319 printf %s "(cached) " >&6 15320 else case e in #( 15321 e) lt_cv_ld_exported_symbols_list=no 15322 save_LDFLAGS=$LDFLAGS 15323 echo "_main" > conftest.sym 15324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15326 /* end confdefs.h. */ 15327 15328 int 15329 main (void) 15330 { 15331 15332 ; 15333 return 0; 15334 } 15335 _ACEOF 15336 if ac_fn_c_try_link "$LINENO" 15337 then : 15338 lt_cv_ld_exported_symbols_list=yes 15339 else case e in #( 15340 e) lt_cv_ld_exported_symbols_list=no ;; 15341 esac 15342 fi 15343 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15344 conftest$ac_exeext conftest.$ac_ext 15345 LDFLAGS=$save_LDFLAGS 15346 ;; 15347 esac 15348 fi 15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 15350 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 15351 15352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 15353 printf %s "checking for -force_load linker flag... " >&6; } 15354 if test ${lt_cv_ld_force_load+y} 15355 then : 15356 printf %s "(cached) " >&6 15357 else case e in #( 15358 e) lt_cv_ld_force_load=no 15359 cat > conftest.c << _LT_EOF 15360 int forced_loaded() { return 2;} 15361 _LT_EOF 15362 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 15363 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 15364 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 15365 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 15366 echo "$RANLIB libconftest.a" >&5 15367 $RANLIB libconftest.a 2>&5 15368 cat > conftest.c << _LT_EOF 15369 int main() { return 0;} 15370 _LT_EOF 15371 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 15372 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 15373 _lt_result=$? 15374 if test -s conftest.err && $GREP force_load conftest.err; then 15375 cat conftest.err >&5 15376 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 15377 lt_cv_ld_force_load=yes 15378 else 15379 cat conftest.err >&5 15380 fi 15381 rm -f conftest.err libconftest.a conftest conftest.c 15382 rm -rf conftest.dSYM 15383 ;; 15384 esac 15385 fi 15386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 15387 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 15388 case $host_os in 15389 rhapsody* | darwin1.[012]) 15390 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 15391 darwin1.*) 15392 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15393 darwin*) 15394 case $MACOSX_DEPLOYMENT_TARGET,$host in 15395 10.[012],*|,*powerpc*-darwin[5-8]*) 15396 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 15397 *) 15398 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 15399 esac 15400 ;; 15401 esac 15402 if test yes = "$lt_cv_apple_cc_single_mod"; then 15403 _lt_dar_single_mod='$single_module' 15404 fi 15405 if test yes = "$lt_cv_ld_exported_symbols_list"; then 15406 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 15407 else 15408 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 15409 fi 15410 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 15411 _lt_dsymutil='~$DSYMUTIL $lib || :' 15412 else 15413 _lt_dsymutil= 15414 fi 15415 ;; 15416 esac 15417 15418 # func_munge_path_list VARIABLE PATH 15419 # ----------------------------------- 15420 # VARIABLE is name of variable containing _space_ separated list of 15421 # directories to be munged by the contents of PATH, which is string 15422 # having a format: 15423 # "DIR[:DIR]:" 15424 # string "DIR[ DIR]" will be prepended to VARIABLE 15425 # ":DIR[:DIR]" 15426 # string "DIR[ DIR]" will be appended to VARIABLE 15427 # "DIRP[:DIRP]::[DIRA:]DIRA" 15428 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15429 # "DIRA[ DIRA]" will be appended to VARIABLE 15430 # "DIR[:DIR]" 15431 # VARIABLE will be replaced by "DIR[ DIR]" 15432 func_munge_path_list () 15433 { 15434 case x$2 in 15435 x) 15436 ;; 15437 *:) 15438 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15439 ;; 15440 x:*) 15441 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15442 ;; 15443 *::*) 15444 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15445 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15446 ;; 15447 *) 15448 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15449 ;; 15450 esac 15451 } 15452 15453 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15454 " 15455 if test "x$ac_cv_header_dlfcn_h" = xyes 15456 then : 15457 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 15458 15459 fi 15460 15461 15462 15463 15464 15465 # Set options 15466 # Check whether --enable-static was given. 15467 if test ${enable_static+y} 15468 then : 15469 enableval=$enable_static; p=${PACKAGE-default} 15470 case $enableval in 15471 yes) enable_static=yes ;; 15472 no) enable_static=no ;; 15473 *) 15474 enable_static=no 15475 # Look at the argument we got. We use all the common list separators. 15476 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15477 for pkg in $enableval; do 15478 IFS=$lt_save_ifs 15479 if test "X$pkg" = "X$p"; then 15480 enable_static=yes 15481 fi 15482 done 15483 IFS=$lt_save_ifs 15484 ;; 15485 esac 15486 else case e in #( 15487 e) enable_static=no ;; 15488 esac 15489 fi 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 enable_dlopen=no 15501 15502 15503 enable_win32_dll=no 15504 15505 15506 # Check whether --enable-shared was given. 15507 if test ${enable_shared+y} 15508 then : 15509 enableval=$enable_shared; p=${PACKAGE-default} 15510 case $enableval in 15511 yes) enable_shared=yes ;; 15512 no) enable_shared=no ;; 15513 *) 15514 enable_shared=no 15515 # Look at the argument we got. We use all the common list separators. 15516 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15517 for pkg in $enableval; do 15518 IFS=$lt_save_ifs 15519 if test "X$pkg" = "X$p"; then 15520 enable_shared=yes 15521 fi 15522 done 15523 IFS=$lt_save_ifs 15524 ;; 15525 esac 15526 else case e in #( 15527 e) enable_shared=yes ;; 15528 esac 15529 fi 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 # Check whether --with-pic was given. 15542 if test ${with_pic+y} 15543 then : 15544 withval=$with_pic; lt_p=${PACKAGE-default} 15545 case $withval in 15546 yes|no) pic_mode=$withval ;; 15547 *) 15548 pic_mode=default 15549 # Look at the argument we got. We use all the common list separators. 15550 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15551 for lt_pkg in $withval; do 15552 IFS=$lt_save_ifs 15553 if test "X$lt_pkg" = "X$lt_p"; then 15554 pic_mode=yes 15555 fi 15556 done 15557 IFS=$lt_save_ifs 15558 ;; 15559 esac 15560 else case e in #( 15561 e) pic_mode=default ;; 15562 esac 15563 fi 15564 15565 15566 15567 15568 15569 15570 15571 15572 # Check whether --enable-fast-install was given. 15573 if test ${enable_fast_install+y} 15574 then : 15575 enableval=$enable_fast_install; p=${PACKAGE-default} 15576 case $enableval in 15577 yes) enable_fast_install=yes ;; 15578 no) enable_fast_install=no ;; 15579 *) 15580 enable_fast_install=no 15581 # Look at the argument we got. We use all the common list separators. 15582 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15583 for pkg in $enableval; do 15584 IFS=$lt_save_ifs 15585 if test "X$pkg" = "X$p"; then 15586 enable_fast_install=yes 15587 fi 15588 done 15589 IFS=$lt_save_ifs 15590 ;; 15591 esac 15592 else case e in #( 15593 e) enable_fast_install=yes ;; 15594 esac 15595 fi 15596 15597 15598 15599 15600 15601 15602 15603 15604 shared_archive_member_spec= 15605 case $host,$enable_shared in 15606 power*-*-aix[5-9]*,yes) 15607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15608 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15609 15610 # Check whether --with-aix-soname was given. 15611 if test ${with_aix_soname+y} 15612 then : 15613 withval=$with_aix_soname; case $withval in 15614 aix|svr4|both) 15615 ;; 15616 *) 15617 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15618 ;; 15619 esac 15620 lt_cv_with_aix_soname=$with_aix_soname 15621 else case e in #( 15622 e) if test ${lt_cv_with_aix_soname+y} 15623 then : 15624 printf %s "(cached) " >&6 15625 else case e in #( 15626 e) lt_cv_with_aix_soname=aix ;; 15627 esac 15628 fi 15629 15630 with_aix_soname=$lt_cv_with_aix_soname ;; 15631 esac 15632 fi 15633 15634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15635 printf "%s\n" "$with_aix_soname" >&6; } 15636 if test aix != "$with_aix_soname"; then 15637 # For the AIX way of multilib, we name the shared archive member 15638 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15639 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15640 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15641 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15642 if test 64 = "${OBJECT_MODE-32}"; then 15643 shared_archive_member_spec=shr_64 15644 else 15645 shared_archive_member_spec=shr 15646 fi 15647 fi 15648 ;; 15649 *) 15650 with_aix_soname=aix 15651 ;; 15652 esac 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 # This can be used to rebuild libtool when needed 15664 LIBTOOL_DEPS=$ltmain 15665 15666 # Always use our own libtool. 15667 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 test -z "$LN_S" && LN_S="ln -s" 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 if test -n "${ZSH_VERSION+set}"; then 15714 setopt NO_GLOB_SUBST 15715 fi 15716 15717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15718 printf %s "checking for objdir... " >&6; } 15719 if test ${lt_cv_objdir+y} 15720 then : 15721 printf %s "(cached) " >&6 15722 else case e in #( 15723 e) rm -f .libs 2>/dev/null 15724 mkdir .libs 2>/dev/null 15725 if test -d .libs; then 15726 lt_cv_objdir=.libs 15727 else 15728 # MS-DOS does not allow filenames that begin with a dot. 15729 lt_cv_objdir=_libs 15730 fi 15731 rmdir .libs 2>/dev/null ;; 15732 esac 15733 fi 15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15735 printf "%s\n" "$lt_cv_objdir" >&6; } 15736 objdir=$lt_cv_objdir 15737 15738 15739 15740 15741 15742 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15743 15744 15745 15746 15747 case $host_os in 15748 aix3*) 15749 # AIX sometimes has problems with the GCC collect2 program. For some 15750 # reason, if we set the COLLECT_NAMES environment variable, the problems 15751 # vanish in a puff of smoke. 15752 if test set != "${COLLECT_NAMES+set}"; then 15753 COLLECT_NAMES= 15754 export COLLECT_NAMES 15755 fi 15756 ;; 15757 esac 15758 15759 # Global variables: 15760 ofile=libtool 15761 can_build_shared=yes 15762 15763 # All known linkers require a '.a' archive for static linking (except MSVC and 15764 # ICC, which need '.lib'). 15765 libext=a 15766 15767 with_gnu_ld=$lt_cv_prog_gnu_ld 15768 15769 old_CC=$CC 15770 old_CFLAGS=$CFLAGS 15771 15772 # Set sane defaults for various variables 15773 test -z "$CC" && CC=cc 15774 test -z "$LTCC" && LTCC=$CC 15775 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15776 test -z "$LD" && LD=ld 15777 test -z "$ac_objext" && ac_objext=o 15778 15779 func_cc_basename $compiler 15780 cc_basename=$func_cc_basename_result 15781 15782 15783 # Only perform the check for file, if the check method requires it 15784 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15785 case $deplibs_check_method in 15786 file_magic*) 15787 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15789 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15790 if test ${lt_cv_path_MAGIC_CMD+y} 15791 then : 15792 printf %s "(cached) " >&6 15793 else case e in #( 15794 e) case $MAGIC_CMD in 15795 [\\/*] | ?:[\\/]*) 15796 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15797 ;; 15798 *) 15799 lt_save_MAGIC_CMD=$MAGIC_CMD 15800 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15801 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15802 for ac_dir in $ac_dummy; do 15803 IFS=$lt_save_ifs 15804 test -z "$ac_dir" && ac_dir=. 15805 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15806 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15807 if test -n "$file_magic_test_file"; then 15808 case $deplibs_check_method in 15809 "file_magic "*) 15810 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15811 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15812 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15813 $EGREP "$file_magic_regex" > /dev/null; then 15814 : 15815 else 15816 cat <<_LT_EOF 1>&2 15817 15818 *** Warning: the command libtool uses to detect shared libraries, 15819 *** $file_magic_cmd, produces output that libtool cannot recognize. 15820 *** The result is that libtool may fail to recognize shared libraries 15821 *** as such. This will affect the creation of libtool libraries that 15822 *** depend on shared libraries, but programs linked with such libtool 15823 *** libraries will work regardless of this problem. Nevertheless, you 15824 *** may want to report the problem to your system manager and/or to 15825 *** bug-libtool@gnu.org 15826 15827 _LT_EOF 15828 fi ;; 15829 esac 15830 fi 15831 break 15832 fi 15833 done 15834 IFS=$lt_save_ifs 15835 MAGIC_CMD=$lt_save_MAGIC_CMD 15836 ;; 15837 esac ;; 15838 esac 15839 fi 15840 15841 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15842 if test -n "$MAGIC_CMD"; then 15843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15844 printf "%s\n" "$MAGIC_CMD" >&6; } 15845 else 15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15847 printf "%s\n" "no" >&6; } 15848 fi 15849 15850 15851 15852 15853 15854 if test -z "$lt_cv_path_MAGIC_CMD"; then 15855 if test -n "$ac_tool_prefix"; then 15856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15857 printf %s "checking for file... " >&6; } 15858 if test ${lt_cv_path_MAGIC_CMD+y} 15859 then : 15860 printf %s "(cached) " >&6 15861 else case e in #( 15862 e) case $MAGIC_CMD in 15863 [\\/*] | ?:[\\/]*) 15864 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15865 ;; 15866 *) 15867 lt_save_MAGIC_CMD=$MAGIC_CMD 15868 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15869 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15870 for ac_dir in $ac_dummy; do 15871 IFS=$lt_save_ifs 15872 test -z "$ac_dir" && ac_dir=. 15873 if test -f "$ac_dir/file"; then 15874 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15875 if test -n "$file_magic_test_file"; then 15876 case $deplibs_check_method in 15877 "file_magic "*) 15878 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15879 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15880 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15881 $EGREP "$file_magic_regex" > /dev/null; then 15882 : 15883 else 15884 cat <<_LT_EOF 1>&2 15885 15886 *** Warning: the command libtool uses to detect shared libraries, 15887 *** $file_magic_cmd, produces output that libtool cannot recognize. 15888 *** The result is that libtool may fail to recognize shared libraries 15889 *** as such. This will affect the creation of libtool libraries that 15890 *** depend on shared libraries, but programs linked with such libtool 15891 *** libraries will work regardless of this problem. Nevertheless, you 15892 *** may want to report the problem to your system manager and/or to 15893 *** bug-libtool@gnu.org 15894 15895 _LT_EOF 15896 fi ;; 15897 esac 15898 fi 15899 break 15900 fi 15901 done 15902 IFS=$lt_save_ifs 15903 MAGIC_CMD=$lt_save_MAGIC_CMD 15904 ;; 15905 esac ;; 15906 esac 15907 fi 15908 15909 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15910 if test -n "$MAGIC_CMD"; then 15911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15912 printf "%s\n" "$MAGIC_CMD" >&6; } 15913 else 15914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15915 printf "%s\n" "no" >&6; } 15916 fi 15917 15918 15919 else 15920 MAGIC_CMD=: 15921 fi 15922 fi 15923 15924 fi 15925 ;; 15926 esac 15927 15928 # Use C for the default configuration in the libtool script 15929 15930 lt_save_CC=$CC 15931 ac_ext=c 15932 ac_cpp='$CPP $CPPFLAGS' 15933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15935 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15936 15937 15938 # Source file extension for C test sources. 15939 ac_ext=c 15940 15941 # Object file extension for compiled C test sources. 15942 objext=o 15943 objext=$objext 15944 15945 # Code to be used in simple compile tests 15946 lt_simple_compile_test_code="int some_variable = 0;" 15947 15948 # Code to be used in simple link tests 15949 lt_simple_link_test_code='int main(){return(0);}' 15950 15951 15952 15953 15954 15955 15956 15957 # If no C compiler was specified, use CC. 15958 LTCC=${LTCC-"$CC"} 15959 15960 # If no C compiler flags were specified, use CFLAGS. 15961 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15962 15963 # Allow CC to be a program name with arguments. 15964 compiler=$CC 15965 15966 # Save the default compiler, since it gets overwritten when the other 15967 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15968 compiler_DEFAULT=$CC 15969 15970 # save warnings/boilerplate of simple test code 15971 ac_outfile=conftest.$ac_objext 15972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15974 _lt_compiler_boilerplate=`cat conftest.err` 15975 $RM conftest* 15976 15977 ac_outfile=conftest.$ac_objext 15978 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15980 _lt_linker_boilerplate=`cat conftest.err` 15981 $RM -r conftest* 15982 15983 15984 ## CAVEAT EMPTOR: 15985 ## There is no encapsulation within the following macros, do not change 15986 ## the running order or otherwise move them around unless you know exactly 15987 ## what you are doing... 15988 if test -n "$compiler"; then 15989 15990 lt_prog_compiler_no_builtin_flag= 15991 15992 if test yes = "$GCC"; then 15993 case $cc_basename in 15994 nvcc*) 15995 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15996 *) 15997 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15998 esac 15999 16000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16001 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 16002 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 16003 then : 16004 printf %s "(cached) " >&6 16005 else case e in #( 16006 e) lt_cv_prog_compiler_rtti_exceptions=no 16007 ac_outfile=conftest.$ac_objext 16008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16009 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 16010 # Insert the option either (1) after the last *FLAGS variable, or 16011 # (2) before a word containing "conftest.", or (3) at the end. 16012 # Note that $ac_compile itself does not contain backslashes and begins 16013 # with a dollar sign (not a hyphen), so the echo should work correctly. 16014 # The option is referenced via a variable to avoid confusing sed. 16015 lt_compile=`echo "$ac_compile" | $SED \ 16016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16018 -e 's:$: $lt_compiler_flag:'` 16019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16020 (eval "$lt_compile" 2>conftest.err) 16021 ac_status=$? 16022 cat conftest.err >&5 16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16024 if (exit $ac_status) && test -s "$ac_outfile"; then 16025 # The compiler can only warn and ignore the option if not recognized 16026 # So say no if there are warnings other than the usual output. 16027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16030 lt_cv_prog_compiler_rtti_exceptions=yes 16031 fi 16032 fi 16033 $RM conftest* 16034 ;; 16035 esac 16036 fi 16037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16038 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 16039 16040 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 16041 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 16042 else 16043 : 16044 fi 16045 16046 fi 16047 16048 16049 16050 16051 16052 16053 lt_prog_compiler_wl= 16054 lt_prog_compiler_pic= 16055 lt_prog_compiler_static= 16056 16057 16058 if test yes = "$GCC"; then 16059 lt_prog_compiler_wl='-Wl,' 16060 lt_prog_compiler_static='-static' 16061 16062 case $host_os in 16063 aix*) 16064 # All AIX code is PIC. 16065 if test ia64 = "$host_cpu"; then 16066 # AIX 5 now supports IA64 processor 16067 lt_prog_compiler_static='-Bstatic' 16068 fi 16069 lt_prog_compiler_pic='-fPIC' 16070 ;; 16071 16072 amigaos*) 16073 case $host_cpu in 16074 powerpc) 16075 # see comment about AmigaOS4 .so support 16076 lt_prog_compiler_pic='-fPIC' 16077 ;; 16078 m68k) 16079 # FIXME: we need at least 68020 code to build shared libraries, but 16080 # adding the '-m68020' flag to GCC prevents building anything better, 16081 # like '-m68040'. 16082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 16083 ;; 16084 esac 16085 ;; 16086 16087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16088 # PIC is the default for these OSes. 16089 ;; 16090 16091 mingw* | cygwin* | pw32* | os2* | cegcc*) 16092 # This hack is so that the source file can tell whether it is being 16093 # built for inclusion in a dll (and should export symbols for example). 16094 # Although the cygwin gcc ignores -fPIC, still need this for old-style 16095 # (--disable-auto-import) libraries 16096 lt_prog_compiler_pic='-DDLL_EXPORT' 16097 case $host_os in 16098 os2*) 16099 lt_prog_compiler_static='$wl-static' 16100 ;; 16101 esac 16102 ;; 16103 16104 darwin* | rhapsody*) 16105 # PIC is the default on this platform 16106 # Common symbols not allowed in MH_DYLIB files 16107 lt_prog_compiler_pic='-fno-common' 16108 ;; 16109 16110 haiku*) 16111 # PIC is the default for Haiku. 16112 # The "-static" flag exists, but is broken. 16113 lt_prog_compiler_static= 16114 ;; 16115 16116 hpux*) 16117 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 16118 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 16119 # sets the default TLS model and affects inlining. 16120 case $host_cpu in 16121 hppa*64*) 16122 # +Z the default 16123 ;; 16124 *) 16125 lt_prog_compiler_pic='-fPIC' 16126 ;; 16127 esac 16128 ;; 16129 16130 interix[3-9]*) 16131 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 16132 # Instead, we relocate shared libraries at runtime. 16133 ;; 16134 16135 msdosdjgpp*) 16136 # Just because we use GCC doesn't mean we suddenly get shared libraries 16137 # on systems that don't support them. 16138 lt_prog_compiler_can_build_shared=no 16139 enable_shared=no 16140 ;; 16141 16142 *nto* | *qnx*) 16143 # QNX uses GNU C++, but need to define -shared option too, otherwise 16144 # it will coredump. 16145 lt_prog_compiler_pic='-fPIC -shared' 16146 ;; 16147 16148 sysv4*MP*) 16149 if test -d /usr/nec; then 16150 lt_prog_compiler_pic=-Kconform_pic 16151 fi 16152 ;; 16153 16154 *) 16155 lt_prog_compiler_pic='-fPIC' 16156 ;; 16157 esac 16158 16159 case $cc_basename in 16160 nvcc*) # Cuda Compiler Driver 2.2 16161 lt_prog_compiler_wl='-Xlinker ' 16162 if test -n "$lt_prog_compiler_pic"; then 16163 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 16164 fi 16165 ;; 16166 esac 16167 else 16168 # PORTME Check for flag to pass linker flags through the system compiler. 16169 case $host_os in 16170 aix*) 16171 lt_prog_compiler_wl='-Wl,' 16172 if test ia64 = "$host_cpu"; then 16173 # AIX 5 now supports IA64 processor 16174 lt_prog_compiler_static='-Bstatic' 16175 else 16176 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 16177 fi 16178 ;; 16179 16180 darwin* | rhapsody*) 16181 # PIC is the default on this platform 16182 # Common symbols not allowed in MH_DYLIB files 16183 lt_prog_compiler_pic='-fno-common' 16184 case $cc_basename in 16185 nagfor*) 16186 # NAG Fortran compiler 16187 lt_prog_compiler_wl='-Wl,-Wl,,' 16188 lt_prog_compiler_pic='-PIC' 16189 lt_prog_compiler_static='-Bstatic' 16190 ;; 16191 esac 16192 ;; 16193 16194 mingw* | cygwin* | pw32* | os2* | cegcc*) 16195 # This hack is so that the source file can tell whether it is being 16196 # built for inclusion in a dll (and should export symbols for example). 16197 lt_prog_compiler_pic='-DDLL_EXPORT' 16198 case $host_os in 16199 os2*) 16200 lt_prog_compiler_static='$wl-static' 16201 ;; 16202 esac 16203 ;; 16204 16205 hpux9* | hpux10* | hpux11*) 16206 lt_prog_compiler_wl='-Wl,' 16207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16208 # not for PA HP-UX. 16209 case $host_cpu in 16210 hppa*64*|ia64*) 16211 # +Z the default 16212 ;; 16213 *) 16214 lt_prog_compiler_pic='+Z' 16215 ;; 16216 esac 16217 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16218 lt_prog_compiler_static='$wl-a ${wl}archive' 16219 ;; 16220 16221 irix5* | irix6* | nonstopux*) 16222 lt_prog_compiler_wl='-Wl,' 16223 # PIC (with -KPIC) is the default. 16224 lt_prog_compiler_static='-non_shared' 16225 ;; 16226 16227 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16228 case $cc_basename in 16229 # old Intel for x86_64, which still supported -KPIC. 16230 ecc*) 16231 lt_prog_compiler_wl='-Wl,' 16232 lt_prog_compiler_pic='-KPIC' 16233 lt_prog_compiler_static='-static' 16234 ;; 16235 # icc used to be incompatible with GCC. 16236 # ICC 10 doesn't accept -KPIC any more. 16237 icc* | ifort*) 16238 lt_prog_compiler_wl='-Wl,' 16239 lt_prog_compiler_pic='-fPIC' 16240 lt_prog_compiler_static='-static' 16241 ;; 16242 # Lahey Fortran 8.1. 16243 lf95*) 16244 lt_prog_compiler_wl='-Wl,' 16245 lt_prog_compiler_pic='--shared' 16246 lt_prog_compiler_static='--static' 16247 ;; 16248 nagfor*) 16249 # NAG Fortran compiler 16250 lt_prog_compiler_wl='-Wl,-Wl,,' 16251 lt_prog_compiler_pic='-PIC' 16252 lt_prog_compiler_static='-Bstatic' 16253 ;; 16254 tcc*) 16255 # Fabrice Bellard et al's Tiny C Compiler 16256 lt_prog_compiler_wl='-Wl,' 16257 lt_prog_compiler_pic='-fPIC' 16258 lt_prog_compiler_static='-static' 16259 ;; 16260 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 16261 # Portland Group compilers (*not* the Pentium gcc compiler, 16262 # which looks to be a dead project) 16263 lt_prog_compiler_wl='-Wl,' 16264 lt_prog_compiler_pic='-fpic' 16265 lt_prog_compiler_static='-Bstatic' 16266 ;; 16267 ccc*) 16268 lt_prog_compiler_wl='-Wl,' 16269 # All Alpha code is PIC. 16270 lt_prog_compiler_static='-non_shared' 16271 ;; 16272 xl* | bgxl* | bgf* | mpixl*) 16273 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 16274 lt_prog_compiler_wl='-Wl,' 16275 lt_prog_compiler_pic='-qpic' 16276 lt_prog_compiler_static='-qstaticlink' 16277 ;; 16278 *) 16279 case `$CC -V 2>&1 | $SED 5q` in 16280 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 16281 # Sun Fortran 8.3 passes all unrecognized flags to the linker 16282 lt_prog_compiler_pic='-KPIC' 16283 lt_prog_compiler_static='-Bstatic' 16284 lt_prog_compiler_wl='' 16285 ;; 16286 *Sun\ F* | *Sun*Fortran*) 16287 lt_prog_compiler_pic='-KPIC' 16288 lt_prog_compiler_static='-Bstatic' 16289 lt_prog_compiler_wl='-Qoption ld ' 16290 ;; 16291 *Sun\ C*) 16292 # Sun C 5.9 16293 lt_prog_compiler_pic='-KPIC' 16294 lt_prog_compiler_static='-Bstatic' 16295 lt_prog_compiler_wl='-Wl,' 16296 ;; 16297 *Intel*\ [CF]*Compiler*) 16298 lt_prog_compiler_wl='-Wl,' 16299 lt_prog_compiler_pic='-fPIC' 16300 lt_prog_compiler_static='-static' 16301 ;; 16302 *Portland\ Group*) 16303 lt_prog_compiler_wl='-Wl,' 16304 lt_prog_compiler_pic='-fpic' 16305 lt_prog_compiler_static='-Bstatic' 16306 ;; 16307 esac 16308 ;; 16309 esac 16310 ;; 16311 16312 newsos6) 16313 lt_prog_compiler_pic='-KPIC' 16314 lt_prog_compiler_static='-Bstatic' 16315 ;; 16316 16317 *nto* | *qnx*) 16318 # QNX uses GNU C++, but need to define -shared option too, otherwise 16319 # it will coredump. 16320 lt_prog_compiler_pic='-fPIC -shared' 16321 ;; 16322 16323 osf3* | osf4* | osf5*) 16324 lt_prog_compiler_wl='-Wl,' 16325 # All OSF/1 code is PIC. 16326 lt_prog_compiler_static='-non_shared' 16327 ;; 16328 16329 rdos*) 16330 lt_prog_compiler_static='-non_shared' 16331 ;; 16332 16333 solaris*) 16334 lt_prog_compiler_pic='-KPIC' 16335 lt_prog_compiler_static='-Bstatic' 16336 case $cc_basename in 16337 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 16338 lt_prog_compiler_wl='-Qoption ld ';; 16339 *) 16340 lt_prog_compiler_wl='-Wl,';; 16341 esac 16342 ;; 16343 16344 sunos4*) 16345 lt_prog_compiler_wl='-Qoption ld ' 16346 lt_prog_compiler_pic='-PIC' 16347 lt_prog_compiler_static='-Bstatic' 16348 ;; 16349 16350 sysv4 | sysv4.2uw2* | sysv4.3*) 16351 lt_prog_compiler_wl='-Wl,' 16352 lt_prog_compiler_pic='-KPIC' 16353 lt_prog_compiler_static='-Bstatic' 16354 ;; 16355 16356 sysv4*MP*) 16357 if test -d /usr/nec; then 16358 lt_prog_compiler_pic='-Kconform_pic' 16359 lt_prog_compiler_static='-Bstatic' 16360 fi 16361 ;; 16362 16363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 16364 lt_prog_compiler_wl='-Wl,' 16365 lt_prog_compiler_pic='-KPIC' 16366 lt_prog_compiler_static='-Bstatic' 16367 ;; 16368 16369 unicos*) 16370 lt_prog_compiler_wl='-Wl,' 16371 lt_prog_compiler_can_build_shared=no 16372 ;; 16373 16374 uts4*) 16375 lt_prog_compiler_pic='-pic' 16376 lt_prog_compiler_static='-Bstatic' 16377 ;; 16378 16379 *) 16380 lt_prog_compiler_can_build_shared=no 16381 ;; 16382 esac 16383 fi 16384 16385 case $host_os in 16386 # For platforms that do not support PIC, -DPIC is meaningless: 16387 *djgpp*) 16388 lt_prog_compiler_pic= 16389 ;; 16390 *) 16391 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 16392 ;; 16393 esac 16394 16395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 16396 printf %s "checking for $compiler option to produce PIC... " >&6; } 16397 if test ${lt_cv_prog_compiler_pic+y} 16398 then : 16399 printf %s "(cached) " >&6 16400 else case e in #( 16401 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 16402 esac 16403 fi 16404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 16405 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 16406 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 16407 16408 # 16409 # Check to make sure the PIC flag actually works. 16410 # 16411 if test -n "$lt_prog_compiler_pic"; then 16412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 16413 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 16414 if test ${lt_cv_prog_compiler_pic_works+y} 16415 then : 16416 printf %s "(cached) " >&6 16417 else case e in #( 16418 e) lt_cv_prog_compiler_pic_works=no 16419 ac_outfile=conftest.$ac_objext 16420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 16422 # Insert the option either (1) after the last *FLAGS variable, or 16423 # (2) before a word containing "conftest.", or (3) at the end. 16424 # Note that $ac_compile itself does not contain backslashes and begins 16425 # with a dollar sign (not a hyphen), so the echo should work correctly. 16426 # The option is referenced via a variable to avoid confusing sed. 16427 lt_compile=`echo "$ac_compile" | $SED \ 16428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16430 -e 's:$: $lt_compiler_flag:'` 16431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16432 (eval "$lt_compile" 2>conftest.err) 16433 ac_status=$? 16434 cat conftest.err >&5 16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16436 if (exit $ac_status) && test -s "$ac_outfile"; then 16437 # The compiler can only warn and ignore the option if not recognized 16438 # So say no if there are warnings other than the usual output. 16439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16442 lt_cv_prog_compiler_pic_works=yes 16443 fi 16444 fi 16445 $RM conftest* 16446 ;; 16447 esac 16448 fi 16449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 16450 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 16451 16452 if test yes = "$lt_cv_prog_compiler_pic_works"; then 16453 case $lt_prog_compiler_pic in 16454 "" | " "*) ;; 16455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 16456 esac 16457 else 16458 lt_prog_compiler_pic= 16459 lt_prog_compiler_can_build_shared=no 16460 fi 16461 16462 fi 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 # 16475 # Check to make sure the static flag actually works. 16476 # 16477 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 16478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16479 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16480 if test ${lt_cv_prog_compiler_static_works+y} 16481 then : 16482 printf %s "(cached) " >&6 16483 else case e in #( 16484 e) lt_cv_prog_compiler_static_works=no 16485 save_LDFLAGS=$LDFLAGS 16486 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16487 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16488 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16489 # The linker can only warn and ignore the option if not recognized 16490 # So say no if there are warnings 16491 if test -s conftest.err; then 16492 # Append any errors to the config.log. 16493 cat conftest.err 1>&5 16494 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16496 if diff conftest.exp conftest.er2 >/dev/null; then 16497 lt_cv_prog_compiler_static_works=yes 16498 fi 16499 else 16500 lt_cv_prog_compiler_static_works=yes 16501 fi 16502 fi 16503 $RM -r conftest* 16504 LDFLAGS=$save_LDFLAGS 16505 ;; 16506 esac 16507 fi 16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 16509 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 16510 16511 if test yes = "$lt_cv_prog_compiler_static_works"; then 16512 : 16513 else 16514 lt_prog_compiler_static= 16515 fi 16516 16517 16518 16519 16520 16521 16522 16523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16524 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16525 if test ${lt_cv_prog_compiler_c_o+y} 16526 then : 16527 printf %s "(cached) " >&6 16528 else case e in #( 16529 e) lt_cv_prog_compiler_c_o=no 16530 $RM -r conftest 2>/dev/null 16531 mkdir conftest 16532 cd conftest 16533 mkdir out 16534 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16535 16536 lt_compiler_flag="-o out/conftest2.$ac_objext" 16537 # Insert the option either (1) after the last *FLAGS variable, or 16538 # (2) before a word containing "conftest.", or (3) at the end. 16539 # Note that $ac_compile itself does not contain backslashes and begins 16540 # with a dollar sign (not a hyphen), so the echo should work correctly. 16541 lt_compile=`echo "$ac_compile" | $SED \ 16542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16544 -e 's:$: $lt_compiler_flag:'` 16545 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16546 (eval "$lt_compile" 2>out/conftest.err) 16547 ac_status=$? 16548 cat out/conftest.err >&5 16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16550 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16551 then 16552 # The compiler can only warn and ignore the option if not recognized 16553 # So say no if there are warnings 16554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16555 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16556 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16557 lt_cv_prog_compiler_c_o=yes 16558 fi 16559 fi 16560 chmod u+w . 2>&5 16561 $RM conftest* 16562 # SGI C++ compiler will create directory out/ii_files/ for 16563 # template instantiation 16564 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16565 $RM out/* && rmdir out 16566 cd .. 16567 $RM -r conftest 16568 $RM conftest* 16569 ;; 16570 esac 16571 fi 16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16573 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16574 16575 16576 16577 16578 16579 16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16581 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16582 if test ${lt_cv_prog_compiler_c_o+y} 16583 then : 16584 printf %s "(cached) " >&6 16585 else case e in #( 16586 e) lt_cv_prog_compiler_c_o=no 16587 $RM -r conftest 2>/dev/null 16588 mkdir conftest 16589 cd conftest 16590 mkdir out 16591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16592 16593 lt_compiler_flag="-o out/conftest2.$ac_objext" 16594 # Insert the option either (1) after the last *FLAGS variable, or 16595 # (2) before a word containing "conftest.", or (3) at the end. 16596 # Note that $ac_compile itself does not contain backslashes and begins 16597 # with a dollar sign (not a hyphen), so the echo should work correctly. 16598 lt_compile=`echo "$ac_compile" | $SED \ 16599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16601 -e 's:$: $lt_compiler_flag:'` 16602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16603 (eval "$lt_compile" 2>out/conftest.err) 16604 ac_status=$? 16605 cat out/conftest.err >&5 16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16607 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16608 then 16609 # The compiler can only warn and ignore the option if not recognized 16610 # So say no if there are warnings 16611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16614 lt_cv_prog_compiler_c_o=yes 16615 fi 16616 fi 16617 chmod u+w . 2>&5 16618 $RM conftest* 16619 # SGI C++ compiler will create directory out/ii_files/ for 16620 # template instantiation 16621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16622 $RM out/* && rmdir out 16623 cd .. 16624 $RM -r conftest 16625 $RM conftest* 16626 ;; 16627 esac 16628 fi 16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16630 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16631 16632 16633 16634 16635 hard_links=nottested 16636 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16637 # do not overwrite the value of need_locks provided by the user 16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16639 printf %s "checking if we can lock with hard links... " >&6; } 16640 hard_links=yes 16641 $RM conftest* 16642 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16643 touch conftest.a 16644 ln conftest.a conftest.b 2>&5 || hard_links=no 16645 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16647 printf "%s\n" "$hard_links" >&6; } 16648 if test no = "$hard_links"; then 16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16650 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16651 need_locks=warn 16652 fi 16653 else 16654 need_locks=no 16655 fi 16656 16657 16658 16659 16660 16661 16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16663 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16664 16665 runpath_var= 16666 allow_undefined_flag= 16667 always_export_symbols=no 16668 archive_cmds= 16669 archive_expsym_cmds= 16670 compiler_needs_object=no 16671 enable_shared_with_static_runtimes=no 16672 export_dynamic_flag_spec= 16673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16674 hardcode_automatic=no 16675 hardcode_direct=no 16676 hardcode_direct_absolute=no 16677 hardcode_libdir_flag_spec= 16678 hardcode_libdir_separator= 16679 hardcode_minus_L=no 16680 hardcode_shlibpath_var=unsupported 16681 inherit_rpath=no 16682 link_all_deplibs=unknown 16683 module_cmds= 16684 module_expsym_cmds= 16685 old_archive_from_new_cmds= 16686 old_archive_from_expsyms_cmds= 16687 thread_safe_flag_spec= 16688 whole_archive_flag_spec= 16689 # include_expsyms should be a list of space-separated symbols to be *always* 16690 # included in the symbol list 16691 include_expsyms= 16692 # exclude_expsyms can be an extended regexp of symbols to exclude 16693 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16694 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16695 # as well as any symbol that contains 'd'. 16696 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16697 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16698 # platforms (ab)use it in PIC code, but their linkers get confused if 16699 # the symbol is explicitly referenced. Since portable code cannot 16700 # rely on this symbol name, it's probably fine to never include it in 16701 # preloaded symbol tables. 16702 # Exclude shared library initialization/finalization symbols. 16703 extract_expsyms_cmds= 16704 16705 case $host_os in 16706 cygwin* | mingw* | pw32* | cegcc*) 16707 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16708 # When not using gcc, we currently assume that we are using 16709 # Microsoft Visual C++ or Intel C++ Compiler. 16710 if test yes != "$GCC"; then 16711 with_gnu_ld=no 16712 fi 16713 ;; 16714 interix*) 16715 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16716 with_gnu_ld=yes 16717 ;; 16718 openbsd* | bitrig*) 16719 with_gnu_ld=no 16720 ;; 16721 esac 16722 16723 ld_shlibs=yes 16724 16725 # On some targets, GNU ld is compatible enough with the native linker 16726 # that we're better off using the native interface for both. 16727 lt_use_gnu_ld_interface=no 16728 if test yes = "$with_gnu_ld"; then 16729 case $host_os in 16730 aix*) 16731 # The AIX port of GNU ld has always aspired to compatibility 16732 # with the native linker. However, as the warning in the GNU ld 16733 # block says, versions before 2.19.5* couldn't really create working 16734 # shared libraries, regardless of the interface used. 16735 case `$LD -v 2>&1` in 16736 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16737 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16738 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16739 *) 16740 lt_use_gnu_ld_interface=yes 16741 ;; 16742 esac 16743 ;; 16744 *) 16745 lt_use_gnu_ld_interface=yes 16746 ;; 16747 esac 16748 fi 16749 16750 if test yes = "$lt_use_gnu_ld_interface"; then 16751 # If archive_cmds runs LD, not CC, wlarc should be empty 16752 wlarc='$wl' 16753 16754 # Set some defaults for GNU ld with shared library support. These 16755 # are reset later if shared libraries are not supported. Putting them 16756 # here allows them to be overridden if necessary. 16757 runpath_var=LD_RUN_PATH 16758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16759 export_dynamic_flag_spec='$wl--export-dynamic' 16760 # ancient GNU ld didn't support --whole-archive et. al. 16761 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16762 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16763 else 16764 whole_archive_flag_spec= 16765 fi 16766 supports_anon_versioning=no 16767 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16768 *GNU\ gold*) supports_anon_versioning=yes ;; 16769 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16770 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16771 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16772 *\ 2.11.*) ;; # other 2.11 versions 16773 *) supports_anon_versioning=yes ;; 16774 esac 16775 16776 # See if GNU ld supports shared libraries. 16777 case $host_os in 16778 aix[3-9]*) 16779 # On AIX/PPC, the GNU linker is very broken 16780 if test ia64 != "$host_cpu"; then 16781 ld_shlibs=no 16782 cat <<_LT_EOF 1>&2 16783 16784 *** Warning: the GNU linker, at least up to release 2.19, is reported 16785 *** to be unable to reliably create shared libraries on AIX. 16786 *** Therefore, libtool is disabling shared libraries support. If you 16787 *** really care for shared libraries, you may want to install binutils 16788 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16789 *** You will then need to restart the configuration process. 16790 16791 _LT_EOF 16792 fi 16793 ;; 16794 16795 amigaos*) 16796 case $host_cpu in 16797 powerpc) 16798 # see comment about AmigaOS4 .so support 16799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16800 archive_expsym_cmds='' 16801 ;; 16802 m68k) 16803 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)' 16804 hardcode_libdir_flag_spec='-L$libdir' 16805 hardcode_minus_L=yes 16806 ;; 16807 esac 16808 ;; 16809 16810 beos*) 16811 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16812 allow_undefined_flag=unsupported 16813 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16814 # support --undefined. This deserves some investigation. FIXME 16815 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16816 else 16817 ld_shlibs=no 16818 fi 16819 ;; 16820 16821 cygwin* | mingw* | pw32* | cegcc*) 16822 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16823 # as there is no search path for DLLs. 16824 hardcode_libdir_flag_spec='-L$libdir' 16825 export_dynamic_flag_spec='$wl--export-all-symbols' 16826 allow_undefined_flag=unsupported 16827 always_export_symbols=no 16828 enable_shared_with_static_runtimes=yes 16829 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' 16830 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16831 16832 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16834 # If the export-symbols file already is a .def file, use it as 16835 # is; otherwise, prepend EXPORTS... 16836 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16837 cp $export_symbols $output_objdir/$soname.def; 16838 else 16839 echo EXPORTS > $output_objdir/$soname.def; 16840 cat $export_symbols >> $output_objdir/$soname.def; 16841 fi~ 16842 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16843 else 16844 ld_shlibs=no 16845 fi 16846 ;; 16847 16848 haiku*) 16849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16850 link_all_deplibs=yes 16851 ;; 16852 16853 os2*) 16854 hardcode_libdir_flag_spec='-L$libdir' 16855 hardcode_minus_L=yes 16856 allow_undefined_flag=unsupported 16857 shrext_cmds=.dll 16858 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16859 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16860 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16861 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16862 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16863 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16864 emximp -o $lib $output_objdir/$libname.def' 16865 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16866 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16867 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16868 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16869 prefix_cmds="$SED"~ 16870 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16871 prefix_cmds="$prefix_cmds -e 1d"; 16872 fi~ 16873 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16874 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16875 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16876 emximp -o $lib $output_objdir/$libname.def' 16877 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16878 enable_shared_with_static_runtimes=yes 16879 file_list_spec='@' 16880 ;; 16881 16882 interix[3-9]*) 16883 hardcode_direct=no 16884 hardcode_shlibpath_var=no 16885 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16886 export_dynamic_flag_spec='$wl-E' 16887 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16888 # Instead, shared libraries are loaded at an image base (0x10000000 by 16889 # default) and relocated if they conflict, which is a slow very memory 16890 # consuming and fragmenting process. To avoid this, we pick a random, 16891 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16892 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16893 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16894 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' 16895 ;; 16896 16897 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16898 tmp_diet=no 16899 if test linux-dietlibc = "$host_os"; then 16900 case $cc_basename in 16901 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16902 esac 16903 fi 16904 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16905 && test no = "$tmp_diet" 16906 then 16907 tmp_addflag=' $pic_flag' 16908 tmp_sharedflag='-shared' 16909 case $cc_basename,$host_cpu in 16910 pgcc*) # Portland Group C compiler 16911 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' 16912 tmp_addflag=' $pic_flag' 16913 ;; 16914 pgf77* | pgf90* | pgf95* | pgfortran*) 16915 # Portland Group f77 and f90 compilers 16916 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' 16917 tmp_addflag=' $pic_flag -Mnomain' ;; 16918 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16919 tmp_addflag=' -i_dynamic' ;; 16920 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16921 tmp_addflag=' -i_dynamic -nofor_main' ;; 16922 ifc* | ifort*) # Intel Fortran compiler 16923 tmp_addflag=' -nofor_main' ;; 16924 lf95*) # Lahey Fortran 8.1 16925 whole_archive_flag_spec= 16926 tmp_sharedflag='--shared' ;; 16927 nagfor*) # NAGFOR 5.3 16928 tmp_sharedflag='-Wl,-shared' ;; 16929 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16930 tmp_sharedflag='-qmkshrobj' 16931 tmp_addflag= ;; 16932 nvcc*) # Cuda Compiler Driver 2.2 16933 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' 16934 compiler_needs_object=yes 16935 ;; 16936 esac 16937 case `$CC -V 2>&1 | $SED 5q` in 16938 *Sun\ C*) # Sun C 5.9 16939 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' 16940 compiler_needs_object=yes 16941 tmp_sharedflag='-G' ;; 16942 *Sun\ F*) # Sun Fortran 8.3 16943 tmp_sharedflag='-G' ;; 16944 esac 16945 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16946 16947 if test yes = "$supports_anon_versioning"; then 16948 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16949 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16950 echo "local: *; };" >> $output_objdir/$libname.ver~ 16951 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16952 fi 16953 16954 case $cc_basename in 16955 tcc*) 16956 export_dynamic_flag_spec='-rdynamic' 16957 ;; 16958 xlf* | bgf* | bgxlf* | mpixlf*) 16959 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16960 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16961 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16962 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16963 if test yes = "$supports_anon_versioning"; then 16964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16965 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16966 echo "local: *; };" >> $output_objdir/$libname.ver~ 16967 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16968 fi 16969 ;; 16970 esac 16971 else 16972 ld_shlibs=no 16973 fi 16974 ;; 16975 16976 netbsd*) 16977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16979 wlarc= 16980 else 16981 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16982 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16983 fi 16984 ;; 16985 16986 solaris*) 16987 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16988 ld_shlibs=no 16989 cat <<_LT_EOF 1>&2 16990 16991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16992 *** create shared libraries on Solaris systems. Therefore, libtool 16993 *** is disabling shared libraries support. We urge you to upgrade GNU 16994 *** binutils to release 2.9.1 or newer. Another option is to modify 16995 *** your PATH or compiler configuration so that the native linker is 16996 *** used, and then restart. 16997 16998 _LT_EOF 16999 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17001 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17002 else 17003 ld_shlibs=no 17004 fi 17005 ;; 17006 17007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 17008 case `$LD -v 2>&1` in 17009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 17010 ld_shlibs=no 17011 cat <<_LT_EOF 1>&2 17012 17013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 17014 *** reliably create shared libraries on SCO systems. Therefore, libtool 17015 *** is disabling shared libraries support. We urge you to upgrade GNU 17016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 17017 *** your PATH or compiler configuration so that the native linker is 17018 *** used, and then restart. 17019 17020 _LT_EOF 17021 ;; 17022 *) 17023 # For security reasons, it is highly recommended that you always 17024 # use absolute paths for naming shared libraries, and exclude the 17025 # DT_RUNPATH tag from executables and libraries. But doing so 17026 # requires that you compile everything twice, which is a pain. 17027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17028 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17031 else 17032 ld_shlibs=no 17033 fi 17034 ;; 17035 esac 17036 ;; 17037 17038 sunos4*) 17039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17040 wlarc= 17041 hardcode_direct=yes 17042 hardcode_shlibpath_var=no 17043 ;; 17044 17045 *) 17046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 17047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17048 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 17049 else 17050 ld_shlibs=no 17051 fi 17052 ;; 17053 esac 17054 17055 if test no = "$ld_shlibs"; then 17056 runpath_var= 17057 hardcode_libdir_flag_spec= 17058 export_dynamic_flag_spec= 17059 whole_archive_flag_spec= 17060 fi 17061 else 17062 # PORTME fill in a description of your system's linker (not GNU ld) 17063 case $host_os in 17064 aix3*) 17065 allow_undefined_flag=unsupported 17066 always_export_symbols=yes 17067 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' 17068 # Note: this linker hardcodes the directories in LIBPATH if there 17069 # are no directories specified by -L. 17070 hardcode_minus_L=yes 17071 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 17072 # Neither direct hardcoding nor static linking is supported with a 17073 # broken collect2. 17074 hardcode_direct=unsupported 17075 fi 17076 ;; 17077 17078 aix[4-9]*) 17079 if test ia64 = "$host_cpu"; then 17080 # On IA64, the linker does run time linking by default, so we don't 17081 # have to do anything special. 17082 aix_use_runtimelinking=no 17083 exp_sym_flag='-Bexport' 17084 no_entry_flag= 17085 else 17086 # If we're using GNU nm, then we don't want the "-C" option. 17087 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17088 # Without the "-l" option, or with the "-B" option, AIX nm treats 17089 # weak defined symbols like other global defined symbols, whereas 17090 # GNU nm marks them as "W". 17091 # While the 'weak' keyword is ignored in the Export File, we need 17092 # it in the Import File for the 'aix-soname' feature, so we have 17093 # to replace the "-B" option with "-P" for AIX nm. 17094 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17095 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' 17096 else 17097 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' 17098 fi 17099 aix_use_runtimelinking=no 17100 17101 # Test if we are trying to use run time linking or normal 17102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 17103 # have runtime linking enabled, and use it for executables. 17104 # For shared libraries, we enable/disable runtime linking 17105 # depending on the kind of the shared library created - 17106 # when "with_aix_soname,aix_use_runtimelinking" is: 17107 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 17108 # "aix,yes" lib.so shared, rtl:yes, for executables 17109 # lib.a static archive 17110 # "both,no" lib.so.V(shr.o) shared, rtl:yes 17111 # lib.a(lib.so.V) shared, rtl:no, for executables 17112 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 17113 # lib.a(lib.so.V) shared, rtl:no 17114 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 17115 # lib.a static archive 17116 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 17117 for ld_flag in $LDFLAGS; do 17118 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 17119 aix_use_runtimelinking=yes 17120 break 17121 fi 17122 done 17123 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 17124 # With aix-soname=svr4, we create the lib.so.V shared archives only, 17125 # so we don't have lib.a shared libs to link our executables. 17126 # We have to force runtime linking in this case. 17127 aix_use_runtimelinking=yes 17128 LDFLAGS="$LDFLAGS -Wl,-brtl" 17129 fi 17130 ;; 17131 esac 17132 17133 exp_sym_flag='-bexport' 17134 no_entry_flag='-bnoentry' 17135 fi 17136 17137 # When large executables or shared objects are built, AIX ld can 17138 # have problems creating the table of contents. If linking a library 17139 # or program results in "error TOC overflow" add -mminimal-toc to 17140 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 17141 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 17142 17143 archive_cmds='' 17144 hardcode_direct=yes 17145 hardcode_direct_absolute=yes 17146 hardcode_libdir_separator=':' 17147 link_all_deplibs=yes 17148 file_list_spec='$wl-f,' 17149 case $with_aix_soname,$aix_use_runtimelinking in 17150 aix,*) ;; # traditional, no import file 17151 svr4,* | *,yes) # use import file 17152 # The Import File defines what to hardcode. 17153 hardcode_direct=no 17154 hardcode_direct_absolute=no 17155 ;; 17156 esac 17157 17158 if test yes = "$GCC"; then 17159 case $host_os in aix4.[012]|aix4.[012].*) 17160 # We only want to do this on AIX 4.2 and lower, the check 17161 # below for broken collect2 doesn't work under 4.3+ 17162 collect2name=`$CC -print-prog-name=collect2` 17163 if test -f "$collect2name" && 17164 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 17165 then 17166 # We have reworked collect2 17167 : 17168 else 17169 # We have old collect2 17170 hardcode_direct=unsupported 17171 # It fails to find uninstalled libraries when the uninstalled 17172 # path is not listed in the libpath. Setting hardcode_minus_L 17173 # to unsupported forces relinking 17174 hardcode_minus_L=yes 17175 hardcode_libdir_flag_spec='-L$libdir' 17176 hardcode_libdir_separator= 17177 fi 17178 ;; 17179 esac 17180 shared_flag='-shared' 17181 if test yes = "$aix_use_runtimelinking"; then 17182 shared_flag="$shared_flag "'$wl-G' 17183 fi 17184 # Need to ensure runtime linking is disabled for the traditional 17185 # shared library, or the linker may eventually find shared libraries 17186 # /with/ Import File - we do not want to mix them. 17187 shared_flag_aix='-shared' 17188 shared_flag_svr4='-shared $wl-G' 17189 else 17190 # not using gcc 17191 if test ia64 = "$host_cpu"; then 17192 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 17193 # chokes on -Wl,-G. The following line is correct: 17194 shared_flag='-G' 17195 else 17196 if test yes = "$aix_use_runtimelinking"; then 17197 shared_flag='$wl-G' 17198 else 17199 shared_flag='$wl-bM:SRE' 17200 fi 17201 shared_flag_aix='$wl-bM:SRE' 17202 shared_flag_svr4='$wl-G' 17203 fi 17204 fi 17205 17206 export_dynamic_flag_spec='$wl-bexpall' 17207 # It seems that -bexpall does not export symbols beginning with 17208 # underscore (_), so it is better to generate a list of symbols to export. 17209 always_export_symbols=yes 17210 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 17211 # Warning - without using the other runtime loading flags (-brtl), 17212 # -berok will link without error, but may produce a broken library. 17213 allow_undefined_flag='-berok' 17214 # Determine the default libpath from the value encoded in an 17215 # empty executable. 17216 if test set = "${lt_cv_aix_libpath+set}"; then 17217 aix_libpath=$lt_cv_aix_libpath 17218 else 17219 if test ${lt_cv_aix_libpath_+y} 17220 then : 17221 printf %s "(cached) " >&6 17222 else case e in #( 17223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17224 /* end confdefs.h. */ 17225 17226 int 17227 main (void) 17228 { 17229 17230 ; 17231 return 0; 17232 } 17233 _ACEOF 17234 if ac_fn_c_try_link "$LINENO" 17235 then : 17236 17237 lt_aix_libpath_sed=' 17238 /Import File Strings/,/^$/ { 17239 /^0/ { 17240 s/^0 *\([^ ]*\) *$/\1/ 17241 p 17242 } 17243 }' 17244 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17245 # Check for a 64-bit object if we didn't find anything. 17246 if test -z "$lt_cv_aix_libpath_"; then 17247 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17248 fi 17249 fi 17250 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17251 conftest$ac_exeext conftest.$ac_ext 17252 if test -z "$lt_cv_aix_libpath_"; then 17253 lt_cv_aix_libpath_=/usr/lib:/lib 17254 fi 17255 ;; 17256 esac 17257 fi 17258 17259 aix_libpath=$lt_cv_aix_libpath_ 17260 fi 17261 17262 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17263 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 17264 else 17265 if test ia64 = "$host_cpu"; then 17266 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 17267 allow_undefined_flag="-z nodefs" 17268 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" 17269 else 17270 # Determine the default libpath from the value encoded in an 17271 # empty executable. 17272 if test set = "${lt_cv_aix_libpath+set}"; then 17273 aix_libpath=$lt_cv_aix_libpath 17274 else 17275 if test ${lt_cv_aix_libpath_+y} 17276 then : 17277 printf %s "(cached) " >&6 17278 else case e in #( 17279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280 /* end confdefs.h. */ 17281 17282 int 17283 main (void) 17284 { 17285 17286 ; 17287 return 0; 17288 } 17289 _ACEOF 17290 if ac_fn_c_try_link "$LINENO" 17291 then : 17292 17293 lt_aix_libpath_sed=' 17294 /Import File Strings/,/^$/ { 17295 /^0/ { 17296 s/^0 *\([^ ]*\) *$/\1/ 17297 p 17298 } 17299 }' 17300 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17301 # Check for a 64-bit object if we didn't find anything. 17302 if test -z "$lt_cv_aix_libpath_"; then 17303 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 17304 fi 17305 fi 17306 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17307 conftest$ac_exeext conftest.$ac_ext 17308 if test -z "$lt_cv_aix_libpath_"; then 17309 lt_cv_aix_libpath_=/usr/lib:/lib 17310 fi 17311 ;; 17312 esac 17313 fi 17314 17315 aix_libpath=$lt_cv_aix_libpath_ 17316 fi 17317 17318 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 17319 # Warning - without using the other run time loading flags, 17320 # -berok will link without error, but may produce a broken library. 17321 no_undefined_flag=' $wl-bernotok' 17322 allow_undefined_flag=' $wl-berok' 17323 if test yes = "$with_gnu_ld"; then 17324 # We only use this code for GNU lds that support --whole-archive. 17325 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 17326 else 17327 # Exported symbols can be pulled into shared objects from archives 17328 whole_archive_flag_spec='$convenience' 17329 fi 17330 archive_cmds_need_lc=yes 17331 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 17332 # -brtl affects multiple linker settings, -berok does not and is overridden later 17333 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 17334 if test svr4 != "$with_aix_soname"; then 17335 # This is similar to how AIX traditionally builds its shared libraries. 17336 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' 17337 fi 17338 if test aix != "$with_aix_soname"; then 17339 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' 17340 else 17341 # used by -dlpreopen to get the symbols 17342 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 17343 fi 17344 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 17345 fi 17346 fi 17347 ;; 17348 17349 amigaos*) 17350 case $host_cpu in 17351 powerpc) 17352 # see comment about AmigaOS4 .so support 17353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 17354 archive_expsym_cmds='' 17355 ;; 17356 m68k) 17357 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)' 17358 hardcode_libdir_flag_spec='-L$libdir' 17359 hardcode_minus_L=yes 17360 ;; 17361 esac 17362 ;; 17363 17364 bsdi[45]*) 17365 export_dynamic_flag_spec=-rdynamic 17366 ;; 17367 17368 cygwin* | mingw* | pw32* | cegcc*) 17369 # When not using gcc, we currently assume that we are using 17370 # Microsoft Visual C++ or Intel C++ Compiler. 17371 # hardcode_libdir_flag_spec is actually meaningless, as there is 17372 # no search path for DLLs. 17373 case $cc_basename in 17374 cl* | icl*) 17375 # Native MSVC or ICC 17376 hardcode_libdir_flag_spec=' ' 17377 allow_undefined_flag=unsupported 17378 always_export_symbols=yes 17379 file_list_spec='@' 17380 # Tell ltmain to make .lib files, not .a files. 17381 libext=lib 17382 # Tell ltmain to make .dll files, not .so files. 17383 shrext_cmds=.dll 17384 # FIXME: Setting linknames here is a bad hack. 17385 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 17386 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 17387 cp "$export_symbols" "$output_objdir/$soname.def"; 17388 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 17389 else 17390 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 17391 fi~ 17392 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 17393 linknames=' 17394 # The linker will not automatically build a static lib if we build a DLL. 17395 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 17396 enable_shared_with_static_runtimes=yes 17397 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17398 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 17399 # Don't use ranlib 17400 old_postinstall_cmds='chmod 644 $oldlib' 17401 postlink_cmds='lt_outputfile="@OUTPUT@"~ 17402 lt_tool_outputfile="@TOOL_OUTPUT@"~ 17403 case $lt_outputfile in 17404 *.exe|*.EXE) ;; 17405 *) 17406 lt_outputfile=$lt_outputfile.exe 17407 lt_tool_outputfile=$lt_tool_outputfile.exe 17408 ;; 17409 esac~ 17410 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 17411 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 17412 $RM "$lt_outputfile.manifest"; 17413 fi' 17414 ;; 17415 *) 17416 # Assume MSVC and ICC wrapper 17417 hardcode_libdir_flag_spec=' ' 17418 allow_undefined_flag=unsupported 17419 # Tell ltmain to make .lib files, not .a files. 17420 libext=lib 17421 # Tell ltmain to make .dll files, not .so files. 17422 shrext_cmds=.dll 17423 # FIXME: Setting linknames here is a bad hack. 17424 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 17425 # The linker will automatically build a .lib file if we build a DLL. 17426 old_archive_from_new_cmds='true' 17427 # FIXME: Should let the user specify the lib program. 17428 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 17429 enable_shared_with_static_runtimes=yes 17430 ;; 17431 esac 17432 ;; 17433 17434 darwin* | rhapsody*) 17435 17436 17437 archive_cmds_need_lc=no 17438 hardcode_direct=no 17439 hardcode_automatic=yes 17440 hardcode_shlibpath_var=unsupported 17441 if test yes = "$lt_cv_ld_force_load"; then 17442 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\"`' 17443 17444 else 17445 whole_archive_flag_spec='' 17446 fi 17447 link_all_deplibs=yes 17448 allow_undefined_flag=$_lt_dar_allow_undefined 17449 case $cc_basename in 17450 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 17451 *) _lt_dar_can_shared=$GCC ;; 17452 esac 17453 if test yes = "$_lt_dar_can_shared"; then 17454 output_verbose_link_cmd=func_echo_all 17455 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 17456 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 17457 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" 17458 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" 17459 17460 else 17461 ld_shlibs=no 17462 fi 17463 17464 ;; 17465 17466 dgux*) 17467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17468 hardcode_libdir_flag_spec='-L$libdir' 17469 hardcode_shlibpath_var=no 17470 ;; 17471 17472 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17473 # support. Future versions do this automatically, but an explicit c++rt0.o 17474 # does not break anything, and helps significantly (at the cost of a little 17475 # extra space). 17476 freebsd2.2*) 17477 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17478 hardcode_libdir_flag_spec='-R$libdir' 17479 hardcode_direct=yes 17480 hardcode_shlibpath_var=no 17481 ;; 17482 17483 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17484 freebsd2.*) 17485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17486 hardcode_direct=yes 17487 hardcode_minus_L=yes 17488 hardcode_shlibpath_var=no 17489 ;; 17490 17491 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17492 freebsd* | dragonfly* | midnightbsd*) 17493 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17494 hardcode_libdir_flag_spec='-R$libdir' 17495 hardcode_direct=yes 17496 hardcode_shlibpath_var=no 17497 ;; 17498 17499 hpux9*) 17500 if test yes = "$GCC"; then 17501 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' 17502 else 17503 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' 17504 fi 17505 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17506 hardcode_libdir_separator=: 17507 hardcode_direct=yes 17508 17509 # hardcode_minus_L: Not really in the search PATH, 17510 # but as the default location of the library. 17511 hardcode_minus_L=yes 17512 export_dynamic_flag_spec='$wl-E' 17513 ;; 17514 17515 hpux10*) 17516 if test yes,no = "$GCC,$with_gnu_ld"; then 17517 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17518 else 17519 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17520 fi 17521 if test no = "$with_gnu_ld"; then 17522 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17523 hardcode_libdir_separator=: 17524 hardcode_direct=yes 17525 hardcode_direct_absolute=yes 17526 export_dynamic_flag_spec='$wl-E' 17527 # hardcode_minus_L: Not really in the search PATH, 17528 # but as the default location of the library. 17529 hardcode_minus_L=yes 17530 fi 17531 ;; 17532 17533 hpux11*) 17534 if test yes,no = "$GCC,$with_gnu_ld"; then 17535 case $host_cpu in 17536 hppa*64*) 17537 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17538 ;; 17539 ia64*) 17540 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17541 ;; 17542 *) 17543 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17544 ;; 17545 esac 17546 else 17547 case $host_cpu in 17548 hppa*64*) 17549 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17550 ;; 17551 ia64*) 17552 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17553 ;; 17554 *) 17555 17556 # Older versions of the 11.00 compiler do not understand -b yet 17557 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17559 printf %s "checking if $CC understands -b... " >&6; } 17560 if test ${lt_cv_prog_compiler__b+y} 17561 then : 17562 printf %s "(cached) " >&6 17563 else case e in #( 17564 e) lt_cv_prog_compiler__b=no 17565 save_LDFLAGS=$LDFLAGS 17566 LDFLAGS="$LDFLAGS -b" 17567 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17568 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17569 # The linker can only warn and ignore the option if not recognized 17570 # So say no if there are warnings 17571 if test -s conftest.err; then 17572 # Append any errors to the config.log. 17573 cat conftest.err 1>&5 17574 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17576 if diff conftest.exp conftest.er2 >/dev/null; then 17577 lt_cv_prog_compiler__b=yes 17578 fi 17579 else 17580 lt_cv_prog_compiler__b=yes 17581 fi 17582 fi 17583 $RM -r conftest* 17584 LDFLAGS=$save_LDFLAGS 17585 ;; 17586 esac 17587 fi 17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17589 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17590 17591 if test yes = "$lt_cv_prog_compiler__b"; then 17592 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17593 else 17594 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17595 fi 17596 17597 ;; 17598 esac 17599 fi 17600 if test no = "$with_gnu_ld"; then 17601 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17602 hardcode_libdir_separator=: 17603 17604 case $host_cpu in 17605 hppa*64*|ia64*) 17606 hardcode_direct=no 17607 hardcode_shlibpath_var=no 17608 ;; 17609 *) 17610 hardcode_direct=yes 17611 hardcode_direct_absolute=yes 17612 export_dynamic_flag_spec='$wl-E' 17613 17614 # hardcode_minus_L: Not really in the search PATH, 17615 # but as the default location of the library. 17616 hardcode_minus_L=yes 17617 ;; 17618 esac 17619 fi 17620 ;; 17621 17622 irix5* | irix6* | nonstopux*) 17623 if test yes = "$GCC"; then 17624 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' 17625 # Try to use the -exported_symbol ld option, if it does not 17626 # work, assume that -exports_file does not work either and 17627 # implicitly export all symbols. 17628 # This should be the same for all languages, so no per-tag cache variable. 17629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17630 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17631 if test ${lt_cv_irix_exported_symbol+y} 17632 then : 17633 printf %s "(cached) " >&6 17634 else case e in #( 17635 e) save_LDFLAGS=$LDFLAGS 17636 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17638 /* end confdefs.h. */ 17639 int foo (void) { return 0; } 17640 _ACEOF 17641 if ac_fn_c_try_link "$LINENO" 17642 then : 17643 lt_cv_irix_exported_symbol=yes 17644 else case e in #( 17645 e) lt_cv_irix_exported_symbol=no ;; 17646 esac 17647 fi 17648 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17649 conftest$ac_exeext conftest.$ac_ext 17650 LDFLAGS=$save_LDFLAGS ;; 17651 esac 17652 fi 17653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17654 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17655 if test yes = "$lt_cv_irix_exported_symbol"; then 17656 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' 17657 fi 17658 else 17659 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' 17660 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' 17661 fi 17662 archive_cmds_need_lc='no' 17663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17664 hardcode_libdir_separator=: 17665 inherit_rpath=yes 17666 link_all_deplibs=yes 17667 ;; 17668 17669 linux*) 17670 case $cc_basename in 17671 tcc*) 17672 # Fabrice Bellard et al's Tiny C Compiler 17673 ld_shlibs=yes 17674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17675 ;; 17676 esac 17677 ;; 17678 17679 netbsd*) 17680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17682 else 17683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17684 fi 17685 hardcode_libdir_flag_spec='-R$libdir' 17686 hardcode_direct=yes 17687 hardcode_shlibpath_var=no 17688 ;; 17689 17690 newsos6) 17691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17692 hardcode_direct=yes 17693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17694 hardcode_libdir_separator=: 17695 hardcode_shlibpath_var=no 17696 ;; 17697 17698 *nto* | *qnx*) 17699 ;; 17700 17701 openbsd* | bitrig*) 17702 if test -f /usr/libexec/ld.so; then 17703 hardcode_direct=yes 17704 hardcode_shlibpath_var=no 17705 hardcode_direct_absolute=yes 17706 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17707 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17708 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17709 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17710 export_dynamic_flag_spec='$wl-E' 17711 else 17712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17713 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17714 fi 17715 else 17716 ld_shlibs=no 17717 fi 17718 ;; 17719 17720 os2*) 17721 hardcode_libdir_flag_spec='-L$libdir' 17722 hardcode_minus_L=yes 17723 allow_undefined_flag=unsupported 17724 shrext_cmds=.dll 17725 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17726 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17727 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17728 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17729 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17730 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17731 emximp -o $lib $output_objdir/$libname.def' 17732 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17733 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17734 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17735 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17736 prefix_cmds="$SED"~ 17737 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17738 prefix_cmds="$prefix_cmds -e 1d"; 17739 fi~ 17740 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17741 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17742 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17743 emximp -o $lib $output_objdir/$libname.def' 17744 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17745 enable_shared_with_static_runtimes=yes 17746 file_list_spec='@' 17747 ;; 17748 17749 osf3*) 17750 if test yes = "$GCC"; then 17751 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17752 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' 17753 else 17754 allow_undefined_flag=' -expect_unresolved \*' 17755 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' 17756 fi 17757 archive_cmds_need_lc='no' 17758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17759 hardcode_libdir_separator=: 17760 ;; 17761 17762 osf4* | osf5*) # as osf3* with the addition of -msym flag 17763 if test yes = "$GCC"; then 17764 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17765 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' 17766 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17767 else 17768 allow_undefined_flag=' -expect_unresolved \*' 17769 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' 17770 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~ 17771 $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' 17772 17773 # Both c and cxx compiler support -rpath directly 17774 hardcode_libdir_flag_spec='-rpath $libdir' 17775 fi 17776 archive_cmds_need_lc='no' 17777 hardcode_libdir_separator=: 17778 ;; 17779 17780 solaris*) 17781 no_undefined_flag=' -z defs' 17782 if test yes = "$GCC"; then 17783 wlarc='$wl' 17784 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17785 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17786 $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' 17787 else 17788 case `$CC -V 2>&1` in 17789 *"Compilers 5.0"*) 17790 wlarc='' 17791 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17792 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17793 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17794 ;; 17795 *) 17796 wlarc='$wl' 17797 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17798 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17799 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17800 ;; 17801 esac 17802 fi 17803 hardcode_libdir_flag_spec='-R$libdir' 17804 hardcode_shlibpath_var=no 17805 case $host_os in 17806 solaris2.[0-5] | solaris2.[0-5].*) ;; 17807 *) 17808 # The compiler driver will combine and reorder linker options, 17809 # but understands '-z linker_flag'. GCC discards it without '$wl', 17810 # but is careful enough not to reorder. 17811 # Supported since Solaris 2.6 (maybe 2.5.1?) 17812 if test yes = "$GCC"; then 17813 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17814 else 17815 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17816 fi 17817 ;; 17818 esac 17819 link_all_deplibs=yes 17820 ;; 17821 17822 sunos4*) 17823 if test sequent = "$host_vendor"; then 17824 # Use $CC to link under sequent, because it throws in some extra .o 17825 # files that make .init and .fini sections work. 17826 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17827 else 17828 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17829 fi 17830 hardcode_libdir_flag_spec='-L$libdir' 17831 hardcode_direct=yes 17832 hardcode_minus_L=yes 17833 hardcode_shlibpath_var=no 17834 ;; 17835 17836 sysv4) 17837 case $host_vendor in 17838 sni) 17839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17840 hardcode_direct=yes # is this really true??? 17841 ;; 17842 siemens) 17843 ## LD is ld it makes a PLAMLIB 17844 ## CC just makes a GrossModule. 17845 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17846 reload_cmds='$CC -r -o $output$reload_objs' 17847 hardcode_direct=no 17848 ;; 17849 motorola) 17850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17851 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17852 ;; 17853 esac 17854 runpath_var='LD_RUN_PATH' 17855 hardcode_shlibpath_var=no 17856 ;; 17857 17858 sysv4.3*) 17859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17860 hardcode_shlibpath_var=no 17861 export_dynamic_flag_spec='-Bexport' 17862 ;; 17863 17864 sysv4*MP*) 17865 if test -d /usr/nec; then 17866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17867 hardcode_shlibpath_var=no 17868 runpath_var=LD_RUN_PATH 17869 hardcode_runpath_var=yes 17870 ld_shlibs=yes 17871 fi 17872 ;; 17873 17874 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17875 no_undefined_flag='$wl-z,text' 17876 archive_cmds_need_lc=no 17877 hardcode_shlibpath_var=no 17878 runpath_var='LD_RUN_PATH' 17879 17880 if test yes = "$GCC"; then 17881 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17882 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17883 else 17884 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17885 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17886 fi 17887 ;; 17888 17889 sysv5* | sco3.2v5* | sco5v6*) 17890 # Note: We CANNOT use -z defs as we might desire, because we do not 17891 # link with -lc, and that would cause any symbols used from libc to 17892 # always be unresolved, which means just about no library would 17893 # ever link correctly. If we're not using GNU ld we use -z text 17894 # though, which does catch some bad symbols but isn't as heavy-handed 17895 # as -z defs. 17896 no_undefined_flag='$wl-z,text' 17897 allow_undefined_flag='$wl-z,nodefs' 17898 archive_cmds_need_lc=no 17899 hardcode_shlibpath_var=no 17900 hardcode_libdir_flag_spec='$wl-R,$libdir' 17901 hardcode_libdir_separator=':' 17902 link_all_deplibs=yes 17903 export_dynamic_flag_spec='$wl-Bexport' 17904 runpath_var='LD_RUN_PATH' 17905 17906 if test yes = "$GCC"; then 17907 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17908 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17909 else 17910 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17911 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17912 fi 17913 ;; 17914 17915 uts4*) 17916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17917 hardcode_libdir_flag_spec='-L$libdir' 17918 hardcode_shlibpath_var=no 17919 ;; 17920 17921 *) 17922 ld_shlibs=no 17923 ;; 17924 esac 17925 17926 if test sni = "$host_vendor"; then 17927 case $host in 17928 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17929 export_dynamic_flag_spec='$wl-Blargedynsym' 17930 ;; 17931 esac 17932 fi 17933 fi 17934 17935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17936 printf "%s\n" "$ld_shlibs" >&6; } 17937 test no = "$ld_shlibs" && can_build_shared=no 17938 17939 with_gnu_ld=$with_gnu_ld 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 # 17956 # Do we need to explicitly link libc? 17957 # 17958 case "x$archive_cmds_need_lc" in 17959 x|xyes) 17960 # Assume -lc should be added 17961 archive_cmds_need_lc=yes 17962 17963 if test yes,yes = "$GCC,$enable_shared"; then 17964 case $archive_cmds in 17965 *'~'*) 17966 # FIXME: we may have to deal with multi-command sequences. 17967 ;; 17968 '$CC '*) 17969 # Test whether the compiler implicitly links with -lc since on some 17970 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17971 # to ld, don't add -lc before -lgcc. 17972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17973 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17974 if test ${lt_cv_archive_cmds_need_lc+y} 17975 then : 17976 printf %s "(cached) " >&6 17977 else case e in #( 17978 e) $RM conftest* 17979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17980 17981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17982 (eval $ac_compile) 2>&5 17983 ac_status=$? 17984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17985 test $ac_status = 0; } 2>conftest.err; then 17986 soname=conftest 17987 lib=conftest 17988 libobjs=conftest.$ac_objext 17989 deplibs= 17990 wl=$lt_prog_compiler_wl 17991 pic_flag=$lt_prog_compiler_pic 17992 compiler_flags=-v 17993 linker_flags=-v 17994 verstring= 17995 output_objdir=. 17996 libname=conftest 17997 lt_save_allow_undefined_flag=$allow_undefined_flag 17998 allow_undefined_flag= 17999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 18000 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 18001 ac_status=$? 18002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18003 test $ac_status = 0; } 18004 then 18005 lt_cv_archive_cmds_need_lc=no 18006 else 18007 lt_cv_archive_cmds_need_lc=yes 18008 fi 18009 allow_undefined_flag=$lt_save_allow_undefined_flag 18010 else 18011 cat conftest.err 1>&5 18012 fi 18013 $RM conftest* 18014 ;; 18015 esac 18016 fi 18017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 18018 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 18019 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 18020 ;; 18021 esac 18022 fi 18023 ;; 18024 esac 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 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 18178 printf %s "checking dynamic linker characteristics... " >&6; } 18179 18180 if test yes = "$GCC"; then 18181 case $host_os in 18182 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 18183 *) lt_awk_arg='/^libraries:/' ;; 18184 esac 18185 case $host_os in 18186 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 18187 *) lt_sed_strip_eq='s|=/|/|g' ;; 18188 esac 18189 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 18190 case $lt_search_path_spec in 18191 *\;*) 18192 # if the path contains ";" then we assume it to be the separator 18193 # otherwise default to the standard path separator (i.e. ":") - it is 18194 # assumed that no part of a normal pathname contains ";" but that should 18195 # okay in the real world where ";" in dirpaths is itself problematic. 18196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 18197 ;; 18198 *) 18199 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 18200 ;; 18201 esac 18202 # Ok, now we have the path, separated by spaces, we can step through it 18203 # and add multilib dir if necessary... 18204 lt_tmp_lt_search_path_spec= 18205 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 18206 # ...but if some path component already ends with the multilib dir we assume 18207 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 18208 case "$lt_multi_os_dir; $lt_search_path_spec " in 18209 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 18210 lt_multi_os_dir= 18211 ;; 18212 esac 18213 for lt_sys_path in $lt_search_path_spec; do 18214 if test -d "$lt_sys_path$lt_multi_os_dir"; then 18215 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 18216 elif test -n "$lt_multi_os_dir"; then 18217 test -d "$lt_sys_path" && \ 18218 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 18219 fi 18220 done 18221 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 18222 BEGIN {RS = " "; FS = "/|\n";} { 18223 lt_foo = ""; 18224 lt_count = 0; 18225 for (lt_i = NF; lt_i > 0; lt_i--) { 18226 if ($lt_i != "" && $lt_i != ".") { 18227 if ($lt_i == "..") { 18228 lt_count++; 18229 } else { 18230 if (lt_count == 0) { 18231 lt_foo = "/" $lt_i lt_foo; 18232 } else { 18233 lt_count--; 18234 } 18235 } 18236 } 18237 } 18238 if (lt_foo != "") { lt_freq[lt_foo]++; } 18239 if (lt_freq[lt_foo] == 1) { print lt_foo; } 18240 }'` 18241 # AWK program above erroneously prepends '/' to C:/dos/paths 18242 # for these hosts. 18243 case $host_os in 18244 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 18245 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 18246 esac 18247 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 18248 else 18249 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18250 fi 18251 library_names_spec= 18252 libname_spec='lib$name' 18253 soname_spec= 18254 shrext_cmds=.so 18255 postinstall_cmds= 18256 postuninstall_cmds= 18257 finish_cmds= 18258 finish_eval= 18259 shlibpath_var= 18260 shlibpath_overrides_runpath=unknown 18261 version_type=none 18262 dynamic_linker="$host_os ld.so" 18263 sys_lib_dlsearch_path_spec="/lib /usr/lib" 18264 need_lib_prefix=unknown 18265 hardcode_into_libs=no 18266 18267 # when you set need_version to no, make sure it does not cause -set_version 18268 # flags to be left without arguments 18269 need_version=unknown 18270 18271 18272 18273 case $host_os in 18274 aix3*) 18275 version_type=linux # correct to gnu/linux during the next big refactor 18276 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 18277 shlibpath_var=LIBPATH 18278 18279 # AIX 3 has no versioning support, so we append a major version to the name. 18280 soname_spec='$libname$release$shared_ext$major' 18281 ;; 18282 18283 aix[4-9]*) 18284 version_type=linux # correct to gnu/linux during the next big refactor 18285 need_lib_prefix=no 18286 need_version=no 18287 hardcode_into_libs=yes 18288 if test ia64 = "$host_cpu"; then 18289 # AIX 5 supports IA64 18290 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 18291 shlibpath_var=LD_LIBRARY_PATH 18292 else 18293 # With GCC up to 2.95.x, collect2 would create an import file 18294 # for dependence libraries. The import file would start with 18295 # the line '#! .'. This would cause the generated library to 18296 # depend on '.', always an invalid library. This was fixed in 18297 # development snapshots of GCC prior to 3.0. 18298 case $host_os in 18299 aix4 | aix4.[01] | aix4.[01].*) 18300 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 18301 echo ' yes ' 18302 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 18303 : 18304 else 18305 can_build_shared=no 18306 fi 18307 ;; 18308 esac 18309 # Using Import Files as archive members, it is possible to support 18310 # filename-based versioning of shared library archives on AIX. While 18311 # this would work for both with and without runtime linking, it will 18312 # prevent static linking of such archives. So we do filename-based 18313 # shared library versioning with .so extension only, which is used 18314 # when both runtime linking and shared linking is enabled. 18315 # Unfortunately, runtime linking may impact performance, so we do 18316 # not want this to be the default eventually. Also, we use the 18317 # versioned .so libs for executables only if there is the -brtl 18318 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 18319 # To allow for filename-based versioning support, we need to create 18320 # libNAME.so.V as an archive file, containing: 18321 # *) an Import File, referring to the versioned filename of the 18322 # archive as well as the shared archive member, telling the 18323 # bitwidth (32 or 64) of that shared object, and providing the 18324 # list of exported symbols of that shared object, eventually 18325 # decorated with the 'weak' keyword 18326 # *) the shared object with the F_LOADONLY flag set, to really avoid 18327 # it being seen by the linker. 18328 # At run time we better use the real file rather than another symlink, 18329 # but for link time we create the symlink libNAME.so -> libNAME.so.V 18330 18331 case $with_aix_soname,$aix_use_runtimelinking in 18332 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 18333 # soname into executable. Probably we can add versioning support to 18334 # collect2, so additional links can be useful in future. 18335 aix,yes) # traditional libtool 18336 dynamic_linker='AIX unversionable lib.so' 18337 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 18338 # instead of lib<name>.a to let people know that these are not 18339 # typical AIX shared libraries. 18340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18341 ;; 18342 aix,no) # traditional AIX only 18343 dynamic_linker='AIX lib.a(lib.so.V)' 18344 # We preserve .a as extension for shared libraries through AIX4.2 18345 # and later when we are not doing run time linking. 18346 library_names_spec='$libname$release.a $libname.a' 18347 soname_spec='$libname$release$shared_ext$major' 18348 ;; 18349 svr4,*) # full svr4 only 18350 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 18351 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18352 # We do not specify a path in Import Files, so LIBPATH fires. 18353 shlibpath_overrides_runpath=yes 18354 ;; 18355 *,yes) # both, prefer svr4 18356 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 18357 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 18358 # unpreferred sharedlib libNAME.a needs extra handling 18359 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"' 18360 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"' 18361 # We do not specify a path in Import Files, so LIBPATH fires. 18362 shlibpath_overrides_runpath=yes 18363 ;; 18364 *,no) # both, prefer aix 18365 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 18366 library_names_spec='$libname$release.a $libname.a' 18367 soname_spec='$libname$release$shared_ext$major' 18368 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 18369 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)' 18370 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"' 18371 ;; 18372 esac 18373 shlibpath_var=LIBPATH 18374 fi 18375 ;; 18376 18377 amigaos*) 18378 case $host_cpu in 18379 powerpc) 18380 # Since July 2007 AmigaOS4 officially supports .so libraries. 18381 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 18382 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18383 ;; 18384 m68k) 18385 library_names_spec='$libname.ixlibrary $libname.a' 18386 # Create ${libname}_ixlibrary.a entries in /sys/libs. 18387 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' 18388 ;; 18389 esac 18390 ;; 18391 18392 beos*) 18393 library_names_spec='$libname$shared_ext' 18394 dynamic_linker="$host_os ld.so" 18395 shlibpath_var=LIBRARY_PATH 18396 ;; 18397 18398 bsdi[45]*) 18399 version_type=linux # correct to gnu/linux during the next big refactor 18400 need_version=no 18401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18402 soname_spec='$libname$release$shared_ext$major' 18403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 18404 shlibpath_var=LD_LIBRARY_PATH 18405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 18406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 18407 # the default ld.so.conf also contains /usr/contrib/lib and 18408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 18409 # libtool to hard-code these into programs 18410 ;; 18411 18412 cygwin* | mingw* | pw32* | cegcc*) 18413 version_type=windows 18414 shrext_cmds=.dll 18415 need_version=no 18416 need_lib_prefix=no 18417 18418 case $GCC,$cc_basename in 18419 yes,*) 18420 # gcc 18421 library_names_spec='$libname.dll.a' 18422 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18423 postinstall_cmds='base_file=`basename \$file`~ 18424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18425 dldir=$destdir/`dirname \$dlpath`~ 18426 test -d \$dldir || mkdir -p \$dldir~ 18427 $install_prog $dir/$dlname \$dldir/$dlname~ 18428 chmod a+x \$dldir/$dlname~ 18429 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18430 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18431 fi' 18432 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18433 dlpath=$dir/\$dldll~ 18434 $RM \$dlpath' 18435 shlibpath_overrides_runpath=yes 18436 18437 case $host_os in 18438 cygwin*) 18439 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 18440 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18441 18442 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 18443 ;; 18444 mingw* | cegcc*) 18445 # MinGW DLLs use traditional 'lib' prefix 18446 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18447 ;; 18448 pw32*) 18449 # pw32 DLLs use 'pw' prefix rather than 'lib' 18450 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18451 ;; 18452 esac 18453 dynamic_linker='Win32 ld.exe' 18454 ;; 18455 18456 *,cl* | *,icl*) 18457 # Native MSVC or ICC 18458 libname_spec='$name' 18459 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 18460 library_names_spec='$libname.dll.lib' 18461 18462 case $build_os in 18463 mingw*) 18464 sys_lib_search_path_spec= 18465 lt_save_ifs=$IFS 18466 IFS=';' 18467 for lt_path in $LIB 18468 do 18469 IFS=$lt_save_ifs 18470 # Let DOS variable expansion print the short 8.3 style file name. 18471 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 18472 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 18473 done 18474 IFS=$lt_save_ifs 18475 # Convert to MSYS style. 18476 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 18477 ;; 18478 cygwin*) 18479 # Convert to unix form, then to dos form, then back to unix form 18480 # but this time dos style (no spaces!) so that the unix form looks 18481 # like /cygdrive/c/PROGRA~1:/cygdr... 18482 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 18483 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 18484 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18485 ;; 18486 *) 18487 sys_lib_search_path_spec=$LIB 18488 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 18489 # It is most probably a Windows format PATH. 18490 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 18491 else 18492 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 18493 fi 18494 # FIXME: find the short name or the path components, as spaces are 18495 # common. (e.g. "Program Files" -> "PROGRA~1") 18496 ;; 18497 esac 18498 18499 # DLL is installed to $(libdir)/../bin by postinstall_cmds 18500 postinstall_cmds='base_file=`basename \$file`~ 18501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 18502 dldir=$destdir/`dirname \$dlpath`~ 18503 test -d \$dldir || mkdir -p \$dldir~ 18504 $install_prog $dir/$dlname \$dldir/$dlname' 18505 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18506 dlpath=$dir/\$dldll~ 18507 $RM \$dlpath' 18508 shlibpath_overrides_runpath=yes 18509 dynamic_linker='Win32 link.exe' 18510 ;; 18511 18512 *) 18513 # Assume MSVC and ICC wrapper 18514 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18515 dynamic_linker='Win32 ld.exe' 18516 ;; 18517 esac 18518 # FIXME: first we should search . and the directory the executable is in 18519 shlibpath_var=PATH 18520 ;; 18521 18522 darwin* | rhapsody*) 18523 dynamic_linker="$host_os dyld" 18524 version_type=darwin 18525 need_lib_prefix=no 18526 need_version=no 18527 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 18528 soname_spec='$libname$release$major$shared_ext' 18529 shlibpath_overrides_runpath=yes 18530 shlibpath_var=DYLD_LIBRARY_PATH 18531 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 18532 18533 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18534 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18535 ;; 18536 18537 dgux*) 18538 version_type=linux # correct to gnu/linux during the next big refactor 18539 need_lib_prefix=no 18540 need_version=no 18541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18542 soname_spec='$libname$release$shared_ext$major' 18543 shlibpath_var=LD_LIBRARY_PATH 18544 ;; 18545 18546 freebsd* | dragonfly* | midnightbsd*) 18547 # DragonFly does not have aout. When/if they implement a new 18548 # versioning mechanism, adjust this. 18549 if test -x /usr/bin/objformat; then 18550 objformat=`/usr/bin/objformat` 18551 else 18552 case $host_os in 18553 freebsd[23].*) objformat=aout ;; 18554 *) objformat=elf ;; 18555 esac 18556 fi 18557 # Handle Gentoo/FreeBSD as it was Linux 18558 case $host_vendor in 18559 gentoo) 18560 version_type=linux ;; 18561 *) 18562 version_type=freebsd-$objformat ;; 18563 esac 18564 18565 case $version_type in 18566 freebsd-elf*) 18567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18568 soname_spec='$libname$release$shared_ext$major' 18569 need_version=no 18570 need_lib_prefix=no 18571 ;; 18572 freebsd-*) 18573 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18574 need_version=yes 18575 ;; 18576 linux) 18577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 18578 soname_spec='${libname}${release}${shared_ext}$major' 18579 need_lib_prefix=no 18580 need_version=no 18581 ;; 18582 esac 18583 shlibpath_var=LD_LIBRARY_PATH 18584 case $host_os in 18585 freebsd2.*) 18586 shlibpath_overrides_runpath=yes 18587 ;; 18588 freebsd3.[01]* | freebsdelf3.[01]*) 18589 shlibpath_overrides_runpath=yes 18590 hardcode_into_libs=yes 18591 ;; 18592 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18593 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18594 shlibpath_overrides_runpath=no 18595 hardcode_into_libs=yes 18596 ;; 18597 *) # from 4.6 on, and DragonFly 18598 shlibpath_overrides_runpath=yes 18599 hardcode_into_libs=yes 18600 ;; 18601 esac 18602 ;; 18603 18604 haiku*) 18605 version_type=linux # correct to gnu/linux during the next big refactor 18606 need_lib_prefix=no 18607 need_version=no 18608 dynamic_linker="$host_os runtime_loader" 18609 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18610 soname_spec='$libname$release$shared_ext$major' 18611 shlibpath_var=LIBRARY_PATH 18612 shlibpath_overrides_runpath=no 18613 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18614 hardcode_into_libs=yes 18615 ;; 18616 18617 hpux9* | hpux10* | hpux11*) 18618 # Give a soname corresponding to the major version so that dld.sl refuses to 18619 # link against other versions. 18620 version_type=sunos 18621 need_lib_prefix=no 18622 need_version=no 18623 case $host_cpu in 18624 ia64*) 18625 shrext_cmds='.so' 18626 hardcode_into_libs=yes 18627 dynamic_linker="$host_os dld.so" 18628 shlibpath_var=LD_LIBRARY_PATH 18629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18631 soname_spec='$libname$release$shared_ext$major' 18632 if test 32 = "$HPUX_IA64_MODE"; then 18633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18634 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18635 else 18636 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18637 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18638 fi 18639 ;; 18640 hppa*64*) 18641 shrext_cmds='.sl' 18642 hardcode_into_libs=yes 18643 dynamic_linker="$host_os dld.sl" 18644 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18645 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18647 soname_spec='$libname$release$shared_ext$major' 18648 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18649 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18650 ;; 18651 *) 18652 shrext_cmds='.sl' 18653 dynamic_linker="$host_os dld.sl" 18654 shlibpath_var=SHLIB_PATH 18655 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18657 soname_spec='$libname$release$shared_ext$major' 18658 ;; 18659 esac 18660 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18661 postinstall_cmds='chmod 555 $lib' 18662 # or fails outright, so override atomically: 18663 install_override_mode=555 18664 ;; 18665 18666 interix[3-9]*) 18667 version_type=linux # correct to gnu/linux during the next big refactor 18668 need_lib_prefix=no 18669 need_version=no 18670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18671 soname_spec='$libname$release$shared_ext$major' 18672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18673 shlibpath_var=LD_LIBRARY_PATH 18674 shlibpath_overrides_runpath=no 18675 hardcode_into_libs=yes 18676 ;; 18677 18678 irix5* | irix6* | nonstopux*) 18679 case $host_os in 18680 nonstopux*) version_type=nonstopux ;; 18681 *) 18682 if test yes = "$lt_cv_prog_gnu_ld"; then 18683 version_type=linux # correct to gnu/linux during the next big refactor 18684 else 18685 version_type=irix 18686 fi ;; 18687 esac 18688 need_lib_prefix=no 18689 need_version=no 18690 soname_spec='$libname$release$shared_ext$major' 18691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18692 case $host_os in 18693 irix5* | nonstopux*) 18694 libsuff= shlibsuff= 18695 ;; 18696 *) 18697 case $LD in # libtool.m4 will add one of these switches to LD 18698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18699 libsuff= shlibsuff= libmagic=32-bit;; 18700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18701 libsuff=32 shlibsuff=N32 libmagic=N32;; 18702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18703 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18704 *) libsuff= shlibsuff= libmagic=never-match;; 18705 esac 18706 ;; 18707 esac 18708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18709 shlibpath_overrides_runpath=no 18710 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18711 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18712 hardcode_into_libs=yes 18713 ;; 18714 18715 # No shared lib support for Linux oldld, aout, or coff. 18716 linux*oldld* | linux*aout* | linux*coff*) 18717 dynamic_linker=no 18718 ;; 18719 18720 linux*android*) 18721 version_type=none # Android doesn't support versioned libraries. 18722 need_lib_prefix=no 18723 need_version=no 18724 library_names_spec='$libname$release$shared_ext' 18725 soname_spec='$libname$release$shared_ext' 18726 finish_cmds= 18727 shlibpath_var=LD_LIBRARY_PATH 18728 shlibpath_overrides_runpath=yes 18729 18730 # This implies no fast_install, which is unacceptable. 18731 # Some rework will be needed to allow for fast_install 18732 # before this can be enabled. 18733 hardcode_into_libs=yes 18734 18735 dynamic_linker='Android linker' 18736 # Don't embed -rpath directories since the linker doesn't support them. 18737 hardcode_libdir_flag_spec='-L$libdir' 18738 ;; 18739 18740 # This must be glibc/ELF. 18741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18742 version_type=linux # correct to gnu/linux during the next big refactor 18743 need_lib_prefix=no 18744 need_version=no 18745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18746 soname_spec='$libname$release$shared_ext$major' 18747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18748 shlibpath_var=LD_LIBRARY_PATH 18749 shlibpath_overrides_runpath=no 18750 18751 # Some binutils ld are patched to set DT_RUNPATH 18752 if test ${lt_cv_shlibpath_overrides_runpath+y} 18753 then : 18754 printf %s "(cached) " >&6 18755 else case e in #( 18756 e) lt_cv_shlibpath_overrides_runpath=no 18757 save_LDFLAGS=$LDFLAGS 18758 save_libdir=$libdir 18759 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18760 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18762 /* end confdefs.h. */ 18763 18764 int 18765 main (void) 18766 { 18767 18768 ; 18769 return 0; 18770 } 18771 _ACEOF 18772 if ac_fn_c_try_link "$LINENO" 18773 then : 18774 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18775 then : 18776 lt_cv_shlibpath_overrides_runpath=yes 18777 fi 18778 fi 18779 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18780 conftest$ac_exeext conftest.$ac_ext 18781 LDFLAGS=$save_LDFLAGS 18782 libdir=$save_libdir 18783 ;; 18784 esac 18785 fi 18786 18787 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18788 18789 # This implies no fast_install, which is unacceptable. 18790 # Some rework will be needed to allow for fast_install 18791 # before this can be enabled. 18792 hardcode_into_libs=yes 18793 18794 # Ideally, we could use ldconfig to report *all* directores which are 18795 # searched for libraries, however this is still not possible. Aside from not 18796 # being certain /sbin/ldconfig is available, command 18797 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18798 # even though it is searched at run-time. Try to do the best guess by 18799 # appending ld.so.conf contents (and includes) to the search path. 18800 if test -f /etc/ld.so.conf; then 18801 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' ' '` 18802 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18803 fi 18804 18805 # We used to test for /lib/ld.so.1 and disable shared libraries on 18806 # powerpc, because MkLinux only supported shared libraries with the 18807 # GNU dynamic linker. Since this was broken with cross compilers, 18808 # most powerpc-linux boxes support dynamic linking these days and 18809 # people can always --disable-shared, the test was removed, and we 18810 # assume the GNU/Linux dynamic linker is in use. 18811 dynamic_linker='GNU/Linux ld.so' 18812 ;; 18813 18814 netbsd*) 18815 version_type=sunos 18816 need_lib_prefix=no 18817 need_version=no 18818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18819 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18821 dynamic_linker='NetBSD (a.out) ld.so' 18822 else 18823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18824 soname_spec='$libname$release$shared_ext$major' 18825 dynamic_linker='NetBSD ld.elf_so' 18826 fi 18827 shlibpath_var=LD_LIBRARY_PATH 18828 shlibpath_overrides_runpath=yes 18829 hardcode_into_libs=yes 18830 ;; 18831 18832 newsos6) 18833 version_type=linux # correct to gnu/linux during the next big refactor 18834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18835 shlibpath_var=LD_LIBRARY_PATH 18836 shlibpath_overrides_runpath=yes 18837 ;; 18838 18839 *nto* | *qnx*) 18840 version_type=qnx 18841 need_lib_prefix=no 18842 need_version=no 18843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18844 soname_spec='$libname$release$shared_ext$major' 18845 shlibpath_var=LD_LIBRARY_PATH 18846 shlibpath_overrides_runpath=no 18847 hardcode_into_libs=yes 18848 dynamic_linker='ldqnx.so' 18849 ;; 18850 18851 openbsd* | bitrig*) 18852 version_type=sunos 18853 sys_lib_dlsearch_path_spec=/usr/lib 18854 need_lib_prefix=no 18855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18856 need_version=no 18857 else 18858 need_version=yes 18859 fi 18860 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18862 shlibpath_var=LD_LIBRARY_PATH 18863 shlibpath_overrides_runpath=yes 18864 ;; 18865 18866 os2*) 18867 libname_spec='$name' 18868 version_type=windows 18869 shrext_cmds=.dll 18870 need_version=no 18871 need_lib_prefix=no 18872 # OS/2 can only load a DLL with a base name of 8 characters or less. 18873 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18874 v=$($ECHO $release$versuffix | tr -d .-); 18875 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18876 $ECHO $n$v`$shared_ext' 18877 library_names_spec='${libname}_dll.$libext' 18878 dynamic_linker='OS/2 ld.exe' 18879 shlibpath_var=BEGINLIBPATH 18880 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18881 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18882 postinstall_cmds='base_file=`basename \$file`~ 18883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18884 dldir=$destdir/`dirname \$dlpath`~ 18885 test -d \$dldir || mkdir -p \$dldir~ 18886 $install_prog $dir/$dlname \$dldir/$dlname~ 18887 chmod a+x \$dldir/$dlname~ 18888 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18889 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18890 fi' 18891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18892 dlpath=$dir/\$dldll~ 18893 $RM \$dlpath' 18894 ;; 18895 18896 osf3* | osf4* | osf5*) 18897 version_type=osf 18898 need_lib_prefix=no 18899 need_version=no 18900 soname_spec='$libname$release$shared_ext$major' 18901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18902 shlibpath_var=LD_LIBRARY_PATH 18903 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18905 ;; 18906 18907 rdos*) 18908 dynamic_linker=no 18909 ;; 18910 18911 solaris*) 18912 version_type=linux # correct to gnu/linux during the next big refactor 18913 need_lib_prefix=no 18914 need_version=no 18915 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18916 soname_spec='$libname$release$shared_ext$major' 18917 shlibpath_var=LD_LIBRARY_PATH 18918 shlibpath_overrides_runpath=yes 18919 hardcode_into_libs=yes 18920 # ldd complains unless libraries are executable 18921 postinstall_cmds='chmod +x $lib' 18922 ;; 18923 18924 sunos4*) 18925 version_type=sunos 18926 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18927 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18928 shlibpath_var=LD_LIBRARY_PATH 18929 shlibpath_overrides_runpath=yes 18930 if test yes = "$with_gnu_ld"; then 18931 need_lib_prefix=no 18932 fi 18933 need_version=yes 18934 ;; 18935 18936 sysv4 | sysv4.3*) 18937 version_type=linux # correct to gnu/linux during the next big refactor 18938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18939 soname_spec='$libname$release$shared_ext$major' 18940 shlibpath_var=LD_LIBRARY_PATH 18941 case $host_vendor in 18942 sni) 18943 shlibpath_overrides_runpath=no 18944 need_lib_prefix=no 18945 runpath_var=LD_RUN_PATH 18946 ;; 18947 siemens) 18948 need_lib_prefix=no 18949 ;; 18950 motorola) 18951 need_lib_prefix=no 18952 need_version=no 18953 shlibpath_overrides_runpath=no 18954 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18955 ;; 18956 esac 18957 ;; 18958 18959 sysv4*MP*) 18960 if test -d /usr/nec; then 18961 version_type=linux # correct to gnu/linux during the next big refactor 18962 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18963 soname_spec='$libname$shared_ext.$major' 18964 shlibpath_var=LD_LIBRARY_PATH 18965 fi 18966 ;; 18967 18968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18969 version_type=sco 18970 need_lib_prefix=no 18971 need_version=no 18972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18973 soname_spec='$libname$release$shared_ext$major' 18974 shlibpath_var=LD_LIBRARY_PATH 18975 shlibpath_overrides_runpath=yes 18976 hardcode_into_libs=yes 18977 if test yes = "$with_gnu_ld"; then 18978 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18979 else 18980 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18981 case $host_os in 18982 sco3.2v5*) 18983 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18984 ;; 18985 esac 18986 fi 18987 sys_lib_dlsearch_path_spec='/usr/lib' 18988 ;; 18989 18990 tpf*) 18991 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18992 version_type=linux # correct to gnu/linux during the next big refactor 18993 need_lib_prefix=no 18994 need_version=no 18995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18996 shlibpath_var=LD_LIBRARY_PATH 18997 shlibpath_overrides_runpath=no 18998 hardcode_into_libs=yes 18999 ;; 19000 19001 uts4*) 19002 version_type=linux # correct to gnu/linux during the next big refactor 19003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 19004 soname_spec='$libname$release$shared_ext$major' 19005 shlibpath_var=LD_LIBRARY_PATH 19006 ;; 19007 19008 *) 19009 dynamic_linker=no 19010 ;; 19011 esac 19012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 19013 printf "%s\n" "$dynamic_linker" >&6; } 19014 test no = "$dynamic_linker" && can_build_shared=no 19015 19016 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19017 if test yes = "$GCC"; then 19018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19019 fi 19020 19021 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 19022 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 19023 fi 19024 19025 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 19026 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 19027 fi 19028 19029 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 19030 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 19031 19032 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 19033 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 19034 19035 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 19036 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 19135 printf %s "checking how to hardcode library paths into programs... " >&6; } 19136 hardcode_action= 19137 if test -n "$hardcode_libdir_flag_spec" || 19138 test -n "$runpath_var" || 19139 test yes = "$hardcode_automatic"; then 19140 19141 # We can hardcode non-existent directories. 19142 if test no != "$hardcode_direct" && 19143 # If the only mechanism to avoid hardcoding is shlibpath_var, we 19144 # have to relink, otherwise we might link with an installed library 19145 # when we should be linking with a yet-to-be-installed one 19146 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 19147 test no != "$hardcode_minus_L"; then 19148 # Linking always hardcodes the temporary library directory. 19149 hardcode_action=relink 19150 else 19151 # We can link without hardcoding, and we can hardcode nonexisting dirs. 19152 hardcode_action=immediate 19153 fi 19154 else 19155 # We cannot hardcode anything, or else we can only hardcode existing 19156 # directories. 19157 hardcode_action=unsupported 19158 fi 19159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 19160 printf "%s\n" "$hardcode_action" >&6; } 19161 19162 if test relink = "$hardcode_action" || 19163 test yes = "$inherit_rpath"; then 19164 # Fast installation is not supported 19165 enable_fast_install=no 19166 elif test yes = "$shlibpath_overrides_runpath" || 19167 test no = "$enable_shared"; then 19168 # Fast installation is not necessary 19169 enable_fast_install=needless 19170 fi 19171 19172 19173 19174 19175 19176 19177 if test yes != "$enable_dlopen"; then 19178 enable_dlopen=unknown 19179 enable_dlopen_self=unknown 19180 enable_dlopen_self_static=unknown 19181 else 19182 lt_cv_dlopen=no 19183 lt_cv_dlopen_libs= 19184 19185 case $host_os in 19186 beos*) 19187 lt_cv_dlopen=load_add_on 19188 lt_cv_dlopen_libs= 19189 lt_cv_dlopen_self=yes 19190 ;; 19191 19192 mingw* | pw32* | cegcc*) 19193 lt_cv_dlopen=LoadLibrary 19194 lt_cv_dlopen_libs= 19195 ;; 19196 19197 cygwin*) 19198 lt_cv_dlopen=dlopen 19199 lt_cv_dlopen_libs= 19200 ;; 19201 19202 darwin*) 19203 # if libdl is installed we need to link against it 19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19205 printf %s "checking for dlopen in -ldl... " >&6; } 19206 if test ${ac_cv_lib_dl_dlopen+y} 19207 then : 19208 printf %s "(cached) " >&6 19209 else case e in #( 19210 e) ac_check_lib_save_LIBS=$LIBS 19211 LIBS="-ldl $LIBS" 19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19213 /* end confdefs.h. */ 19214 19215 /* Override any GCC internal prototype to avoid an error. 19216 Use char because int might match the return type of a GCC 19217 builtin and then its argument prototype would still apply. 19218 The 'extern "C"' is for builds by C++ compilers; 19219 although this is not generally supported in C code supporting it here 19220 has little cost and some practical benefit (sr 110532). */ 19221 #ifdef __cplusplus 19222 extern "C" 19223 #endif 19224 char dlopen (void); 19225 int 19226 main (void) 19227 { 19228 return dlopen (); 19229 ; 19230 return 0; 19231 } 19232 _ACEOF 19233 if ac_fn_c_try_link "$LINENO" 19234 then : 19235 ac_cv_lib_dl_dlopen=yes 19236 else case e in #( 19237 e) ac_cv_lib_dl_dlopen=no ;; 19238 esac 19239 fi 19240 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19241 conftest$ac_exeext conftest.$ac_ext 19242 LIBS=$ac_check_lib_save_LIBS ;; 19243 esac 19244 fi 19245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19246 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19247 if test "x$ac_cv_lib_dl_dlopen" = xyes 19248 then : 19249 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19250 else case e in #( 19251 e) 19252 lt_cv_dlopen=dyld 19253 lt_cv_dlopen_libs= 19254 lt_cv_dlopen_self=yes 19255 ;; 19256 esac 19257 fi 19258 19259 ;; 19260 19261 tpf*) 19262 # Don't try to run any link tests for TPF. We know it's impossible 19263 # because TPF is a cross-compiler, and we know how we open DSOs. 19264 lt_cv_dlopen=dlopen 19265 lt_cv_dlopen_libs= 19266 lt_cv_dlopen_self=no 19267 ;; 19268 19269 *) 19270 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 19271 if test "x$ac_cv_func_shl_load" = xyes 19272 then : 19273 lt_cv_dlopen=shl_load 19274 else case e in #( 19275 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 19276 printf %s "checking for shl_load in -ldld... " >&6; } 19277 if test ${ac_cv_lib_dld_shl_load+y} 19278 then : 19279 printf %s "(cached) " >&6 19280 else case e in #( 19281 e) ac_check_lib_save_LIBS=$LIBS 19282 LIBS="-ldld $LIBS" 19283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19284 /* end confdefs.h. */ 19285 19286 /* Override any GCC internal prototype to avoid an error. 19287 Use char because int might match the return type of a GCC 19288 builtin and then its argument prototype would still apply. 19289 The 'extern "C"' is for builds by C++ compilers; 19290 although this is not generally supported in C code supporting it here 19291 has little cost and some practical benefit (sr 110532). */ 19292 #ifdef __cplusplus 19293 extern "C" 19294 #endif 19295 char shl_load (void); 19296 int 19297 main (void) 19298 { 19299 return shl_load (); 19300 ; 19301 return 0; 19302 } 19303 _ACEOF 19304 if ac_fn_c_try_link "$LINENO" 19305 then : 19306 ac_cv_lib_dld_shl_load=yes 19307 else case e in #( 19308 e) ac_cv_lib_dld_shl_load=no ;; 19309 esac 19310 fi 19311 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19312 conftest$ac_exeext conftest.$ac_ext 19313 LIBS=$ac_check_lib_save_LIBS ;; 19314 esac 19315 fi 19316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 19317 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 19318 if test "x$ac_cv_lib_dld_shl_load" = xyes 19319 then : 19320 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 19321 else case e in #( 19322 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 19323 if test "x$ac_cv_func_dlopen" = xyes 19324 then : 19325 lt_cv_dlopen=dlopen 19326 else case e in #( 19327 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 19328 printf %s "checking for dlopen in -ldl... " >&6; } 19329 if test ${ac_cv_lib_dl_dlopen+y} 19330 then : 19331 printf %s "(cached) " >&6 19332 else case e in #( 19333 e) ac_check_lib_save_LIBS=$LIBS 19334 LIBS="-ldl $LIBS" 19335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19336 /* end confdefs.h. */ 19337 19338 /* Override any GCC internal prototype to avoid an error. 19339 Use char because int might match the return type of a GCC 19340 builtin and then its argument prototype would still apply. 19341 The 'extern "C"' is for builds by C++ compilers; 19342 although this is not generally supported in C code supporting it here 19343 has little cost and some practical benefit (sr 110532). */ 19344 #ifdef __cplusplus 19345 extern "C" 19346 #endif 19347 char dlopen (void); 19348 int 19349 main (void) 19350 { 19351 return dlopen (); 19352 ; 19353 return 0; 19354 } 19355 _ACEOF 19356 if ac_fn_c_try_link "$LINENO" 19357 then : 19358 ac_cv_lib_dl_dlopen=yes 19359 else case e in #( 19360 e) ac_cv_lib_dl_dlopen=no ;; 19361 esac 19362 fi 19363 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19364 conftest$ac_exeext conftest.$ac_ext 19365 LIBS=$ac_check_lib_save_LIBS ;; 19366 esac 19367 fi 19368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 19369 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 19370 if test "x$ac_cv_lib_dl_dlopen" = xyes 19371 then : 19372 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 19373 else case e in #( 19374 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 19375 printf %s "checking for dlopen in -lsvld... " >&6; } 19376 if test ${ac_cv_lib_svld_dlopen+y} 19377 then : 19378 printf %s "(cached) " >&6 19379 else case e in #( 19380 e) ac_check_lib_save_LIBS=$LIBS 19381 LIBS="-lsvld $LIBS" 19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19383 /* end confdefs.h. */ 19384 19385 /* Override any GCC internal prototype to avoid an error. 19386 Use char because int might match the return type of a GCC 19387 builtin and then its argument prototype would still apply. 19388 The 'extern "C"' is for builds by C++ compilers; 19389 although this is not generally supported in C code supporting it here 19390 has little cost and some practical benefit (sr 110532). */ 19391 #ifdef __cplusplus 19392 extern "C" 19393 #endif 19394 char dlopen (void); 19395 int 19396 main (void) 19397 { 19398 return dlopen (); 19399 ; 19400 return 0; 19401 } 19402 _ACEOF 19403 if ac_fn_c_try_link "$LINENO" 19404 then : 19405 ac_cv_lib_svld_dlopen=yes 19406 else case e in #( 19407 e) ac_cv_lib_svld_dlopen=no ;; 19408 esac 19409 fi 19410 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19411 conftest$ac_exeext conftest.$ac_ext 19412 LIBS=$ac_check_lib_save_LIBS ;; 19413 esac 19414 fi 19415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 19416 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 19417 if test "x$ac_cv_lib_svld_dlopen" = xyes 19418 then : 19419 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 19420 else case e in #( 19421 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 19422 printf %s "checking for dld_link in -ldld... " >&6; } 19423 if test ${ac_cv_lib_dld_dld_link+y} 19424 then : 19425 printf %s "(cached) " >&6 19426 else case e in #( 19427 e) ac_check_lib_save_LIBS=$LIBS 19428 LIBS="-ldld $LIBS" 19429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19430 /* end confdefs.h. */ 19431 19432 /* Override any GCC internal prototype to avoid an error. 19433 Use char because int might match the return type of a GCC 19434 builtin and then its argument prototype would still apply. 19435 The 'extern "C"' is for builds by C++ compilers; 19436 although this is not generally supported in C code supporting it here 19437 has little cost and some practical benefit (sr 110532). */ 19438 #ifdef __cplusplus 19439 extern "C" 19440 #endif 19441 char dld_link (void); 19442 int 19443 main (void) 19444 { 19445 return dld_link (); 19446 ; 19447 return 0; 19448 } 19449 _ACEOF 19450 if ac_fn_c_try_link "$LINENO" 19451 then : 19452 ac_cv_lib_dld_dld_link=yes 19453 else case e in #( 19454 e) ac_cv_lib_dld_dld_link=no ;; 19455 esac 19456 fi 19457 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19458 conftest$ac_exeext conftest.$ac_ext 19459 LIBS=$ac_check_lib_save_LIBS ;; 19460 esac 19461 fi 19462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 19463 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 19464 if test "x$ac_cv_lib_dld_dld_link" = xyes 19465 then : 19466 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 19467 fi 19468 19469 ;; 19470 esac 19471 fi 19472 19473 ;; 19474 esac 19475 fi 19476 19477 ;; 19478 esac 19479 fi 19480 19481 ;; 19482 esac 19483 fi 19484 19485 ;; 19486 esac 19487 fi 19488 19489 ;; 19490 esac 19491 19492 if test no = "$lt_cv_dlopen"; then 19493 enable_dlopen=no 19494 else 19495 enable_dlopen=yes 19496 fi 19497 19498 case $lt_cv_dlopen in 19499 dlopen) 19500 save_CPPFLAGS=$CPPFLAGS 19501 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19502 19503 save_LDFLAGS=$LDFLAGS 19504 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19505 19506 save_LIBS=$LIBS 19507 LIBS="$lt_cv_dlopen_libs $LIBS" 19508 19509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 19510 printf %s "checking whether a program can dlopen itself... " >&6; } 19511 if test ${lt_cv_dlopen_self+y} 19512 then : 19513 printf %s "(cached) " >&6 19514 else case e in #( 19515 e) if test yes = "$cross_compiling"; then : 19516 lt_cv_dlopen_self=cross 19517 else 19518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19519 lt_status=$lt_dlunknown 19520 cat > conftest.$ac_ext <<_LT_EOF 19521 #line $LINENO "configure" 19522 #include "confdefs.h" 19523 19524 #if HAVE_DLFCN_H 19525 #include <dlfcn.h> 19526 #endif 19527 19528 #include <stdio.h> 19529 19530 #ifdef RTLD_GLOBAL 19531 # define LT_DLGLOBAL RTLD_GLOBAL 19532 #else 19533 # ifdef DL_GLOBAL 19534 # define LT_DLGLOBAL DL_GLOBAL 19535 # else 19536 # define LT_DLGLOBAL 0 19537 # endif 19538 #endif 19539 19540 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19541 find out it does not work in some platform. */ 19542 #ifndef LT_DLLAZY_OR_NOW 19543 # ifdef RTLD_LAZY 19544 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19545 # else 19546 # ifdef DL_LAZY 19547 # define LT_DLLAZY_OR_NOW DL_LAZY 19548 # else 19549 # ifdef RTLD_NOW 19550 # define LT_DLLAZY_OR_NOW RTLD_NOW 19551 # else 19552 # ifdef DL_NOW 19553 # define LT_DLLAZY_OR_NOW DL_NOW 19554 # else 19555 # define LT_DLLAZY_OR_NOW 0 19556 # endif 19557 # endif 19558 # endif 19559 # endif 19560 #endif 19561 19562 /* When -fvisibility=hidden is used, assume the code has been annotated 19563 correspondingly for the symbols needed. */ 19564 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19565 int fnord () __attribute__((visibility("default"))); 19566 #endif 19567 19568 int fnord () { return 42; } 19569 int main () 19570 { 19571 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19572 int status = $lt_dlunknown; 19573 19574 if (self) 19575 { 19576 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19577 else 19578 { 19579 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19580 else puts (dlerror ()); 19581 } 19582 /* dlclose (self); */ 19583 } 19584 else 19585 puts (dlerror ()); 19586 19587 return status; 19588 } 19589 _LT_EOF 19590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19591 (eval $ac_link) 2>&5 19592 ac_status=$? 19593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19594 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19595 (./conftest; exit; ) >&5 2>/dev/null 19596 lt_status=$? 19597 case x$lt_status in 19598 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19599 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19600 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19601 esac 19602 else : 19603 # compilation failed 19604 lt_cv_dlopen_self=no 19605 fi 19606 fi 19607 rm -fr conftest* 19608 19609 ;; 19610 esac 19611 fi 19612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19613 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19614 19615 if test yes = "$lt_cv_dlopen_self"; then 19616 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19618 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19619 if test ${lt_cv_dlopen_self_static+y} 19620 then : 19621 printf %s "(cached) " >&6 19622 else case e in #( 19623 e) if test yes = "$cross_compiling"; then : 19624 lt_cv_dlopen_self_static=cross 19625 else 19626 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19627 lt_status=$lt_dlunknown 19628 cat > conftest.$ac_ext <<_LT_EOF 19629 #line $LINENO "configure" 19630 #include "confdefs.h" 19631 19632 #if HAVE_DLFCN_H 19633 #include <dlfcn.h> 19634 #endif 19635 19636 #include <stdio.h> 19637 19638 #ifdef RTLD_GLOBAL 19639 # define LT_DLGLOBAL RTLD_GLOBAL 19640 #else 19641 # ifdef DL_GLOBAL 19642 # define LT_DLGLOBAL DL_GLOBAL 19643 # else 19644 # define LT_DLGLOBAL 0 19645 # endif 19646 #endif 19647 19648 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19649 find out it does not work in some platform. */ 19650 #ifndef LT_DLLAZY_OR_NOW 19651 # ifdef RTLD_LAZY 19652 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19653 # else 19654 # ifdef DL_LAZY 19655 # define LT_DLLAZY_OR_NOW DL_LAZY 19656 # else 19657 # ifdef RTLD_NOW 19658 # define LT_DLLAZY_OR_NOW RTLD_NOW 19659 # else 19660 # ifdef DL_NOW 19661 # define LT_DLLAZY_OR_NOW DL_NOW 19662 # else 19663 # define LT_DLLAZY_OR_NOW 0 19664 # endif 19665 # endif 19666 # endif 19667 # endif 19668 #endif 19669 19670 /* When -fvisibility=hidden is used, assume the code has been annotated 19671 correspondingly for the symbols needed. */ 19672 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19673 int fnord () __attribute__((visibility("default"))); 19674 #endif 19675 19676 int fnord () { return 42; } 19677 int main () 19678 { 19679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19680 int status = $lt_dlunknown; 19681 19682 if (self) 19683 { 19684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19685 else 19686 { 19687 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19688 else puts (dlerror ()); 19689 } 19690 /* dlclose (self); */ 19691 } 19692 else 19693 puts (dlerror ()); 19694 19695 return status; 19696 } 19697 _LT_EOF 19698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19699 (eval $ac_link) 2>&5 19700 ac_status=$? 19701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19702 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19703 (./conftest; exit; ) >&5 2>/dev/null 19704 lt_status=$? 19705 case x$lt_status in 19706 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19707 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19708 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19709 esac 19710 else : 19711 # compilation failed 19712 lt_cv_dlopen_self_static=no 19713 fi 19714 fi 19715 rm -fr conftest* 19716 19717 ;; 19718 esac 19719 fi 19720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19721 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19722 fi 19723 19724 CPPFLAGS=$save_CPPFLAGS 19725 LDFLAGS=$save_LDFLAGS 19726 LIBS=$save_LIBS 19727 ;; 19728 esac 19729 19730 case $lt_cv_dlopen_self in 19731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19732 *) enable_dlopen_self=unknown ;; 19733 esac 19734 19735 case $lt_cv_dlopen_self_static in 19736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19737 *) enable_dlopen_self_static=unknown ;; 19738 esac 19739 fi 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 striplib= 19758 old_striplib= 19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19760 printf %s "checking whether stripping libraries is possible... " >&6; } 19761 if test -z "$STRIP"; then 19762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19763 printf "%s\n" "no" >&6; } 19764 else 19765 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19766 old_striplib="$STRIP --strip-debug" 19767 striplib="$STRIP --strip-unneeded" 19768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19769 printf "%s\n" "yes" >&6; } 19770 else 19771 case $host_os in 19772 darwin*) 19773 # FIXME - insert some real tests, host_os isn't really good enough 19774 striplib="$STRIP -x" 19775 old_striplib="$STRIP -S" 19776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19777 printf "%s\n" "yes" >&6; } 19778 ;; 19779 freebsd*) 19780 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19781 old_striplib="$STRIP --strip-debug" 19782 striplib="$STRIP --strip-unneeded" 19783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19784 printf "%s\n" "yes" >&6; } 19785 else 19786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19787 printf "%s\n" "no" >&6; } 19788 fi 19789 ;; 19790 *) 19791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19792 printf "%s\n" "no" >&6; } 19793 ;; 19794 esac 19795 fi 19796 fi 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 # Report what library types will actually be built 19810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19811 printf %s "checking if libtool supports shared libraries... " >&6; } 19812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19813 printf "%s\n" "$can_build_shared" >&6; } 19814 19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19816 printf %s "checking whether to build shared libraries... " >&6; } 19817 test no = "$can_build_shared" && enable_shared=no 19818 19819 # On AIX, shared libraries and static libraries use the same namespace, and 19820 # are all built from PIC. 19821 case $host_os in 19822 aix3*) 19823 test yes = "$enable_shared" && enable_static=no 19824 if test -n "$RANLIB"; then 19825 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19826 postinstall_cmds='$RANLIB $lib' 19827 fi 19828 ;; 19829 19830 aix[4-9]*) 19831 if test ia64 != "$host_cpu"; then 19832 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19833 yes,aix,yes) ;; # shared object as lib.so file only 19834 yes,svr4,*) ;; # shared object as lib.so archive member only 19835 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19836 esac 19837 fi 19838 ;; 19839 esac 19840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19841 printf "%s\n" "$enable_shared" >&6; } 19842 19843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19844 printf %s "checking whether to build static libraries... " >&6; } 19845 # Make sure either enable_shared or enable_static is yes. 19846 test yes = "$enable_shared" || enable_static=yes 19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19848 printf "%s\n" "$enable_static" >&6; } 19849 19850 19851 19852 19853 fi 19854 ac_ext=c 19855 ac_cpp='$CPP $CPPFLAGS' 19856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19858 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19859 19860 CC=$lt_save_CC 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 ac_config_commands="$ac_config_commands libtool" 19877 19878 19879 19880 19881 # Only expand once: 19882 19883 19884 19885 19886 19887 # Define a configure option for an alternate module directory 19888 19889 # Check whether --with-xorg-module-dir was given. 19890 if test ${with_xorg_module_dir+y} 19891 then : 19892 withval=$with_xorg_module_dir; moduledir="$withval" 19893 else case e in #( 19894 e) moduledir="$libdir/xorg/modules" ;; 19895 esac 19896 fi 19897 19898 19899 # Store the list of server defined optional extensions in REQUIRED_MODULES 19900 19901 19902 SAVE_CFLAGS="$CFLAGS" 19903 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19905 /* end confdefs.h. */ 19906 19907 #include "xorg-server.h" 19908 #if !defined RANDR 19909 #error RANDR not defined 19910 #endif 19911 19912 int 19913 main (void) 19914 { 19915 19916 ; 19917 return 0; 19918 } 19919 _ACEOF 19920 if ac_fn_c_try_compile "$LINENO" 19921 then : 19922 _EXT_CHECK=yes 19923 else case e in #( 19924 e) _EXT_CHECK=no ;; 19925 esac 19926 fi 19927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19928 CFLAGS="$SAVE_CFLAGS" 19929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19930 printf %s "checking if RANDR is defined... " >&6; } 19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19932 printf "%s\n" "$_EXT_CHECK" >&6; } 19933 if test "$_EXT_CHECK" != no; then 19934 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19935 fi 19936 19937 19938 19939 SAVE_CFLAGS="$CFLAGS" 19940 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19942 /* end confdefs.h. */ 19943 19944 #include "xorg-server.h" 19945 #if !defined RENDER 19946 #error RENDER not defined 19947 #endif 19948 19949 int 19950 main (void) 19951 { 19952 19953 ; 19954 return 0; 19955 } 19956 _ACEOF 19957 if ac_fn_c_try_compile "$LINENO" 19958 then : 19959 _EXT_CHECK=yes 19960 else case e in #( 19961 e) _EXT_CHECK=no ;; 19962 esac 19963 fi 19964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19965 CFLAGS="$SAVE_CFLAGS" 19966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19967 printf %s "checking if RENDER is defined... " >&6; } 19968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19969 printf "%s\n" "$_EXT_CHECK" >&6; } 19970 if test "$_EXT_CHECK" != no; then 19971 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19972 fi 19973 19974 19975 19976 SAVE_CFLAGS="$CFLAGS" 19977 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 19978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19979 /* end confdefs.h. */ 19980 19981 #include "xorg-server.h" 19982 #if !defined XV 19983 #error XV not defined 19984 #endif 19985 19986 int 19987 main (void) 19988 { 19989 19990 ; 19991 return 0; 19992 } 19993 _ACEOF 19994 if ac_fn_c_try_compile "$LINENO" 19995 then : 19996 _EXT_CHECK=yes 19997 else case e in #( 19998 e) _EXT_CHECK=no ;; 19999 esac 20000 fi 20001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20002 CFLAGS="$SAVE_CFLAGS" 20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5 20004 printf %s "checking if XV is defined... " >&6; } 20005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20006 printf "%s\n" "$_EXT_CHECK" >&6; } 20007 if test "$_EXT_CHECK" != no; then 20008 REQUIRED_MODULES="$REQUIRED_MODULES videoproto" 20009 fi 20010 20011 20012 20013 SAVE_CFLAGS="$CFLAGS" 20014 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 20015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20016 /* end confdefs.h. */ 20017 20018 #include "xorg-server.h" 20019 #if !defined DPMSExtension 20020 #error DPMSExtension not defined 20021 #endif 20022 20023 int 20024 main (void) 20025 { 20026 20027 ; 20028 return 0; 20029 } 20030 _ACEOF 20031 if ac_fn_c_try_compile "$LINENO" 20032 then : 20033 _EXT_CHECK=yes 20034 else case e in #( 20035 e) _EXT_CHECK=no ;; 20036 esac 20037 fi 20038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20039 CFLAGS="$SAVE_CFLAGS" 20040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 20041 printf %s "checking if DPMSExtension is defined... " >&6; } 20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20043 printf "%s\n" "$_EXT_CHECK" >&6; } 20044 if test "$_EXT_CHECK" != no; then 20045 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 20046 fi 20047 20048 20049 20050 SAVE_CFLAGS="$CFLAGS" 20051 CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`" 20052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20053 /* end confdefs.h. */ 20054 20055 #include "xorg-server.h" 20056 #if !defined DRI2 20057 #error DRI2 not defined 20058 #endif 20059 20060 int 20061 main (void) 20062 { 20063 20064 ; 20065 return 0; 20066 } 20067 _ACEOF 20068 if ac_fn_c_try_compile "$LINENO" 20069 then : 20070 _EXT_CHECK=yes 20071 else case e in #( 20072 e) _EXT_CHECK=no ;; 20073 esac 20074 fi 20075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20076 CFLAGS="$SAVE_CFLAGS" 20077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DRI2 is defined" >&5 20078 printf %s "checking if DRI2 is defined... " >&6; } 20079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 20080 printf "%s\n" "$_EXT_CHECK" >&6; } 20081 if test "$_EXT_CHECK" != no; then 20082 REQUIRED_MODULES="$REQUIRED_MODULES dri2proto >= 2.6" 20083 fi 20084 20085 20086 # Checks for libraries 20087 20088 pkg_failed=no 20089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm >= 2.4.60" >&5 20090 printf %s "checking for libdrm >= 2.4.60... " >&6; } 20091 20092 if test -n "$LIBDRM_CFLAGS"; then 20093 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS" 20094 elif test -n "$PKG_CONFIG"; then 20095 if test -n "$PKG_CONFIG" && \ 20096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5 20097 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5 20098 ac_status=$? 20099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20100 test $ac_status = 0; }; then 20101 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.60" 2>/dev/null` 20102 test "x$?" != "x0" && pkg_failed=yes 20103 else 20104 pkg_failed=yes 20105 fi 20106 else 20107 pkg_failed=untried 20108 fi 20109 if test -n "$LIBDRM_LIBS"; then 20110 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS" 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 \"libdrm >= 2.4.60\""; } >&5 20114 ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 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_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.60" 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 20127 20128 20129 if test $pkg_failed = yes; then 20130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20131 printf "%s\n" "no" >&6; } 20132 20133 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20134 _pkg_short_errors_supported=yes 20135 else 20136 _pkg_short_errors_supported=no 20137 fi 20138 if test $_pkg_short_errors_supported = yes; then 20139 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1` 20140 else 20141 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1` 20142 fi 20143 # Put the nasty error message in config.log where it belongs 20144 echo "$LIBDRM_PKG_ERRORS" >&5 20145 20146 as_fn_error $? "Package requirements (libdrm >= 2.4.60) were not met: 20147 20148 $LIBDRM_PKG_ERRORS 20149 20150 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20151 installed software in a non-standard prefix. 20152 20153 Alternatively, you may set the environment variables LIBDRM_CFLAGS 20154 and LIBDRM_LIBS to avoid the need to call pkg-config. 20155 See the pkg-config man page for more details." "$LINENO" 5 20156 elif test $pkg_failed = untried; then 20157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20158 printf "%s\n" "no" >&6; } 20159 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20160 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20161 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20162 is in your PATH or set the PKG_CONFIG environment variable to the full 20163 path to pkg-config. 20164 20165 Alternatively, you may set the environment variables LIBDRM_CFLAGS 20166 and LIBDRM_LIBS to avoid the need to call pkg-config. 20167 See the pkg-config man page for more details. 20168 20169 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20170 See 'config.log' for more details" "$LINENO" 5; } 20171 else 20172 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS 20173 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS 20174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20175 printf "%s\n" "yes" >&6; } 20176 20177 fi 20178 20179 pkg_failed=no 20180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdrm_nouveau >= 2.4.25" >&5 20181 printf %s "checking for libdrm_nouveau >= 2.4.25... " >&6; } 20182 20183 if test -n "$LIBDRM_NOUVEAU_CFLAGS"; then 20184 pkg_cv_LIBDRM_NOUVEAU_CFLAGS="$LIBDRM_NOUVEAU_CFLAGS" 20185 elif test -n "$PKG_CONFIG"; then 20186 if test -n "$PKG_CONFIG" && \ 20187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5 20188 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5 20189 ac_status=$? 20190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20191 test $ac_status = 0; }; then 20192 pkg_cv_LIBDRM_NOUVEAU_CFLAGS=`$PKG_CONFIG --cflags "libdrm_nouveau >= 2.4.25" 2>/dev/null` 20193 test "x$?" != "x0" && pkg_failed=yes 20194 else 20195 pkg_failed=yes 20196 fi 20197 else 20198 pkg_failed=untried 20199 fi 20200 if test -n "$LIBDRM_NOUVEAU_LIBS"; then 20201 pkg_cv_LIBDRM_NOUVEAU_LIBS="$LIBDRM_NOUVEAU_LIBS" 20202 elif test -n "$PKG_CONFIG"; then 20203 if test -n "$PKG_CONFIG" && \ 20204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_nouveau >= 2.4.25\""; } >&5 20205 ($PKG_CONFIG --exists --print-errors "libdrm_nouveau >= 2.4.25") 2>&5 20206 ac_status=$? 20207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20208 test $ac_status = 0; }; then 20209 pkg_cv_LIBDRM_NOUVEAU_LIBS=`$PKG_CONFIG --libs "libdrm_nouveau >= 2.4.25" 2>/dev/null` 20210 test "x$?" != "x0" && pkg_failed=yes 20211 else 20212 pkg_failed=yes 20213 fi 20214 else 20215 pkg_failed=untried 20216 fi 20217 20218 20219 20220 if test $pkg_failed = yes; then 20221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20222 printf "%s\n" "no" >&6; } 20223 20224 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20225 _pkg_short_errors_supported=yes 20226 else 20227 _pkg_short_errors_supported=no 20228 fi 20229 if test $_pkg_short_errors_supported = yes; then 20230 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1` 20231 else 20232 LIBDRM_NOUVEAU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_nouveau >= 2.4.25" 2>&1` 20233 fi 20234 # Put the nasty error message in config.log where it belongs 20235 echo "$LIBDRM_NOUVEAU_PKG_ERRORS" >&5 20236 20237 as_fn_error $? "Package requirements (libdrm_nouveau >= 2.4.25) were not met: 20238 20239 $LIBDRM_NOUVEAU_PKG_ERRORS 20240 20241 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20242 installed software in a non-standard prefix. 20243 20244 Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS 20245 and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config. 20246 See the pkg-config man page for more details." "$LINENO" 5 20247 elif test $pkg_failed = untried; then 20248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20249 printf "%s\n" "no" >&6; } 20250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20251 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20252 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20253 is in your PATH or set the PKG_CONFIG environment variable to the full 20254 path to pkg-config. 20255 20256 Alternatively, you may set the environment variables LIBDRM_NOUVEAU_CFLAGS 20257 and LIBDRM_NOUVEAU_LIBS to avoid the need to call pkg-config. 20258 See the pkg-config man page for more details. 20259 20260 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20261 See 'config.log' for more details" "$LINENO" 5; } 20262 else 20263 LIBDRM_NOUVEAU_CFLAGS=$pkg_cv_LIBDRM_NOUVEAU_CFLAGS 20264 LIBDRM_NOUVEAU_LIBS=$pkg_cv_LIBDRM_NOUVEAU_LIBS 20265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20266 printf "%s\n" "yes" >&6; } 20267 20268 fi 20269 20270 # Obtain compiler/linker options for the driver dependencies 20271 20272 pkg_failed=no 20273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" >&5 20274 printf %s "checking for xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES... " >&6; } 20275 20276 if test -n "$XORG_CFLAGS"; then 20277 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 20278 elif test -n "$PKG_CONFIG"; then 20279 if test -n "$PKG_CONFIG" && \ 20280 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 20281 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES") 2>&5 20282 ac_status=$? 20283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20284 test $ac_status = 0; }; then 20285 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 20286 test "x$?" != "x0" && pkg_failed=yes 20287 else 20288 pkg_failed=yes 20289 fi 20290 else 20291 pkg_failed=untried 20292 fi 20293 if test -n "$XORG_LIBS"; then 20294 pkg_cv_XORG_LIBS="$XORG_LIBS" 20295 elif test -n "$PKG_CONFIG"; then 20296 if test -n "$PKG_CONFIG" && \ 20297 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.18 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 20298 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES") 2>&5 20299 ac_status=$? 20300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20301 test $ac_status = 0; }; then 20302 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 20303 test "x$?" != "x0" && pkg_failed=yes 20304 else 20305 pkg_failed=yes 20306 fi 20307 else 20308 pkg_failed=untried 20309 fi 20310 20311 20312 20313 if test $pkg_failed = yes; then 20314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20315 printf "%s\n" "no" >&6; } 20316 20317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20318 _pkg_short_errors_supported=yes 20319 else 20320 _pkg_short_errors_supported=no 20321 fi 20322 if test $_pkg_short_errors_supported = yes; then 20323 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>&1` 20324 else 20325 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES" 2>&1` 20326 fi 20327 # Put the nasty error message in config.log where it belongs 20328 echo "$XORG_PKG_ERRORS" >&5 20329 20330 as_fn_error $? "Package requirements (xorg-server >= 1.18 xproto fontsproto $REQUIRED_MODULES) were not met: 20331 20332 $XORG_PKG_ERRORS 20333 20334 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20335 installed software in a non-standard prefix. 20336 20337 Alternatively, you may set the environment variables XORG_CFLAGS 20338 and XORG_LIBS to avoid the need to call pkg-config. 20339 See the pkg-config man page for more details." "$LINENO" 5 20340 elif test $pkg_failed = untried; then 20341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20342 printf "%s\n" "no" >&6; } 20343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20344 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20345 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20346 is in your PATH or set the PKG_CONFIG environment variable to the full 20347 path to pkg-config. 20348 20349 Alternatively, you may set the environment variables XORG_CFLAGS 20350 and XORG_LIBS to avoid the need to call pkg-config. 20351 See the pkg-config man page for more details. 20352 20353 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20354 See 'config.log' for more details" "$LINENO" 5; } 20355 else 20356 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 20357 XORG_LIBS=$pkg_cv_XORG_LIBS 20358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20359 printf "%s\n" "yes" >&6; } 20360 20361 fi 20362 20363 pkg_failed=no 20364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xextproto >= 7.0.99.1" >&5 20365 printf %s "checking for xextproto >= 7.0.99.1... " >&6; } 20366 20367 if test -n "$XEXT_CFLAGS"; then 20368 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 20369 elif test -n "$PKG_CONFIG"; then 20370 if test -n "$PKG_CONFIG" && \ 20371 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 20372 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 20373 ac_status=$? 20374 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20375 test $ac_status = 0; }; then 20376 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 20377 test "x$?" != "x0" && pkg_failed=yes 20378 else 20379 pkg_failed=yes 20380 fi 20381 else 20382 pkg_failed=untried 20383 fi 20384 if test -n "$XEXT_LIBS"; then 20385 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 20386 elif test -n "$PKG_CONFIG"; then 20387 if test -n "$PKG_CONFIG" && \ 20388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 20389 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 20390 ac_status=$? 20391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20392 test $ac_status = 0; }; then 20393 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 20394 test "x$?" != "x0" && pkg_failed=yes 20395 else 20396 pkg_failed=yes 20397 fi 20398 else 20399 pkg_failed=untried 20400 fi 20401 20402 20403 20404 if test $pkg_failed = yes; then 20405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20406 printf "%s\n" "no" >&6; } 20407 20408 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20409 _pkg_short_errors_supported=yes 20410 else 20411 _pkg_short_errors_supported=no 20412 fi 20413 if test $_pkg_short_errors_supported = yes; then 20414 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 20415 else 20416 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 20417 fi 20418 # Put the nasty error message in config.log where it belongs 20419 echo "$XEXT_PKG_ERRORS" >&5 20420 20421 HAVE_XEXTPROTO_71="no" 20422 elif test $pkg_failed = untried; then 20423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20424 printf "%s\n" "no" >&6; } 20425 HAVE_XEXTPROTO_71="no" 20426 else 20427 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 20428 XEXT_LIBS=$pkg_cv_XEXT_LIBS 20429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20430 printf "%s\n" "yes" >&6; } 20431 HAVE_XEXTPROTO_71="yes"; 20432 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 20433 20434 fi 20435 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 20436 HAVE_XEXTPROTO_71_TRUE= 20437 HAVE_XEXTPROTO_71_FALSE='#' 20438 else 20439 HAVE_XEXTPROTO_71_TRUE='#' 20440 HAVE_XEXTPROTO_71_FALSE= 20441 fi 20442 20443 20444 20445 pkg_failed=no 20446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pciaccess >= 0.10" >&5 20447 printf %s "checking for pciaccess >= 0.10... " >&6; } 20448 20449 if test -n "$PCIACCESS_CFLAGS"; then 20450 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 20451 elif test -n "$PKG_CONFIG"; then 20452 if test -n "$PKG_CONFIG" && \ 20453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 20454 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 20455 ac_status=$? 20456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20457 test $ac_status = 0; }; then 20458 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null` 20459 test "x$?" != "x0" && pkg_failed=yes 20460 else 20461 pkg_failed=yes 20462 fi 20463 else 20464 pkg_failed=untried 20465 fi 20466 if test -n "$PCIACCESS_LIBS"; then 20467 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 20468 elif test -n "$PKG_CONFIG"; then 20469 if test -n "$PKG_CONFIG" && \ 20470 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5 20471 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5 20472 ac_status=$? 20473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20474 test $ac_status = 0; }; then 20475 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null` 20476 test "x$?" != "x0" && pkg_failed=yes 20477 else 20478 pkg_failed=yes 20479 fi 20480 else 20481 pkg_failed=untried 20482 fi 20483 20484 20485 20486 if test $pkg_failed = yes; then 20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20488 printf "%s\n" "no" >&6; } 20489 20490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20491 _pkg_short_errors_supported=yes 20492 else 20493 _pkg_short_errors_supported=no 20494 fi 20495 if test $_pkg_short_errors_supported = yes; then 20496 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20497 else 20498 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1` 20499 fi 20500 # Put the nasty error message in config.log where it belongs 20501 echo "$PCIACCESS_PKG_ERRORS" >&5 20502 20503 as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met: 20504 20505 $PCIACCESS_PKG_ERRORS 20506 20507 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20508 installed software in a non-standard prefix. 20509 20510 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20511 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20512 See the pkg-config man page for more details." "$LINENO" 5 20513 elif test $pkg_failed = untried; then 20514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20515 printf "%s\n" "no" >&6; } 20516 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20517 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20518 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20519 is in your PATH or set the PKG_CONFIG environment variable to the full 20520 path to pkg-config. 20521 20522 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 20523 and PCIACCESS_LIBS to avoid the need to call pkg-config. 20524 See the pkg-config man page for more details. 20525 20526 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20527 See 'config.log' for more details" "$LINENO" 5; } 20528 else 20529 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 20530 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 20531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20532 printf "%s\n" "yes" >&6; } 20533 20534 fi 20535 20536 20537 pkg_failed=no 20538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev" >&5 20539 printf %s "checking for libudev... " >&6; } 20540 20541 if test -n "$LIBUDEV_CFLAGS"; then 20542 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS" 20543 elif test -n "$PKG_CONFIG"; then 20544 if test -n "$PKG_CONFIG" && \ 20545 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 20546 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 20547 ac_status=$? 20548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20549 test $ac_status = 0; }; then 20550 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 20551 test "x$?" != "x0" && pkg_failed=yes 20552 else 20553 pkg_failed=yes 20554 fi 20555 else 20556 pkg_failed=untried 20557 fi 20558 if test -n "$LIBUDEV_LIBS"; then 20559 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS" 20560 elif test -n "$PKG_CONFIG"; then 20561 if test -n "$PKG_CONFIG" && \ 20562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 20563 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 20564 ac_status=$? 20565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20566 test $ac_status = 0; }; then 20567 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 20568 test "x$?" != "x0" && pkg_failed=yes 20569 else 20570 pkg_failed=yes 20571 fi 20572 else 20573 pkg_failed=untried 20574 fi 20575 20576 20577 20578 if test $pkg_failed = yes; then 20579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20580 printf "%s\n" "no" >&6; } 20581 20582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20583 _pkg_short_errors_supported=yes 20584 else 20585 _pkg_short_errors_supported=no 20586 fi 20587 if test $_pkg_short_errors_supported = yes; then 20588 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 20589 else 20590 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 20591 fi 20592 # Put the nasty error message in config.log where it belongs 20593 echo "$LIBUDEV_PKG_ERRORS" >&5 20594 20595 LIBUDEV=no 20596 elif test $pkg_failed = untried; then 20597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20598 printf "%s\n" "no" >&6; } 20599 LIBUDEV=no 20600 else 20601 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS 20602 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS 20603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20604 printf "%s\n" "yes" >&6; } 20605 LIBUDEV=yes 20606 fi 20607 if test "x$LIBUDEV" = xyes; then 20608 20609 printf "%s\n" "#define HAVE_LIBUDEV 1" >>confdefs.h 20610 20611 fi 20612 if test "x$LIBUDEV" = "xyes" ; then 20613 LIBUDEV_TRUE= 20614 LIBUDEV_FALSE='#' 20615 else 20616 LIBUDEV_TRUE='#' 20617 LIBUDEV_FALSE= 20618 fi 20619 20620 20621 # Use -Wall all the time 20622 CFLAGS="$CFLAGS -Wall" 20623 20624 # Check for -minline-all-stringops availability 20625 OLD_CFLAGS="$CFLAGS" 20626 CFLAGS="$CFLAGS -minline-all-stringops" 20627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20628 /* end confdefs.h. */ 20629 #include <stdio.h> 20630 int 20631 main (void) 20632 { 20633 20634 ; 20635 return 0; 20636 } 20637 _ACEOF 20638 if ac_fn_c_try_compile "$LINENO" 20639 then : 20640 CFLAGS="$OLD_CFLAGS -minline-all-stringops" 20641 else case e in #( 20642 e) CFLAGS="$OLD_CFLAGS" ;; 20643 esac 20644 fi 20645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20646 20647 # needed for the next test 20648 CFLAGS="$CFLAGS $XORG_CFLAGS" 20649 20650 20651 20652 20653 DRIVER_NAME=nouveau 20654 20655 20656 ac_fn_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h> 20657 #include <xf86Cursor.h> 20658 " "$ac_c_undeclared_builtin_options" "CFLAGS" 20659 if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes 20660 then : 20661 20662 printf "%s\n" "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h 20663 20664 fi 20665 20666 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 20667 20668 cat >confcache <<\_ACEOF 20669 # This file is a shell script that caches the results of configure 20670 # tests run on this system so they can be shared between configure 20671 # scripts and configure runs, see configure's option --config-cache. 20672 # It is not useful on other systems. If it contains results you don't 20673 # want to keep, you may remove or edit it. 20674 # 20675 # config.status only pays attention to the cache file if you give it 20676 # the --recheck option to rerun configure. 20677 # 20678 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20679 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20680 # following values. 20681 20682 _ACEOF 20683 20684 # The following way of writing the cache mishandles newlines in values, 20685 # but we know of no workaround that is simple, portable, and efficient. 20686 # So, we kill variables containing newlines. 20687 # Ultrix sh set writes to stderr and can't be redirected directly, 20688 # and sets the high bit in the cache file unless we assign to the vars. 20689 ( 20690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20691 eval ac_val=\$$ac_var 20692 case $ac_val in #( 20693 *${as_nl}*) 20694 case $ac_var in #( 20695 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20696 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20697 esac 20698 case $ac_var in #( 20699 _ | IFS | as_nl) ;; #( 20700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20701 *) { eval $ac_var=; unset $ac_var;} ;; 20702 esac ;; 20703 esac 20704 done 20705 20706 (set) 2>&1 | 20707 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20708 *${as_nl}ac_space=\ *) 20709 # 'set' does not quote correctly, so add quotes: double-quote 20710 # substitution turns \\\\ into \\, and sed turns \\ into \. 20711 sed -n \ 20712 "s/'/'\\\\''/g; 20713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20714 ;; #( 20715 *) 20716 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20718 ;; 20719 esac | 20720 sort 20721 ) | 20722 sed ' 20723 /^ac_cv_env_/b end 20724 t clear 20725 :clear 20726 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20727 t end 20728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20729 :end' >>confcache 20730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20731 if test -w "$cache_file"; then 20732 if test "x$cache_file" != "x/dev/null"; then 20733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20734 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20735 if test ! -f "$cache_file" || test -h "$cache_file"; then 20736 cat confcache >"$cache_file" 20737 else 20738 case $cache_file in #( 20739 */* | ?:*) 20740 mv -f confcache "$cache_file"$$ && 20741 mv -f "$cache_file"$$ "$cache_file" ;; #( 20742 *) 20743 mv -f confcache "$cache_file" ;; 20744 esac 20745 fi 20746 fi 20747 else 20748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20749 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20750 fi 20751 fi 20752 rm -f confcache 20753 20754 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20755 # Let make expand exec_prefix. 20756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20757 20758 DEFS=-DHAVE_CONFIG_H 20759 20760 ac_libobjs= 20761 ac_ltlibobjs= 20762 U= 20763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20764 # 1. Remove the extension, and $U if already installed. 20765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20766 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20768 # will be set to the directory where LIBOBJS objects are built. 20769 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20770 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20771 done 20772 LIBOBJS=$ac_libobjs 20773 20774 LTLIBOBJS=$ac_ltlibobjs 20775 20776 20777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20778 printf %s "checking that generated files are newer than configure... " >&6; } 20779 if test -n "$am_sleep_pid"; then 20780 # Hide warnings about reused PIDs. 20781 wait $am_sleep_pid 2>/dev/null 20782 fi 20783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20784 printf "%s\n" "done" >&6; } 20785 if test -n "$EXEEXT"; then 20786 am__EXEEXT_TRUE= 20787 am__EXEEXT_FALSE='#' 20788 else 20789 am__EXEEXT_TRUE='#' 20790 am__EXEEXT_FALSE= 20791 fi 20792 20793 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20794 as_fn_error $? "conditional \"AMDEP\" was never defined. 20795 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20796 fi 20797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20798 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20799 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20800 fi 20801 if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 20802 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 20803 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20804 fi 20805 if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then 20806 as_fn_error $? "conditional \"LIBUDEV\" was never defined. 20807 Usually this means the macro was only invoked conditionally." "$LINENO" 5 20808 fi 20809 20810 : "${CONFIG_STATUS=./config.status}" 20811 ac_write_fail=0 20812 ac_clean_files_save=$ac_clean_files 20813 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20815 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 20816 as_write_fail=0 20817 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20818 #! $SHELL 20819 # Generated by $as_me. 20820 # Run this file to recreate the current configuration. 20821 # Compiler output produced by configure, useful for debugging 20822 # configure, is in config.log if it exists. 20823 20824 debug=false 20825 ac_cs_recheck=false 20826 ac_cs_silent=false 20827 20828 SHELL=\${CONFIG_SHELL-$SHELL} 20829 export SHELL 20830 _ASEOF 20831 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20832 ## -------------------- ## 20833 ## M4sh Initialization. ## 20834 ## -------------------- ## 20835 20836 # Be more Bourne compatible 20837 DUALCASE=1; export DUALCASE # for MKS sh 20838 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 20839 then : 20840 emulate sh 20841 NULLCMD=: 20842 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20843 # is contrary to our usage. Disable this feature. 20844 alias -g '${1+"$@"}'='"$@"' 20845 setopt NO_GLOB_SUBST 20846 else case e in #( 20847 e) case `(set -o) 2>/dev/null` in #( 20848 *posix*) : 20849 set -o posix ;; #( 20850 *) : 20851 ;; 20852 esac ;; 20853 esac 20854 fi 20855 20856 20857 20858 # Reset variables that may have inherited troublesome values from 20859 # the environment. 20860 20861 # IFS needs to be set, to space, tab, and newline, in precisely that order. 20862 # (If _AS_PATH_WALK were called with IFS unset, it would have the 20863 # side effect of setting IFS to empty, thus disabling word splitting.) 20864 # Quoting is to prevent editors from complaining about space-tab. 20865 as_nl=' 20866 ' 20867 export as_nl 20868 IFS=" "" $as_nl" 20869 20870 PS1='$ ' 20871 PS2='> ' 20872 PS4='+ ' 20873 20874 # Ensure predictable behavior from utilities with locale-dependent output. 20875 LC_ALL=C 20876 export LC_ALL 20877 LANGUAGE=C 20878 export LANGUAGE 20879 20880 # We cannot yet rely on "unset" to work, but we need these variables 20881 # to be unset--not just set to an empty or harmless value--now, to 20882 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 20883 # also avoids known problems related to "unset" and subshell syntax 20884 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 20885 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 20886 do eval test \${$as_var+y} \ 20887 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20888 done 20889 20890 # Ensure that fds 0, 1, and 2 are open. 20891 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 20892 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 20893 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 20894 20895 # The user is always right. 20896 if ${PATH_SEPARATOR+false} :; then 20897 PATH_SEPARATOR=: 20898 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20899 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20900 PATH_SEPARATOR=';' 20901 } 20902 fi 20903 20904 20905 # Find who we are. Look in the path if we contain no directory separator. 20906 as_myself= 20907 case $0 in #(( 20908 *[\\/]* ) as_myself=$0 ;; 20909 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20910 for as_dir in $PATH 20911 do 20912 IFS=$as_save_IFS 20913 case $as_dir in #((( 20914 '') as_dir=./ ;; 20915 */) ;; 20916 *) as_dir=$as_dir/ ;; 20917 esac 20918 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 20919 done 20920 IFS=$as_save_IFS 20921 20922 ;; 20923 esac 20924 # We did not find ourselves, most probably we were run as 'sh COMMAND' 20925 # in which case we are not to be found in the path. 20926 if test "x$as_myself" = x; then 20927 as_myself=$0 20928 fi 20929 if test ! -f "$as_myself"; then 20930 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20931 exit 1 20932 fi 20933 20934 20935 20936 # as_fn_error STATUS ERROR [LINENO LOG_FD] 20937 # ---------------------------------------- 20938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20940 # script with STATUS, using 1 if that was 0. 20941 as_fn_error () 20942 { 20943 as_status=$1; test $as_status -eq 0 && as_status=1 20944 if test "$4"; then 20945 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20947 fi 20948 printf "%s\n" "$as_me: error: $2" >&2 20949 as_fn_exit $as_status 20950 } # as_fn_error 20951 20952 20953 # as_fn_set_status STATUS 20954 # ----------------------- 20955 # Set $? to STATUS, without forking. 20956 as_fn_set_status () 20957 { 20958 return $1 20959 } # as_fn_set_status 20960 20961 # as_fn_exit STATUS 20962 # ----------------- 20963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20964 as_fn_exit () 20965 { 20966 set +e 20967 as_fn_set_status $1 20968 exit $1 20969 } # as_fn_exit 20970 20971 # as_fn_unset VAR 20972 # --------------- 20973 # Portably unset VAR. 20974 as_fn_unset () 20975 { 20976 { eval $1=; unset $1;} 20977 } 20978 as_unset=as_fn_unset 20979 20980 # as_fn_append VAR VALUE 20981 # ---------------------- 20982 # Append the text in VALUE to the end of the definition contained in VAR. Take 20983 # advantage of any shell optimizations that allow amortized linear growth over 20984 # repeated appends, instead of the typical quadratic growth present in naive 20985 # implementations. 20986 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20987 then : 20988 eval 'as_fn_append () 20989 { 20990 eval $1+=\$2 20991 }' 20992 else case e in #( 20993 e) as_fn_append () 20994 { 20995 eval $1=\$$1\$2 20996 } ;; 20997 esac 20998 fi # as_fn_append 20999 21000 # as_fn_arith ARG... 21001 # ------------------ 21002 # Perform arithmetic evaluation on the ARGs, and store the result in the 21003 # global $as_val. Take advantage of shells that can avoid forks. The arguments 21004 # must be portable across $(()) and expr. 21005 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21006 then : 21007 eval 'as_fn_arith () 21008 { 21009 as_val=$(( $* )) 21010 }' 21011 else case e in #( 21012 e) as_fn_arith () 21013 { 21014 as_val=`expr "$@" || test $? -eq 1` 21015 } ;; 21016 esac 21017 fi # as_fn_arith 21018 21019 21020 if expr a : '\(a\)' >/dev/null 2>&1 && 21021 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21022 as_expr=expr 21023 else 21024 as_expr=false 21025 fi 21026 21027 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21028 as_basename=basename 21029 else 21030 as_basename=false 21031 fi 21032 21033 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21034 as_dirname=dirname 21035 else 21036 as_dirname=false 21037 fi 21038 21039 as_me=`$as_basename -- "$0" || 21040 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21041 X"$0" : 'X\(//\)$' \| \ 21042 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21043 printf "%s\n" X/"$0" | 21044 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21045 s//\1/ 21046 q 21047 } 21048 /^X\/\(\/\/\)$/{ 21049 s//\1/ 21050 q 21051 } 21052 /^X\/\(\/\).*/{ 21053 s//\1/ 21054 q 21055 } 21056 s/.*/./; q'` 21057 21058 # Avoid depending upon Character Ranges. 21059 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21060 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21061 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21062 as_cr_digits='0123456789' 21063 as_cr_alnum=$as_cr_Letters$as_cr_digits 21064 21065 21066 # Determine whether it's possible to make 'echo' print without a newline. 21067 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21068 # for compatibility with existing Makefiles. 21069 ECHO_C= ECHO_N= ECHO_T= 21070 case `echo -n x` in #((((( 21071 -n*) 21072 case `echo 'xy\c'` in 21073 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21074 xy) ECHO_C='\c';; 21075 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21076 ECHO_T=' ';; 21077 esac;; 21078 *) 21079 ECHO_N='-n';; 21080 esac 21081 21082 # For backward compatibility with old third-party macros, we provide 21083 # the shell variables $as_echo and $as_echo_n. New code should use 21084 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21085 as_echo='printf %s\n' 21086 as_echo_n='printf %s' 21087 21088 rm -f conf$$ conf$$.exe conf$$.file 21089 if test -d conf$$.dir; then 21090 rm -f conf$$.dir/conf$$.file 21091 else 21092 rm -f conf$$.dir 21093 mkdir conf$$.dir 2>/dev/null 21094 fi 21095 if (echo >conf$$.file) 2>/dev/null; then 21096 if ln -s conf$$.file conf$$ 2>/dev/null; then 21097 as_ln_s='ln -s' 21098 # ... but there are two gotchas: 21099 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 21100 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 21101 # In both cases, we have to default to 'cp -pR'. 21102 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21103 as_ln_s='cp -pR' 21104 elif ln conf$$.file conf$$ 2>/dev/null; then 21105 as_ln_s=ln 21106 else 21107 as_ln_s='cp -pR' 21108 fi 21109 else 21110 as_ln_s='cp -pR' 21111 fi 21112 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21113 rmdir conf$$.dir 2>/dev/null 21114 21115 21116 # as_fn_mkdir_p 21117 # ------------- 21118 # Create "$as_dir" as a directory, including parents if necessary. 21119 as_fn_mkdir_p () 21120 { 21121 21122 case $as_dir in #( 21123 -*) as_dir=./$as_dir;; 21124 esac 21125 test -d "$as_dir" || eval $as_mkdir_p || { 21126 as_dirs= 21127 while :; do 21128 case $as_dir in #( 21129 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21130 *) as_qdir=$as_dir;; 21131 esac 21132 as_dirs="'$as_qdir' $as_dirs" 21133 as_dir=`$as_dirname -- "$as_dir" || 21134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21135 X"$as_dir" : 'X\(//\)[^/]' \| \ 21136 X"$as_dir" : 'X\(//\)$' \| \ 21137 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21138 printf "%s\n" X"$as_dir" | 21139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21140 s//\1/ 21141 q 21142 } 21143 /^X\(\/\/\)[^/].*/{ 21144 s//\1/ 21145 q 21146 } 21147 /^X\(\/\/\)$/{ 21148 s//\1/ 21149 q 21150 } 21151 /^X\(\/\).*/{ 21152 s//\1/ 21153 q 21154 } 21155 s/.*/./; q'` 21156 test -d "$as_dir" && break 21157 done 21158 test -z "$as_dirs" || eval "mkdir $as_dirs" 21159 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21160 21161 21162 } # as_fn_mkdir_p 21163 if mkdir -p . 2>/dev/null; then 21164 as_mkdir_p='mkdir -p "$as_dir"' 21165 else 21166 test -d ./-p && rmdir ./-p 21167 as_mkdir_p=false 21168 fi 21169 21170 21171 # as_fn_executable_p FILE 21172 # ----------------------- 21173 # Test if FILE is an executable regular file. 21174 as_fn_executable_p () 21175 { 21176 test -f "$1" && test -x "$1" 21177 } # as_fn_executable_p 21178 as_test_x='test -x' 21179 as_executable_p=as_fn_executable_p 21180 21181 # Sed expression to map a string onto a valid CPP name. 21182 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21183 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21184 21185 # Sed expression to map a string onto a valid variable name. 21186 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21187 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21188 21189 21190 exec 6>&1 21191 ## ----------------------------------- ## 21192 ## Main body of $CONFIG_STATUS script. ## 21193 ## ----------------------------------- ## 21194 _ASEOF 21195 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21196 21197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21198 # Save the log message, to keep $0 and so on meaningful, and to 21199 # report actual input values of CONFIG_FILES etc. instead of their 21200 # values after options handling. 21201 ac_log=" 21202 This file was extended by xf86-video-nouveau $as_me 1.0.18, which was 21203 generated by GNU Autoconf 2.72. Invocation command line was 21204 21205 CONFIG_FILES = $CONFIG_FILES 21206 CONFIG_HEADERS = $CONFIG_HEADERS 21207 CONFIG_LINKS = $CONFIG_LINKS 21208 CONFIG_COMMANDS = $CONFIG_COMMANDS 21209 $ $0 $@ 21210 21211 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21212 " 21213 21214 _ACEOF 21215 21216 case $ac_config_files in *" 21217 "*) set x $ac_config_files; shift; ac_config_files=$*;; 21218 esac 21219 21220 case $ac_config_headers in *" 21221 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21222 esac 21223 21224 21225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21226 # Files that config.status was made for. 21227 config_files="$ac_config_files" 21228 config_headers="$ac_config_headers" 21229 config_commands="$ac_config_commands" 21230 21231 _ACEOF 21232 21233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21234 ac_cs_usage="\ 21235 '$as_me' instantiates files and other configuration actions 21236 from templates according to the current configuration. Unless the files 21237 and actions are specified as TAGs, all are instantiated by default. 21238 21239 Usage: $0 [OPTION]... [TAG]... 21240 21241 -h, --help print this help, then exit 21242 -V, --version print version number and configuration settings, then exit 21243 --config print configuration, then exit 21244 -q, --quiet, --silent 21245 do not print progress messages 21246 -d, --debug don't remove temporary files 21247 --recheck update $as_me by reconfiguring in the same conditions 21248 --file=FILE[:TEMPLATE] 21249 instantiate the configuration file FILE 21250 --header=FILE[:TEMPLATE] 21251 instantiate the configuration header FILE 21252 21253 Configuration files: 21254 $config_files 21255 21256 Configuration headers: 21257 $config_headers 21258 21259 Configuration commands: 21260 $config_commands 21261 21262 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/-/issues/>." 21263 21264 _ACEOF 21265 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21266 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21268 ac_cs_config='$ac_cs_config_escaped' 21269 ac_cs_version="\\ 21270 xf86-video-nouveau config.status 1.0.18 21271 configured by $0, generated by GNU Autoconf 2.72, 21272 with options \\"\$ac_cs_config\\" 21273 21274 Copyright (C) 2023 Free Software Foundation, Inc. 21275 This config.status script is free software; the Free Software Foundation 21276 gives unlimited permission to copy, distribute and modify it." 21277 21278 ac_pwd='$ac_pwd' 21279 srcdir='$srcdir' 21280 INSTALL='$INSTALL' 21281 MKDIR_P='$MKDIR_P' 21282 AWK='$AWK' 21283 test -n "\$AWK" || AWK=awk 21284 _ACEOF 21285 21286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21287 # The default lists apply if the user does not specify any file. 21288 ac_need_defaults=: 21289 while test $# != 0 21290 do 21291 case $1 in 21292 --*=?*) 21293 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21294 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21295 ac_shift=: 21296 ;; 21297 --*=) 21298 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21299 ac_optarg= 21300 ac_shift=: 21301 ;; 21302 *) 21303 ac_option=$1 21304 ac_optarg=$2 21305 ac_shift=shift 21306 ;; 21307 esac 21308 21309 case $ac_option in 21310 # Handling of the options. 21311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21312 ac_cs_recheck=: ;; 21313 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21314 printf "%s\n" "$ac_cs_version"; exit ;; 21315 --config | --confi | --conf | --con | --co | --c ) 21316 printf "%s\n" "$ac_cs_config"; exit ;; 21317 --debug | --debu | --deb | --de | --d | -d ) 21318 debug=: ;; 21319 --file | --fil | --fi | --f ) 21320 $ac_shift 21321 case $ac_optarg in 21322 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21323 '') as_fn_error $? "missing file argument" ;; 21324 esac 21325 as_fn_append CONFIG_FILES " '$ac_optarg'" 21326 ac_need_defaults=false;; 21327 --header | --heade | --head | --hea ) 21328 $ac_shift 21329 case $ac_optarg in 21330 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21331 esac 21332 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21333 ac_need_defaults=false;; 21334 --he | --h) 21335 # Conflict between --help and --header 21336 as_fn_error $? "ambiguous option: '$1' 21337 Try '$0 --help' for more information.";; 21338 --help | --hel | -h ) 21339 printf "%s\n" "$ac_cs_usage"; exit ;; 21340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21341 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21342 ac_cs_silent=: ;; 21343 21344 # This is an error. 21345 -*) as_fn_error $? "unrecognized option: '$1' 21346 Try '$0 --help' for more information." ;; 21347 21348 *) as_fn_append ac_config_targets " $1" 21349 ac_need_defaults=false ;; 21350 21351 esac 21352 shift 21353 done 21354 21355 ac_configure_extra_args= 21356 21357 if $ac_cs_silent; then 21358 exec 6>/dev/null 21359 ac_configure_extra_args="$ac_configure_extra_args --silent" 21360 fi 21361 21362 _ACEOF 21363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21364 if \$ac_cs_recheck; then 21365 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21366 shift 21367 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21368 CONFIG_SHELL='$SHELL' 21369 export CONFIG_SHELL 21370 exec "\$@" 21371 fi 21372 21373 _ACEOF 21374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21375 exec 5>>config.log 21376 { 21377 echo 21378 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21379 ## Running $as_me. ## 21380 _ASBOX 21381 printf "%s\n" "$ac_log" 21382 } >&5 21383 21384 _ACEOF 21385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21386 # 21387 # INIT-COMMANDS 21388 # 21389 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21390 21391 21392 # The HP-UX ksh and POSIX shell print the target directory to stdout 21393 # if CDPATH is set. 21394 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21395 21396 sed_quote_subst='$sed_quote_subst' 21397 double_quote_subst='$double_quote_subst' 21398 delay_variable_subst='$delay_variable_subst' 21399 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21400 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21401 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21402 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21403 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21404 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21405 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21406 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21407 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21408 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21409 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21410 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21411 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21412 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21413 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21414 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21415 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21416 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21417 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21418 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21419 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21420 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21421 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21422 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21423 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21424 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21425 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21426 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21427 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21428 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21429 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21430 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21431 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21432 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21433 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21434 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21435 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21436 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21437 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21438 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21439 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21440 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21441 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21442 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21443 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21444 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21445 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21446 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21447 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21448 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21449 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21450 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21451 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21452 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21453 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21454 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21455 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21456 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21457 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21458 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21459 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"`' 21460 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21461 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21462 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21463 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21464 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21465 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21466 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21467 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21468 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21469 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21470 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21471 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21472 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21473 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21474 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21475 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21476 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21477 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21478 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21479 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21480 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21481 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21482 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21483 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21484 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21485 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21486 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21487 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21488 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21489 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21490 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21491 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21492 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21493 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21494 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21495 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21496 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21497 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21498 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21499 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21500 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21501 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21502 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21503 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21504 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21505 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21506 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21507 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21508 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21509 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21510 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21511 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21512 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21513 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21514 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21515 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21516 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21517 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21518 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21519 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21520 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21521 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21522 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21523 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21524 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21525 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21526 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21527 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21528 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21529 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21530 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21531 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21532 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21533 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21534 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21535 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21536 21537 LTCC='$LTCC' 21538 LTCFLAGS='$LTCFLAGS' 21539 compiler='$compiler_DEFAULT' 21540 21541 # A function that is used when there is no print builtin or printf. 21542 func_fallback_echo () 21543 { 21544 eval 'cat <<_LTECHO_EOF 21545 \$1 21546 _LTECHO_EOF' 21547 } 21548 21549 # Quote evaled strings. 21550 for var in SHELL \ 21551 ECHO \ 21552 PATH_SEPARATOR \ 21553 SED \ 21554 GREP \ 21555 EGREP \ 21556 FGREP \ 21557 LD \ 21558 NM \ 21559 LN_S \ 21560 lt_SP2NL \ 21561 lt_NL2SP \ 21562 reload_flag \ 21563 FILECMD \ 21564 OBJDUMP \ 21565 deplibs_check_method \ 21566 file_magic_cmd \ 21567 file_magic_glob \ 21568 want_nocaseglob \ 21569 DLLTOOL \ 21570 sharedlib_from_linklib_cmd \ 21571 AR \ 21572 archiver_list_spec \ 21573 STRIP \ 21574 RANLIB \ 21575 CC \ 21576 CFLAGS \ 21577 compiler \ 21578 lt_cv_sys_global_symbol_pipe \ 21579 lt_cv_sys_global_symbol_to_cdecl \ 21580 lt_cv_sys_global_symbol_to_import \ 21581 lt_cv_sys_global_symbol_to_c_name_address \ 21582 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21583 lt_cv_nm_interface \ 21584 nm_file_list_spec \ 21585 lt_cv_truncate_bin \ 21586 lt_prog_compiler_no_builtin_flag \ 21587 lt_prog_compiler_pic \ 21588 lt_prog_compiler_wl \ 21589 lt_prog_compiler_static \ 21590 lt_cv_prog_compiler_c_o \ 21591 need_locks \ 21592 MANIFEST_TOOL \ 21593 DSYMUTIL \ 21594 NMEDIT \ 21595 LIPO \ 21596 OTOOL \ 21597 OTOOL64 \ 21598 shrext_cmds \ 21599 export_dynamic_flag_spec \ 21600 whole_archive_flag_spec \ 21601 compiler_needs_object \ 21602 with_gnu_ld \ 21603 allow_undefined_flag \ 21604 no_undefined_flag \ 21605 hardcode_libdir_flag_spec \ 21606 hardcode_libdir_separator \ 21607 exclude_expsyms \ 21608 include_expsyms \ 21609 file_list_spec \ 21610 variables_saved_for_relink \ 21611 libname_spec \ 21612 library_names_spec \ 21613 soname_spec \ 21614 install_override_mode \ 21615 finish_eval \ 21616 old_striplib \ 21617 striplib; do 21618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21619 *[\\\\\\\`\\"\\\$]*) 21620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21621 ;; 21622 *) 21623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21624 ;; 21625 esac 21626 done 21627 21628 # Double-quote double-evaled strings. 21629 for var in reload_cmds \ 21630 old_postinstall_cmds \ 21631 old_postuninstall_cmds \ 21632 old_archive_cmds \ 21633 extract_expsyms_cmds \ 21634 old_archive_from_new_cmds \ 21635 old_archive_from_expsyms_cmds \ 21636 archive_cmds \ 21637 archive_expsym_cmds \ 21638 module_cmds \ 21639 module_expsym_cmds \ 21640 export_symbols_cmds \ 21641 prelink_cmds \ 21642 postlink_cmds \ 21643 postinstall_cmds \ 21644 postuninstall_cmds \ 21645 finish_cmds \ 21646 sys_lib_search_path_spec \ 21647 configure_time_dlsearch_path \ 21648 configure_time_lt_sys_library_path; do 21649 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21650 *[\\\\\\\`\\"\\\$]*) 21651 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21652 ;; 21653 *) 21654 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21655 ;; 21656 esac 21657 done 21658 21659 ac_aux_dir='$ac_aux_dir' 21660 21661 # See if we are running on zsh, and set the options that allow our 21662 # commands through without removal of \ escapes INIT. 21663 if test -n "\${ZSH_VERSION+set}"; then 21664 setopt NO_GLOB_SUBST 21665 fi 21666 21667 21668 PACKAGE='$PACKAGE' 21669 VERSION='$VERSION' 21670 RM='$RM' 21671 ofile='$ofile' 21672 21673 21674 21675 21676 _ACEOF 21677 21678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21679 21680 # Handling of arguments. 21681 for ac_config_target in $ac_config_targets 21682 do 21683 case $ac_config_target in 21684 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21685 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21686 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21687 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21688 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21689 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 21690 21691 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21692 esac 21693 done 21694 21695 21696 # If the user did not use the arguments to specify the items to instantiate, 21697 # then the envvar interface is used. Set only those that are not. 21698 # We use the long form for the default assignment because of an extremely 21699 # bizarre bug on SunOS 4.1.3. 21700 if $ac_need_defaults; then 21701 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21702 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21703 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21704 fi 21705 21706 # Have a temporary directory for convenience. Make it in the build tree 21707 # simply because there is no reason against having it here, and in addition, 21708 # creating and moving files from /tmp can sometimes cause problems. 21709 # Hook for its removal unless debugging. 21710 # Note that there is a small window in which the directory will not be cleaned: 21711 # after its creation but before its name has been assigned to '$tmp'. 21712 $debug || 21713 { 21714 tmp= ac_tmp= 21715 trap 'exit_status=$? 21716 : "${ac_tmp:=$tmp}" 21717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21718 ' 0 21719 trap 'as_fn_exit 1' 1 2 13 15 21720 } 21721 # Create a (secure) tmp directory for tmp files. 21722 21723 { 21724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21725 test -d "$tmp" 21726 } || 21727 { 21728 tmp=./conf$$-$RANDOM 21729 (umask 077 && mkdir "$tmp") 21730 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21731 ac_tmp=$tmp 21732 21733 # Set up the scripts for CONFIG_FILES section. 21734 # No need to generate them if there are no CONFIG_FILES. 21735 # This happens for instance with './config.status config.h'. 21736 if test -n "$CONFIG_FILES"; then 21737 21738 21739 ac_cr=`echo X | tr X '\015'` 21740 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21741 # But we know of no other shell where ac_cr would be empty at this 21742 # point, so we can use a bashism as a fallback. 21743 if test "x$ac_cr" = x; then 21744 eval ac_cr=\$\'\\r\' 21745 fi 21746 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21747 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21748 ac_cs_awk_cr='\\r' 21749 else 21750 ac_cs_awk_cr=$ac_cr 21751 fi 21752 21753 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21754 _ACEOF 21755 21756 21757 { 21758 echo "cat >conf$$subs.awk <<_ACEOF" && 21759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21760 echo "_ACEOF" 21761 } >conf$$subs.sh || 21762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21763 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21764 ac_delim='%!_!# ' 21765 for ac_last_try in false false false false false :; do 21766 . ./conf$$subs.sh || 21767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21768 21769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21770 if test $ac_delim_n = $ac_delim_num; then 21771 break 21772 elif $ac_last_try; then 21773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21774 else 21775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21776 fi 21777 done 21778 rm -f conf$$subs.sh 21779 21780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21781 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21782 _ACEOF 21783 sed -n ' 21784 h 21785 s/^/S["/; s/!.*/"]=/ 21786 p 21787 g 21788 s/^[^!]*!// 21789 :repl 21790 t repl 21791 s/'"$ac_delim"'$// 21792 t delim 21793 :nl 21794 h 21795 s/\(.\{148\}\)..*/\1/ 21796 t more1 21797 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21798 p 21799 n 21800 b repl 21801 :more1 21802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21803 p 21804 g 21805 s/.\{148\}// 21806 t nl 21807 :delim 21808 h 21809 s/\(.\{148\}\)..*/\1/ 21810 t more2 21811 s/["\\]/\\&/g; s/^/"/; s/$/"/ 21812 p 21813 b 21814 :more2 21815 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21816 p 21817 g 21818 s/.\{148\}// 21819 t delim 21820 ' <conf$$subs.awk | sed ' 21821 /^[^""]/{ 21822 N 21823 s/\n// 21824 } 21825 ' >>$CONFIG_STATUS || ac_write_fail=1 21826 rm -f conf$$subs.awk 21827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21828 _ACAWK 21829 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21830 for (key in S) S_is_set[key] = 1 21831 FS = "" 21832 21833 } 21834 { 21835 line = $ 0 21836 nfields = split(line, field, "@") 21837 substed = 0 21838 len = length(field[1]) 21839 for (i = 2; i < nfields; i++) { 21840 key = field[i] 21841 keylen = length(key) 21842 if (S_is_set[key]) { 21843 value = S[key] 21844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21845 len += length(value) + length(field[++i]) 21846 substed = 1 21847 } else 21848 len += 1 + keylen 21849 } 21850 21851 print line 21852 } 21853 21854 _ACAWK 21855 _ACEOF 21856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21857 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21859 else 21860 cat 21861 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21863 _ACEOF 21864 21865 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21866 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21867 # trailing colons and then remove the whole line if VPATH becomes empty 21868 # (actually we leave an empty line to preserve line numbers). 21869 if test "x$srcdir" = x.; then 21870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21871 h 21872 s/// 21873 s/^/:/ 21874 s/[ ]*$/:/ 21875 s/:\$(srcdir):/:/g 21876 s/:\${srcdir}:/:/g 21877 s/:@srcdir@:/:/g 21878 s/^:*// 21879 s/:*$// 21880 x 21881 s/\(=[ ]*\).*/\1/ 21882 G 21883 s/\n// 21884 s/^[^=]*=[ ]*$// 21885 }' 21886 fi 21887 21888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21889 fi # test -n "$CONFIG_FILES" 21890 21891 # Set up the scripts for CONFIG_HEADERS section. 21892 # No need to generate them if there are no CONFIG_HEADERS. 21893 # This happens for instance with './config.status Makefile'. 21894 if test -n "$CONFIG_HEADERS"; then 21895 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21896 BEGIN { 21897 _ACEOF 21898 21899 # Transform confdefs.h into an awk script 'defines.awk', embedded as 21900 # here-document in config.status, that substitutes the proper values into 21901 # config.h.in to produce config.h. 21902 21903 # Create a delimiter string that does not exist in confdefs.h, to ease 21904 # handling of long lines. 21905 ac_delim='%!_!# ' 21906 for ac_last_try in false false :; do 21907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21908 if test -z "$ac_tt"; then 21909 break 21910 elif $ac_last_try; then 21911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21912 else 21913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21914 fi 21915 done 21916 21917 # For the awk script, D is an array of macro values keyed by name, 21918 # likewise P contains macro parameters if any. Preserve backslash 21919 # newline sequences. 21920 21921 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21922 sed -n ' 21923 s/.\{148\}/&'"$ac_delim"'/g 21924 t rset 21925 :rset 21926 s/^[ ]*#[ ]*define[ ][ ]*/ / 21927 t def 21928 d 21929 :def 21930 s/\\$// 21931 t bsnl 21932 s/["\\]/\\&/g 21933 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21934 D["\1"]=" \3"/p 21935 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21936 d 21937 :bsnl 21938 s/["\\]/\\&/g 21939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21940 D["\1"]=" \3\\\\\\n"\\/p 21941 t cont 21942 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21943 t cont 21944 d 21945 :cont 21946 n 21947 s/.\{148\}/&'"$ac_delim"'/g 21948 t clear 21949 :clear 21950 s/\\$// 21951 t bsnlc 21952 s/["\\]/\\&/g; s/^/"/; s/$/"/p 21953 d 21954 :bsnlc 21955 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21956 b cont 21957 ' <confdefs.h | sed ' 21958 s/'"$ac_delim"'/"\\\ 21959 "/g' >>$CONFIG_STATUS || ac_write_fail=1 21960 21961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21962 for (key in D) D_is_set[key] = 1 21963 FS = "" 21964 } 21965 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21966 line = \$ 0 21967 split(line, arg, " ") 21968 if (arg[1] == "#") { 21969 defundef = arg[2] 21970 mac1 = arg[3] 21971 } else { 21972 defundef = substr(arg[1], 2) 21973 mac1 = arg[2] 21974 } 21975 split(mac1, mac2, "(") #) 21976 macro = mac2[1] 21977 prefix = substr(line, 1, index(line, defundef) - 1) 21978 if (D_is_set[macro]) { 21979 # Preserve the white space surrounding the "#". 21980 print prefix "define", macro P[macro] D[macro] 21981 next 21982 } else { 21983 # Replace #undef with comments. This is necessary, for example, 21984 # in the case of _POSIX_SOURCE, which is predefined and required 21985 # on some systems where configure will not decide to define it. 21986 if (defundef == "undef") { 21987 print "/*", prefix defundef, macro, "*/" 21988 next 21989 } 21990 } 21991 } 21992 { print } 21993 _ACAWK 21994 _ACEOF 21995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21997 fi # test -n "$CONFIG_HEADERS" 21998 21999 22000 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22001 shift 22002 for ac_tag 22003 do 22004 case $ac_tag in 22005 :[FHLC]) ac_mode=$ac_tag; continue;; 22006 esac 22007 case $ac_mode$ac_tag in 22008 :[FHL]*:*);; 22009 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 22010 :[FH]-) ac_tag=-:-;; 22011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22012 esac 22013 ac_save_IFS=$IFS 22014 IFS=: 22015 set x $ac_tag 22016 IFS=$ac_save_IFS 22017 shift 22018 ac_file=$1 22019 shift 22020 22021 case $ac_mode in 22022 :L) ac_source=$1;; 22023 :[FH]) 22024 ac_file_inputs= 22025 for ac_f 22026 do 22027 case $ac_f in 22028 -) ac_f="$ac_tmp/stdin";; 22029 *) # Look for the file first in the build tree, then in the source tree 22030 # (if the path is not absolute). The absolute path cannot be DOS-style, 22031 # because $ac_f cannot contain ':'. 22032 test -f "$ac_f" || 22033 case $ac_f in 22034 [\\/$]*) false;; 22035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22036 esac || 22037 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 22038 esac 22039 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22040 as_fn_append ac_file_inputs " '$ac_f'" 22041 done 22042 22043 # Let's still pretend it is 'configure' which instantiates (i.e., don't 22044 # use $as_me), people would be surprised to read: 22045 # /* config.h. Generated by config.status. */ 22046 configure_input='Generated from '` 22047 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22048 `' by configure.' 22049 if test x"$ac_file" != x-; then 22050 configure_input="$ac_file. $configure_input" 22051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22052 printf "%s\n" "$as_me: creating $ac_file" >&6;} 22053 fi 22054 # Neutralize special characters interpreted by sed in replacement strings. 22055 case $configure_input in #( 22056 *\&* | *\|* | *\\* ) 22057 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22058 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22059 *) ac_sed_conf_input=$configure_input;; 22060 esac 22061 22062 case $ac_tag in 22063 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22065 esac 22066 ;; 22067 esac 22068 22069 ac_dir=`$as_dirname -- "$ac_file" || 22070 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22071 X"$ac_file" : 'X\(//\)[^/]' \| \ 22072 X"$ac_file" : 'X\(//\)$' \| \ 22073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22074 printf "%s\n" X"$ac_file" | 22075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22076 s//\1/ 22077 q 22078 } 22079 /^X\(\/\/\)[^/].*/{ 22080 s//\1/ 22081 q 22082 } 22083 /^X\(\/\/\)$/{ 22084 s//\1/ 22085 q 22086 } 22087 /^X\(\/\).*/{ 22088 s//\1/ 22089 q 22090 } 22091 s/.*/./; q'` 22092 as_dir="$ac_dir"; as_fn_mkdir_p 22093 ac_builddir=. 22094 22095 case "$ac_dir" in 22096 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22097 *) 22098 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22099 # A ".." for each directory in $ac_dir_suffix. 22100 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22101 case $ac_top_builddir_sub in 22102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22104 esac ;; 22105 esac 22106 ac_abs_top_builddir=$ac_pwd 22107 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22108 # for backward compatibility: 22109 ac_top_builddir=$ac_top_build_prefix 22110 22111 case $srcdir in 22112 .) # We are building in place. 22113 ac_srcdir=. 22114 ac_top_srcdir=$ac_top_builddir_sub 22115 ac_abs_top_srcdir=$ac_pwd ;; 22116 [\\/]* | ?:[\\/]* ) # Absolute name. 22117 ac_srcdir=$srcdir$ac_dir_suffix; 22118 ac_top_srcdir=$srcdir 22119 ac_abs_top_srcdir=$srcdir ;; 22120 *) # Relative name. 22121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22122 ac_top_srcdir=$ac_top_build_prefix$srcdir 22123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22124 esac 22125 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22126 22127 22128 case $ac_mode in 22129 :F) 22130 # 22131 # CONFIG_FILE 22132 # 22133 22134 case $INSTALL in 22135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22137 esac 22138 ac_MKDIR_P=$MKDIR_P 22139 case $MKDIR_P in 22140 [\\/$]* | ?:[\\/]* ) ;; 22141 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22142 esac 22143 _ACEOF 22144 22145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22146 # If the template does not know about datarootdir, expand it. 22147 # FIXME: This hack should be removed a few years after 2.60. 22148 ac_datarootdir_hack=; ac_datarootdir_seen= 22149 ac_sed_dataroot=' 22150 /datarootdir/ { 22151 p 22152 q 22153 } 22154 /@datadir@/p 22155 /@docdir@/p 22156 /@infodir@/p 22157 /@localedir@/p 22158 /@mandir@/p' 22159 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22160 *datarootdir*) ac_datarootdir_seen=yes;; 22161 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22163 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22164 _ACEOF 22165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22166 ac_datarootdir_hack=' 22167 s&@datadir@&$datadir&g 22168 s&@docdir@&$docdir&g 22169 s&@infodir@&$infodir&g 22170 s&@localedir@&$localedir&g 22171 s&@mandir@&$mandir&g 22172 s&\\\${datarootdir}&$datarootdir&g' ;; 22173 esac 22174 _ACEOF 22175 22176 # Neutralize VPATH when '$srcdir' = '.'. 22177 # Shell code in configure.ac might set extrasub. 22178 # FIXME: do we really want to maintain this feature? 22179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22180 ac_sed_extra="$ac_vpsub 22181 $extrasub 22182 _ACEOF 22183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22184 :t 22185 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22186 s|@configure_input@|$ac_sed_conf_input|;t t 22187 s&@top_builddir@&$ac_top_builddir_sub&;t t 22188 s&@top_build_prefix@&$ac_top_build_prefix&;t t 22189 s&@srcdir@&$ac_srcdir&;t t 22190 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22191 s&@top_srcdir@&$ac_top_srcdir&;t t 22192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22193 s&@builddir@&$ac_builddir&;t t 22194 s&@abs_builddir@&$ac_abs_builddir&;t t 22195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22196 s&@INSTALL@&$ac_INSTALL&;t t 22197 s&@MKDIR_P@&$ac_MKDIR_P&;t t 22198 $ac_datarootdir_hack 22199 " 22200 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22202 22203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22206 "$ac_tmp/out"`; test -z "$ac_out"; } && 22207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22208 which seems to be undefined. Please make sure it is defined" >&5 22209 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22210 which seems to be undefined. Please make sure it is defined" >&2;} 22211 22212 rm -f "$ac_tmp/stdin" 22213 case $ac_file in 22214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22216 esac \ 22217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22218 ;; 22219 :H) 22220 # 22221 # CONFIG_HEADER 22222 # 22223 if test x"$ac_file" != x-; then 22224 { 22225 printf "%s\n" "/* $configure_input */" >&1 \ 22226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22227 } >"$ac_tmp/config.h" \ 22228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22231 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22232 else 22233 rm -f "$ac_file" 22234 mv "$ac_tmp/config.h" "$ac_file" \ 22235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22236 fi 22237 else 22238 printf "%s\n" "/* $configure_input */" >&1 \ 22239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22240 || as_fn_error $? "could not create -" "$LINENO" 5 22241 fi 22242 # Compute "$ac_file"'s index in $config_headers. 22243 _am_arg="$ac_file" 22244 _am_stamp_count=1 22245 for _am_header in $config_headers :; do 22246 case $_am_header in 22247 $_am_arg | $_am_arg:* ) 22248 break ;; 22249 * ) 22250 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22251 esac 22252 done 22253 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22254 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22255 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22256 X"$_am_arg" : 'X\(//\)$' \| \ 22257 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22258 printf "%s\n" X"$_am_arg" | 22259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22260 s//\1/ 22261 q 22262 } 22263 /^X\(\/\/\)[^/].*/{ 22264 s//\1/ 22265 q 22266 } 22267 /^X\(\/\/\)$/{ 22268 s//\1/ 22269 q 22270 } 22271 /^X\(\/\).*/{ 22272 s//\1/ 22273 q 22274 } 22275 s/.*/./; q'`/stamp-h$_am_stamp_count 22276 ;; 22277 22278 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22279 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22280 ;; 22281 esac 22282 22283 22284 case $ac_file$ac_mode in 22285 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22286 # Older Autoconf quotes --file arguments for eval, but not when files 22287 # are listed without --file. Let's play safe and only enable the eval 22288 # if we detect the quoting. 22289 # TODO: see whether this extra hack can be removed once we start 22290 # requiring Autoconf 2.70 or later. 22291 case $CONFIG_FILES in #( 22292 *\'*) : 22293 eval set x "$CONFIG_FILES" ;; #( 22294 *) : 22295 set x $CONFIG_FILES ;; #( 22296 *) : 22297 ;; 22298 esac 22299 shift 22300 # Used to flag and report bootstrapping failures. 22301 am_rc=0 22302 for am_mf 22303 do 22304 # Strip MF so we end up with the name of the file. 22305 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22306 # Check whether this is an Automake generated Makefile which includes 22307 # dependency-tracking related rules and includes. 22308 # Grep'ing the whole file directly is not great: AIX grep has a line 22309 # limit of 2048, but all sed's we know have understand at least 4000. 22310 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22311 || continue 22312 am_dirpart=`$as_dirname -- "$am_mf" || 22313 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22314 X"$am_mf" : 'X\(//\)[^/]' \| \ 22315 X"$am_mf" : 'X\(//\)$' \| \ 22316 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22317 printf "%s\n" X"$am_mf" | 22318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22319 s//\1/ 22320 q 22321 } 22322 /^X\(\/\/\)[^/].*/{ 22323 s//\1/ 22324 q 22325 } 22326 /^X\(\/\/\)$/{ 22327 s//\1/ 22328 q 22329 } 22330 /^X\(\/\).*/{ 22331 s//\1/ 22332 q 22333 } 22334 s/.*/./; q'` 22335 am_filepart=`$as_basename -- "$am_mf" || 22336 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22337 X"$am_mf" : 'X\(//\)$' \| \ 22338 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22339 printf "%s\n" X/"$am_mf" | 22340 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22341 s//\1/ 22342 q 22343 } 22344 /^X\/\(\/\/\)$/{ 22345 s//\1/ 22346 q 22347 } 22348 /^X\/\(\/\).*/{ 22349 s//\1/ 22350 q 22351 } 22352 s/.*/./; q'` 22353 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22354 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22355 | $MAKE -f - am--depfiles" >&5 22356 (cd "$am_dirpart" \ 22357 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22358 | $MAKE -f - am--depfiles) >&5 2>&5 22359 ac_status=$? 22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22361 (exit $ac_status); } || am_rc=$? 22362 done 22363 if test $am_rc -ne 0; then 22364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22365 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22366 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22367 for automatic dependency tracking. If GNU make was not used, consider 22368 re-running the configure script with MAKE=\"gmake\" (or whatever is 22369 necessary). You can also try re-running configure with the 22370 '--disable-dependency-tracking' option to at least be able to build 22371 the package (albeit without support for automatic dependency tracking). 22372 See 'config.log' for more details" "$LINENO" 5; } 22373 fi 22374 { am_dirpart=; unset am_dirpart;} 22375 { am_filepart=; unset am_filepart;} 22376 { am_mf=; unset am_mf;} 22377 { am_rc=; unset am_rc;} 22378 rm -f conftest-deps.mk 22379 } 22380 ;; 22381 "libtool":C) 22382 22383 # See if we are running on zsh, and set the options that allow our 22384 # commands through without removal of \ escapes. 22385 if test -n "${ZSH_VERSION+set}"; then 22386 setopt NO_GLOB_SUBST 22387 fi 22388 22389 cfgfile=${ofile}T 22390 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22391 $RM "$cfgfile" 22392 22393 cat <<_LT_EOF >> "$cfgfile" 22394 #! $SHELL 22395 # Generated automatically by $as_me ($PACKAGE) $VERSION 22396 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22397 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22398 22399 # Provide generalized library-building support services. 22400 # Written by Gordon Matzigkeit, 1996 22401 22402 # Copyright (C) 2014 Free Software Foundation, Inc. 22403 # This is free software; see the source for copying conditions. There is NO 22404 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22405 22406 # GNU Libtool is free software; you can redistribute it and/or modify 22407 # it under the terms of the GNU General Public License as published by 22408 # the Free Software Foundation; either version 2 of of the License, or 22409 # (at your option) any later version. 22410 # 22411 # As a special exception to the GNU General Public License, if you 22412 # distribute this file as part of a program or library that is built 22413 # using GNU Libtool, you may include this file under the same 22414 # distribution terms that you use for the rest of that program. 22415 # 22416 # GNU Libtool is distributed in the hope that it will be useful, but 22417 # WITHOUT ANY WARRANTY; without even the implied warranty of 22418 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22419 # GNU General Public License for more details. 22420 # 22421 # You should have received a copy of the GNU General Public License 22422 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22423 22424 22425 # The names of the tagged configurations supported by this script. 22426 available_tags='' 22427 22428 # Configured defaults for sys_lib_dlsearch_path munging. 22429 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22430 22431 # ### BEGIN LIBTOOL CONFIG 22432 22433 # Which release of libtool.m4 was used? 22434 macro_version=$macro_version 22435 macro_revision=$macro_revision 22436 22437 # Whether or not to build static libraries. 22438 build_old_libs=$enable_static 22439 22440 # Whether or not to build shared libraries. 22441 build_libtool_libs=$enable_shared 22442 22443 # What type of objects to build. 22444 pic_mode=$pic_mode 22445 22446 # Whether or not to optimize for fast installation. 22447 fast_install=$enable_fast_install 22448 22449 # Shared archive member basename,for filename based shared library versioning on AIX. 22450 shared_archive_member_spec=$shared_archive_member_spec 22451 22452 # Shell to use when invoking shell scripts. 22453 SHELL=$lt_SHELL 22454 22455 # An echo program that protects backslashes. 22456 ECHO=$lt_ECHO 22457 22458 # The PATH separator for the build system. 22459 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22460 22461 # The host system. 22462 host_alias=$host_alias 22463 host=$host 22464 host_os=$host_os 22465 22466 # The build system. 22467 build_alias=$build_alias 22468 build=$build 22469 build_os=$build_os 22470 22471 # A sed program that does not truncate output. 22472 SED=$lt_SED 22473 22474 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22475 Xsed="\$SED -e 1s/^X//" 22476 22477 # A grep program that handles long lines. 22478 GREP=$lt_GREP 22479 22480 # An ERE matcher. 22481 EGREP=$lt_EGREP 22482 22483 # A literal string matcher. 22484 FGREP=$lt_FGREP 22485 22486 # A BSD- or MS-compatible name lister. 22487 NM=$lt_NM 22488 22489 # Whether we need soft or hard links. 22490 LN_S=$lt_LN_S 22491 22492 # What is the maximum length of a command? 22493 max_cmd_len=$max_cmd_len 22494 22495 # Object file suffix (normally "o"). 22496 objext=$ac_objext 22497 22498 # Executable file suffix (normally ""). 22499 exeext=$exeext 22500 22501 # whether the shell understands "unset". 22502 lt_unset=$lt_unset 22503 22504 # turn spaces into newlines. 22505 SP2NL=$lt_lt_SP2NL 22506 22507 # turn newlines into spaces. 22508 NL2SP=$lt_lt_NL2SP 22509 22510 # convert \$build file names to \$host format. 22511 to_host_file_cmd=$lt_cv_to_host_file_cmd 22512 22513 # convert \$build files to toolchain format. 22514 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22515 22516 # A file(cmd) program that detects file types. 22517 FILECMD=$lt_FILECMD 22518 22519 # An object symbol dumper. 22520 OBJDUMP=$lt_OBJDUMP 22521 22522 # Method to check whether dependent libraries are shared objects. 22523 deplibs_check_method=$lt_deplibs_check_method 22524 22525 # Command to use when deplibs_check_method = "file_magic". 22526 file_magic_cmd=$lt_file_magic_cmd 22527 22528 # How to find potential files when deplibs_check_method = "file_magic". 22529 file_magic_glob=$lt_file_magic_glob 22530 22531 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22532 want_nocaseglob=$lt_want_nocaseglob 22533 22534 # DLL creation program. 22535 DLLTOOL=$lt_DLLTOOL 22536 22537 # Command to associate shared and link libraries. 22538 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22539 22540 # The archiver. 22541 AR=$lt_AR 22542 22543 # Flags to create an archive (by configure). 22544 lt_ar_flags=$lt_ar_flags 22545 22546 # Flags to create an archive. 22547 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22548 22549 # How to feed a file listing to the archiver. 22550 archiver_list_spec=$lt_archiver_list_spec 22551 22552 # A symbol stripping program. 22553 STRIP=$lt_STRIP 22554 22555 # Commands used to install an old-style archive. 22556 RANLIB=$lt_RANLIB 22557 old_postinstall_cmds=$lt_old_postinstall_cmds 22558 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22559 22560 # Whether to use a lock for old archive extraction. 22561 lock_old_archive_extraction=$lock_old_archive_extraction 22562 22563 # A C compiler. 22564 LTCC=$lt_CC 22565 22566 # LTCC compiler flags. 22567 LTCFLAGS=$lt_CFLAGS 22568 22569 # Take the output of nm and produce a listing of raw symbols and C names. 22570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22571 22572 # Transform the output of nm in a proper C declaration. 22573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22574 22575 # Transform the output of nm into a list of symbols to manually relocate. 22576 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22577 22578 # Transform the output of nm in a C name address pair. 22579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22580 22581 # Transform the output of nm in a C name address pair when lib prefix is needed. 22582 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22583 22584 # The name lister interface. 22585 nm_interface=$lt_lt_cv_nm_interface 22586 22587 # Specify filename containing input files for \$NM. 22588 nm_file_list_spec=$lt_nm_file_list_spec 22589 22590 # The root where to search for dependent libraries,and where our libraries should be installed. 22591 lt_sysroot=$lt_sysroot 22592 22593 # Command to truncate a binary pipe. 22594 lt_truncate_bin=$lt_lt_cv_truncate_bin 22595 22596 # The name of the directory that contains temporary libtool files. 22597 objdir=$objdir 22598 22599 # Used to examine libraries when file_magic_cmd begins with "file". 22600 MAGIC_CMD=$MAGIC_CMD 22601 22602 # Must we lock files when doing compilation? 22603 need_locks=$lt_need_locks 22604 22605 # Manifest tool. 22606 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22607 22608 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22609 DSYMUTIL=$lt_DSYMUTIL 22610 22611 # Tool to change global to local symbols on Mac OS X. 22612 NMEDIT=$lt_NMEDIT 22613 22614 # Tool to manipulate fat objects and archives on Mac OS X. 22615 LIPO=$lt_LIPO 22616 22617 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22618 OTOOL=$lt_OTOOL 22619 22620 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22621 OTOOL64=$lt_OTOOL64 22622 22623 # Old archive suffix (normally "a"). 22624 libext=$libext 22625 22626 # Shared library suffix (normally ".so"). 22627 shrext_cmds=$lt_shrext_cmds 22628 22629 # The commands to extract the exported symbol list from a shared archive. 22630 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22631 22632 # Variables whose values should be saved in libtool wrapper scripts and 22633 # restored at link time. 22634 variables_saved_for_relink=$lt_variables_saved_for_relink 22635 22636 # Do we need the "lib" prefix for modules? 22637 need_lib_prefix=$need_lib_prefix 22638 22639 # Do we need a version for libraries? 22640 need_version=$need_version 22641 22642 # Library versioning type. 22643 version_type=$version_type 22644 22645 # Shared library runtime path variable. 22646 runpath_var=$runpath_var 22647 22648 # Shared library path variable. 22649 shlibpath_var=$shlibpath_var 22650 22651 # Is shlibpath searched before the hard-coded library search path? 22652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22653 22654 # Format of library name prefix. 22655 libname_spec=$lt_libname_spec 22656 22657 # List of archive names. First name is the real one, the rest are links. 22658 # The last name is the one that the linker finds with -lNAME 22659 library_names_spec=$lt_library_names_spec 22660 22661 # The coded name of the library, if different from the real name. 22662 soname_spec=$lt_soname_spec 22663 22664 # Permission mode override for installation of shared libraries. 22665 install_override_mode=$lt_install_override_mode 22666 22667 # Command to use after installation of a shared archive. 22668 postinstall_cmds=$lt_postinstall_cmds 22669 22670 # Command to use after uninstallation of a shared archive. 22671 postuninstall_cmds=$lt_postuninstall_cmds 22672 22673 # Commands used to finish a libtool library installation in a directory. 22674 finish_cmds=$lt_finish_cmds 22675 22676 # As "finish_cmds", except a single script fragment to be evaled but 22677 # not shown. 22678 finish_eval=$lt_finish_eval 22679 22680 # Whether we should hardcode library paths into libraries. 22681 hardcode_into_libs=$hardcode_into_libs 22682 22683 # Compile-time system search path for libraries. 22684 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22685 22686 # Detected run-time system search path for libraries. 22687 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22688 22689 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22690 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22691 22692 # Whether dlopen is supported. 22693 dlopen_support=$enable_dlopen 22694 22695 # Whether dlopen of programs is supported. 22696 dlopen_self=$enable_dlopen_self 22697 22698 # Whether dlopen of statically linked programs is supported. 22699 dlopen_self_static=$enable_dlopen_self_static 22700 22701 # Commands to strip libraries. 22702 old_striplib=$lt_old_striplib 22703 striplib=$lt_striplib 22704 22705 22706 # The linker used to build libraries. 22707 LD=$lt_LD 22708 22709 # How to create reloadable object files. 22710 reload_flag=$lt_reload_flag 22711 reload_cmds=$lt_reload_cmds 22712 22713 # Commands used to build an old-style archive. 22714 old_archive_cmds=$lt_old_archive_cmds 22715 22716 # A language specific compiler. 22717 CC=$lt_compiler 22718 22719 # Is the compiler the GNU compiler? 22720 with_gcc=$GCC 22721 22722 # Compiler flag to turn off builtin functions. 22723 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22724 22725 # Additional compiler flags for building library objects. 22726 pic_flag=$lt_lt_prog_compiler_pic 22727 22728 # How to pass a linker flag through the compiler. 22729 wl=$lt_lt_prog_compiler_wl 22730 22731 # Compiler flag to prevent dynamic linking. 22732 link_static_flag=$lt_lt_prog_compiler_static 22733 22734 # Does compiler simultaneously support -c and -o options? 22735 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22736 22737 # Whether or not to add -lc for building shared libraries. 22738 build_libtool_need_lc=$archive_cmds_need_lc 22739 22740 # Whether or not to disallow shared libs when runtime libs are static. 22741 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22742 22743 # Compiler flag to allow reflexive dlopens. 22744 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22745 22746 # Compiler flag to generate shared objects directly from archives. 22747 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22748 22749 # Whether the compiler copes with passing no objects directly. 22750 compiler_needs_object=$lt_compiler_needs_object 22751 22752 # Create an old-style archive from a shared archive. 22753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22754 22755 # Create a temporary old-style archive to link instead of a shared archive. 22756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22757 22758 # Commands used to build a shared archive. 22759 archive_cmds=$lt_archive_cmds 22760 archive_expsym_cmds=$lt_archive_expsym_cmds 22761 22762 # Commands used to build a loadable module if different from building 22763 # a shared archive. 22764 module_cmds=$lt_module_cmds 22765 module_expsym_cmds=$lt_module_expsym_cmds 22766 22767 # Whether we are building with GNU ld or not. 22768 with_gnu_ld=$lt_with_gnu_ld 22769 22770 # Flag that allows shared libraries with undefined symbols to be built. 22771 allow_undefined_flag=$lt_allow_undefined_flag 22772 22773 # Flag that enforces no undefined symbols. 22774 no_undefined_flag=$lt_no_undefined_flag 22775 22776 # Flag to hardcode \$libdir into a binary during linking. 22777 # This must work even if \$libdir does not exist 22778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22779 22780 # Whether we need a single "-rpath" flag with a separated argument. 22781 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22782 22783 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22784 # DIR into the resulting binary. 22785 hardcode_direct=$hardcode_direct 22786 22787 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22788 # DIR into the resulting binary and the resulting library dependency is 22789 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 22790 # library is relocated. 22791 hardcode_direct_absolute=$hardcode_direct_absolute 22792 22793 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22794 # into the resulting binary. 22795 hardcode_minus_L=$hardcode_minus_L 22796 22797 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22798 # into the resulting binary. 22799 hardcode_shlibpath_var=$hardcode_shlibpath_var 22800 22801 # Set to "yes" if building a shared library automatically hardcodes DIR 22802 # into the library and all subsequent libraries and executables linked 22803 # against it. 22804 hardcode_automatic=$hardcode_automatic 22805 22806 # Set to yes if linker adds runtime paths of dependent libraries 22807 # to runtime path list. 22808 inherit_rpath=$inherit_rpath 22809 22810 # Whether libtool must link a program against all its dependency libraries. 22811 link_all_deplibs=$link_all_deplibs 22812 22813 # Set to "yes" if exported symbols are required. 22814 always_export_symbols=$always_export_symbols 22815 22816 # The commands to list exported symbols. 22817 export_symbols_cmds=$lt_export_symbols_cmds 22818 22819 # Symbols that should not be listed in the preloaded symbols. 22820 exclude_expsyms=$lt_exclude_expsyms 22821 22822 # Symbols that must always be exported. 22823 include_expsyms=$lt_include_expsyms 22824 22825 # Commands necessary for linking programs (against libraries) with templates. 22826 prelink_cmds=$lt_prelink_cmds 22827 22828 # Commands necessary for finishing linking programs. 22829 postlink_cmds=$lt_postlink_cmds 22830 22831 # Specify filename containing input files. 22832 file_list_spec=$lt_file_list_spec 22833 22834 # How to hardcode a shared library path into an executable. 22835 hardcode_action=$hardcode_action 22836 22837 # ### END LIBTOOL CONFIG 22838 22839 _LT_EOF 22840 22841 cat <<'_LT_EOF' >> "$cfgfile" 22842 22843 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22844 22845 # func_munge_path_list VARIABLE PATH 22846 # ----------------------------------- 22847 # VARIABLE is name of variable containing _space_ separated list of 22848 # directories to be munged by the contents of PATH, which is string 22849 # having a format: 22850 # "DIR[:DIR]:" 22851 # string "DIR[ DIR]" will be prepended to VARIABLE 22852 # ":DIR[:DIR]" 22853 # string "DIR[ DIR]" will be appended to VARIABLE 22854 # "DIRP[:DIRP]::[DIRA:]DIRA" 22855 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22856 # "DIRA[ DIRA]" will be appended to VARIABLE 22857 # "DIR[:DIR]" 22858 # VARIABLE will be replaced by "DIR[ DIR]" 22859 func_munge_path_list () 22860 { 22861 case x$2 in 22862 x) 22863 ;; 22864 *:) 22865 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22866 ;; 22867 x:*) 22868 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22869 ;; 22870 *::*) 22871 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22872 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22873 ;; 22874 *) 22875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22876 ;; 22877 esac 22878 } 22879 22880 22881 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22882 func_cc_basename () 22883 { 22884 for cc_temp in $*""; do 22885 case $cc_temp in 22886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22888 \-*) ;; 22889 *) break;; 22890 esac 22891 done 22892 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22893 } 22894 22895 22896 # ### END FUNCTIONS SHARED WITH CONFIGURE 22897 22898 _LT_EOF 22899 22900 case $host_os in 22901 aix3*) 22902 cat <<\_LT_EOF >> "$cfgfile" 22903 # AIX sometimes has problems with the GCC collect2 program. For some 22904 # reason, if we set the COLLECT_NAMES environment variable, the problems 22905 # vanish in a puff of smoke. 22906 if test set != "${COLLECT_NAMES+set}"; then 22907 COLLECT_NAMES= 22908 export COLLECT_NAMES 22909 fi 22910 _LT_EOF 22911 ;; 22912 esac 22913 22914 22915 22916 ltmain=$ac_aux_dir/ltmain.sh 22917 22918 22919 # We use sed instead of cat because bash on DJGPP gets confused if 22920 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22921 # text mode, it properly converts lines to CR/LF. This bash problem 22922 # is reportedly fixed, but why not run on old versions too? 22923 $SED '$q' "$ltmain" >> "$cfgfile" \ 22924 || (rm -f "$cfgfile"; exit 1) 22925 22926 mv -f "$cfgfile" "$ofile" || 22927 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22928 chmod +x "$ofile" 22929 22930 ;; 22931 22932 esac 22933 done # for ac_tag 22934 22935 22936 as_fn_exit 0 22937 _ACEOF 22938 ac_clean_files=$ac_clean_files_save 22939 22940 test $ac_write_fail = 0 || 22941 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22942 22943 22944 # configure is writing to config.log, and then calls config.status. 22945 # config.status does its own redirection, appending to config.log. 22946 # Unfortunately, on DOS this fails, as config.log is still kept open 22947 # by configure, so config.status won't be able to write to it; its 22948 # output is simply discarded. So we exec the FD to /dev/null, 22949 # effectively closing config.log, so it can be properly (re)opened and 22950 # appended to by config.status. When coming back to configure, we 22951 # need to make the FD available again. 22952 if test "$no_create" != yes; then 22953 ac_cs_success=: 22954 ac_config_status_args= 22955 test "$silent" = yes && 22956 ac_config_status_args="$ac_config_status_args --quiet" 22957 exec 5>/dev/null 22958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22959 exec 5>>config.log 22960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22961 # would make configure fail if this is the last instruction. 22962 $ac_cs_success || as_fn_exit 1 22963 fi 22964 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22966 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22967 fi 22968 22969 22970 echo "" 22971 echo " prefix: $prefix" 22972 echo " exec_prefix: $exec_prefix" 22973 echo " libdir: $libdir" 22974 echo " includedir: $includedir" 22975 22976 echo "" 22977 echo " CFLAGS: $CFLAGS" 22978 echo " CXXFLAGS: $CXXFLAGS" 22979 echo " Macros: $DEFINES" 22980 22981 echo "" 22982 echo " Run '${MAKE-make}' to build xf86-video-nouveau" 22983 echo "" 22984 22985