1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for xf86-video-vesa 2.6.0. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 as_nop=: 21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29 else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed `exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152 else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177 fi 178 test x\$exitcode = x0 || exit 1 179 blah=\$(echo \$(echo blah)) 180 test x\"\$blah\" = xblah || exit 1 181 test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186 test \$(( 1 + 1 )) = 2 || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 195 if (eval "$as_required") 2>/dev/null 196 then : 197 as_have_required=yes 198 else $as_nop 199 as_have_required=no 200 fi 201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 202 then : 203 204 else $as_nop 205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 206 as_found=false 207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 208 do 209 IFS=$as_save_IFS 210 case $as_dir in #((( 211 '') as_dir=./ ;; 212 */) ;; 213 *) as_dir=$as_dir/ ;; 214 esac 215 as_found=: 216 case $as_dir in #( 217 /*) 218 for as_base in sh bash ksh sh5; do 219 # Try only shells that exist, to save several forks. 220 as_shell=$as_dir$as_base 221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 223 then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 226 then : 227 break 2 228 fi 229 fi 230 done;; 231 esac 232 as_found=false 233 done 234 IFS=$as_save_IFS 235 if $as_found 236 then : 237 238 else $as_nop 239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 241 then : 242 CONFIG_SHELL=$SHELL as_have_required=yes 243 fi 244 fi 245 246 247 if test "x$CONFIG_SHELL" != x 248 then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno 271 then : 272 printf "%s\n" "$0: This script requires a shell more modern than all" 273 printf "%s\n" "$0: the shells that I found on your system." 274 if test ${ZSH_VERSION+y} ; then 275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 277 else 278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 279 $0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/issues 280 $0: about your system, including any error possibly output 281 $0: before this message. Then install a modern shell, or 282 $0: manually run the script under such a shell if you do 283 $0: have one." 284 fi 285 exit 1 286 fi 287 fi 288 fi 289 SHELL=${CONFIG_SHELL-/bin/sh} 290 export SHELL 291 # Unset more variables known to interfere with behavior of common tools. 292 CLICOLOR_FORCE= GREP_OPTIONS= 293 unset CLICOLOR_FORCE GREP_OPTIONS 294 295 ## --------------------- ## 296 ## M4sh Shell Functions. ## 297 ## --------------------- ## 298 # as_fn_unset VAR 299 # --------------- 300 # Portably unset VAR. 301 as_fn_unset () 302 { 303 { eval $1=; unset $1;} 304 } 305 as_unset=as_fn_unset 306 307 308 # as_fn_set_status STATUS 309 # ----------------------- 310 # Set $? to STATUS, without forking. 311 as_fn_set_status () 312 { 313 return $1 314 } # as_fn_set_status 315 316 # as_fn_exit STATUS 317 # ----------------- 318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 319 as_fn_exit () 320 { 321 set +e 322 as_fn_set_status $1 323 exit $1 324 } # as_fn_exit 325 # as_fn_nop 326 # --------- 327 # Do nothing but, unlike ":", preserve the value of $?. 328 as_fn_nop () 329 { 330 return $? 331 } 332 as_nop=as_fn_nop 333 334 # as_fn_mkdir_p 335 # ------------- 336 # Create "$as_dir" as a directory, including parents if necessary. 337 as_fn_mkdir_p () 338 { 339 340 case $as_dir in #( 341 -*) as_dir=./$as_dir;; 342 esac 343 test -d "$as_dir" || eval $as_mkdir_p || { 344 as_dirs= 345 while :; do 346 case $as_dir in #( 347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 348 *) as_qdir=$as_dir;; 349 esac 350 as_dirs="'$as_qdir' $as_dirs" 351 as_dir=`$as_dirname -- "$as_dir" || 352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 353 X"$as_dir" : 'X\(//\)[^/]' \| \ 354 X"$as_dir" : 'X\(//\)$' \| \ 355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 356 printf "%s\n" X"$as_dir" | 357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)[^/].*/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\/\)$/{ 366 s//\1/ 367 q 368 } 369 /^X\(\/\).*/{ 370 s//\1/ 371 q 372 } 373 s/.*/./; q'` 374 test -d "$as_dir" && break 375 done 376 test -z "$as_dirs" || eval "mkdir $as_dirs" 377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 378 379 380 } # as_fn_mkdir_p 381 382 # as_fn_executable_p FILE 383 # ----------------------- 384 # Test if FILE is an executable regular file. 385 as_fn_executable_p () 386 { 387 test -f "$1" && test -x "$1" 388 } # as_fn_executable_p 389 # as_fn_append VAR VALUE 390 # ---------------------- 391 # Append the text in VALUE to the end of the definition contained in VAR. Take 392 # advantage of any shell optimizations that allow amortized linear growth over 393 # repeated appends, instead of the typical quadratic growth present in naive 394 # implementations. 395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 396 then : 397 eval 'as_fn_append () 398 { 399 eval $1+=\$2 400 }' 401 else $as_nop 402 as_fn_append () 403 { 404 eval $1=\$$1\$2 405 } 406 fi # as_fn_append 407 408 # as_fn_arith ARG... 409 # ------------------ 410 # Perform arithmetic evaluation on the ARGs, and store the result in the 411 # global $as_val. Take advantage of shells that can avoid forks. The arguments 412 # must be portable across $(()) and expr. 413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 414 then : 415 eval 'as_fn_arith () 416 { 417 as_val=$(( $* )) 418 }' 419 else $as_nop 420 as_fn_arith () 421 { 422 as_val=`expr "$@" || test $? -eq 1` 423 } 424 fi # as_fn_arith 425 426 # as_fn_nop 427 # --------- 428 # Do nothing but, unlike ":", preserve the value of $?. 429 as_fn_nop () 430 { 431 return $? 432 } 433 as_nop=as_fn_nop 434 435 # as_fn_error STATUS ERROR [LINENO LOG_FD] 436 # ---------------------------------------- 437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 439 # script with STATUS, using 1 if that was 0. 440 as_fn_error () 441 { 442 as_status=$1; test $as_status -eq 0 && as_status=1 443 if test "$4"; then 444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 446 fi 447 printf "%s\n" "$as_me: error: $2" >&2 448 as_fn_exit $as_status 449 } # as_fn_error 450 451 if expr a : '\(a\)' >/dev/null 2>&1 && 452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 453 as_expr=expr 454 else 455 as_expr=false 456 fi 457 458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 459 as_basename=basename 460 else 461 as_basename=false 462 fi 463 464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 465 as_dirname=dirname 466 else 467 as_dirname=false 468 fi 469 470 as_me=`$as_basename -- "$0" || 471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 472 X"$0" : 'X\(//\)$' \| \ 473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 474 printf "%s\n" X/"$0" | 475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 476 s//\1/ 477 q 478 } 479 /^X\/\(\/\/\)$/{ 480 s//\1/ 481 q 482 } 483 /^X\/\(\/\).*/{ 484 s//\1/ 485 q 486 } 487 s/.*/./; q'` 488 489 # Avoid depending upon Character Ranges. 490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 493 as_cr_digits='0123456789' 494 as_cr_alnum=$as_cr_Letters$as_cr_digits 495 496 497 as_lineno_1=$LINENO as_lineno_1a=$LINENO 498 as_lineno_2=$LINENO as_lineno_2a=$LINENO 499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 502 sed -n ' 503 p 504 /[$]LINENO/= 505 ' <$as_myself | 506 sed ' 507 s/[$]LINENO.*/&-/ 508 t lineno 509 b 510 :lineno 511 N 512 :loop 513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 514 t loop 515 s/-\n.*// 516 ' >$as_me.lineno && 517 chmod +x "$as_me.lineno" || 518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 519 520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 521 # already done that, so ensure we don't try to do so again and fall 522 # in an infinite loop. This has already happened in practice. 523 _as_can_reexec=no; export _as_can_reexec 524 # Don't try to exec as it changes $[0], causing all sort of problems 525 # (the dirname of $[0] is not the place where we might find the 526 # original and so on. Autoconf is especially sensitive to this). 527 . "./$as_me.lineno" 528 # Exit status is that of the last command. 529 exit 530 } 531 532 533 # Determine whether it's possible to make 'echo' print without a newline. 534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 535 # for compatibility with existing Makefiles. 536 ECHO_C= ECHO_N= ECHO_T= 537 case `echo -n x` in #((((( 538 -n*) 539 case `echo 'xy\c'` in 540 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 541 xy) ECHO_C='\c';; 542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 543 ECHO_T=' ';; 544 esac;; 545 *) 546 ECHO_N='-n';; 547 esac 548 549 # For backward compatibility with old third-party macros, we provide 550 # the shell variables $as_echo and $as_echo_n. New code should use 551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 552 as_echo='printf %s\n' 553 as_echo_n='printf %s' 554 555 556 rm -f conf$$ conf$$.exe conf$$.file 557 if test -d conf$$.dir; then 558 rm -f conf$$.dir/conf$$.file 559 else 560 rm -f conf$$.dir 561 mkdir conf$$.dir 2>/dev/null 562 fi 563 if (echo >conf$$.file) 2>/dev/null; then 564 if ln -s conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s='ln -s' 566 # ... but there are two gotchas: 567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 569 # In both cases, we have to default to `cp -pR'. 570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 571 as_ln_s='cp -pR' 572 elif ln conf$$.file conf$$ 2>/dev/null; then 573 as_ln_s=ln 574 else 575 as_ln_s='cp -pR' 576 fi 577 else 578 as_ln_s='cp -pR' 579 fi 580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 581 rmdir conf$$.dir 2>/dev/null 582 583 if mkdir -p . 2>/dev/null; then 584 as_mkdir_p='mkdir -p "$as_dir"' 585 else 586 test -d ./-p && rmdir ./-p 587 as_mkdir_p=false 588 fi 589 590 as_test_x='test -x' 591 as_executable_p=as_fn_executable_p 592 593 # Sed expression to map a string onto a valid CPP name. 594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 595 596 # Sed expression to map a string onto a valid variable name. 597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 598 599 SHELL=${CONFIG_SHELL-/bin/sh} 600 601 602 test -n "$DJDIR" || exec 7<&0 </dev/null 603 exec 6>&1 604 605 # Name of the host. 606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 607 # so uname gets run too. 608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 609 610 # 611 # Initializations. 612 # 613 ac_default_prefix=/usr/local 614 ac_clean_files= 615 ac_config_libobj_dir=. 616 LIBOBJS= 617 cross_compiling=no 618 subdirs= 619 MFLAGS= 620 MAKEFLAGS= 621 622 # Identity of this package. 623 PACKAGE_NAME='xf86-video-vesa' 624 PACKAGE_TARNAME='xf86-video-vesa' 625 PACKAGE_VERSION='2.6.0' 626 PACKAGE_STRING='xf86-video-vesa 2.6.0' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/issues' 628 PACKAGE_URL='' 629 630 ac_unique_file="Makefile.am" 631 # Factoring default headers for most tests. 632 ac_includes_default="\ 633 #include <stddef.h> 634 #ifdef HAVE_STDIO_H 635 # include <stdio.h> 636 #endif 637 #ifdef HAVE_STDLIB_H 638 # include <stdlib.h> 639 #endif 640 #ifdef HAVE_STRING_H 641 # include <string.h> 642 #endif 643 #ifdef HAVE_INTTYPES_H 644 # include <inttypes.h> 645 #endif 646 #ifdef HAVE_STDINT_H 647 # include <stdint.h> 648 #endif 649 #ifdef HAVE_STRINGS_H 650 # include <strings.h> 651 #endif 652 #ifdef HAVE_SYS_TYPES_H 653 # include <sys/types.h> 654 #endif 655 #ifdef HAVE_SYS_STAT_H 656 # include <sys/stat.h> 657 #endif 658 #ifdef HAVE_UNISTD_H 659 # include <unistd.h> 660 #endif" 661 662 ac_header_c_list= 663 ac_subst_vars='am__EXEEXT_FALSE 664 am__EXEEXT_TRUE 665 LTLIBOBJS 666 LIBOBJS 667 DRIVER_NAME 668 PCIACCESS_LIBS 669 PCIACCESS_CFLAGS 670 XEXT_LIBS 671 XEXT_CFLAGS 672 XORG_LIBS 673 XORG_CFLAGS 674 moduledir 675 LT_SYS_LIBRARY_PATH 676 OTOOL64 677 OTOOL 678 LIPO 679 NMEDIT 680 DSYMUTIL 681 MANIFEST_TOOL 682 RANLIB 683 ac_ct_AR 684 AR 685 DLLTOOL 686 OBJDUMP 687 FILECMD 688 LN_S 689 NM 690 ac_ct_DUMPBIN 691 DUMPBIN 692 LD 693 FGREP 694 EGREP 695 GREP 696 LIBTOOL 697 MAN_SUBSTS 698 XORG_MAN_PAGE 699 ADMIN_MAN_DIR 700 DRIVER_MAN_DIR 701 MISC_MAN_DIR 702 FILE_MAN_DIR 703 LIB_MAN_DIR 704 APP_MAN_DIR 705 ADMIN_MAN_SUFFIX 706 DRIVER_MAN_SUFFIX 707 MISC_MAN_SUFFIX 708 FILE_MAN_SUFFIX 709 LIB_MAN_SUFFIX 710 APP_MAN_SUFFIX 711 SED 712 host_os 713 host_vendor 714 host_cpu 715 host 716 build_os 717 build_vendor 718 build_cpu 719 build 720 INSTALL_CMD 721 PKG_CONFIG_LIBDIR 722 PKG_CONFIG_PATH 723 PKG_CONFIG 724 CHANGELOG_CMD 725 STRICT_CFLAGS 726 CWARNFLAGS 727 BASE_CFLAGS 728 am__fastdepCC_FALSE 729 am__fastdepCC_TRUE 730 CCDEPMODE 731 am__nodep 732 AMDEPBACKSLASH 733 AMDEP_FALSE 734 AMDEP_TRUE 735 am__include 736 DEPDIR 737 OBJEXT 738 EXEEXT 739 ac_ct_CC 740 CPPFLAGS 741 LDFLAGS 742 CFLAGS 743 CC 744 AM_BACKSLASH 745 AM_DEFAULT_VERBOSITY 746 AM_DEFAULT_V 747 AM_V 748 CSCOPE 749 ETAGS 750 CTAGS 751 am__untar 752 am__tar 753 AMTAR 754 am__leading_dot 755 SET_MAKE 756 AWK 757 mkdir_p 758 MKDIR_P 759 INSTALL_STRIP_PROGRAM 760 STRIP 761 install_sh 762 MAKEINFO 763 AUTOHEADER 764 AUTOMAKE 765 AUTOCONF 766 ACLOCAL 767 VERSION 768 PACKAGE 769 CYGPATH_W 770 am__isrc 771 INSTALL_DATA 772 INSTALL_SCRIPT 773 INSTALL_PROGRAM 774 target_alias 775 host_alias 776 build_alias 777 LIBS 778 ECHO_T 779 ECHO_N 780 ECHO_C 781 DEFS 782 mandir 783 localedir 784 libdir 785 psdir 786 pdfdir 787 dvidir 788 htmldir 789 infodir 790 docdir 791 oldincludedir 792 includedir 793 runstatedir 794 localstatedir 795 sharedstatedir 796 sysconfdir 797 datadir 798 datarootdir 799 libexecdir 800 sbindir 801 bindir 802 program_transform_name 803 prefix 804 exec_prefix 805 PACKAGE_URL 806 PACKAGE_BUGREPORT 807 PACKAGE_STRING 808 PACKAGE_VERSION 809 PACKAGE_TARNAME 810 PACKAGE_NAME 811 PATH_SEPARATOR 812 SHELL 813 am__quote' 814 ac_subst_files='' 815 ac_user_opts=' 816 enable_option_checking 817 enable_silent_rules 818 enable_dependency_tracking 819 enable_selective_werror 820 enable_strict_compilation 821 enable_static 822 enable_shared 823 with_pic 824 enable_fast_install 825 with_aix_soname 826 with_gnu_ld 827 with_sysroot 828 enable_libtool_lock 829 with_xorg_module_dir 830 ' 831 ac_precious_vars='build_alias 832 host_alias 833 target_alias 834 CC 835 CFLAGS 836 LDFLAGS 837 LIBS 838 CPPFLAGS 839 PKG_CONFIG 840 PKG_CONFIG_PATH 841 PKG_CONFIG_LIBDIR 842 LT_SYS_LIBRARY_PATH 843 XORG_CFLAGS 844 XORG_LIBS 845 XEXT_CFLAGS 846 XEXT_LIBS 847 PCIACCESS_CFLAGS 848 PCIACCESS_LIBS' 849 850 851 # Initialize some variables set by options. 852 ac_init_help= 853 ac_init_version=false 854 ac_unrecognized_opts= 855 ac_unrecognized_sep= 856 # The variables have the same names as the options, with 857 # dashes changed to underlines. 858 cache_file=/dev/null 859 exec_prefix=NONE 860 no_create= 861 no_recursion= 862 prefix=NONE 863 program_prefix=NONE 864 program_suffix=NONE 865 program_transform_name=s,x,x, 866 silent= 867 site= 868 srcdir= 869 verbose= 870 x_includes=NONE 871 x_libraries=NONE 872 873 # Installation directory options. 874 # These are left unexpanded so users can "make install exec_prefix=/foo" 875 # and all the variables that are supposed to be based on exec_prefix 876 # by default will actually change. 877 # Use braces instead of parens because sh, perl, etc. also accept them. 878 # (The list follows the same order as the GNU Coding Standards.) 879 bindir='${exec_prefix}/bin' 880 sbindir='${exec_prefix}/sbin' 881 libexecdir='${exec_prefix}/libexec' 882 datarootdir='${prefix}/share' 883 datadir='${datarootdir}' 884 sysconfdir='${prefix}/etc' 885 sharedstatedir='${prefix}/com' 886 localstatedir='${prefix}/var' 887 runstatedir='${localstatedir}/run' 888 includedir='${prefix}/include' 889 oldincludedir='/usr/include' 890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 891 infodir='${datarootdir}/info' 892 htmldir='${docdir}' 893 dvidir='${docdir}' 894 pdfdir='${docdir}' 895 psdir='${docdir}' 896 libdir='${exec_prefix}/lib' 897 localedir='${datarootdir}/locale' 898 mandir='${datarootdir}/man' 899 900 ac_prev= 901 ac_dashdash= 902 for ac_option 903 do 904 # If the previous option needs an argument, assign it. 905 if test -n "$ac_prev"; then 906 eval $ac_prev=\$ac_option 907 ac_prev= 908 continue 909 fi 910 911 case $ac_option in 912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 913 *=) ac_optarg= ;; 914 *) ac_optarg=yes ;; 915 esac 916 917 case $ac_dashdash$ac_option in 918 --) 919 ac_dashdash=yes ;; 920 921 -bindir | --bindir | --bindi | --bind | --bin | --bi) 922 ac_prev=bindir ;; 923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 924 bindir=$ac_optarg ;; 925 926 -build | --build | --buil | --bui | --bu) 927 ac_prev=build_alias ;; 928 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 929 build_alias=$ac_optarg ;; 930 931 -cache-file | --cache-file | --cache-fil | --cache-fi \ 932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 933 ac_prev=cache_file ;; 934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 936 cache_file=$ac_optarg ;; 937 938 --config-cache | -C) 939 cache_file=config.cache ;; 940 941 -datadir | --datadir | --datadi | --datad) 942 ac_prev=datadir ;; 943 -datadir=* | --datadir=* | --datadi=* | --datad=*) 944 datadir=$ac_optarg ;; 945 946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 947 | --dataroo | --dataro | --datar) 948 ac_prev=datarootdir ;; 949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 951 datarootdir=$ac_optarg ;; 952 953 -disable-* | --disable-*) 954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 955 # Reject names that are not valid shell variable names. 956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 957 as_fn_error $? "invalid feature name: \`$ac_useropt'" 958 ac_useropt_orig=$ac_useropt 959 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 960 case $ac_user_opts in 961 *" 962 "enable_$ac_useropt" 963 "*) ;; 964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 965 ac_unrecognized_sep=', ';; 966 esac 967 eval enable_$ac_useropt=no ;; 968 969 -docdir | --docdir | --docdi | --doc | --do) 970 ac_prev=docdir ;; 971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 972 docdir=$ac_optarg ;; 973 974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 975 ac_prev=dvidir ;; 976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 977 dvidir=$ac_optarg ;; 978 979 -enable-* | --enable-*) 980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 981 # Reject names that are not valid shell variable names. 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 983 as_fn_error $? "invalid feature name: \`$ac_useropt'" 984 ac_useropt_orig=$ac_useropt 985 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 986 case $ac_user_opts in 987 *" 988 "enable_$ac_useropt" 989 "*) ;; 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 991 ac_unrecognized_sep=', ';; 992 esac 993 eval enable_$ac_useropt=\$ac_optarg ;; 994 995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 997 | --exec | --exe | --ex) 998 ac_prev=exec_prefix ;; 999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1001 | --exec=* | --exe=* | --ex=*) 1002 exec_prefix=$ac_optarg ;; 1003 1004 -gas | --gas | --ga | --g) 1005 # Obsolete; use --with-gas. 1006 with_gas=yes ;; 1007 1008 -help | --help | --hel | --he | -h) 1009 ac_init_help=long ;; 1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1011 ac_init_help=recursive ;; 1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1013 ac_init_help=short ;; 1014 1015 -host | --host | --hos | --ho) 1016 ac_prev=host_alias ;; 1017 -host=* | --host=* | --hos=* | --ho=*) 1018 host_alias=$ac_optarg ;; 1019 1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1021 ac_prev=htmldir ;; 1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1023 | --ht=*) 1024 htmldir=$ac_optarg ;; 1025 1026 -includedir | --includedir | --includedi | --included | --include \ 1027 | --includ | --inclu | --incl | --inc) 1028 ac_prev=includedir ;; 1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1030 | --includ=* | --inclu=* | --incl=* | --inc=*) 1031 includedir=$ac_optarg ;; 1032 1033 -infodir | --infodir | --infodi | --infod | --info | --inf) 1034 ac_prev=infodir ;; 1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1036 infodir=$ac_optarg ;; 1037 1038 -libdir | --libdir | --libdi | --libd) 1039 ac_prev=libdir ;; 1040 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1041 libdir=$ac_optarg ;; 1042 1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1044 | --libexe | --libex | --libe) 1045 ac_prev=libexecdir ;; 1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1047 | --libexe=* | --libex=* | --libe=*) 1048 libexecdir=$ac_optarg ;; 1049 1050 -localedir | --localedir | --localedi | --localed | --locale) 1051 ac_prev=localedir ;; 1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1053 localedir=$ac_optarg ;; 1054 1055 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1056 | --localstate | --localstat | --localsta | --localst | --locals) 1057 ac_prev=localstatedir ;; 1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1060 localstatedir=$ac_optarg ;; 1061 1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1063 ac_prev=mandir ;; 1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1065 mandir=$ac_optarg ;; 1066 1067 -nfp | --nfp | --nf) 1068 # Obsolete; use --without-fp. 1069 with_fp=no ;; 1070 1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1072 | --no-cr | --no-c | -n) 1073 no_create=yes ;; 1074 1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1077 no_recursion=yes ;; 1078 1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1081 | --oldin | --oldi | --old | --ol | --o) 1082 ac_prev=oldincludedir ;; 1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1086 oldincludedir=$ac_optarg ;; 1087 1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1089 ac_prev=prefix ;; 1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1091 prefix=$ac_optarg ;; 1092 1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1094 | --program-pre | --program-pr | --program-p) 1095 ac_prev=program_prefix ;; 1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1098 program_prefix=$ac_optarg ;; 1099 1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1101 | --program-suf | --program-su | --program-s) 1102 ac_prev=program_suffix ;; 1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1105 program_suffix=$ac_optarg ;; 1106 1107 -program-transform-name | --program-transform-name \ 1108 | --program-transform-nam | --program-transform-na \ 1109 | --program-transform-n | --program-transform- \ 1110 | --program-transform | --program-transfor \ 1111 | --program-transfo | --program-transf \ 1112 | --program-trans | --program-tran \ 1113 | --progr-tra | --program-tr | --program-t) 1114 ac_prev=program_transform_name ;; 1115 -program-transform-name=* | --program-transform-name=* \ 1116 | --program-transform-nam=* | --program-transform-na=* \ 1117 | --program-transform-n=* | --program-transform-=* \ 1118 | --program-transform=* | --program-transfor=* \ 1119 | --program-transfo=* | --program-transf=* \ 1120 | --program-trans=* | --program-tran=* \ 1121 | --progr-tra=* | --program-tr=* | --program-t=*) 1122 program_transform_name=$ac_optarg ;; 1123 1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1125 ac_prev=pdfdir ;; 1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1127 pdfdir=$ac_optarg ;; 1128 1129 -psdir | --psdir | --psdi | --psd | --ps) 1130 ac_prev=psdir ;; 1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1132 psdir=$ac_optarg ;; 1133 1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1135 | -silent | --silent | --silen | --sile | --sil) 1136 silent=yes ;; 1137 1138 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1139 | --runstate | --runstat | --runsta | --runst | --runs \ 1140 | --run | --ru | --r) 1141 ac_prev=runstatedir ;; 1142 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1143 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1144 | --run=* | --ru=* | --r=*) 1145 runstatedir=$ac_optarg ;; 1146 1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1148 ac_prev=sbindir ;; 1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1150 | --sbi=* | --sb=*) 1151 sbindir=$ac_optarg ;; 1152 1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1155 | --sharedst | --shareds | --shared | --share | --shar \ 1156 | --sha | --sh) 1157 ac_prev=sharedstatedir ;; 1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1161 | --sha=* | --sh=*) 1162 sharedstatedir=$ac_optarg ;; 1163 1164 -site | --site | --sit) 1165 ac_prev=site ;; 1166 -site=* | --site=* | --sit=*) 1167 site=$ac_optarg ;; 1168 1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1170 ac_prev=srcdir ;; 1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1172 srcdir=$ac_optarg ;; 1173 1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1175 | --syscon | --sysco | --sysc | --sys | --sy) 1176 ac_prev=sysconfdir ;; 1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1179 sysconfdir=$ac_optarg ;; 1180 1181 -target | --target | --targe | --targ | --tar | --ta | --t) 1182 ac_prev=target_alias ;; 1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1184 target_alias=$ac_optarg ;; 1185 1186 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1187 verbose=yes ;; 1188 1189 -version | --version | --versio | --versi | --vers | -V) 1190 ac_init_version=: ;; 1191 1192 -with-* | --with-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: \`$ac_useropt'" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201 "with_$ac_useropt" 1202 "*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=\$ac_optarg ;; 1207 1208 -without-* | --without-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: \`$ac_useropt'" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217 "with_$ac_useropt" 1218 "*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=no ;; 1223 1224 --x) 1225 # Obsolete; use --with-x. 1226 with_x=yes ;; 1227 1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1229 | --x-incl | --x-inc | --x-in | --x-i) 1230 ac_prev=x_includes ;; 1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1233 x_includes=$ac_optarg ;; 1234 1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1237 ac_prev=x_libraries ;; 1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1240 x_libraries=$ac_optarg ;; 1241 1242 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1243 Try \`$0 --help' for more information" 1244 ;; 1245 1246 *=*) 1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1248 # Reject names that are not valid shell variable names. 1249 case $ac_envvar in #( 1250 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1252 esac 1253 eval $ac_envvar=\$ac_optarg 1254 export $ac_envvar ;; 1255 1256 *) 1257 # FIXME: should be removed in autoconf 3.0. 1258 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1260 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1262 ;; 1263 1264 esac 1265 done 1266 1267 if test -n "$ac_prev"; then 1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1269 as_fn_error $? "missing argument to $ac_option" 1270 fi 1271 1272 if test -n "$ac_unrecognized_opts"; then 1273 case $enable_option_checking in 1274 no) ;; 1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1276 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1277 esac 1278 fi 1279 1280 # Check all directory arguments for consistency. 1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir runstatedir 1285 do 1286 eval ac_val=\$$ac_var 1287 # Remove trailing slashes. 1288 case $ac_val in 1289 */ ) 1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1291 eval $ac_var=\$ac_val;; 1292 esac 1293 # Be sure to have absolute directory names. 1294 case $ac_val in 1295 [\\/$]* | ?:[\\/]* ) continue;; 1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1297 esac 1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1299 done 1300 1301 # There might be people who depend on the old broken behavior: `$host' 1302 # used to hold the argument of --host etc. 1303 # FIXME: To remove some day. 1304 build=$build_alias 1305 host=$host_alias 1306 target=$target_alias 1307 1308 # FIXME: To remove some day. 1309 if test "x$host_alias" != x; then 1310 if test "x$build_alias" = x; then 1311 cross_compiling=maybe 1312 elif test "x$build_alias" != "x$host_alias"; then 1313 cross_compiling=yes 1314 fi 1315 fi 1316 1317 ac_tool_prefix= 1318 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1319 1320 test "$silent" = yes && exec 6>/dev/null 1321 1322 1323 ac_pwd=`pwd` && test -n "$ac_pwd" && 1324 ac_ls_di=`ls -di .` && 1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1326 as_fn_error $? "working directory cannot be determined" 1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1328 as_fn_error $? "pwd does not report name of working directory" 1329 1330 1331 # Find the source files, if location was not specified. 1332 if test -z "$srcdir"; then 1333 ac_srcdir_defaulted=yes 1334 # Try the directory containing this script, then the parent directory. 1335 ac_confdir=`$as_dirname -- "$as_myself" || 1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1337 X"$as_myself" : 'X\(//\)[^/]' \| \ 1338 X"$as_myself" : 'X\(//\)$' \| \ 1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1340 printf "%s\n" X"$as_myself" | 1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)[^/].*/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\).*/{ 1354 s//\1/ 1355 q 1356 } 1357 s/.*/./; q'` 1358 srcdir=$ac_confdir 1359 if test ! -r "$srcdir/$ac_unique_file"; then 1360 srcdir=.. 1361 fi 1362 else 1363 ac_srcdir_defaulted=no 1364 fi 1365 if test ! -r "$srcdir/$ac_unique_file"; then 1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1368 fi 1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1370 ac_abs_confdir=`( 1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1372 pwd)` 1373 # When building in place, set srcdir=. 1374 if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376 fi 1377 # Remove unnecessary trailing slashes from srcdir. 1378 # Double slashes in file names in object file debugging info 1379 # mess up M-x gdb in Emacs. 1380 case $srcdir in 1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382 esac 1383 for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388 done 1389 1390 # 1391 # Report the --help message. 1392 # 1393 if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397 \`configure' configures xf86-video-vesa 2.6.0 to adapt to many kinds of systems. 1398 1399 Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402 VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404 Defaults for the options are specified in brackets. 1405 1406 Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking ...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417 Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423 By default, \`make install' will install all the files in 1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426 for instance \`--prefix=\$HOME'. 1427 1428 For better control, use the options below. 1429 1430 Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1438 --libdir=DIR object code libraries [EPREFIX/lib] 1439 --includedir=DIR C header files [PREFIX/include] 1440 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1443 --infodir=DIR info documentation [DATAROOTDIR/info] 1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1445 --mandir=DIR man documentation [DATAROOTDIR/man] 1446 --docdir=DIR documentation root [DATAROOTDIR/doc/xf86-video-vesa] 1447 --htmldir=DIR html documentation [DOCDIR] 1448 --dvidir=DIR dvi documentation [DOCDIR] 1449 --pdfdir=DIR pdf documentation [DOCDIR] 1450 --psdir=DIR ps documentation [DOCDIR] 1451 _ACEOF 1452 1453 cat <<\_ACEOF 1454 1455 Program names: 1456 --program-prefix=PREFIX prepend PREFIX to installed program names 1457 --program-suffix=SUFFIX append SUFFIX to installed program names 1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1459 1460 System types: 1461 --build=BUILD configure for building on BUILD [guessed] 1462 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1463 _ACEOF 1464 fi 1465 1466 if test -n "$ac_init_help"; then 1467 case $ac_init_help in 1468 short | recursive ) echo "Configuration of xf86-video-vesa 2.6.0:";; 1469 esac 1470 cat <<\_ACEOF 1471 1472 Optional Features: 1473 --disable-option-checking ignore unrecognized --enable/--with options 1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1476 --enable-silent-rules less verbose build output (undo: "make V=1") 1477 --disable-silent-rules verbose build output (undo: "make V=0") 1478 --enable-dependency-tracking 1479 do not reject slow dependency extractors 1480 --disable-dependency-tracking 1481 speeds up one-time build 1482 --disable-selective-werror 1483 Turn off selective compiler errors. (default: 1484 enabled) 1485 --enable-strict-compilation 1486 Enable all warnings from compiler and make them 1487 errors (default: disabled) 1488 --enable-static[=PKGS] build static libraries [default=no] 1489 --enable-shared[=PKGS] build shared libraries [default=yes] 1490 --enable-fast-install[=PKGS] 1491 optimize for fast installation [default=yes] 1492 --disable-libtool-lock avoid locking (might break parallel builds) 1493 1494 Optional Packages: 1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1498 both] 1499 --with-aix-soname=aix|svr4|both 1500 shared library versioning (aka "SONAME") variant to 1501 provide on AIX, [default=aix]. 1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1503 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1504 compiler's sysroot if not specified). 1505 --with-xorg-module-dir=DIR 1506 1507 Some influential environment variables: 1508 CC C compiler command 1509 CFLAGS C compiler flags 1510 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1511 nonstandard directory <lib dir> 1512 LIBS libraries to pass to the linker, e.g. -l<library> 1513 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1514 you have headers in a nonstandard directory <include dir> 1515 PKG_CONFIG path to pkg-config utility 1516 PKG_CONFIG_PATH 1517 directories to add to pkg-config's search path 1518 PKG_CONFIG_LIBDIR 1519 path overriding pkg-config's built-in search path 1520 LT_SYS_LIBRARY_PATH 1521 User-defined run-time library search path. 1522 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1523 XORG_LIBS linker flags for XORG, overriding pkg-config 1524 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1525 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1526 PCIACCESS_CFLAGS 1527 C compiler flags for PCIACCESS, overriding pkg-config 1528 PCIACCESS_LIBS 1529 linker flags for PCIACCESS, overriding pkg-config 1530 1531 Use these variables to override the choices made by `configure' or to help 1532 it to find libraries and programs with nonstandard names/locations. 1533 1534 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/issues>. 1535 _ACEOF 1536 ac_status=$? 1537 fi 1538 1539 if test "$ac_init_help" = "recursive"; then 1540 # If there are subdirs, report their specific --help. 1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1542 test -d "$ac_dir" || 1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1544 continue 1545 ac_builddir=. 1546 1547 case "$ac_dir" in 1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1549 *) 1550 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1551 # A ".." for each directory in $ac_dir_suffix. 1552 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1553 case $ac_top_builddir_sub in 1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1556 esac ;; 1557 esac 1558 ac_abs_top_builddir=$ac_pwd 1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1560 # for backward compatibility: 1561 ac_top_builddir=$ac_top_build_prefix 1562 1563 case $srcdir in 1564 .) # We are building in place. 1565 ac_srcdir=. 1566 ac_top_srcdir=$ac_top_builddir_sub 1567 ac_abs_top_srcdir=$ac_pwd ;; 1568 [\\/]* | ?:[\\/]* ) # Absolute name. 1569 ac_srcdir=$srcdir$ac_dir_suffix; 1570 ac_top_srcdir=$srcdir 1571 ac_abs_top_srcdir=$srcdir ;; 1572 *) # Relative name. 1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1574 ac_top_srcdir=$ac_top_build_prefix$srcdir 1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1576 esac 1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1578 1579 cd "$ac_dir" || { ac_status=$?; continue; } 1580 # Check for configure.gnu first; this name is used for a wrapper for 1581 # Metaconfig's "Configure" on case-insensitive file systems. 1582 if test -f "$ac_srcdir/configure.gnu"; then 1583 echo && 1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1585 elif test -f "$ac_srcdir/configure"; then 1586 echo && 1587 $SHELL "$ac_srcdir/configure" --help=recursive 1588 else 1589 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1590 fi || ac_status=$? 1591 cd "$ac_pwd" || { ac_status=$?; break; } 1592 done 1593 fi 1594 1595 test -n "$ac_init_help" && exit $ac_status 1596 if $ac_init_version; then 1597 cat <<\_ACEOF 1598 xf86-video-vesa configure 2.6.0 1599 generated by GNU Autoconf 2.71 1600 1601 Copyright (C) 2021 Free Software Foundation, Inc. 1602 This configure script is free software; the Free Software Foundation 1603 gives unlimited permission to copy, distribute and modify it. 1604 _ACEOF 1605 exit 1606 fi 1607 1608 ## ------------------------ ## 1609 ## Autoconf initialization. ## 1610 ## ------------------------ ## 1611 1612 # ac_fn_c_try_compile LINENO 1613 # -------------------------- 1614 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1615 ac_fn_c_try_compile () 1616 { 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 rm -f conftest.$ac_objext conftest.beam 1619 if { { ac_try="$ac_compile" 1620 case "(($ac_try" in 1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1622 *) ac_try_echo=$ac_try;; 1623 esac 1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1625 printf "%s\n" "$ac_try_echo"; } >&5 1626 (eval "$ac_compile") 2>conftest.err 1627 ac_status=$? 1628 if test -s conftest.err; then 1629 grep -v '^ *+' conftest.err >conftest.er1 1630 cat conftest.er1 >&5 1631 mv -f conftest.er1 conftest.err 1632 fi 1633 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1634 test $ac_status = 0; } && { 1635 test -z "$ac_c_werror_flag" || 1636 test ! -s conftest.err 1637 } && test -s conftest.$ac_objext 1638 then : 1639 ac_retval=0 1640 else $as_nop 1641 printf "%s\n" "$as_me: failed program was:" >&5 1642 sed 's/^/| /' conftest.$ac_ext >&5 1643 1644 ac_retval=1 1645 fi 1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647 as_fn_set_status $ac_retval 1648 1649 } # ac_fn_c_try_compile 1650 1651 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1652 # ------------------------------------------------------------------ 1653 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1654 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1655 ac_fn_check_decl () 1656 { 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 as_decl_name=`echo $2|sed 's/ *(.*//'` 1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1660 printf %s "checking whether $as_decl_name is declared... " >&6; } 1661 if eval test \${$3+y} 1662 then : 1663 printf %s "(cached) " >&6 1664 else $as_nop 1665 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1666 eval ac_save_FLAGS=\$$6 1667 as_fn_append $6 " $5" 1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669 /* end confdefs.h. */ 1670 $4 1671 int 1672 main (void) 1673 { 1674 #ifndef $as_decl_name 1675 #ifdef __cplusplus 1676 (void) $as_decl_use; 1677 #else 1678 (void) $as_decl_name; 1679 #endif 1680 #endif 1681 1682 ; 1683 return 0; 1684 } 1685 _ACEOF 1686 if ac_fn_c_try_compile "$LINENO" 1687 then : 1688 eval "$3=yes" 1689 else $as_nop 1690 eval "$3=no" 1691 fi 1692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1693 eval $6=\$ac_save_FLAGS 1694 1695 fi 1696 eval ac_res=\$$3 1697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1698 printf "%s\n" "$ac_res" >&6; } 1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1700 1701 } # ac_fn_check_decl 1702 1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1704 # ------------------------------------------------------- 1705 # Tests whether HEADER exists and can be compiled using the include files in 1706 # INCLUDES, setting the cache variable VAR accordingly. 1707 ac_fn_c_check_header_compile () 1708 { 1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1711 printf %s "checking for $2... " >&6; } 1712 if eval test \${$3+y} 1713 then : 1714 printf %s "(cached) " >&6 1715 else $as_nop 1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1717 /* end confdefs.h. */ 1718 $4 1719 #include <$2> 1720 _ACEOF 1721 if ac_fn_c_try_compile "$LINENO" 1722 then : 1723 eval "$3=yes" 1724 else $as_nop 1725 eval "$3=no" 1726 fi 1727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1728 fi 1729 eval ac_res=\$$3 1730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1731 printf "%s\n" "$ac_res" >&6; } 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 1734 } # ac_fn_c_check_header_compile 1735 1736 # ac_fn_c_try_link LINENO 1737 # ----------------------- 1738 # Try to link conftest.$ac_ext, and return whether this succeeded. 1739 ac_fn_c_try_link () 1740 { 1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1742 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1743 if { { ac_try="$ac_link" 1744 case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747 esac 1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749 printf "%s\n" "$ac_try_echo"; } >&5 1750 (eval "$ac_link") 2>conftest.err 1751 ac_status=$? 1752 if test -s conftest.err; then 1753 grep -v '^ *+' conftest.err >conftest.er1 1754 cat conftest.er1 >&5 1755 mv -f conftest.er1 conftest.err 1756 fi 1757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 test $ac_status = 0; } && { 1759 test -z "$ac_c_werror_flag" || 1760 test ! -s conftest.err 1761 } && test -s conftest$ac_exeext && { 1762 test "$cross_compiling" = yes || 1763 test -x conftest$ac_exeext 1764 } 1765 then : 1766 ac_retval=0 1767 else $as_nop 1768 printf "%s\n" "$as_me: failed program was:" >&5 1769 sed 's/^/| /' conftest.$ac_ext >&5 1770 1771 ac_retval=1 1772 fi 1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1775 # interfere with the next link command; also delete a directory that is 1776 # left behind by Apple's compiler. We do this before executing the actions. 1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 as_fn_set_status $ac_retval 1780 1781 } # ac_fn_c_try_link 1782 1783 # ac_fn_c_check_func LINENO FUNC VAR 1784 # ---------------------------------- 1785 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1786 ac_fn_c_check_func () 1787 { 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1790 printf %s "checking for $2... " >&6; } 1791 if eval test \${$3+y} 1792 then : 1793 printf %s "(cached) " >&6 1794 else $as_nop 1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1796 /* end confdefs.h. */ 1797 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1798 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1799 #define $2 innocuous_$2 1800 1801 /* System header to define __stub macros and hopefully few prototypes, 1802 which can conflict with char $2 (); below. */ 1803 1804 #include <limits.h> 1805 #undef $2 1806 1807 /* Override any GCC internal prototype to avoid an error. 1808 Use char because int might match the return type of a GCC 1809 builtin and then its argument prototype would still apply. */ 1810 #ifdef __cplusplus 1811 extern "C" 1812 #endif 1813 char $2 (); 1814 /* The GNU C library defines this for functions which it implements 1815 to always fail with ENOSYS. Some functions are actually named 1816 something starting with __ and the normal name is an alias. */ 1817 #if defined __stub_$2 || defined __stub___$2 1818 choke me 1819 #endif 1820 1821 int 1822 main (void) 1823 { 1824 return $2 (); 1825 ; 1826 return 0; 1827 } 1828 _ACEOF 1829 if ac_fn_c_try_link "$LINENO" 1830 then : 1831 eval "$3=yes" 1832 else $as_nop 1833 eval "$3=no" 1834 fi 1835 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1836 conftest$ac_exeext conftest.$ac_ext 1837 fi 1838 eval ac_res=\$$3 1839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1840 printf "%s\n" "$ac_res" >&6; } 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 1843 } # ac_fn_c_check_func 1844 ac_configure_args_raw= 1845 for ac_arg 1846 do 1847 case $ac_arg in 1848 *\'*) 1849 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1850 esac 1851 as_fn_append ac_configure_args_raw " '$ac_arg'" 1852 done 1853 1854 case $ac_configure_args_raw in 1855 *$as_nl*) 1856 ac_safe_unquote= ;; 1857 *) 1858 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1859 ac_unsafe_a="$ac_unsafe_z#~" 1860 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1861 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1862 esac 1863 1864 cat >config.log <<_ACEOF 1865 This file contains any messages produced by compilers while 1866 running configure, to aid debugging if configure makes a mistake. 1867 1868 It was created by xf86-video-vesa $as_me 2.6.0, which was 1869 generated by GNU Autoconf 2.71. Invocation command line was 1870 1871 $ $0$ac_configure_args_raw 1872 1873 _ACEOF 1874 exec 5>>config.log 1875 { 1876 cat <<_ASUNAME 1877 ## --------- ## 1878 ## Platform. ## 1879 ## --------- ## 1880 1881 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1882 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1883 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1884 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1885 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1886 1887 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1888 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1889 1890 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1891 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1892 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1893 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1894 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1895 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1896 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1897 1898 _ASUNAME 1899 1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1901 for as_dir in $PATH 1902 do 1903 IFS=$as_save_IFS 1904 case $as_dir in #((( 1905 '') as_dir=./ ;; 1906 */) ;; 1907 *) as_dir=$as_dir/ ;; 1908 esac 1909 printf "%s\n" "PATH: $as_dir" 1910 done 1911 IFS=$as_save_IFS 1912 1913 } >&5 1914 1915 cat >&5 <<_ACEOF 1916 1917 1918 ## ----------- ## 1919 ## Core tests. ## 1920 ## ----------- ## 1921 1922 _ACEOF 1923 1924 1925 # Keep a trace of the command line. 1926 # Strip out --no-create and --no-recursion so they do not pile up. 1927 # Strip out --silent because we don't want to record it for future runs. 1928 # Also quote any args containing shell meta-characters. 1929 # Make two passes to allow for proper duplicate-argument suppression. 1930 ac_configure_args= 1931 ac_configure_args0= 1932 ac_configure_args1= 1933 ac_must_keep_next=false 1934 for ac_pass in 1 2 1935 do 1936 for ac_arg 1937 do 1938 case $ac_arg in 1939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1941 | -silent | --silent | --silen | --sile | --sil) 1942 continue ;; 1943 *\'*) 1944 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1945 esac 1946 case $ac_pass in 1947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1948 2) 1949 as_fn_append ac_configure_args1 " '$ac_arg'" 1950 if test $ac_must_keep_next = true; then 1951 ac_must_keep_next=false # Got value, back to normal. 1952 else 1953 case $ac_arg in 1954 *=* | --config-cache | -C | -disable-* | --disable-* \ 1955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1957 | -with-* | --with-* | -without-* | --without-* | --x) 1958 case "$ac_configure_args0 " in 1959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1960 esac 1961 ;; 1962 -* ) ac_must_keep_next=true ;; 1963 esac 1964 fi 1965 as_fn_append ac_configure_args " '$ac_arg'" 1966 ;; 1967 esac 1968 done 1969 done 1970 { ac_configure_args0=; unset ac_configure_args0;} 1971 { ac_configure_args1=; unset ac_configure_args1;} 1972 1973 # When interrupted or exit'd, cleanup temporary files, and complete 1974 # config.log. We remove comments because anyway the quotes in there 1975 # would cause problems or look ugly. 1976 # WARNING: Use '\'' to represent an apostrophe within the trap. 1977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1978 trap 'exit_status=$? 1979 # Sanitize IFS. 1980 IFS=" "" $as_nl" 1981 # Save into config.log some information that might help in debugging. 1982 { 1983 echo 1984 1985 printf "%s\n" "## ---------------- ## 1986 ## Cache variables. ## 1987 ## ---------------- ##" 1988 echo 1989 # The following way of writing the cache mishandles newlines in values, 1990 ( 1991 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1992 eval ac_val=\$$ac_var 1993 case $ac_val in #( 1994 *${as_nl}*) 1995 case $ac_var in #( 1996 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1997 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1998 esac 1999 case $ac_var in #( 2000 _ | IFS | as_nl) ;; #( 2001 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2002 *) { eval $ac_var=; unset $ac_var;} ;; 2003 esac ;; 2004 esac 2005 done 2006 (set) 2>&1 | 2007 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2008 *${as_nl}ac_space=\ *) 2009 sed -n \ 2010 "s/'\''/'\''\\\\'\'''\''/g; 2011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2012 ;; #( 2013 *) 2014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2015 ;; 2016 esac | 2017 sort 2018 ) 2019 echo 2020 2021 printf "%s\n" "## ----------------- ## 2022 ## Output variables. ## 2023 ## ----------------- ##" 2024 echo 2025 for ac_var in $ac_subst_vars 2026 do 2027 eval ac_val=\$$ac_var 2028 case $ac_val in 2029 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2030 esac 2031 printf "%s\n" "$ac_var='\''$ac_val'\''" 2032 done | sort 2033 echo 2034 2035 if test -n "$ac_subst_files"; then 2036 printf "%s\n" "## ------------------- ## 2037 ## File substitutions. ## 2038 ## ------------------- ##" 2039 echo 2040 for ac_var in $ac_subst_files 2041 do 2042 eval ac_val=\$$ac_var 2043 case $ac_val in 2044 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2045 esac 2046 printf "%s\n" "$ac_var='\''$ac_val'\''" 2047 done | sort 2048 echo 2049 fi 2050 2051 if test -s confdefs.h; then 2052 printf "%s\n" "## ----------- ## 2053 ## confdefs.h. ## 2054 ## ----------- ##" 2055 echo 2056 cat confdefs.h 2057 echo 2058 fi 2059 test "$ac_signal" != 0 && 2060 printf "%s\n" "$as_me: caught signal $ac_signal" 2061 printf "%s\n" "$as_me: exit $exit_status" 2062 } >&5 2063 rm -f core *.core core.conftest.* && 2064 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2065 exit $exit_status 2066 ' 0 2067 for ac_signal in 1 2 13 15; do 2068 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2069 done 2070 ac_signal=0 2071 2072 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2073 rm -f -r conftest* confdefs.h 2074 2075 printf "%s\n" "/* confdefs.h */" > confdefs.h 2076 2077 # Predefined preprocessor variables. 2078 2079 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2080 2081 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2082 2083 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2084 2085 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2086 2087 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2088 2089 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2090 2091 2092 # Let the site file select an alternate cache file if it wants to. 2093 # Prefer an explicitly selected file to automatically selected ones. 2094 if test -n "$CONFIG_SITE"; then 2095 ac_site_files="$CONFIG_SITE" 2096 elif test "x$prefix" != xNONE; then 2097 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2098 else 2099 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2100 fi 2101 2102 for ac_site_file in $ac_site_files 2103 do 2104 case $ac_site_file in #( 2105 */*) : 2106 ;; #( 2107 *) : 2108 ac_site_file=./$ac_site_file ;; 2109 esac 2110 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2112 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2113 sed 's/^/| /' "$ac_site_file" >&5 2114 . "$ac_site_file" \ 2115 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2116 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2117 as_fn_error $? "failed to load site script $ac_site_file 2118 See \`config.log' for more details" "$LINENO" 5; } 2119 fi 2120 done 2121 2122 if test -r "$cache_file"; then 2123 # Some versions of bash will fail to source /dev/null (special files 2124 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2125 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2127 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2128 case $cache_file in 2129 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2130 *) . "./$cache_file";; 2131 esac 2132 fi 2133 else 2134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2135 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2136 >$cache_file 2137 fi 2138 2139 # Test code for whether the C compiler supports C89 (global declarations) 2140 ac_c_conftest_c89_globals=' 2141 /* Does the compiler advertise C89 conformance? 2142 Do not test the value of __STDC__, because some compilers set it to 0 2143 while being otherwise adequately conformant. */ 2144 #if !defined __STDC__ 2145 # error "Compiler does not advertise C89 conformance" 2146 #endif 2147 2148 #include <stddef.h> 2149 #include <stdarg.h> 2150 struct stat; 2151 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2152 struct buf { int x; }; 2153 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2154 static char *e (p, i) 2155 char **p; 2156 int i; 2157 { 2158 return p[i]; 2159 } 2160 static char *f (char * (*g) (char **, int), char **p, ...) 2161 { 2162 char *s; 2163 va_list v; 2164 va_start (v,p); 2165 s = g (p, va_arg (v,int)); 2166 va_end (v); 2167 return s; 2168 } 2169 2170 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2171 function prototypes and stuff, but not \xHH hex character constants. 2172 These do not provoke an error unfortunately, instead are silently treated 2173 as an "x". The following induces an error, until -std is added to get 2174 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2175 array size at least. It is necessary to write \x00 == 0 to get something 2176 that is true only with -std. */ 2177 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2178 2179 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2180 inside strings and character constants. */ 2181 #define FOO(x) '\''x'\'' 2182 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2183 2184 int test (int i, double x); 2185 struct s1 {int (*f) (int a);}; 2186 struct s2 {int (*f) (double a);}; 2187 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2188 int, int);' 2189 2190 # Test code for whether the C compiler supports C89 (body of main). 2191 ac_c_conftest_c89_main=' 2192 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2193 ' 2194 2195 # Test code for whether the C compiler supports C99 (global declarations) 2196 ac_c_conftest_c99_globals=' 2197 // Does the compiler advertise C99 conformance? 2198 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2199 # error "Compiler does not advertise C99 conformance" 2200 #endif 2201 2202 #include <stdbool.h> 2203 extern int puts (const char *); 2204 extern int printf (const char *, ...); 2205 extern int dprintf (int, const char *, ...); 2206 extern void *malloc (size_t); 2207 2208 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2209 // dprintf is used instead of fprintf to avoid needing to declare 2210 // FILE and stderr. 2211 #define debug(...) dprintf (2, __VA_ARGS__) 2212 #define showlist(...) puts (#__VA_ARGS__) 2213 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2214 static void 2215 test_varargs_macros (void) 2216 { 2217 int x = 1234; 2218 int y = 5678; 2219 debug ("Flag"); 2220 debug ("X = %d\n", x); 2221 showlist (The first, second, and third items.); 2222 report (x>y, "x is %d but y is %d", x, y); 2223 } 2224 2225 // Check long long types. 2226 #define BIG64 18446744073709551615ull 2227 #define BIG32 4294967295ul 2228 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2229 #if !BIG_OK 2230 #error "your preprocessor is broken" 2231 #endif 2232 #if BIG_OK 2233 #else 2234 #error "your preprocessor is broken" 2235 #endif 2236 static long long int bignum = -9223372036854775807LL; 2237 static unsigned long long int ubignum = BIG64; 2238 2239 struct incomplete_array 2240 { 2241 int datasize; 2242 double data[]; 2243 }; 2244 2245 struct named_init { 2246 int number; 2247 const wchar_t *name; 2248 double average; 2249 }; 2250 2251 typedef const char *ccp; 2252 2253 static inline int 2254 test_restrict (ccp restrict text) 2255 { 2256 // See if C++-style comments work. 2257 // Iterate through items via the restricted pointer. 2258 // Also check for declarations in for loops. 2259 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2260 continue; 2261 return 0; 2262 } 2263 2264 // Check varargs and va_copy. 2265 static bool 2266 test_varargs (const char *format, ...) 2267 { 2268 va_list args; 2269 va_start (args, format); 2270 va_list args_copy; 2271 va_copy (args_copy, args); 2272 2273 const char *str = ""; 2274 int number = 0; 2275 float fnumber = 0; 2276 2277 while (*format) 2278 { 2279 switch (*format++) 2280 { 2281 case '\''s'\'': // string 2282 str = va_arg (args_copy, const char *); 2283 break; 2284 case '\''d'\'': // int 2285 number = va_arg (args_copy, int); 2286 break; 2287 case '\''f'\'': // float 2288 fnumber = va_arg (args_copy, double); 2289 break; 2290 default: 2291 break; 2292 } 2293 } 2294 va_end (args_copy); 2295 va_end (args); 2296 2297 return *str && number && fnumber; 2298 } 2299 ' 2300 2301 # Test code for whether the C compiler supports C99 (body of main). 2302 ac_c_conftest_c99_main=' 2303 // Check bool. 2304 _Bool success = false; 2305 success |= (argc != 0); 2306 2307 // Check restrict. 2308 if (test_restrict ("String literal") == 0) 2309 success = true; 2310 char *restrict newvar = "Another string"; 2311 2312 // Check varargs. 2313 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2314 test_varargs_macros (); 2315 2316 // Check flexible array members. 2317 struct incomplete_array *ia = 2318 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2319 ia->datasize = 10; 2320 for (int i = 0; i < ia->datasize; ++i) 2321 ia->data[i] = i * 1.234; 2322 2323 // Check named initializers. 2324 struct named_init ni = { 2325 .number = 34, 2326 .name = L"Test wide string", 2327 .average = 543.34343, 2328 }; 2329 2330 ni.number = 58; 2331 2332 int dynamic_array[ni.number]; 2333 dynamic_array[0] = argv[0][0]; 2334 dynamic_array[ni.number - 1] = 543; 2335 2336 // work around unused variable warnings 2337 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2338 || dynamic_array[ni.number - 1] != 543); 2339 ' 2340 2341 # Test code for whether the C compiler supports C11 (global declarations) 2342 ac_c_conftest_c11_globals=' 2343 // Does the compiler advertise C11 conformance? 2344 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2345 # error "Compiler does not advertise C11 conformance" 2346 #endif 2347 2348 // Check _Alignas. 2349 char _Alignas (double) aligned_as_double; 2350 char _Alignas (0) no_special_alignment; 2351 extern char aligned_as_int; 2352 char _Alignas (0) _Alignas (int) aligned_as_int; 2353 2354 // Check _Alignof. 2355 enum 2356 { 2357 int_alignment = _Alignof (int), 2358 int_array_alignment = _Alignof (int[100]), 2359 char_alignment = _Alignof (char) 2360 }; 2361 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2362 2363 // Check _Noreturn. 2364 int _Noreturn does_not_return (void) { for (;;) continue; } 2365 2366 // Check _Static_assert. 2367 struct test_static_assert 2368 { 2369 int x; 2370 _Static_assert (sizeof (int) <= sizeof (long int), 2371 "_Static_assert does not work in struct"); 2372 long int y; 2373 }; 2374 2375 // Check UTF-8 literals. 2376 #define u8 syntax error! 2377 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2378 2379 // Check duplicate typedefs. 2380 typedef long *long_ptr; 2381 typedef long int *long_ptr; 2382 typedef long_ptr long_ptr; 2383 2384 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2385 struct anonymous 2386 { 2387 union { 2388 struct { int i; int j; }; 2389 struct { int k; long int l; } w; 2390 }; 2391 int m; 2392 } v1; 2393 ' 2394 2395 # Test code for whether the C compiler supports C11 (body of main). 2396 ac_c_conftest_c11_main=' 2397 _Static_assert ((offsetof (struct anonymous, i) 2398 == offsetof (struct anonymous, w.k)), 2399 "Anonymous union alignment botch"); 2400 v1.i = 2; 2401 v1.w.k = 5; 2402 ok |= v1.i != 5; 2403 ' 2404 2405 # Test code for whether the C compiler supports C11 (complete). 2406 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2407 ${ac_c_conftest_c99_globals} 2408 ${ac_c_conftest_c11_globals} 2409 2410 int 2411 main (int argc, char **argv) 2412 { 2413 int ok = 0; 2414 ${ac_c_conftest_c89_main} 2415 ${ac_c_conftest_c99_main} 2416 ${ac_c_conftest_c11_main} 2417 return ok; 2418 } 2419 " 2420 2421 # Test code for whether the C compiler supports C99 (complete). 2422 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2423 ${ac_c_conftest_c99_globals} 2424 2425 int 2426 main (int argc, char **argv) 2427 { 2428 int ok = 0; 2429 ${ac_c_conftest_c89_main} 2430 ${ac_c_conftest_c99_main} 2431 return ok; 2432 } 2433 " 2434 2435 # Test code for whether the C compiler supports C89 (complete). 2436 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2437 2438 int 2439 main (int argc, char **argv) 2440 { 2441 int ok = 0; 2442 ${ac_c_conftest_c89_main} 2443 return ok; 2444 } 2445 " 2446 2447 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2448 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2449 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2450 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2451 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2452 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2453 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2454 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2455 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2456 2457 # Auxiliary files required by this configure script. 2458 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh" 2459 2460 # Locations in which to look for auxiliary files. 2461 ac_aux_dir_candidates="${srcdir}/." 2462 2463 # Search for a directory containing all of the required auxiliary files, 2464 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2465 # If we don't find one directory that contains all the files we need, 2466 # we report the set of missing files from the *first* directory in 2467 # $ac_aux_dir_candidates and give up. 2468 ac_missing_aux_files="" 2469 ac_first_candidate=: 2470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2472 as_found=false 2473 for as_dir in $ac_aux_dir_candidates 2474 do 2475 IFS=$as_save_IFS 2476 case $as_dir in #((( 2477 '') as_dir=./ ;; 2478 */) ;; 2479 *) as_dir=$as_dir/ ;; 2480 esac 2481 as_found=: 2482 2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2484 ac_aux_dir_found=yes 2485 ac_install_sh= 2486 for ac_aux in $ac_aux_files 2487 do 2488 # As a special case, if "install-sh" is required, that requirement 2489 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2490 # and $ac_install_sh is set appropriately for whichever one is found. 2491 if test x"$ac_aux" = x"install-sh" 2492 then 2493 if test -f "${as_dir}install-sh"; then 2494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2495 ac_install_sh="${as_dir}install-sh -c" 2496 elif test -f "${as_dir}install.sh"; then 2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2498 ac_install_sh="${as_dir}install.sh -c" 2499 elif test -f "${as_dir}shtool"; then 2500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2501 ac_install_sh="${as_dir}shtool install -c" 2502 else 2503 ac_aux_dir_found=no 2504 if $ac_first_candidate; then 2505 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2506 else 2507 break 2508 fi 2509 fi 2510 else 2511 if test -f "${as_dir}${ac_aux}"; then 2512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2513 else 2514 ac_aux_dir_found=no 2515 if $ac_first_candidate; then 2516 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2517 else 2518 break 2519 fi 2520 fi 2521 fi 2522 done 2523 if test "$ac_aux_dir_found" = yes; then 2524 ac_aux_dir="$as_dir" 2525 break 2526 fi 2527 ac_first_candidate=false 2528 2529 as_found=false 2530 done 2531 IFS=$as_save_IFS 2532 if $as_found 2533 then : 2534 2535 else $as_nop 2536 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2537 fi 2538 2539 2540 # These three variables are undocumented and unsupported, 2541 # and are intended to be withdrawn in a future Autoconf release. 2542 # They can cause serious problems if a builder's source tree is in a directory 2543 # whose full name contains unusual characters. 2544 if test -f "${ac_aux_dir}config.guess"; then 2545 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2546 fi 2547 if test -f "${ac_aux_dir}config.sub"; then 2548 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2549 fi 2550 if test -f "$ac_aux_dir/configure"; then 2551 ac_configure="$SHELL ${ac_aux_dir}configure" 2552 fi 2553 2554 # Check that the precious variables saved in the cache have kept the same 2555 # value. 2556 ac_cache_corrupted=false 2557 for ac_var in $ac_precious_vars; do 2558 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2559 eval ac_new_set=\$ac_env_${ac_var}_set 2560 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2561 eval ac_new_val=\$ac_env_${ac_var}_value 2562 case $ac_old_set,$ac_new_set in 2563 set,) 2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2565 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2566 ac_cache_corrupted=: ;; 2567 ,set) 2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2569 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2570 ac_cache_corrupted=: ;; 2571 ,);; 2572 *) 2573 if test "x$ac_old_val" != "x$ac_new_val"; then 2574 # differences in whitespace do not lead to failure. 2575 ac_old_val_w=`echo x $ac_old_val` 2576 ac_new_val_w=`echo x $ac_new_val` 2577 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2579 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2580 ac_cache_corrupted=: 2581 else 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2583 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2584 eval $ac_var=\$ac_old_val 2585 fi 2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2587 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2589 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2590 fi;; 2591 esac 2592 # Pass precious variables to config.status. 2593 if test "$ac_new_set" = set; then 2594 case $ac_new_val in 2595 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2596 *) ac_arg=$ac_var=$ac_new_val ;; 2597 esac 2598 case " $ac_configure_args " in 2599 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2600 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2601 esac 2602 fi 2603 done 2604 if $ac_cache_corrupted; then 2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2606 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2608 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2609 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2610 and start over" "$LINENO" 5 2611 fi 2612 ## -------------------- ## 2613 ## Main body of script. ## 2614 ## -------------------- ## 2615 2616 ac_ext=c 2617 ac_cpp='$CPP $CPPFLAGS' 2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2621 2622 2623 2624 ac_config_headers="$ac_config_headers config.h" 2625 2626 2627 2628 # Initialize Automake 2629 am__api_version='1.16' 2630 2631 2632 2633 # Find a good install program. We prefer a C program (faster), 2634 # so one script is as good as another. But avoid the broken or 2635 # incompatible versions: 2636 # SysV /etc/install, /usr/sbin/install 2637 # SunOS /usr/etc/install 2638 # IRIX /sbin/install 2639 # AIX /bin/install 2640 # AmigaOS /C/install, which installs bootblocks on floppy discs 2641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2644 # OS/2's system install, which has a completely different semantic 2645 # ./install, which can be erroneously created by make from ./install.sh. 2646 # Reject install programs that cannot install multiple files. 2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2648 printf %s "checking for a BSD-compatible install... " >&6; } 2649 if test -z "$INSTALL"; then 2650 if test ${ac_cv_path_install+y} 2651 then : 2652 printf %s "(cached) " >&6 2653 else $as_nop 2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2655 for as_dir in $PATH 2656 do 2657 IFS=$as_save_IFS 2658 case $as_dir in #((( 2659 '') as_dir=./ ;; 2660 */) ;; 2661 *) as_dir=$as_dir/ ;; 2662 esac 2663 # Account for fact that we put trailing slashes in our PATH walk. 2664 case $as_dir in #(( 2665 ./ | /[cC]/* | \ 2666 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2667 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2668 /usr/ucb/* ) ;; 2669 *) 2670 # OSF1 and SCO ODT 3.0 have their own names for install. 2671 # Don't use installbsd from OSF since it installs stuff as root 2672 # by default. 2673 for ac_prog in ginstall scoinst install; do 2674 for ac_exec_ext in '' $ac_executable_extensions; do 2675 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2676 if test $ac_prog = install && 2677 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2678 # AIX install. It has an incompatible calling convention. 2679 : 2680 elif test $ac_prog = install && 2681 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2682 # program-specific install script used by HP pwplus--don't use. 2683 : 2684 else 2685 rm -rf conftest.one conftest.two conftest.dir 2686 echo one > conftest.one 2687 echo two > conftest.two 2688 mkdir conftest.dir 2689 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2690 test -s conftest.one && test -s conftest.two && 2691 test -s conftest.dir/conftest.one && 2692 test -s conftest.dir/conftest.two 2693 then 2694 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2695 break 3 2696 fi 2697 fi 2698 fi 2699 done 2700 done 2701 ;; 2702 esac 2703 2704 done 2705 IFS=$as_save_IFS 2706 2707 rm -rf conftest.one conftest.two conftest.dir 2708 2709 fi 2710 if test ${ac_cv_path_install+y}; then 2711 INSTALL=$ac_cv_path_install 2712 else 2713 # As a last resort, use the slow shell script. Don't cache a 2714 # value for INSTALL within a source directory, because that will 2715 # break other packages using the cache if that directory is 2716 # removed, or if the value is a relative name. 2717 INSTALL=$ac_install_sh 2718 fi 2719 fi 2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2721 printf "%s\n" "$INSTALL" >&6; } 2722 2723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2724 # It thinks the first close brace ends the variable substitution. 2725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2726 2727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2728 2729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2730 2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2732 printf %s "checking whether build environment is sane... " >&6; } 2733 # Reject unsafe characters in $srcdir or the absolute working directory 2734 # name. Accept space and tab only in the latter. 2735 am_lf=' 2736 ' 2737 case `pwd` in 2738 *[\\\"\#\$\&\'\`$am_lf]*) 2739 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2740 esac 2741 case $srcdir in 2742 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2743 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2744 esac 2745 2746 # Do 'set' in a subshell so we don't clobber the current shell's 2747 # arguments. Must try -L first in case configure is actually a 2748 # symlink; some systems play weird games with the mod time of symlinks 2749 # (eg FreeBSD returns the mod time of the symlink's containing 2750 # directory). 2751 if ( 2752 am_has_slept=no 2753 for am_try in 1 2; do 2754 echo "timestamp, slept: $am_has_slept" > conftest.file 2755 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2756 if test "$*" = "X"; then 2757 # -L didn't work. 2758 set X `ls -t "$srcdir/configure" conftest.file` 2759 fi 2760 if test "$*" != "X $srcdir/configure conftest.file" \ 2761 && test "$*" != "X conftest.file $srcdir/configure"; then 2762 2763 # If neither matched, then we have a broken ls. This can happen 2764 # if, for instance, CONFIG_SHELL is bash and it inherits a 2765 # broken ls alias from the environment. This has actually 2766 # happened. Such a system could not be considered "sane". 2767 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2768 alias in your environment" "$LINENO" 5 2769 fi 2770 if test "$2" = conftest.file || test $am_try -eq 2; then 2771 break 2772 fi 2773 # Just in case. 2774 sleep 1 2775 am_has_slept=yes 2776 done 2777 test "$2" = conftest.file 2778 ) 2779 then 2780 # Ok. 2781 : 2782 else 2783 as_fn_error $? "newly created file is older than distributed files! 2784 Check your system clock" "$LINENO" 5 2785 fi 2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2787 printf "%s\n" "yes" >&6; } 2788 # If we didn't sleep, we still need to ensure time stamps of config.status and 2789 # generated files are strictly newer. 2790 am_sleep_pid= 2791 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2792 ( sleep 1 ) & 2793 am_sleep_pid=$! 2794 fi 2795 2796 rm -f conftest.file 2797 2798 test "$program_prefix" != NONE && 2799 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2800 # Use a double $ so make ignores it. 2801 test "$program_suffix" != NONE && 2802 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2803 # Double any \ or $. 2804 # By default was `s,x,x', remove it if useless. 2805 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2806 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2807 2808 2809 # Expand $ac_aux_dir to an absolute path. 2810 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2811 2812 2813 if test x"${MISSING+set}" != xset; then 2814 MISSING="\${SHELL} '$am_aux_dir/missing'" 2815 fi 2816 # Use eval to expand $SHELL 2817 if eval "$MISSING --is-lightweight"; then 2818 am_missing_run="$MISSING " 2819 else 2820 am_missing_run= 2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2822 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2823 fi 2824 2825 if test x"${install_sh+set}" != xset; then 2826 case $am_aux_dir in 2827 *\ * | *\ *) 2828 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2829 *) 2830 install_sh="\${SHELL} $am_aux_dir/install-sh" 2831 esac 2832 fi 2833 2834 # Installed binaries are usually stripped using 'strip' when the user 2835 # run "make install-strip". However 'strip' might not be the right 2836 # tool to use in cross-compilation environments, therefore Automake 2837 # will honor the 'STRIP' environment variable to overrule this program. 2838 if test "$cross_compiling" != no; then 2839 if test -n "$ac_tool_prefix"; then 2840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2841 set dummy ${ac_tool_prefix}strip; ac_word=$2 2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2843 printf %s "checking for $ac_word... " >&6; } 2844 if test ${ac_cv_prog_STRIP+y} 2845 then : 2846 printf %s "(cached) " >&6 2847 else $as_nop 2848 if test -n "$STRIP"; then 2849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2850 else 2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2852 for as_dir in $PATH 2853 do 2854 IFS=$as_save_IFS 2855 case $as_dir in #((( 2856 '') as_dir=./ ;; 2857 */) ;; 2858 *) as_dir=$as_dir/ ;; 2859 esac 2860 for ac_exec_ext in '' $ac_executable_extensions; do 2861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2862 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2864 break 2 2865 fi 2866 done 2867 done 2868 IFS=$as_save_IFS 2869 2870 fi 2871 fi 2872 STRIP=$ac_cv_prog_STRIP 2873 if test -n "$STRIP"; then 2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2875 printf "%s\n" "$STRIP" >&6; } 2876 else 2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2878 printf "%s\n" "no" >&6; } 2879 fi 2880 2881 2882 fi 2883 if test -z "$ac_cv_prog_STRIP"; then 2884 ac_ct_STRIP=$STRIP 2885 # Extract the first word of "strip", so it can be a program name with args. 2886 set dummy strip; ac_word=$2 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888 printf %s "checking for $ac_word... " >&6; } 2889 if test ${ac_cv_prog_ac_ct_STRIP+y} 2890 then : 2891 printf %s "(cached) " >&6 2892 else $as_nop 2893 if test -n "$ac_ct_STRIP"; then 2894 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2895 else 2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897 for as_dir in $PATH 2898 do 2899 IFS=$as_save_IFS 2900 case $as_dir in #((( 2901 '') as_dir=./ ;; 2902 */) ;; 2903 *) as_dir=$as_dir/ ;; 2904 esac 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2907 ac_cv_prog_ac_ct_STRIP="strip" 2908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2909 break 2 2910 fi 2911 done 2912 done 2913 IFS=$as_save_IFS 2914 2915 fi 2916 fi 2917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2918 if test -n "$ac_ct_STRIP"; then 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2920 printf "%s\n" "$ac_ct_STRIP" >&6; } 2921 else 2922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2923 printf "%s\n" "no" >&6; } 2924 fi 2925 2926 if test "x$ac_ct_STRIP" = x; then 2927 STRIP=":" 2928 else 2929 case $cross_compiling:$ac_tool_warned in 2930 yes:) 2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2933 ac_tool_warned=yes ;; 2934 esac 2935 STRIP=$ac_ct_STRIP 2936 fi 2937 else 2938 STRIP="$ac_cv_prog_STRIP" 2939 fi 2940 2941 fi 2942 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2943 2944 2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2946 printf %s "checking for a race-free mkdir -p... " >&6; } 2947 if test -z "$MKDIR_P"; then 2948 if test ${ac_cv_path_mkdir+y} 2949 then : 2950 printf %s "(cached) " >&6 2951 else $as_nop 2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2953 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2954 do 2955 IFS=$as_save_IFS 2956 case $as_dir in #((( 2957 '') as_dir=./ ;; 2958 */) ;; 2959 *) as_dir=$as_dir/ ;; 2960 esac 2961 for ac_prog in mkdir gmkdir; do 2962 for ac_exec_ext in '' $ac_executable_extensions; do 2963 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2964 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2965 'mkdir ('*'coreutils) '* | \ 2966 'BusyBox '* | \ 2967 'mkdir (fileutils) '4.1*) 2968 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2969 break 3;; 2970 esac 2971 done 2972 done 2973 done 2974 IFS=$as_save_IFS 2975 2976 fi 2977 2978 test -d ./--version && rmdir ./--version 2979 if test ${ac_cv_path_mkdir+y}; then 2980 MKDIR_P="$ac_cv_path_mkdir -p" 2981 else 2982 # As a last resort, use the slow shell script. Don't cache a 2983 # value for MKDIR_P within a source directory, because that will 2984 # break other packages using the cache if that directory is 2985 # removed, or if the value is a relative name. 2986 MKDIR_P="$ac_install_sh -d" 2987 fi 2988 fi 2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2990 printf "%s\n" "$MKDIR_P" >&6; } 2991 2992 for ac_prog in gawk mawk nawk awk 2993 do 2994 # Extract the first word of "$ac_prog", so it can be a program name with args. 2995 set dummy $ac_prog; ac_word=$2 2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2997 printf %s "checking for $ac_word... " >&6; } 2998 if test ${ac_cv_prog_AWK+y} 2999 then : 3000 printf %s "(cached) " >&6 3001 else $as_nop 3002 if test -n "$AWK"; then 3003 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3004 else 3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3006 for as_dir in $PATH 3007 do 3008 IFS=$as_save_IFS 3009 case $as_dir in #((( 3010 '') as_dir=./ ;; 3011 */) ;; 3012 *) as_dir=$as_dir/ ;; 3013 esac 3014 for ac_exec_ext in '' $ac_executable_extensions; do 3015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3016 ac_cv_prog_AWK="$ac_prog" 3017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3018 break 2 3019 fi 3020 done 3021 done 3022 IFS=$as_save_IFS 3023 3024 fi 3025 fi 3026 AWK=$ac_cv_prog_AWK 3027 if test -n "$AWK"; then 3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3029 printf "%s\n" "$AWK" >&6; } 3030 else 3031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3032 printf "%s\n" "no" >&6; } 3033 fi 3034 3035 3036 test -n "$AWK" && break 3037 done 3038 3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3040 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3041 set x ${MAKE-make} 3042 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3043 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3044 then : 3045 printf %s "(cached) " >&6 3046 else $as_nop 3047 cat >conftest.make <<\_ACEOF 3048 SHELL = /bin/sh 3049 all: 3050 @echo '@@@%%%=$(MAKE)=@@@%%%' 3051 _ACEOF 3052 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3053 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3054 *@@@%%%=?*=@@@%%%*) 3055 eval ac_cv_prog_make_${ac_make}_set=yes;; 3056 *) 3057 eval ac_cv_prog_make_${ac_make}_set=no;; 3058 esac 3059 rm -f conftest.make 3060 fi 3061 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3063 printf "%s\n" "yes" >&6; } 3064 SET_MAKE= 3065 else 3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067 printf "%s\n" "no" >&6; } 3068 SET_MAKE="MAKE=${MAKE-make}" 3069 fi 3070 3071 rm -rf .tst 2>/dev/null 3072 mkdir .tst 2>/dev/null 3073 if test -d .tst; then 3074 am__leading_dot=. 3075 else 3076 am__leading_dot=_ 3077 fi 3078 rmdir .tst 2>/dev/null 3079 3080 # Check whether --enable-silent-rules was given. 3081 if test ${enable_silent_rules+y} 3082 then : 3083 enableval=$enable_silent_rules; 3084 fi 3085 3086 case $enable_silent_rules in # ((( 3087 yes) AM_DEFAULT_VERBOSITY=0;; 3088 no) AM_DEFAULT_VERBOSITY=1;; 3089 *) AM_DEFAULT_VERBOSITY=1;; 3090 esac 3091 am_make=${MAKE-make} 3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3093 printf %s "checking whether $am_make supports nested variables... " >&6; } 3094 if test ${am_cv_make_support_nested_variables+y} 3095 then : 3096 printf %s "(cached) " >&6 3097 else $as_nop 3098 if printf "%s\n" 'TRUE=$(BAR$(V)) 3099 BAR0=false 3100 BAR1=true 3101 V=1 3102 am__doit: 3103 @$(TRUE) 3104 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3105 am_cv_make_support_nested_variables=yes 3106 else 3107 am_cv_make_support_nested_variables=no 3108 fi 3109 fi 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3111 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3112 if test $am_cv_make_support_nested_variables = yes; then 3113 AM_V='$(V)' 3114 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3115 else 3116 AM_V=$AM_DEFAULT_VERBOSITY 3117 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3118 fi 3119 AM_BACKSLASH='\' 3120 3121 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3122 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3123 # is not polluted with repeated "-I." 3124 am__isrc=' -I$(srcdir)' 3125 # test to see if srcdir already configured 3126 if test -f $srcdir/config.status; then 3127 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3128 fi 3129 fi 3130 3131 # test whether we have cygpath 3132 if test -z "$CYGPATH_W"; then 3133 if (cygpath --version) >/dev/null 2>/dev/null; then 3134 CYGPATH_W='cygpath -w' 3135 else 3136 CYGPATH_W=echo 3137 fi 3138 fi 3139 3140 3141 # Define the identity of the package. 3142 PACKAGE='xf86-video-vesa' 3143 VERSION='2.6.0' 3144 3145 3146 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3147 3148 3149 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3150 3151 # Some tools Automake needs. 3152 3153 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3154 3155 3156 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3157 3158 3159 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3160 3161 3162 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3163 3164 3165 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3166 3167 # For better backward compatibility. To be removed once Automake 1.9.x 3168 # dies out for good. For more background, see: 3169 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3170 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3171 mkdir_p='$(MKDIR_P)' 3172 3173 # We need awk for the "check" target (and possibly the TAP driver). The 3174 # system "awk" is bad on some platforms. 3175 # Always define AMTAR for backward compatibility. Yes, it's still used 3176 # in the wild :-( We should find a proper way to deprecate it ... 3177 AMTAR='$${TAR-tar}' 3178 3179 3180 # We'll loop over all known methods to create a tar archive until one works. 3181 _am_tools='gnutar pax cpio none' 3182 3183 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3184 3185 3186 3187 3188 3189 # Variables for tags utilities; see am/tags.am 3190 if test -z "$CTAGS"; then 3191 CTAGS=ctags 3192 fi 3193 3194 if test -z "$ETAGS"; then 3195 ETAGS=etags 3196 fi 3197 3198 if test -z "$CSCOPE"; then 3199 CSCOPE=cscope 3200 fi 3201 3202 3203 3204 # POSIX will say in a future version that running "rm -f" with no argument 3205 # is OK; and we want to be able to make that assumption in our Makefile 3206 # recipes. So use an aggressive probe to check that the usage we want is 3207 # actually supported "in the wild" to an acceptable degree. 3208 # See automake bug#10828. 3209 # To make any issue more visible, cause the running configure to be aborted 3210 # by default if the 'rm' program in use doesn't match our expectations; the 3211 # user can still override this though. 3212 if rm -f && rm -fr && rm -rf; then : OK; else 3213 cat >&2 <<'END' 3214 Oops! 3215 3216 Your 'rm' program seems unable to run without file operands specified 3217 on the command line, even when the '-f' option is present. This is contrary 3218 to the behaviour of most rm programs out there, and not conforming with 3219 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3220 3221 Please tell bug-automake@gnu.org about your system, including the value 3222 of your $PATH and any error possibly output before this message. This 3223 can help us improve future automake versions. 3224 3225 END 3226 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3227 echo 'Configuration will proceed anyway, since you have set the' >&2 3228 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3229 echo >&2 3230 else 3231 cat >&2 <<'END' 3232 Aborting the configuration process, to ensure you take notice of the issue. 3233 3234 You can download and install GNU coreutils to get an 'rm' implementation 3235 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3236 3237 If you want to complete the configuration process using your problematic 3238 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3239 to "yes", and re-run configure. 3240 3241 END 3242 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3243 fi 3244 fi 3245 3246 3247 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 DEPDIR="${am__leading_dot}deps" 3269 3270 ac_config_commands="$ac_config_commands depfiles" 3271 3272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3273 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3274 cat > confinc.mk << 'END' 3275 am__doit: 3276 @echo this is the am__doit target >confinc.out 3277 .PHONY: am__doit 3278 END 3279 am__include="#" 3280 am__quote= 3281 # BSD make does it like this. 3282 echo '.include "confinc.mk" # ignored' > confmf.BSD 3283 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3284 echo 'include confinc.mk # ignored' > confmf.GNU 3285 _am_result=no 3286 for s in GNU BSD; do 3287 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3288 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3289 ac_status=$? 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); } 3292 case $?:`cat confinc.out 2>/dev/null` in #( 3293 '0:this is the am__doit target') : 3294 case $s in #( 3295 BSD) : 3296 am__include='.include' am__quote='"' ;; #( 3297 *) : 3298 am__include='include' am__quote='' ;; 3299 esac ;; #( 3300 *) : 3301 ;; 3302 esac 3303 if test "$am__include" != "#"; then 3304 _am_result="yes ($s style)" 3305 break 3306 fi 3307 done 3308 rm -f confinc.* confmf.* 3309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3310 printf "%s\n" "${_am_result}" >&6; } 3311 3312 # Check whether --enable-dependency-tracking was given. 3313 if test ${enable_dependency_tracking+y} 3314 then : 3315 enableval=$enable_dependency_tracking; 3316 fi 3317 3318 if test "x$enable_dependency_tracking" != xno; then 3319 am_depcomp="$ac_aux_dir/depcomp" 3320 AMDEPBACKSLASH='\' 3321 am__nodep='_no' 3322 fi 3323 if test "x$enable_dependency_tracking" != xno; then 3324 AMDEP_TRUE= 3325 AMDEP_FALSE='#' 3326 else 3327 AMDEP_TRUE='#' 3328 AMDEP_FALSE= 3329 fi 3330 3331 3332 ac_ext=c 3333 ac_cpp='$CPP $CPPFLAGS' 3334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3336 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3337 if test -n "$ac_tool_prefix"; then 3338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3339 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3341 printf %s "checking for $ac_word... " >&6; } 3342 if test ${ac_cv_prog_CC+y} 3343 then : 3344 printf %s "(cached) " >&6 3345 else $as_nop 3346 if test -n "$CC"; then 3347 ac_cv_prog_CC="$CC" # Let the user override the test. 3348 else 3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350 for as_dir in $PATH 3351 do 3352 IFS=$as_save_IFS 3353 case $as_dir in #((( 3354 '') as_dir=./ ;; 3355 */) ;; 3356 *) as_dir=$as_dir/ ;; 3357 esac 3358 for ac_exec_ext in '' $ac_executable_extensions; do 3359 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3360 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3362 break 2 3363 fi 3364 done 3365 done 3366 IFS=$as_save_IFS 3367 3368 fi 3369 fi 3370 CC=$ac_cv_prog_CC 3371 if test -n "$CC"; then 3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3373 printf "%s\n" "$CC" >&6; } 3374 else 3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3376 printf "%s\n" "no" >&6; } 3377 fi 3378 3379 3380 fi 3381 if test -z "$ac_cv_prog_CC"; then 3382 ac_ct_CC=$CC 3383 # Extract the first word of "gcc", so it can be a program name with args. 3384 set dummy gcc; ac_word=$2 3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3386 printf %s "checking for $ac_word... " >&6; } 3387 if test ${ac_cv_prog_ac_ct_CC+y} 3388 then : 3389 printf %s "(cached) " >&6 3390 else $as_nop 3391 if test -n "$ac_ct_CC"; then 3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3393 else 3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395 for as_dir in $PATH 3396 do 3397 IFS=$as_save_IFS 3398 case $as_dir in #((( 3399 '') as_dir=./ ;; 3400 */) ;; 3401 *) as_dir=$as_dir/ ;; 3402 esac 3403 for ac_exec_ext in '' $ac_executable_extensions; do 3404 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3405 ac_cv_prog_ac_ct_CC="gcc" 3406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3407 break 2 3408 fi 3409 done 3410 done 3411 IFS=$as_save_IFS 3412 3413 fi 3414 fi 3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3416 if test -n "$ac_ct_CC"; then 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3418 printf "%s\n" "$ac_ct_CC" >&6; } 3419 else 3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3421 printf "%s\n" "no" >&6; } 3422 fi 3423 3424 if test "x$ac_ct_CC" = x; then 3425 CC="" 3426 else 3427 case $cross_compiling:$ac_tool_warned in 3428 yes:) 3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3430 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3431 ac_tool_warned=yes ;; 3432 esac 3433 CC=$ac_ct_CC 3434 fi 3435 else 3436 CC="$ac_cv_prog_CC" 3437 fi 3438 3439 if test -z "$CC"; then 3440 if test -n "$ac_tool_prefix"; then 3441 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3442 set dummy ${ac_tool_prefix}cc; ac_word=$2 3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3444 printf %s "checking for $ac_word... " >&6; } 3445 if test ${ac_cv_prog_CC+y} 3446 then : 3447 printf %s "(cached) " >&6 3448 else $as_nop 3449 if test -n "$CC"; then 3450 ac_cv_prog_CC="$CC" # Let the user override the test. 3451 else 3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3453 for as_dir in $PATH 3454 do 3455 IFS=$as_save_IFS 3456 case $as_dir in #((( 3457 '') as_dir=./ ;; 3458 */) ;; 3459 *) as_dir=$as_dir/ ;; 3460 esac 3461 for ac_exec_ext in '' $ac_executable_extensions; do 3462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3463 ac_cv_prog_CC="${ac_tool_prefix}cc" 3464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3465 break 2 3466 fi 3467 done 3468 done 3469 IFS=$as_save_IFS 3470 3471 fi 3472 fi 3473 CC=$ac_cv_prog_CC 3474 if test -n "$CC"; then 3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3476 printf "%s\n" "$CC" >&6; } 3477 else 3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3479 printf "%s\n" "no" >&6; } 3480 fi 3481 3482 3483 fi 3484 fi 3485 if test -z "$CC"; then 3486 # Extract the first word of "cc", so it can be a program name with args. 3487 set dummy cc; ac_word=$2 3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489 printf %s "checking for $ac_word... " >&6; } 3490 if test ${ac_cv_prog_CC+y} 3491 then : 3492 printf %s "(cached) " >&6 3493 else $as_nop 3494 if test -n "$CC"; then 3495 ac_cv_prog_CC="$CC" # Let the user override the test. 3496 else 3497 ac_prog_rejected=no 3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3499 for as_dir in $PATH 3500 do 3501 IFS=$as_save_IFS 3502 case $as_dir in #((( 3503 '') as_dir=./ ;; 3504 */) ;; 3505 *) as_dir=$as_dir/ ;; 3506 esac 3507 for ac_exec_ext in '' $ac_executable_extensions; do 3508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3509 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3510 ac_prog_rejected=yes 3511 continue 3512 fi 3513 ac_cv_prog_CC="cc" 3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3515 break 2 3516 fi 3517 done 3518 done 3519 IFS=$as_save_IFS 3520 3521 if test $ac_prog_rejected = yes; then 3522 # We found a bogon in the path, so make sure we never use it. 3523 set dummy $ac_cv_prog_CC 3524 shift 3525 if test $# != 0; then 3526 # We chose a different compiler from the bogus one. 3527 # However, it has the same basename, so the bogon will be chosen 3528 # first if we set CC to just the basename; use the full file name. 3529 shift 3530 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3531 fi 3532 fi 3533 fi 3534 fi 3535 CC=$ac_cv_prog_CC 3536 if test -n "$CC"; then 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3538 printf "%s\n" "$CC" >&6; } 3539 else 3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3541 printf "%s\n" "no" >&6; } 3542 fi 3543 3544 3545 fi 3546 if test -z "$CC"; then 3547 if test -n "$ac_tool_prefix"; then 3548 for ac_prog in cl.exe 3549 do 3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3553 printf %s "checking for $ac_word... " >&6; } 3554 if test ${ac_cv_prog_CC+y} 3555 then : 3556 printf %s "(cached) " >&6 3557 else $as_nop 3558 if test -n "$CC"; then 3559 ac_cv_prog_CC="$CC" # Let the user override the test. 3560 else 3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3562 for as_dir in $PATH 3563 do 3564 IFS=$as_save_IFS 3565 case $as_dir in #((( 3566 '') as_dir=./ ;; 3567 */) ;; 3568 *) as_dir=$as_dir/ ;; 3569 esac 3570 for ac_exec_ext in '' $ac_executable_extensions; do 3571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3574 break 2 3575 fi 3576 done 3577 done 3578 IFS=$as_save_IFS 3579 3580 fi 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 test -n "$CC" && break 3593 done 3594 fi 3595 if test -z "$CC"; then 3596 ac_ct_CC=$CC 3597 for ac_prog in cl.exe 3598 do 3599 # Extract the first word of "$ac_prog", so it can be a program name with args. 3600 set dummy $ac_prog; ac_word=$2 3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3602 printf %s "checking for $ac_word... " >&6; } 3603 if test ${ac_cv_prog_ac_ct_CC+y} 3604 then : 3605 printf %s "(cached) " >&6 3606 else $as_nop 3607 if test -n "$ac_ct_CC"; then 3608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3609 else 3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3611 for as_dir in $PATH 3612 do 3613 IFS=$as_save_IFS 3614 case $as_dir in #((( 3615 '') as_dir=./ ;; 3616 */) ;; 3617 *) as_dir=$as_dir/ ;; 3618 esac 3619 for ac_exec_ext in '' $ac_executable_extensions; do 3620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3621 ac_cv_prog_ac_ct_CC="$ac_prog" 3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3623 break 2 3624 fi 3625 done 3626 done 3627 IFS=$as_save_IFS 3628 3629 fi 3630 fi 3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3632 if test -n "$ac_ct_CC"; then 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3634 printf "%s\n" "$ac_ct_CC" >&6; } 3635 else 3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3637 printf "%s\n" "no" >&6; } 3638 fi 3639 3640 3641 test -n "$ac_ct_CC" && break 3642 done 3643 3644 if test "x$ac_ct_CC" = x; then 3645 CC="" 3646 else 3647 case $cross_compiling:$ac_tool_warned in 3648 yes:) 3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3650 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3651 ac_tool_warned=yes ;; 3652 esac 3653 CC=$ac_ct_CC 3654 fi 3655 fi 3656 3657 fi 3658 if test -z "$CC"; then 3659 if test -n "$ac_tool_prefix"; then 3660 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3661 set dummy ${ac_tool_prefix}clang; 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 $as_nop 3668 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}clang" 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 fi 3692 CC=$ac_cv_prog_CC 3693 if test -n "$CC"; then 3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3695 printf "%s\n" "$CC" >&6; } 3696 else 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3698 printf "%s\n" "no" >&6; } 3699 fi 3700 3701 3702 fi 3703 if test -z "$ac_cv_prog_CC"; then 3704 ac_ct_CC=$CC 3705 # Extract the first word of "clang", so it can be a program name with args. 3706 set dummy clang; ac_word=$2 3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3708 printf %s "checking for $ac_word... " >&6; } 3709 if test ${ac_cv_prog_ac_ct_CC+y} 3710 then : 3711 printf %s "(cached) " >&6 3712 else $as_nop 3713 if test -n "$ac_ct_CC"; then 3714 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3715 else 3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3717 for as_dir in $PATH 3718 do 3719 IFS=$as_save_IFS 3720 case $as_dir in #((( 3721 '') as_dir=./ ;; 3722 */) ;; 3723 *) as_dir=$as_dir/ ;; 3724 esac 3725 for ac_exec_ext in '' $ac_executable_extensions; do 3726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3727 ac_cv_prog_ac_ct_CC="clang" 3728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3729 break 2 3730 fi 3731 done 3732 done 3733 IFS=$as_save_IFS 3734 3735 fi 3736 fi 3737 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3738 if test -n "$ac_ct_CC"; then 3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3740 printf "%s\n" "$ac_ct_CC" >&6; } 3741 else 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3743 printf "%s\n" "no" >&6; } 3744 fi 3745 3746 if test "x$ac_ct_CC" = x; then 3747 CC="" 3748 else 3749 case $cross_compiling:$ac_tool_warned in 3750 yes:) 3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3753 ac_tool_warned=yes ;; 3754 esac 3755 CC=$ac_ct_CC 3756 fi 3757 else 3758 CC="$ac_cv_prog_CC" 3759 fi 3760 3761 fi 3762 3763 3764 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3765 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3766 as_fn_error $? "no acceptable C compiler found in \$PATH 3767 See \`config.log' for more details" "$LINENO" 5; } 3768 3769 # Provide some information about the compiler. 3770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3771 set X $ac_compile 3772 ac_compiler=$2 3773 for ac_option in --version -v -V -qversion -version; do 3774 { { ac_try="$ac_compiler $ac_option >&5" 3775 case "(($ac_try" in 3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3777 *) ac_try_echo=$ac_try;; 3778 esac 3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3780 printf "%s\n" "$ac_try_echo"; } >&5 3781 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3782 ac_status=$? 3783 if test -s conftest.err; then 3784 sed '10a\ 3785 ... rest of stderr output deleted ... 3786 10q' conftest.err >conftest.er1 3787 cat conftest.er1 >&5 3788 fi 3789 rm -f conftest.er1 conftest.err 3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3791 test $ac_status = 0; } 3792 done 3793 3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795 /* end confdefs.h. */ 3796 3797 int 3798 main (void) 3799 { 3800 3801 ; 3802 return 0; 3803 } 3804 _ACEOF 3805 ac_clean_files_save=$ac_clean_files 3806 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3807 # Try to create an executable without -o first, disregard a.out. 3808 # It will help us diagnose broken compilers, and finding out an intuition 3809 # of exeext. 3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3811 printf %s "checking whether the C compiler works... " >&6; } 3812 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3813 3814 # The possible output files: 3815 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3816 3817 ac_rmfiles= 3818 for ac_file in $ac_files 3819 do 3820 case $ac_file in 3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3822 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3823 esac 3824 done 3825 rm -f $ac_rmfiles 3826 3827 if { { ac_try="$ac_link_default" 3828 case "(($ac_try" in 3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3830 *) ac_try_echo=$ac_try;; 3831 esac 3832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3833 printf "%s\n" "$ac_try_echo"; } >&5 3834 (eval "$ac_link_default") 2>&5 3835 ac_status=$? 3836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3837 test $ac_status = 0; } 3838 then : 3839 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3840 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3841 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3842 # so that the user can short-circuit this test for compilers unknown to 3843 # Autoconf. 3844 for ac_file in $ac_files '' 3845 do 3846 test -f "$ac_file" || continue 3847 case $ac_file in 3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3849 ;; 3850 [ab].out ) 3851 # We found the default executable, but exeext='' is most 3852 # certainly right. 3853 break;; 3854 *.* ) 3855 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3856 then :; else 3857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3858 fi 3859 # We set ac_cv_exeext here because the later test for it is not 3860 # safe: cross compilers may not add the suffix if given an `-o' 3861 # argument, so we may need to know it at that point already. 3862 # Even if this section looks crufty: it has the advantage of 3863 # actually working. 3864 break;; 3865 * ) 3866 break;; 3867 esac 3868 done 3869 test "$ac_cv_exeext" = no && ac_cv_exeext= 3870 3871 else $as_nop 3872 ac_file='' 3873 fi 3874 if test -z "$ac_file" 3875 then : 3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3877 printf "%s\n" "no" >&6; } 3878 printf "%s\n" "$as_me: failed program was:" >&5 3879 sed 's/^/| /' conftest.$ac_ext >&5 3880 3881 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3882 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3883 as_fn_error 77 "C compiler cannot create executables 3884 See \`config.log' for more details" "$LINENO" 5; } 3885 else $as_nop 3886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3887 printf "%s\n" "yes" >&6; } 3888 fi 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3890 printf %s "checking for C compiler default output file name... " >&6; } 3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3892 printf "%s\n" "$ac_file" >&6; } 3893 ac_exeext=$ac_cv_exeext 3894 3895 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3896 ac_clean_files=$ac_clean_files_save 3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3898 printf %s "checking for suffix of executables... " >&6; } 3899 if { { ac_try="$ac_link" 3900 case "(($ac_try" in 3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3902 *) ac_try_echo=$ac_try;; 3903 esac 3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3905 printf "%s\n" "$ac_try_echo"; } >&5 3906 (eval "$ac_link") 2>&5 3907 ac_status=$? 3908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3909 test $ac_status = 0; } 3910 then : 3911 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3912 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3913 # work properly (i.e., refer to `conftest.exe'), while it won't with 3914 # `rm'. 3915 for ac_file in conftest.exe conftest conftest.*; do 3916 test -f "$ac_file" || continue 3917 case $ac_file in 3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3920 break;; 3921 * ) break;; 3922 esac 3923 done 3924 else $as_nop 3925 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3926 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3927 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3928 See \`config.log' for more details" "$LINENO" 5; } 3929 fi 3930 rm -f conftest conftest$ac_cv_exeext 3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3932 printf "%s\n" "$ac_cv_exeext" >&6; } 3933 3934 rm -f conftest.$ac_ext 3935 EXEEXT=$ac_cv_exeext 3936 ac_exeext=$EXEEXT 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938 /* end confdefs.h. */ 3939 #include <stdio.h> 3940 int 3941 main (void) 3942 { 3943 FILE *f = fopen ("conftest.out", "w"); 3944 return ferror (f) || fclose (f) != 0; 3945 3946 ; 3947 return 0; 3948 } 3949 _ACEOF 3950 ac_clean_files="$ac_clean_files conftest.out" 3951 # Check that the compiler produces executables we can run. If not, either 3952 # the compiler is broken, or we cross compile. 3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3954 printf %s "checking whether we are cross compiling... " >&6; } 3955 if test "$cross_compiling" != yes; then 3956 { { ac_try="$ac_link" 3957 case "(($ac_try" in 3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3959 *) ac_try_echo=$ac_try;; 3960 esac 3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3962 printf "%s\n" "$ac_try_echo"; } >&5 3963 (eval "$ac_link") 2>&5 3964 ac_status=$? 3965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3966 test $ac_status = 0; } 3967 if { ac_try='./conftest$ac_cv_exeext' 3968 { { case "(($ac_try" in 3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3970 *) ac_try_echo=$ac_try;; 3971 esac 3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3973 printf "%s\n" "$ac_try_echo"; } >&5 3974 (eval "$ac_try") 2>&5 3975 ac_status=$? 3976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3977 test $ac_status = 0; }; }; then 3978 cross_compiling=no 3979 else 3980 if test "$cross_compiling" = maybe; then 3981 cross_compiling=yes 3982 else 3983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3985 as_fn_error 77 "cannot run C compiled programs. 3986 If you meant to cross compile, use \`--host'. 3987 See \`config.log' for more details" "$LINENO" 5; } 3988 fi 3989 fi 3990 fi 3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3992 printf "%s\n" "$cross_compiling" >&6; } 3993 3994 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3995 ac_clean_files=$ac_clean_files_save 3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3997 printf %s "checking for suffix of object files... " >&6; } 3998 if test ${ac_cv_objext+y} 3999 then : 4000 printf %s "(cached) " >&6 4001 else $as_nop 4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4003 /* end confdefs.h. */ 4004 4005 int 4006 main (void) 4007 { 4008 4009 ; 4010 return 0; 4011 } 4012 _ACEOF 4013 rm -f conftest.o conftest.obj 4014 if { { ac_try="$ac_compile" 4015 case "(($ac_try" in 4016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4017 *) ac_try_echo=$ac_try;; 4018 esac 4019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4020 printf "%s\n" "$ac_try_echo"; } >&5 4021 (eval "$ac_compile") 2>&5 4022 ac_status=$? 4023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4024 test $ac_status = 0; } 4025 then : 4026 for ac_file in conftest.o conftest.obj conftest.*; do 4027 test -f "$ac_file" || continue; 4028 case $ac_file in 4029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4031 break;; 4032 esac 4033 done 4034 else $as_nop 4035 printf "%s\n" "$as_me: failed program was:" >&5 4036 sed 's/^/| /' conftest.$ac_ext >&5 4037 4038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4039 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4040 as_fn_error $? "cannot compute suffix of object files: cannot compile 4041 See \`config.log' for more details" "$LINENO" 5; } 4042 fi 4043 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4044 fi 4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4046 printf "%s\n" "$ac_cv_objext" >&6; } 4047 OBJEXT=$ac_cv_objext 4048 ac_objext=$OBJEXT 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4050 printf %s "checking whether the compiler supports GNU C... " >&6; } 4051 if test ${ac_cv_c_compiler_gnu+y} 4052 then : 4053 printf %s "(cached) " >&6 4054 else $as_nop 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056 /* end confdefs.h. */ 4057 4058 int 4059 main (void) 4060 { 4061 #ifndef __GNUC__ 4062 choke me 4063 #endif 4064 4065 ; 4066 return 0; 4067 } 4068 _ACEOF 4069 if ac_fn_c_try_compile "$LINENO" 4070 then : 4071 ac_compiler_gnu=yes 4072 else $as_nop 4073 ac_compiler_gnu=no 4074 fi 4075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4076 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4077 4078 fi 4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4080 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4082 4083 if test $ac_compiler_gnu = yes; then 4084 GCC=yes 4085 else 4086 GCC= 4087 fi 4088 ac_test_CFLAGS=${CFLAGS+y} 4089 ac_save_CFLAGS=$CFLAGS 4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4091 printf %s "checking whether $CC accepts -g... " >&6; } 4092 if test ${ac_cv_prog_cc_g+y} 4093 then : 4094 printf %s "(cached) " >&6 4095 else $as_nop 4096 ac_save_c_werror_flag=$ac_c_werror_flag 4097 ac_c_werror_flag=yes 4098 ac_cv_prog_cc_g=no 4099 CFLAGS="-g" 4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4101 /* end confdefs.h. */ 4102 4103 int 4104 main (void) 4105 { 4106 4107 ; 4108 return 0; 4109 } 4110 _ACEOF 4111 if ac_fn_c_try_compile "$LINENO" 4112 then : 4113 ac_cv_prog_cc_g=yes 4114 else $as_nop 4115 CFLAGS="" 4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4117 /* end confdefs.h. */ 4118 4119 int 4120 main (void) 4121 { 4122 4123 ; 4124 return 0; 4125 } 4126 _ACEOF 4127 if ac_fn_c_try_compile "$LINENO" 4128 then : 4129 4130 else $as_nop 4131 ac_c_werror_flag=$ac_save_c_werror_flag 4132 CFLAGS="-g" 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134 /* end confdefs.h. */ 4135 4136 int 4137 main (void) 4138 { 4139 4140 ; 4141 return 0; 4142 } 4143 _ACEOF 4144 if ac_fn_c_try_compile "$LINENO" 4145 then : 4146 ac_cv_prog_cc_g=yes 4147 fi 4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4149 fi 4150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4151 fi 4152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4153 ac_c_werror_flag=$ac_save_c_werror_flag 4154 fi 4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4156 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4157 if test $ac_test_CFLAGS; then 4158 CFLAGS=$ac_save_CFLAGS 4159 elif test $ac_cv_prog_cc_g = yes; then 4160 if test "$GCC" = yes; then 4161 CFLAGS="-g -O2" 4162 else 4163 CFLAGS="-g" 4164 fi 4165 else 4166 if test "$GCC" = yes; then 4167 CFLAGS="-O2" 4168 else 4169 CFLAGS= 4170 fi 4171 fi 4172 ac_prog_cc_stdc=no 4173 if test x$ac_prog_cc_stdc = xno 4174 then : 4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4176 printf %s "checking for $CC option to enable C11 features... " >&6; } 4177 if test ${ac_cv_prog_cc_c11+y} 4178 then : 4179 printf %s "(cached) " >&6 4180 else $as_nop 4181 ac_cv_prog_cc_c11=no 4182 ac_save_CC=$CC 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184 /* end confdefs.h. */ 4185 $ac_c_conftest_c11_program 4186 _ACEOF 4187 for ac_arg in '' -std=gnu11 4188 do 4189 CC="$ac_save_CC $ac_arg" 4190 if ac_fn_c_try_compile "$LINENO" 4191 then : 4192 ac_cv_prog_cc_c11=$ac_arg 4193 fi 4194 rm -f core conftest.err conftest.$ac_objext conftest.beam 4195 test "x$ac_cv_prog_cc_c11" != "xno" && break 4196 done 4197 rm -f conftest.$ac_ext 4198 CC=$ac_save_CC 4199 fi 4200 4201 if test "x$ac_cv_prog_cc_c11" = xno 4202 then : 4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4204 printf "%s\n" "unsupported" >&6; } 4205 else $as_nop 4206 if test "x$ac_cv_prog_cc_c11" = x 4207 then : 4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4209 printf "%s\n" "none needed" >&6; } 4210 else $as_nop 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4212 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4213 CC="$CC $ac_cv_prog_cc_c11" 4214 fi 4215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4216 ac_prog_cc_stdc=c11 4217 fi 4218 fi 4219 if test x$ac_prog_cc_stdc = xno 4220 then : 4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4222 printf %s "checking for $CC option to enable C99 features... " >&6; } 4223 if test ${ac_cv_prog_cc_c99+y} 4224 then : 4225 printf %s "(cached) " >&6 4226 else $as_nop 4227 ac_cv_prog_cc_c99=no 4228 ac_save_CC=$CC 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230 /* end confdefs.h. */ 4231 $ac_c_conftest_c99_program 4232 _ACEOF 4233 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4234 do 4235 CC="$ac_save_CC $ac_arg" 4236 if ac_fn_c_try_compile "$LINENO" 4237 then : 4238 ac_cv_prog_cc_c99=$ac_arg 4239 fi 4240 rm -f core conftest.err conftest.$ac_objext conftest.beam 4241 test "x$ac_cv_prog_cc_c99" != "xno" && break 4242 done 4243 rm -f conftest.$ac_ext 4244 CC=$ac_save_CC 4245 fi 4246 4247 if test "x$ac_cv_prog_cc_c99" = xno 4248 then : 4249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4250 printf "%s\n" "unsupported" >&6; } 4251 else $as_nop 4252 if test "x$ac_cv_prog_cc_c99" = x 4253 then : 4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4255 printf "%s\n" "none needed" >&6; } 4256 else $as_nop 4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4258 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4259 CC="$CC $ac_cv_prog_cc_c99" 4260 fi 4261 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4262 ac_prog_cc_stdc=c99 4263 fi 4264 fi 4265 if test x$ac_prog_cc_stdc = xno 4266 then : 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4268 printf %s "checking for $CC option to enable C89 features... " >&6; } 4269 if test ${ac_cv_prog_cc_c89+y} 4270 then : 4271 printf %s "(cached) " >&6 4272 else $as_nop 4273 ac_cv_prog_cc_c89=no 4274 ac_save_CC=$CC 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276 /* end confdefs.h. */ 4277 $ac_c_conftest_c89_program 4278 _ACEOF 4279 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4280 do 4281 CC="$ac_save_CC $ac_arg" 4282 if ac_fn_c_try_compile "$LINENO" 4283 then : 4284 ac_cv_prog_cc_c89=$ac_arg 4285 fi 4286 rm -f core conftest.err conftest.$ac_objext conftest.beam 4287 test "x$ac_cv_prog_cc_c89" != "xno" && break 4288 done 4289 rm -f conftest.$ac_ext 4290 CC=$ac_save_CC 4291 fi 4292 4293 if test "x$ac_cv_prog_cc_c89" = xno 4294 then : 4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4296 printf "%s\n" "unsupported" >&6; } 4297 else $as_nop 4298 if test "x$ac_cv_prog_cc_c89" = x 4299 then : 4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4301 printf "%s\n" "none needed" >&6; } 4302 else $as_nop 4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4304 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4305 CC="$CC $ac_cv_prog_cc_c89" 4306 fi 4307 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4308 ac_prog_cc_stdc=c89 4309 fi 4310 fi 4311 4312 ac_ext=c 4313 ac_cpp='$CPP $CPPFLAGS' 4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4317 4318 4319 ac_ext=c 4320 ac_cpp='$CPP $CPPFLAGS' 4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4325 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4326 if test ${am_cv_prog_cc_c_o+y} 4327 then : 4328 printf %s "(cached) " >&6 4329 else $as_nop 4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4331 /* end confdefs.h. */ 4332 4333 int 4334 main (void) 4335 { 4336 4337 ; 4338 return 0; 4339 } 4340 _ACEOF 4341 # Make sure it works both with $CC and with simple cc. 4342 # Following AC_PROG_CC_C_O, we do the test twice because some 4343 # compilers refuse to overwrite an existing .o file with -o, 4344 # though they will create one. 4345 am_cv_prog_cc_c_o=yes 4346 for am_i in 1 2; do 4347 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4348 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4349 ac_status=$? 4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4351 (exit $ac_status); } \ 4352 && test -f conftest2.$ac_objext; then 4353 : OK 4354 else 4355 am_cv_prog_cc_c_o=no 4356 break 4357 fi 4358 done 4359 rm -f core conftest* 4360 unset am_i 4361 fi 4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4363 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4364 if test "$am_cv_prog_cc_c_o" != yes; then 4365 # Losing compiler, so override with the script. 4366 # FIXME: It is wrong to rewrite CC. 4367 # But if we don't then we get into trouble of one sort or another. 4368 # A longer-term fix would be to have automake use am__CC in this case, 4369 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4370 CC="$am_aux_dir/compile $CC" 4371 fi 4372 ac_ext=c 4373 ac_cpp='$CPP $CPPFLAGS' 4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4377 4378 4379 depcc="$CC" am_compiler_list= 4380 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4382 printf %s "checking dependency style of $depcc... " >&6; } 4383 if test ${am_cv_CC_dependencies_compiler_type+y} 4384 then : 4385 printf %s "(cached) " >&6 4386 else $as_nop 4387 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4388 # We make a subdir and do the tests there. Otherwise we can end up 4389 # making bogus files that we don't know about and never remove. For 4390 # instance it was reported that on HP-UX the gcc test will end up 4391 # making a dummy file named 'D' -- because '-MD' means "put the output 4392 # in D". 4393 rm -rf conftest.dir 4394 mkdir conftest.dir 4395 # Copy depcomp to subdir because otherwise we won't find it if we're 4396 # using a relative directory. 4397 cp "$am_depcomp" conftest.dir 4398 cd conftest.dir 4399 # We will build objects and dependencies in a subdirectory because 4400 # it helps to detect inapplicable dependency modes. For instance 4401 # both Tru64's cc and ICC support -MD to output dependencies as a 4402 # side effect of compilation, but ICC will put the dependencies in 4403 # the current directory while Tru64 will put them in the object 4404 # directory. 4405 mkdir sub 4406 4407 am_cv_CC_dependencies_compiler_type=none 4408 if test "$am_compiler_list" = ""; then 4409 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4410 fi 4411 am__universal=false 4412 case " $depcc " in #( 4413 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4414 esac 4415 4416 for depmode in $am_compiler_list; do 4417 # Setup a source with many dependencies, because some compilers 4418 # like to wrap large dependency lists on column 80 (with \), and 4419 # we should not choose a depcomp mode which is confused by this. 4420 # 4421 # We need to recreate these files for each test, as the compiler may 4422 # overwrite some of them when testing with obscure command lines. 4423 # This happens at least with the AIX C compiler. 4424 : > sub/conftest.c 4425 for i in 1 2 3 4 5 6; do 4426 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4427 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4428 # Solaris 10 /bin/sh. 4429 echo '/* dummy */' > sub/conftst$i.h 4430 done 4431 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4432 4433 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4434 # mode. It turns out that the SunPro C++ compiler does not properly 4435 # handle '-M -o', and we need to detect this. Also, some Intel 4436 # versions had trouble with output in subdirs. 4437 am__obj=sub/conftest.${OBJEXT-o} 4438 am__minus_obj="-o $am__obj" 4439 case $depmode in 4440 gcc) 4441 # This depmode causes a compiler race in universal mode. 4442 test "$am__universal" = false || continue 4443 ;; 4444 nosideeffect) 4445 # After this tag, mechanisms are not by side-effect, so they'll 4446 # only be used when explicitly requested. 4447 if test "x$enable_dependency_tracking" = xyes; then 4448 continue 4449 else 4450 break 4451 fi 4452 ;; 4453 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4454 # This compiler won't grok '-c -o', but also, the minuso test has 4455 # not run yet. These depmodes are late enough in the game, and 4456 # so weak that their functioning should not be impacted. 4457 am__obj=conftest.${OBJEXT-o} 4458 am__minus_obj= 4459 ;; 4460 none) break ;; 4461 esac 4462 if depmode=$depmode \ 4463 source=sub/conftest.c object=$am__obj \ 4464 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4465 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4466 >/dev/null 2>conftest.err && 4467 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4468 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4469 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4470 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4471 # icc doesn't choke on unknown options, it will just issue warnings 4472 # or remarks (even with -Werror). So we grep stderr for any message 4473 # that says an option was ignored or not supported. 4474 # When given -MP, icc 7.0 and 7.1 complain thusly: 4475 # icc: Command line warning: ignoring option '-M'; no argument required 4476 # The diagnosis changed in icc 8.0: 4477 # icc: Command line remark: option '-MP' not supported 4478 if (grep 'ignoring option' conftest.err || 4479 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4480 am_cv_CC_dependencies_compiler_type=$depmode 4481 break 4482 fi 4483 fi 4484 done 4485 4486 cd .. 4487 rm -rf conftest.dir 4488 else 4489 am_cv_CC_dependencies_compiler_type=none 4490 fi 4491 4492 fi 4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4494 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4495 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4496 4497 if 4498 test "x$enable_dependency_tracking" != xno \ 4499 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4500 am__fastdepCC_TRUE= 4501 am__fastdepCC_FALSE='#' 4502 else 4503 am__fastdepCC_TRUE='#' 4504 am__fastdepCC_FALSE= 4505 fi 4506 4507 4508 4509 4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4511 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4512 if test ${ac_cv_c_undeclared_builtin_options+y} 4513 then : 4514 printf %s "(cached) " >&6 4515 else $as_nop 4516 ac_save_CFLAGS=$CFLAGS 4517 ac_cv_c_undeclared_builtin_options='cannot detect' 4518 for ac_arg in '' -fno-builtin; do 4519 CFLAGS="$ac_save_CFLAGS $ac_arg" 4520 # This test program should *not* compile successfully. 4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4522 /* end confdefs.h. */ 4523 4524 int 4525 main (void) 4526 { 4527 (void) strchr; 4528 ; 4529 return 0; 4530 } 4531 _ACEOF 4532 if ac_fn_c_try_compile "$LINENO" 4533 then : 4534 4535 else $as_nop 4536 # This test program should compile successfully. 4537 # No library function is consistently available on 4538 # freestanding implementations, so test against a dummy 4539 # declaration. Include always-available headers on the 4540 # off chance that they somehow elicit warnings. 4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4542 /* end confdefs.h. */ 4543 #include <float.h> 4544 #include <limits.h> 4545 #include <stdarg.h> 4546 #include <stddef.h> 4547 extern void ac_decl (int, char *); 4548 4549 int 4550 main (void) 4551 { 4552 (void) ac_decl (0, (char *) 0); 4553 (void) ac_decl; 4554 4555 ; 4556 return 0; 4557 } 4558 _ACEOF 4559 if ac_fn_c_try_compile "$LINENO" 4560 then : 4561 if test x"$ac_arg" = x 4562 then : 4563 ac_cv_c_undeclared_builtin_options='none needed' 4564 else $as_nop 4565 ac_cv_c_undeclared_builtin_options=$ac_arg 4566 fi 4567 break 4568 fi 4569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4570 fi 4571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4572 done 4573 CFLAGS=$ac_save_CFLAGS 4574 4575 fi 4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4577 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4578 case $ac_cv_c_undeclared_builtin_options in #( 4579 'cannot detect') : 4580 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4581 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4582 as_fn_error $? "cannot make $CC report undeclared builtins 4583 See \`config.log' for more details" "$LINENO" 5; } ;; #( 4584 'none needed') : 4585 ac_c_undeclared_builtin_options='' ;; #( 4586 *) : 4587 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4588 esac 4589 4590 ac_header= ac_cache= 4591 for ac_item in $ac_header_c_list 4592 do 4593 if test $ac_cache; then 4594 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4595 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4596 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4597 fi 4598 ac_header= ac_cache= 4599 elif test $ac_header; then 4600 ac_cache=$ac_item 4601 else 4602 ac_header=$ac_item 4603 fi 4604 done 4605 4606 4607 4608 4609 4610 4611 4612 4613 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4614 then : 4615 4616 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4617 4618 fi 4619 4620 4621 4622 4623 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4624 if test "x$ac_cv_have_decl___clang__" = xyes 4625 then : 4626 CLANGCC="yes" 4627 else $as_nop 4628 CLANGCC="no" 4629 fi 4630 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4631 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4632 then : 4633 INTELCC="yes" 4634 else $as_nop 4635 INTELCC="no" 4636 fi 4637 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4638 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4639 then : 4640 SUNCC="yes" 4641 else $as_nop 4642 SUNCC="no" 4643 fi 4644 4645 4646 4647 4648 4649 4650 4651 4652 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4653 if test -n "$ac_tool_prefix"; then 4654 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4655 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4657 printf %s "checking for $ac_word... " >&6; } 4658 if test ${ac_cv_path_PKG_CONFIG+y} 4659 then : 4660 printf %s "(cached) " >&6 4661 else $as_nop 4662 case $PKG_CONFIG in 4663 [\\/]* | ?:[\\/]*) 4664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4665 ;; 4666 *) 4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4668 for as_dir in $PATH 4669 do 4670 IFS=$as_save_IFS 4671 case $as_dir in #((( 4672 '') as_dir=./ ;; 4673 */) ;; 4674 *) as_dir=$as_dir/ ;; 4675 esac 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4678 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4680 break 2 4681 fi 4682 done 4683 done 4684 IFS=$as_save_IFS 4685 4686 ;; 4687 esac 4688 fi 4689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4690 if test -n "$PKG_CONFIG"; then 4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4692 printf "%s\n" "$PKG_CONFIG" >&6; } 4693 else 4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4695 printf "%s\n" "no" >&6; } 4696 fi 4697 4698 4699 fi 4700 if test -z "$ac_cv_path_PKG_CONFIG"; then 4701 ac_pt_PKG_CONFIG=$PKG_CONFIG 4702 # Extract the first word of "pkg-config", so it can be a program name with args. 4703 set dummy pkg-config; ac_word=$2 4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4705 printf %s "checking for $ac_word... " >&6; } 4706 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4707 then : 4708 printf %s "(cached) " >&6 4709 else $as_nop 4710 case $ac_pt_PKG_CONFIG in 4711 [\\/]* | ?:[\\/]*) 4712 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4713 ;; 4714 *) 4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4716 for as_dir in $PATH 4717 do 4718 IFS=$as_save_IFS 4719 case $as_dir in #((( 4720 '') as_dir=./ ;; 4721 */) ;; 4722 *) as_dir=$as_dir/ ;; 4723 esac 4724 for ac_exec_ext in '' $ac_executable_extensions; do 4725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4726 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4728 break 2 4729 fi 4730 done 4731 done 4732 IFS=$as_save_IFS 4733 4734 ;; 4735 esac 4736 fi 4737 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4738 if test -n "$ac_pt_PKG_CONFIG"; then 4739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4740 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4741 else 4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4743 printf "%s\n" "no" >&6; } 4744 fi 4745 4746 if test "x$ac_pt_PKG_CONFIG" = x; then 4747 PKG_CONFIG="" 4748 else 4749 case $cross_compiling:$ac_tool_warned in 4750 yes:) 4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4753 ac_tool_warned=yes ;; 4754 esac 4755 PKG_CONFIG=$ac_pt_PKG_CONFIG 4756 fi 4757 else 4758 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4759 fi 4760 4761 fi 4762 if test -n "$PKG_CONFIG"; then 4763 _pkg_min_version=0.9.0 4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4765 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4766 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4768 printf "%s\n" "yes" >&6; } 4769 else 4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4771 printf "%s\n" "no" >&6; } 4772 PKG_CONFIG="" 4773 fi 4774 fi 4775 4776 4777 # Make sure we can run config.sub. 4778 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4779 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4780 4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4782 printf %s "checking build system type... " >&6; } 4783 if test ${ac_cv_build+y} 4784 then : 4785 printf %s "(cached) " >&6 4786 else $as_nop 4787 ac_build_alias=$build_alias 4788 test "x$ac_build_alias" = x && 4789 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4790 test "x$ac_build_alias" = x && 4791 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4792 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4793 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4794 4795 fi 4796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4797 printf "%s\n" "$ac_cv_build" >&6; } 4798 case $ac_cv_build in 4799 *-*-*) ;; 4800 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4801 esac 4802 build=$ac_cv_build 4803 ac_save_IFS=$IFS; IFS='-' 4804 set x $ac_cv_build 4805 shift 4806 build_cpu=$1 4807 build_vendor=$2 4808 shift; shift 4809 # Remember, the first character of IFS is used to create $*, 4810 # except with old shells: 4811 build_os=$* 4812 IFS=$ac_save_IFS 4813 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4814 4815 4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4817 printf %s "checking host system type... " >&6; } 4818 if test ${ac_cv_host+y} 4819 then : 4820 printf %s "(cached) " >&6 4821 else $as_nop 4822 if test "x$host_alias" = x; then 4823 ac_cv_host=$ac_cv_build 4824 else 4825 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4826 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4827 fi 4828 4829 fi 4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4831 printf "%s\n" "$ac_cv_host" >&6; } 4832 case $ac_cv_host in 4833 *-*-*) ;; 4834 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4835 esac 4836 host=$ac_cv_host 4837 ac_save_IFS=$IFS; IFS='-' 4838 set x $ac_cv_host 4839 shift 4840 host_cpu=$1 4841 host_vendor=$2 4842 shift; shift 4843 # Remember, the first character of IFS is used to create $*, 4844 # except with old shells: 4845 host_os=$* 4846 IFS=$ac_save_IFS 4847 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4848 4849 4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4851 printf %s "checking for a sed that does not truncate output... " >&6; } 4852 if test ${ac_cv_path_SED+y} 4853 then : 4854 printf %s "(cached) " >&6 4855 else $as_nop 4856 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4857 for ac_i in 1 2 3 4 5 6 7; do 4858 ac_script="$ac_script$as_nl$ac_script" 4859 done 4860 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4861 { ac_script=; unset ac_script;} 4862 if test -z "$SED"; then 4863 ac_path_SED_found=false 4864 # Loop through the user's path and test for each of PROGNAME-LIST 4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4866 for as_dir in $PATH 4867 do 4868 IFS=$as_save_IFS 4869 case $as_dir in #((( 4870 '') as_dir=./ ;; 4871 */) ;; 4872 *) as_dir=$as_dir/ ;; 4873 esac 4874 for ac_prog in sed gsed 4875 do 4876 for ac_exec_ext in '' $ac_executable_extensions; do 4877 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4878 as_fn_executable_p "$ac_path_SED" || continue 4879 # Check for GNU ac_path_SED and select it if it is found. 4880 # Check for GNU $ac_path_SED 4881 case `"$ac_path_SED" --version 2>&1` in 4882 *GNU*) 4883 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4884 *) 4885 ac_count=0 4886 printf %s 0123456789 >"conftest.in" 4887 while : 4888 do 4889 cat "conftest.in" "conftest.in" >"conftest.tmp" 4890 mv "conftest.tmp" "conftest.in" 4891 cp "conftest.in" "conftest.nl" 4892 printf "%s\n" '' >> "conftest.nl" 4893 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4895 as_fn_arith $ac_count + 1 && ac_count=$as_val 4896 if test $ac_count -gt ${ac_path_SED_max-0}; then 4897 # Best one so far, save it but keep looking for a better one 4898 ac_cv_path_SED="$ac_path_SED" 4899 ac_path_SED_max=$ac_count 4900 fi 4901 # 10*(2^10) chars as input seems more than enough 4902 test $ac_count -gt 10 && break 4903 done 4904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4905 esac 4906 4907 $ac_path_SED_found && break 3 4908 done 4909 done 4910 done 4911 IFS=$as_save_IFS 4912 if test -z "$ac_cv_path_SED"; then 4913 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4914 fi 4915 else 4916 ac_cv_path_SED=$SED 4917 fi 4918 4919 fi 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4921 printf "%s\n" "$ac_cv_path_SED" >&6; } 4922 SED="$ac_cv_path_SED" 4923 rm -f conftest.sed 4924 4925 4926 4927 4928 4929 4930 # Check whether --enable-selective-werror was given. 4931 if test ${enable_selective_werror+y} 4932 then : 4933 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4934 else $as_nop 4935 SELECTIVE_WERROR=yes 4936 fi 4937 4938 4939 4940 4941 4942 # -v is too short to test reliably with XORG_TESTSET_CFLAG 4943 if test "x$SUNCC" = "xyes"; then 4944 BASE_CFLAGS="-v" 4945 else 4946 BASE_CFLAGS="" 4947 fi 4948 4949 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 xorg_testset_save_CFLAGS="$CFLAGS" 4964 4965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4969 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4970 then : 4971 printf %s "(cached) " >&6 4972 else $as_nop 4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4974 /* end confdefs.h. */ 4975 int i; 4976 _ACEOF 4977 if ac_fn_c_try_compile "$LINENO" 4978 then : 4979 xorg_cv_cc_flag_unknown_warning_option=yes 4980 else $as_nop 4981 xorg_cv_cc_flag_unknown_warning_option=no 4982 fi 4983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4984 fi 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4986 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4988 CFLAGS="$xorg_testset_save_CFLAGS" 4989 fi 4990 4991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4994 fi 4995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4997 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4998 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4999 then : 5000 printf %s "(cached) " >&6 5001 else $as_nop 5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003 /* end confdefs.h. */ 5004 int i; 5005 _ACEOF 5006 if ac_fn_c_try_compile "$LINENO" 5007 then : 5008 xorg_cv_cc_flag_unused_command_line_argument=yes 5009 else $as_nop 5010 xorg_cv_cc_flag_unused_command_line_argument=no 5011 fi 5012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5013 fi 5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5015 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5017 CFLAGS="$xorg_testset_save_CFLAGS" 5018 fi 5019 5020 found="no" 5021 5022 if test $found = "no" ; then 5023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5025 fi 5026 5027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5029 fi 5030 5031 CFLAGS="$CFLAGS -Wall" 5032 5033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5034 printf %s "checking if $CC supports -Wall... " >&6; } 5035 cacheid=xorg_cv_cc_flag__Wall 5036 if eval test \${$cacheid+y} 5037 then : 5038 printf %s "(cached) " >&6 5039 else $as_nop 5040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5041 /* end confdefs.h. */ 5042 int i; 5043 int 5044 main (void) 5045 { 5046 5047 ; 5048 return 0; 5049 } 5050 _ACEOF 5051 if ac_fn_c_try_link "$LINENO" 5052 then : 5053 eval $cacheid=yes 5054 else $as_nop 5055 eval $cacheid=no 5056 fi 5057 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5058 conftest$ac_exeext conftest.$ac_ext 5059 fi 5060 5061 5062 CFLAGS="$xorg_testset_save_CFLAGS" 5063 5064 eval supported=\$$cacheid 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5066 printf "%s\n" "$supported" >&6; } 5067 if test "$supported" = "yes" ; then 5068 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5069 found="yes" 5070 fi 5071 fi 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 xorg_testset_save_CFLAGS="$CFLAGS" 5088 5089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5092 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5093 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5094 then : 5095 printf %s "(cached) " >&6 5096 else $as_nop 5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5098 /* end confdefs.h. */ 5099 int i; 5100 _ACEOF 5101 if ac_fn_c_try_compile "$LINENO" 5102 then : 5103 xorg_cv_cc_flag_unknown_warning_option=yes 5104 else $as_nop 5105 xorg_cv_cc_flag_unknown_warning_option=no 5106 fi 5107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5108 fi 5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5112 CFLAGS="$xorg_testset_save_CFLAGS" 5113 fi 5114 5115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5118 fi 5119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5123 then : 5124 printf %s "(cached) " >&6 5125 else $as_nop 5126 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_unused_command_line_argument=yes 5133 else $as_nop 5134 xorg_cv_cc_flag_unused_command_line_argument=no 5135 fi 5136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5137 fi 5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5141 CFLAGS="$xorg_testset_save_CFLAGS" 5142 fi 5143 5144 found="no" 5145 5146 if test $found = "no" ; then 5147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5149 fi 5150 5151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5153 fi 5154 5155 CFLAGS="$CFLAGS -Wpointer-arith" 5156 5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5158 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5159 cacheid=xorg_cv_cc_flag__Wpointer_arith 5160 if eval test \${$cacheid+y} 5161 then : 5162 printf %s "(cached) " >&6 5163 else $as_nop 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165 /* end confdefs.h. */ 5166 int i; 5167 int 5168 main (void) 5169 { 5170 5171 ; 5172 return 0; 5173 } 5174 _ACEOF 5175 if ac_fn_c_try_link "$LINENO" 5176 then : 5177 eval $cacheid=yes 5178 else $as_nop 5179 eval $cacheid=no 5180 fi 5181 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5182 conftest$ac_exeext conftest.$ac_ext 5183 fi 5184 5185 5186 CFLAGS="$xorg_testset_save_CFLAGS" 5187 5188 eval supported=\$$cacheid 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5190 printf "%s\n" "$supported" >&6; } 5191 if test "$supported" = "yes" ; then 5192 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5193 found="yes" 5194 fi 5195 fi 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 xorg_testset_save_CFLAGS="$CFLAGS" 5212 5213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5217 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5218 then : 5219 printf %s "(cached) " >&6 5220 else $as_nop 5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222 /* end confdefs.h. */ 5223 int i; 5224 _ACEOF 5225 if ac_fn_c_try_compile "$LINENO" 5226 then : 5227 xorg_cv_cc_flag_unknown_warning_option=yes 5228 else $as_nop 5229 xorg_cv_cc_flag_unknown_warning_option=no 5230 fi 5231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5232 fi 5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5234 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5236 CFLAGS="$xorg_testset_save_CFLAGS" 5237 fi 5238 5239 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5242 fi 5243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5245 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5246 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5247 then : 5248 printf %s "(cached) " >&6 5249 else $as_nop 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5251 /* end confdefs.h. */ 5252 int i; 5253 _ACEOF 5254 if ac_fn_c_try_compile "$LINENO" 5255 then : 5256 xorg_cv_cc_flag_unused_command_line_argument=yes 5257 else $as_nop 5258 xorg_cv_cc_flag_unused_command_line_argument=no 5259 fi 5260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5261 fi 5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5263 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5264 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5265 CFLAGS="$xorg_testset_save_CFLAGS" 5266 fi 5267 5268 found="no" 5269 5270 if test $found = "no" ; then 5271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5273 fi 5274 5275 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5277 fi 5278 5279 CFLAGS="$CFLAGS -Wmissing-declarations" 5280 5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5282 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5283 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5284 if eval test \${$cacheid+y} 5285 then : 5286 printf %s "(cached) " >&6 5287 else $as_nop 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289 /* end confdefs.h. */ 5290 int i; 5291 int 5292 main (void) 5293 { 5294 5295 ; 5296 return 0; 5297 } 5298 _ACEOF 5299 if ac_fn_c_try_link "$LINENO" 5300 then : 5301 eval $cacheid=yes 5302 else $as_nop 5303 eval $cacheid=no 5304 fi 5305 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5306 conftest$ac_exeext conftest.$ac_ext 5307 fi 5308 5309 5310 CFLAGS="$xorg_testset_save_CFLAGS" 5311 5312 eval supported=\$$cacheid 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5314 printf "%s\n" "$supported" >&6; } 5315 if test "$supported" = "yes" ; then 5316 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5317 found="yes" 5318 fi 5319 fi 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 xorg_testset_save_CFLAGS="$CFLAGS" 5336 5337 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5340 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5341 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5342 then : 5343 printf %s "(cached) " >&6 5344 else $as_nop 5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5346 /* end confdefs.h. */ 5347 int i; 5348 _ACEOF 5349 if ac_fn_c_try_compile "$LINENO" 5350 then : 5351 xorg_cv_cc_flag_unknown_warning_option=yes 5352 else $as_nop 5353 xorg_cv_cc_flag_unknown_warning_option=no 5354 fi 5355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5356 fi 5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5358 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5360 CFLAGS="$xorg_testset_save_CFLAGS" 5361 fi 5362 5363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5366 fi 5367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5369 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5370 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5371 then : 5372 printf %s "(cached) " >&6 5373 else $as_nop 5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375 /* end confdefs.h. */ 5376 int i; 5377 _ACEOF 5378 if ac_fn_c_try_compile "$LINENO" 5379 then : 5380 xorg_cv_cc_flag_unused_command_line_argument=yes 5381 else $as_nop 5382 xorg_cv_cc_flag_unused_command_line_argument=no 5383 fi 5384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5385 fi 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5387 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5389 CFLAGS="$xorg_testset_save_CFLAGS" 5390 fi 5391 5392 found="no" 5393 5394 if test $found = "no" ; then 5395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5397 fi 5398 5399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5401 fi 5402 5403 CFLAGS="$CFLAGS -Wformat=2" 5404 5405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5406 printf %s "checking if $CC supports -Wformat=2... " >&6; } 5407 cacheid=xorg_cv_cc_flag__Wformat_2 5408 if eval test \${$cacheid+y} 5409 then : 5410 printf %s "(cached) " >&6 5411 else $as_nop 5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5413 /* end confdefs.h. */ 5414 int i; 5415 int 5416 main (void) 5417 { 5418 5419 ; 5420 return 0; 5421 } 5422 _ACEOF 5423 if ac_fn_c_try_link "$LINENO" 5424 then : 5425 eval $cacheid=yes 5426 else $as_nop 5427 eval $cacheid=no 5428 fi 5429 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5430 conftest$ac_exeext conftest.$ac_ext 5431 fi 5432 5433 5434 CFLAGS="$xorg_testset_save_CFLAGS" 5435 5436 eval supported=\$$cacheid 5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5438 printf "%s\n" "$supported" >&6; } 5439 if test "$supported" = "yes" ; then 5440 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5441 found="yes" 5442 fi 5443 fi 5444 5445 if test $found = "no" ; then 5446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5448 fi 5449 5450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5452 fi 5453 5454 CFLAGS="$CFLAGS -Wformat" 5455 5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5457 printf %s "checking if $CC supports -Wformat... " >&6; } 5458 cacheid=xorg_cv_cc_flag__Wformat 5459 if eval test \${$cacheid+y} 5460 then : 5461 printf %s "(cached) " >&6 5462 else $as_nop 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464 /* end confdefs.h. */ 5465 int i; 5466 int 5467 main (void) 5468 { 5469 5470 ; 5471 return 0; 5472 } 5473 _ACEOF 5474 if ac_fn_c_try_link "$LINENO" 5475 then : 5476 eval $cacheid=yes 5477 else $as_nop 5478 eval $cacheid=no 5479 fi 5480 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5481 conftest$ac_exeext conftest.$ac_ext 5482 fi 5483 5484 5485 CFLAGS="$xorg_testset_save_CFLAGS" 5486 5487 eval supported=\$$cacheid 5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5489 printf "%s\n" "$supported" >&6; } 5490 if test "$supported" = "yes" ; then 5491 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5492 found="yes" 5493 fi 5494 fi 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 xorg_testset_save_CFLAGS="$CFLAGS" 5513 5514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5517 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5518 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5519 then : 5520 printf %s "(cached) " >&6 5521 else $as_nop 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523 /* end confdefs.h. */ 5524 int i; 5525 _ACEOF 5526 if ac_fn_c_try_compile "$LINENO" 5527 then : 5528 xorg_cv_cc_flag_unknown_warning_option=yes 5529 else $as_nop 5530 xorg_cv_cc_flag_unknown_warning_option=no 5531 fi 5532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5533 fi 5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5535 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5536 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5537 CFLAGS="$xorg_testset_save_CFLAGS" 5538 fi 5539 5540 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5543 fi 5544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5546 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5547 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5548 then : 5549 printf %s "(cached) " >&6 5550 else $as_nop 5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5552 /* end confdefs.h. */ 5553 int i; 5554 _ACEOF 5555 if ac_fn_c_try_compile "$LINENO" 5556 then : 5557 xorg_cv_cc_flag_unused_command_line_argument=yes 5558 else $as_nop 5559 xorg_cv_cc_flag_unused_command_line_argument=no 5560 fi 5561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5562 fi 5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5564 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5566 CFLAGS="$xorg_testset_save_CFLAGS" 5567 fi 5568 5569 found="no" 5570 5571 if test $found = "no" ; then 5572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5574 fi 5575 5576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5578 fi 5579 5580 CFLAGS="$CFLAGS -Wstrict-prototypes" 5581 5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5583 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5584 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5585 if eval test \${$cacheid+y} 5586 then : 5587 printf %s "(cached) " >&6 5588 else $as_nop 5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5590 /* end confdefs.h. */ 5591 int i; 5592 int 5593 main (void) 5594 { 5595 5596 ; 5597 return 0; 5598 } 5599 _ACEOF 5600 if ac_fn_c_try_link "$LINENO" 5601 then : 5602 eval $cacheid=yes 5603 else $as_nop 5604 eval $cacheid=no 5605 fi 5606 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5607 conftest$ac_exeext conftest.$ac_ext 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 -Wstrict-prototypes" 5618 found="yes" 5619 fi 5620 fi 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 xorg_testset_save_CFLAGS="$CFLAGS" 5637 5638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5642 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5643 then : 5644 printf %s "(cached) " >&6 5645 else $as_nop 5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5647 /* end confdefs.h. */ 5648 int i; 5649 _ACEOF 5650 if ac_fn_c_try_compile "$LINENO" 5651 then : 5652 xorg_cv_cc_flag_unknown_warning_option=yes 5653 else $as_nop 5654 xorg_cv_cc_flag_unknown_warning_option=no 5655 fi 5656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5657 fi 5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5659 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5661 CFLAGS="$xorg_testset_save_CFLAGS" 5662 fi 5663 5664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5667 fi 5668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5670 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5671 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5672 then : 5673 printf %s "(cached) " >&6 5674 else $as_nop 5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5676 /* end confdefs.h. */ 5677 int i; 5678 _ACEOF 5679 if ac_fn_c_try_compile "$LINENO" 5680 then : 5681 xorg_cv_cc_flag_unused_command_line_argument=yes 5682 else $as_nop 5683 xorg_cv_cc_flag_unused_command_line_argument=no 5684 fi 5685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5686 fi 5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5688 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5690 CFLAGS="$xorg_testset_save_CFLAGS" 5691 fi 5692 5693 found="no" 5694 5695 if test $found = "no" ; then 5696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5698 fi 5699 5700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5702 fi 5703 5704 CFLAGS="$CFLAGS -Wmissing-prototypes" 5705 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5707 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5708 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5709 if eval test \${$cacheid+y} 5710 then : 5711 printf %s "(cached) " >&6 5712 else $as_nop 5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5714 /* end confdefs.h. */ 5715 int i; 5716 int 5717 main (void) 5718 { 5719 5720 ; 5721 return 0; 5722 } 5723 _ACEOF 5724 if ac_fn_c_try_link "$LINENO" 5725 then : 5726 eval $cacheid=yes 5727 else $as_nop 5728 eval $cacheid=no 5729 fi 5730 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5731 conftest$ac_exeext conftest.$ac_ext 5732 fi 5733 5734 5735 CFLAGS="$xorg_testset_save_CFLAGS" 5736 5737 eval supported=\$$cacheid 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5739 printf "%s\n" "$supported" >&6; } 5740 if test "$supported" = "yes" ; then 5741 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5742 found="yes" 5743 fi 5744 fi 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 xorg_testset_save_CFLAGS="$CFLAGS" 5761 5762 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5765 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5766 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5767 then : 5768 printf %s "(cached) " >&6 5769 else $as_nop 5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5771 /* end confdefs.h. */ 5772 int i; 5773 _ACEOF 5774 if ac_fn_c_try_compile "$LINENO" 5775 then : 5776 xorg_cv_cc_flag_unknown_warning_option=yes 5777 else $as_nop 5778 xorg_cv_cc_flag_unknown_warning_option=no 5779 fi 5780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5781 fi 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5783 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786 fi 5787 5788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5791 fi 5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5794 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5795 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5796 then : 5797 printf %s "(cached) " >&6 5798 else $as_nop 5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5800 /* end confdefs.h. */ 5801 int i; 5802 _ACEOF 5803 if ac_fn_c_try_compile "$LINENO" 5804 then : 5805 xorg_cv_cc_flag_unused_command_line_argument=yes 5806 else $as_nop 5807 xorg_cv_cc_flag_unused_command_line_argument=no 5808 fi 5809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5810 fi 5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5812 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5814 CFLAGS="$xorg_testset_save_CFLAGS" 5815 fi 5816 5817 found="no" 5818 5819 if test $found = "no" ; then 5820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5822 fi 5823 5824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5826 fi 5827 5828 CFLAGS="$CFLAGS -Wnested-externs" 5829 5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5831 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5832 cacheid=xorg_cv_cc_flag__Wnested_externs 5833 if eval test \${$cacheid+y} 5834 then : 5835 printf %s "(cached) " >&6 5836 else $as_nop 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838 /* end confdefs.h. */ 5839 int i; 5840 int 5841 main (void) 5842 { 5843 5844 ; 5845 return 0; 5846 } 5847 _ACEOF 5848 if ac_fn_c_try_link "$LINENO" 5849 then : 5850 eval $cacheid=yes 5851 else $as_nop 5852 eval $cacheid=no 5853 fi 5854 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5855 conftest$ac_exeext conftest.$ac_ext 5856 fi 5857 5858 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 eval supported=\$$cacheid 5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863 printf "%s\n" "$supported" >&6; } 5864 if test "$supported" = "yes" ; then 5865 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5866 found="yes" 5867 fi 5868 fi 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 xorg_testset_save_CFLAGS="$CFLAGS" 5885 5886 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5889 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5890 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5891 then : 5892 printf %s "(cached) " >&6 5893 else $as_nop 5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895 /* end confdefs.h. */ 5896 int i; 5897 _ACEOF 5898 if ac_fn_c_try_compile "$LINENO" 5899 then : 5900 xorg_cv_cc_flag_unknown_warning_option=yes 5901 else $as_nop 5902 xorg_cv_cc_flag_unknown_warning_option=no 5903 fi 5904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5905 fi 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5909 CFLAGS="$xorg_testset_save_CFLAGS" 5910 fi 5911 5912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5915 fi 5916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5920 then : 5921 printf %s "(cached) " >&6 5922 else $as_nop 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924 /* end confdefs.h. */ 5925 int i; 5926 _ACEOF 5927 if ac_fn_c_try_compile "$LINENO" 5928 then : 5929 xorg_cv_cc_flag_unused_command_line_argument=yes 5930 else $as_nop 5931 xorg_cv_cc_flag_unused_command_line_argument=no 5932 fi 5933 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5934 fi 5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5936 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5938 CFLAGS="$xorg_testset_save_CFLAGS" 5939 fi 5940 5941 found="no" 5942 5943 if test $found = "no" ; then 5944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5946 fi 5947 5948 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5950 fi 5951 5952 CFLAGS="$CFLAGS -Wbad-function-cast" 5953 5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5955 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5956 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5957 if eval test \${$cacheid+y} 5958 then : 5959 printf %s "(cached) " >&6 5960 else $as_nop 5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5962 /* end confdefs.h. */ 5963 int i; 5964 int 5965 main (void) 5966 { 5967 5968 ; 5969 return 0; 5970 } 5971 _ACEOF 5972 if ac_fn_c_try_link "$LINENO" 5973 then : 5974 eval $cacheid=yes 5975 else $as_nop 5976 eval $cacheid=no 5977 fi 5978 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5979 conftest$ac_exeext conftest.$ac_ext 5980 fi 5981 5982 5983 CFLAGS="$xorg_testset_save_CFLAGS" 5984 5985 eval supported=\$$cacheid 5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5987 printf "%s\n" "$supported" >&6; } 5988 if test "$supported" = "yes" ; then 5989 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5990 found="yes" 5991 fi 5992 fi 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 xorg_testset_save_CFLAGS="$CFLAGS" 6009 6010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6014 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6015 then : 6016 printf %s "(cached) " >&6 6017 else $as_nop 6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6019 /* end confdefs.h. */ 6020 int i; 6021 _ACEOF 6022 if ac_fn_c_try_compile "$LINENO" 6023 then : 6024 xorg_cv_cc_flag_unknown_warning_option=yes 6025 else $as_nop 6026 xorg_cv_cc_flag_unknown_warning_option=no 6027 fi 6028 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6029 fi 6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6031 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6033 CFLAGS="$xorg_testset_save_CFLAGS" 6034 fi 6035 6036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6039 fi 6040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6042 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6043 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6044 then : 6045 printf %s "(cached) " >&6 6046 else $as_nop 6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6048 /* end confdefs.h. */ 6049 int i; 6050 _ACEOF 6051 if ac_fn_c_try_compile "$LINENO" 6052 then : 6053 xorg_cv_cc_flag_unused_command_line_argument=yes 6054 else $as_nop 6055 xorg_cv_cc_flag_unused_command_line_argument=no 6056 fi 6057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6058 fi 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6060 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6062 CFLAGS="$xorg_testset_save_CFLAGS" 6063 fi 6064 6065 found="no" 6066 6067 if test $found = "no" ; then 6068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6070 fi 6071 6072 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6074 fi 6075 6076 CFLAGS="$CFLAGS -Wold-style-definition" 6077 6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6079 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6080 cacheid=xorg_cv_cc_flag__Wold_style_definition 6081 if eval test \${$cacheid+y} 6082 then : 6083 printf %s "(cached) " >&6 6084 else $as_nop 6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6086 /* end confdefs.h. */ 6087 int i; 6088 int 6089 main (void) 6090 { 6091 6092 ; 6093 return 0; 6094 } 6095 _ACEOF 6096 if ac_fn_c_try_link "$LINENO" 6097 then : 6098 eval $cacheid=yes 6099 else $as_nop 6100 eval $cacheid=no 6101 fi 6102 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6103 conftest$ac_exeext conftest.$ac_ext 6104 fi 6105 6106 6107 CFLAGS="$xorg_testset_save_CFLAGS" 6108 6109 eval supported=\$$cacheid 6110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6111 printf "%s\n" "$supported" >&6; } 6112 if test "$supported" = "yes" ; then 6113 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6114 found="yes" 6115 fi 6116 fi 6117 6118 if test $found = "no" ; then 6119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6120 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6121 fi 6122 6123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6125 fi 6126 6127 CFLAGS="$CFLAGS -fd" 6128 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6130 printf %s "checking if $CC supports -fd... " >&6; } 6131 cacheid=xorg_cv_cc_flag__fd 6132 if eval test \${$cacheid+y} 6133 then : 6134 printf %s "(cached) " >&6 6135 else $as_nop 6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6137 /* end confdefs.h. */ 6138 int i; 6139 int 6140 main (void) 6141 { 6142 6143 ; 6144 return 0; 6145 } 6146 _ACEOF 6147 if ac_fn_c_try_link "$LINENO" 6148 then : 6149 eval $cacheid=yes 6150 else $as_nop 6151 eval $cacheid=no 6152 fi 6153 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6154 conftest$ac_exeext conftest.$ac_ext 6155 fi 6156 6157 6158 CFLAGS="$xorg_testset_save_CFLAGS" 6159 6160 eval supported=\$$cacheid 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6162 printf "%s\n" "$supported" >&6; } 6163 if test "$supported" = "yes" ; then 6164 BASE_CFLAGS="$BASE_CFLAGS -fd" 6165 found="yes" 6166 fi 6167 fi 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 xorg_testset_save_CFLAGS="$CFLAGS" 6184 6185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6188 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6189 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6190 then : 6191 printf %s "(cached) " >&6 6192 else $as_nop 6193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6194 /* end confdefs.h. */ 6195 int i; 6196 _ACEOF 6197 if ac_fn_c_try_compile "$LINENO" 6198 then : 6199 xorg_cv_cc_flag_unknown_warning_option=yes 6200 else $as_nop 6201 xorg_cv_cc_flag_unknown_warning_option=no 6202 fi 6203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6204 fi 6205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6208 CFLAGS="$xorg_testset_save_CFLAGS" 6209 fi 6210 6211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6214 fi 6215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6219 then : 6220 printf %s "(cached) " >&6 6221 else $as_nop 6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6223 /* end confdefs.h. */ 6224 int i; 6225 _ACEOF 6226 if ac_fn_c_try_compile "$LINENO" 6227 then : 6228 xorg_cv_cc_flag_unused_command_line_argument=yes 6229 else $as_nop 6230 xorg_cv_cc_flag_unused_command_line_argument=no 6231 fi 6232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6233 fi 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6237 CFLAGS="$xorg_testset_save_CFLAGS" 6238 fi 6239 6240 found="no" 6241 6242 if test $found = "no" ; then 6243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6245 fi 6246 6247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6249 fi 6250 6251 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6252 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6254 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6255 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6256 if eval test \${$cacheid+y} 6257 then : 6258 printf %s "(cached) " >&6 6259 else $as_nop 6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6261 /* end confdefs.h. */ 6262 int i; 6263 int 6264 main (void) 6265 { 6266 6267 ; 6268 return 0; 6269 } 6270 _ACEOF 6271 if ac_fn_c_try_link "$LINENO" 6272 then : 6273 eval $cacheid=yes 6274 else $as_nop 6275 eval $cacheid=no 6276 fi 6277 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6278 conftest$ac_exeext conftest.$ac_ext 6279 fi 6280 6281 6282 CFLAGS="$xorg_testset_save_CFLAGS" 6283 6284 eval supported=\$$cacheid 6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6286 printf "%s\n" "$supported" >&6; } 6287 if test "$supported" = "yes" ; then 6288 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6289 found="yes" 6290 fi 6291 fi 6292 6293 6294 6295 6296 6297 # This chunk adds additional warnings that could catch undesired effects. 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 xorg_testset_save_CFLAGS="$CFLAGS" 6312 6313 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6316 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6317 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6318 then : 6319 printf %s "(cached) " >&6 6320 else $as_nop 6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6322 /* end confdefs.h. */ 6323 int i; 6324 _ACEOF 6325 if ac_fn_c_try_compile "$LINENO" 6326 then : 6327 xorg_cv_cc_flag_unknown_warning_option=yes 6328 else $as_nop 6329 xorg_cv_cc_flag_unknown_warning_option=no 6330 fi 6331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6332 fi 6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6336 CFLAGS="$xorg_testset_save_CFLAGS" 6337 fi 6338 6339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 fi 6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6347 then : 6348 printf %s "(cached) " >&6 6349 else $as_nop 6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6351 /* end confdefs.h. */ 6352 int i; 6353 _ACEOF 6354 if ac_fn_c_try_compile "$LINENO" 6355 then : 6356 xorg_cv_cc_flag_unused_command_line_argument=yes 6357 else $as_nop 6358 xorg_cv_cc_flag_unused_command_line_argument=no 6359 fi 6360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6361 fi 6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6363 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6365 CFLAGS="$xorg_testset_save_CFLAGS" 6366 fi 6367 6368 found="no" 6369 6370 if test $found = "no" ; then 6371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6373 fi 6374 6375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6377 fi 6378 6379 CFLAGS="$CFLAGS -Wunused" 6380 6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6382 printf %s "checking if $CC supports -Wunused... " >&6; } 6383 cacheid=xorg_cv_cc_flag__Wunused 6384 if eval test \${$cacheid+y} 6385 then : 6386 printf %s "(cached) " >&6 6387 else $as_nop 6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6389 /* end confdefs.h. */ 6390 int i; 6391 int 6392 main (void) 6393 { 6394 6395 ; 6396 return 0; 6397 } 6398 _ACEOF 6399 if ac_fn_c_try_link "$LINENO" 6400 then : 6401 eval $cacheid=yes 6402 else $as_nop 6403 eval $cacheid=no 6404 fi 6405 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6406 conftest$ac_exeext conftest.$ac_ext 6407 fi 6408 6409 6410 CFLAGS="$xorg_testset_save_CFLAGS" 6411 6412 eval supported=\$$cacheid 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6414 printf "%s\n" "$supported" >&6; } 6415 if test "$supported" = "yes" ; then 6416 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6417 found="yes" 6418 fi 6419 fi 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 xorg_testset_save_CFLAGS="$CFLAGS" 6436 6437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6441 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6442 then : 6443 printf %s "(cached) " >&6 6444 else $as_nop 6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6446 /* end confdefs.h. */ 6447 int i; 6448 _ACEOF 6449 if ac_fn_c_try_compile "$LINENO" 6450 then : 6451 xorg_cv_cc_flag_unknown_warning_option=yes 6452 else $as_nop 6453 xorg_cv_cc_flag_unknown_warning_option=no 6454 fi 6455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6456 fi 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6460 CFLAGS="$xorg_testset_save_CFLAGS" 6461 fi 6462 6463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6466 fi 6467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6471 then : 6472 printf %s "(cached) " >&6 6473 else $as_nop 6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6475 /* end confdefs.h. */ 6476 int i; 6477 _ACEOF 6478 if ac_fn_c_try_compile "$LINENO" 6479 then : 6480 xorg_cv_cc_flag_unused_command_line_argument=yes 6481 else $as_nop 6482 xorg_cv_cc_flag_unused_command_line_argument=no 6483 fi 6484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6485 fi 6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6487 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6489 CFLAGS="$xorg_testset_save_CFLAGS" 6490 fi 6491 6492 found="no" 6493 6494 if test $found = "no" ; then 6495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6497 fi 6498 6499 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6501 fi 6502 6503 CFLAGS="$CFLAGS -Wuninitialized" 6504 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6506 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6507 cacheid=xorg_cv_cc_flag__Wuninitialized 6508 if eval test \${$cacheid+y} 6509 then : 6510 printf %s "(cached) " >&6 6511 else $as_nop 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6513 /* end confdefs.h. */ 6514 int i; 6515 int 6516 main (void) 6517 { 6518 6519 ; 6520 return 0; 6521 } 6522 _ACEOF 6523 if ac_fn_c_try_link "$LINENO" 6524 then : 6525 eval $cacheid=yes 6526 else $as_nop 6527 eval $cacheid=no 6528 fi 6529 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6530 conftest$ac_exeext conftest.$ac_ext 6531 fi 6532 6533 6534 CFLAGS="$xorg_testset_save_CFLAGS" 6535 6536 eval supported=\$$cacheid 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6538 printf "%s\n" "$supported" >&6; } 6539 if test "$supported" = "yes" ; then 6540 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6541 found="yes" 6542 fi 6543 fi 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 xorg_testset_save_CFLAGS="$CFLAGS" 6560 6561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6565 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6566 then : 6567 printf %s "(cached) " >&6 6568 else $as_nop 6569 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_unknown_warning_option=yes 6576 else $as_nop 6577 xorg_cv_cc_flag_unknown_warning_option=no 6578 fi 6579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6580 fi 6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6582 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6584 CFLAGS="$xorg_testset_save_CFLAGS" 6585 fi 6586 6587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6590 fi 6591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6593 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6594 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6595 then : 6596 printf %s "(cached) " >&6 6597 else $as_nop 6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599 /* end confdefs.h. */ 6600 int i; 6601 _ACEOF 6602 if ac_fn_c_try_compile "$LINENO" 6603 then : 6604 xorg_cv_cc_flag_unused_command_line_argument=yes 6605 else $as_nop 6606 xorg_cv_cc_flag_unused_command_line_argument=no 6607 fi 6608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6609 fi 6610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6613 CFLAGS="$xorg_testset_save_CFLAGS" 6614 fi 6615 6616 found="no" 6617 6618 if test $found = "no" ; then 6619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6621 fi 6622 6623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6625 fi 6626 6627 CFLAGS="$CFLAGS -Wshadow" 6628 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6630 printf %s "checking if $CC supports -Wshadow... " >&6; } 6631 cacheid=xorg_cv_cc_flag__Wshadow 6632 if eval test \${$cacheid+y} 6633 then : 6634 printf %s "(cached) " >&6 6635 else $as_nop 6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6637 /* end confdefs.h. */ 6638 int i; 6639 int 6640 main (void) 6641 { 6642 6643 ; 6644 return 0; 6645 } 6646 _ACEOF 6647 if ac_fn_c_try_link "$LINENO" 6648 then : 6649 eval $cacheid=yes 6650 else $as_nop 6651 eval $cacheid=no 6652 fi 6653 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6654 conftest$ac_exeext conftest.$ac_ext 6655 fi 6656 6657 6658 CFLAGS="$xorg_testset_save_CFLAGS" 6659 6660 eval supported=\$$cacheid 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6662 printf "%s\n" "$supported" >&6; } 6663 if test "$supported" = "yes" ; then 6664 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6665 found="yes" 6666 fi 6667 fi 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 xorg_testset_save_CFLAGS="$CFLAGS" 6684 6685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6689 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6690 then : 6691 printf %s "(cached) " >&6 6692 else $as_nop 6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6694 /* end confdefs.h. */ 6695 int i; 6696 _ACEOF 6697 if ac_fn_c_try_compile "$LINENO" 6698 then : 6699 xorg_cv_cc_flag_unknown_warning_option=yes 6700 else $as_nop 6701 xorg_cv_cc_flag_unknown_warning_option=no 6702 fi 6703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6704 fi 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6708 CFLAGS="$xorg_testset_save_CFLAGS" 6709 fi 6710 6711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6714 fi 6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6718 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6719 then : 6720 printf %s "(cached) " >&6 6721 else $as_nop 6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6723 /* end confdefs.h. */ 6724 int i; 6725 _ACEOF 6726 if ac_fn_c_try_compile "$LINENO" 6727 then : 6728 xorg_cv_cc_flag_unused_command_line_argument=yes 6729 else $as_nop 6730 xorg_cv_cc_flag_unused_command_line_argument=no 6731 fi 6732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6733 fi 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6735 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6737 CFLAGS="$xorg_testset_save_CFLAGS" 6738 fi 6739 6740 found="no" 6741 6742 if test $found = "no" ; then 6743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6745 fi 6746 6747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6749 fi 6750 6751 CFLAGS="$CFLAGS -Wmissing-noreturn" 6752 6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6754 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6755 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6756 if eval test \${$cacheid+y} 6757 then : 6758 printf %s "(cached) " >&6 6759 else $as_nop 6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6761 /* end confdefs.h. */ 6762 int i; 6763 int 6764 main (void) 6765 { 6766 6767 ; 6768 return 0; 6769 } 6770 _ACEOF 6771 if ac_fn_c_try_link "$LINENO" 6772 then : 6773 eval $cacheid=yes 6774 else $as_nop 6775 eval $cacheid=no 6776 fi 6777 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6778 conftest$ac_exeext conftest.$ac_ext 6779 fi 6780 6781 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783 6784 eval supported=\$$cacheid 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6786 printf "%s\n" "$supported" >&6; } 6787 if test "$supported" = "yes" ; then 6788 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6789 found="yes" 6790 fi 6791 fi 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 xorg_testset_save_CFLAGS="$CFLAGS" 6808 6809 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6812 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6813 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6814 then : 6815 printf %s "(cached) " >&6 6816 else $as_nop 6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818 /* end confdefs.h. */ 6819 int i; 6820 _ACEOF 6821 if ac_fn_c_try_compile "$LINENO" 6822 then : 6823 xorg_cv_cc_flag_unknown_warning_option=yes 6824 else $as_nop 6825 xorg_cv_cc_flag_unknown_warning_option=no 6826 fi 6827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6828 fi 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6830 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6832 CFLAGS="$xorg_testset_save_CFLAGS" 6833 fi 6834 6835 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6838 fi 6839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6841 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6842 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6843 then : 6844 printf %s "(cached) " >&6 6845 else $as_nop 6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6847 /* end confdefs.h. */ 6848 int i; 6849 _ACEOF 6850 if ac_fn_c_try_compile "$LINENO" 6851 then : 6852 xorg_cv_cc_flag_unused_command_line_argument=yes 6853 else $as_nop 6854 xorg_cv_cc_flag_unused_command_line_argument=no 6855 fi 6856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6857 fi 6858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6859 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6860 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6861 CFLAGS="$xorg_testset_save_CFLAGS" 6862 fi 6863 6864 found="no" 6865 6866 if test $found = "no" ; then 6867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6869 fi 6870 6871 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6873 fi 6874 6875 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6876 6877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6878 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6879 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6880 if eval test \${$cacheid+y} 6881 then : 6882 printf %s "(cached) " >&6 6883 else $as_nop 6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885 /* end confdefs.h. */ 6886 int i; 6887 int 6888 main (void) 6889 { 6890 6891 ; 6892 return 0; 6893 } 6894 _ACEOF 6895 if ac_fn_c_try_link "$LINENO" 6896 then : 6897 eval $cacheid=yes 6898 else $as_nop 6899 eval $cacheid=no 6900 fi 6901 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6902 conftest$ac_exeext conftest.$ac_ext 6903 fi 6904 6905 6906 CFLAGS="$xorg_testset_save_CFLAGS" 6907 6908 eval supported=\$$cacheid 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6910 printf "%s\n" "$supported" >&6; } 6911 if test "$supported" = "yes" ; then 6912 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6913 found="yes" 6914 fi 6915 fi 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 xorg_testset_save_CFLAGS="$CFLAGS" 6932 6933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6936 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6937 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6938 then : 6939 printf %s "(cached) " >&6 6940 else $as_nop 6941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6942 /* end confdefs.h. */ 6943 int i; 6944 _ACEOF 6945 if ac_fn_c_try_compile "$LINENO" 6946 then : 6947 xorg_cv_cc_flag_unknown_warning_option=yes 6948 else $as_nop 6949 xorg_cv_cc_flag_unknown_warning_option=no 6950 fi 6951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6952 fi 6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6954 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6956 CFLAGS="$xorg_testset_save_CFLAGS" 6957 fi 6958 6959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6962 fi 6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6965 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6966 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6967 then : 6968 printf %s "(cached) " >&6 6969 else $as_nop 6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6971 /* end confdefs.h. */ 6972 int i; 6973 _ACEOF 6974 if ac_fn_c_try_compile "$LINENO" 6975 then : 6976 xorg_cv_cc_flag_unused_command_line_argument=yes 6977 else $as_nop 6978 xorg_cv_cc_flag_unused_command_line_argument=no 6979 fi 6980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6981 fi 6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6983 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6984 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6985 CFLAGS="$xorg_testset_save_CFLAGS" 6986 fi 6987 6988 found="no" 6989 6990 if test $found = "no" ; then 6991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6993 fi 6994 6995 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6997 fi 6998 6999 CFLAGS="$CFLAGS -Wredundant-decls" 7000 7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7002 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7003 cacheid=xorg_cv_cc_flag__Wredundant_decls 7004 if eval test \${$cacheid+y} 7005 then : 7006 printf %s "(cached) " >&6 7007 else $as_nop 7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7009 /* end confdefs.h. */ 7010 int i; 7011 int 7012 main (void) 7013 { 7014 7015 ; 7016 return 0; 7017 } 7018 _ACEOF 7019 if ac_fn_c_try_link "$LINENO" 7020 then : 7021 eval $cacheid=yes 7022 else $as_nop 7023 eval $cacheid=no 7024 fi 7025 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7026 conftest$ac_exeext conftest.$ac_ext 7027 fi 7028 7029 7030 CFLAGS="$xorg_testset_save_CFLAGS" 7031 7032 eval supported=\$$cacheid 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7034 printf "%s\n" "$supported" >&6; } 7035 if test "$supported" = "yes" ; then 7036 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7037 found="yes" 7038 fi 7039 fi 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 xorg_testset_save_CFLAGS="$CFLAGS" 7056 7057 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7060 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7061 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7062 then : 7063 printf %s "(cached) " >&6 7064 else $as_nop 7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7066 /* end confdefs.h. */ 7067 int i; 7068 _ACEOF 7069 if ac_fn_c_try_compile "$LINENO" 7070 then : 7071 xorg_cv_cc_flag_unknown_warning_option=yes 7072 else $as_nop 7073 xorg_cv_cc_flag_unknown_warning_option=no 7074 fi 7075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7076 fi 7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7078 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7079 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7080 CFLAGS="$xorg_testset_save_CFLAGS" 7081 fi 7082 7083 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7086 fi 7087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7089 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7090 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7091 then : 7092 printf %s "(cached) " >&6 7093 else $as_nop 7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7095 /* end confdefs.h. */ 7096 int i; 7097 _ACEOF 7098 if ac_fn_c_try_compile "$LINENO" 7099 then : 7100 xorg_cv_cc_flag_unused_command_line_argument=yes 7101 else $as_nop 7102 xorg_cv_cc_flag_unused_command_line_argument=no 7103 fi 7104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7105 fi 7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7109 CFLAGS="$xorg_testset_save_CFLAGS" 7110 fi 7111 7112 found="no" 7113 7114 if test $found = "no" ; then 7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7117 fi 7118 7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7121 fi 7122 7123 CFLAGS="$CFLAGS -Wlogical-op" 7124 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7126 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7127 cacheid=xorg_cv_cc_flag__Wlogical_op 7128 if eval test \${$cacheid+y} 7129 then : 7130 printf %s "(cached) " >&6 7131 else $as_nop 7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7133 /* end confdefs.h. */ 7134 int i; 7135 int 7136 main (void) 7137 { 7138 7139 ; 7140 return 0; 7141 } 7142 _ACEOF 7143 if ac_fn_c_try_link "$LINENO" 7144 then : 7145 eval $cacheid=yes 7146 else $as_nop 7147 eval $cacheid=no 7148 fi 7149 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7150 conftest$ac_exeext conftest.$ac_ext 7151 fi 7152 7153 7154 CFLAGS="$xorg_testset_save_CFLAGS" 7155 7156 eval supported=\$$cacheid 7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7158 printf "%s\n" "$supported" >&6; } 7159 if test "$supported" = "yes" ; then 7160 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7161 found="yes" 7162 fi 7163 fi 7164 7165 7166 7167 # These are currently disabled because they are noisy. They will be enabled 7168 # in the future once the codebase is sufficiently modernized to silence 7169 # them. For now, I don't want them to drown out the other warnings. 7170 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7171 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7172 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7173 7174 # Turn some warnings into errors, so we don't accidently get successful builds 7175 # when there are problems that should be fixed. 7176 7177 if test "x$SELECTIVE_WERROR" = "xyes" ; then 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 xorg_testset_save_CFLAGS="$CFLAGS" 7192 7193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7194 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7196 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7197 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7198 then : 7199 printf %s "(cached) " >&6 7200 else $as_nop 7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7202 /* end confdefs.h. */ 7203 int i; 7204 _ACEOF 7205 if ac_fn_c_try_compile "$LINENO" 7206 then : 7207 xorg_cv_cc_flag_unknown_warning_option=yes 7208 else $as_nop 7209 xorg_cv_cc_flag_unknown_warning_option=no 7210 fi 7211 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7212 fi 7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7214 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7216 CFLAGS="$xorg_testset_save_CFLAGS" 7217 fi 7218 7219 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7222 fi 7223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7225 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7226 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7227 then : 7228 printf %s "(cached) " >&6 7229 else $as_nop 7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7231 /* end confdefs.h. */ 7232 int i; 7233 _ACEOF 7234 if ac_fn_c_try_compile "$LINENO" 7235 then : 7236 xorg_cv_cc_flag_unused_command_line_argument=yes 7237 else $as_nop 7238 xorg_cv_cc_flag_unused_command_line_argument=no 7239 fi 7240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7241 fi 7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7243 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7245 CFLAGS="$xorg_testset_save_CFLAGS" 7246 fi 7247 7248 found="no" 7249 7250 if test $found = "no" ; then 7251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7253 fi 7254 7255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7257 fi 7258 7259 CFLAGS="$CFLAGS -Werror=implicit" 7260 7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7262 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7263 cacheid=xorg_cv_cc_flag__Werror_implicit 7264 if eval test \${$cacheid+y} 7265 then : 7266 printf %s "(cached) " >&6 7267 else $as_nop 7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7269 /* end confdefs.h. */ 7270 int i; 7271 int 7272 main (void) 7273 { 7274 7275 ; 7276 return 0; 7277 } 7278 _ACEOF 7279 if ac_fn_c_try_link "$LINENO" 7280 then : 7281 eval $cacheid=yes 7282 else $as_nop 7283 eval $cacheid=no 7284 fi 7285 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7286 conftest$ac_exeext conftest.$ac_ext 7287 fi 7288 7289 7290 CFLAGS="$xorg_testset_save_CFLAGS" 7291 7292 eval supported=\$$cacheid 7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7294 printf "%s\n" "$supported" >&6; } 7295 if test "$supported" = "yes" ; then 7296 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7297 found="yes" 7298 fi 7299 fi 7300 7301 if test $found = "no" ; then 7302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7304 fi 7305 7306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7308 fi 7309 7310 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7311 7312 { 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 7313 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7314 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7315 if eval test \${$cacheid+y} 7316 then : 7317 printf %s "(cached) " >&6 7318 else $as_nop 7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7320 /* end confdefs.h. */ 7321 int i; 7322 int 7323 main (void) 7324 { 7325 7326 ; 7327 return 0; 7328 } 7329 _ACEOF 7330 if ac_fn_c_try_link "$LINENO" 7331 then : 7332 eval $cacheid=yes 7333 else $as_nop 7334 eval $cacheid=no 7335 fi 7336 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7337 conftest$ac_exeext conftest.$ac_ext 7338 fi 7339 7340 7341 CFLAGS="$xorg_testset_save_CFLAGS" 7342 7343 eval supported=\$$cacheid 7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7345 printf "%s\n" "$supported" >&6; } 7346 if test "$supported" = "yes" ; then 7347 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7348 found="yes" 7349 fi 7350 fi 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 xorg_testset_save_CFLAGS="$CFLAGS" 7367 7368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7371 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7372 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7373 then : 7374 printf %s "(cached) " >&6 7375 else $as_nop 7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7377 /* end confdefs.h. */ 7378 int i; 7379 _ACEOF 7380 if ac_fn_c_try_compile "$LINENO" 7381 then : 7382 xorg_cv_cc_flag_unknown_warning_option=yes 7383 else $as_nop 7384 xorg_cv_cc_flag_unknown_warning_option=no 7385 fi 7386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7387 fi 7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7389 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7391 CFLAGS="$xorg_testset_save_CFLAGS" 7392 fi 7393 7394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7397 fi 7398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7400 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7401 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7402 then : 7403 printf %s "(cached) " >&6 7404 else $as_nop 7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406 /* end confdefs.h. */ 7407 int i; 7408 _ACEOF 7409 if ac_fn_c_try_compile "$LINENO" 7410 then : 7411 xorg_cv_cc_flag_unused_command_line_argument=yes 7412 else $as_nop 7413 xorg_cv_cc_flag_unused_command_line_argument=no 7414 fi 7415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7416 fi 7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7420 CFLAGS="$xorg_testset_save_CFLAGS" 7421 fi 7422 7423 found="no" 7424 7425 if test $found = "no" ; then 7426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7428 fi 7429 7430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7432 fi 7433 7434 CFLAGS="$CFLAGS -Werror=nonnull" 7435 7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7437 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7438 cacheid=xorg_cv_cc_flag__Werror_nonnull 7439 if eval test \${$cacheid+y} 7440 then : 7441 printf %s "(cached) " >&6 7442 else $as_nop 7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7444 /* end confdefs.h. */ 7445 int i; 7446 int 7447 main (void) 7448 { 7449 7450 ; 7451 return 0; 7452 } 7453 _ACEOF 7454 if ac_fn_c_try_link "$LINENO" 7455 then : 7456 eval $cacheid=yes 7457 else $as_nop 7458 eval $cacheid=no 7459 fi 7460 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7461 conftest$ac_exeext conftest.$ac_ext 7462 fi 7463 7464 7465 CFLAGS="$xorg_testset_save_CFLAGS" 7466 7467 eval supported=\$$cacheid 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7469 printf "%s\n" "$supported" >&6; } 7470 if test "$supported" = "yes" ; then 7471 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7472 found="yes" 7473 fi 7474 fi 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 xorg_testset_save_CFLAGS="$CFLAGS" 7491 7492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7495 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7496 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7497 then : 7498 printf %s "(cached) " >&6 7499 else $as_nop 7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7501 /* end confdefs.h. */ 7502 int i; 7503 _ACEOF 7504 if ac_fn_c_try_compile "$LINENO" 7505 then : 7506 xorg_cv_cc_flag_unknown_warning_option=yes 7507 else $as_nop 7508 xorg_cv_cc_flag_unknown_warning_option=no 7509 fi 7510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7511 fi 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7515 CFLAGS="$xorg_testset_save_CFLAGS" 7516 fi 7517 7518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7521 fi 7522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7526 then : 7527 printf %s "(cached) " >&6 7528 else $as_nop 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530 /* end confdefs.h. */ 7531 int i; 7532 _ACEOF 7533 if ac_fn_c_try_compile "$LINENO" 7534 then : 7535 xorg_cv_cc_flag_unused_command_line_argument=yes 7536 else $as_nop 7537 xorg_cv_cc_flag_unused_command_line_argument=no 7538 fi 7539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7540 fi 7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7544 CFLAGS="$xorg_testset_save_CFLAGS" 7545 fi 7546 7547 found="no" 7548 7549 if test $found = "no" ; then 7550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7552 fi 7553 7554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7556 fi 7557 7558 CFLAGS="$CFLAGS -Werror=init-self" 7559 7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7561 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7562 cacheid=xorg_cv_cc_flag__Werror_init_self 7563 if eval test \${$cacheid+y} 7564 then : 7565 printf %s "(cached) " >&6 7566 else $as_nop 7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7568 /* end confdefs.h. */ 7569 int i; 7570 int 7571 main (void) 7572 { 7573 7574 ; 7575 return 0; 7576 } 7577 _ACEOF 7578 if ac_fn_c_try_link "$LINENO" 7579 then : 7580 eval $cacheid=yes 7581 else $as_nop 7582 eval $cacheid=no 7583 fi 7584 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7585 conftest$ac_exeext conftest.$ac_ext 7586 fi 7587 7588 7589 CFLAGS="$xorg_testset_save_CFLAGS" 7590 7591 eval supported=\$$cacheid 7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7593 printf "%s\n" "$supported" >&6; } 7594 if test "$supported" = "yes" ; then 7595 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7596 found="yes" 7597 fi 7598 fi 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 xorg_testset_save_CFLAGS="$CFLAGS" 7615 7616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7620 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7621 then : 7622 printf %s "(cached) " >&6 7623 else $as_nop 7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625 /* end confdefs.h. */ 7626 int i; 7627 _ACEOF 7628 if ac_fn_c_try_compile "$LINENO" 7629 then : 7630 xorg_cv_cc_flag_unknown_warning_option=yes 7631 else $as_nop 7632 xorg_cv_cc_flag_unknown_warning_option=no 7633 fi 7634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7635 fi 7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7639 CFLAGS="$xorg_testset_save_CFLAGS" 7640 fi 7641 7642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7645 fi 7646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7650 then : 7651 printf %s "(cached) " >&6 7652 else $as_nop 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654 /* end confdefs.h. */ 7655 int i; 7656 _ACEOF 7657 if ac_fn_c_try_compile "$LINENO" 7658 then : 7659 xorg_cv_cc_flag_unused_command_line_argument=yes 7660 else $as_nop 7661 xorg_cv_cc_flag_unused_command_line_argument=no 7662 fi 7663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7664 fi 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7668 CFLAGS="$xorg_testset_save_CFLAGS" 7669 fi 7670 7671 found="no" 7672 7673 if test $found = "no" ; then 7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7676 fi 7677 7678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7680 fi 7681 7682 CFLAGS="$CFLAGS -Werror=main" 7683 7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7685 printf %s "checking if $CC supports -Werror=main... " >&6; } 7686 cacheid=xorg_cv_cc_flag__Werror_main 7687 if eval test \${$cacheid+y} 7688 then : 7689 printf %s "(cached) " >&6 7690 else $as_nop 7691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7692 /* end confdefs.h. */ 7693 int i; 7694 int 7695 main (void) 7696 { 7697 7698 ; 7699 return 0; 7700 } 7701 _ACEOF 7702 if ac_fn_c_try_link "$LINENO" 7703 then : 7704 eval $cacheid=yes 7705 else $as_nop 7706 eval $cacheid=no 7707 fi 7708 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7709 conftest$ac_exeext conftest.$ac_ext 7710 fi 7711 7712 7713 CFLAGS="$xorg_testset_save_CFLAGS" 7714 7715 eval supported=\$$cacheid 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7717 printf "%s\n" "$supported" >&6; } 7718 if test "$supported" = "yes" ; then 7719 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7720 found="yes" 7721 fi 7722 fi 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 xorg_testset_save_CFLAGS="$CFLAGS" 7739 7740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7744 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7745 then : 7746 printf %s "(cached) " >&6 7747 else $as_nop 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7749 /* end confdefs.h. */ 7750 int i; 7751 _ACEOF 7752 if ac_fn_c_try_compile "$LINENO" 7753 then : 7754 xorg_cv_cc_flag_unknown_warning_option=yes 7755 else $as_nop 7756 xorg_cv_cc_flag_unknown_warning_option=no 7757 fi 7758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7759 fi 7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7763 CFLAGS="$xorg_testset_save_CFLAGS" 7764 fi 7765 7766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7769 fi 7770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7774 then : 7775 printf %s "(cached) " >&6 7776 else $as_nop 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778 /* end confdefs.h. */ 7779 int i; 7780 _ACEOF 7781 if ac_fn_c_try_compile "$LINENO" 7782 then : 7783 xorg_cv_cc_flag_unused_command_line_argument=yes 7784 else $as_nop 7785 xorg_cv_cc_flag_unused_command_line_argument=no 7786 fi 7787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7788 fi 7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7790 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7792 CFLAGS="$xorg_testset_save_CFLAGS" 7793 fi 7794 7795 found="no" 7796 7797 if test $found = "no" ; then 7798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7800 fi 7801 7802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7804 fi 7805 7806 CFLAGS="$CFLAGS -Werror=missing-braces" 7807 7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7809 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7810 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7811 if eval test \${$cacheid+y} 7812 then : 7813 printf %s "(cached) " >&6 7814 else $as_nop 7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7816 /* end confdefs.h. */ 7817 int i; 7818 int 7819 main (void) 7820 { 7821 7822 ; 7823 return 0; 7824 } 7825 _ACEOF 7826 if ac_fn_c_try_link "$LINENO" 7827 then : 7828 eval $cacheid=yes 7829 else $as_nop 7830 eval $cacheid=no 7831 fi 7832 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7833 conftest$ac_exeext conftest.$ac_ext 7834 fi 7835 7836 7837 CFLAGS="$xorg_testset_save_CFLAGS" 7838 7839 eval supported=\$$cacheid 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7841 printf "%s\n" "$supported" >&6; } 7842 if test "$supported" = "yes" ; then 7843 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7844 found="yes" 7845 fi 7846 fi 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 xorg_testset_save_CFLAGS="$CFLAGS" 7863 7864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7867 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7868 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7869 then : 7870 printf %s "(cached) " >&6 7871 else $as_nop 7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7873 /* end confdefs.h. */ 7874 int i; 7875 _ACEOF 7876 if ac_fn_c_try_compile "$LINENO" 7877 then : 7878 xorg_cv_cc_flag_unknown_warning_option=yes 7879 else $as_nop 7880 xorg_cv_cc_flag_unknown_warning_option=no 7881 fi 7882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7883 fi 7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7887 CFLAGS="$xorg_testset_save_CFLAGS" 7888 fi 7889 7890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7893 fi 7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7898 then : 7899 printf %s "(cached) " >&6 7900 else $as_nop 7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7902 /* end confdefs.h. */ 7903 int i; 7904 _ACEOF 7905 if ac_fn_c_try_compile "$LINENO" 7906 then : 7907 xorg_cv_cc_flag_unused_command_line_argument=yes 7908 else $as_nop 7909 xorg_cv_cc_flag_unused_command_line_argument=no 7910 fi 7911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7912 fi 7913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7914 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7916 CFLAGS="$xorg_testset_save_CFLAGS" 7917 fi 7918 7919 found="no" 7920 7921 if test $found = "no" ; then 7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7924 fi 7925 7926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7928 fi 7929 7930 CFLAGS="$CFLAGS -Werror=sequence-point" 7931 7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7933 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7934 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7935 if eval test \${$cacheid+y} 7936 then : 7937 printf %s "(cached) " >&6 7938 else $as_nop 7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7940 /* end confdefs.h. */ 7941 int i; 7942 int 7943 main (void) 7944 { 7945 7946 ; 7947 return 0; 7948 } 7949 _ACEOF 7950 if ac_fn_c_try_link "$LINENO" 7951 then : 7952 eval $cacheid=yes 7953 else $as_nop 7954 eval $cacheid=no 7955 fi 7956 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7957 conftest$ac_exeext conftest.$ac_ext 7958 fi 7959 7960 7961 CFLAGS="$xorg_testset_save_CFLAGS" 7962 7963 eval supported=\$$cacheid 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7965 printf "%s\n" "$supported" >&6; } 7966 if test "$supported" = "yes" ; then 7967 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7968 found="yes" 7969 fi 7970 fi 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 xorg_testset_save_CFLAGS="$CFLAGS" 7987 7988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7991 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7992 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7993 then : 7994 printf %s "(cached) " >&6 7995 else $as_nop 7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7997 /* end confdefs.h. */ 7998 int i; 7999 _ACEOF 8000 if ac_fn_c_try_compile "$LINENO" 8001 then : 8002 xorg_cv_cc_flag_unknown_warning_option=yes 8003 else $as_nop 8004 xorg_cv_cc_flag_unknown_warning_option=no 8005 fi 8006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8007 fi 8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8009 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8011 CFLAGS="$xorg_testset_save_CFLAGS" 8012 fi 8013 8014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8017 fi 8018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8020 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8021 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8022 then : 8023 printf %s "(cached) " >&6 8024 else $as_nop 8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8026 /* end confdefs.h. */ 8027 int i; 8028 _ACEOF 8029 if ac_fn_c_try_compile "$LINENO" 8030 then : 8031 xorg_cv_cc_flag_unused_command_line_argument=yes 8032 else $as_nop 8033 xorg_cv_cc_flag_unused_command_line_argument=no 8034 fi 8035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8036 fi 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8038 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8040 CFLAGS="$xorg_testset_save_CFLAGS" 8041 fi 8042 8043 found="no" 8044 8045 if test $found = "no" ; then 8046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8048 fi 8049 8050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8052 fi 8053 8054 CFLAGS="$CFLAGS -Werror=return-type" 8055 8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8057 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8058 cacheid=xorg_cv_cc_flag__Werror_return_type 8059 if eval test \${$cacheid+y} 8060 then : 8061 printf %s "(cached) " >&6 8062 else $as_nop 8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8064 /* end confdefs.h. */ 8065 int i; 8066 int 8067 main (void) 8068 { 8069 8070 ; 8071 return 0; 8072 } 8073 _ACEOF 8074 if ac_fn_c_try_link "$LINENO" 8075 then : 8076 eval $cacheid=yes 8077 else $as_nop 8078 eval $cacheid=no 8079 fi 8080 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8081 conftest$ac_exeext conftest.$ac_ext 8082 fi 8083 8084 8085 CFLAGS="$xorg_testset_save_CFLAGS" 8086 8087 eval supported=\$$cacheid 8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8089 printf "%s\n" "$supported" >&6; } 8090 if test "$supported" = "yes" ; then 8091 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8092 found="yes" 8093 fi 8094 fi 8095 8096 if test $found = "no" ; then 8097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8099 fi 8100 8101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8103 fi 8104 8105 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8106 8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8108 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8109 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8110 if eval test \${$cacheid+y} 8111 then : 8112 printf %s "(cached) " >&6 8113 else $as_nop 8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8115 /* end confdefs.h. */ 8116 int i; 8117 int 8118 main (void) 8119 { 8120 8121 ; 8122 return 0; 8123 } 8124 _ACEOF 8125 if ac_fn_c_try_link "$LINENO" 8126 then : 8127 eval $cacheid=yes 8128 else $as_nop 8129 eval $cacheid=no 8130 fi 8131 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8132 conftest$ac_exeext conftest.$ac_ext 8133 fi 8134 8135 8136 CFLAGS="$xorg_testset_save_CFLAGS" 8137 8138 eval supported=\$$cacheid 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8140 printf "%s\n" "$supported" >&6; } 8141 if test "$supported" = "yes" ; then 8142 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8143 found="yes" 8144 fi 8145 fi 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 xorg_testset_save_CFLAGS="$CFLAGS" 8162 8163 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8166 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8167 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8168 then : 8169 printf %s "(cached) " >&6 8170 else $as_nop 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172 /* end confdefs.h. */ 8173 int i; 8174 _ACEOF 8175 if ac_fn_c_try_compile "$LINENO" 8176 then : 8177 xorg_cv_cc_flag_unknown_warning_option=yes 8178 else $as_nop 8179 xorg_cv_cc_flag_unknown_warning_option=no 8180 fi 8181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8182 fi 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8184 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8186 CFLAGS="$xorg_testset_save_CFLAGS" 8187 fi 8188 8189 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8192 fi 8193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8195 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8196 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8197 then : 8198 printf %s "(cached) " >&6 8199 else $as_nop 8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8201 /* end confdefs.h. */ 8202 int i; 8203 _ACEOF 8204 if ac_fn_c_try_compile "$LINENO" 8205 then : 8206 xorg_cv_cc_flag_unused_command_line_argument=yes 8207 else $as_nop 8208 xorg_cv_cc_flag_unused_command_line_argument=no 8209 fi 8210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8211 fi 8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8213 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8215 CFLAGS="$xorg_testset_save_CFLAGS" 8216 fi 8217 8218 found="no" 8219 8220 if test $found = "no" ; then 8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8223 fi 8224 8225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8227 fi 8228 8229 CFLAGS="$CFLAGS -Werror=trigraphs" 8230 8231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8232 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8233 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8234 if eval test \${$cacheid+y} 8235 then : 8236 printf %s "(cached) " >&6 8237 else $as_nop 8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8239 /* end confdefs.h. */ 8240 int i; 8241 int 8242 main (void) 8243 { 8244 8245 ; 8246 return 0; 8247 } 8248 _ACEOF 8249 if ac_fn_c_try_link "$LINENO" 8250 then : 8251 eval $cacheid=yes 8252 else $as_nop 8253 eval $cacheid=no 8254 fi 8255 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8256 conftest$ac_exeext conftest.$ac_ext 8257 fi 8258 8259 8260 CFLAGS="$xorg_testset_save_CFLAGS" 8261 8262 eval supported=\$$cacheid 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8264 printf "%s\n" "$supported" >&6; } 8265 if test "$supported" = "yes" ; then 8266 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8267 found="yes" 8268 fi 8269 fi 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 xorg_testset_save_CFLAGS="$CFLAGS" 8286 8287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8290 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8291 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8292 then : 8293 printf %s "(cached) " >&6 8294 else $as_nop 8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8296 /* end confdefs.h. */ 8297 int i; 8298 _ACEOF 8299 if ac_fn_c_try_compile "$LINENO" 8300 then : 8301 xorg_cv_cc_flag_unknown_warning_option=yes 8302 else $as_nop 8303 xorg_cv_cc_flag_unknown_warning_option=no 8304 fi 8305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 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 $as_nop 8324 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 $as_nop 8332 xorg_cv_cc_flag_unused_command_line_argument=no 8333 fi 8334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8335 fi 8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8337 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8339 CFLAGS="$xorg_testset_save_CFLAGS" 8340 fi 8341 8342 found="no" 8343 8344 if test $found = "no" ; then 8345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8347 fi 8348 8349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8351 fi 8352 8353 CFLAGS="$CFLAGS -Werror=array-bounds" 8354 8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8356 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8357 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8358 if eval test \${$cacheid+y} 8359 then : 8360 printf %s "(cached) " >&6 8361 else $as_nop 8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8363 /* end confdefs.h. */ 8364 int i; 8365 int 8366 main (void) 8367 { 8368 8369 ; 8370 return 0; 8371 } 8372 _ACEOF 8373 if ac_fn_c_try_link "$LINENO" 8374 then : 8375 eval $cacheid=yes 8376 else $as_nop 8377 eval $cacheid=no 8378 fi 8379 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8380 conftest$ac_exeext conftest.$ac_ext 8381 fi 8382 8383 8384 CFLAGS="$xorg_testset_save_CFLAGS" 8385 8386 eval supported=\$$cacheid 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8388 printf "%s\n" "$supported" >&6; } 8389 if test "$supported" = "yes" ; then 8390 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8391 found="yes" 8392 fi 8393 fi 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 xorg_testset_save_CFLAGS="$CFLAGS" 8410 8411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8414 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8415 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8416 then : 8417 printf %s "(cached) " >&6 8418 else $as_nop 8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8420 /* end confdefs.h. */ 8421 int i; 8422 _ACEOF 8423 if ac_fn_c_try_compile "$LINENO" 8424 then : 8425 xorg_cv_cc_flag_unknown_warning_option=yes 8426 else $as_nop 8427 xorg_cv_cc_flag_unknown_warning_option=no 8428 fi 8429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8430 fi 8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8432 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8434 CFLAGS="$xorg_testset_save_CFLAGS" 8435 fi 8436 8437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8440 fi 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8443 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8444 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8445 then : 8446 printf %s "(cached) " >&6 8447 else $as_nop 8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8449 /* end confdefs.h. */ 8450 int i; 8451 _ACEOF 8452 if ac_fn_c_try_compile "$LINENO" 8453 then : 8454 xorg_cv_cc_flag_unused_command_line_argument=yes 8455 else $as_nop 8456 xorg_cv_cc_flag_unused_command_line_argument=no 8457 fi 8458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8459 fi 8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8461 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8463 CFLAGS="$xorg_testset_save_CFLAGS" 8464 fi 8465 8466 found="no" 8467 8468 if test $found = "no" ; then 8469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8471 fi 8472 8473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8475 fi 8476 8477 CFLAGS="$CFLAGS -Werror=write-strings" 8478 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8480 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8481 cacheid=xorg_cv_cc_flag__Werror_write_strings 8482 if eval test \${$cacheid+y} 8483 then : 8484 printf %s "(cached) " >&6 8485 else $as_nop 8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8487 /* end confdefs.h. */ 8488 int i; 8489 int 8490 main (void) 8491 { 8492 8493 ; 8494 return 0; 8495 } 8496 _ACEOF 8497 if ac_fn_c_try_link "$LINENO" 8498 then : 8499 eval $cacheid=yes 8500 else $as_nop 8501 eval $cacheid=no 8502 fi 8503 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8504 conftest$ac_exeext conftest.$ac_ext 8505 fi 8506 8507 8508 CFLAGS="$xorg_testset_save_CFLAGS" 8509 8510 eval supported=\$$cacheid 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8512 printf "%s\n" "$supported" >&6; } 8513 if test "$supported" = "yes" ; then 8514 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8515 found="yes" 8516 fi 8517 fi 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 xorg_testset_save_CFLAGS="$CFLAGS" 8534 8535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8539 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8540 then : 8541 printf %s "(cached) " >&6 8542 else $as_nop 8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8544 /* end confdefs.h. */ 8545 int i; 8546 _ACEOF 8547 if ac_fn_c_try_compile "$LINENO" 8548 then : 8549 xorg_cv_cc_flag_unknown_warning_option=yes 8550 else $as_nop 8551 xorg_cv_cc_flag_unknown_warning_option=no 8552 fi 8553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8554 fi 8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8556 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8558 CFLAGS="$xorg_testset_save_CFLAGS" 8559 fi 8560 8561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8564 fi 8565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8567 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8568 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8569 then : 8570 printf %s "(cached) " >&6 8571 else $as_nop 8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8573 /* end confdefs.h. */ 8574 int i; 8575 _ACEOF 8576 if ac_fn_c_try_compile "$LINENO" 8577 then : 8578 xorg_cv_cc_flag_unused_command_line_argument=yes 8579 else $as_nop 8580 xorg_cv_cc_flag_unused_command_line_argument=no 8581 fi 8582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8583 fi 8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8587 CFLAGS="$xorg_testset_save_CFLAGS" 8588 fi 8589 8590 found="no" 8591 8592 if test $found = "no" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 8597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8599 fi 8600 8601 CFLAGS="$CFLAGS -Werror=address" 8602 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8604 printf %s "checking if $CC supports -Werror=address... " >&6; } 8605 cacheid=xorg_cv_cc_flag__Werror_address 8606 if eval test \${$cacheid+y} 8607 then : 8608 printf %s "(cached) " >&6 8609 else $as_nop 8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611 /* end confdefs.h. */ 8612 int i; 8613 int 8614 main (void) 8615 { 8616 8617 ; 8618 return 0; 8619 } 8620 _ACEOF 8621 if ac_fn_c_try_link "$LINENO" 8622 then : 8623 eval $cacheid=yes 8624 else $as_nop 8625 eval $cacheid=no 8626 fi 8627 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8628 conftest$ac_exeext conftest.$ac_ext 8629 fi 8630 8631 8632 CFLAGS="$xorg_testset_save_CFLAGS" 8633 8634 eval supported=\$$cacheid 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8636 printf "%s\n" "$supported" >&6; } 8637 if test "$supported" = "yes" ; then 8638 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8639 found="yes" 8640 fi 8641 fi 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 xorg_testset_save_CFLAGS="$CFLAGS" 8658 8659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8662 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8663 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8664 then : 8665 printf %s "(cached) " >&6 8666 else $as_nop 8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8668 /* end confdefs.h. */ 8669 int i; 8670 _ACEOF 8671 if ac_fn_c_try_compile "$LINENO" 8672 then : 8673 xorg_cv_cc_flag_unknown_warning_option=yes 8674 else $as_nop 8675 xorg_cv_cc_flag_unknown_warning_option=no 8676 fi 8677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8678 fi 8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8680 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8682 CFLAGS="$xorg_testset_save_CFLAGS" 8683 fi 8684 8685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8688 fi 8689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8691 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8692 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8693 then : 8694 printf %s "(cached) " >&6 8695 else $as_nop 8696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8697 /* end confdefs.h. */ 8698 int i; 8699 _ACEOF 8700 if ac_fn_c_try_compile "$LINENO" 8701 then : 8702 xorg_cv_cc_flag_unused_command_line_argument=yes 8703 else $as_nop 8704 xorg_cv_cc_flag_unused_command_line_argument=no 8705 fi 8706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8707 fi 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8709 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8711 CFLAGS="$xorg_testset_save_CFLAGS" 8712 fi 8713 8714 found="no" 8715 8716 if test $found = "no" ; then 8717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8719 fi 8720 8721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8723 fi 8724 8725 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8726 8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8728 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8729 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8730 if eval test \${$cacheid+y} 8731 then : 8732 printf %s "(cached) " >&6 8733 else $as_nop 8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8735 /* end confdefs.h. */ 8736 int i; 8737 int 8738 main (void) 8739 { 8740 8741 ; 8742 return 0; 8743 } 8744 _ACEOF 8745 if ac_fn_c_try_link "$LINENO" 8746 then : 8747 eval $cacheid=yes 8748 else $as_nop 8749 eval $cacheid=no 8750 fi 8751 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8752 conftest$ac_exeext conftest.$ac_ext 8753 fi 8754 8755 8756 CFLAGS="$xorg_testset_save_CFLAGS" 8757 8758 eval supported=\$$cacheid 8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8760 printf "%s\n" "$supported" >&6; } 8761 if test "$supported" = "yes" ; then 8762 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8763 found="yes" 8764 fi 8765 fi 8766 8767 if test $found = "no" ; then 8768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8770 fi 8771 8772 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8774 fi 8775 8776 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8777 8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8779 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8780 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8781 if eval test \${$cacheid+y} 8782 then : 8783 printf %s "(cached) " >&6 8784 else $as_nop 8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8786 /* end confdefs.h. */ 8787 int i; 8788 int 8789 main (void) 8790 { 8791 8792 ; 8793 return 0; 8794 } 8795 _ACEOF 8796 if ac_fn_c_try_link "$LINENO" 8797 then : 8798 eval $cacheid=yes 8799 else $as_nop 8800 eval $cacheid=no 8801 fi 8802 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8803 conftest$ac_exeext conftest.$ac_ext 8804 fi 8805 8806 8807 CFLAGS="$xorg_testset_save_CFLAGS" 8808 8809 eval supported=\$$cacheid 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8811 printf "%s\n" "$supported" >&6; } 8812 if test "$supported" = "yes" ; then 8813 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8814 found="yes" 8815 fi 8816 fi 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 xorg_testset_save_CFLAGS="$CFLAGS" 8833 8834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8837 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8838 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8839 then : 8840 printf %s "(cached) " >&6 8841 else $as_nop 8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8843 /* end confdefs.h. */ 8844 int i; 8845 _ACEOF 8846 if ac_fn_c_try_compile "$LINENO" 8847 then : 8848 xorg_cv_cc_flag_unknown_warning_option=yes 8849 else $as_nop 8850 xorg_cv_cc_flag_unknown_warning_option=no 8851 fi 8852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8853 fi 8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8857 CFLAGS="$xorg_testset_save_CFLAGS" 8858 fi 8859 8860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8863 fi 8864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8868 then : 8869 printf %s "(cached) " >&6 8870 else $as_nop 8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872 /* end confdefs.h. */ 8873 int i; 8874 _ACEOF 8875 if ac_fn_c_try_compile "$LINENO" 8876 then : 8877 xorg_cv_cc_flag_unused_command_line_argument=yes 8878 else $as_nop 8879 xorg_cv_cc_flag_unused_command_line_argument=no 8880 fi 8881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8882 fi 8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8884 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8886 CFLAGS="$xorg_testset_save_CFLAGS" 8887 fi 8888 8889 found="no" 8890 8891 if test $found = "no" ; then 8892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8894 fi 8895 8896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8898 fi 8899 8900 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8901 8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8903 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8904 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8905 if eval test \${$cacheid+y} 8906 then : 8907 printf %s "(cached) " >&6 8908 else $as_nop 8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8910 /* end confdefs.h. */ 8911 int i; 8912 int 8913 main (void) 8914 { 8915 8916 ; 8917 return 0; 8918 } 8919 _ACEOF 8920 if ac_fn_c_try_link "$LINENO" 8921 then : 8922 eval $cacheid=yes 8923 else $as_nop 8924 eval $cacheid=no 8925 fi 8926 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8927 conftest$ac_exeext conftest.$ac_ext 8928 fi 8929 8930 8931 CFLAGS="$xorg_testset_save_CFLAGS" 8932 8933 eval supported=\$$cacheid 8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8935 printf "%s\n" "$supported" >&6; } 8936 if test "$supported" = "yes" ; then 8937 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8938 found="yes" 8939 fi 8940 fi 8941 8942 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8943 else 8944 { 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 8945 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;} 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 xorg_testset_save_CFLAGS="$CFLAGS" 8960 8961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8964 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8965 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8966 then : 8967 printf %s "(cached) " >&6 8968 else $as_nop 8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8970 /* end confdefs.h. */ 8971 int i; 8972 _ACEOF 8973 if ac_fn_c_try_compile "$LINENO" 8974 then : 8975 xorg_cv_cc_flag_unknown_warning_option=yes 8976 else $as_nop 8977 xorg_cv_cc_flag_unknown_warning_option=no 8978 fi 8979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8980 fi 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8984 CFLAGS="$xorg_testset_save_CFLAGS" 8985 fi 8986 8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8990 fi 8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8995 then : 8996 printf %s "(cached) " >&6 8997 else $as_nop 8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8999 /* end confdefs.h. */ 9000 int i; 9001 _ACEOF 9002 if ac_fn_c_try_compile "$LINENO" 9003 then : 9004 xorg_cv_cc_flag_unused_command_line_argument=yes 9005 else $as_nop 9006 xorg_cv_cc_flag_unused_command_line_argument=no 9007 fi 9008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9009 fi 9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9013 CFLAGS="$xorg_testset_save_CFLAGS" 9014 fi 9015 9016 found="no" 9017 9018 if test $found = "no" ; then 9019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9021 fi 9022 9023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9025 fi 9026 9027 CFLAGS="$CFLAGS -Wimplicit" 9028 9029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9030 printf %s "checking if $CC supports -Wimplicit... " >&6; } 9031 cacheid=xorg_cv_cc_flag__Wimplicit 9032 if eval test \${$cacheid+y} 9033 then : 9034 printf %s "(cached) " >&6 9035 else $as_nop 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9037 /* end confdefs.h. */ 9038 int i; 9039 int 9040 main (void) 9041 { 9042 9043 ; 9044 return 0; 9045 } 9046 _ACEOF 9047 if ac_fn_c_try_link "$LINENO" 9048 then : 9049 eval $cacheid=yes 9050 else $as_nop 9051 eval $cacheid=no 9052 fi 9053 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9054 conftest$ac_exeext conftest.$ac_ext 9055 fi 9056 9057 9058 CFLAGS="$xorg_testset_save_CFLAGS" 9059 9060 eval supported=\$$cacheid 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9062 printf "%s\n" "$supported" >&6; } 9063 if test "$supported" = "yes" ; then 9064 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9065 found="yes" 9066 fi 9067 fi 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 xorg_testset_save_CFLAGS="$CFLAGS" 9084 9085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9089 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9090 then : 9091 printf %s "(cached) " >&6 9092 else $as_nop 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094 /* end confdefs.h. */ 9095 int i; 9096 _ACEOF 9097 if ac_fn_c_try_compile "$LINENO" 9098 then : 9099 xorg_cv_cc_flag_unknown_warning_option=yes 9100 else $as_nop 9101 xorg_cv_cc_flag_unknown_warning_option=no 9102 fi 9103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9104 fi 9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9106 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9108 CFLAGS="$xorg_testset_save_CFLAGS" 9109 fi 9110 9111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9114 fi 9115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9117 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9118 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9119 then : 9120 printf %s "(cached) " >&6 9121 else $as_nop 9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9123 /* end confdefs.h. */ 9124 int i; 9125 _ACEOF 9126 if ac_fn_c_try_compile "$LINENO" 9127 then : 9128 xorg_cv_cc_flag_unused_command_line_argument=yes 9129 else $as_nop 9130 xorg_cv_cc_flag_unused_command_line_argument=no 9131 fi 9132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9133 fi 9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9137 CFLAGS="$xorg_testset_save_CFLAGS" 9138 fi 9139 9140 found="no" 9141 9142 if test $found = "no" ; then 9143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9145 fi 9146 9147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9149 fi 9150 9151 CFLAGS="$CFLAGS -Wnonnull" 9152 9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9154 printf %s "checking if $CC supports -Wnonnull... " >&6; } 9155 cacheid=xorg_cv_cc_flag__Wnonnull 9156 if eval test \${$cacheid+y} 9157 then : 9158 printf %s "(cached) " >&6 9159 else $as_nop 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161 /* end confdefs.h. */ 9162 int i; 9163 int 9164 main (void) 9165 { 9166 9167 ; 9168 return 0; 9169 } 9170 _ACEOF 9171 if ac_fn_c_try_link "$LINENO" 9172 then : 9173 eval $cacheid=yes 9174 else $as_nop 9175 eval $cacheid=no 9176 fi 9177 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9178 conftest$ac_exeext conftest.$ac_ext 9179 fi 9180 9181 9182 CFLAGS="$xorg_testset_save_CFLAGS" 9183 9184 eval supported=\$$cacheid 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9186 printf "%s\n" "$supported" >&6; } 9187 if test "$supported" = "yes" ; then 9188 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9189 found="yes" 9190 fi 9191 fi 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 xorg_testset_save_CFLAGS="$CFLAGS" 9208 9209 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9212 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9213 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9214 then : 9215 printf %s "(cached) " >&6 9216 else $as_nop 9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9218 /* end confdefs.h. */ 9219 int i; 9220 _ACEOF 9221 if ac_fn_c_try_compile "$LINENO" 9222 then : 9223 xorg_cv_cc_flag_unknown_warning_option=yes 9224 else $as_nop 9225 xorg_cv_cc_flag_unknown_warning_option=no 9226 fi 9227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9228 fi 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9230 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9232 CFLAGS="$xorg_testset_save_CFLAGS" 9233 fi 9234 9235 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9238 fi 9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9241 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9242 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9243 then : 9244 printf %s "(cached) " >&6 9245 else $as_nop 9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9247 /* end confdefs.h. */ 9248 int i; 9249 _ACEOF 9250 if ac_fn_c_try_compile "$LINENO" 9251 then : 9252 xorg_cv_cc_flag_unused_command_line_argument=yes 9253 else $as_nop 9254 xorg_cv_cc_flag_unused_command_line_argument=no 9255 fi 9256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9257 fi 9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9259 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9261 CFLAGS="$xorg_testset_save_CFLAGS" 9262 fi 9263 9264 found="no" 9265 9266 if test $found = "no" ; then 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 fi 9270 9271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9273 fi 9274 9275 CFLAGS="$CFLAGS -Winit-self" 9276 9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9278 printf %s "checking if $CC supports -Winit-self... " >&6; } 9279 cacheid=xorg_cv_cc_flag__Winit_self 9280 if eval test \${$cacheid+y} 9281 then : 9282 printf %s "(cached) " >&6 9283 else $as_nop 9284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9285 /* end confdefs.h. */ 9286 int i; 9287 int 9288 main (void) 9289 { 9290 9291 ; 9292 return 0; 9293 } 9294 _ACEOF 9295 if ac_fn_c_try_link "$LINENO" 9296 then : 9297 eval $cacheid=yes 9298 else $as_nop 9299 eval $cacheid=no 9300 fi 9301 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9302 conftest$ac_exeext conftest.$ac_ext 9303 fi 9304 9305 9306 CFLAGS="$xorg_testset_save_CFLAGS" 9307 9308 eval supported=\$$cacheid 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9310 printf "%s\n" "$supported" >&6; } 9311 if test "$supported" = "yes" ; then 9312 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9313 found="yes" 9314 fi 9315 fi 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 xorg_testset_save_CFLAGS="$CFLAGS" 9332 9333 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9336 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9337 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9338 then : 9339 printf %s "(cached) " >&6 9340 else $as_nop 9341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9342 /* end confdefs.h. */ 9343 int i; 9344 _ACEOF 9345 if ac_fn_c_try_compile "$LINENO" 9346 then : 9347 xorg_cv_cc_flag_unknown_warning_option=yes 9348 else $as_nop 9349 xorg_cv_cc_flag_unknown_warning_option=no 9350 fi 9351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9352 fi 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9356 CFLAGS="$xorg_testset_save_CFLAGS" 9357 fi 9358 9359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 fi 9363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9367 then : 9368 printf %s "(cached) " >&6 9369 else $as_nop 9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9371 /* end confdefs.h. */ 9372 int i; 9373 _ACEOF 9374 if ac_fn_c_try_compile "$LINENO" 9375 then : 9376 xorg_cv_cc_flag_unused_command_line_argument=yes 9377 else $as_nop 9378 xorg_cv_cc_flag_unused_command_line_argument=no 9379 fi 9380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9381 fi 9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9383 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9385 CFLAGS="$xorg_testset_save_CFLAGS" 9386 fi 9387 9388 found="no" 9389 9390 if test $found = "no" ; then 9391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9393 fi 9394 9395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9397 fi 9398 9399 CFLAGS="$CFLAGS -Wmain" 9400 9401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9402 printf %s "checking if $CC supports -Wmain... " >&6; } 9403 cacheid=xorg_cv_cc_flag__Wmain 9404 if eval test \${$cacheid+y} 9405 then : 9406 printf %s "(cached) " >&6 9407 else $as_nop 9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409 /* end confdefs.h. */ 9410 int i; 9411 int 9412 main (void) 9413 { 9414 9415 ; 9416 return 0; 9417 } 9418 _ACEOF 9419 if ac_fn_c_try_link "$LINENO" 9420 then : 9421 eval $cacheid=yes 9422 else $as_nop 9423 eval $cacheid=no 9424 fi 9425 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9426 conftest$ac_exeext conftest.$ac_ext 9427 fi 9428 9429 9430 CFLAGS="$xorg_testset_save_CFLAGS" 9431 9432 eval supported=\$$cacheid 9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9434 printf "%s\n" "$supported" >&6; } 9435 if test "$supported" = "yes" ; then 9436 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9437 found="yes" 9438 fi 9439 fi 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 xorg_testset_save_CFLAGS="$CFLAGS" 9456 9457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9460 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9461 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9462 then : 9463 printf %s "(cached) " >&6 9464 else $as_nop 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466 /* end confdefs.h. */ 9467 int i; 9468 _ACEOF 9469 if ac_fn_c_try_compile "$LINENO" 9470 then : 9471 xorg_cv_cc_flag_unknown_warning_option=yes 9472 else $as_nop 9473 xorg_cv_cc_flag_unknown_warning_option=no 9474 fi 9475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9476 fi 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9478 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9479 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9480 CFLAGS="$xorg_testset_save_CFLAGS" 9481 fi 9482 9483 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9486 fi 9487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9489 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9490 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9491 then : 9492 printf %s "(cached) " >&6 9493 else $as_nop 9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9495 /* end confdefs.h. */ 9496 int i; 9497 _ACEOF 9498 if ac_fn_c_try_compile "$LINENO" 9499 then : 9500 xorg_cv_cc_flag_unused_command_line_argument=yes 9501 else $as_nop 9502 xorg_cv_cc_flag_unused_command_line_argument=no 9503 fi 9504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9505 fi 9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9507 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9508 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9509 CFLAGS="$xorg_testset_save_CFLAGS" 9510 fi 9511 9512 found="no" 9513 9514 if test $found = "no" ; then 9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9517 fi 9518 9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9521 fi 9522 9523 CFLAGS="$CFLAGS -Wmissing-braces" 9524 9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9526 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9527 cacheid=xorg_cv_cc_flag__Wmissing_braces 9528 if eval test \${$cacheid+y} 9529 then : 9530 printf %s "(cached) " >&6 9531 else $as_nop 9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9533 /* end confdefs.h. */ 9534 int i; 9535 int 9536 main (void) 9537 { 9538 9539 ; 9540 return 0; 9541 } 9542 _ACEOF 9543 if ac_fn_c_try_link "$LINENO" 9544 then : 9545 eval $cacheid=yes 9546 else $as_nop 9547 eval $cacheid=no 9548 fi 9549 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9550 conftest$ac_exeext conftest.$ac_ext 9551 fi 9552 9553 9554 CFLAGS="$xorg_testset_save_CFLAGS" 9555 9556 eval supported=\$$cacheid 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9558 printf "%s\n" "$supported" >&6; } 9559 if test "$supported" = "yes" ; then 9560 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9561 found="yes" 9562 fi 9563 fi 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 xorg_testset_save_CFLAGS="$CFLAGS" 9580 9581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9585 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9586 then : 9587 printf %s "(cached) " >&6 9588 else $as_nop 9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590 /* end confdefs.h. */ 9591 int i; 9592 _ACEOF 9593 if ac_fn_c_try_compile "$LINENO" 9594 then : 9595 xorg_cv_cc_flag_unknown_warning_option=yes 9596 else $as_nop 9597 xorg_cv_cc_flag_unknown_warning_option=no 9598 fi 9599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9600 fi 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9602 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9604 CFLAGS="$xorg_testset_save_CFLAGS" 9605 fi 9606 9607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9610 fi 9611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9613 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9614 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9615 then : 9616 printf %s "(cached) " >&6 9617 else $as_nop 9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9619 /* end confdefs.h. */ 9620 int i; 9621 _ACEOF 9622 if ac_fn_c_try_compile "$LINENO" 9623 then : 9624 xorg_cv_cc_flag_unused_command_line_argument=yes 9625 else $as_nop 9626 xorg_cv_cc_flag_unused_command_line_argument=no 9627 fi 9628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9629 fi 9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9631 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9633 CFLAGS="$xorg_testset_save_CFLAGS" 9634 fi 9635 9636 found="no" 9637 9638 if test $found = "no" ; then 9639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9641 fi 9642 9643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9645 fi 9646 9647 CFLAGS="$CFLAGS -Wsequence-point" 9648 9649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9650 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9651 cacheid=xorg_cv_cc_flag__Wsequence_point 9652 if eval test \${$cacheid+y} 9653 then : 9654 printf %s "(cached) " >&6 9655 else $as_nop 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657 /* end confdefs.h. */ 9658 int i; 9659 int 9660 main (void) 9661 { 9662 9663 ; 9664 return 0; 9665 } 9666 _ACEOF 9667 if ac_fn_c_try_link "$LINENO" 9668 then : 9669 eval $cacheid=yes 9670 else $as_nop 9671 eval $cacheid=no 9672 fi 9673 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9674 conftest$ac_exeext conftest.$ac_ext 9675 fi 9676 9677 9678 CFLAGS="$xorg_testset_save_CFLAGS" 9679 9680 eval supported=\$$cacheid 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9682 printf "%s\n" "$supported" >&6; } 9683 if test "$supported" = "yes" ; then 9684 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9685 found="yes" 9686 fi 9687 fi 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 xorg_testset_save_CFLAGS="$CFLAGS" 9704 9705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9709 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9710 then : 9711 printf %s "(cached) " >&6 9712 else $as_nop 9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9714 /* end confdefs.h. */ 9715 int i; 9716 _ACEOF 9717 if ac_fn_c_try_compile "$LINENO" 9718 then : 9719 xorg_cv_cc_flag_unknown_warning_option=yes 9720 else $as_nop 9721 xorg_cv_cc_flag_unknown_warning_option=no 9722 fi 9723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9724 fi 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9726 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729 fi 9730 9731 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9734 fi 9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9737 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9738 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9739 then : 9740 printf %s "(cached) " >&6 9741 else $as_nop 9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9743 /* end confdefs.h. */ 9744 int i; 9745 _ACEOF 9746 if ac_fn_c_try_compile "$LINENO" 9747 then : 9748 xorg_cv_cc_flag_unused_command_line_argument=yes 9749 else $as_nop 9750 xorg_cv_cc_flag_unused_command_line_argument=no 9751 fi 9752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9753 fi 9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9755 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9757 CFLAGS="$xorg_testset_save_CFLAGS" 9758 fi 9759 9760 found="no" 9761 9762 if test $found = "no" ; then 9763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9765 fi 9766 9767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9769 fi 9770 9771 CFLAGS="$CFLAGS -Wreturn-type" 9772 9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9774 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9775 cacheid=xorg_cv_cc_flag__Wreturn_type 9776 if eval test \${$cacheid+y} 9777 then : 9778 printf %s "(cached) " >&6 9779 else $as_nop 9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9781 /* end confdefs.h. */ 9782 int i; 9783 int 9784 main (void) 9785 { 9786 9787 ; 9788 return 0; 9789 } 9790 _ACEOF 9791 if ac_fn_c_try_link "$LINENO" 9792 then : 9793 eval $cacheid=yes 9794 else $as_nop 9795 eval $cacheid=no 9796 fi 9797 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9798 conftest$ac_exeext conftest.$ac_ext 9799 fi 9800 9801 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803 9804 eval supported=\$$cacheid 9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9806 printf "%s\n" "$supported" >&6; } 9807 if test "$supported" = "yes" ; then 9808 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9809 found="yes" 9810 fi 9811 fi 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 xorg_testset_save_CFLAGS="$CFLAGS" 9828 9829 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9832 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9833 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9834 then : 9835 printf %s "(cached) " >&6 9836 else $as_nop 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838 /* end confdefs.h. */ 9839 int i; 9840 _ACEOF 9841 if ac_fn_c_try_compile "$LINENO" 9842 then : 9843 xorg_cv_cc_flag_unknown_warning_option=yes 9844 else $as_nop 9845 xorg_cv_cc_flag_unknown_warning_option=no 9846 fi 9847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9848 fi 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9852 CFLAGS="$xorg_testset_save_CFLAGS" 9853 fi 9854 9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9858 fi 9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9863 then : 9864 printf %s "(cached) " >&6 9865 else $as_nop 9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867 /* end confdefs.h. */ 9868 int i; 9869 _ACEOF 9870 if ac_fn_c_try_compile "$LINENO" 9871 then : 9872 xorg_cv_cc_flag_unused_command_line_argument=yes 9873 else $as_nop 9874 xorg_cv_cc_flag_unused_command_line_argument=no 9875 fi 9876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9877 fi 9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9879 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9881 CFLAGS="$xorg_testset_save_CFLAGS" 9882 fi 9883 9884 found="no" 9885 9886 if test $found = "no" ; then 9887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9889 fi 9890 9891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9893 fi 9894 9895 CFLAGS="$CFLAGS -Wtrigraphs" 9896 9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9898 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9899 cacheid=xorg_cv_cc_flag__Wtrigraphs 9900 if eval test \${$cacheid+y} 9901 then : 9902 printf %s "(cached) " >&6 9903 else $as_nop 9904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9905 /* end confdefs.h. */ 9906 int i; 9907 int 9908 main (void) 9909 { 9910 9911 ; 9912 return 0; 9913 } 9914 _ACEOF 9915 if ac_fn_c_try_link "$LINENO" 9916 then : 9917 eval $cacheid=yes 9918 else $as_nop 9919 eval $cacheid=no 9920 fi 9921 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9922 conftest$ac_exeext conftest.$ac_ext 9923 fi 9924 9925 9926 CFLAGS="$xorg_testset_save_CFLAGS" 9927 9928 eval supported=\$$cacheid 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9930 printf "%s\n" "$supported" >&6; } 9931 if test "$supported" = "yes" ; then 9932 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9933 found="yes" 9934 fi 9935 fi 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 xorg_testset_save_CFLAGS="$CFLAGS" 9952 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9956 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9957 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9958 then : 9959 printf %s "(cached) " >&6 9960 else $as_nop 9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9962 /* end confdefs.h. */ 9963 int i; 9964 _ACEOF 9965 if ac_fn_c_try_compile "$LINENO" 9966 then : 9967 xorg_cv_cc_flag_unknown_warning_option=yes 9968 else $as_nop 9969 xorg_cv_cc_flag_unknown_warning_option=no 9970 fi 9971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9972 fi 9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9974 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9976 CFLAGS="$xorg_testset_save_CFLAGS" 9977 fi 9978 9979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9982 fi 9983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9985 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9986 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9987 then : 9988 printf %s "(cached) " >&6 9989 else $as_nop 9990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9991 /* end confdefs.h. */ 9992 int i; 9993 _ACEOF 9994 if ac_fn_c_try_compile "$LINENO" 9995 then : 9996 xorg_cv_cc_flag_unused_command_line_argument=yes 9997 else $as_nop 9998 xorg_cv_cc_flag_unused_command_line_argument=no 9999 fi 10000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10001 fi 10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10003 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10005 CFLAGS="$xorg_testset_save_CFLAGS" 10006 fi 10007 10008 found="no" 10009 10010 if test $found = "no" ; then 10011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10013 fi 10014 10015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10017 fi 10018 10019 CFLAGS="$CFLAGS -Warray-bounds" 10020 10021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10022 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10023 cacheid=xorg_cv_cc_flag__Warray_bounds 10024 if eval test \${$cacheid+y} 10025 then : 10026 printf %s "(cached) " >&6 10027 else $as_nop 10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029 /* end confdefs.h. */ 10030 int i; 10031 int 10032 main (void) 10033 { 10034 10035 ; 10036 return 0; 10037 } 10038 _ACEOF 10039 if ac_fn_c_try_link "$LINENO" 10040 then : 10041 eval $cacheid=yes 10042 else $as_nop 10043 eval $cacheid=no 10044 fi 10045 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10046 conftest$ac_exeext conftest.$ac_ext 10047 fi 10048 10049 10050 CFLAGS="$xorg_testset_save_CFLAGS" 10051 10052 eval supported=\$$cacheid 10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10054 printf "%s\n" "$supported" >&6; } 10055 if test "$supported" = "yes" ; then 10056 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10057 found="yes" 10058 fi 10059 fi 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 xorg_testset_save_CFLAGS="$CFLAGS" 10076 10077 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10080 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10081 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10082 then : 10083 printf %s "(cached) " >&6 10084 else $as_nop 10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10086 /* end confdefs.h. */ 10087 int i; 10088 _ACEOF 10089 if ac_fn_c_try_compile "$LINENO" 10090 then : 10091 xorg_cv_cc_flag_unknown_warning_option=yes 10092 else $as_nop 10093 xorg_cv_cc_flag_unknown_warning_option=no 10094 fi 10095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10096 fi 10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10098 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10100 CFLAGS="$xorg_testset_save_CFLAGS" 10101 fi 10102 10103 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10106 fi 10107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10109 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10110 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10111 then : 10112 printf %s "(cached) " >&6 10113 else $as_nop 10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10115 /* end confdefs.h. */ 10116 int i; 10117 _ACEOF 10118 if ac_fn_c_try_compile "$LINENO" 10119 then : 10120 xorg_cv_cc_flag_unused_command_line_argument=yes 10121 else $as_nop 10122 xorg_cv_cc_flag_unused_command_line_argument=no 10123 fi 10124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10125 fi 10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10129 CFLAGS="$xorg_testset_save_CFLAGS" 10130 fi 10131 10132 found="no" 10133 10134 if test $found = "no" ; then 10135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 fi 10138 10139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10141 fi 10142 10143 CFLAGS="$CFLAGS -Wwrite-strings" 10144 10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10146 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10147 cacheid=xorg_cv_cc_flag__Wwrite_strings 10148 if eval test \${$cacheid+y} 10149 then : 10150 printf %s "(cached) " >&6 10151 else $as_nop 10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10153 /* end confdefs.h. */ 10154 int i; 10155 int 10156 main (void) 10157 { 10158 10159 ; 10160 return 0; 10161 } 10162 _ACEOF 10163 if ac_fn_c_try_link "$LINENO" 10164 then : 10165 eval $cacheid=yes 10166 else $as_nop 10167 eval $cacheid=no 10168 fi 10169 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10170 conftest$ac_exeext conftest.$ac_ext 10171 fi 10172 10173 10174 CFLAGS="$xorg_testset_save_CFLAGS" 10175 10176 eval supported=\$$cacheid 10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10178 printf "%s\n" "$supported" >&6; } 10179 if test "$supported" = "yes" ; then 10180 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10181 found="yes" 10182 fi 10183 fi 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 xorg_testset_save_CFLAGS="$CFLAGS" 10200 10201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10204 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10205 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10206 then : 10207 printf %s "(cached) " >&6 10208 else $as_nop 10209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10210 /* end confdefs.h. */ 10211 int i; 10212 _ACEOF 10213 if ac_fn_c_try_compile "$LINENO" 10214 then : 10215 xorg_cv_cc_flag_unknown_warning_option=yes 10216 else $as_nop 10217 xorg_cv_cc_flag_unknown_warning_option=no 10218 fi 10219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10220 fi 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10222 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10224 CFLAGS="$xorg_testset_save_CFLAGS" 10225 fi 10226 10227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10230 fi 10231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10233 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10234 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10235 then : 10236 printf %s "(cached) " >&6 10237 else $as_nop 10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10239 /* end confdefs.h. */ 10240 int i; 10241 _ACEOF 10242 if ac_fn_c_try_compile "$LINENO" 10243 then : 10244 xorg_cv_cc_flag_unused_command_line_argument=yes 10245 else $as_nop 10246 xorg_cv_cc_flag_unused_command_line_argument=no 10247 fi 10248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10249 fi 10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10251 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10253 CFLAGS="$xorg_testset_save_CFLAGS" 10254 fi 10255 10256 found="no" 10257 10258 if test $found = "no" ; then 10259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10261 fi 10262 10263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10265 fi 10266 10267 CFLAGS="$CFLAGS -Waddress" 10268 10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10270 printf %s "checking if $CC supports -Waddress... " >&6; } 10271 cacheid=xorg_cv_cc_flag__Waddress 10272 if eval test \${$cacheid+y} 10273 then : 10274 printf %s "(cached) " >&6 10275 else $as_nop 10276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10277 /* end confdefs.h. */ 10278 int i; 10279 int 10280 main (void) 10281 { 10282 10283 ; 10284 return 0; 10285 } 10286 _ACEOF 10287 if ac_fn_c_try_link "$LINENO" 10288 then : 10289 eval $cacheid=yes 10290 else $as_nop 10291 eval $cacheid=no 10292 fi 10293 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10294 conftest$ac_exeext conftest.$ac_ext 10295 fi 10296 10297 10298 CFLAGS="$xorg_testset_save_CFLAGS" 10299 10300 eval supported=\$$cacheid 10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10302 printf "%s\n" "$supported" >&6; } 10303 if test "$supported" = "yes" ; then 10304 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10305 found="yes" 10306 fi 10307 fi 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 xorg_testset_save_CFLAGS="$CFLAGS" 10324 10325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10328 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10329 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10330 then : 10331 printf %s "(cached) " >&6 10332 else $as_nop 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334 /* end confdefs.h. */ 10335 int i; 10336 _ACEOF 10337 if ac_fn_c_try_compile "$LINENO" 10338 then : 10339 xorg_cv_cc_flag_unknown_warning_option=yes 10340 else $as_nop 10341 xorg_cv_cc_flag_unknown_warning_option=no 10342 fi 10343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10344 fi 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10346 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10347 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10348 CFLAGS="$xorg_testset_save_CFLAGS" 10349 fi 10350 10351 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10353 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10354 fi 10355 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10357 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10358 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10359 then : 10360 printf %s "(cached) " >&6 10361 else $as_nop 10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10363 /* end confdefs.h. */ 10364 int i; 10365 _ACEOF 10366 if ac_fn_c_try_compile "$LINENO" 10367 then : 10368 xorg_cv_cc_flag_unused_command_line_argument=yes 10369 else $as_nop 10370 xorg_cv_cc_flag_unused_command_line_argument=no 10371 fi 10372 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10373 fi 10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10375 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10376 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10377 CFLAGS="$xorg_testset_save_CFLAGS" 10378 fi 10379 10380 found="no" 10381 10382 if test $found = "no" ; then 10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10385 fi 10386 10387 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10389 fi 10390 10391 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10392 10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10394 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10395 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10396 if eval test \${$cacheid+y} 10397 then : 10398 printf %s "(cached) " >&6 10399 else $as_nop 10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10401 /* end confdefs.h. */ 10402 int i; 10403 int 10404 main (void) 10405 { 10406 10407 ; 10408 return 0; 10409 } 10410 _ACEOF 10411 if ac_fn_c_try_link "$LINENO" 10412 then : 10413 eval $cacheid=yes 10414 else $as_nop 10415 eval $cacheid=no 10416 fi 10417 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10418 conftest$ac_exeext conftest.$ac_ext 10419 fi 10420 10421 10422 CFLAGS="$xorg_testset_save_CFLAGS" 10423 10424 eval supported=\$$cacheid 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10426 printf "%s\n" "$supported" >&6; } 10427 if test "$supported" = "yes" ; then 10428 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10429 found="yes" 10430 fi 10431 fi 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 xorg_testset_save_CFLAGS="$CFLAGS" 10448 10449 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10452 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10453 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10454 then : 10455 printf %s "(cached) " >&6 10456 else $as_nop 10457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10458 /* end confdefs.h. */ 10459 int i; 10460 _ACEOF 10461 if ac_fn_c_try_compile "$LINENO" 10462 then : 10463 xorg_cv_cc_flag_unknown_warning_option=yes 10464 else $as_nop 10465 xorg_cv_cc_flag_unknown_warning_option=no 10466 fi 10467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10468 fi 10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10470 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10472 CFLAGS="$xorg_testset_save_CFLAGS" 10473 fi 10474 10475 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10478 fi 10479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10481 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10482 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10483 then : 10484 printf %s "(cached) " >&6 10485 else $as_nop 10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10487 /* end confdefs.h. */ 10488 int i; 10489 _ACEOF 10490 if ac_fn_c_try_compile "$LINENO" 10491 then : 10492 xorg_cv_cc_flag_unused_command_line_argument=yes 10493 else $as_nop 10494 xorg_cv_cc_flag_unused_command_line_argument=no 10495 fi 10496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10497 fi 10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10499 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10500 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10501 CFLAGS="$xorg_testset_save_CFLAGS" 10502 fi 10503 10504 found="no" 10505 10506 if test $found = "no" ; then 10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10509 fi 10510 10511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10513 fi 10514 10515 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10516 10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10518 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10519 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10520 if eval test \${$cacheid+y} 10521 then : 10522 printf %s "(cached) " >&6 10523 else $as_nop 10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10525 /* end confdefs.h. */ 10526 int i; 10527 int 10528 main (void) 10529 { 10530 10531 ; 10532 return 0; 10533 } 10534 _ACEOF 10535 if ac_fn_c_try_link "$LINENO" 10536 then : 10537 eval $cacheid=yes 10538 else $as_nop 10539 eval $cacheid=no 10540 fi 10541 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10542 conftest$ac_exeext conftest.$ac_ext 10543 fi 10544 10545 10546 CFLAGS="$xorg_testset_save_CFLAGS" 10547 10548 eval supported=\$$cacheid 10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10550 printf "%s\n" "$supported" >&6; } 10551 if test "$supported" = "yes" ; then 10552 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10553 found="yes" 10554 fi 10555 fi 10556 10557 10558 fi 10559 10560 10561 10562 10563 10564 10565 10566 CWARNFLAGS="$BASE_CFLAGS" 10567 if test "x$GCC" = xyes ; then 10568 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10569 fi 10570 10571 10572 10573 10574 10575 10576 10577 10578 # Check whether --enable-strict-compilation was given. 10579 if test ${enable_strict_compilation+y} 10580 then : 10581 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10582 else $as_nop 10583 STRICT_COMPILE=no 10584 fi 10585 10586 10587 10588 10589 10590 10591 STRICT_CFLAGS="" 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 xorg_testset_save_CFLAGS="$CFLAGS" 10606 10607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10610 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10611 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10612 then : 10613 printf %s "(cached) " >&6 10614 else $as_nop 10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616 /* end confdefs.h. */ 10617 int i; 10618 _ACEOF 10619 if ac_fn_c_try_compile "$LINENO" 10620 then : 10621 xorg_cv_cc_flag_unknown_warning_option=yes 10622 else $as_nop 10623 xorg_cv_cc_flag_unknown_warning_option=no 10624 fi 10625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10626 fi 10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10628 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10630 CFLAGS="$xorg_testset_save_CFLAGS" 10631 fi 10632 10633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10636 fi 10637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10639 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10640 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10641 then : 10642 printf %s "(cached) " >&6 10643 else $as_nop 10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10645 /* end confdefs.h. */ 10646 int i; 10647 _ACEOF 10648 if ac_fn_c_try_compile "$LINENO" 10649 then : 10650 xorg_cv_cc_flag_unused_command_line_argument=yes 10651 else $as_nop 10652 xorg_cv_cc_flag_unused_command_line_argument=no 10653 fi 10654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10655 fi 10656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10659 CFLAGS="$xorg_testset_save_CFLAGS" 10660 fi 10661 10662 found="no" 10663 10664 if test $found = "no" ; then 10665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10667 fi 10668 10669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10671 fi 10672 10673 CFLAGS="$CFLAGS -pedantic" 10674 10675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10676 printf %s "checking if $CC supports -pedantic... " >&6; } 10677 cacheid=xorg_cv_cc_flag__pedantic 10678 if eval test \${$cacheid+y} 10679 then : 10680 printf %s "(cached) " >&6 10681 else $as_nop 10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10683 /* end confdefs.h. */ 10684 int i; 10685 int 10686 main (void) 10687 { 10688 10689 ; 10690 return 0; 10691 } 10692 _ACEOF 10693 if ac_fn_c_try_link "$LINENO" 10694 then : 10695 eval $cacheid=yes 10696 else $as_nop 10697 eval $cacheid=no 10698 fi 10699 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10700 conftest$ac_exeext conftest.$ac_ext 10701 fi 10702 10703 10704 CFLAGS="$xorg_testset_save_CFLAGS" 10705 10706 eval supported=\$$cacheid 10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10708 printf "%s\n" "$supported" >&6; } 10709 if test "$supported" = "yes" ; then 10710 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10711 found="yes" 10712 fi 10713 fi 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 xorg_testset_save_CFLAGS="$CFLAGS" 10730 10731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10734 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10735 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10736 then : 10737 printf %s "(cached) " >&6 10738 else $as_nop 10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10740 /* end confdefs.h. */ 10741 int i; 10742 _ACEOF 10743 if ac_fn_c_try_compile "$LINENO" 10744 then : 10745 xorg_cv_cc_flag_unknown_warning_option=yes 10746 else $as_nop 10747 xorg_cv_cc_flag_unknown_warning_option=no 10748 fi 10749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10750 fi 10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10752 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10753 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10754 CFLAGS="$xorg_testset_save_CFLAGS" 10755 fi 10756 10757 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10760 fi 10761 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10763 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10764 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10765 then : 10766 printf %s "(cached) " >&6 10767 else $as_nop 10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10769 /* end confdefs.h. */ 10770 int i; 10771 _ACEOF 10772 if ac_fn_c_try_compile "$LINENO" 10773 then : 10774 xorg_cv_cc_flag_unused_command_line_argument=yes 10775 else $as_nop 10776 xorg_cv_cc_flag_unused_command_line_argument=no 10777 fi 10778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10779 fi 10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10781 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10783 CFLAGS="$xorg_testset_save_CFLAGS" 10784 fi 10785 10786 found="no" 10787 10788 if test $found = "no" ; then 10789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10791 fi 10792 10793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10795 fi 10796 10797 CFLAGS="$CFLAGS -Werror" 10798 10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10800 printf %s "checking if $CC supports -Werror... " >&6; } 10801 cacheid=xorg_cv_cc_flag__Werror 10802 if eval test \${$cacheid+y} 10803 then : 10804 printf %s "(cached) " >&6 10805 else $as_nop 10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10807 /* end confdefs.h. */ 10808 int i; 10809 int 10810 main (void) 10811 { 10812 10813 ; 10814 return 0; 10815 } 10816 _ACEOF 10817 if ac_fn_c_try_link "$LINENO" 10818 then : 10819 eval $cacheid=yes 10820 else $as_nop 10821 eval $cacheid=no 10822 fi 10823 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10824 conftest$ac_exeext conftest.$ac_ext 10825 fi 10826 10827 10828 CFLAGS="$xorg_testset_save_CFLAGS" 10829 10830 eval supported=\$$cacheid 10831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10832 printf "%s\n" "$supported" >&6; } 10833 if test "$supported" = "yes" ; then 10834 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10835 found="yes" 10836 fi 10837 fi 10838 10839 if test $found = "no" ; then 10840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10842 fi 10843 10844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10846 fi 10847 10848 CFLAGS="$CFLAGS -errwarn" 10849 10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10851 printf %s "checking if $CC supports -errwarn... " >&6; } 10852 cacheid=xorg_cv_cc_flag__errwarn 10853 if eval test \${$cacheid+y} 10854 then : 10855 printf %s "(cached) " >&6 10856 else $as_nop 10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858 /* end confdefs.h. */ 10859 int i; 10860 int 10861 main (void) 10862 { 10863 10864 ; 10865 return 0; 10866 } 10867 _ACEOF 10868 if ac_fn_c_try_link "$LINENO" 10869 then : 10870 eval $cacheid=yes 10871 else $as_nop 10872 eval $cacheid=no 10873 fi 10874 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10875 conftest$ac_exeext conftest.$ac_ext 10876 fi 10877 10878 10879 CFLAGS="$xorg_testset_save_CFLAGS" 10880 10881 eval supported=\$$cacheid 10882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10883 printf "%s\n" "$supported" >&6; } 10884 if test "$supported" = "yes" ; then 10885 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10886 found="yes" 10887 fi 10888 fi 10889 10890 10891 10892 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10893 # activate it with -Werror, so we add it here explicitly. 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 xorg_testset_save_CFLAGS="$CFLAGS" 10908 10909 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10910 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10912 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10913 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10914 then : 10915 printf %s "(cached) " >&6 10916 else $as_nop 10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10918 /* end confdefs.h. */ 10919 int i; 10920 _ACEOF 10921 if ac_fn_c_try_compile "$LINENO" 10922 then : 10923 xorg_cv_cc_flag_unknown_warning_option=yes 10924 else $as_nop 10925 xorg_cv_cc_flag_unknown_warning_option=no 10926 fi 10927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10928 fi 10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10930 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10931 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10932 CFLAGS="$xorg_testset_save_CFLAGS" 10933 fi 10934 10935 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10938 fi 10939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10941 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10942 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10943 then : 10944 printf %s "(cached) " >&6 10945 else $as_nop 10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947 /* end confdefs.h. */ 10948 int i; 10949 _ACEOF 10950 if ac_fn_c_try_compile "$LINENO" 10951 then : 10952 xorg_cv_cc_flag_unused_command_line_argument=yes 10953 else $as_nop 10954 xorg_cv_cc_flag_unused_command_line_argument=no 10955 fi 10956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10957 fi 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10959 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10961 CFLAGS="$xorg_testset_save_CFLAGS" 10962 fi 10963 10964 found="no" 10965 10966 if test $found = "no" ; then 10967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10969 fi 10970 10971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10973 fi 10974 10975 CFLAGS="$CFLAGS -Werror=attributes" 10976 10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10978 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10979 cacheid=xorg_cv_cc_flag__Werror_attributes 10980 if eval test \${$cacheid+y} 10981 then : 10982 printf %s "(cached) " >&6 10983 else $as_nop 10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10985 /* end confdefs.h. */ 10986 int i; 10987 int 10988 main (void) 10989 { 10990 10991 ; 10992 return 0; 10993 } 10994 _ACEOF 10995 if ac_fn_c_try_link "$LINENO" 10996 then : 10997 eval $cacheid=yes 10998 else $as_nop 10999 eval $cacheid=no 11000 fi 11001 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11002 conftest$ac_exeext conftest.$ac_ext 11003 fi 11004 11005 11006 CFLAGS="$xorg_testset_save_CFLAGS" 11007 11008 eval supported=\$$cacheid 11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11010 printf "%s\n" "$supported" >&6; } 11011 if test "$supported" = "yes" ; then 11012 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11013 found="yes" 11014 fi 11015 fi 11016 11017 11018 11019 if test "x$STRICT_COMPILE" = "xyes"; then 11020 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11021 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11022 fi 11023 11024 11025 11026 11027 11028 11029 cat >>confdefs.h <<_ACEOF 11030 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11031 _ACEOF 11032 11033 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11034 if test "x$PVM" = "x"; then 11035 PVM="0" 11036 fi 11037 11038 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11039 11040 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11041 if test "x$PVP" = "x"; then 11042 PVP="0" 11043 fi 11044 11045 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11046 11047 11048 11049 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11050 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11051 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11052 touch \$(top_srcdir)/ChangeLog; \ 11053 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11054 11055 11056 11057 11058 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11059 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11060 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11061 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11062 touch \$(top_srcdir)/INSTALL; \ 11063 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11064 11065 11066 11067 11068 11069 11070 case $host_os in 11071 solaris*) 11072 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11073 # check for a man page file found in later versions that use 11074 # traditional section numbers instead 11075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11076 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11077 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11078 then : 11079 printf %s "(cached) " >&6 11080 else $as_nop 11081 test "$cross_compiling" = yes && 11082 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11083 if test -r "/usr/share/man/man7/attributes.7"; then 11084 ac_cv_file__usr_share_man_man7_attributes_7=yes 11085 else 11086 ac_cv_file__usr_share_man_man7_attributes_7=no 11087 fi 11088 fi 11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11090 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11091 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11092 then : 11093 SYSV_MAN_SECTIONS=false 11094 else $as_nop 11095 SYSV_MAN_SECTIONS=true 11096 fi 11097 11098 ;; 11099 *) SYSV_MAN_SECTIONS=false ;; 11100 esac 11101 11102 if test x$APP_MAN_SUFFIX = x ; then 11103 APP_MAN_SUFFIX=1 11104 fi 11105 if test x$APP_MAN_DIR = x ; then 11106 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11107 fi 11108 11109 if test x$LIB_MAN_SUFFIX = x ; then 11110 LIB_MAN_SUFFIX=3 11111 fi 11112 if test x$LIB_MAN_DIR = x ; then 11113 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11114 fi 11115 11116 if test x$FILE_MAN_SUFFIX = x ; then 11117 case $SYSV_MAN_SECTIONS in 11118 true) FILE_MAN_SUFFIX=4 ;; 11119 *) FILE_MAN_SUFFIX=5 ;; 11120 esac 11121 fi 11122 if test x$FILE_MAN_DIR = x ; then 11123 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11124 fi 11125 11126 if test x$MISC_MAN_SUFFIX = x ; then 11127 case $SYSV_MAN_SECTIONS in 11128 true) MISC_MAN_SUFFIX=5 ;; 11129 *) MISC_MAN_SUFFIX=7 ;; 11130 esac 11131 fi 11132 if test x$MISC_MAN_DIR = x ; then 11133 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11134 fi 11135 11136 if test x$DRIVER_MAN_SUFFIX = x ; then 11137 case $SYSV_MAN_SECTIONS in 11138 true) DRIVER_MAN_SUFFIX=7 ;; 11139 *) DRIVER_MAN_SUFFIX=4 ;; 11140 esac 11141 fi 11142 if test x$DRIVER_MAN_DIR = x ; then 11143 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11144 fi 11145 11146 if test x$ADMIN_MAN_SUFFIX = x ; then 11147 case $SYSV_MAN_SECTIONS in 11148 true) ADMIN_MAN_SUFFIX=1m ;; 11149 *) ADMIN_MAN_SUFFIX=8 ;; 11150 esac 11151 fi 11152 if test x$ADMIN_MAN_DIR = x ; then 11153 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11154 fi 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 XORG_MAN_PAGE="X Version 11" 11171 11172 MAN_SUBSTS="\ 11173 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11174 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11175 -e 's|__xservername__|Xorg|g' \ 11176 -e 's|__xconfigfile__|xorg.conf|g' \ 11177 -e 's|__projectroot__|\$(prefix)|g' \ 11178 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11179 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11180 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11181 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11182 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11183 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11184 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11185 11186 11187 11188 # Check whether --enable-silent-rules was given. 11189 if test ${enable_silent_rules+y} 11190 then : 11191 enableval=$enable_silent_rules; 11192 fi 11193 11194 case $enable_silent_rules in # ((( 11195 yes) AM_DEFAULT_VERBOSITY=0;; 11196 no) AM_DEFAULT_VERBOSITY=1;; 11197 *) AM_DEFAULT_VERBOSITY=0;; 11198 esac 11199 am_make=${MAKE-make} 11200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11201 printf %s "checking whether $am_make supports nested variables... " >&6; } 11202 if test ${am_cv_make_support_nested_variables+y} 11203 then : 11204 printf %s "(cached) " >&6 11205 else $as_nop 11206 if printf "%s\n" 'TRUE=$(BAR$(V)) 11207 BAR0=false 11208 BAR1=true 11209 V=1 11210 am__doit: 11211 @$(TRUE) 11212 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11213 am_cv_make_support_nested_variables=yes 11214 else 11215 am_cv_make_support_nested_variables=no 11216 fi 11217 fi 11218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11219 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11220 if test $am_cv_make_support_nested_variables = yes; then 11221 AM_V='$(V)' 11222 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11223 else 11224 AM_V=$AM_DEFAULT_VERBOSITY 11225 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11226 fi 11227 AM_BACKSLASH='\' 11228 11229 11230 11231 # Initialize libtool 11232 # Check whether --enable-static was given. 11233 if test ${enable_static+y} 11234 then : 11235 enableval=$enable_static; p=${PACKAGE-default} 11236 case $enableval in 11237 yes) enable_static=yes ;; 11238 no) enable_static=no ;; 11239 *) 11240 enable_static=no 11241 # Look at the argument we got. We use all the common list separators. 11242 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 11243 for pkg in $enableval; do 11244 IFS=$lt_save_ifs 11245 if test "X$pkg" = "X$p"; then 11246 enable_static=yes 11247 fi 11248 done 11249 IFS=$lt_save_ifs 11250 ;; 11251 esac 11252 else $as_nop 11253 enable_static=no 11254 fi 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 case `pwd` in 11265 *\ * | *\ *) 11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11267 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11268 esac 11269 11270 11271 11272 macro_version='2.4.7' 11273 macro_revision='2.4.7' 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 ltmain=$ac_aux_dir/ltmain.sh 11289 11290 # Backslashify metacharacters that are still active within 11291 # double-quoted strings. 11292 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11293 11294 # Same as above, but do not quote variable references. 11295 double_quote_subst='s/\(["`\\]\)/\\\1/g' 11296 11297 # Sed substitution to delay expansion of an escaped shell variable in a 11298 # double_quote_subst'ed string. 11299 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11300 11301 # Sed substitution to delay expansion of an escaped single quote. 11302 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11303 11304 # Sed substitution to avoid accidental globbing in evaled expressions 11305 no_glob_subst='s/\*/\\\*/g' 11306 11307 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11309 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11310 11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11312 printf %s "checking how to print strings... " >&6; } 11313 # Test print first, because it will be a builtin if present. 11314 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11315 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11316 ECHO='print -r --' 11317 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11318 ECHO='printf %s\n' 11319 else 11320 # Use this function as a fallback that always works. 11321 func_fallback_echo () 11322 { 11323 eval 'cat <<_LTECHO_EOF 11324 $1 11325 _LTECHO_EOF' 11326 } 11327 ECHO='func_fallback_echo' 11328 fi 11329 11330 # func_echo_all arg... 11331 # Invoke $ECHO with all args, space-separated. 11332 func_echo_all () 11333 { 11334 $ECHO "" 11335 } 11336 11337 case $ECHO in 11338 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11339 printf "%s\n" "printf" >&6; } ;; 11340 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11341 printf "%s\n" "print -r" >&6; } ;; 11342 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11343 printf "%s\n" "cat" >&6; } ;; 11344 esac 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11360 printf %s "checking for a sed that does not truncate output... " >&6; } 11361 if test ${ac_cv_path_SED+y} 11362 then : 11363 printf %s "(cached) " >&6 11364 else $as_nop 11365 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11366 for ac_i in 1 2 3 4 5 6 7; do 11367 ac_script="$ac_script$as_nl$ac_script" 11368 done 11369 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11370 { ac_script=; unset ac_script;} 11371 if test -z "$SED"; then 11372 ac_path_SED_found=false 11373 # Loop through the user's path and test for each of PROGNAME-LIST 11374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11375 for as_dir in $PATH 11376 do 11377 IFS=$as_save_IFS 11378 case $as_dir in #((( 11379 '') as_dir=./ ;; 11380 */) ;; 11381 *) as_dir=$as_dir/ ;; 11382 esac 11383 for ac_prog in sed gsed 11384 do 11385 for ac_exec_ext in '' $ac_executable_extensions; do 11386 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 11387 as_fn_executable_p "$ac_path_SED" || continue 11388 # Check for GNU ac_path_SED and select it if it is found. 11389 # Check for GNU $ac_path_SED 11390 case `"$ac_path_SED" --version 2>&1` in 11391 *GNU*) 11392 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11393 *) 11394 ac_count=0 11395 printf %s 0123456789 >"conftest.in" 11396 while : 11397 do 11398 cat "conftest.in" "conftest.in" >"conftest.tmp" 11399 mv "conftest.tmp" "conftest.in" 11400 cp "conftest.in" "conftest.nl" 11401 printf "%s\n" '' >> "conftest.nl" 11402 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11404 as_fn_arith $ac_count + 1 && ac_count=$as_val 11405 if test $ac_count -gt ${ac_path_SED_max-0}; then 11406 # Best one so far, save it but keep looking for a better one 11407 ac_cv_path_SED="$ac_path_SED" 11408 ac_path_SED_max=$ac_count 11409 fi 11410 # 10*(2^10) chars as input seems more than enough 11411 test $ac_count -gt 10 && break 11412 done 11413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11414 esac 11415 11416 $ac_path_SED_found && break 3 11417 done 11418 done 11419 done 11420 IFS=$as_save_IFS 11421 if test -z "$ac_cv_path_SED"; then 11422 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11423 fi 11424 else 11425 ac_cv_path_SED=$SED 11426 fi 11427 11428 fi 11429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11430 printf "%s\n" "$ac_cv_path_SED" >&6; } 11431 SED="$ac_cv_path_SED" 11432 rm -f conftest.sed 11433 11434 test -z "$SED" && SED=sed 11435 Xsed="$SED -e 1s/^X//" 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11448 printf %s "checking for grep that handles long lines and -e... " >&6; } 11449 if test ${ac_cv_path_GREP+y} 11450 then : 11451 printf %s "(cached) " >&6 11452 else $as_nop 11453 if test -z "$GREP"; then 11454 ac_path_GREP_found=false 11455 # Loop through the user's path and test for each of PROGNAME-LIST 11456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11457 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11458 do 11459 IFS=$as_save_IFS 11460 case $as_dir in #((( 11461 '') as_dir=./ ;; 11462 */) ;; 11463 *) as_dir=$as_dir/ ;; 11464 esac 11465 for ac_prog in grep ggrep 11466 do 11467 for ac_exec_ext in '' $ac_executable_extensions; do 11468 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 11469 as_fn_executable_p "$ac_path_GREP" || continue 11470 # Check for GNU ac_path_GREP and select it if it is found. 11471 # Check for GNU $ac_path_GREP 11472 case `"$ac_path_GREP" --version 2>&1` in 11473 *GNU*) 11474 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11475 *) 11476 ac_count=0 11477 printf %s 0123456789 >"conftest.in" 11478 while : 11479 do 11480 cat "conftest.in" "conftest.in" >"conftest.tmp" 11481 mv "conftest.tmp" "conftest.in" 11482 cp "conftest.in" "conftest.nl" 11483 printf "%s\n" 'GREP' >> "conftest.nl" 11484 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11486 as_fn_arith $ac_count + 1 && ac_count=$as_val 11487 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11488 # Best one so far, save it but keep looking for a better one 11489 ac_cv_path_GREP="$ac_path_GREP" 11490 ac_path_GREP_max=$ac_count 11491 fi 11492 # 10*(2^10) chars as input seems more than enough 11493 test $ac_count -gt 10 && break 11494 done 11495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11496 esac 11497 11498 $ac_path_GREP_found && break 3 11499 done 11500 done 11501 done 11502 IFS=$as_save_IFS 11503 if test -z "$ac_cv_path_GREP"; then 11504 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11505 fi 11506 else 11507 ac_cv_path_GREP=$GREP 11508 fi 11509 11510 fi 11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11512 printf "%s\n" "$ac_cv_path_GREP" >&6; } 11513 GREP="$ac_cv_path_GREP" 11514 11515 11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11517 printf %s "checking for egrep... " >&6; } 11518 if test ${ac_cv_path_EGREP+y} 11519 then : 11520 printf %s "(cached) " >&6 11521 else $as_nop 11522 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11523 then ac_cv_path_EGREP="$GREP -E" 11524 else 11525 if test -z "$EGREP"; then 11526 ac_path_EGREP_found=false 11527 # Loop through the user's path and test for each of PROGNAME-LIST 11528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11530 do 11531 IFS=$as_save_IFS 11532 case $as_dir in #((( 11533 '') as_dir=./ ;; 11534 */) ;; 11535 *) as_dir=$as_dir/ ;; 11536 esac 11537 for ac_prog in egrep 11538 do 11539 for ac_exec_ext in '' $ac_executable_extensions; do 11540 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 11541 as_fn_executable_p "$ac_path_EGREP" || continue 11542 # Check for GNU ac_path_EGREP and select it if it is found. 11543 # Check for GNU $ac_path_EGREP 11544 case `"$ac_path_EGREP" --version 2>&1` in 11545 *GNU*) 11546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11547 *) 11548 ac_count=0 11549 printf %s 0123456789 >"conftest.in" 11550 while : 11551 do 11552 cat "conftest.in" "conftest.in" >"conftest.tmp" 11553 mv "conftest.tmp" "conftest.in" 11554 cp "conftest.in" "conftest.nl" 11555 printf "%s\n" 'EGREP' >> "conftest.nl" 11556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11558 as_fn_arith $ac_count + 1 && ac_count=$as_val 11559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11560 # Best one so far, save it but keep looking for a better one 11561 ac_cv_path_EGREP="$ac_path_EGREP" 11562 ac_path_EGREP_max=$ac_count 11563 fi 11564 # 10*(2^10) chars as input seems more than enough 11565 test $ac_count -gt 10 && break 11566 done 11567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11568 esac 11569 11570 $ac_path_EGREP_found && break 3 11571 done 11572 done 11573 done 11574 IFS=$as_save_IFS 11575 if test -z "$ac_cv_path_EGREP"; then 11576 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11577 fi 11578 else 11579 ac_cv_path_EGREP=$EGREP 11580 fi 11581 11582 fi 11583 fi 11584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11585 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 11586 EGREP="$ac_cv_path_EGREP" 11587 11588 11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11590 printf %s "checking for fgrep... " >&6; } 11591 if test ${ac_cv_path_FGREP+y} 11592 then : 11593 printf %s "(cached) " >&6 11594 else $as_nop 11595 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11596 then ac_cv_path_FGREP="$GREP -F" 11597 else 11598 if test -z "$FGREP"; then 11599 ac_path_FGREP_found=false 11600 # Loop through the user's path and test for each of PROGNAME-LIST 11601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11602 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11603 do 11604 IFS=$as_save_IFS 11605 case $as_dir in #((( 11606 '') as_dir=./ ;; 11607 */) ;; 11608 *) as_dir=$as_dir/ ;; 11609 esac 11610 for ac_prog in fgrep 11611 do 11612 for ac_exec_ext in '' $ac_executable_extensions; do 11613 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 11614 as_fn_executable_p "$ac_path_FGREP" || continue 11615 # Check for GNU ac_path_FGREP and select it if it is found. 11616 # Check for GNU $ac_path_FGREP 11617 case `"$ac_path_FGREP" --version 2>&1` in 11618 *GNU*) 11619 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11620 *) 11621 ac_count=0 11622 printf %s 0123456789 >"conftest.in" 11623 while : 11624 do 11625 cat "conftest.in" "conftest.in" >"conftest.tmp" 11626 mv "conftest.tmp" "conftest.in" 11627 cp "conftest.in" "conftest.nl" 11628 printf "%s\n" 'FGREP' >> "conftest.nl" 11629 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11631 as_fn_arith $ac_count + 1 && ac_count=$as_val 11632 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11633 # Best one so far, save it but keep looking for a better one 11634 ac_cv_path_FGREP="$ac_path_FGREP" 11635 ac_path_FGREP_max=$ac_count 11636 fi 11637 # 10*(2^10) chars as input seems more than enough 11638 test $ac_count -gt 10 && break 11639 done 11640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11641 esac 11642 11643 $ac_path_FGREP_found && break 3 11644 done 11645 done 11646 done 11647 IFS=$as_save_IFS 11648 if test -z "$ac_cv_path_FGREP"; then 11649 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11650 fi 11651 else 11652 ac_cv_path_FGREP=$FGREP 11653 fi 11654 11655 fi 11656 fi 11657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11658 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 11659 FGREP="$ac_cv_path_FGREP" 11660 11661 11662 test -z "$GREP" && GREP=grep 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 # Check whether --with-gnu-ld was given. 11683 if test ${with_gnu_ld+y} 11684 then : 11685 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 11686 else $as_nop 11687 with_gnu_ld=no 11688 fi 11689 11690 ac_prog=ld 11691 if test yes = "$GCC"; then 11692 # Check if gcc -print-prog-name=ld gives a path. 11693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11694 printf %s "checking for ld used by $CC... " >&6; } 11695 case $host in 11696 *-*-mingw*) 11697 # gcc leaves a trailing carriage return, which upsets mingw 11698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11699 *) 11700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11701 esac 11702 case $ac_prog in 11703 # Accept absolute paths. 11704 [\\/]* | ?:[\\/]*) 11705 re_direlt='/[^/][^/]*/\.\./' 11706 # Canonicalize the pathname of ld 11707 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11708 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11709 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11710 done 11711 test -z "$LD" && LD=$ac_prog 11712 ;; 11713 "") 11714 # If it fails, then pretend we aren't using GCC. 11715 ac_prog=ld 11716 ;; 11717 *) 11718 # If it is relative, then search for the first ld in PATH. 11719 with_gnu_ld=unknown 11720 ;; 11721 esac 11722 elif test yes = "$with_gnu_ld"; then 11723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11724 printf %s "checking for GNU ld... " >&6; } 11725 else 11726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11727 printf %s "checking for non-GNU ld... " >&6; } 11728 fi 11729 if test ${lt_cv_path_LD+y} 11730 then : 11731 printf %s "(cached) " >&6 11732 else $as_nop 11733 if test -z "$LD"; then 11734 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11735 for ac_dir in $PATH; do 11736 IFS=$lt_save_ifs 11737 test -z "$ac_dir" && ac_dir=. 11738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11739 lt_cv_path_LD=$ac_dir/$ac_prog 11740 # Check to see if the program is GNU ld. I'd rather use --version, 11741 # but apparently some variants of GNU ld only accept -v. 11742 # Break only if it was the GNU/non-GNU ld that we prefer. 11743 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11744 *GNU* | *'with BFD'*) 11745 test no != "$with_gnu_ld" && break 11746 ;; 11747 *) 11748 test yes != "$with_gnu_ld" && break 11749 ;; 11750 esac 11751 fi 11752 done 11753 IFS=$lt_save_ifs 11754 else 11755 lt_cv_path_LD=$LD # Let the user override the test with a path. 11756 fi 11757 fi 11758 11759 LD=$lt_cv_path_LD 11760 if test -n "$LD"; then 11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11762 printf "%s\n" "$LD" >&6; } 11763 else 11764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11765 printf "%s\n" "no" >&6; } 11766 fi 11767 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11769 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 11770 if test ${lt_cv_prog_gnu_ld+y} 11771 then : 11772 printf %s "(cached) " >&6 11773 else $as_nop 11774 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11775 case `$LD -v 2>&1 </dev/null` in 11776 *GNU* | *'with BFD'*) 11777 lt_cv_prog_gnu_ld=yes 11778 ;; 11779 *) 11780 lt_cv_prog_gnu_ld=no 11781 ;; 11782 esac 11783 fi 11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11785 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 11786 with_gnu_ld=$lt_cv_prog_gnu_ld 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11797 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11798 if test ${lt_cv_path_NM+y} 11799 then : 11800 printf %s "(cached) " >&6 11801 else $as_nop 11802 if test -n "$NM"; then 11803 # Let the user override the test. 11804 lt_cv_path_NM=$NM 11805 else 11806 lt_nm_to_check=${ac_tool_prefix}nm 11807 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11808 lt_nm_to_check="$lt_nm_to_check nm" 11809 fi 11810 for lt_tmp_nm in $lt_nm_to_check; do 11811 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 11812 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11813 IFS=$lt_save_ifs 11814 test -z "$ac_dir" && ac_dir=. 11815 tmp_nm=$ac_dir/$lt_tmp_nm 11816 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 11817 # Check to see if the nm accepts a BSD-compat flag. 11818 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 11819 # nm: unknown option "B" ignored 11820 # Tru64's nm complains that /dev/null is an invalid object file 11821 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 11822 case $build_os in 11823 mingw*) lt_bad_file=conftest.nm/nofile ;; 11824 *) lt_bad_file=/dev/null ;; 11825 esac 11826 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 11827 *$lt_bad_file* | *'Invalid file or object type'*) 11828 lt_cv_path_NM="$tmp_nm -B" 11829 break 2 11830 ;; 11831 *) 11832 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 11833 */dev/null*) 11834 lt_cv_path_NM="$tmp_nm -p" 11835 break 2 11836 ;; 11837 *) 11838 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11839 continue # so that we can try to find one that supports BSD flags 11840 ;; 11841 esac 11842 ;; 11843 esac 11844 fi 11845 done 11846 IFS=$lt_save_ifs 11847 done 11848 : ${lt_cv_path_NM=no} 11849 fi 11850 fi 11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11852 printf "%s\n" "$lt_cv_path_NM" >&6; } 11853 if test no != "$lt_cv_path_NM"; then 11854 NM=$lt_cv_path_NM 11855 else 11856 # Didn't find any BSD compatible name lister, look for dumpbin. 11857 if test -n "$DUMPBIN"; then : 11858 # Let the user override the test. 11859 else 11860 if test -n "$ac_tool_prefix"; then 11861 for ac_prog in dumpbin "link -dump" 11862 do 11863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11866 printf %s "checking for $ac_word... " >&6; } 11867 if test ${ac_cv_prog_DUMPBIN+y} 11868 then : 11869 printf %s "(cached) " >&6 11870 else $as_nop 11871 if test -n "$DUMPBIN"; then 11872 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11873 else 11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11875 for as_dir in $PATH 11876 do 11877 IFS=$as_save_IFS 11878 case $as_dir in #((( 11879 '') as_dir=./ ;; 11880 */) ;; 11881 *) as_dir=$as_dir/ ;; 11882 esac 11883 for ac_exec_ext in '' $ac_executable_extensions; do 11884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11885 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11887 break 2 11888 fi 11889 done 11890 done 11891 IFS=$as_save_IFS 11892 11893 fi 11894 fi 11895 DUMPBIN=$ac_cv_prog_DUMPBIN 11896 if test -n "$DUMPBIN"; then 11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11898 printf "%s\n" "$DUMPBIN" >&6; } 11899 else 11900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11901 printf "%s\n" "no" >&6; } 11902 fi 11903 11904 11905 test -n "$DUMPBIN" && break 11906 done 11907 fi 11908 if test -z "$DUMPBIN"; then 11909 ac_ct_DUMPBIN=$DUMPBIN 11910 for ac_prog in dumpbin "link -dump" 11911 do 11912 # Extract the first word of "$ac_prog", so it can be a program name with args. 11913 set dummy $ac_prog; ac_word=$2 11914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11915 printf %s "checking for $ac_word... " >&6; } 11916 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 11917 then : 11918 printf %s "(cached) " >&6 11919 else $as_nop 11920 if test -n "$ac_ct_DUMPBIN"; then 11921 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11922 else 11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11924 for as_dir in $PATH 11925 do 11926 IFS=$as_save_IFS 11927 case $as_dir in #((( 11928 '') as_dir=./ ;; 11929 */) ;; 11930 *) as_dir=$as_dir/ ;; 11931 esac 11932 for ac_exec_ext in '' $ac_executable_extensions; do 11933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11934 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11936 break 2 11937 fi 11938 done 11939 done 11940 IFS=$as_save_IFS 11941 11942 fi 11943 fi 11944 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11945 if test -n "$ac_ct_DUMPBIN"; then 11946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11947 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 11948 else 11949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11950 printf "%s\n" "no" >&6; } 11951 fi 11952 11953 11954 test -n "$ac_ct_DUMPBIN" && break 11955 done 11956 11957 if test "x$ac_ct_DUMPBIN" = x; then 11958 DUMPBIN=":" 11959 else 11960 case $cross_compiling:$ac_tool_warned in 11961 yes:) 11962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11963 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11964 ac_tool_warned=yes ;; 11965 esac 11966 DUMPBIN=$ac_ct_DUMPBIN 11967 fi 11968 fi 11969 11970 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 11971 *COFF*) 11972 DUMPBIN="$DUMPBIN -symbols -headers" 11973 ;; 11974 *) 11975 DUMPBIN=: 11976 ;; 11977 esac 11978 fi 11979 11980 if test : != "$DUMPBIN"; then 11981 NM=$DUMPBIN 11982 fi 11983 fi 11984 test -z "$NM" && NM=nm 11985 11986 11987 11988 11989 11990 11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11992 printf %s "checking the name lister ($NM) interface... " >&6; } 11993 if test ${lt_cv_nm_interface+y} 11994 then : 11995 printf %s "(cached) " >&6 11996 else $as_nop 11997 lt_cv_nm_interface="BSD nm" 11998 echo "int some_variable = 0;" > conftest.$ac_ext 11999 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 12000 (eval "$ac_compile" 2>conftest.err) 12001 cat conftest.err >&5 12002 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 12003 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 12004 cat conftest.err >&5 12005 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 12006 cat conftest.out >&5 12007 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 12008 lt_cv_nm_interface="MS dumpbin" 12009 fi 12010 rm -f conftest* 12011 fi 12012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 12013 printf "%s\n" "$lt_cv_nm_interface" >&6; } 12014 12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12016 printf %s "checking whether ln -s works... " >&6; } 12017 LN_S=$as_ln_s 12018 if test "$LN_S" = "ln -s"; then 12019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12020 printf "%s\n" "yes" >&6; } 12021 else 12022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12023 printf "%s\n" "no, using $LN_S" >&6; } 12024 fi 12025 12026 # find the maximum length of command line arguments 12027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12028 printf %s "checking the maximum length of command line arguments... " >&6; } 12029 if test ${lt_cv_sys_max_cmd_len+y} 12030 then : 12031 printf %s "(cached) " >&6 12032 else $as_nop 12033 i=0 12034 teststring=ABCD 12035 12036 case $build_os in 12037 msdosdjgpp*) 12038 # On DJGPP, this test can blow up pretty badly due to problems in libc 12039 # (any single argument exceeding 2000 bytes causes a buffer overrun 12040 # during glob expansion). Even if it were fixed, the result of this 12041 # check would be larger than it should be. 12042 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12043 ;; 12044 12045 gnu*) 12046 # Under GNU Hurd, this test is not required because there is 12047 # no limit to the length of command line arguments. 12048 # Libtool will interpret -1 as no limit whatsoever 12049 lt_cv_sys_max_cmd_len=-1; 12050 ;; 12051 12052 cygwin* | mingw* | cegcc*) 12053 # On Win9x/ME, this test blows up -- it succeeds, but takes 12054 # about 5 minutes as the teststring grows exponentially. 12055 # Worse, since 9x/ME are not pre-emptively multitasking, 12056 # you end up with a "frozen" computer, even though with patience 12057 # the test eventually succeeds (with a max line length of 256k). 12058 # Instead, let's just punt: use the minimum linelength reported by 12059 # all of the supported platforms: 8192 (on NT/2K/XP). 12060 lt_cv_sys_max_cmd_len=8192; 12061 ;; 12062 12063 mint*) 12064 # On MiNT this can take a long time and run out of memory. 12065 lt_cv_sys_max_cmd_len=8192; 12066 ;; 12067 12068 amigaos*) 12069 # On AmigaOS with pdksh, this test takes hours, literally. 12070 # So we just punt and use a minimum line length of 8192. 12071 lt_cv_sys_max_cmd_len=8192; 12072 ;; 12073 12074 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 12075 # This has been around since 386BSD, at least. Likely further. 12076 if test -x /sbin/sysctl; then 12077 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12078 elif test -x /usr/sbin/sysctl; then 12079 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12080 else 12081 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12082 fi 12083 # And add a safety zone 12084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12086 ;; 12087 12088 interix*) 12089 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12090 lt_cv_sys_max_cmd_len=196608 12091 ;; 12092 12093 os2*) 12094 # The test takes a long time on OS/2. 12095 lt_cv_sys_max_cmd_len=8192 12096 ;; 12097 12098 osf*) 12099 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12100 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12101 # nice to cause kernel panics so lets avoid the loop below. 12102 # First set a reasonable default. 12103 lt_cv_sys_max_cmd_len=16384 12104 # 12105 if test -x /sbin/sysconfig; then 12106 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12107 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12108 esac 12109 fi 12110 ;; 12111 sco3.2v5*) 12112 lt_cv_sys_max_cmd_len=102400 12113 ;; 12114 sysv5* | sco5v6* | sysv4.2uw2*) 12115 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12116 if test -n "$kargmax"; then 12117 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 12118 else 12119 lt_cv_sys_max_cmd_len=32768 12120 fi 12121 ;; 12122 *) 12123 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12124 if test -n "$lt_cv_sys_max_cmd_len" && \ 12125 test undefined != "$lt_cv_sys_max_cmd_len"; then 12126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12127 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12128 else 12129 # Make teststring a little bigger before we do anything with it. 12130 # a 1K string should be a reasonable start. 12131 for i in 1 2 3 4 5 6 7 8; do 12132 teststring=$teststring$teststring 12133 done 12134 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12135 # If test is not a shell built-in, we'll probably end up computing a 12136 # maximum length that is only half of the actual maximum length, but 12137 # we can't tell. 12138 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 12139 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12140 test 17 != "$i" # 1/2 MB should be enough 12141 do 12142 i=`expr $i + 1` 12143 teststring=$teststring$teststring 12144 done 12145 # Only check the string length outside the loop. 12146 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12147 teststring= 12148 # Add a significant safety factor because C++ compilers can tack on 12149 # massive amounts of additional arguments before passing them to the 12150 # linker. It appears as though 1/2 is a usable value. 12151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12152 fi 12153 ;; 12154 esac 12155 12156 fi 12157 12158 if test -n "$lt_cv_sys_max_cmd_len"; then 12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12160 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 12161 else 12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 12163 printf "%s\n" "none" >&6; } 12164 fi 12165 max_cmd_len=$lt_cv_sys_max_cmd_len 12166 12167 12168 12169 12170 12171 12172 : ${CP="cp -f"} 12173 : ${MV="mv -f"} 12174 : ${RM="rm -f"} 12175 12176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12177 lt_unset=unset 12178 else 12179 lt_unset=false 12180 fi 12181 12182 12183 12184 12185 12186 # test EBCDIC or ASCII 12187 case `echo X|tr X '\101'` in 12188 A) # ASCII based system 12189 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12190 lt_SP2NL='tr \040 \012' 12191 lt_NL2SP='tr \015\012 \040\040' 12192 ;; 12193 *) # EBCDIC based system 12194 lt_SP2NL='tr \100 \n' 12195 lt_NL2SP='tr \r\n \100\100' 12196 ;; 12197 esac 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12208 printf %s "checking how to convert $build file names to $host format... " >&6; } 12209 if test ${lt_cv_to_host_file_cmd+y} 12210 then : 12211 printf %s "(cached) " >&6 12212 else $as_nop 12213 case $host in 12214 *-*-mingw* ) 12215 case $build in 12216 *-*-mingw* ) # actually msys 12217 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12218 ;; 12219 *-*-cygwin* ) 12220 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12221 ;; 12222 * ) # otherwise, assume *nix 12223 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12224 ;; 12225 esac 12226 ;; 12227 *-*-cygwin* ) 12228 case $build in 12229 *-*-mingw* ) # actually msys 12230 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12231 ;; 12232 *-*-cygwin* ) 12233 lt_cv_to_host_file_cmd=func_convert_file_noop 12234 ;; 12235 * ) # otherwise, assume *nix 12236 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12237 ;; 12238 esac 12239 ;; 12240 * ) # unhandled hosts (and "normal" native builds) 12241 lt_cv_to_host_file_cmd=func_convert_file_noop 12242 ;; 12243 esac 12244 12245 fi 12246 12247 to_host_file_cmd=$lt_cv_to_host_file_cmd 12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12249 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 12250 12251 12252 12253 12254 12255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12256 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 12257 if test ${lt_cv_to_tool_file_cmd+y} 12258 then : 12259 printf %s "(cached) " >&6 12260 else $as_nop 12261 #assume ordinary cross tools, or native build. 12262 lt_cv_to_tool_file_cmd=func_convert_file_noop 12263 case $host in 12264 *-*-mingw* ) 12265 case $build in 12266 *-*-mingw* ) # actually msys 12267 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12268 ;; 12269 esac 12270 ;; 12271 esac 12272 12273 fi 12274 12275 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12277 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 12278 12279 12280 12281 12282 12283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12284 printf %s "checking for $LD option to reload object files... " >&6; } 12285 if test ${lt_cv_ld_reload_flag+y} 12286 then : 12287 printf %s "(cached) " >&6 12288 else $as_nop 12289 lt_cv_ld_reload_flag='-r' 12290 fi 12291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12292 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 12293 reload_flag=$lt_cv_ld_reload_flag 12294 case $reload_flag in 12295 "" | " "*) ;; 12296 *) reload_flag=" $reload_flag" ;; 12297 esac 12298 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12299 case $host_os in 12300 cygwin* | mingw* | pw32* | cegcc*) 12301 if test yes != "$GCC"; then 12302 reload_cmds=false 12303 fi 12304 ;; 12305 darwin*) 12306 if test yes = "$GCC"; then 12307 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 12308 else 12309 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12310 fi 12311 ;; 12312 esac 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 if test -n "$ac_tool_prefix"; then 12323 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 12324 set dummy ${ac_tool_prefix}file; ac_word=$2 12325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12326 printf %s "checking for $ac_word... " >&6; } 12327 if test ${ac_cv_prog_FILECMD+y} 12328 then : 12329 printf %s "(cached) " >&6 12330 else $as_nop 12331 if test -n "$FILECMD"; then 12332 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 12333 else 12334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12335 for as_dir in $PATH 12336 do 12337 IFS=$as_save_IFS 12338 case $as_dir in #((( 12339 '') as_dir=./ ;; 12340 */) ;; 12341 *) as_dir=$as_dir/ ;; 12342 esac 12343 for ac_exec_ext in '' $ac_executable_extensions; do 12344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12345 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 12346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12347 break 2 12348 fi 12349 done 12350 done 12351 IFS=$as_save_IFS 12352 12353 fi 12354 fi 12355 FILECMD=$ac_cv_prog_FILECMD 12356 if test -n "$FILECMD"; then 12357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 12358 printf "%s\n" "$FILECMD" >&6; } 12359 else 12360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12361 printf "%s\n" "no" >&6; } 12362 fi 12363 12364 12365 fi 12366 if test -z "$ac_cv_prog_FILECMD"; then 12367 ac_ct_FILECMD=$FILECMD 12368 # Extract the first word of "file", so it can be a program name with args. 12369 set dummy file; ac_word=$2 12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12371 printf %s "checking for $ac_word... " >&6; } 12372 if test ${ac_cv_prog_ac_ct_FILECMD+y} 12373 then : 12374 printf %s "(cached) " >&6 12375 else $as_nop 12376 if test -n "$ac_ct_FILECMD"; then 12377 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 12378 else 12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12380 for as_dir in $PATH 12381 do 12382 IFS=$as_save_IFS 12383 case $as_dir in #((( 12384 '') as_dir=./ ;; 12385 */) ;; 12386 *) as_dir=$as_dir/ ;; 12387 esac 12388 for ac_exec_ext in '' $ac_executable_extensions; do 12389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12390 ac_cv_prog_ac_ct_FILECMD="file" 12391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12392 break 2 12393 fi 12394 done 12395 done 12396 IFS=$as_save_IFS 12397 12398 fi 12399 fi 12400 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 12401 if test -n "$ac_ct_FILECMD"; then 12402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 12403 printf "%s\n" "$ac_ct_FILECMD" >&6; } 12404 else 12405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12406 printf "%s\n" "no" >&6; } 12407 fi 12408 12409 if test "x$ac_ct_FILECMD" = x; then 12410 FILECMD=":" 12411 else 12412 case $cross_compiling:$ac_tool_warned in 12413 yes:) 12414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12415 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12416 ac_tool_warned=yes ;; 12417 esac 12418 FILECMD=$ac_ct_FILECMD 12419 fi 12420 else 12421 FILECMD="$ac_cv_prog_FILECMD" 12422 fi 12423 12424 12425 12426 12427 12428 12429 12430 if test -n "$ac_tool_prefix"; then 12431 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12432 set dummy ${ac_tool_prefix}objdump; ac_word=$2 12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12434 printf %s "checking for $ac_word... " >&6; } 12435 if test ${ac_cv_prog_OBJDUMP+y} 12436 then : 12437 printf %s "(cached) " >&6 12438 else $as_nop 12439 if test -n "$OBJDUMP"; then 12440 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12441 else 12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12443 for as_dir in $PATH 12444 do 12445 IFS=$as_save_IFS 12446 case $as_dir in #((( 12447 '') as_dir=./ ;; 12448 */) ;; 12449 *) as_dir=$as_dir/ ;; 12450 esac 12451 for ac_exec_ext in '' $ac_executable_extensions; do 12452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12453 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12455 break 2 12456 fi 12457 done 12458 done 12459 IFS=$as_save_IFS 12460 12461 fi 12462 fi 12463 OBJDUMP=$ac_cv_prog_OBJDUMP 12464 if test -n "$OBJDUMP"; then 12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12466 printf "%s\n" "$OBJDUMP" >&6; } 12467 else 12468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12469 printf "%s\n" "no" >&6; } 12470 fi 12471 12472 12473 fi 12474 if test -z "$ac_cv_prog_OBJDUMP"; then 12475 ac_ct_OBJDUMP=$OBJDUMP 12476 # Extract the first word of "objdump", so it can be a program name with args. 12477 set dummy objdump; ac_word=$2 12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12479 printf %s "checking for $ac_word... " >&6; } 12480 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 12481 then : 12482 printf %s "(cached) " >&6 12483 else $as_nop 12484 if test -n "$ac_ct_OBJDUMP"; then 12485 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12486 else 12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12488 for as_dir in $PATH 12489 do 12490 IFS=$as_save_IFS 12491 case $as_dir in #((( 12492 '') as_dir=./ ;; 12493 */) ;; 12494 *) as_dir=$as_dir/ ;; 12495 esac 12496 for ac_exec_ext in '' $ac_executable_extensions; do 12497 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12498 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12500 break 2 12501 fi 12502 done 12503 done 12504 IFS=$as_save_IFS 12505 12506 fi 12507 fi 12508 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12509 if test -n "$ac_ct_OBJDUMP"; then 12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12511 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 12512 else 12513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12514 printf "%s\n" "no" >&6; } 12515 fi 12516 12517 if test "x$ac_ct_OBJDUMP" = x; then 12518 OBJDUMP="false" 12519 else 12520 case $cross_compiling:$ac_tool_warned in 12521 yes:) 12522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12523 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12524 ac_tool_warned=yes ;; 12525 esac 12526 OBJDUMP=$ac_ct_OBJDUMP 12527 fi 12528 else 12529 OBJDUMP="$ac_cv_prog_OBJDUMP" 12530 fi 12531 12532 test -z "$OBJDUMP" && OBJDUMP=objdump 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12543 printf %s "checking how to recognize dependent libraries... " >&6; } 12544 if test ${lt_cv_deplibs_check_method+y} 12545 then : 12546 printf %s "(cached) " >&6 12547 else $as_nop 12548 lt_cv_file_magic_cmd='$MAGIC_CMD' 12549 lt_cv_file_magic_test_file= 12550 lt_cv_deplibs_check_method='unknown' 12551 # Need to set the preceding variable on all platforms that support 12552 # interlibrary dependencies. 12553 # 'none' -- dependencies not supported. 12554 # 'unknown' -- same as none, but documents that we really don't know. 12555 # 'pass_all' -- all dependencies passed with no checks. 12556 # 'test_compile' -- check by making test program. 12557 # 'file_magic [[regex]]' -- check by looking for files in library path 12558 # that responds to the $file_magic_cmd with a given extended regex. 12559 # If you have 'file' or equivalent on your system and you're not sure 12560 # whether 'pass_all' will *always* work, you probably want this one. 12561 12562 case $host_os in 12563 aix[4-9]*) 12564 lt_cv_deplibs_check_method=pass_all 12565 ;; 12566 12567 beos*) 12568 lt_cv_deplibs_check_method=pass_all 12569 ;; 12570 12571 bsdi[45]*) 12572 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12573 lt_cv_file_magic_cmd='$FILECMD -L' 12574 lt_cv_file_magic_test_file=/shlib/libc.so 12575 ;; 12576 12577 cygwin*) 12578 # func_win32_libid is a shell function defined in ltmain.sh 12579 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12580 lt_cv_file_magic_cmd='func_win32_libid' 12581 ;; 12582 12583 mingw* | pw32*) 12584 # Base MSYS/MinGW do not provide the 'file' command needed by 12585 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12586 # unless we find 'file', for example because we are cross-compiling. 12587 if ( file / ) >/dev/null 2>&1; then 12588 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12589 lt_cv_file_magic_cmd='func_win32_libid' 12590 else 12591 # Keep this pattern in sync with the one in func_win32_libid. 12592 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12593 lt_cv_file_magic_cmd='$OBJDUMP -f' 12594 fi 12595 ;; 12596 12597 cegcc*) 12598 # use the weaker test based on 'objdump'. See mingw*. 12599 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12600 lt_cv_file_magic_cmd='$OBJDUMP -f' 12601 ;; 12602 12603 darwin* | rhapsody*) 12604 lt_cv_deplibs_check_method=pass_all 12605 ;; 12606 12607 freebsd* | dragonfly* | midnightbsd*) 12608 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12609 case $host_cpu in 12610 i*86 ) 12611 # Not sure whether the presence of OpenBSD here was a mistake. 12612 # Let's accept both of them until this is cleared up. 12613 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12614 lt_cv_file_magic_cmd=$FILECMD 12615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12616 ;; 12617 esac 12618 else 12619 lt_cv_deplibs_check_method=pass_all 12620 fi 12621 ;; 12622 12623 haiku*) 12624 lt_cv_deplibs_check_method=pass_all 12625 ;; 12626 12627 hpux10.20* | hpux11*) 12628 lt_cv_file_magic_cmd=$FILECMD 12629 case $host_cpu in 12630 ia64*) 12631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12633 ;; 12634 hppa*64*) 12635 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]' 12636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12637 ;; 12638 *) 12639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12640 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12641 ;; 12642 esac 12643 ;; 12644 12645 interix[3-9]*) 12646 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12648 ;; 12649 12650 irix5* | irix6* | nonstopux*) 12651 case $LD in 12652 *-32|*"-32 ") libmagic=32-bit;; 12653 *-n32|*"-n32 ") libmagic=N32;; 12654 *-64|*"-64 ") libmagic=64-bit;; 12655 *) libmagic=never-match;; 12656 esac 12657 lt_cv_deplibs_check_method=pass_all 12658 ;; 12659 12660 # This must be glibc/ELF. 12661 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12662 lt_cv_deplibs_check_method=pass_all 12663 ;; 12664 12665 netbsd*) 12666 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12668 else 12669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12670 fi 12671 ;; 12672 12673 newos6*) 12674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12675 lt_cv_file_magic_cmd=$FILECMD 12676 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12677 ;; 12678 12679 *nto* | *qnx*) 12680 lt_cv_deplibs_check_method=pass_all 12681 ;; 12682 12683 openbsd* | bitrig*) 12684 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12686 else 12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12688 fi 12689 ;; 12690 12691 osf3* | osf4* | osf5*) 12692 lt_cv_deplibs_check_method=pass_all 12693 ;; 12694 12695 rdos*) 12696 lt_cv_deplibs_check_method=pass_all 12697 ;; 12698 12699 solaris*) 12700 lt_cv_deplibs_check_method=pass_all 12701 ;; 12702 12703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12704 lt_cv_deplibs_check_method=pass_all 12705 ;; 12706 12707 sysv4 | sysv4.3*) 12708 case $host_vendor in 12709 motorola) 12710 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]' 12711 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12712 ;; 12713 ncr) 12714 lt_cv_deplibs_check_method=pass_all 12715 ;; 12716 sequent) 12717 lt_cv_file_magic_cmd='/bin/file' 12718 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12719 ;; 12720 sni) 12721 lt_cv_file_magic_cmd='/bin/file' 12722 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12723 lt_cv_file_magic_test_file=/lib/libc.so 12724 ;; 12725 siemens) 12726 lt_cv_deplibs_check_method=pass_all 12727 ;; 12728 pc) 12729 lt_cv_deplibs_check_method=pass_all 12730 ;; 12731 esac 12732 ;; 12733 12734 tpf*) 12735 lt_cv_deplibs_check_method=pass_all 12736 ;; 12737 os2*) 12738 lt_cv_deplibs_check_method=pass_all 12739 ;; 12740 esac 12741 12742 fi 12743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12744 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 12745 12746 file_magic_glob= 12747 want_nocaseglob=no 12748 if test "$build" = "$host"; then 12749 case $host_os in 12750 mingw* | pw32*) 12751 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12752 want_nocaseglob=yes 12753 else 12754 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12755 fi 12756 ;; 12757 esac 12758 fi 12759 12760 file_magic_cmd=$lt_cv_file_magic_cmd 12761 deplibs_check_method=$lt_cv_deplibs_check_method 12762 test -z "$deplibs_check_method" && deplibs_check_method=unknown 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 if test -n "$ac_tool_prefix"; then 12786 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12787 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12789 printf %s "checking for $ac_word... " >&6; } 12790 if test ${ac_cv_prog_DLLTOOL+y} 12791 then : 12792 printf %s "(cached) " >&6 12793 else $as_nop 12794 if test -n "$DLLTOOL"; then 12795 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12796 else 12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12798 for as_dir in $PATH 12799 do 12800 IFS=$as_save_IFS 12801 case $as_dir in #((( 12802 '') as_dir=./ ;; 12803 */) ;; 12804 *) as_dir=$as_dir/ ;; 12805 esac 12806 for ac_exec_ext in '' $ac_executable_extensions; do 12807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12808 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12810 break 2 12811 fi 12812 done 12813 done 12814 IFS=$as_save_IFS 12815 12816 fi 12817 fi 12818 DLLTOOL=$ac_cv_prog_DLLTOOL 12819 if test -n "$DLLTOOL"; then 12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12821 printf "%s\n" "$DLLTOOL" >&6; } 12822 else 12823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12824 printf "%s\n" "no" >&6; } 12825 fi 12826 12827 12828 fi 12829 if test -z "$ac_cv_prog_DLLTOOL"; then 12830 ac_ct_DLLTOOL=$DLLTOOL 12831 # Extract the first word of "dlltool", so it can be a program name with args. 12832 set dummy dlltool; ac_word=$2 12833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12834 printf %s "checking for $ac_word... " >&6; } 12835 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 12836 then : 12837 printf %s "(cached) " >&6 12838 else $as_nop 12839 if test -n "$ac_ct_DLLTOOL"; then 12840 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12841 else 12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12843 for as_dir in $PATH 12844 do 12845 IFS=$as_save_IFS 12846 case $as_dir in #((( 12847 '') as_dir=./ ;; 12848 */) ;; 12849 *) as_dir=$as_dir/ ;; 12850 esac 12851 for ac_exec_ext in '' $ac_executable_extensions; do 12852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12853 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12855 break 2 12856 fi 12857 done 12858 done 12859 IFS=$as_save_IFS 12860 12861 fi 12862 fi 12863 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12864 if test -n "$ac_ct_DLLTOOL"; then 12865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12866 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 12867 else 12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12869 printf "%s\n" "no" >&6; } 12870 fi 12871 12872 if test "x$ac_ct_DLLTOOL" = x; then 12873 DLLTOOL="false" 12874 else 12875 case $cross_compiling:$ac_tool_warned in 12876 yes:) 12877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12878 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12879 ac_tool_warned=yes ;; 12880 esac 12881 DLLTOOL=$ac_ct_DLLTOOL 12882 fi 12883 else 12884 DLLTOOL="$ac_cv_prog_DLLTOOL" 12885 fi 12886 12887 test -z "$DLLTOOL" && DLLTOOL=dlltool 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12899 printf %s "checking how to associate runtime and link libraries... " >&6; } 12900 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 12901 then : 12902 printf %s "(cached) " >&6 12903 else $as_nop 12904 lt_cv_sharedlib_from_linklib_cmd='unknown' 12905 12906 case $host_os in 12907 cygwin* | mingw* | pw32* | cegcc*) 12908 # two different shell functions defined in ltmain.sh; 12909 # decide which one to use based on capabilities of $DLLTOOL 12910 case `$DLLTOOL --help 2>&1` in 12911 *--identify-strict*) 12912 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12913 ;; 12914 *) 12915 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12916 ;; 12917 esac 12918 ;; 12919 *) 12920 # fallback: assume linklib IS sharedlib 12921 lt_cv_sharedlib_from_linklib_cmd=$ECHO 12922 ;; 12923 esac 12924 12925 fi 12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12927 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12928 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12929 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12930 12931 12932 12933 12934 12935 12936 12937 if test -n "$ac_tool_prefix"; then 12938 for ac_prog in ar 12939 do 12940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12943 printf %s "checking for $ac_word... " >&6; } 12944 if test ${ac_cv_prog_AR+y} 12945 then : 12946 printf %s "(cached) " >&6 12947 else $as_nop 12948 if test -n "$AR"; then 12949 ac_cv_prog_AR="$AR" # Let the user override the test. 12950 else 12951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12952 for as_dir in $PATH 12953 do 12954 IFS=$as_save_IFS 12955 case $as_dir in #((( 12956 '') as_dir=./ ;; 12957 */) ;; 12958 *) as_dir=$as_dir/ ;; 12959 esac 12960 for ac_exec_ext in '' $ac_executable_extensions; do 12961 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12962 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12964 break 2 12965 fi 12966 done 12967 done 12968 IFS=$as_save_IFS 12969 12970 fi 12971 fi 12972 AR=$ac_cv_prog_AR 12973 if test -n "$AR"; then 12974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12975 printf "%s\n" "$AR" >&6; } 12976 else 12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12978 printf "%s\n" "no" >&6; } 12979 fi 12980 12981 12982 test -n "$AR" && break 12983 done 12984 fi 12985 if test -z "$AR"; then 12986 ac_ct_AR=$AR 12987 for ac_prog in ar 12988 do 12989 # Extract the first word of "$ac_prog", so it can be a program name with args. 12990 set dummy $ac_prog; ac_word=$2 12991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12992 printf %s "checking for $ac_word... " >&6; } 12993 if test ${ac_cv_prog_ac_ct_AR+y} 12994 then : 12995 printf %s "(cached) " >&6 12996 else $as_nop 12997 if test -n "$ac_ct_AR"; then 12998 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12999 else 13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13001 for as_dir in $PATH 13002 do 13003 IFS=$as_save_IFS 13004 case $as_dir in #((( 13005 '') as_dir=./ ;; 13006 */) ;; 13007 *) as_dir=$as_dir/ ;; 13008 esac 13009 for ac_exec_ext in '' $ac_executable_extensions; do 13010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13011 ac_cv_prog_ac_ct_AR="$ac_prog" 13012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13013 break 2 13014 fi 13015 done 13016 done 13017 IFS=$as_save_IFS 13018 13019 fi 13020 fi 13021 ac_ct_AR=$ac_cv_prog_ac_ct_AR 13022 if test -n "$ac_ct_AR"; then 13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13024 printf "%s\n" "$ac_ct_AR" >&6; } 13025 else 13026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13027 printf "%s\n" "no" >&6; } 13028 fi 13029 13030 13031 test -n "$ac_ct_AR" && break 13032 done 13033 13034 if test "x$ac_ct_AR" = x; then 13035 AR="false" 13036 else 13037 case $cross_compiling:$ac_tool_warned in 13038 yes:) 13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13041 ac_tool_warned=yes ;; 13042 esac 13043 AR=$ac_ct_AR 13044 fi 13045 fi 13046 13047 : ${AR=ar} 13048 13049 13050 13051 13052 13053 13054 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 13055 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 13056 # higher priority because thats what people were doing historically (setting 13057 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 13058 # variable obsoleted/removed. 13059 13060 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 13061 lt_ar_flags=$AR_FLAGS 13062 13063 13064 13065 13066 13067 13068 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 13069 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 13070 13071 13072 13073 13074 13075 13076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13077 printf %s "checking for archiver @FILE support... " >&6; } 13078 if test ${lt_cv_ar_at_file+y} 13079 then : 13080 printf %s "(cached) " >&6 13081 else $as_nop 13082 lt_cv_ar_at_file=no 13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13084 /* end confdefs.h. */ 13085 13086 int 13087 main (void) 13088 { 13089 13090 ; 13091 return 0; 13092 } 13093 _ACEOF 13094 if ac_fn_c_try_compile "$LINENO" 13095 then : 13096 echo conftest.$ac_objext > conftest.lst 13097 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13099 (eval $lt_ar_try) 2>&5 13100 ac_status=$? 13101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13102 test $ac_status = 0; } 13103 if test 0 -eq "$ac_status"; then 13104 # Ensure the archiver fails upon bogus file names. 13105 rm -f conftest.$ac_objext libconftest.a 13106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13107 (eval $lt_ar_try) 2>&5 13108 ac_status=$? 13109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13110 test $ac_status = 0; } 13111 if test 0 -ne "$ac_status"; then 13112 lt_cv_ar_at_file=@ 13113 fi 13114 fi 13115 rm -f conftest.* libconftest.a 13116 13117 fi 13118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13119 13120 fi 13121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13122 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 13123 13124 if test no = "$lt_cv_ar_at_file"; then 13125 archiver_list_spec= 13126 else 13127 archiver_list_spec=$lt_cv_ar_at_file 13128 fi 13129 13130 13131 13132 13133 13134 13135 13136 if test -n "$ac_tool_prefix"; then 13137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13138 set dummy ${ac_tool_prefix}strip; ac_word=$2 13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13140 printf %s "checking for $ac_word... " >&6; } 13141 if test ${ac_cv_prog_STRIP+y} 13142 then : 13143 printf %s "(cached) " >&6 13144 else $as_nop 13145 if test -n "$STRIP"; then 13146 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13147 else 13148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13149 for as_dir in $PATH 13150 do 13151 IFS=$as_save_IFS 13152 case $as_dir in #((( 13153 '') as_dir=./ ;; 13154 */) ;; 13155 *) as_dir=$as_dir/ ;; 13156 esac 13157 for ac_exec_ext in '' $ac_executable_extensions; do 13158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13159 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13161 break 2 13162 fi 13163 done 13164 done 13165 IFS=$as_save_IFS 13166 13167 fi 13168 fi 13169 STRIP=$ac_cv_prog_STRIP 13170 if test -n "$STRIP"; then 13171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13172 printf "%s\n" "$STRIP" >&6; } 13173 else 13174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13175 printf "%s\n" "no" >&6; } 13176 fi 13177 13178 13179 fi 13180 if test -z "$ac_cv_prog_STRIP"; then 13181 ac_ct_STRIP=$STRIP 13182 # Extract the first word of "strip", so it can be a program name with args. 13183 set dummy strip; ac_word=$2 13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13185 printf %s "checking for $ac_word... " >&6; } 13186 if test ${ac_cv_prog_ac_ct_STRIP+y} 13187 then : 13188 printf %s "(cached) " >&6 13189 else $as_nop 13190 if test -n "$ac_ct_STRIP"; then 13191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13192 else 13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13194 for as_dir in $PATH 13195 do 13196 IFS=$as_save_IFS 13197 case $as_dir in #((( 13198 '') as_dir=./ ;; 13199 */) ;; 13200 *) as_dir=$as_dir/ ;; 13201 esac 13202 for ac_exec_ext in '' $ac_executable_extensions; do 13203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13204 ac_cv_prog_ac_ct_STRIP="strip" 13205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13206 break 2 13207 fi 13208 done 13209 done 13210 IFS=$as_save_IFS 13211 13212 fi 13213 fi 13214 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13215 if test -n "$ac_ct_STRIP"; then 13216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13217 printf "%s\n" "$ac_ct_STRIP" >&6; } 13218 else 13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13220 printf "%s\n" "no" >&6; } 13221 fi 13222 13223 if test "x$ac_ct_STRIP" = x; then 13224 STRIP=":" 13225 else 13226 case $cross_compiling:$ac_tool_warned in 13227 yes:) 13228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13229 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13230 ac_tool_warned=yes ;; 13231 esac 13232 STRIP=$ac_ct_STRIP 13233 fi 13234 else 13235 STRIP="$ac_cv_prog_STRIP" 13236 fi 13237 13238 test -z "$STRIP" && STRIP=: 13239 13240 13241 13242 13243 13244 13245 if test -n "$ac_tool_prefix"; then 13246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13249 printf %s "checking for $ac_word... " >&6; } 13250 if test ${ac_cv_prog_RANLIB+y} 13251 then : 13252 printf %s "(cached) " >&6 13253 else $as_nop 13254 if test -n "$RANLIB"; then 13255 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13256 else 13257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13258 for as_dir in $PATH 13259 do 13260 IFS=$as_save_IFS 13261 case $as_dir in #((( 13262 '') as_dir=./ ;; 13263 */) ;; 13264 *) as_dir=$as_dir/ ;; 13265 esac 13266 for ac_exec_ext in '' $ac_executable_extensions; do 13267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13268 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13270 break 2 13271 fi 13272 done 13273 done 13274 IFS=$as_save_IFS 13275 13276 fi 13277 fi 13278 RANLIB=$ac_cv_prog_RANLIB 13279 if test -n "$RANLIB"; then 13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13281 printf "%s\n" "$RANLIB" >&6; } 13282 else 13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13284 printf "%s\n" "no" >&6; } 13285 fi 13286 13287 13288 fi 13289 if test -z "$ac_cv_prog_RANLIB"; then 13290 ac_ct_RANLIB=$RANLIB 13291 # Extract the first word of "ranlib", so it can be a program name with args. 13292 set dummy ranlib; ac_word=$2 13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13294 printf %s "checking for $ac_word... " >&6; } 13295 if test ${ac_cv_prog_ac_ct_RANLIB+y} 13296 then : 13297 printf %s "(cached) " >&6 13298 else $as_nop 13299 if test -n "$ac_ct_RANLIB"; then 13300 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13301 else 13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13303 for as_dir in $PATH 13304 do 13305 IFS=$as_save_IFS 13306 case $as_dir in #((( 13307 '') as_dir=./ ;; 13308 */) ;; 13309 *) as_dir=$as_dir/ ;; 13310 esac 13311 for ac_exec_ext in '' $ac_executable_extensions; do 13312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13313 ac_cv_prog_ac_ct_RANLIB="ranlib" 13314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13315 break 2 13316 fi 13317 done 13318 done 13319 IFS=$as_save_IFS 13320 13321 fi 13322 fi 13323 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13324 if test -n "$ac_ct_RANLIB"; then 13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13326 printf "%s\n" "$ac_ct_RANLIB" >&6; } 13327 else 13328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13329 printf "%s\n" "no" >&6; } 13330 fi 13331 13332 if test "x$ac_ct_RANLIB" = x; then 13333 RANLIB=":" 13334 else 13335 case $cross_compiling:$ac_tool_warned in 13336 yes:) 13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13339 ac_tool_warned=yes ;; 13340 esac 13341 RANLIB=$ac_ct_RANLIB 13342 fi 13343 else 13344 RANLIB="$ac_cv_prog_RANLIB" 13345 fi 13346 13347 test -z "$RANLIB" && RANLIB=: 13348 13349 13350 13351 13352 13353 13354 # Determine commands to create old-style static archives. 13355 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13356 old_postinstall_cmds='chmod 644 $oldlib' 13357 old_postuninstall_cmds= 13358 13359 if test -n "$RANLIB"; then 13360 case $host_os in 13361 bitrig* | openbsd*) 13362 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13363 ;; 13364 *) 13365 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13366 ;; 13367 esac 13368 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13369 fi 13370 13371 case $host_os in 13372 darwin*) 13373 lock_old_archive_extraction=yes ;; 13374 *) 13375 lock_old_archive_extraction=no ;; 13376 esac 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 # If no C compiler was specified, use CC. 13417 LTCC=${LTCC-"$CC"} 13418 13419 # If no C compiler flags were specified, use CFLAGS. 13420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13421 13422 # Allow CC to be a program name with arguments. 13423 compiler=$CC 13424 13425 13426 # Check for command to grab the raw symbol name followed by C symbol from nm. 13427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13428 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 13429 if test ${lt_cv_sys_global_symbol_pipe+y} 13430 then : 13431 printf %s "(cached) " >&6 13432 else $as_nop 13433 13434 # These are sane defaults that work on at least a few old systems. 13435 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 13436 13437 # Character class describing NM global symbol codes. 13438 symcode='[BCDEGRST]' 13439 13440 # Regexp to match symbols that can be accessed directly from C. 13441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13442 13443 # Define system-specific variables. 13444 case $host_os in 13445 aix*) 13446 symcode='[BCDT]' 13447 ;; 13448 cygwin* | mingw* | pw32* | cegcc*) 13449 symcode='[ABCDGISTW]' 13450 ;; 13451 hpux*) 13452 if test ia64 = "$host_cpu"; then 13453 symcode='[ABCDEGRST]' 13454 fi 13455 ;; 13456 irix* | nonstopux*) 13457 symcode='[BCDEGRST]' 13458 ;; 13459 osf*) 13460 symcode='[BCDEGQRST]' 13461 ;; 13462 solaris*) 13463 symcode='[BDRT]' 13464 ;; 13465 sco3.2v5*) 13466 symcode='[DT]' 13467 ;; 13468 sysv4.2uw2*) 13469 symcode='[DT]' 13470 ;; 13471 sysv5* | sco5v6* | unixware* | OpenUNIX*) 13472 symcode='[ABDT]' 13473 ;; 13474 sysv4) 13475 symcode='[DFNSTU]' 13476 ;; 13477 esac 13478 13479 # If we're using GNU nm, then use its standard symbol codes. 13480 case `$NM -V 2>&1` in 13481 *GNU* | *'with BFD'*) 13482 symcode='[ABCDGIRSTW]' ;; 13483 esac 13484 13485 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13486 # Gets list of data symbols to import. 13487 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 13488 # Adjust the below global symbol transforms to fixup imported variables. 13489 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 13490 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 13491 lt_c_name_lib_hook="\ 13492 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 13493 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 13494 else 13495 # Disable hooks by default. 13496 lt_cv_sys_global_symbol_to_import= 13497 lt_cdecl_hook= 13498 lt_c_name_hook= 13499 lt_c_name_lib_hook= 13500 fi 13501 13502 # Transform an extracted symbol line into a proper C declaration. 13503 # Some systems (esp. on ia64) link data and code symbols differently, 13504 # so use this general approach. 13505 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 13506 $lt_cdecl_hook\ 13507 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 13508 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 13509 13510 # Transform an extracted symbol line into symbol name and symbol address 13511 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 13512 $lt_c_name_hook\ 13513 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13514 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 13515 13516 # Transform an extracted symbol line into symbol name with lib prefix and 13517 # symbol address. 13518 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 13519 $lt_c_name_lib_hook\ 13520 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 13521 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 13522 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 13523 13524 # Handle CRLF in mingw tool chain 13525 opt_cr= 13526 case $build_os in 13527 mingw*) 13528 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13529 ;; 13530 esac 13531 13532 # Try without a prefix underscore, then with it. 13533 for ac_symprfx in "" "_"; do 13534 13535 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13536 symxfrm="\\1 $ac_symprfx\\2 \\2" 13537 13538 # Write the raw and C identifiers. 13539 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13540 # Fake it for dumpbin and say T for any non-static function, 13541 # D for any global variable and I for any imported variable. 13542 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 13543 # which start with @ or ?. 13544 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13545 " {last_section=section; section=\$ 3};"\ 13546 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13547 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13548 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 13549 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 13550 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 13551 " \$ 0!~/External *\|/{next};"\ 13552 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13553 " {if(hide[section]) next};"\ 13554 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 13555 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 13556 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 13557 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 13558 " ' prfx=^$ac_symprfx" 13559 else 13560 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13561 fi 13562 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 13563 13564 # Check to see that the pipe works correctly. 13565 pipe_works=no 13566 13567 rm -f conftest* 13568 cat > conftest.$ac_ext <<_LT_EOF 13569 #ifdef __cplusplus 13570 extern "C" { 13571 #endif 13572 char nm_test_var; 13573 void nm_test_func(void); 13574 void nm_test_func(void){} 13575 #ifdef __cplusplus 13576 } 13577 #endif 13578 int main(){nm_test_var='a';nm_test_func();return(0);} 13579 _LT_EOF 13580 13581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13582 (eval $ac_compile) 2>&5 13583 ac_status=$? 13584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13585 test $ac_status = 0; }; then 13586 # Now try to grab the symbols. 13587 nlist=conftest.nm 13588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13589 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13590 ac_status=$? 13591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13592 test $ac_status = 0; } && test -s "$nlist"; then 13593 # Try sorting and uniquifying the output. 13594 if sort "$nlist" | uniq > "$nlist"T; then 13595 mv -f "$nlist"T "$nlist" 13596 else 13597 rm -f "$nlist"T 13598 fi 13599 13600 # Make sure that we snagged all the symbols we need. 13601 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13602 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13603 cat <<_LT_EOF > conftest.$ac_ext 13604 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13605 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 13606 /* DATA imports from DLLs on WIN32 can't be const, because runtime 13607 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13608 # define LT_DLSYM_CONST 13609 #elif defined __osf__ 13610 /* This system does not cope well with relocations in const data. */ 13611 # define LT_DLSYM_CONST 13612 #else 13613 # define LT_DLSYM_CONST const 13614 #endif 13615 13616 #ifdef __cplusplus 13617 extern "C" { 13618 #endif 13619 13620 _LT_EOF 13621 # Now generate the symbol file. 13622 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13623 13624 cat <<_LT_EOF >> conftest.$ac_ext 13625 13626 /* The mapping between symbol names and symbols. */ 13627 LT_DLSYM_CONST struct { 13628 const char *name; 13629 void *address; 13630 } 13631 lt__PROGRAM__LTX_preloaded_symbols[] = 13632 { 13633 { "@PROGRAM@", (void *) 0 }, 13634 _LT_EOF 13635 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13636 cat <<\_LT_EOF >> conftest.$ac_ext 13637 {0, (void *) 0} 13638 }; 13639 13640 /* This works around a problem in FreeBSD linker */ 13641 #ifdef FREEBSD_WORKAROUND 13642 static const void *lt_preloaded_setup() { 13643 return lt__PROGRAM__LTX_preloaded_symbols; 13644 } 13645 #endif 13646 13647 #ifdef __cplusplus 13648 } 13649 #endif 13650 _LT_EOF 13651 # Now try linking the two files. 13652 mv conftest.$ac_objext conftstm.$ac_objext 13653 lt_globsym_save_LIBS=$LIBS 13654 lt_globsym_save_CFLAGS=$CFLAGS 13655 LIBS=conftstm.$ac_objext 13656 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13658 (eval $ac_link) 2>&5 13659 ac_status=$? 13660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13661 test $ac_status = 0; } && test -s conftest$ac_exeext; then 13662 pipe_works=yes 13663 fi 13664 LIBS=$lt_globsym_save_LIBS 13665 CFLAGS=$lt_globsym_save_CFLAGS 13666 else 13667 echo "cannot find nm_test_func in $nlist" >&5 13668 fi 13669 else 13670 echo "cannot find nm_test_var in $nlist" >&5 13671 fi 13672 else 13673 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13674 fi 13675 else 13676 echo "$progname: failed program was:" >&5 13677 cat conftest.$ac_ext >&5 13678 fi 13679 rm -rf conftest* conftst* 13680 13681 # Do not use the global_symbol_pipe unless it works. 13682 if test yes = "$pipe_works"; then 13683 break 13684 else 13685 lt_cv_sys_global_symbol_pipe= 13686 fi 13687 done 13688 13689 fi 13690 13691 if test -z "$lt_cv_sys_global_symbol_pipe"; then 13692 lt_cv_sys_global_symbol_to_cdecl= 13693 fi 13694 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13696 printf "%s\n" "failed" >&6; } 13697 else 13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13699 printf "%s\n" "ok" >&6; } 13700 fi 13701 13702 # Response file support. 13703 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13704 nm_file_list_spec='@' 13705 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13706 nm_file_list_spec='@' 13707 fi 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13746 printf %s "checking for sysroot... " >&6; } 13747 13748 # Check whether --with-sysroot was given. 13749 if test ${with_sysroot+y} 13750 then : 13751 withval=$with_sysroot; 13752 else $as_nop 13753 with_sysroot=no 13754 fi 13755 13756 13757 lt_sysroot= 13758 case $with_sysroot in #( 13759 yes) 13760 if test yes = "$GCC"; then 13761 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13762 fi 13763 ;; #( 13764 /*) 13765 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 13766 ;; #( 13767 no|'') 13768 ;; #( 13769 *) 13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 13771 printf "%s\n" "$with_sysroot" >&6; } 13772 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13773 ;; 13774 esac 13775 13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13777 printf "%s\n" "${lt_sysroot:-no}" >&6; } 13778 13779 13780 13781 13782 13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 13784 printf %s "checking for a working dd... " >&6; } 13785 if test ${ac_cv_path_lt_DD+y} 13786 then : 13787 printf %s "(cached) " >&6 13788 else $as_nop 13789 printf 0123456789abcdef0123456789abcdef >conftest.i 13790 cat conftest.i conftest.i >conftest2.i 13791 : ${lt_DD:=$DD} 13792 if test -z "$lt_DD"; then 13793 ac_path_lt_DD_found=false 13794 # Loop through the user's path and test for each of PROGNAME-LIST 13795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13796 for as_dir in $PATH 13797 do 13798 IFS=$as_save_IFS 13799 case $as_dir in #((( 13800 '') as_dir=./ ;; 13801 */) ;; 13802 *) as_dir=$as_dir/ ;; 13803 esac 13804 for ac_prog in dd 13805 do 13806 for ac_exec_ext in '' $ac_executable_extensions; do 13807 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 13808 as_fn_executable_p "$ac_path_lt_DD" || continue 13809 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13810 cmp -s conftest.i conftest.out \ 13811 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 13812 fi 13813 $ac_path_lt_DD_found && break 3 13814 done 13815 done 13816 done 13817 IFS=$as_save_IFS 13818 if test -z "$ac_cv_path_lt_DD"; then 13819 : 13820 fi 13821 else 13822 ac_cv_path_lt_DD=$lt_DD 13823 fi 13824 13825 rm -f conftest.i conftest2.i conftest.out 13826 fi 13827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 13828 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 13829 13830 13831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 13832 printf %s "checking how to truncate binary pipes... " >&6; } 13833 if test ${lt_cv_truncate_bin+y} 13834 then : 13835 printf %s "(cached) " >&6 13836 else $as_nop 13837 printf 0123456789abcdef0123456789abcdef >conftest.i 13838 cat conftest.i conftest.i >conftest2.i 13839 lt_cv_truncate_bin= 13840 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 13841 cmp -s conftest.i conftest.out \ 13842 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 13843 fi 13844 rm -f conftest.i conftest2.i conftest.out 13845 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 13846 fi 13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 13848 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 13849 13850 13851 13852 13853 13854 13855 13856 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 13857 func_cc_basename () 13858 { 13859 for cc_temp in $*""; do 13860 case $cc_temp in 13861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13863 \-*) ;; 13864 *) break;; 13865 esac 13866 done 13867 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13868 } 13869 13870 # Check whether --enable-libtool-lock was given. 13871 if test ${enable_libtool_lock+y} 13872 then : 13873 enableval=$enable_libtool_lock; 13874 fi 13875 13876 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 13877 13878 # Some flags need to be propagated to the compiler or linker for good 13879 # libtool support. 13880 case $host in 13881 ia64-*-hpux*) 13882 # Find out what ABI is being produced by ac_compile, and set mode 13883 # options accordingly. 13884 echo 'int i;' > conftest.$ac_ext 13885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13886 (eval $ac_compile) 2>&5 13887 ac_status=$? 13888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13889 test $ac_status = 0; }; then 13890 case `$FILECMD conftest.$ac_objext` in 13891 *ELF-32*) 13892 HPUX_IA64_MODE=32 13893 ;; 13894 *ELF-64*) 13895 HPUX_IA64_MODE=64 13896 ;; 13897 esac 13898 fi 13899 rm -rf conftest* 13900 ;; 13901 *-*-irix6*) 13902 # Find out what ABI is being produced by ac_compile, and set linker 13903 # options accordingly. 13904 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13906 (eval $ac_compile) 2>&5 13907 ac_status=$? 13908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13909 test $ac_status = 0; }; then 13910 if test yes = "$lt_cv_prog_gnu_ld"; then 13911 case `$FILECMD conftest.$ac_objext` in 13912 *32-bit*) 13913 LD="${LD-ld} -melf32bsmip" 13914 ;; 13915 *N32*) 13916 LD="${LD-ld} -melf32bmipn32" 13917 ;; 13918 *64-bit*) 13919 LD="${LD-ld} -melf64bmip" 13920 ;; 13921 esac 13922 else 13923 case `$FILECMD conftest.$ac_objext` in 13924 *32-bit*) 13925 LD="${LD-ld} -32" 13926 ;; 13927 *N32*) 13928 LD="${LD-ld} -n32" 13929 ;; 13930 *64-bit*) 13931 LD="${LD-ld} -64" 13932 ;; 13933 esac 13934 fi 13935 fi 13936 rm -rf conftest* 13937 ;; 13938 13939 mips64*-*linux*) 13940 # Find out what ABI is being produced by ac_compile, and set linker 13941 # options accordingly. 13942 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13944 (eval $ac_compile) 2>&5 13945 ac_status=$? 13946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13947 test $ac_status = 0; }; then 13948 emul=elf 13949 case `$FILECMD conftest.$ac_objext` in 13950 *32-bit*) 13951 emul="${emul}32" 13952 ;; 13953 *64-bit*) 13954 emul="${emul}64" 13955 ;; 13956 esac 13957 case `$FILECMD conftest.$ac_objext` in 13958 *MSB*) 13959 emul="${emul}btsmip" 13960 ;; 13961 *LSB*) 13962 emul="${emul}ltsmip" 13963 ;; 13964 esac 13965 case `$FILECMD conftest.$ac_objext` in 13966 *N32*) 13967 emul="${emul}n32" 13968 ;; 13969 esac 13970 LD="${LD-ld} -m $emul" 13971 fi 13972 rm -rf conftest* 13973 ;; 13974 13975 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13976 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13977 # Find out what ABI is being produced by ac_compile, and set linker 13978 # options accordingly. Note that the listed cases only cover the 13979 # situations where additional linker options are needed (such as when 13980 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13981 # vice versa); the common cases where no linker options are needed do 13982 # not appear in the list. 13983 echo 'int i;' > conftest.$ac_ext 13984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13985 (eval $ac_compile) 2>&5 13986 ac_status=$? 13987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13988 test $ac_status = 0; }; then 13989 case `$FILECMD conftest.o` in 13990 *32-bit*) 13991 case $host in 13992 x86_64-*kfreebsd*-gnu) 13993 LD="${LD-ld} -m elf_i386_fbsd" 13994 ;; 13995 x86_64-*linux*) 13996 case `$FILECMD conftest.o` in 13997 *x86-64*) 13998 LD="${LD-ld} -m elf32_x86_64" 13999 ;; 14000 *) 14001 LD="${LD-ld} -m elf_i386" 14002 ;; 14003 esac 14004 ;; 14005 powerpc64le-*linux*) 14006 LD="${LD-ld} -m elf32lppclinux" 14007 ;; 14008 powerpc64-*linux*) 14009 LD="${LD-ld} -m elf32ppclinux" 14010 ;; 14011 s390x-*linux*) 14012 LD="${LD-ld} -m elf_s390" 14013 ;; 14014 sparc64-*linux*) 14015 LD="${LD-ld} -m elf32_sparc" 14016 ;; 14017 esac 14018 ;; 14019 *64-bit*) 14020 case $host in 14021 x86_64-*kfreebsd*-gnu) 14022 LD="${LD-ld} -m elf_x86_64_fbsd" 14023 ;; 14024 x86_64-*linux*) 14025 LD="${LD-ld} -m elf_x86_64" 14026 ;; 14027 powerpcle-*linux*) 14028 LD="${LD-ld} -m elf64lppc" 14029 ;; 14030 powerpc-*linux*) 14031 LD="${LD-ld} -m elf64ppc" 14032 ;; 14033 s390*-*linux*|s390*-*tpf*) 14034 LD="${LD-ld} -m elf64_s390" 14035 ;; 14036 sparc*-*linux*) 14037 LD="${LD-ld} -m elf64_sparc" 14038 ;; 14039 esac 14040 ;; 14041 esac 14042 fi 14043 rm -rf conftest* 14044 ;; 14045 14046 *-*-sco3.2v5*) 14047 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14048 SAVE_CFLAGS=$CFLAGS 14049 CFLAGS="$CFLAGS -belf" 14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 14051 printf %s "checking whether the C compiler needs -belf... " >&6; } 14052 if test ${lt_cv_cc_needs_belf+y} 14053 then : 14054 printf %s "(cached) " >&6 14055 else $as_nop 14056 ac_ext=c 14057 ac_cpp='$CPP $CPPFLAGS' 14058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14060 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14061 14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14063 /* end confdefs.h. */ 14064 14065 int 14066 main (void) 14067 { 14068 14069 ; 14070 return 0; 14071 } 14072 _ACEOF 14073 if ac_fn_c_try_link "$LINENO" 14074 then : 14075 lt_cv_cc_needs_belf=yes 14076 else $as_nop 14077 lt_cv_cc_needs_belf=no 14078 fi 14079 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14080 conftest$ac_exeext conftest.$ac_ext 14081 ac_ext=c 14082 ac_cpp='$CPP $CPPFLAGS' 14083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14085 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14086 14087 fi 14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 14089 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 14090 if test yes != "$lt_cv_cc_needs_belf"; then 14091 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14092 CFLAGS=$SAVE_CFLAGS 14093 fi 14094 ;; 14095 *-*solaris*) 14096 # Find out what ABI is being produced by ac_compile, and set linker 14097 # options accordingly. 14098 echo 'int i;' > conftest.$ac_ext 14099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14100 (eval $ac_compile) 2>&5 14101 ac_status=$? 14102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14103 test $ac_status = 0; }; then 14104 case `$FILECMD conftest.o` in 14105 *64-bit*) 14106 case $lt_cv_prog_gnu_ld in 14107 yes*) 14108 case $host in 14109 i?86-*-solaris*|x86_64-*-solaris*) 14110 LD="${LD-ld} -m elf_x86_64" 14111 ;; 14112 sparc*-*-solaris*) 14113 LD="${LD-ld} -m elf64_sparc" 14114 ;; 14115 esac 14116 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14117 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14118 LD=${LD-ld}_sol2 14119 fi 14120 ;; 14121 *) 14122 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14123 LD="${LD-ld} -64" 14124 fi 14125 ;; 14126 esac 14127 ;; 14128 esac 14129 fi 14130 rm -rf conftest* 14131 ;; 14132 esac 14133 14134 need_locks=$enable_libtool_lock 14135 14136 if test -n "$ac_tool_prefix"; then 14137 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 14138 set dummy ${ac_tool_prefix}mt; ac_word=$2 14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14140 printf %s "checking for $ac_word... " >&6; } 14141 if test ${ac_cv_prog_MANIFEST_TOOL+y} 14142 then : 14143 printf %s "(cached) " >&6 14144 else $as_nop 14145 if test -n "$MANIFEST_TOOL"; then 14146 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 14147 else 14148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14149 for as_dir in $PATH 14150 do 14151 IFS=$as_save_IFS 14152 case $as_dir in #((( 14153 '') as_dir=./ ;; 14154 */) ;; 14155 *) as_dir=$as_dir/ ;; 14156 esac 14157 for ac_exec_ext in '' $ac_executable_extensions; do 14158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14159 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 14160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14161 break 2 14162 fi 14163 done 14164 done 14165 IFS=$as_save_IFS 14166 14167 fi 14168 fi 14169 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 14170 if test -n "$MANIFEST_TOOL"; then 14171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 14172 printf "%s\n" "$MANIFEST_TOOL" >&6; } 14173 else 14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14175 printf "%s\n" "no" >&6; } 14176 fi 14177 14178 14179 fi 14180 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 14181 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 14182 # Extract the first word of "mt", so it can be a program name with args. 14183 set dummy mt; ac_word=$2 14184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14185 printf %s "checking for $ac_word... " >&6; } 14186 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 14187 then : 14188 printf %s "(cached) " >&6 14189 else $as_nop 14190 if test -n "$ac_ct_MANIFEST_TOOL"; then 14191 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 14192 else 14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14194 for as_dir in $PATH 14195 do 14196 IFS=$as_save_IFS 14197 case $as_dir in #((( 14198 '') as_dir=./ ;; 14199 */) ;; 14200 *) as_dir=$as_dir/ ;; 14201 esac 14202 for ac_exec_ext in '' $ac_executable_extensions; do 14203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14204 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 14205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14206 break 2 14207 fi 14208 done 14209 done 14210 IFS=$as_save_IFS 14211 14212 fi 14213 fi 14214 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14215 if test -n "$ac_ct_MANIFEST_TOOL"; then 14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14217 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 14218 else 14219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14220 printf "%s\n" "no" >&6; } 14221 fi 14222 14223 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14224 MANIFEST_TOOL=":" 14225 else 14226 case $cross_compiling:$ac_tool_warned in 14227 yes:) 14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14229 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14230 ac_tool_warned=yes ;; 14231 esac 14232 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14233 fi 14234 else 14235 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14236 fi 14237 14238 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14240 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14241 if test ${lt_cv_path_mainfest_tool+y} 14242 then : 14243 printf %s "(cached) " >&6 14244 else $as_nop 14245 lt_cv_path_mainfest_tool=no 14246 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14247 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14248 cat conftest.err >&5 14249 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14250 lt_cv_path_mainfest_tool=yes 14251 fi 14252 rm -f conftest* 14253 fi 14254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14255 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 14256 if test yes != "$lt_cv_path_mainfest_tool"; then 14257 MANIFEST_TOOL=: 14258 fi 14259 14260 14261 14262 14263 14264 14265 case $host_os in 14266 rhapsody* | darwin*) 14267 if test -n "$ac_tool_prefix"; then 14268 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14269 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14271 printf %s "checking for $ac_word... " >&6; } 14272 if test ${ac_cv_prog_DSYMUTIL+y} 14273 then : 14274 printf %s "(cached) " >&6 14275 else $as_nop 14276 if test -n "$DSYMUTIL"; then 14277 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14278 else 14279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14280 for as_dir in $PATH 14281 do 14282 IFS=$as_save_IFS 14283 case $as_dir in #((( 14284 '') as_dir=./ ;; 14285 */) ;; 14286 *) as_dir=$as_dir/ ;; 14287 esac 14288 for ac_exec_ext in '' $ac_executable_extensions; do 14289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14290 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14292 break 2 14293 fi 14294 done 14295 done 14296 IFS=$as_save_IFS 14297 14298 fi 14299 fi 14300 DSYMUTIL=$ac_cv_prog_DSYMUTIL 14301 if test -n "$DSYMUTIL"; then 14302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14303 printf "%s\n" "$DSYMUTIL" >&6; } 14304 else 14305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14306 printf "%s\n" "no" >&6; } 14307 fi 14308 14309 14310 fi 14311 if test -z "$ac_cv_prog_DSYMUTIL"; then 14312 ac_ct_DSYMUTIL=$DSYMUTIL 14313 # Extract the first word of "dsymutil", so it can be a program name with args. 14314 set dummy dsymutil; ac_word=$2 14315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14316 printf %s "checking for $ac_word... " >&6; } 14317 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 14318 then : 14319 printf %s "(cached) " >&6 14320 else $as_nop 14321 if test -n "$ac_ct_DSYMUTIL"; then 14322 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14323 else 14324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14325 for as_dir in $PATH 14326 do 14327 IFS=$as_save_IFS 14328 case $as_dir in #((( 14329 '') as_dir=./ ;; 14330 */) ;; 14331 *) as_dir=$as_dir/ ;; 14332 esac 14333 for ac_exec_ext in '' $ac_executable_extensions; do 14334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14335 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14337 break 2 14338 fi 14339 done 14340 done 14341 IFS=$as_save_IFS 14342 14343 fi 14344 fi 14345 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14346 if test -n "$ac_ct_DSYMUTIL"; then 14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14348 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 14349 else 14350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14351 printf "%s\n" "no" >&6; } 14352 fi 14353 14354 if test "x$ac_ct_DSYMUTIL" = x; then 14355 DSYMUTIL=":" 14356 else 14357 case $cross_compiling:$ac_tool_warned in 14358 yes:) 14359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14361 ac_tool_warned=yes ;; 14362 esac 14363 DSYMUTIL=$ac_ct_DSYMUTIL 14364 fi 14365 else 14366 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14367 fi 14368 14369 if test -n "$ac_tool_prefix"; then 14370 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14371 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14373 printf %s "checking for $ac_word... " >&6; } 14374 if test ${ac_cv_prog_NMEDIT+y} 14375 then : 14376 printf %s "(cached) " >&6 14377 else $as_nop 14378 if test -n "$NMEDIT"; then 14379 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14380 else 14381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14382 for as_dir in $PATH 14383 do 14384 IFS=$as_save_IFS 14385 case $as_dir in #((( 14386 '') as_dir=./ ;; 14387 */) ;; 14388 *) as_dir=$as_dir/ ;; 14389 esac 14390 for ac_exec_ext in '' $ac_executable_extensions; do 14391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14392 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14394 break 2 14395 fi 14396 done 14397 done 14398 IFS=$as_save_IFS 14399 14400 fi 14401 fi 14402 NMEDIT=$ac_cv_prog_NMEDIT 14403 if test -n "$NMEDIT"; then 14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14405 printf "%s\n" "$NMEDIT" >&6; } 14406 else 14407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14408 printf "%s\n" "no" >&6; } 14409 fi 14410 14411 14412 fi 14413 if test -z "$ac_cv_prog_NMEDIT"; then 14414 ac_ct_NMEDIT=$NMEDIT 14415 # Extract the first word of "nmedit", so it can be a program name with args. 14416 set dummy nmedit; ac_word=$2 14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14418 printf %s "checking for $ac_word... " >&6; } 14419 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 14420 then : 14421 printf %s "(cached) " >&6 14422 else $as_nop 14423 if test -n "$ac_ct_NMEDIT"; then 14424 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14425 else 14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14427 for as_dir in $PATH 14428 do 14429 IFS=$as_save_IFS 14430 case $as_dir in #((( 14431 '') as_dir=./ ;; 14432 */) ;; 14433 *) as_dir=$as_dir/ ;; 14434 esac 14435 for ac_exec_ext in '' $ac_executable_extensions; do 14436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14437 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14439 break 2 14440 fi 14441 done 14442 done 14443 IFS=$as_save_IFS 14444 14445 fi 14446 fi 14447 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14448 if test -n "$ac_ct_NMEDIT"; then 14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14450 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 14451 else 14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14453 printf "%s\n" "no" >&6; } 14454 fi 14455 14456 if test "x$ac_ct_NMEDIT" = x; then 14457 NMEDIT=":" 14458 else 14459 case $cross_compiling:$ac_tool_warned in 14460 yes:) 14461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14463 ac_tool_warned=yes ;; 14464 esac 14465 NMEDIT=$ac_ct_NMEDIT 14466 fi 14467 else 14468 NMEDIT="$ac_cv_prog_NMEDIT" 14469 fi 14470 14471 if test -n "$ac_tool_prefix"; then 14472 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14473 set dummy ${ac_tool_prefix}lipo; ac_word=$2 14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14475 printf %s "checking for $ac_word... " >&6; } 14476 if test ${ac_cv_prog_LIPO+y} 14477 then : 14478 printf %s "(cached) " >&6 14479 else $as_nop 14480 if test -n "$LIPO"; then 14481 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14482 else 14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14484 for as_dir in $PATH 14485 do 14486 IFS=$as_save_IFS 14487 case $as_dir in #((( 14488 '') as_dir=./ ;; 14489 */) ;; 14490 *) as_dir=$as_dir/ ;; 14491 esac 14492 for ac_exec_ext in '' $ac_executable_extensions; do 14493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14494 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14496 break 2 14497 fi 14498 done 14499 done 14500 IFS=$as_save_IFS 14501 14502 fi 14503 fi 14504 LIPO=$ac_cv_prog_LIPO 14505 if test -n "$LIPO"; then 14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14507 printf "%s\n" "$LIPO" >&6; } 14508 else 14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14510 printf "%s\n" "no" >&6; } 14511 fi 14512 14513 14514 fi 14515 if test -z "$ac_cv_prog_LIPO"; then 14516 ac_ct_LIPO=$LIPO 14517 # Extract the first word of "lipo", so it can be a program name with args. 14518 set dummy lipo; ac_word=$2 14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14520 printf %s "checking for $ac_word... " >&6; } 14521 if test ${ac_cv_prog_ac_ct_LIPO+y} 14522 then : 14523 printf %s "(cached) " >&6 14524 else $as_nop 14525 if test -n "$ac_ct_LIPO"; then 14526 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14527 else 14528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14529 for as_dir in $PATH 14530 do 14531 IFS=$as_save_IFS 14532 case $as_dir in #((( 14533 '') as_dir=./ ;; 14534 */) ;; 14535 *) as_dir=$as_dir/ ;; 14536 esac 14537 for ac_exec_ext in '' $ac_executable_extensions; do 14538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14539 ac_cv_prog_ac_ct_LIPO="lipo" 14540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14541 break 2 14542 fi 14543 done 14544 done 14545 IFS=$as_save_IFS 14546 14547 fi 14548 fi 14549 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14550 if test -n "$ac_ct_LIPO"; then 14551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14552 printf "%s\n" "$ac_ct_LIPO" >&6; } 14553 else 14554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14555 printf "%s\n" "no" >&6; } 14556 fi 14557 14558 if test "x$ac_ct_LIPO" = x; then 14559 LIPO=":" 14560 else 14561 case $cross_compiling:$ac_tool_warned in 14562 yes:) 14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14564 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14565 ac_tool_warned=yes ;; 14566 esac 14567 LIPO=$ac_ct_LIPO 14568 fi 14569 else 14570 LIPO="$ac_cv_prog_LIPO" 14571 fi 14572 14573 if test -n "$ac_tool_prefix"; then 14574 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14575 set dummy ${ac_tool_prefix}otool; ac_word=$2 14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14577 printf %s "checking for $ac_word... " >&6; } 14578 if test ${ac_cv_prog_OTOOL+y} 14579 then : 14580 printf %s "(cached) " >&6 14581 else $as_nop 14582 if test -n "$OTOOL"; then 14583 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14584 else 14585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14586 for as_dir in $PATH 14587 do 14588 IFS=$as_save_IFS 14589 case $as_dir in #((( 14590 '') as_dir=./ ;; 14591 */) ;; 14592 *) as_dir=$as_dir/ ;; 14593 esac 14594 for ac_exec_ext in '' $ac_executable_extensions; do 14595 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14596 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14598 break 2 14599 fi 14600 done 14601 done 14602 IFS=$as_save_IFS 14603 14604 fi 14605 fi 14606 OTOOL=$ac_cv_prog_OTOOL 14607 if test -n "$OTOOL"; then 14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14609 printf "%s\n" "$OTOOL" >&6; } 14610 else 14611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14612 printf "%s\n" "no" >&6; } 14613 fi 14614 14615 14616 fi 14617 if test -z "$ac_cv_prog_OTOOL"; then 14618 ac_ct_OTOOL=$OTOOL 14619 # Extract the first word of "otool", so it can be a program name with args. 14620 set dummy otool; ac_word=$2 14621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14622 printf %s "checking for $ac_word... " >&6; } 14623 if test ${ac_cv_prog_ac_ct_OTOOL+y} 14624 then : 14625 printf %s "(cached) " >&6 14626 else $as_nop 14627 if test -n "$ac_ct_OTOOL"; then 14628 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14629 else 14630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14631 for as_dir in $PATH 14632 do 14633 IFS=$as_save_IFS 14634 case $as_dir in #((( 14635 '') as_dir=./ ;; 14636 */) ;; 14637 *) as_dir=$as_dir/ ;; 14638 esac 14639 for ac_exec_ext in '' $ac_executable_extensions; do 14640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14641 ac_cv_prog_ac_ct_OTOOL="otool" 14642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14643 break 2 14644 fi 14645 done 14646 done 14647 IFS=$as_save_IFS 14648 14649 fi 14650 fi 14651 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14652 if test -n "$ac_ct_OTOOL"; then 14653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14654 printf "%s\n" "$ac_ct_OTOOL" >&6; } 14655 else 14656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14657 printf "%s\n" "no" >&6; } 14658 fi 14659 14660 if test "x$ac_ct_OTOOL" = x; then 14661 OTOOL=":" 14662 else 14663 case $cross_compiling:$ac_tool_warned in 14664 yes:) 14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14666 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14667 ac_tool_warned=yes ;; 14668 esac 14669 OTOOL=$ac_ct_OTOOL 14670 fi 14671 else 14672 OTOOL="$ac_cv_prog_OTOOL" 14673 fi 14674 14675 if test -n "$ac_tool_prefix"; then 14676 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14677 set dummy ${ac_tool_prefix}otool64; ac_word=$2 14678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14679 printf %s "checking for $ac_word... " >&6; } 14680 if test ${ac_cv_prog_OTOOL64+y} 14681 then : 14682 printf %s "(cached) " >&6 14683 else $as_nop 14684 if test -n "$OTOOL64"; then 14685 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14686 else 14687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14688 for as_dir in $PATH 14689 do 14690 IFS=$as_save_IFS 14691 case $as_dir in #((( 14692 '') as_dir=./ ;; 14693 */) ;; 14694 *) as_dir=$as_dir/ ;; 14695 esac 14696 for ac_exec_ext in '' $ac_executable_extensions; do 14697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14698 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14700 break 2 14701 fi 14702 done 14703 done 14704 IFS=$as_save_IFS 14705 14706 fi 14707 fi 14708 OTOOL64=$ac_cv_prog_OTOOL64 14709 if test -n "$OTOOL64"; then 14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14711 printf "%s\n" "$OTOOL64" >&6; } 14712 else 14713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14714 printf "%s\n" "no" >&6; } 14715 fi 14716 14717 14718 fi 14719 if test -z "$ac_cv_prog_OTOOL64"; then 14720 ac_ct_OTOOL64=$OTOOL64 14721 # Extract the first word of "otool64", so it can be a program name with args. 14722 set dummy otool64; ac_word=$2 14723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14724 printf %s "checking for $ac_word... " >&6; } 14725 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 14726 then : 14727 printf %s "(cached) " >&6 14728 else $as_nop 14729 if test -n "$ac_ct_OTOOL64"; then 14730 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14731 else 14732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14733 for as_dir in $PATH 14734 do 14735 IFS=$as_save_IFS 14736 case $as_dir in #((( 14737 '') as_dir=./ ;; 14738 */) ;; 14739 *) as_dir=$as_dir/ ;; 14740 esac 14741 for ac_exec_ext in '' $ac_executable_extensions; do 14742 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14743 ac_cv_prog_ac_ct_OTOOL64="otool64" 14744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14745 break 2 14746 fi 14747 done 14748 done 14749 IFS=$as_save_IFS 14750 14751 fi 14752 fi 14753 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14754 if test -n "$ac_ct_OTOOL64"; then 14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14756 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 14757 else 14758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14759 printf "%s\n" "no" >&6; } 14760 fi 14761 14762 if test "x$ac_ct_OTOOL64" = x; then 14763 OTOOL64=":" 14764 else 14765 case $cross_compiling:$ac_tool_warned in 14766 yes:) 14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14768 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14769 ac_tool_warned=yes ;; 14770 esac 14771 OTOOL64=$ac_ct_OTOOL64 14772 fi 14773 else 14774 OTOOL64="$ac_cv_prog_OTOOL64" 14775 fi 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14804 printf %s "checking for -single_module linker flag... " >&6; } 14805 if test ${lt_cv_apple_cc_single_mod+y} 14806 then : 14807 printf %s "(cached) " >&6 14808 else $as_nop 14809 lt_cv_apple_cc_single_mod=no 14810 if test -z "$LT_MULTI_MODULE"; then 14811 # By default we will add the -single_module flag. You can override 14812 # by either setting the environment variable LT_MULTI_MODULE 14813 # non-empty at configure time, or by adding -multi_module to the 14814 # link flags. 14815 rm -rf libconftest.dylib* 14816 echo "int foo(void){return 1;}" > conftest.c 14817 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14818 -dynamiclib -Wl,-single_module conftest.c" >&5 14819 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14820 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14821 _lt_result=$? 14822 # If there is a non-empty error log, and "single_module" 14823 # appears in it, assume the flag caused a linker warning 14824 if test -s conftest.err && $GREP single_module conftest.err; then 14825 cat conftest.err >&5 14826 # Otherwise, if the output was created with a 0 exit code from 14827 # the compiler, it worked. 14828 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 14829 lt_cv_apple_cc_single_mod=yes 14830 else 14831 cat conftest.err >&5 14832 fi 14833 rm -rf libconftest.dylib* 14834 rm -f conftest.* 14835 fi 14836 fi 14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14838 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 14839 14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14841 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 14842 if test ${lt_cv_ld_exported_symbols_list+y} 14843 then : 14844 printf %s "(cached) " >&6 14845 else $as_nop 14846 lt_cv_ld_exported_symbols_list=no 14847 save_LDFLAGS=$LDFLAGS 14848 echo "_main" > conftest.sym 14849 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14851 /* end confdefs.h. */ 14852 14853 int 14854 main (void) 14855 { 14856 14857 ; 14858 return 0; 14859 } 14860 _ACEOF 14861 if ac_fn_c_try_link "$LINENO" 14862 then : 14863 lt_cv_ld_exported_symbols_list=yes 14864 else $as_nop 14865 lt_cv_ld_exported_symbols_list=no 14866 fi 14867 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14868 conftest$ac_exeext conftest.$ac_ext 14869 LDFLAGS=$save_LDFLAGS 14870 14871 fi 14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14873 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 14874 14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14876 printf %s "checking for -force_load linker flag... " >&6; } 14877 if test ${lt_cv_ld_force_load+y} 14878 then : 14879 printf %s "(cached) " >&6 14880 else $as_nop 14881 lt_cv_ld_force_load=no 14882 cat > conftest.c << _LT_EOF 14883 int forced_loaded() { return 2;} 14884 _LT_EOF 14885 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14886 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14887 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 14888 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 14889 echo "$RANLIB libconftest.a" >&5 14890 $RANLIB libconftest.a 2>&5 14891 cat > conftest.c << _LT_EOF 14892 int main() { return 0;} 14893 _LT_EOF 14894 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14895 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14896 _lt_result=$? 14897 if test -s conftest.err && $GREP force_load conftest.err; then 14898 cat conftest.err >&5 14899 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 14900 lt_cv_ld_force_load=yes 14901 else 14902 cat conftest.err >&5 14903 fi 14904 rm -f conftest.err libconftest.a conftest conftest.c 14905 rm -rf conftest.dSYM 14906 14907 fi 14908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14909 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 14910 case $host_os in 14911 rhapsody* | darwin1.[012]) 14912 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 14913 darwin1.*) 14914 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14915 darwin*) 14916 case $MACOSX_DEPLOYMENT_TARGET,$host in 14917 10.[012],*|,*powerpc*-darwin[5-8]*) 14918 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 14919 *) 14920 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 14921 esac 14922 ;; 14923 esac 14924 if test yes = "$lt_cv_apple_cc_single_mod"; then 14925 _lt_dar_single_mod='$single_module' 14926 fi 14927 if test yes = "$lt_cv_ld_exported_symbols_list"; then 14928 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 14929 else 14930 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 14931 fi 14932 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 14933 _lt_dsymutil='~$DSYMUTIL $lib || :' 14934 else 14935 _lt_dsymutil= 14936 fi 14937 ;; 14938 esac 14939 14940 # func_munge_path_list VARIABLE PATH 14941 # ----------------------------------- 14942 # VARIABLE is name of variable containing _space_ separated list of 14943 # directories to be munged by the contents of PATH, which is string 14944 # having a format: 14945 # "DIR[:DIR]:" 14946 # string "DIR[ DIR]" will be prepended to VARIABLE 14947 # ":DIR[:DIR]" 14948 # string "DIR[ DIR]" will be appended to VARIABLE 14949 # "DIRP[:DIRP]::[DIRA:]DIRA" 14950 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14951 # "DIRA[ DIRA]" will be appended to VARIABLE 14952 # "DIR[:DIR]" 14953 # VARIABLE will be replaced by "DIR[ DIR]" 14954 func_munge_path_list () 14955 { 14956 case x$2 in 14957 x) 14958 ;; 14959 *:) 14960 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14961 ;; 14962 x:*) 14963 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14964 ;; 14965 *::*) 14966 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14967 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14968 ;; 14969 *) 14970 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14971 ;; 14972 esac 14973 } 14974 14975 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14976 " 14977 if test "x$ac_cv_header_dlfcn_h" = xyes 14978 then : 14979 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 14980 14981 fi 14982 14983 14984 14985 14986 14987 # Set options 14988 14989 14990 14991 enable_dlopen=no 14992 14993 14994 enable_win32_dll=no 14995 14996 14997 # Check whether --enable-shared was given. 14998 if test ${enable_shared+y} 14999 then : 15000 enableval=$enable_shared; p=${PACKAGE-default} 15001 case $enableval in 15002 yes) enable_shared=yes ;; 15003 no) enable_shared=no ;; 15004 *) 15005 enable_shared=no 15006 # Look at the argument we got. We use all the common list separators. 15007 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15008 for pkg in $enableval; do 15009 IFS=$lt_save_ifs 15010 if test "X$pkg" = "X$p"; then 15011 enable_shared=yes 15012 fi 15013 done 15014 IFS=$lt_save_ifs 15015 ;; 15016 esac 15017 else $as_nop 15018 enable_shared=yes 15019 fi 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 # Check whether --with-pic was given. 15032 if test ${with_pic+y} 15033 then : 15034 withval=$with_pic; lt_p=${PACKAGE-default} 15035 case $withval in 15036 yes|no) pic_mode=$withval ;; 15037 *) 15038 pic_mode=default 15039 # Look at the argument we got. We use all the common list separators. 15040 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15041 for lt_pkg in $withval; do 15042 IFS=$lt_save_ifs 15043 if test "X$lt_pkg" = "X$lt_p"; then 15044 pic_mode=yes 15045 fi 15046 done 15047 IFS=$lt_save_ifs 15048 ;; 15049 esac 15050 else $as_nop 15051 pic_mode=default 15052 fi 15053 15054 15055 15056 15057 15058 15059 15060 15061 # Check whether --enable-fast-install was given. 15062 if test ${enable_fast_install+y} 15063 then : 15064 enableval=$enable_fast_install; p=${PACKAGE-default} 15065 case $enableval in 15066 yes) enable_fast_install=yes ;; 15067 no) enable_fast_install=no ;; 15068 *) 15069 enable_fast_install=no 15070 # Look at the argument we got. We use all the common list separators. 15071 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 15072 for pkg in $enableval; do 15073 IFS=$lt_save_ifs 15074 if test "X$pkg" = "X$p"; then 15075 enable_fast_install=yes 15076 fi 15077 done 15078 IFS=$lt_save_ifs 15079 ;; 15080 esac 15081 else $as_nop 15082 enable_fast_install=yes 15083 fi 15084 15085 15086 15087 15088 15089 15090 15091 15092 shared_archive_member_spec= 15093 case $host,$enable_shared in 15094 power*-*-aix[5-9]*,yes) 15095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 15096 printf %s "checking which variant of shared library versioning to provide... " >&6; } 15097 15098 # Check whether --with-aix-soname was given. 15099 if test ${with_aix_soname+y} 15100 then : 15101 withval=$with_aix_soname; case $withval in 15102 aix|svr4|both) 15103 ;; 15104 *) 15105 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 15106 ;; 15107 esac 15108 lt_cv_with_aix_soname=$with_aix_soname 15109 else $as_nop 15110 if test ${lt_cv_with_aix_soname+y} 15111 then : 15112 printf %s "(cached) " >&6 15113 else $as_nop 15114 lt_cv_with_aix_soname=aix 15115 fi 15116 15117 with_aix_soname=$lt_cv_with_aix_soname 15118 fi 15119 15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 15121 printf "%s\n" "$with_aix_soname" >&6; } 15122 if test aix != "$with_aix_soname"; then 15123 # For the AIX way of multilib, we name the shared archive member 15124 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 15125 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 15126 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 15127 # the AIX toolchain works better with OBJECT_MODE set (default 32). 15128 if test 64 = "${OBJECT_MODE-32}"; then 15129 shared_archive_member_spec=shr_64 15130 else 15131 shared_archive_member_spec=shr 15132 fi 15133 fi 15134 ;; 15135 *) 15136 with_aix_soname=aix 15137 ;; 15138 esac 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 # This can be used to rebuild libtool when needed 15150 LIBTOOL_DEPS=$ltmain 15151 15152 # Always use our own libtool. 15153 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 test -z "$LN_S" && LN_S="ln -s" 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 if test -n "${ZSH_VERSION+set}"; then 15200 setopt NO_GLOB_SUBST 15201 fi 15202 15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 15204 printf %s "checking for objdir... " >&6; } 15205 if test ${lt_cv_objdir+y} 15206 then : 15207 printf %s "(cached) " >&6 15208 else $as_nop 15209 rm -f .libs 2>/dev/null 15210 mkdir .libs 2>/dev/null 15211 if test -d .libs; then 15212 lt_cv_objdir=.libs 15213 else 15214 # MS-DOS does not allow filenames that begin with a dot. 15215 lt_cv_objdir=_libs 15216 fi 15217 rmdir .libs 2>/dev/null 15218 fi 15219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 15220 printf "%s\n" "$lt_cv_objdir" >&6; } 15221 objdir=$lt_cv_objdir 15222 15223 15224 15225 15226 15227 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 15228 15229 15230 15231 15232 case $host_os in 15233 aix3*) 15234 # AIX sometimes has problems with the GCC collect2 program. For some 15235 # reason, if we set the COLLECT_NAMES environment variable, the problems 15236 # vanish in a puff of smoke. 15237 if test set != "${COLLECT_NAMES+set}"; then 15238 COLLECT_NAMES= 15239 export COLLECT_NAMES 15240 fi 15241 ;; 15242 esac 15243 15244 # Global variables: 15245 ofile=libtool 15246 can_build_shared=yes 15247 15248 # All known linkers require a '.a' archive for static linking (except MSVC and 15249 # ICC, which need '.lib'). 15250 libext=a 15251 15252 with_gnu_ld=$lt_cv_prog_gnu_ld 15253 15254 old_CC=$CC 15255 old_CFLAGS=$CFLAGS 15256 15257 # Set sane defaults for various variables 15258 test -z "$CC" && CC=cc 15259 test -z "$LTCC" && LTCC=$CC 15260 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 15261 test -z "$LD" && LD=ld 15262 test -z "$ac_objext" && ac_objext=o 15263 15264 func_cc_basename $compiler 15265 cc_basename=$func_cc_basename_result 15266 15267 15268 # Only perform the check for file, if the check method requires it 15269 test -z "$MAGIC_CMD" && MAGIC_CMD=file 15270 case $deplibs_check_method in 15271 file_magic*) 15272 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 15273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 15274 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 15275 if test ${lt_cv_path_MAGIC_CMD+y} 15276 then : 15277 printf %s "(cached) " >&6 15278 else $as_nop 15279 case $MAGIC_CMD in 15280 [\\/*] | ?:[\\/]*) 15281 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15282 ;; 15283 *) 15284 lt_save_MAGIC_CMD=$MAGIC_CMD 15285 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15287 for ac_dir in $ac_dummy; do 15288 IFS=$lt_save_ifs 15289 test -z "$ac_dir" && ac_dir=. 15290 if test -f "$ac_dir/${ac_tool_prefix}file"; then 15291 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 15292 if test -n "$file_magic_test_file"; then 15293 case $deplibs_check_method in 15294 "file_magic "*) 15295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15296 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15298 $EGREP "$file_magic_regex" > /dev/null; then 15299 : 15300 else 15301 cat <<_LT_EOF 1>&2 15302 15303 *** Warning: the command libtool uses to detect shared libraries, 15304 *** $file_magic_cmd, produces output that libtool cannot recognize. 15305 *** The result is that libtool may fail to recognize shared libraries 15306 *** as such. This will affect the creation of libtool libraries that 15307 *** depend on shared libraries, but programs linked with such libtool 15308 *** libraries will work regardless of this problem. Nevertheless, you 15309 *** may want to report the problem to your system manager and/or to 15310 *** bug-libtool@gnu.org 15311 15312 _LT_EOF 15313 fi ;; 15314 esac 15315 fi 15316 break 15317 fi 15318 done 15319 IFS=$lt_save_ifs 15320 MAGIC_CMD=$lt_save_MAGIC_CMD 15321 ;; 15322 esac 15323 fi 15324 15325 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15326 if test -n "$MAGIC_CMD"; then 15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15328 printf "%s\n" "$MAGIC_CMD" >&6; } 15329 else 15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15331 printf "%s\n" "no" >&6; } 15332 fi 15333 15334 15335 15336 15337 15338 if test -z "$lt_cv_path_MAGIC_CMD"; then 15339 if test -n "$ac_tool_prefix"; then 15340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15341 printf %s "checking for file... " >&6; } 15342 if test ${lt_cv_path_MAGIC_CMD+y} 15343 then : 15344 printf %s "(cached) " >&6 15345 else $as_nop 15346 case $MAGIC_CMD in 15347 [\\/*] | ?:[\\/]*) 15348 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 15349 ;; 15350 *) 15351 lt_save_MAGIC_CMD=$MAGIC_CMD 15352 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15353 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15354 for ac_dir in $ac_dummy; do 15355 IFS=$lt_save_ifs 15356 test -z "$ac_dir" && ac_dir=. 15357 if test -f "$ac_dir/file"; then 15358 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 15359 if test -n "$file_magic_test_file"; then 15360 case $deplibs_check_method in 15361 "file_magic "*) 15362 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15363 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15364 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15365 $EGREP "$file_magic_regex" > /dev/null; then 15366 : 15367 else 15368 cat <<_LT_EOF 1>&2 15369 15370 *** Warning: the command libtool uses to detect shared libraries, 15371 *** $file_magic_cmd, produces output that libtool cannot recognize. 15372 *** The result is that libtool may fail to recognize shared libraries 15373 *** as such. This will affect the creation of libtool libraries that 15374 *** depend on shared libraries, but programs linked with such libtool 15375 *** libraries will work regardless of this problem. Nevertheless, you 15376 *** may want to report the problem to your system manager and/or to 15377 *** bug-libtool@gnu.org 15378 15379 _LT_EOF 15380 fi ;; 15381 esac 15382 fi 15383 break 15384 fi 15385 done 15386 IFS=$lt_save_ifs 15387 MAGIC_CMD=$lt_save_MAGIC_CMD 15388 ;; 15389 esac 15390 fi 15391 15392 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 15393 if test -n "$MAGIC_CMD"; then 15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15395 printf "%s\n" "$MAGIC_CMD" >&6; } 15396 else 15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15398 printf "%s\n" "no" >&6; } 15399 fi 15400 15401 15402 else 15403 MAGIC_CMD=: 15404 fi 15405 fi 15406 15407 fi 15408 ;; 15409 esac 15410 15411 # Use C for the default configuration in the libtool script 15412 15413 lt_save_CC=$CC 15414 ac_ext=c 15415 ac_cpp='$CPP $CPPFLAGS' 15416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15418 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15419 15420 15421 # Source file extension for C test sources. 15422 ac_ext=c 15423 15424 # Object file extension for compiled C test sources. 15425 objext=o 15426 objext=$objext 15427 15428 # Code to be used in simple compile tests 15429 lt_simple_compile_test_code="int some_variable = 0;" 15430 15431 # Code to be used in simple link tests 15432 lt_simple_link_test_code='int main(){return(0);}' 15433 15434 15435 15436 15437 15438 15439 15440 # If no C compiler was specified, use CC. 15441 LTCC=${LTCC-"$CC"} 15442 15443 # If no C compiler flags were specified, use CFLAGS. 15444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15445 15446 # Allow CC to be a program name with arguments. 15447 compiler=$CC 15448 15449 # Save the default compiler, since it gets overwritten when the other 15450 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15451 compiler_DEFAULT=$CC 15452 15453 # save warnings/boilerplate of simple test code 15454 ac_outfile=conftest.$ac_objext 15455 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15456 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15457 _lt_compiler_boilerplate=`cat conftest.err` 15458 $RM conftest* 15459 15460 ac_outfile=conftest.$ac_objext 15461 echo "$lt_simple_link_test_code" >conftest.$ac_ext 15462 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15463 _lt_linker_boilerplate=`cat conftest.err` 15464 $RM -r conftest* 15465 15466 15467 if test -n "$compiler"; then 15468 15469 lt_prog_compiler_no_builtin_flag= 15470 15471 if test yes = "$GCC"; then 15472 case $cc_basename in 15473 nvcc*) 15474 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15475 *) 15476 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15477 esac 15478 15479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15480 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15481 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 15482 then : 15483 printf %s "(cached) " >&6 15484 else $as_nop 15485 lt_cv_prog_compiler_rtti_exceptions=no 15486 ac_outfile=conftest.$ac_objext 15487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15488 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 15489 # Insert the option either (1) after the last *FLAGS variable, or 15490 # (2) before a word containing "conftest.", or (3) at the end. 15491 # Note that $ac_compile itself does not contain backslashes and begins 15492 # with a dollar sign (not a hyphen), so the echo should work correctly. 15493 # The option is referenced via a variable to avoid confusing sed. 15494 lt_compile=`echo "$ac_compile" | $SED \ 15495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15497 -e 's:$: $lt_compiler_flag:'` 15498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15499 (eval "$lt_compile" 2>conftest.err) 15500 ac_status=$? 15501 cat conftest.err >&5 15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15503 if (exit $ac_status) && test -s "$ac_outfile"; then 15504 # The compiler can only warn and ignore the option if not recognized 15505 # So say no if there are warnings other than the usual output. 15506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15509 lt_cv_prog_compiler_rtti_exceptions=yes 15510 fi 15511 fi 15512 $RM conftest* 15513 15514 fi 15515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15516 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15517 15518 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 15519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15520 else 15521 : 15522 fi 15523 15524 fi 15525 15526 15527 15528 15529 15530 15531 lt_prog_compiler_wl= 15532 lt_prog_compiler_pic= 15533 lt_prog_compiler_static= 15534 15535 15536 if test yes = "$GCC"; then 15537 lt_prog_compiler_wl='-Wl,' 15538 lt_prog_compiler_static='-static' 15539 15540 case $host_os in 15541 aix*) 15542 # All AIX code is PIC. 15543 if test ia64 = "$host_cpu"; then 15544 # AIX 5 now supports IA64 processor 15545 lt_prog_compiler_static='-Bstatic' 15546 fi 15547 lt_prog_compiler_pic='-fPIC' 15548 ;; 15549 15550 amigaos*) 15551 case $host_cpu in 15552 powerpc) 15553 # see comment about AmigaOS4 .so support 15554 lt_prog_compiler_pic='-fPIC' 15555 ;; 15556 m68k) 15557 # FIXME: we need at least 68020 code to build shared libraries, but 15558 # adding the '-m68020' flag to GCC prevents building anything better, 15559 # like '-m68040'. 15560 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15561 ;; 15562 esac 15563 ;; 15564 15565 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15566 # PIC is the default for these OSes. 15567 ;; 15568 15569 mingw* | cygwin* | pw32* | os2* | cegcc*) 15570 # This hack is so that the source file can tell whether it is being 15571 # built for inclusion in a dll (and should export symbols for example). 15572 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15573 # (--disable-auto-import) libraries 15574 lt_prog_compiler_pic='-DDLL_EXPORT' 15575 case $host_os in 15576 os2*) 15577 lt_prog_compiler_static='$wl-static' 15578 ;; 15579 esac 15580 ;; 15581 15582 darwin* | rhapsody*) 15583 # PIC is the default on this platform 15584 # Common symbols not allowed in MH_DYLIB files 15585 lt_prog_compiler_pic='-fno-common' 15586 ;; 15587 15588 haiku*) 15589 # PIC is the default for Haiku. 15590 # The "-static" flag exists, but is broken. 15591 lt_prog_compiler_static= 15592 ;; 15593 15594 hpux*) 15595 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15596 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15597 # sets the default TLS model and affects inlining. 15598 case $host_cpu in 15599 hppa*64*) 15600 # +Z the default 15601 ;; 15602 *) 15603 lt_prog_compiler_pic='-fPIC' 15604 ;; 15605 esac 15606 ;; 15607 15608 interix[3-9]*) 15609 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15610 # Instead, we relocate shared libraries at runtime. 15611 ;; 15612 15613 msdosdjgpp*) 15614 # Just because we use GCC doesn't mean we suddenly get shared libraries 15615 # on systems that don't support them. 15616 lt_prog_compiler_can_build_shared=no 15617 enable_shared=no 15618 ;; 15619 15620 *nto* | *qnx*) 15621 # QNX uses GNU C++, but need to define -shared option too, otherwise 15622 # it will coredump. 15623 lt_prog_compiler_pic='-fPIC -shared' 15624 ;; 15625 15626 sysv4*MP*) 15627 if test -d /usr/nec; then 15628 lt_prog_compiler_pic=-Kconform_pic 15629 fi 15630 ;; 15631 15632 *) 15633 lt_prog_compiler_pic='-fPIC' 15634 ;; 15635 esac 15636 15637 case $cc_basename in 15638 nvcc*) # Cuda Compiler Driver 2.2 15639 lt_prog_compiler_wl='-Xlinker ' 15640 if test -n "$lt_prog_compiler_pic"; then 15641 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15642 fi 15643 ;; 15644 esac 15645 else 15646 # PORTME Check for flag to pass linker flags through the system compiler. 15647 case $host_os in 15648 aix*) 15649 lt_prog_compiler_wl='-Wl,' 15650 if test ia64 = "$host_cpu"; then 15651 # AIX 5 now supports IA64 processor 15652 lt_prog_compiler_static='-Bstatic' 15653 else 15654 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15655 fi 15656 ;; 15657 15658 darwin* | rhapsody*) 15659 # PIC is the default on this platform 15660 # Common symbols not allowed in MH_DYLIB files 15661 lt_prog_compiler_pic='-fno-common' 15662 case $cc_basename in 15663 nagfor*) 15664 # NAG Fortran compiler 15665 lt_prog_compiler_wl='-Wl,-Wl,,' 15666 lt_prog_compiler_pic='-PIC' 15667 lt_prog_compiler_static='-Bstatic' 15668 ;; 15669 esac 15670 ;; 15671 15672 mingw* | cygwin* | pw32* | os2* | cegcc*) 15673 # This hack is so that the source file can tell whether it is being 15674 # built for inclusion in a dll (and should export symbols for example). 15675 lt_prog_compiler_pic='-DDLL_EXPORT' 15676 case $host_os in 15677 os2*) 15678 lt_prog_compiler_static='$wl-static' 15679 ;; 15680 esac 15681 ;; 15682 15683 hpux9* | hpux10* | hpux11*) 15684 lt_prog_compiler_wl='-Wl,' 15685 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15686 # not for PA HP-UX. 15687 case $host_cpu in 15688 hppa*64*|ia64*) 15689 # +Z the default 15690 ;; 15691 *) 15692 lt_prog_compiler_pic='+Z' 15693 ;; 15694 esac 15695 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15696 lt_prog_compiler_static='$wl-a ${wl}archive' 15697 ;; 15698 15699 irix5* | irix6* | nonstopux*) 15700 lt_prog_compiler_wl='-Wl,' 15701 # PIC (with -KPIC) is the default. 15702 lt_prog_compiler_static='-non_shared' 15703 ;; 15704 15705 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15706 case $cc_basename in 15707 # old Intel for x86_64, which still supported -KPIC. 15708 ecc*) 15709 lt_prog_compiler_wl='-Wl,' 15710 lt_prog_compiler_pic='-KPIC' 15711 lt_prog_compiler_static='-static' 15712 ;; 15713 # icc used to be incompatible with GCC. 15714 # ICC 10 doesn't accept -KPIC any more. 15715 icc* | ifort*) 15716 lt_prog_compiler_wl='-Wl,' 15717 lt_prog_compiler_pic='-fPIC' 15718 lt_prog_compiler_static='-static' 15719 ;; 15720 # Lahey Fortran 8.1. 15721 lf95*) 15722 lt_prog_compiler_wl='-Wl,' 15723 lt_prog_compiler_pic='--shared' 15724 lt_prog_compiler_static='--static' 15725 ;; 15726 nagfor*) 15727 # NAG Fortran compiler 15728 lt_prog_compiler_wl='-Wl,-Wl,,' 15729 lt_prog_compiler_pic='-PIC' 15730 lt_prog_compiler_static='-Bstatic' 15731 ;; 15732 tcc*) 15733 # Fabrice Bellard et al's Tiny C Compiler 15734 lt_prog_compiler_wl='-Wl,' 15735 lt_prog_compiler_pic='-fPIC' 15736 lt_prog_compiler_static='-static' 15737 ;; 15738 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15739 # Portland Group compilers (*not* the Pentium gcc compiler, 15740 # which looks to be a dead project) 15741 lt_prog_compiler_wl='-Wl,' 15742 lt_prog_compiler_pic='-fpic' 15743 lt_prog_compiler_static='-Bstatic' 15744 ;; 15745 ccc*) 15746 lt_prog_compiler_wl='-Wl,' 15747 # All Alpha code is PIC. 15748 lt_prog_compiler_static='-non_shared' 15749 ;; 15750 xl* | bgxl* | bgf* | mpixl*) 15751 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15752 lt_prog_compiler_wl='-Wl,' 15753 lt_prog_compiler_pic='-qpic' 15754 lt_prog_compiler_static='-qstaticlink' 15755 ;; 15756 *) 15757 case `$CC -V 2>&1 | $SED 5q` in 15758 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15759 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15760 lt_prog_compiler_pic='-KPIC' 15761 lt_prog_compiler_static='-Bstatic' 15762 lt_prog_compiler_wl='' 15763 ;; 15764 *Sun\ F* | *Sun*Fortran*) 15765 lt_prog_compiler_pic='-KPIC' 15766 lt_prog_compiler_static='-Bstatic' 15767 lt_prog_compiler_wl='-Qoption ld ' 15768 ;; 15769 *Sun\ C*) 15770 # Sun C 5.9 15771 lt_prog_compiler_pic='-KPIC' 15772 lt_prog_compiler_static='-Bstatic' 15773 lt_prog_compiler_wl='-Wl,' 15774 ;; 15775 *Intel*\ [CF]*Compiler*) 15776 lt_prog_compiler_wl='-Wl,' 15777 lt_prog_compiler_pic='-fPIC' 15778 lt_prog_compiler_static='-static' 15779 ;; 15780 *Portland\ Group*) 15781 lt_prog_compiler_wl='-Wl,' 15782 lt_prog_compiler_pic='-fpic' 15783 lt_prog_compiler_static='-Bstatic' 15784 ;; 15785 esac 15786 ;; 15787 esac 15788 ;; 15789 15790 newsos6) 15791 lt_prog_compiler_pic='-KPIC' 15792 lt_prog_compiler_static='-Bstatic' 15793 ;; 15794 15795 *nto* | *qnx*) 15796 # QNX uses GNU C++, but need to define -shared option too, otherwise 15797 # it will coredump. 15798 lt_prog_compiler_pic='-fPIC -shared' 15799 ;; 15800 15801 osf3* | osf4* | osf5*) 15802 lt_prog_compiler_wl='-Wl,' 15803 # All OSF/1 code is PIC. 15804 lt_prog_compiler_static='-non_shared' 15805 ;; 15806 15807 rdos*) 15808 lt_prog_compiler_static='-non_shared' 15809 ;; 15810 15811 solaris*) 15812 lt_prog_compiler_pic='-KPIC' 15813 lt_prog_compiler_static='-Bstatic' 15814 case $cc_basename in 15815 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15816 lt_prog_compiler_wl='-Qoption ld ';; 15817 *) 15818 lt_prog_compiler_wl='-Wl,';; 15819 esac 15820 ;; 15821 15822 sunos4*) 15823 lt_prog_compiler_wl='-Qoption ld ' 15824 lt_prog_compiler_pic='-PIC' 15825 lt_prog_compiler_static='-Bstatic' 15826 ;; 15827 15828 sysv4 | sysv4.2uw2* | sysv4.3*) 15829 lt_prog_compiler_wl='-Wl,' 15830 lt_prog_compiler_pic='-KPIC' 15831 lt_prog_compiler_static='-Bstatic' 15832 ;; 15833 15834 sysv4*MP*) 15835 if test -d /usr/nec; then 15836 lt_prog_compiler_pic='-Kconform_pic' 15837 lt_prog_compiler_static='-Bstatic' 15838 fi 15839 ;; 15840 15841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15842 lt_prog_compiler_wl='-Wl,' 15843 lt_prog_compiler_pic='-KPIC' 15844 lt_prog_compiler_static='-Bstatic' 15845 ;; 15846 15847 unicos*) 15848 lt_prog_compiler_wl='-Wl,' 15849 lt_prog_compiler_can_build_shared=no 15850 ;; 15851 15852 uts4*) 15853 lt_prog_compiler_pic='-pic' 15854 lt_prog_compiler_static='-Bstatic' 15855 ;; 15856 15857 *) 15858 lt_prog_compiler_can_build_shared=no 15859 ;; 15860 esac 15861 fi 15862 15863 case $host_os in 15864 # For platforms that do not support PIC, -DPIC is meaningless: 15865 *djgpp*) 15866 lt_prog_compiler_pic= 15867 ;; 15868 *) 15869 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15870 ;; 15871 esac 15872 15873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15874 printf %s "checking for $compiler option to produce PIC... " >&6; } 15875 if test ${lt_cv_prog_compiler_pic+y} 15876 then : 15877 printf %s "(cached) " >&6 15878 else $as_nop 15879 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15880 fi 15881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15882 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 15883 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15884 15885 # 15886 # Check to make sure the PIC flag actually works. 15887 # 15888 if test -n "$lt_prog_compiler_pic"; then 15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15890 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15891 if test ${lt_cv_prog_compiler_pic_works+y} 15892 then : 15893 printf %s "(cached) " >&6 15894 else $as_nop 15895 lt_cv_prog_compiler_pic_works=no 15896 ac_outfile=conftest.$ac_objext 15897 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15898 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 15899 # Insert the option either (1) after the last *FLAGS variable, or 15900 # (2) before a word containing "conftest.", or (3) at the end. 15901 # Note that $ac_compile itself does not contain backslashes and begins 15902 # with a dollar sign (not a hyphen), so the echo should work correctly. 15903 # The option is referenced via a variable to avoid confusing sed. 15904 lt_compile=`echo "$ac_compile" | $SED \ 15905 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15906 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15907 -e 's:$: $lt_compiler_flag:'` 15908 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15909 (eval "$lt_compile" 2>conftest.err) 15910 ac_status=$? 15911 cat conftest.err >&5 15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15913 if (exit $ac_status) && test -s "$ac_outfile"; then 15914 # The compiler can only warn and ignore the option if not recognized 15915 # So say no if there are warnings other than the usual output. 15916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15917 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15918 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15919 lt_cv_prog_compiler_pic_works=yes 15920 fi 15921 fi 15922 $RM conftest* 15923 15924 fi 15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15926 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 15927 15928 if test yes = "$lt_cv_prog_compiler_pic_works"; then 15929 case $lt_prog_compiler_pic in 15930 "" | " "*) ;; 15931 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15932 esac 15933 else 15934 lt_prog_compiler_pic= 15935 lt_prog_compiler_can_build_shared=no 15936 fi 15937 15938 fi 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 # 15951 # Check to make sure the static flag actually works. 15952 # 15953 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15955 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15956 if test ${lt_cv_prog_compiler_static_works+y} 15957 then : 15958 printf %s "(cached) " >&6 15959 else $as_nop 15960 lt_cv_prog_compiler_static_works=no 15961 save_LDFLAGS=$LDFLAGS 15962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15963 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15965 # The linker can only warn and ignore the option if not recognized 15966 # So say no if there are warnings 15967 if test -s conftest.err; then 15968 # Append any errors to the config.log. 15969 cat conftest.err 1>&5 15970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15972 if diff conftest.exp conftest.er2 >/dev/null; then 15973 lt_cv_prog_compiler_static_works=yes 15974 fi 15975 else 15976 lt_cv_prog_compiler_static_works=yes 15977 fi 15978 fi 15979 $RM -r conftest* 15980 LDFLAGS=$save_LDFLAGS 15981 15982 fi 15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15984 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 15985 15986 if test yes = "$lt_cv_prog_compiler_static_works"; then 15987 : 15988 else 15989 lt_prog_compiler_static= 15990 fi 15991 15992 15993 15994 15995 15996 15997 15998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15999 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16000 if test ${lt_cv_prog_compiler_c_o+y} 16001 then : 16002 printf %s "(cached) " >&6 16003 else $as_nop 16004 lt_cv_prog_compiler_c_o=no 16005 $RM -r conftest 2>/dev/null 16006 mkdir conftest 16007 cd conftest 16008 mkdir out 16009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16010 16011 lt_compiler_flag="-o out/conftest2.$ac_objext" 16012 # Insert the option either (1) after the last *FLAGS variable, or 16013 # (2) before a word containing "conftest.", or (3) at the end. 16014 # Note that $ac_compile itself does not contain backslashes and begins 16015 # with a dollar sign (not a hyphen), so the echo should work correctly. 16016 lt_compile=`echo "$ac_compile" | $SED \ 16017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16019 -e 's:$: $lt_compiler_flag:'` 16020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16021 (eval "$lt_compile" 2>out/conftest.err) 16022 ac_status=$? 16023 cat out/conftest.err >&5 16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16025 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16026 then 16027 # The compiler can only warn and ignore the option if not recognized 16028 # So say no if there are warnings 16029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16032 lt_cv_prog_compiler_c_o=yes 16033 fi 16034 fi 16035 chmod u+w . 2>&5 16036 $RM conftest* 16037 # SGI C++ compiler will create directory out/ii_files/ for 16038 # template instantiation 16039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16040 $RM out/* && rmdir out 16041 cd .. 16042 $RM -r conftest 16043 $RM conftest* 16044 16045 fi 16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16047 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16048 16049 16050 16051 16052 16053 16054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16055 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16056 if test ${lt_cv_prog_compiler_c_o+y} 16057 then : 16058 printf %s "(cached) " >&6 16059 else $as_nop 16060 lt_cv_prog_compiler_c_o=no 16061 $RM -r conftest 2>/dev/null 16062 mkdir conftest 16063 cd conftest 16064 mkdir out 16065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16066 16067 lt_compiler_flag="-o out/conftest2.$ac_objext" 16068 # Insert the option either (1) after the last *FLAGS variable, or 16069 # (2) before a word containing "conftest.", or (3) at the end. 16070 # Note that $ac_compile itself does not contain backslashes and begins 16071 # with a dollar sign (not a hyphen), so the echo should work correctly. 16072 lt_compile=`echo "$ac_compile" | $SED \ 16073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16075 -e 's:$: $lt_compiler_flag:'` 16076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16077 (eval "$lt_compile" 2>out/conftest.err) 16078 ac_status=$? 16079 cat out/conftest.err >&5 16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16081 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16082 then 16083 # The compiler can only warn and ignore the option if not recognized 16084 # So say no if there are warnings 16085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16088 lt_cv_prog_compiler_c_o=yes 16089 fi 16090 fi 16091 chmod u+w . 2>&5 16092 $RM conftest* 16093 # SGI C++ compiler will create directory out/ii_files/ for 16094 # template instantiation 16095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16096 $RM out/* && rmdir out 16097 cd .. 16098 $RM -r conftest 16099 $RM conftest* 16100 16101 fi 16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 16103 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 16104 16105 16106 16107 16108 hard_links=nottested 16109 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 16110 # do not overwrite the value of need_locks provided by the user 16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16112 printf %s "checking if we can lock with hard links... " >&6; } 16113 hard_links=yes 16114 $RM conftest* 16115 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16116 touch conftest.a 16117 ln conftest.a conftest.b 2>&5 || hard_links=no 16118 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16120 printf "%s\n" "$hard_links" >&6; } 16121 if test no = "$hard_links"; then 16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16123 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16124 need_locks=warn 16125 fi 16126 else 16127 need_locks=no 16128 fi 16129 16130 16131 16132 16133 16134 16135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16136 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16137 16138 runpath_var= 16139 allow_undefined_flag= 16140 always_export_symbols=no 16141 archive_cmds= 16142 archive_expsym_cmds= 16143 compiler_needs_object=no 16144 enable_shared_with_static_runtimes=no 16145 export_dynamic_flag_spec= 16146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16147 hardcode_automatic=no 16148 hardcode_direct=no 16149 hardcode_direct_absolute=no 16150 hardcode_libdir_flag_spec= 16151 hardcode_libdir_separator= 16152 hardcode_minus_L=no 16153 hardcode_shlibpath_var=unsupported 16154 inherit_rpath=no 16155 link_all_deplibs=unknown 16156 module_cmds= 16157 module_expsym_cmds= 16158 old_archive_from_new_cmds= 16159 old_archive_from_expsyms_cmds= 16160 thread_safe_flag_spec= 16161 whole_archive_flag_spec= 16162 # include_expsyms should be a list of space-separated symbols to be *always* 16163 # included in the symbol list 16164 include_expsyms= 16165 # exclude_expsyms can be an extended regexp of symbols to exclude 16166 # it will be wrapped by ' (' and ')$', so one must not match beginning or 16167 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 16168 # as well as any symbol that contains 'd'. 16169 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16170 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16171 # platforms (ab)use it in PIC code, but their linkers get confused if 16172 # the symbol is explicitly referenced. Since portable code cannot 16173 # rely on this symbol name, it's probably fine to never include it in 16174 # preloaded symbol tables. 16175 # Exclude shared library initialization/finalization symbols. 16176 extract_expsyms_cmds= 16177 16178 case $host_os in 16179 cygwin* | mingw* | pw32* | cegcc*) 16180 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 16181 # When not using gcc, we currently assume that we are using 16182 # Microsoft Visual C++ or Intel C++ Compiler. 16183 if test yes != "$GCC"; then 16184 with_gnu_ld=no 16185 fi 16186 ;; 16187 interix*) 16188 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 16189 with_gnu_ld=yes 16190 ;; 16191 openbsd* | bitrig*) 16192 with_gnu_ld=no 16193 ;; 16194 esac 16195 16196 ld_shlibs=yes 16197 16198 # On some targets, GNU ld is compatible enough with the native linker 16199 # that we're better off using the native interface for both. 16200 lt_use_gnu_ld_interface=no 16201 if test yes = "$with_gnu_ld"; then 16202 case $host_os in 16203 aix*) 16204 # The AIX port of GNU ld has always aspired to compatibility 16205 # with the native linker. However, as the warning in the GNU ld 16206 # block says, versions before 2.19.5* couldn't really create working 16207 # shared libraries, regardless of the interface used. 16208 case `$LD -v 2>&1` in 16209 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 16210 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 16211 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 16212 *) 16213 lt_use_gnu_ld_interface=yes 16214 ;; 16215 esac 16216 ;; 16217 *) 16218 lt_use_gnu_ld_interface=yes 16219 ;; 16220 esac 16221 fi 16222 16223 if test yes = "$lt_use_gnu_ld_interface"; then 16224 # If archive_cmds runs LD, not CC, wlarc should be empty 16225 wlarc='$wl' 16226 16227 # Set some defaults for GNU ld with shared library support. These 16228 # are reset later if shared libraries are not supported. Putting them 16229 # here allows them to be overridden if necessary. 16230 runpath_var=LD_RUN_PATH 16231 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16232 export_dynamic_flag_spec='$wl--export-dynamic' 16233 # ancient GNU ld didn't support --whole-archive et. al. 16234 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 16235 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16236 else 16237 whole_archive_flag_spec= 16238 fi 16239 supports_anon_versioning=no 16240 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 16241 *GNU\ gold*) supports_anon_versioning=yes ;; 16242 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16243 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16244 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16245 *\ 2.11.*) ;; # other 2.11 versions 16246 *) supports_anon_versioning=yes ;; 16247 esac 16248 16249 # See if GNU ld supports shared libraries. 16250 case $host_os in 16251 aix[3-9]*) 16252 # On AIX/PPC, the GNU linker is very broken 16253 if test ia64 != "$host_cpu"; then 16254 ld_shlibs=no 16255 cat <<_LT_EOF 1>&2 16256 16257 *** Warning: the GNU linker, at least up to release 2.19, is reported 16258 *** to be unable to reliably create shared libraries on AIX. 16259 *** Therefore, libtool is disabling shared libraries support. If you 16260 *** really care for shared libraries, you may want to install binutils 16261 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 16262 *** You will then need to restart the configuration process. 16263 16264 _LT_EOF 16265 fi 16266 ;; 16267 16268 amigaos*) 16269 case $host_cpu in 16270 powerpc) 16271 # see comment about AmigaOS4 .so support 16272 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16273 archive_expsym_cmds='' 16274 ;; 16275 m68k) 16276 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)' 16277 hardcode_libdir_flag_spec='-L$libdir' 16278 hardcode_minus_L=yes 16279 ;; 16280 esac 16281 ;; 16282 16283 beos*) 16284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16285 allow_undefined_flag=unsupported 16286 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 16287 # support --undefined. This deserves some investigation. FIXME 16288 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16289 else 16290 ld_shlibs=no 16291 fi 16292 ;; 16293 16294 cygwin* | mingw* | pw32* | cegcc*) 16295 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 16296 # as there is no search path for DLLs. 16297 hardcode_libdir_flag_spec='-L$libdir' 16298 export_dynamic_flag_spec='$wl--export-all-symbols' 16299 allow_undefined_flag=unsupported 16300 always_export_symbols=no 16301 enable_shared_with_static_runtimes=yes 16302 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' 16303 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16304 16305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16307 # If the export-symbols file already is a .def file, use it as 16308 # is; otherwise, prepend EXPORTS... 16309 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16310 cp $export_symbols $output_objdir/$soname.def; 16311 else 16312 echo EXPORTS > $output_objdir/$soname.def; 16313 cat $export_symbols >> $output_objdir/$soname.def; 16314 fi~ 16315 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 16316 else 16317 ld_shlibs=no 16318 fi 16319 ;; 16320 16321 haiku*) 16322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16323 link_all_deplibs=yes 16324 ;; 16325 16326 os2*) 16327 hardcode_libdir_flag_spec='-L$libdir' 16328 hardcode_minus_L=yes 16329 allow_undefined_flag=unsupported 16330 shrext_cmds=.dll 16331 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16332 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16333 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16334 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16335 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16336 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16337 emximp -o $lib $output_objdir/$libname.def' 16338 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16339 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16340 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16341 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16342 prefix_cmds="$SED"~ 16343 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16344 prefix_cmds="$prefix_cmds -e 1d"; 16345 fi~ 16346 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16347 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16348 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16349 emximp -o $lib $output_objdir/$libname.def' 16350 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16351 enable_shared_with_static_runtimes=yes 16352 file_list_spec='@' 16353 ;; 16354 16355 interix[3-9]*) 16356 hardcode_direct=no 16357 hardcode_shlibpath_var=no 16358 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 16359 export_dynamic_flag_spec='$wl-E' 16360 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16361 # Instead, shared libraries are loaded at an image base (0x10000000 by 16362 # default) and relocated if they conflict, which is a slow very memory 16363 # consuming and fragmenting process. To avoid this, we pick a random, 16364 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16365 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16366 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16367 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' 16368 ;; 16369 16370 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16371 tmp_diet=no 16372 if test linux-dietlibc = "$host_os"; then 16373 case $cc_basename in 16374 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16375 esac 16376 fi 16377 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16378 && test no = "$tmp_diet" 16379 then 16380 tmp_addflag=' $pic_flag' 16381 tmp_sharedflag='-shared' 16382 case $cc_basename,$host_cpu in 16383 pgcc*) # Portland Group C compiler 16384 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' 16385 tmp_addflag=' $pic_flag' 16386 ;; 16387 pgf77* | pgf90* | pgf95* | pgfortran*) 16388 # Portland Group f77 and f90 compilers 16389 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' 16390 tmp_addflag=' $pic_flag -Mnomain' ;; 16391 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16392 tmp_addflag=' -i_dynamic' ;; 16393 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16394 tmp_addflag=' -i_dynamic -nofor_main' ;; 16395 ifc* | ifort*) # Intel Fortran compiler 16396 tmp_addflag=' -nofor_main' ;; 16397 lf95*) # Lahey Fortran 8.1 16398 whole_archive_flag_spec= 16399 tmp_sharedflag='--shared' ;; 16400 nagfor*) # NAGFOR 5.3 16401 tmp_sharedflag='-Wl,-shared' ;; 16402 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16403 tmp_sharedflag='-qmkshrobj' 16404 tmp_addflag= ;; 16405 nvcc*) # Cuda Compiler Driver 2.2 16406 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' 16407 compiler_needs_object=yes 16408 ;; 16409 esac 16410 case `$CC -V 2>&1 | $SED 5q` in 16411 *Sun\ C*) # Sun C 5.9 16412 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' 16413 compiler_needs_object=yes 16414 tmp_sharedflag='-G' ;; 16415 *Sun\ F*) # Sun Fortran 8.3 16416 tmp_sharedflag='-G' ;; 16417 esac 16418 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16419 16420 if test yes = "$supports_anon_versioning"; then 16421 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16422 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16423 echo "local: *; };" >> $output_objdir/$libname.ver~ 16424 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16425 fi 16426 16427 case $cc_basename in 16428 tcc*) 16429 export_dynamic_flag_spec='-rdynamic' 16430 ;; 16431 xlf* | bgf* | bgxlf* | mpixlf*) 16432 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16433 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16435 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16436 if test yes = "$supports_anon_versioning"; then 16437 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16438 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16439 echo "local: *; };" >> $output_objdir/$libname.ver~ 16440 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16441 fi 16442 ;; 16443 esac 16444 else 16445 ld_shlibs=no 16446 fi 16447 ;; 16448 16449 netbsd*) 16450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16451 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16452 wlarc= 16453 else 16454 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16455 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16456 fi 16457 ;; 16458 16459 solaris*) 16460 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16461 ld_shlibs=no 16462 cat <<_LT_EOF 1>&2 16463 16464 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16465 *** create shared libraries on Solaris systems. Therefore, libtool 16466 *** is disabling shared libraries support. We urge you to upgrade GNU 16467 *** binutils to release 2.9.1 or newer. Another option is to modify 16468 *** your PATH or compiler configuration so that the native linker is 16469 *** used, and then restart. 16470 16471 _LT_EOF 16472 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16473 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16474 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16475 else 16476 ld_shlibs=no 16477 fi 16478 ;; 16479 16480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16481 case `$LD -v 2>&1` in 16482 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16483 ld_shlibs=no 16484 cat <<_LT_EOF 1>&2 16485 16486 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 16487 *** reliably create shared libraries on SCO systems. Therefore, libtool 16488 *** is disabling shared libraries support. We urge you to upgrade GNU 16489 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16490 *** your PATH or compiler configuration so that the native linker is 16491 *** used, and then restart. 16492 16493 _LT_EOF 16494 ;; 16495 *) 16496 # For security reasons, it is highly recommended that you always 16497 # use absolute paths for naming shared libraries, and exclude the 16498 # DT_RUNPATH tag from executables and libraries. But doing so 16499 # requires that you compile everything twice, which is a pain. 16500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16501 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 16502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16503 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16504 else 16505 ld_shlibs=no 16506 fi 16507 ;; 16508 esac 16509 ;; 16510 16511 sunos4*) 16512 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16513 wlarc= 16514 hardcode_direct=yes 16515 hardcode_shlibpath_var=no 16516 ;; 16517 16518 *) 16519 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16521 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 16522 else 16523 ld_shlibs=no 16524 fi 16525 ;; 16526 esac 16527 16528 if test no = "$ld_shlibs"; then 16529 runpath_var= 16530 hardcode_libdir_flag_spec= 16531 export_dynamic_flag_spec= 16532 whole_archive_flag_spec= 16533 fi 16534 else 16535 # PORTME fill in a description of your system's linker (not GNU ld) 16536 case $host_os in 16537 aix3*) 16538 allow_undefined_flag=unsupported 16539 always_export_symbols=yes 16540 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' 16541 # Note: this linker hardcodes the directories in LIBPATH if there 16542 # are no directories specified by -L. 16543 hardcode_minus_L=yes 16544 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 16545 # Neither direct hardcoding nor static linking is supported with a 16546 # broken collect2. 16547 hardcode_direct=unsupported 16548 fi 16549 ;; 16550 16551 aix[4-9]*) 16552 if test ia64 = "$host_cpu"; then 16553 # On IA64, the linker does run time linking by default, so we don't 16554 # have to do anything special. 16555 aix_use_runtimelinking=no 16556 exp_sym_flag='-Bexport' 16557 no_entry_flag= 16558 else 16559 # If we're using GNU nm, then we don't want the "-C" option. 16560 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16561 # Without the "-l" option, or with the "-B" option, AIX nm treats 16562 # weak defined symbols like other global defined symbols, whereas 16563 # GNU nm marks them as "W". 16564 # While the 'weak' keyword is ignored in the Export File, we need 16565 # it in the Import File for the 'aix-soname' feature, so we have 16566 # to replace the "-B" option with "-P" for AIX nm. 16567 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16568 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' 16569 else 16570 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' 16571 fi 16572 aix_use_runtimelinking=no 16573 16574 # Test if we are trying to use run time linking or normal 16575 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16576 # have runtime linking enabled, and use it for executables. 16577 # For shared libraries, we enable/disable runtime linking 16578 # depending on the kind of the shared library created - 16579 # when "with_aix_soname,aix_use_runtimelinking" is: 16580 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 16581 # "aix,yes" lib.so shared, rtl:yes, for executables 16582 # lib.a static archive 16583 # "both,no" lib.so.V(shr.o) shared, rtl:yes 16584 # lib.a(lib.so.V) shared, rtl:no, for executables 16585 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 16586 # lib.a(lib.so.V) shared, rtl:no 16587 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 16588 # lib.a static archive 16589 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16590 for ld_flag in $LDFLAGS; do 16591 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 16592 aix_use_runtimelinking=yes 16593 break 16594 fi 16595 done 16596 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 16597 # With aix-soname=svr4, we create the lib.so.V shared archives only, 16598 # so we don't have lib.a shared libs to link our executables. 16599 # We have to force runtime linking in this case. 16600 aix_use_runtimelinking=yes 16601 LDFLAGS="$LDFLAGS -Wl,-brtl" 16602 fi 16603 ;; 16604 esac 16605 16606 exp_sym_flag='-bexport' 16607 no_entry_flag='-bnoentry' 16608 fi 16609 16610 # When large executables or shared objects are built, AIX ld can 16611 # have problems creating the table of contents. If linking a library 16612 # or program results in "error TOC overflow" add -mminimal-toc to 16613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16615 16616 archive_cmds='' 16617 hardcode_direct=yes 16618 hardcode_direct_absolute=yes 16619 hardcode_libdir_separator=':' 16620 link_all_deplibs=yes 16621 file_list_spec='$wl-f,' 16622 case $with_aix_soname,$aix_use_runtimelinking in 16623 aix,*) ;; # traditional, no import file 16624 svr4,* | *,yes) # use import file 16625 # The Import File defines what to hardcode. 16626 hardcode_direct=no 16627 hardcode_direct_absolute=no 16628 ;; 16629 esac 16630 16631 if test yes = "$GCC"; then 16632 case $host_os in aix4.[012]|aix4.[012].*) 16633 # We only want to do this on AIX 4.2 and lower, the check 16634 # below for broken collect2 doesn't work under 4.3+ 16635 collect2name=`$CC -print-prog-name=collect2` 16636 if test -f "$collect2name" && 16637 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16638 then 16639 # We have reworked collect2 16640 : 16641 else 16642 # We have old collect2 16643 hardcode_direct=unsupported 16644 # It fails to find uninstalled libraries when the uninstalled 16645 # path is not listed in the libpath. Setting hardcode_minus_L 16646 # to unsupported forces relinking 16647 hardcode_minus_L=yes 16648 hardcode_libdir_flag_spec='-L$libdir' 16649 hardcode_libdir_separator= 16650 fi 16651 ;; 16652 esac 16653 shared_flag='-shared' 16654 if test yes = "$aix_use_runtimelinking"; then 16655 shared_flag="$shared_flag "'$wl-G' 16656 fi 16657 # Need to ensure runtime linking is disabled for the traditional 16658 # shared library, or the linker may eventually find shared libraries 16659 # /with/ Import File - we do not want to mix them. 16660 shared_flag_aix='-shared' 16661 shared_flag_svr4='-shared $wl-G' 16662 else 16663 # not using gcc 16664 if test ia64 = "$host_cpu"; then 16665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16666 # chokes on -Wl,-G. The following line is correct: 16667 shared_flag='-G' 16668 else 16669 if test yes = "$aix_use_runtimelinking"; then 16670 shared_flag='$wl-G' 16671 else 16672 shared_flag='$wl-bM:SRE' 16673 fi 16674 shared_flag_aix='$wl-bM:SRE' 16675 shared_flag_svr4='$wl-G' 16676 fi 16677 fi 16678 16679 export_dynamic_flag_spec='$wl-bexpall' 16680 # It seems that -bexpall does not export symbols beginning with 16681 # underscore (_), so it is better to generate a list of symbols to export. 16682 always_export_symbols=yes 16683 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 16684 # Warning - without using the other runtime loading flags (-brtl), 16685 # -berok will link without error, but may produce a broken library. 16686 allow_undefined_flag='-berok' 16687 # Determine the default libpath from the value encoded in an 16688 # empty executable. 16689 if test set = "${lt_cv_aix_libpath+set}"; then 16690 aix_libpath=$lt_cv_aix_libpath 16691 else 16692 if test ${lt_cv_aix_libpath_+y} 16693 then : 16694 printf %s "(cached) " >&6 16695 else $as_nop 16696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16697 /* end confdefs.h. */ 16698 16699 int 16700 main (void) 16701 { 16702 16703 ; 16704 return 0; 16705 } 16706 _ACEOF 16707 if ac_fn_c_try_link "$LINENO" 16708 then : 16709 16710 lt_aix_libpath_sed=' 16711 /Import File Strings/,/^$/ { 16712 /^0/ { 16713 s/^0 *\([^ ]*\) *$/\1/ 16714 p 16715 } 16716 }' 16717 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16718 # Check for a 64-bit object if we didn't find anything. 16719 if test -z "$lt_cv_aix_libpath_"; then 16720 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16721 fi 16722 fi 16723 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16724 conftest$ac_exeext conftest.$ac_ext 16725 if test -z "$lt_cv_aix_libpath_"; then 16726 lt_cv_aix_libpath_=/usr/lib:/lib 16727 fi 16728 16729 fi 16730 16731 aix_libpath=$lt_cv_aix_libpath_ 16732 fi 16733 16734 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16735 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 16736 else 16737 if test ia64 = "$host_cpu"; then 16738 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 16739 allow_undefined_flag="-z nodefs" 16740 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" 16741 else 16742 # Determine the default libpath from the value encoded in an 16743 # empty executable. 16744 if test set = "${lt_cv_aix_libpath+set}"; then 16745 aix_libpath=$lt_cv_aix_libpath 16746 else 16747 if test ${lt_cv_aix_libpath_+y} 16748 then : 16749 printf %s "(cached) " >&6 16750 else $as_nop 16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16752 /* end confdefs.h. */ 16753 16754 int 16755 main (void) 16756 { 16757 16758 ; 16759 return 0; 16760 } 16761 _ACEOF 16762 if ac_fn_c_try_link "$LINENO" 16763 then : 16764 16765 lt_aix_libpath_sed=' 16766 /Import File Strings/,/^$/ { 16767 /^0/ { 16768 s/^0 *\([^ ]*\) *$/\1/ 16769 p 16770 } 16771 }' 16772 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16773 # Check for a 64-bit object if we didn't find anything. 16774 if test -z "$lt_cv_aix_libpath_"; then 16775 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16776 fi 16777 fi 16778 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16779 conftest$ac_exeext conftest.$ac_ext 16780 if test -z "$lt_cv_aix_libpath_"; then 16781 lt_cv_aix_libpath_=/usr/lib:/lib 16782 fi 16783 16784 fi 16785 16786 aix_libpath=$lt_cv_aix_libpath_ 16787 fi 16788 16789 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 16790 # Warning - without using the other run time loading flags, 16791 # -berok will link without error, but may produce a broken library. 16792 no_undefined_flag=' $wl-bernotok' 16793 allow_undefined_flag=' $wl-berok' 16794 if test yes = "$with_gnu_ld"; then 16795 # We only use this code for GNU lds that support --whole-archive. 16796 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 16797 else 16798 # Exported symbols can be pulled into shared objects from archives 16799 whole_archive_flag_spec='$convenience' 16800 fi 16801 archive_cmds_need_lc=yes 16802 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 16803 # -brtl affects multiple linker settings, -berok does not and is overridden later 16804 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 16805 if test svr4 != "$with_aix_soname"; then 16806 # This is similar to how AIX traditionally builds its shared libraries. 16807 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' 16808 fi 16809 if test aix != "$with_aix_soname"; then 16810 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' 16811 else 16812 # used by -dlpreopen to get the symbols 16813 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 16814 fi 16815 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 16816 fi 16817 fi 16818 ;; 16819 16820 amigaos*) 16821 case $host_cpu in 16822 powerpc) 16823 # see comment about AmigaOS4 .so support 16824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16825 archive_expsym_cmds='' 16826 ;; 16827 m68k) 16828 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)' 16829 hardcode_libdir_flag_spec='-L$libdir' 16830 hardcode_minus_L=yes 16831 ;; 16832 esac 16833 ;; 16834 16835 bsdi[45]*) 16836 export_dynamic_flag_spec=-rdynamic 16837 ;; 16838 16839 cygwin* | mingw* | pw32* | cegcc*) 16840 # When not using gcc, we currently assume that we are using 16841 # Microsoft Visual C++ or Intel C++ Compiler. 16842 # hardcode_libdir_flag_spec is actually meaningless, as there is 16843 # no search path for DLLs. 16844 case $cc_basename in 16845 cl* | icl*) 16846 # Native MSVC or ICC 16847 hardcode_libdir_flag_spec=' ' 16848 allow_undefined_flag=unsupported 16849 always_export_symbols=yes 16850 file_list_spec='@' 16851 # Tell ltmain to make .lib files, not .a files. 16852 libext=lib 16853 # Tell ltmain to make .dll files, not .so files. 16854 shrext_cmds=.dll 16855 # FIXME: Setting linknames here is a bad hack. 16856 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16857 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16858 cp "$export_symbols" "$output_objdir/$soname.def"; 16859 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16860 else 16861 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16862 fi~ 16863 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16864 linknames=' 16865 # The linker will not automatically build a static lib if we build a DLL. 16866 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16867 enable_shared_with_static_runtimes=yes 16868 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16869 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16870 # Don't use ranlib 16871 old_postinstall_cmds='chmod 644 $oldlib' 16872 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16873 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16874 case $lt_outputfile in 16875 *.exe|*.EXE) ;; 16876 *) 16877 lt_outputfile=$lt_outputfile.exe 16878 lt_tool_outputfile=$lt_tool_outputfile.exe 16879 ;; 16880 esac~ 16881 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16882 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16883 $RM "$lt_outputfile.manifest"; 16884 fi' 16885 ;; 16886 *) 16887 # Assume MSVC and ICC wrapper 16888 hardcode_libdir_flag_spec=' ' 16889 allow_undefined_flag=unsupported 16890 # Tell ltmain to make .lib files, not .a files. 16891 libext=lib 16892 # Tell ltmain to make .dll files, not .so files. 16893 shrext_cmds=.dll 16894 # FIXME: Setting linknames here is a bad hack. 16895 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16896 # The linker will automatically build a .lib file if we build a DLL. 16897 old_archive_from_new_cmds='true' 16898 # FIXME: Should let the user specify the lib program. 16899 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16900 enable_shared_with_static_runtimes=yes 16901 ;; 16902 esac 16903 ;; 16904 16905 darwin* | rhapsody*) 16906 16907 16908 archive_cmds_need_lc=no 16909 hardcode_direct=no 16910 hardcode_automatic=yes 16911 hardcode_shlibpath_var=unsupported 16912 if test yes = "$lt_cv_ld_force_load"; then 16913 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\"`' 16914 16915 else 16916 whole_archive_flag_spec='' 16917 fi 16918 link_all_deplibs=yes 16919 allow_undefined_flag=$_lt_dar_allow_undefined 16920 case $cc_basename in 16921 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16922 *) _lt_dar_can_shared=$GCC ;; 16923 esac 16924 if test yes = "$_lt_dar_can_shared"; then 16925 output_verbose_link_cmd=func_echo_all 16926 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 16927 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16928 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" 16929 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" 16930 16931 else 16932 ld_shlibs=no 16933 fi 16934 16935 ;; 16936 16937 dgux*) 16938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16939 hardcode_libdir_flag_spec='-L$libdir' 16940 hardcode_shlibpath_var=no 16941 ;; 16942 16943 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16944 # support. Future versions do this automatically, but an explicit c++rt0.o 16945 # does not break anything, and helps significantly (at the cost of a little 16946 # extra space). 16947 freebsd2.2*) 16948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16949 hardcode_libdir_flag_spec='-R$libdir' 16950 hardcode_direct=yes 16951 hardcode_shlibpath_var=no 16952 ;; 16953 16954 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16955 freebsd2.*) 16956 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16957 hardcode_direct=yes 16958 hardcode_minus_L=yes 16959 hardcode_shlibpath_var=no 16960 ;; 16961 16962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16963 freebsd* | dragonfly* | midnightbsd*) 16964 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16965 hardcode_libdir_flag_spec='-R$libdir' 16966 hardcode_direct=yes 16967 hardcode_shlibpath_var=no 16968 ;; 16969 16970 hpux9*) 16971 if test yes = "$GCC"; then 16972 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' 16973 else 16974 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' 16975 fi 16976 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16977 hardcode_libdir_separator=: 16978 hardcode_direct=yes 16979 16980 # hardcode_minus_L: Not really in the search PATH, 16981 # but as the default location of the library. 16982 hardcode_minus_L=yes 16983 export_dynamic_flag_spec='$wl-E' 16984 ;; 16985 16986 hpux10*) 16987 if test yes,no = "$GCC,$with_gnu_ld"; then 16988 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16989 else 16990 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16991 fi 16992 if test no = "$with_gnu_ld"; then 16993 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 16994 hardcode_libdir_separator=: 16995 hardcode_direct=yes 16996 hardcode_direct_absolute=yes 16997 export_dynamic_flag_spec='$wl-E' 16998 # hardcode_minus_L: Not really in the search PATH, 16999 # but as the default location of the library. 17000 hardcode_minus_L=yes 17001 fi 17002 ;; 17003 17004 hpux11*) 17005 if test yes,no = "$GCC,$with_gnu_ld"; then 17006 case $host_cpu in 17007 hppa*64*) 17008 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17009 ;; 17010 ia64*) 17011 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17012 ;; 17013 *) 17014 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17015 ;; 17016 esac 17017 else 17018 case $host_cpu in 17019 hppa*64*) 17020 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17021 ;; 17022 ia64*) 17023 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 17024 ;; 17025 *) 17026 17027 # Older versions of the 11.00 compiler do not understand -b yet 17028 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 17030 printf %s "checking if $CC understands -b... " >&6; } 17031 if test ${lt_cv_prog_compiler__b+y} 17032 then : 17033 printf %s "(cached) " >&6 17034 else $as_nop 17035 lt_cv_prog_compiler__b=no 17036 save_LDFLAGS=$LDFLAGS 17037 LDFLAGS="$LDFLAGS -b" 17038 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17040 # The linker can only warn and ignore the option if not recognized 17041 # So say no if there are warnings 17042 if test -s conftest.err; then 17043 # Append any errors to the config.log. 17044 cat conftest.err 1>&5 17045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17047 if diff conftest.exp conftest.er2 >/dev/null; then 17048 lt_cv_prog_compiler__b=yes 17049 fi 17050 else 17051 lt_cv_prog_compiler__b=yes 17052 fi 17053 fi 17054 $RM -r conftest* 17055 LDFLAGS=$save_LDFLAGS 17056 17057 fi 17058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 17059 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 17060 17061 if test yes = "$lt_cv_prog_compiler__b"; then 17062 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17063 else 17064 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17065 fi 17066 17067 ;; 17068 esac 17069 fi 17070 if test no = "$with_gnu_ld"; then 17071 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 17072 hardcode_libdir_separator=: 17073 17074 case $host_cpu in 17075 hppa*64*|ia64*) 17076 hardcode_direct=no 17077 hardcode_shlibpath_var=no 17078 ;; 17079 *) 17080 hardcode_direct=yes 17081 hardcode_direct_absolute=yes 17082 export_dynamic_flag_spec='$wl-E' 17083 17084 # hardcode_minus_L: Not really in the search PATH, 17085 # but as the default location of the library. 17086 hardcode_minus_L=yes 17087 ;; 17088 esac 17089 fi 17090 ;; 17091 17092 irix5* | irix6* | nonstopux*) 17093 if test yes = "$GCC"; then 17094 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' 17095 # Try to use the -exported_symbol ld option, if it does not 17096 # work, assume that -exports_file does not work either and 17097 # implicitly export all symbols. 17098 # This should be the same for all languages, so no per-tag cache variable. 17099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 17100 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 17101 if test ${lt_cv_irix_exported_symbol+y} 17102 then : 17103 printf %s "(cached) " >&6 17104 else $as_nop 17105 save_LDFLAGS=$LDFLAGS 17106 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17108 /* end confdefs.h. */ 17109 int foo (void) { return 0; } 17110 _ACEOF 17111 if ac_fn_c_try_link "$LINENO" 17112 then : 17113 lt_cv_irix_exported_symbol=yes 17114 else $as_nop 17115 lt_cv_irix_exported_symbol=no 17116 fi 17117 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17118 conftest$ac_exeext conftest.$ac_ext 17119 LDFLAGS=$save_LDFLAGS 17120 fi 17121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 17122 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 17123 if test yes = "$lt_cv_irix_exported_symbol"; then 17124 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' 17125 fi 17126 else 17127 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' 17128 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' 17129 fi 17130 archive_cmds_need_lc='no' 17131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17132 hardcode_libdir_separator=: 17133 inherit_rpath=yes 17134 link_all_deplibs=yes 17135 ;; 17136 17137 linux*) 17138 case $cc_basename in 17139 tcc*) 17140 # Fabrice Bellard et al's Tiny C Compiler 17141 ld_shlibs=yes 17142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17143 ;; 17144 esac 17145 ;; 17146 17147 netbsd*) 17148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17150 else 17151 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17152 fi 17153 hardcode_libdir_flag_spec='-R$libdir' 17154 hardcode_direct=yes 17155 hardcode_shlibpath_var=no 17156 ;; 17157 17158 newsos6) 17159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17160 hardcode_direct=yes 17161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17162 hardcode_libdir_separator=: 17163 hardcode_shlibpath_var=no 17164 ;; 17165 17166 *nto* | *qnx*) 17167 ;; 17168 17169 openbsd* | bitrig*) 17170 if test -f /usr/libexec/ld.so; then 17171 hardcode_direct=yes 17172 hardcode_shlibpath_var=no 17173 hardcode_direct_absolute=yes 17174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17176 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 17177 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17178 export_dynamic_flag_spec='$wl-E' 17179 else 17180 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17181 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 17182 fi 17183 else 17184 ld_shlibs=no 17185 fi 17186 ;; 17187 17188 os2*) 17189 hardcode_libdir_flag_spec='-L$libdir' 17190 hardcode_minus_L=yes 17191 allow_undefined_flag=unsupported 17192 shrext_cmds=.dll 17193 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17194 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17195 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17196 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17197 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 17198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17199 emximp -o $lib $output_objdir/$libname.def' 17200 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 17201 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 17202 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 17203 $ECHO EXPORTS >> $output_objdir/$libname.def~ 17204 prefix_cmds="$SED"~ 17205 if test EXPORTS = "`$SED 1q $export_symbols`"; then 17206 prefix_cmds="$prefix_cmds -e 1d"; 17207 fi~ 17208 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 17209 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 17210 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 17211 emximp -o $lib $output_objdir/$libname.def' 17212 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 17213 enable_shared_with_static_runtimes=yes 17214 file_list_spec='@' 17215 ;; 17216 17217 osf3*) 17218 if test yes = "$GCC"; then 17219 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17220 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' 17221 else 17222 allow_undefined_flag=' -expect_unresolved \*' 17223 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' 17224 fi 17225 archive_cmds_need_lc='no' 17226 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17227 hardcode_libdir_separator=: 17228 ;; 17229 17230 osf4* | osf5*) # as osf3* with the addition of -msym flag 17231 if test yes = "$GCC"; then 17232 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 17233 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' 17234 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 17235 else 17236 allow_undefined_flag=' -expect_unresolved \*' 17237 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' 17238 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~ 17239 $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' 17240 17241 # Both c and cxx compiler support -rpath directly 17242 hardcode_libdir_flag_spec='-rpath $libdir' 17243 fi 17244 archive_cmds_need_lc='no' 17245 hardcode_libdir_separator=: 17246 ;; 17247 17248 solaris*) 17249 no_undefined_flag=' -z defs' 17250 if test yes = "$GCC"; then 17251 wlarc='$wl' 17252 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 17253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17254 $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' 17255 else 17256 case `$CC -V 2>&1` in 17257 *"Compilers 5.0"*) 17258 wlarc='' 17259 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 17260 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17261 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 17262 ;; 17263 *) 17264 wlarc='$wl' 17265 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 17266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 17267 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 17268 ;; 17269 esac 17270 fi 17271 hardcode_libdir_flag_spec='-R$libdir' 17272 hardcode_shlibpath_var=no 17273 case $host_os in 17274 solaris2.[0-5] | solaris2.[0-5].*) ;; 17275 *) 17276 # The compiler driver will combine and reorder linker options, 17277 # but understands '-z linker_flag'. GCC discards it without '$wl', 17278 # but is careful enough not to reorder. 17279 # Supported since Solaris 2.6 (maybe 2.5.1?) 17280 if test yes = "$GCC"; then 17281 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 17282 else 17283 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 17284 fi 17285 ;; 17286 esac 17287 link_all_deplibs=yes 17288 ;; 17289 17290 sunos4*) 17291 if test sequent = "$host_vendor"; then 17292 # Use $CC to link under sequent, because it throws in some extra .o 17293 # files that make .init and .fini sections work. 17294 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17295 else 17296 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17297 fi 17298 hardcode_libdir_flag_spec='-L$libdir' 17299 hardcode_direct=yes 17300 hardcode_minus_L=yes 17301 hardcode_shlibpath_var=no 17302 ;; 17303 17304 sysv4) 17305 case $host_vendor in 17306 sni) 17307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17308 hardcode_direct=yes # is this really true??? 17309 ;; 17310 siemens) 17311 ## LD is ld it makes a PLAMLIB 17312 ## CC just makes a GrossModule. 17313 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17314 reload_cmds='$CC -r -o $output$reload_objs' 17315 hardcode_direct=no 17316 ;; 17317 motorola) 17318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17319 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 17320 ;; 17321 esac 17322 runpath_var='LD_RUN_PATH' 17323 hardcode_shlibpath_var=no 17324 ;; 17325 17326 sysv4.3*) 17327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17328 hardcode_shlibpath_var=no 17329 export_dynamic_flag_spec='-Bexport' 17330 ;; 17331 17332 sysv4*MP*) 17333 if test -d /usr/nec; then 17334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17335 hardcode_shlibpath_var=no 17336 runpath_var=LD_RUN_PATH 17337 hardcode_runpath_var=yes 17338 ld_shlibs=yes 17339 fi 17340 ;; 17341 17342 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 17343 no_undefined_flag='$wl-z,text' 17344 archive_cmds_need_lc=no 17345 hardcode_shlibpath_var=no 17346 runpath_var='LD_RUN_PATH' 17347 17348 if test yes = "$GCC"; then 17349 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17350 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17351 else 17352 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17353 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17354 fi 17355 ;; 17356 17357 sysv5* | sco3.2v5* | sco5v6*) 17358 # Note: We CANNOT use -z defs as we might desire, because we do not 17359 # link with -lc, and that would cause any symbols used from libc to 17360 # always be unresolved, which means just about no library would 17361 # ever link correctly. If we're not using GNU ld we use -z text 17362 # though, which does catch some bad symbols but isn't as heavy-handed 17363 # as -z defs. 17364 no_undefined_flag='$wl-z,text' 17365 allow_undefined_flag='$wl-z,nodefs' 17366 archive_cmds_need_lc=no 17367 hardcode_shlibpath_var=no 17368 hardcode_libdir_flag_spec='$wl-R,$libdir' 17369 hardcode_libdir_separator=':' 17370 link_all_deplibs=yes 17371 export_dynamic_flag_spec='$wl-Bexport' 17372 runpath_var='LD_RUN_PATH' 17373 17374 if test yes = "$GCC"; then 17375 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17376 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17377 else 17378 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17379 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 17380 fi 17381 ;; 17382 17383 uts4*) 17384 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17385 hardcode_libdir_flag_spec='-L$libdir' 17386 hardcode_shlibpath_var=no 17387 ;; 17388 17389 *) 17390 ld_shlibs=no 17391 ;; 17392 esac 17393 17394 if test sni = "$host_vendor"; then 17395 case $host in 17396 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 17397 export_dynamic_flag_spec='$wl-Blargedynsym' 17398 ;; 17399 esac 17400 fi 17401 fi 17402 17403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 17404 printf "%s\n" "$ld_shlibs" >&6; } 17405 test no = "$ld_shlibs" && can_build_shared=no 17406 17407 with_gnu_ld=$with_gnu_ld 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 # 17424 # Do we need to explicitly link libc? 17425 # 17426 case "x$archive_cmds_need_lc" in 17427 x|xyes) 17428 # Assume -lc should be added 17429 archive_cmds_need_lc=yes 17430 17431 if test yes,yes = "$GCC,$enable_shared"; then 17432 case $archive_cmds in 17433 *'~'*) 17434 # FIXME: we may have to deal with multi-command sequences. 17435 ;; 17436 '$CC '*) 17437 # Test whether the compiler implicitly links with -lc since on some 17438 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17439 # to ld, don't add -lc before -lgcc. 17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17441 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 17442 if test ${lt_cv_archive_cmds_need_lc+y} 17443 then : 17444 printf %s "(cached) " >&6 17445 else $as_nop 17446 $RM conftest* 17447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17448 17449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17450 (eval $ac_compile) 2>&5 17451 ac_status=$? 17452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17453 test $ac_status = 0; } 2>conftest.err; then 17454 soname=conftest 17455 lib=conftest 17456 libobjs=conftest.$ac_objext 17457 deplibs= 17458 wl=$lt_prog_compiler_wl 17459 pic_flag=$lt_prog_compiler_pic 17460 compiler_flags=-v 17461 linker_flags=-v 17462 verstring= 17463 output_objdir=. 17464 libname=conftest 17465 lt_save_allow_undefined_flag=$allow_undefined_flag 17466 allow_undefined_flag= 17467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17468 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17469 ac_status=$? 17470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17471 test $ac_status = 0; } 17472 then 17473 lt_cv_archive_cmds_need_lc=no 17474 else 17475 lt_cv_archive_cmds_need_lc=yes 17476 fi 17477 allow_undefined_flag=$lt_save_allow_undefined_flag 17478 else 17479 cat conftest.err 1>&5 17480 fi 17481 $RM conftest* 17482 17483 fi 17484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17485 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 17486 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17487 ;; 17488 esac 17489 fi 17490 ;; 17491 esac 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17645 printf %s "checking dynamic linker characteristics... " >&6; } 17646 17647 if test yes = "$GCC"; then 17648 case $host_os in 17649 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 17650 *) lt_awk_arg='/^libraries:/' ;; 17651 esac 17652 case $host_os in 17653 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 17654 *) lt_sed_strip_eq='s|=/|/|g' ;; 17655 esac 17656 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17657 case $lt_search_path_spec in 17658 *\;*) 17659 # if the path contains ";" then we assume it to be the separator 17660 # otherwise default to the standard path separator (i.e. ":") - it is 17661 # assumed that no part of a normal pathname contains ";" but that should 17662 # okay in the real world where ";" in dirpaths is itself problematic. 17663 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17664 ;; 17665 *) 17666 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17667 ;; 17668 esac 17669 # Ok, now we have the path, separated by spaces, we can step through it 17670 # and add multilib dir if necessary... 17671 lt_tmp_lt_search_path_spec= 17672 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17673 # ...but if some path component already ends with the multilib dir we assume 17674 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 17675 case "$lt_multi_os_dir; $lt_search_path_spec " in 17676 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 17677 lt_multi_os_dir= 17678 ;; 17679 esac 17680 for lt_sys_path in $lt_search_path_spec; do 17681 if test -d "$lt_sys_path$lt_multi_os_dir"; then 17682 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 17683 elif test -n "$lt_multi_os_dir"; then 17684 test -d "$lt_sys_path" && \ 17685 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17686 fi 17687 done 17688 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17689 BEGIN {RS = " "; FS = "/|\n";} { 17690 lt_foo = ""; 17691 lt_count = 0; 17692 for (lt_i = NF; lt_i > 0; lt_i--) { 17693 if ($lt_i != "" && $lt_i != ".") { 17694 if ($lt_i == "..") { 17695 lt_count++; 17696 } else { 17697 if (lt_count == 0) { 17698 lt_foo = "/" $lt_i lt_foo; 17699 } else { 17700 lt_count--; 17701 } 17702 } 17703 } 17704 } 17705 if (lt_foo != "") { lt_freq[lt_foo]++; } 17706 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17707 }'` 17708 # AWK program above erroneously prepends '/' to C:/dos/paths 17709 # for these hosts. 17710 case $host_os in 17711 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17712 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 17713 esac 17714 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17715 else 17716 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17717 fi 17718 library_names_spec= 17719 libname_spec='lib$name' 17720 soname_spec= 17721 shrext_cmds=.so 17722 postinstall_cmds= 17723 postuninstall_cmds= 17724 finish_cmds= 17725 finish_eval= 17726 shlibpath_var= 17727 shlibpath_overrides_runpath=unknown 17728 version_type=none 17729 dynamic_linker="$host_os ld.so" 17730 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17731 need_lib_prefix=unknown 17732 hardcode_into_libs=no 17733 17734 # when you set need_version to no, make sure it does not cause -set_version 17735 # flags to be left without arguments 17736 need_version=unknown 17737 17738 17739 17740 case $host_os in 17741 aix3*) 17742 version_type=linux # correct to gnu/linux during the next big refactor 17743 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17744 shlibpath_var=LIBPATH 17745 17746 # AIX 3 has no versioning support, so we append a major version to the name. 17747 soname_spec='$libname$release$shared_ext$major' 17748 ;; 17749 17750 aix[4-9]*) 17751 version_type=linux # correct to gnu/linux during the next big refactor 17752 need_lib_prefix=no 17753 need_version=no 17754 hardcode_into_libs=yes 17755 if test ia64 = "$host_cpu"; then 17756 # AIX 5 supports IA64 17757 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17758 shlibpath_var=LD_LIBRARY_PATH 17759 else 17760 # With GCC up to 2.95.x, collect2 would create an import file 17761 # for dependence libraries. The import file would start with 17762 # the line '#! .'. This would cause the generated library to 17763 # depend on '.', always an invalid library. This was fixed in 17764 # development snapshots of GCC prior to 3.0. 17765 case $host_os in 17766 aix4 | aix4.[01] | aix4.[01].*) 17767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17768 echo ' yes ' 17769 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17770 : 17771 else 17772 can_build_shared=no 17773 fi 17774 ;; 17775 esac 17776 # Using Import Files as archive members, it is possible to support 17777 # filename-based versioning of shared library archives on AIX. While 17778 # this would work for both with and without runtime linking, it will 17779 # prevent static linking of such archives. So we do filename-based 17780 # shared library versioning with .so extension only, which is used 17781 # when both runtime linking and shared linking is enabled. 17782 # Unfortunately, runtime linking may impact performance, so we do 17783 # not want this to be the default eventually. Also, we use the 17784 # versioned .so libs for executables only if there is the -brtl 17785 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17786 # To allow for filename-based versioning support, we need to create 17787 # libNAME.so.V as an archive file, containing: 17788 # *) an Import File, referring to the versioned filename of the 17789 # archive as well as the shared archive member, telling the 17790 # bitwidth (32 or 64) of that shared object, and providing the 17791 # list of exported symbols of that shared object, eventually 17792 # decorated with the 'weak' keyword 17793 # *) the shared object with the F_LOADONLY flag set, to really avoid 17794 # it being seen by the linker. 17795 # At run time we better use the real file rather than another symlink, 17796 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17797 17798 case $with_aix_soname,$aix_use_runtimelinking in 17799 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17800 # soname into executable. Probably we can add versioning support to 17801 # collect2, so additional links can be useful in future. 17802 aix,yes) # traditional libtool 17803 dynamic_linker='AIX unversionable lib.so' 17804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17805 # instead of lib<name>.a to let people know that these are not 17806 # typical AIX shared libraries. 17807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17808 ;; 17809 aix,no) # traditional AIX only 17810 dynamic_linker='AIX lib.a(lib.so.V)' 17811 # We preserve .a as extension for shared libraries through AIX4.2 17812 # and later when we are not doing run time linking. 17813 library_names_spec='$libname$release.a $libname.a' 17814 soname_spec='$libname$release$shared_ext$major' 17815 ;; 17816 svr4,*) # full svr4 only 17817 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17818 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17819 # We do not specify a path in Import Files, so LIBPATH fires. 17820 shlibpath_overrides_runpath=yes 17821 ;; 17822 *,yes) # both, prefer svr4 17823 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17824 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17825 # unpreferred sharedlib libNAME.a needs extra handling 17826 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"' 17827 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"' 17828 # We do not specify a path in Import Files, so LIBPATH fires. 17829 shlibpath_overrides_runpath=yes 17830 ;; 17831 *,no) # both, prefer aix 17832 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17833 library_names_spec='$libname$release.a $libname.a' 17834 soname_spec='$libname$release$shared_ext$major' 17835 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17836 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)' 17837 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"' 17838 ;; 17839 esac 17840 shlibpath_var=LIBPATH 17841 fi 17842 ;; 17843 17844 amigaos*) 17845 case $host_cpu in 17846 powerpc) 17847 # Since July 2007 AmigaOS4 officially supports .so libraries. 17848 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17850 ;; 17851 m68k) 17852 library_names_spec='$libname.ixlibrary $libname.a' 17853 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17854 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' 17855 ;; 17856 esac 17857 ;; 17858 17859 beos*) 17860 library_names_spec='$libname$shared_ext' 17861 dynamic_linker="$host_os ld.so" 17862 shlibpath_var=LIBRARY_PATH 17863 ;; 17864 17865 bsdi[45]*) 17866 version_type=linux # correct to gnu/linux during the next big refactor 17867 need_version=no 17868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17869 soname_spec='$libname$release$shared_ext$major' 17870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17871 shlibpath_var=LD_LIBRARY_PATH 17872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17874 # the default ld.so.conf also contains /usr/contrib/lib and 17875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17876 # libtool to hard-code these into programs 17877 ;; 17878 17879 cygwin* | mingw* | pw32* | cegcc*) 17880 version_type=windows 17881 shrext_cmds=.dll 17882 need_version=no 17883 need_lib_prefix=no 17884 17885 case $GCC,$cc_basename in 17886 yes,*) 17887 # gcc 17888 library_names_spec='$libname.dll.a' 17889 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17890 postinstall_cmds='base_file=`basename \$file`~ 17891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17892 dldir=$destdir/`dirname \$dlpath`~ 17893 test -d \$dldir || mkdir -p \$dldir~ 17894 $install_prog $dir/$dlname \$dldir/$dlname~ 17895 chmod a+x \$dldir/$dlname~ 17896 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17897 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17898 fi' 17899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17900 dlpath=$dir/\$dldll~ 17901 $RM \$dlpath' 17902 shlibpath_overrides_runpath=yes 17903 17904 case $host_os in 17905 cygwin*) 17906 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17907 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17908 17909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17910 ;; 17911 mingw* | cegcc*) 17912 # MinGW DLLs use traditional 'lib' prefix 17913 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17914 ;; 17915 pw32*) 17916 # pw32 DLLs use 'pw' prefix rather than 'lib' 17917 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17918 ;; 17919 esac 17920 dynamic_linker='Win32 ld.exe' 17921 ;; 17922 17923 *,cl* | *,icl*) 17924 # Native MSVC or ICC 17925 libname_spec='$name' 17926 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17927 library_names_spec='$libname.dll.lib' 17928 17929 case $build_os in 17930 mingw*) 17931 sys_lib_search_path_spec= 17932 lt_save_ifs=$IFS 17933 IFS=';' 17934 for lt_path in $LIB 17935 do 17936 IFS=$lt_save_ifs 17937 # Let DOS variable expansion print the short 8.3 style file name. 17938 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17939 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17940 done 17941 IFS=$lt_save_ifs 17942 # Convert to MSYS style. 17943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17944 ;; 17945 cygwin*) 17946 # Convert to unix form, then to dos form, then back to unix form 17947 # but this time dos style (no spaces!) so that the unix form looks 17948 # like /cygdrive/c/PROGRA~1:/cygdr... 17949 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17950 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17951 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17952 ;; 17953 *) 17954 sys_lib_search_path_spec=$LIB 17955 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17956 # It is most probably a Windows format PATH. 17957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17958 else 17959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17960 fi 17961 # FIXME: find the short name or the path components, as spaces are 17962 # common. (e.g. "Program Files" -> "PROGRA~1") 17963 ;; 17964 esac 17965 17966 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17967 postinstall_cmds='base_file=`basename \$file`~ 17968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17969 dldir=$destdir/`dirname \$dlpath`~ 17970 test -d \$dldir || mkdir -p \$dldir~ 17971 $install_prog $dir/$dlname \$dldir/$dlname' 17972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17973 dlpath=$dir/\$dldll~ 17974 $RM \$dlpath' 17975 shlibpath_overrides_runpath=yes 17976 dynamic_linker='Win32 link.exe' 17977 ;; 17978 17979 *) 17980 # Assume MSVC and ICC wrapper 17981 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 17982 dynamic_linker='Win32 ld.exe' 17983 ;; 17984 esac 17985 # FIXME: first we should search . and the directory the executable is in 17986 shlibpath_var=PATH 17987 ;; 17988 17989 darwin* | rhapsody*) 17990 dynamic_linker="$host_os dyld" 17991 version_type=darwin 17992 need_lib_prefix=no 17993 need_version=no 17994 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 17995 soname_spec='$libname$release$major$shared_ext' 17996 shlibpath_overrides_runpath=yes 17997 shlibpath_var=DYLD_LIBRARY_PATH 17998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17999 18000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 18001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18002 ;; 18003 18004 dgux*) 18005 version_type=linux # correct to gnu/linux during the next big refactor 18006 need_lib_prefix=no 18007 need_version=no 18008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18009 soname_spec='$libname$release$shared_ext$major' 18010 shlibpath_var=LD_LIBRARY_PATH 18011 ;; 18012 18013 freebsd* | dragonfly* | midnightbsd*) 18014 # DragonFly does not have aout. When/if they implement a new 18015 # versioning mechanism, adjust this. 18016 if test -x /usr/bin/objformat; then 18017 objformat=`/usr/bin/objformat` 18018 else 18019 case $host_os in 18020 freebsd[23].*) objformat=aout ;; 18021 *) objformat=elf ;; 18022 esac 18023 fi 18024 version_type=freebsd-$objformat 18025 case $version_type in 18026 freebsd-elf*) 18027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18028 soname_spec='$libname$release$shared_ext$major' 18029 need_version=no 18030 need_lib_prefix=no 18031 ;; 18032 freebsd-*) 18033 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18034 need_version=yes 18035 ;; 18036 esac 18037 shlibpath_var=LD_LIBRARY_PATH 18038 case $host_os in 18039 freebsd2.*) 18040 shlibpath_overrides_runpath=yes 18041 ;; 18042 freebsd3.[01]* | freebsdelf3.[01]*) 18043 shlibpath_overrides_runpath=yes 18044 hardcode_into_libs=yes 18045 ;; 18046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18048 shlibpath_overrides_runpath=no 18049 hardcode_into_libs=yes 18050 ;; 18051 *) # from 4.6 on, and DragonFly 18052 shlibpath_overrides_runpath=yes 18053 hardcode_into_libs=yes 18054 ;; 18055 esac 18056 ;; 18057 18058 haiku*) 18059 version_type=linux # correct to gnu/linux during the next big refactor 18060 need_lib_prefix=no 18061 need_version=no 18062 dynamic_linker="$host_os runtime_loader" 18063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18064 soname_spec='$libname$release$shared_ext$major' 18065 shlibpath_var=LIBRARY_PATH 18066 shlibpath_overrides_runpath=no 18067 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18068 hardcode_into_libs=yes 18069 ;; 18070 18071 hpux9* | hpux10* | hpux11*) 18072 # Give a soname corresponding to the major version so that dld.sl refuses to 18073 # link against other versions. 18074 version_type=sunos 18075 need_lib_prefix=no 18076 need_version=no 18077 case $host_cpu in 18078 ia64*) 18079 shrext_cmds='.so' 18080 hardcode_into_libs=yes 18081 dynamic_linker="$host_os dld.so" 18082 shlibpath_var=LD_LIBRARY_PATH 18083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18085 soname_spec='$libname$release$shared_ext$major' 18086 if test 32 = "$HPUX_IA64_MODE"; then 18087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18088 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18089 else 18090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18091 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18092 fi 18093 ;; 18094 hppa*64*) 18095 shrext_cmds='.sl' 18096 hardcode_into_libs=yes 18097 dynamic_linker="$host_os dld.sl" 18098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18101 soname_spec='$libname$release$shared_ext$major' 18102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18104 ;; 18105 *) 18106 shrext_cmds='.sl' 18107 dynamic_linker="$host_os dld.sl" 18108 shlibpath_var=SHLIB_PATH 18109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18111 soname_spec='$libname$release$shared_ext$major' 18112 ;; 18113 esac 18114 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18115 postinstall_cmds='chmod 555 $lib' 18116 # or fails outright, so override atomically: 18117 install_override_mode=555 18118 ;; 18119 18120 interix[3-9]*) 18121 version_type=linux # correct to gnu/linux during the next big refactor 18122 need_lib_prefix=no 18123 need_version=no 18124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18125 soname_spec='$libname$release$shared_ext$major' 18126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18127 shlibpath_var=LD_LIBRARY_PATH 18128 shlibpath_overrides_runpath=no 18129 hardcode_into_libs=yes 18130 ;; 18131 18132 irix5* | irix6* | nonstopux*) 18133 case $host_os in 18134 nonstopux*) version_type=nonstopux ;; 18135 *) 18136 if test yes = "$lt_cv_prog_gnu_ld"; then 18137 version_type=linux # correct to gnu/linux during the next big refactor 18138 else 18139 version_type=irix 18140 fi ;; 18141 esac 18142 need_lib_prefix=no 18143 need_version=no 18144 soname_spec='$libname$release$shared_ext$major' 18145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18146 case $host_os in 18147 irix5* | nonstopux*) 18148 libsuff= shlibsuff= 18149 ;; 18150 *) 18151 case $LD in # libtool.m4 will add one of these switches to LD 18152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18153 libsuff= shlibsuff= libmagic=32-bit;; 18154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18155 libsuff=32 shlibsuff=N32 libmagic=N32;; 18156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18157 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18158 *) libsuff= shlibsuff= libmagic=never-match;; 18159 esac 18160 ;; 18161 esac 18162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18163 shlibpath_overrides_runpath=no 18164 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18165 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18166 hardcode_into_libs=yes 18167 ;; 18168 18169 # No shared lib support for Linux oldld, aout, or coff. 18170 linux*oldld* | linux*aout* | linux*coff*) 18171 dynamic_linker=no 18172 ;; 18173 18174 linux*android*) 18175 version_type=none # Android doesn't support versioned libraries. 18176 need_lib_prefix=no 18177 need_version=no 18178 library_names_spec='$libname$release$shared_ext' 18179 soname_spec='$libname$release$shared_ext' 18180 finish_cmds= 18181 shlibpath_var=LD_LIBRARY_PATH 18182 shlibpath_overrides_runpath=yes 18183 18184 # This implies no fast_install, which is unacceptable. 18185 # Some rework will be needed to allow for fast_install 18186 # before this can be enabled. 18187 hardcode_into_libs=yes 18188 18189 dynamic_linker='Android linker' 18190 # Don't embed -rpath directories since the linker doesn't support them. 18191 hardcode_libdir_flag_spec='-L$libdir' 18192 ;; 18193 18194 # This must be glibc/ELF. 18195 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18196 version_type=linux # correct to gnu/linux during the next big refactor 18197 need_lib_prefix=no 18198 need_version=no 18199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18200 soname_spec='$libname$release$shared_ext$major' 18201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18202 shlibpath_var=LD_LIBRARY_PATH 18203 shlibpath_overrides_runpath=no 18204 18205 # Some binutils ld are patched to set DT_RUNPATH 18206 if test ${lt_cv_shlibpath_overrides_runpath+y} 18207 then : 18208 printf %s "(cached) " >&6 18209 else $as_nop 18210 lt_cv_shlibpath_overrides_runpath=no 18211 save_LDFLAGS=$LDFLAGS 18212 save_libdir=$libdir 18213 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 18214 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 18215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18216 /* end confdefs.h. */ 18217 18218 int 18219 main (void) 18220 { 18221 18222 ; 18223 return 0; 18224 } 18225 _ACEOF 18226 if ac_fn_c_try_link "$LINENO" 18227 then : 18228 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 18229 then : 18230 lt_cv_shlibpath_overrides_runpath=yes 18231 fi 18232 fi 18233 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18234 conftest$ac_exeext conftest.$ac_ext 18235 LDFLAGS=$save_LDFLAGS 18236 libdir=$save_libdir 18237 18238 fi 18239 18240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18241 18242 # This implies no fast_install, which is unacceptable. 18243 # Some rework will be needed to allow for fast_install 18244 # before this can be enabled. 18245 hardcode_into_libs=yes 18246 18247 # Ideally, we could use ldconfig to report *all* directores which are 18248 # searched for libraries, however this is still not possible. Aside from not 18249 # being certain /sbin/ldconfig is available, command 18250 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18251 # even though it is searched at run-time. Try to do the best guess by 18252 # appending ld.so.conf contents (and includes) to the search path. 18253 if test -f /etc/ld.so.conf; then 18254 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' ' '` 18255 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18256 fi 18257 18258 # We used to test for /lib/ld.so.1 and disable shared libraries on 18259 # powerpc, because MkLinux only supported shared libraries with the 18260 # GNU dynamic linker. Since this was broken with cross compilers, 18261 # most powerpc-linux boxes support dynamic linking these days and 18262 # people can always --disable-shared, the test was removed, and we 18263 # assume the GNU/Linux dynamic linker is in use. 18264 dynamic_linker='GNU/Linux ld.so' 18265 ;; 18266 18267 netbsd*) 18268 version_type=sunos 18269 need_lib_prefix=no 18270 need_version=no 18271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18272 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18274 dynamic_linker='NetBSD (a.out) ld.so' 18275 else 18276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18277 soname_spec='$libname$release$shared_ext$major' 18278 dynamic_linker='NetBSD ld.elf_so' 18279 fi 18280 shlibpath_var=LD_LIBRARY_PATH 18281 shlibpath_overrides_runpath=yes 18282 hardcode_into_libs=yes 18283 ;; 18284 18285 newsos6) 18286 version_type=linux # correct to gnu/linux during the next big refactor 18287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18288 shlibpath_var=LD_LIBRARY_PATH 18289 shlibpath_overrides_runpath=yes 18290 ;; 18291 18292 *nto* | *qnx*) 18293 version_type=qnx 18294 need_lib_prefix=no 18295 need_version=no 18296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18297 soname_spec='$libname$release$shared_ext$major' 18298 shlibpath_var=LD_LIBRARY_PATH 18299 shlibpath_overrides_runpath=no 18300 hardcode_into_libs=yes 18301 dynamic_linker='ldqnx.so' 18302 ;; 18303 18304 openbsd* | bitrig*) 18305 version_type=sunos 18306 sys_lib_dlsearch_path_spec=/usr/lib 18307 need_lib_prefix=no 18308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18309 need_version=no 18310 else 18311 need_version=yes 18312 fi 18313 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18315 shlibpath_var=LD_LIBRARY_PATH 18316 shlibpath_overrides_runpath=yes 18317 ;; 18318 18319 os2*) 18320 libname_spec='$name' 18321 version_type=windows 18322 shrext_cmds=.dll 18323 need_version=no 18324 need_lib_prefix=no 18325 # OS/2 can only load a DLL with a base name of 8 characters or less. 18326 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18327 v=$($ECHO $release$versuffix | tr -d .-); 18328 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18329 $ECHO $n$v`$shared_ext' 18330 library_names_spec='${libname}_dll.$libext' 18331 dynamic_linker='OS/2 ld.exe' 18332 shlibpath_var=BEGINLIBPATH 18333 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18335 postinstall_cmds='base_file=`basename \$file`~ 18336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18337 dldir=$destdir/`dirname \$dlpath`~ 18338 test -d \$dldir || mkdir -p \$dldir~ 18339 $install_prog $dir/$dlname \$dldir/$dlname~ 18340 chmod a+x \$dldir/$dlname~ 18341 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18342 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18343 fi' 18344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18345 dlpath=$dir/\$dldll~ 18346 $RM \$dlpath' 18347 ;; 18348 18349 osf3* | osf4* | osf5*) 18350 version_type=osf 18351 need_lib_prefix=no 18352 need_version=no 18353 soname_spec='$libname$release$shared_ext$major' 18354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18355 shlibpath_var=LD_LIBRARY_PATH 18356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18358 ;; 18359 18360 rdos*) 18361 dynamic_linker=no 18362 ;; 18363 18364 solaris*) 18365 version_type=linux # correct to gnu/linux during the next big refactor 18366 need_lib_prefix=no 18367 need_version=no 18368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18369 soname_spec='$libname$release$shared_ext$major' 18370 shlibpath_var=LD_LIBRARY_PATH 18371 shlibpath_overrides_runpath=yes 18372 hardcode_into_libs=yes 18373 # ldd complains unless libraries are executable 18374 postinstall_cmds='chmod +x $lib' 18375 ;; 18376 18377 sunos4*) 18378 version_type=sunos 18379 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18381 shlibpath_var=LD_LIBRARY_PATH 18382 shlibpath_overrides_runpath=yes 18383 if test yes = "$with_gnu_ld"; then 18384 need_lib_prefix=no 18385 fi 18386 need_version=yes 18387 ;; 18388 18389 sysv4 | sysv4.3*) 18390 version_type=linux # correct to gnu/linux during the next big refactor 18391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18392 soname_spec='$libname$release$shared_ext$major' 18393 shlibpath_var=LD_LIBRARY_PATH 18394 case $host_vendor in 18395 sni) 18396 shlibpath_overrides_runpath=no 18397 need_lib_prefix=no 18398 runpath_var=LD_RUN_PATH 18399 ;; 18400 siemens) 18401 need_lib_prefix=no 18402 ;; 18403 motorola) 18404 need_lib_prefix=no 18405 need_version=no 18406 shlibpath_overrides_runpath=no 18407 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18408 ;; 18409 esac 18410 ;; 18411 18412 sysv4*MP*) 18413 if test -d /usr/nec; then 18414 version_type=linux # correct to gnu/linux during the next big refactor 18415 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18416 soname_spec='$libname$shared_ext.$major' 18417 shlibpath_var=LD_LIBRARY_PATH 18418 fi 18419 ;; 18420 18421 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18422 version_type=sco 18423 need_lib_prefix=no 18424 need_version=no 18425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18426 soname_spec='$libname$release$shared_ext$major' 18427 shlibpath_var=LD_LIBRARY_PATH 18428 shlibpath_overrides_runpath=yes 18429 hardcode_into_libs=yes 18430 if test yes = "$with_gnu_ld"; then 18431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18432 else 18433 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18434 case $host_os in 18435 sco3.2v5*) 18436 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18437 ;; 18438 esac 18439 fi 18440 sys_lib_dlsearch_path_spec='/usr/lib' 18441 ;; 18442 18443 tpf*) 18444 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18445 version_type=linux # correct to gnu/linux during the next big refactor 18446 need_lib_prefix=no 18447 need_version=no 18448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18449 shlibpath_var=LD_LIBRARY_PATH 18450 shlibpath_overrides_runpath=no 18451 hardcode_into_libs=yes 18452 ;; 18453 18454 uts4*) 18455 version_type=linux # correct to gnu/linux during the next big refactor 18456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18457 soname_spec='$libname$release$shared_ext$major' 18458 shlibpath_var=LD_LIBRARY_PATH 18459 ;; 18460 18461 *) 18462 dynamic_linker=no 18463 ;; 18464 esac 18465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18466 printf "%s\n" "$dynamic_linker" >&6; } 18467 test no = "$dynamic_linker" && can_build_shared=no 18468 18469 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18470 if test yes = "$GCC"; then 18471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18472 fi 18473 18474 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18475 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18476 fi 18477 18478 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18479 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18480 fi 18481 18482 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18483 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18484 18485 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18486 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18487 18488 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18489 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18588 printf %s "checking how to hardcode library paths into programs... " >&6; } 18589 hardcode_action= 18590 if test -n "$hardcode_libdir_flag_spec" || 18591 test -n "$runpath_var" || 18592 test yes = "$hardcode_automatic"; then 18593 18594 # We can hardcode non-existent directories. 18595 if test no != "$hardcode_direct" && 18596 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18597 # have to relink, otherwise we might link with an installed library 18598 # when we should be linking with a yet-to-be-installed one 18599 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 18600 test no != "$hardcode_minus_L"; then 18601 # Linking always hardcodes the temporary library directory. 18602 hardcode_action=relink 18603 else 18604 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18605 hardcode_action=immediate 18606 fi 18607 else 18608 # We cannot hardcode anything, or else we can only hardcode existing 18609 # directories. 18610 hardcode_action=unsupported 18611 fi 18612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18613 printf "%s\n" "$hardcode_action" >&6; } 18614 18615 if test relink = "$hardcode_action" || 18616 test yes = "$inherit_rpath"; then 18617 # Fast installation is not supported 18618 enable_fast_install=no 18619 elif test yes = "$shlibpath_overrides_runpath" || 18620 test no = "$enable_shared"; then 18621 # Fast installation is not necessary 18622 enable_fast_install=needless 18623 fi 18624 18625 18626 18627 18628 18629 18630 if test yes != "$enable_dlopen"; then 18631 enable_dlopen=unknown 18632 enable_dlopen_self=unknown 18633 enable_dlopen_self_static=unknown 18634 else 18635 lt_cv_dlopen=no 18636 lt_cv_dlopen_libs= 18637 18638 case $host_os in 18639 beos*) 18640 lt_cv_dlopen=load_add_on 18641 lt_cv_dlopen_libs= 18642 lt_cv_dlopen_self=yes 18643 ;; 18644 18645 mingw* | pw32* | cegcc*) 18646 lt_cv_dlopen=LoadLibrary 18647 lt_cv_dlopen_libs= 18648 ;; 18649 18650 cygwin*) 18651 lt_cv_dlopen=dlopen 18652 lt_cv_dlopen_libs= 18653 ;; 18654 18655 darwin*) 18656 # if libdl is installed we need to link against it 18657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18658 printf %s "checking for dlopen in -ldl... " >&6; } 18659 if test ${ac_cv_lib_dl_dlopen+y} 18660 then : 18661 printf %s "(cached) " >&6 18662 else $as_nop 18663 ac_check_lib_save_LIBS=$LIBS 18664 LIBS="-ldl $LIBS" 18665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18666 /* end confdefs.h. */ 18667 18668 /* Override any GCC internal prototype to avoid an error. 18669 Use char because int might match the return type of a GCC 18670 builtin and then its argument prototype would still apply. */ 18671 char dlopen (); 18672 int 18673 main (void) 18674 { 18675 return dlopen (); 18676 ; 18677 return 0; 18678 } 18679 _ACEOF 18680 if ac_fn_c_try_link "$LINENO" 18681 then : 18682 ac_cv_lib_dl_dlopen=yes 18683 else $as_nop 18684 ac_cv_lib_dl_dlopen=no 18685 fi 18686 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18687 conftest$ac_exeext conftest.$ac_ext 18688 LIBS=$ac_check_lib_save_LIBS 18689 fi 18690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18691 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18692 if test "x$ac_cv_lib_dl_dlopen" = xyes 18693 then : 18694 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18695 else $as_nop 18696 18697 lt_cv_dlopen=dyld 18698 lt_cv_dlopen_libs= 18699 lt_cv_dlopen_self=yes 18700 18701 fi 18702 18703 ;; 18704 18705 tpf*) 18706 # Don't try to run any link tests for TPF. We know it's impossible 18707 # because TPF is a cross-compiler, and we know how we open DSOs. 18708 lt_cv_dlopen=dlopen 18709 lt_cv_dlopen_libs= 18710 lt_cv_dlopen_self=no 18711 ;; 18712 18713 *) 18714 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18715 if test "x$ac_cv_func_shl_load" = xyes 18716 then : 18717 lt_cv_dlopen=shl_load 18718 else $as_nop 18719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18720 printf %s "checking for shl_load in -ldld... " >&6; } 18721 if test ${ac_cv_lib_dld_shl_load+y} 18722 then : 18723 printf %s "(cached) " >&6 18724 else $as_nop 18725 ac_check_lib_save_LIBS=$LIBS 18726 LIBS="-ldld $LIBS" 18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18728 /* end confdefs.h. */ 18729 18730 /* Override any GCC internal prototype to avoid an error. 18731 Use char because int might match the return type of a GCC 18732 builtin and then its argument prototype would still apply. */ 18733 char shl_load (); 18734 int 18735 main (void) 18736 { 18737 return shl_load (); 18738 ; 18739 return 0; 18740 } 18741 _ACEOF 18742 if ac_fn_c_try_link "$LINENO" 18743 then : 18744 ac_cv_lib_dld_shl_load=yes 18745 else $as_nop 18746 ac_cv_lib_dld_shl_load=no 18747 fi 18748 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18749 conftest$ac_exeext conftest.$ac_ext 18750 LIBS=$ac_check_lib_save_LIBS 18751 fi 18752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18753 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 18754 if test "x$ac_cv_lib_dld_shl_load" = xyes 18755 then : 18756 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 18757 else $as_nop 18758 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18759 if test "x$ac_cv_func_dlopen" = xyes 18760 then : 18761 lt_cv_dlopen=dlopen 18762 else $as_nop 18763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18764 printf %s "checking for dlopen in -ldl... " >&6; } 18765 if test ${ac_cv_lib_dl_dlopen+y} 18766 then : 18767 printf %s "(cached) " >&6 18768 else $as_nop 18769 ac_check_lib_save_LIBS=$LIBS 18770 LIBS="-ldl $LIBS" 18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18772 /* end confdefs.h. */ 18773 18774 /* Override any GCC internal prototype to avoid an error. 18775 Use char because int might match the return type of a GCC 18776 builtin and then its argument prototype would still apply. */ 18777 char dlopen (); 18778 int 18779 main (void) 18780 { 18781 return dlopen (); 18782 ; 18783 return 0; 18784 } 18785 _ACEOF 18786 if ac_fn_c_try_link "$LINENO" 18787 then : 18788 ac_cv_lib_dl_dlopen=yes 18789 else $as_nop 18790 ac_cv_lib_dl_dlopen=no 18791 fi 18792 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18793 conftest$ac_exeext conftest.$ac_ext 18794 LIBS=$ac_check_lib_save_LIBS 18795 fi 18796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18797 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 18798 if test "x$ac_cv_lib_dl_dlopen" = xyes 18799 then : 18800 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 18801 else $as_nop 18802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18803 printf %s "checking for dlopen in -lsvld... " >&6; } 18804 if test ${ac_cv_lib_svld_dlopen+y} 18805 then : 18806 printf %s "(cached) " >&6 18807 else $as_nop 18808 ac_check_lib_save_LIBS=$LIBS 18809 LIBS="-lsvld $LIBS" 18810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18811 /* end confdefs.h. */ 18812 18813 /* Override any GCC internal prototype to avoid an error. 18814 Use char because int might match the return type of a GCC 18815 builtin and then its argument prototype would still apply. */ 18816 char dlopen (); 18817 int 18818 main (void) 18819 { 18820 return dlopen (); 18821 ; 18822 return 0; 18823 } 18824 _ACEOF 18825 if ac_fn_c_try_link "$LINENO" 18826 then : 18827 ac_cv_lib_svld_dlopen=yes 18828 else $as_nop 18829 ac_cv_lib_svld_dlopen=no 18830 fi 18831 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18832 conftest$ac_exeext conftest.$ac_ext 18833 LIBS=$ac_check_lib_save_LIBS 18834 fi 18835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18836 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 18837 if test "x$ac_cv_lib_svld_dlopen" = xyes 18838 then : 18839 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 18840 else $as_nop 18841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18842 printf %s "checking for dld_link in -ldld... " >&6; } 18843 if test ${ac_cv_lib_dld_dld_link+y} 18844 then : 18845 printf %s "(cached) " >&6 18846 else $as_nop 18847 ac_check_lib_save_LIBS=$LIBS 18848 LIBS="-ldld $LIBS" 18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18850 /* end confdefs.h. */ 18851 18852 /* Override any GCC internal prototype to avoid an error. 18853 Use char because int might match the return type of a GCC 18854 builtin and then its argument prototype would still apply. */ 18855 char dld_link (); 18856 int 18857 main (void) 18858 { 18859 return dld_link (); 18860 ; 18861 return 0; 18862 } 18863 _ACEOF 18864 if ac_fn_c_try_link "$LINENO" 18865 then : 18866 ac_cv_lib_dld_dld_link=yes 18867 else $as_nop 18868 ac_cv_lib_dld_dld_link=no 18869 fi 18870 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18871 conftest$ac_exeext conftest.$ac_ext 18872 LIBS=$ac_check_lib_save_LIBS 18873 fi 18874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18875 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 18876 if test "x$ac_cv_lib_dld_dld_link" = xyes 18877 then : 18878 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 18879 fi 18880 18881 18882 fi 18883 18884 18885 fi 18886 18887 18888 fi 18889 18890 18891 fi 18892 18893 18894 fi 18895 18896 ;; 18897 esac 18898 18899 if test no = "$lt_cv_dlopen"; then 18900 enable_dlopen=no 18901 else 18902 enable_dlopen=yes 18903 fi 18904 18905 case $lt_cv_dlopen in 18906 dlopen) 18907 save_CPPFLAGS=$CPPFLAGS 18908 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18909 18910 save_LDFLAGS=$LDFLAGS 18911 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18912 18913 save_LIBS=$LIBS 18914 LIBS="$lt_cv_dlopen_libs $LIBS" 18915 18916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18917 printf %s "checking whether a program can dlopen itself... " >&6; } 18918 if test ${lt_cv_dlopen_self+y} 18919 then : 18920 printf %s "(cached) " >&6 18921 else $as_nop 18922 if test yes = "$cross_compiling"; then : 18923 lt_cv_dlopen_self=cross 18924 else 18925 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18926 lt_status=$lt_dlunknown 18927 cat > conftest.$ac_ext <<_LT_EOF 18928 #line $LINENO "configure" 18929 #include "confdefs.h" 18930 18931 #if HAVE_DLFCN_H 18932 #include <dlfcn.h> 18933 #endif 18934 18935 #include <stdio.h> 18936 18937 #ifdef RTLD_GLOBAL 18938 # define LT_DLGLOBAL RTLD_GLOBAL 18939 #else 18940 # ifdef DL_GLOBAL 18941 # define LT_DLGLOBAL DL_GLOBAL 18942 # else 18943 # define LT_DLGLOBAL 0 18944 # endif 18945 #endif 18946 18947 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18948 find out it does not work in some platform. */ 18949 #ifndef LT_DLLAZY_OR_NOW 18950 # ifdef RTLD_LAZY 18951 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18952 # else 18953 # ifdef DL_LAZY 18954 # define LT_DLLAZY_OR_NOW DL_LAZY 18955 # else 18956 # ifdef RTLD_NOW 18957 # define LT_DLLAZY_OR_NOW RTLD_NOW 18958 # else 18959 # ifdef DL_NOW 18960 # define LT_DLLAZY_OR_NOW DL_NOW 18961 # else 18962 # define LT_DLLAZY_OR_NOW 0 18963 # endif 18964 # endif 18965 # endif 18966 # endif 18967 #endif 18968 18969 /* When -fvisibility=hidden is used, assume the code has been annotated 18970 correspondingly for the symbols needed. */ 18971 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18972 int fnord () __attribute__((visibility("default"))); 18973 #endif 18974 18975 int fnord () { return 42; } 18976 int main () 18977 { 18978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18979 int status = $lt_dlunknown; 18980 18981 if (self) 18982 { 18983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18984 else 18985 { 18986 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18987 else puts (dlerror ()); 18988 } 18989 /* dlclose (self); */ 18990 } 18991 else 18992 puts (dlerror ()); 18993 18994 return status; 18995 } 18996 _LT_EOF 18997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18998 (eval $ac_link) 2>&5 18999 ac_status=$? 19000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19001 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19002 (./conftest; exit; ) >&5 2>/dev/null 19003 lt_status=$? 19004 case x$lt_status in 19005 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 19006 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 19007 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 19008 esac 19009 else : 19010 # compilation failed 19011 lt_cv_dlopen_self=no 19012 fi 19013 fi 19014 rm -fr conftest* 19015 19016 19017 fi 19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 19019 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 19020 19021 if test yes = "$lt_cv_dlopen_self"; then 19022 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 19024 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 19025 if test ${lt_cv_dlopen_self_static+y} 19026 then : 19027 printf %s "(cached) " >&6 19028 else $as_nop 19029 if test yes = "$cross_compiling"; then : 19030 lt_cv_dlopen_self_static=cross 19031 else 19032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 19033 lt_status=$lt_dlunknown 19034 cat > conftest.$ac_ext <<_LT_EOF 19035 #line $LINENO "configure" 19036 #include "confdefs.h" 19037 19038 #if HAVE_DLFCN_H 19039 #include <dlfcn.h> 19040 #endif 19041 19042 #include <stdio.h> 19043 19044 #ifdef RTLD_GLOBAL 19045 # define LT_DLGLOBAL RTLD_GLOBAL 19046 #else 19047 # ifdef DL_GLOBAL 19048 # define LT_DLGLOBAL DL_GLOBAL 19049 # else 19050 # define LT_DLGLOBAL 0 19051 # endif 19052 #endif 19053 19054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 19055 find out it does not work in some platform. */ 19056 #ifndef LT_DLLAZY_OR_NOW 19057 # ifdef RTLD_LAZY 19058 # define LT_DLLAZY_OR_NOW RTLD_LAZY 19059 # else 19060 # ifdef DL_LAZY 19061 # define LT_DLLAZY_OR_NOW DL_LAZY 19062 # else 19063 # ifdef RTLD_NOW 19064 # define LT_DLLAZY_OR_NOW RTLD_NOW 19065 # else 19066 # ifdef DL_NOW 19067 # define LT_DLLAZY_OR_NOW DL_NOW 19068 # else 19069 # define LT_DLLAZY_OR_NOW 0 19070 # endif 19071 # endif 19072 # endif 19073 # endif 19074 #endif 19075 19076 /* When -fvisibility=hidden is used, assume the code has been annotated 19077 correspondingly for the symbols needed. */ 19078 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 19079 int fnord () __attribute__((visibility("default"))); 19080 #endif 19081 19082 int fnord () { return 42; } 19083 int main () 19084 { 19085 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 19086 int status = $lt_dlunknown; 19087 19088 if (self) 19089 { 19090 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19091 else 19092 { 19093 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19094 else puts (dlerror ()); 19095 } 19096 /* dlclose (self); */ 19097 } 19098 else 19099 puts (dlerror ()); 19100 19101 return status; 19102 } 19103 _LT_EOF 19104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 19105 (eval $ac_link) 2>&5 19106 ac_status=$? 19107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19108 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 19109 (./conftest; exit; ) >&5 2>/dev/null 19110 lt_status=$? 19111 case x$lt_status in 19112 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 19113 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 19114 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 19115 esac 19116 else : 19117 # compilation failed 19118 lt_cv_dlopen_self_static=no 19119 fi 19120 fi 19121 rm -fr conftest* 19122 19123 19124 fi 19125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 19126 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 19127 fi 19128 19129 CPPFLAGS=$save_CPPFLAGS 19130 LDFLAGS=$save_LDFLAGS 19131 LIBS=$save_LIBS 19132 ;; 19133 esac 19134 19135 case $lt_cv_dlopen_self in 19136 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19137 *) enable_dlopen_self=unknown ;; 19138 esac 19139 19140 case $lt_cv_dlopen_self_static in 19141 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19142 *) enable_dlopen_self_static=unknown ;; 19143 esac 19144 fi 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 striplib= 19163 old_striplib= 19164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 19165 printf %s "checking whether stripping libraries is possible... " >&6; } 19166 if test -z "$STRIP"; then 19167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19168 printf "%s\n" "no" >&6; } 19169 else 19170 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 19171 old_striplib="$STRIP --strip-debug" 19172 striplib="$STRIP --strip-unneeded" 19173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19174 printf "%s\n" "yes" >&6; } 19175 else 19176 case $host_os in 19177 darwin*) 19178 # FIXME - insert some real tests, host_os isn't really good enough 19179 striplib="$STRIP -x" 19180 old_striplib="$STRIP -S" 19181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19182 printf "%s\n" "yes" >&6; } 19183 ;; 19184 freebsd*) 19185 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 19186 old_striplib="$STRIP --strip-debug" 19187 striplib="$STRIP --strip-unneeded" 19188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19189 printf "%s\n" "yes" >&6; } 19190 else 19191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19192 printf "%s\n" "no" >&6; } 19193 fi 19194 ;; 19195 *) 19196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19197 printf "%s\n" "no" >&6; } 19198 ;; 19199 esac 19200 fi 19201 fi 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 # Report what library types will actually be built 19215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 19216 printf %s "checking if libtool supports shared libraries... " >&6; } 19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 19218 printf "%s\n" "$can_build_shared" >&6; } 19219 19220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 19221 printf %s "checking whether to build shared libraries... " >&6; } 19222 test no = "$can_build_shared" && enable_shared=no 19223 19224 # On AIX, shared libraries and static libraries use the same namespace, and 19225 # are all built from PIC. 19226 case $host_os in 19227 aix3*) 19228 test yes = "$enable_shared" && enable_static=no 19229 if test -n "$RANLIB"; then 19230 archive_cmds="$archive_cmds~\$RANLIB \$lib" 19231 postinstall_cmds='$RANLIB $lib' 19232 fi 19233 ;; 19234 19235 aix[4-9]*) 19236 if test ia64 != "$host_cpu"; then 19237 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 19238 yes,aix,yes) ;; # shared object as lib.so file only 19239 yes,svr4,*) ;; # shared object as lib.so archive member only 19240 yes,*) enable_static=no ;; # shared object in lib.a archive as well 19241 esac 19242 fi 19243 ;; 19244 esac 19245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 19246 printf "%s\n" "$enable_shared" >&6; } 19247 19248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 19249 printf %s "checking whether to build static libraries... " >&6; } 19250 # Make sure either enable_shared or enable_static is yes. 19251 test yes = "$enable_shared" || enable_static=yes 19252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 19253 printf "%s\n" "$enable_static" >&6; } 19254 19255 19256 19257 19258 fi 19259 ac_ext=c 19260 ac_cpp='$CPP $CPPFLAGS' 19261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19263 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19264 19265 CC=$lt_save_CC 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 ac_config_commands="$ac_config_commands libtool" 19282 19283 19284 19285 19286 # Only expand once: 19287 19288 19289 19290 19291 19292 # Define a configure option for an alternate module directory 19293 19294 # Check whether --with-xorg-module-dir was given. 19295 if test ${with_xorg_module_dir+y} 19296 then : 19297 withval=$with_xorg_module_dir; moduledir="$withval" 19298 else $as_nop 19299 moduledir="$libdir/xorg/modules" 19300 fi 19301 19302 19303 19304 # Store the list of server defined optional extensions in REQUIRED_MODULES 19305 19306 19307 SAVE_CFLAGS="$CFLAGS" 19308 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19310 /* end confdefs.h. */ 19311 19312 #include "xorg-server.h" 19313 #if !defined RANDR 19314 #error RANDR not defined 19315 #endif 19316 19317 int 19318 main (void) 19319 { 19320 19321 ; 19322 return 0; 19323 } 19324 _ACEOF 19325 if ac_fn_c_try_compile "$LINENO" 19326 then : 19327 _EXT_CHECK=yes 19328 else $as_nop 19329 _EXT_CHECK=no 19330 fi 19331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19332 CFLAGS="$SAVE_CFLAGS" 19333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 19334 printf %s "checking if RANDR is defined... " >&6; } 19335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19336 printf "%s\n" "$_EXT_CHECK" >&6; } 19337 if test "$_EXT_CHECK" != no; then 19338 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 19339 fi 19340 19341 19342 19343 SAVE_CFLAGS="$CFLAGS" 19344 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19346 /* end confdefs.h. */ 19347 19348 #include "xorg-server.h" 19349 #if !defined RENDER 19350 #error RENDER not defined 19351 #endif 19352 19353 int 19354 main (void) 19355 { 19356 19357 ; 19358 return 0; 19359 } 19360 _ACEOF 19361 if ac_fn_c_try_compile "$LINENO" 19362 then : 19363 _EXT_CHECK=yes 19364 else $as_nop 19365 _EXT_CHECK=no 19366 fi 19367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19368 CFLAGS="$SAVE_CFLAGS" 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 19370 printf %s "checking if RENDER is defined... " >&6; } 19371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19372 printf "%s\n" "$_EXT_CHECK" >&6; } 19373 if test "$_EXT_CHECK" != no; then 19374 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 19375 fi 19376 19377 19378 19379 SAVE_CFLAGS="$CFLAGS" 19380 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19382 /* end confdefs.h. */ 19383 19384 #include "xorg-server.h" 19385 #if !defined DPMSExtension 19386 #error DPMSExtension not defined 19387 #endif 19388 19389 int 19390 main (void) 19391 { 19392 19393 ; 19394 return 0; 19395 } 19396 _ACEOF 19397 if ac_fn_c_try_compile "$LINENO" 19398 then : 19399 _EXT_CHECK=yes 19400 else $as_nop 19401 _EXT_CHECK=no 19402 fi 19403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19404 CFLAGS="$SAVE_CFLAGS" 19405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 19406 printf %s "checking if DPMSExtension is defined... " >&6; } 19407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 19408 printf "%s\n" "$_EXT_CHECK" >&6; } 19409 if test "$_EXT_CHECK" != no; then 19410 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 19411 fi 19412 19413 19414 # Obtain compiler/linker options for the driver dependencies 19415 19416 pkg_failed=no 19417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 19418 printf %s "checking for XORG... " >&6; } 19419 19420 if test -n "$XORG_CFLAGS"; then 19421 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 19422 elif test -n "$PKG_CONFIG"; then 19423 if test -n "$PKG_CONFIG" && \ 19424 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19425 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5 19426 ac_status=$? 19427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19428 test $ac_status = 0; }; then 19429 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19430 test "x$?" != "x0" && pkg_failed=yes 19431 else 19432 pkg_failed=yes 19433 fi 19434 else 19435 pkg_failed=untried 19436 fi 19437 if test -n "$XORG_LIBS"; then 19438 pkg_cv_XORG_LIBS="$XORG_LIBS" 19439 elif test -n "$PKG_CONFIG"; then 19440 if test -n "$PKG_CONFIG" && \ 19441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 19442 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5 19443 ac_status=$? 19444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19445 test $ac_status = 0; }; then 19446 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 19447 test "x$?" != "x0" && pkg_failed=yes 19448 else 19449 pkg_failed=yes 19450 fi 19451 else 19452 pkg_failed=untried 19453 fi 19454 19455 19456 19457 if test $pkg_failed = yes; then 19458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19459 printf "%s\n" "no" >&6; } 19460 19461 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19462 _pkg_short_errors_supported=yes 19463 else 19464 _pkg_short_errors_supported=no 19465 fi 19466 if test $_pkg_short_errors_supported = yes; then 19467 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19468 else 19469 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1` 19470 fi 19471 # Put the nasty error message in config.log where it belongs 19472 echo "$XORG_PKG_ERRORS" >&5 19473 19474 as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met: 19475 19476 $XORG_PKG_ERRORS 19477 19478 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19479 installed software in a non-standard prefix. 19480 19481 Alternatively, you may set the environment variables XORG_CFLAGS 19482 and XORG_LIBS to avoid the need to call pkg-config. 19483 See the pkg-config man page for more details." "$LINENO" 5 19484 elif test $pkg_failed = untried; then 19485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19486 printf "%s\n" "no" >&6; } 19487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19489 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19490 is in your PATH or set the PKG_CONFIG environment variable to the full 19491 path to pkg-config. 19492 19493 Alternatively, you may set the environment variables XORG_CFLAGS 19494 and XORG_LIBS to avoid the need to call pkg-config. 19495 See the pkg-config man page for more details. 19496 19497 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19498 See \`config.log' for more details" "$LINENO" 5; } 19499 else 19500 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 19501 XORG_LIBS=$pkg_cv_XORG_LIBS 19502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19503 printf "%s\n" "yes" >&6; } 19504 19505 fi 19506 19507 pkg_failed=no 19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 19509 printf %s "checking for XEXT... " >&6; } 19510 19511 if test -n "$XEXT_CFLAGS"; then 19512 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 19513 elif test -n "$PKG_CONFIG"; then 19514 if test -n "$PKG_CONFIG" && \ 19515 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19516 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19517 ac_status=$? 19518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19519 test $ac_status = 0; }; then 19520 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 19521 test "x$?" != "x0" && pkg_failed=yes 19522 else 19523 pkg_failed=yes 19524 fi 19525 else 19526 pkg_failed=untried 19527 fi 19528 if test -n "$XEXT_LIBS"; then 19529 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 19530 elif test -n "$PKG_CONFIG"; then 19531 if test -n "$PKG_CONFIG" && \ 19532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 19533 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 19534 ac_status=$? 19535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19536 test $ac_status = 0; }; then 19537 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 19538 test "x$?" != "x0" && pkg_failed=yes 19539 else 19540 pkg_failed=yes 19541 fi 19542 else 19543 pkg_failed=untried 19544 fi 19545 19546 19547 19548 if test $pkg_failed = yes; then 19549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19550 printf "%s\n" "no" >&6; } 19551 19552 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19553 _pkg_short_errors_supported=yes 19554 else 19555 _pkg_short_errors_supported=no 19556 fi 19557 if test $_pkg_short_errors_supported = yes; then 19558 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19559 else 19560 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 19561 fi 19562 # Put the nasty error message in config.log where it belongs 19563 echo "$XEXT_PKG_ERRORS" >&5 19564 19565 HAVE_XEXTPROTO_71="no" 19566 elif test $pkg_failed = untried; then 19567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19568 printf "%s\n" "no" >&6; } 19569 HAVE_XEXTPROTO_71="no" 19570 else 19571 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 19572 XEXT_LIBS=$pkg_cv_XEXT_LIBS 19573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19574 printf "%s\n" "yes" >&6; } 19575 HAVE_XEXTPROTO_71="yes" 19576 fi 19577 19578 if test "x$HAVE_XEXTPROTO_71" = xyes; then 19579 19580 printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 19581 19582 fi 19583 19584 save_CFLAGS="$CFLAGS" 19585 CFLAGS="$XORG_CFLAGS" 19586 ac_fn_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\" 19587 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19588 if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes 19589 then : 19590 19591 printf "%s\n" "#define HAVE_ISA 1" >>confdefs.h 19592 19593 fi 19594 CFLAGS="$save_CFLAGS" 19595 19596 save_CFLAGS="$CFLAGS" 19597 CFLAGS="$XORG_CFLAGS" 19598 ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 19599 " "$ac_c_undeclared_builtin_options" "CFLAGS" 19600 if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes 19601 then : 19602 XSERVER_LIBPCIACCESS=yes 19603 else $as_nop 19604 XSERVER_LIBPCIACCESS=no 19605 fi 19606 CFLAGS="$save_CFLAGS" 19607 19608 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 19609 19610 pkg_failed=no 19611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 19612 printf %s "checking for PCIACCESS... " >&6; } 19613 19614 if test -n "$PCIACCESS_CFLAGS"; then 19615 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 19616 elif test -n "$PKG_CONFIG"; then 19617 if test -n "$PKG_CONFIG" && \ 19618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 19619 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 19620 ac_status=$? 19621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19622 test $ac_status = 0; }; then 19623 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null` 19624 test "x$?" != "x0" && pkg_failed=yes 19625 else 19626 pkg_failed=yes 19627 fi 19628 else 19629 pkg_failed=untried 19630 fi 19631 if test -n "$PCIACCESS_LIBS"; then 19632 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 19633 elif test -n "$PKG_CONFIG"; then 19634 if test -n "$PKG_CONFIG" && \ 19635 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5 19636 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5 19637 ac_status=$? 19638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19639 test $ac_status = 0; }; then 19640 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null` 19641 test "x$?" != "x0" && pkg_failed=yes 19642 else 19643 pkg_failed=yes 19644 fi 19645 else 19646 pkg_failed=untried 19647 fi 19648 19649 19650 19651 if test $pkg_failed = yes; then 19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19653 printf "%s\n" "no" >&6; } 19654 19655 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19656 _pkg_short_errors_supported=yes 19657 else 19658 _pkg_short_errors_supported=no 19659 fi 19660 if test $_pkg_short_errors_supported = yes; then 19661 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 19662 else 19663 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1` 19664 fi 19665 # Put the nasty error message in config.log where it belongs 19666 echo "$PCIACCESS_PKG_ERRORS" >&5 19667 19668 as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met: 19669 19670 $PCIACCESS_PKG_ERRORS 19671 19672 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19673 installed software in a non-standard prefix. 19674 19675 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19676 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19677 See the pkg-config man page for more details." "$LINENO" 5 19678 elif test $pkg_failed = untried; then 19679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19680 printf "%s\n" "no" >&6; } 19681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19682 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19683 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19684 is in your PATH or set the PKG_CONFIG environment variable to the full 19685 path to pkg-config. 19686 19687 Alternatively, you may set the environment variables PCIACCESS_CFLAGS 19688 and PCIACCESS_LIBS to avoid the need to call pkg-config. 19689 See the pkg-config man page for more details. 19690 19691 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19692 See \`config.log' for more details" "$LINENO" 5; } 19693 else 19694 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 19695 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 19696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19697 printf "%s\n" "yes" >&6; } 19698 19699 fi 19700 fi 19701 19702 # Checks for libraries. 19703 19704 DRIVER_NAME=vesa 19705 19706 19707 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 19708 19709 cat >confcache <<\_ACEOF 19710 # This file is a shell script that caches the results of configure 19711 # tests run on this system so they can be shared between configure 19712 # scripts and configure runs, see configure's option --config-cache. 19713 # It is not useful on other systems. If it contains results you don't 19714 # want to keep, you may remove or edit it. 19715 # 19716 # config.status only pays attention to the cache file if you give it 19717 # the --recheck option to rerun configure. 19718 # 19719 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19720 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19721 # following values. 19722 19723 _ACEOF 19724 19725 # The following way of writing the cache mishandles newlines in values, 19726 # but we know of no workaround that is simple, portable, and efficient. 19727 # So, we kill variables containing newlines. 19728 # Ultrix sh set writes to stderr and can't be redirected directly, 19729 # and sets the high bit in the cache file unless we assign to the vars. 19730 ( 19731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19732 eval ac_val=\$$ac_var 19733 case $ac_val in #( 19734 *${as_nl}*) 19735 case $ac_var in #( 19736 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19737 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19738 esac 19739 case $ac_var in #( 19740 _ | IFS | as_nl) ;; #( 19741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19742 *) { eval $ac_var=; unset $ac_var;} ;; 19743 esac ;; 19744 esac 19745 done 19746 19747 (set) 2>&1 | 19748 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19749 *${as_nl}ac_space=\ *) 19750 # `set' does not quote correctly, so add quotes: double-quote 19751 # substitution turns \\\\ into \\, and sed turns \\ into \. 19752 sed -n \ 19753 "s/'/'\\\\''/g; 19754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19755 ;; #( 19756 *) 19757 # `set' quotes correctly as required by POSIX, so do not add quotes. 19758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19759 ;; 19760 esac | 19761 sort 19762 ) | 19763 sed ' 19764 /^ac_cv_env_/b end 19765 t clear 19766 :clear 19767 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19768 t end 19769 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19770 :end' >>confcache 19771 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19772 if test -w "$cache_file"; then 19773 if test "x$cache_file" != "x/dev/null"; then 19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19775 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19776 if test ! -f "$cache_file" || test -h "$cache_file"; then 19777 cat confcache >"$cache_file" 19778 else 19779 case $cache_file in #( 19780 */* | ?:*) 19781 mv -f confcache "$cache_file"$$ && 19782 mv -f "$cache_file"$$ "$cache_file" ;; #( 19783 *) 19784 mv -f confcache "$cache_file" ;; 19785 esac 19786 fi 19787 fi 19788 else 19789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19790 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19791 fi 19792 fi 19793 rm -f confcache 19794 19795 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19796 # Let make expand exec_prefix. 19797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19798 19799 DEFS=-DHAVE_CONFIG_H 19800 19801 ac_libobjs= 19802 ac_ltlibobjs= 19803 U= 19804 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19805 # 1. Remove the extension, and $U if already installed. 19806 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19807 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19808 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19809 # will be set to the directory where LIBOBJS objects are built. 19810 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19811 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19812 done 19813 LIBOBJS=$ac_libobjs 19814 19815 LTLIBOBJS=$ac_ltlibobjs 19816 19817 19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19819 printf %s "checking that generated files are newer than configure... " >&6; } 19820 if test -n "$am_sleep_pid"; then 19821 # Hide warnings about reused PIDs. 19822 wait $am_sleep_pid 2>/dev/null 19823 fi 19824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19825 printf "%s\n" "done" >&6; } 19826 if test -n "$EXEEXT"; then 19827 am__EXEEXT_TRUE= 19828 am__EXEEXT_FALSE='#' 19829 else 19830 am__EXEEXT_TRUE='#' 19831 am__EXEEXT_FALSE= 19832 fi 19833 19834 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19835 as_fn_error $? "conditional \"AMDEP\" was never defined. 19836 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19837 fi 19838 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19839 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19840 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19841 fi 19842 19843 : "${CONFIG_STATUS=./config.status}" 19844 ac_write_fail=0 19845 ac_clean_files_save=$ac_clean_files 19846 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19848 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19849 as_write_fail=0 19850 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19851 #! $SHELL 19852 # Generated by $as_me. 19853 # Run this file to recreate the current configuration. 19854 # Compiler output produced by configure, useful for debugging 19855 # configure, is in config.log if it exists. 19856 19857 debug=false 19858 ac_cs_recheck=false 19859 ac_cs_silent=false 19860 19861 SHELL=\${CONFIG_SHELL-$SHELL} 19862 export SHELL 19863 _ASEOF 19864 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19865 ## -------------------- ## 19866 ## M4sh Initialization. ## 19867 ## -------------------- ## 19868 19869 # Be more Bourne compatible 19870 DUALCASE=1; export DUALCASE # for MKS sh 19871 as_nop=: 19872 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19873 then : 19874 emulate sh 19875 NULLCMD=: 19876 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19877 # is contrary to our usage. Disable this feature. 19878 alias -g '${1+"$@"}'='"$@"' 19879 setopt NO_GLOB_SUBST 19880 else $as_nop 19881 case `(set -o) 2>/dev/null` in #( 19882 *posix*) : 19883 set -o posix ;; #( 19884 *) : 19885 ;; 19886 esac 19887 fi 19888 19889 19890 19891 # Reset variables that may have inherited troublesome values from 19892 # the environment. 19893 19894 # IFS needs to be set, to space, tab, and newline, in precisely that order. 19895 # (If _AS_PATH_WALK were called with IFS unset, it would have the 19896 # side effect of setting IFS to empty, thus disabling word splitting.) 19897 # Quoting is to prevent editors from complaining about space-tab. 19898 as_nl=' 19899 ' 19900 export as_nl 19901 IFS=" "" $as_nl" 19902 19903 PS1='$ ' 19904 PS2='> ' 19905 PS4='+ ' 19906 19907 # Ensure predictable behavior from utilities with locale-dependent output. 19908 LC_ALL=C 19909 export LC_ALL 19910 LANGUAGE=C 19911 export LANGUAGE 19912 19913 # We cannot yet rely on "unset" to work, but we need these variables 19914 # to be unset--not just set to an empty or harmless value--now, to 19915 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19916 # also avoids known problems related to "unset" and subshell syntax 19917 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19918 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19919 do eval test \${$as_var+y} \ 19920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19921 done 19922 19923 # Ensure that fds 0, 1, and 2 are open. 19924 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19925 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19926 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19927 19928 # The user is always right. 19929 if ${PATH_SEPARATOR+false} :; then 19930 PATH_SEPARATOR=: 19931 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19932 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19933 PATH_SEPARATOR=';' 19934 } 19935 fi 19936 19937 19938 # Find who we are. Look in the path if we contain no directory separator. 19939 as_myself= 19940 case $0 in #(( 19941 *[\\/]* ) as_myself=$0 ;; 19942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19943 for as_dir in $PATH 19944 do 19945 IFS=$as_save_IFS 19946 case $as_dir in #((( 19947 '') as_dir=./ ;; 19948 */) ;; 19949 *) as_dir=$as_dir/ ;; 19950 esac 19951 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19952 done 19953 IFS=$as_save_IFS 19954 19955 ;; 19956 esac 19957 # We did not find ourselves, most probably we were run as `sh COMMAND' 19958 # in which case we are not to be found in the path. 19959 if test "x$as_myself" = x; then 19960 as_myself=$0 19961 fi 19962 if test ! -f "$as_myself"; then 19963 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19964 exit 1 19965 fi 19966 19967 19968 19969 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19970 # ---------------------------------------- 19971 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19972 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19973 # script with STATUS, using 1 if that was 0. 19974 as_fn_error () 19975 { 19976 as_status=$1; test $as_status -eq 0 && as_status=1 19977 if test "$4"; then 19978 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19980 fi 19981 printf "%s\n" "$as_me: error: $2" >&2 19982 as_fn_exit $as_status 19983 } # as_fn_error 19984 19985 19986 19987 # as_fn_set_status STATUS 19988 # ----------------------- 19989 # Set $? to STATUS, without forking. 19990 as_fn_set_status () 19991 { 19992 return $1 19993 } # as_fn_set_status 19994 19995 # as_fn_exit STATUS 19996 # ----------------- 19997 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19998 as_fn_exit () 19999 { 20000 set +e 20001 as_fn_set_status $1 20002 exit $1 20003 } # as_fn_exit 20004 20005 # as_fn_unset VAR 20006 # --------------- 20007 # Portably unset VAR. 20008 as_fn_unset () 20009 { 20010 { eval $1=; unset $1;} 20011 } 20012 as_unset=as_fn_unset 20013 20014 # as_fn_append VAR VALUE 20015 # ---------------------- 20016 # Append the text in VALUE to the end of the definition contained in VAR. Take 20017 # advantage of any shell optimizations that allow amortized linear growth over 20018 # repeated appends, instead of the typical quadratic growth present in naive 20019 # implementations. 20020 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 20021 then : 20022 eval 'as_fn_append () 20023 { 20024 eval $1+=\$2 20025 }' 20026 else $as_nop 20027 as_fn_append () 20028 { 20029 eval $1=\$$1\$2 20030 } 20031 fi # as_fn_append 20032 20033 # as_fn_arith ARG... 20034 # ------------------ 20035 # Perform arithmetic evaluation on the ARGs, and store the result in the 20036 # global $as_val. Take advantage of shells that can avoid forks. The arguments 20037 # must be portable across $(()) and expr. 20038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 20039 then : 20040 eval 'as_fn_arith () 20041 { 20042 as_val=$(( $* )) 20043 }' 20044 else $as_nop 20045 as_fn_arith () 20046 { 20047 as_val=`expr "$@" || test $? -eq 1` 20048 } 20049 fi # as_fn_arith 20050 20051 20052 if expr a : '\(a\)' >/dev/null 2>&1 && 20053 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20054 as_expr=expr 20055 else 20056 as_expr=false 20057 fi 20058 20059 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20060 as_basename=basename 20061 else 20062 as_basename=false 20063 fi 20064 20065 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20066 as_dirname=dirname 20067 else 20068 as_dirname=false 20069 fi 20070 20071 as_me=`$as_basename -- "$0" || 20072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20073 X"$0" : 'X\(//\)$' \| \ 20074 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20075 printf "%s\n" X/"$0" | 20076 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20077 s//\1/ 20078 q 20079 } 20080 /^X\/\(\/\/\)$/{ 20081 s//\1/ 20082 q 20083 } 20084 /^X\/\(\/\).*/{ 20085 s//\1/ 20086 q 20087 } 20088 s/.*/./; q'` 20089 20090 # Avoid depending upon Character Ranges. 20091 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20092 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20093 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20094 as_cr_digits='0123456789' 20095 as_cr_alnum=$as_cr_Letters$as_cr_digits 20096 20097 20098 # Determine whether it's possible to make 'echo' print without a newline. 20099 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 20100 # for compatibility with existing Makefiles. 20101 ECHO_C= ECHO_N= ECHO_T= 20102 case `echo -n x` in #((((( 20103 -n*) 20104 case `echo 'xy\c'` in 20105 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20106 xy) ECHO_C='\c';; 20107 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20108 ECHO_T=' ';; 20109 esac;; 20110 *) 20111 ECHO_N='-n';; 20112 esac 20113 20114 # For backward compatibility with old third-party macros, we provide 20115 # the shell variables $as_echo and $as_echo_n. New code should use 20116 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 20117 as_echo='printf %s\n' 20118 as_echo_n='printf %s' 20119 20120 rm -f conf$$ conf$$.exe conf$$.file 20121 if test -d conf$$.dir; then 20122 rm -f conf$$.dir/conf$$.file 20123 else 20124 rm -f conf$$.dir 20125 mkdir conf$$.dir 2>/dev/null 20126 fi 20127 if (echo >conf$$.file) 2>/dev/null; then 20128 if ln -s conf$$.file conf$$ 2>/dev/null; then 20129 as_ln_s='ln -s' 20130 # ... but there are two gotchas: 20131 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20132 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20133 # In both cases, we have to default to `cp -pR'. 20134 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20135 as_ln_s='cp -pR' 20136 elif ln conf$$.file conf$$ 2>/dev/null; then 20137 as_ln_s=ln 20138 else 20139 as_ln_s='cp -pR' 20140 fi 20141 else 20142 as_ln_s='cp -pR' 20143 fi 20144 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20145 rmdir conf$$.dir 2>/dev/null 20146 20147 20148 # as_fn_mkdir_p 20149 # ------------- 20150 # Create "$as_dir" as a directory, including parents if necessary. 20151 as_fn_mkdir_p () 20152 { 20153 20154 case $as_dir in #( 20155 -*) as_dir=./$as_dir;; 20156 esac 20157 test -d "$as_dir" || eval $as_mkdir_p || { 20158 as_dirs= 20159 while :; do 20160 case $as_dir in #( 20161 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20162 *) as_qdir=$as_dir;; 20163 esac 20164 as_dirs="'$as_qdir' $as_dirs" 20165 as_dir=`$as_dirname -- "$as_dir" || 20166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20167 X"$as_dir" : 'X\(//\)[^/]' \| \ 20168 X"$as_dir" : 'X\(//\)$' \| \ 20169 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20170 printf "%s\n" X"$as_dir" | 20171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20172 s//\1/ 20173 q 20174 } 20175 /^X\(\/\/\)[^/].*/{ 20176 s//\1/ 20177 q 20178 } 20179 /^X\(\/\/\)$/{ 20180 s//\1/ 20181 q 20182 } 20183 /^X\(\/\).*/{ 20184 s//\1/ 20185 q 20186 } 20187 s/.*/./; q'` 20188 test -d "$as_dir" && break 20189 done 20190 test -z "$as_dirs" || eval "mkdir $as_dirs" 20191 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20192 20193 20194 } # as_fn_mkdir_p 20195 if mkdir -p . 2>/dev/null; then 20196 as_mkdir_p='mkdir -p "$as_dir"' 20197 else 20198 test -d ./-p && rmdir ./-p 20199 as_mkdir_p=false 20200 fi 20201 20202 20203 # as_fn_executable_p FILE 20204 # ----------------------- 20205 # Test if FILE is an executable regular file. 20206 as_fn_executable_p () 20207 { 20208 test -f "$1" && test -x "$1" 20209 } # as_fn_executable_p 20210 as_test_x='test -x' 20211 as_executable_p=as_fn_executable_p 20212 20213 # Sed expression to map a string onto a valid CPP name. 20214 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20215 20216 # Sed expression to map a string onto a valid variable name. 20217 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20218 20219 20220 exec 6>&1 20221 ## ----------------------------------- ## 20222 ## Main body of $CONFIG_STATUS script. ## 20223 ## ----------------------------------- ## 20224 _ASEOF 20225 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20226 20227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20228 # Save the log message, to keep $0 and so on meaningful, and to 20229 # report actual input values of CONFIG_FILES etc. instead of their 20230 # values after options handling. 20231 ac_log=" 20232 This file was extended by xf86-video-vesa $as_me 2.6.0, which was 20233 generated by GNU Autoconf 2.71. Invocation command line was 20234 20235 CONFIG_FILES = $CONFIG_FILES 20236 CONFIG_HEADERS = $CONFIG_HEADERS 20237 CONFIG_LINKS = $CONFIG_LINKS 20238 CONFIG_COMMANDS = $CONFIG_COMMANDS 20239 $ $0 $@ 20240 20241 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20242 " 20243 20244 _ACEOF 20245 20246 case $ac_config_files in *" 20247 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20248 esac 20249 20250 case $ac_config_headers in *" 20251 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20252 esac 20253 20254 20255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20256 # Files that config.status was made for. 20257 config_files="$ac_config_files" 20258 config_headers="$ac_config_headers" 20259 config_commands="$ac_config_commands" 20260 20261 _ACEOF 20262 20263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20264 ac_cs_usage="\ 20265 \`$as_me' instantiates files and other configuration actions 20266 from templates according to the current configuration. Unless the files 20267 and actions are specified as TAGs, all are instantiated by default. 20268 20269 Usage: $0 [OPTION]... [TAG]... 20270 20271 -h, --help print this help, then exit 20272 -V, --version print version number and configuration settings, then exit 20273 --config print configuration, then exit 20274 -q, --quiet, --silent 20275 do not print progress messages 20276 -d, --debug don't remove temporary files 20277 --recheck update $as_me by reconfiguring in the same conditions 20278 --file=FILE[:TEMPLATE] 20279 instantiate the configuration file FILE 20280 --header=FILE[:TEMPLATE] 20281 instantiate the configuration header FILE 20282 20283 Configuration files: 20284 $config_files 20285 20286 Configuration headers: 20287 $config_headers 20288 20289 Configuration commands: 20290 $config_commands 20291 20292 Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/issues>." 20293 20294 _ACEOF 20295 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20296 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20298 ac_cs_config='$ac_cs_config_escaped' 20299 ac_cs_version="\\ 20300 xf86-video-vesa config.status 2.6.0 20301 configured by $0, generated by GNU Autoconf 2.71, 20302 with options \\"\$ac_cs_config\\" 20303 20304 Copyright (C) 2021 Free Software Foundation, Inc. 20305 This config.status script is free software; the Free Software Foundation 20306 gives unlimited permission to copy, distribute and modify it." 20307 20308 ac_pwd='$ac_pwd' 20309 srcdir='$srcdir' 20310 INSTALL='$INSTALL' 20311 MKDIR_P='$MKDIR_P' 20312 AWK='$AWK' 20313 test -n "\$AWK" || AWK=awk 20314 _ACEOF 20315 20316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20317 # The default lists apply if the user does not specify any file. 20318 ac_need_defaults=: 20319 while test $# != 0 20320 do 20321 case $1 in 20322 --*=?*) 20323 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20325 ac_shift=: 20326 ;; 20327 --*=) 20328 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20329 ac_optarg= 20330 ac_shift=: 20331 ;; 20332 *) 20333 ac_option=$1 20334 ac_optarg=$2 20335 ac_shift=shift 20336 ;; 20337 esac 20338 20339 case $ac_option in 20340 # Handling of the options. 20341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20342 ac_cs_recheck=: ;; 20343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20344 printf "%s\n" "$ac_cs_version"; exit ;; 20345 --config | --confi | --conf | --con | --co | --c ) 20346 printf "%s\n" "$ac_cs_config"; exit ;; 20347 --debug | --debu | --deb | --de | --d | -d ) 20348 debug=: ;; 20349 --file | --fil | --fi | --f ) 20350 $ac_shift 20351 case $ac_optarg in 20352 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20353 '') as_fn_error $? "missing file argument" ;; 20354 esac 20355 as_fn_append CONFIG_FILES " '$ac_optarg'" 20356 ac_need_defaults=false;; 20357 --header | --heade | --head | --hea ) 20358 $ac_shift 20359 case $ac_optarg in 20360 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20361 esac 20362 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20363 ac_need_defaults=false;; 20364 --he | --h) 20365 # Conflict between --help and --header 20366 as_fn_error $? "ambiguous option: \`$1' 20367 Try \`$0 --help' for more information.";; 20368 --help | --hel | -h ) 20369 printf "%s\n" "$ac_cs_usage"; exit ;; 20370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20371 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20372 ac_cs_silent=: ;; 20373 20374 # This is an error. 20375 -*) as_fn_error $? "unrecognized option: \`$1' 20376 Try \`$0 --help' for more information." ;; 20377 20378 *) as_fn_append ac_config_targets " $1" 20379 ac_need_defaults=false ;; 20380 20381 esac 20382 shift 20383 done 20384 20385 ac_configure_extra_args= 20386 20387 if $ac_cs_silent; then 20388 exec 6>/dev/null 20389 ac_configure_extra_args="$ac_configure_extra_args --silent" 20390 fi 20391 20392 _ACEOF 20393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20394 if \$ac_cs_recheck; then 20395 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20396 shift 20397 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20398 CONFIG_SHELL='$SHELL' 20399 export CONFIG_SHELL 20400 exec "\$@" 20401 fi 20402 20403 _ACEOF 20404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20405 exec 5>>config.log 20406 { 20407 echo 20408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20409 ## Running $as_me. ## 20410 _ASBOX 20411 printf "%s\n" "$ac_log" 20412 } >&5 20413 20414 _ACEOF 20415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20416 # 20417 # INIT-COMMANDS 20418 # 20419 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20420 20421 20422 # The HP-UX ksh and POSIX shell print the target directory to stdout 20423 # if CDPATH is set. 20424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20425 20426 sed_quote_subst='$sed_quote_subst' 20427 double_quote_subst='$double_quote_subst' 20428 delay_variable_subst='$delay_variable_subst' 20429 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20430 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20431 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20432 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20433 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20434 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20435 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20436 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20437 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20438 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20439 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20440 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20441 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20442 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20443 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20444 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20445 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20446 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20447 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20448 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20449 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20450 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20451 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20452 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20453 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20454 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20455 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20456 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20457 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20458 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20459 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20460 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20461 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20462 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20463 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20464 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20465 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20466 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20467 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20468 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20469 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20470 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20471 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20472 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20473 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20474 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20475 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20476 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20477 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20478 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20479 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20480 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20481 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20482 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20483 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20484 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20485 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20486 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20487 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20488 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20489 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"`' 20490 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20491 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20492 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20493 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20494 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20495 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20496 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20497 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20498 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20499 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20500 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20501 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20502 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20503 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20504 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20505 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20506 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20507 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20508 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20509 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20510 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20511 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20512 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20513 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20514 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20515 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20516 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20517 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20518 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20519 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20520 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20521 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20522 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20523 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20524 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20525 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20526 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20527 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20528 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20529 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20530 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20531 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20532 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20533 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20534 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20535 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20536 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20537 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20538 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20539 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20540 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20541 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20542 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20543 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20544 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20545 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20546 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20547 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20548 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20549 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20550 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20551 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20552 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20553 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20554 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20555 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20556 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20557 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20558 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20559 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20560 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20561 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20562 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20563 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20564 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20565 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20566 20567 LTCC='$LTCC' 20568 LTCFLAGS='$LTCFLAGS' 20569 compiler='$compiler_DEFAULT' 20570 20571 # A function that is used when there is no print builtin or printf. 20572 func_fallback_echo () 20573 { 20574 eval 'cat <<_LTECHO_EOF 20575 \$1 20576 _LTECHO_EOF' 20577 } 20578 20579 # Quote evaled strings. 20580 for var in SHELL \ 20581 ECHO \ 20582 PATH_SEPARATOR \ 20583 SED \ 20584 GREP \ 20585 EGREP \ 20586 FGREP \ 20587 LD \ 20588 NM \ 20589 LN_S \ 20590 lt_SP2NL \ 20591 lt_NL2SP \ 20592 reload_flag \ 20593 FILECMD \ 20594 OBJDUMP \ 20595 deplibs_check_method \ 20596 file_magic_cmd \ 20597 file_magic_glob \ 20598 want_nocaseglob \ 20599 DLLTOOL \ 20600 sharedlib_from_linklib_cmd \ 20601 AR \ 20602 archiver_list_spec \ 20603 STRIP \ 20604 RANLIB \ 20605 CC \ 20606 CFLAGS \ 20607 compiler \ 20608 lt_cv_sys_global_symbol_pipe \ 20609 lt_cv_sys_global_symbol_to_cdecl \ 20610 lt_cv_sys_global_symbol_to_import \ 20611 lt_cv_sys_global_symbol_to_c_name_address \ 20612 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20613 lt_cv_nm_interface \ 20614 nm_file_list_spec \ 20615 lt_cv_truncate_bin \ 20616 lt_prog_compiler_no_builtin_flag \ 20617 lt_prog_compiler_pic \ 20618 lt_prog_compiler_wl \ 20619 lt_prog_compiler_static \ 20620 lt_cv_prog_compiler_c_o \ 20621 need_locks \ 20622 MANIFEST_TOOL \ 20623 DSYMUTIL \ 20624 NMEDIT \ 20625 LIPO \ 20626 OTOOL \ 20627 OTOOL64 \ 20628 shrext_cmds \ 20629 export_dynamic_flag_spec \ 20630 whole_archive_flag_spec \ 20631 compiler_needs_object \ 20632 with_gnu_ld \ 20633 allow_undefined_flag \ 20634 no_undefined_flag \ 20635 hardcode_libdir_flag_spec \ 20636 hardcode_libdir_separator \ 20637 exclude_expsyms \ 20638 include_expsyms \ 20639 file_list_spec \ 20640 variables_saved_for_relink \ 20641 libname_spec \ 20642 library_names_spec \ 20643 soname_spec \ 20644 install_override_mode \ 20645 finish_eval \ 20646 old_striplib \ 20647 striplib; do 20648 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20649 *[\\\\\\\`\\"\\\$]*) 20650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20651 ;; 20652 *) 20653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20654 ;; 20655 esac 20656 done 20657 20658 # Double-quote double-evaled strings. 20659 for var in reload_cmds \ 20660 old_postinstall_cmds \ 20661 old_postuninstall_cmds \ 20662 old_archive_cmds \ 20663 extract_expsyms_cmds \ 20664 old_archive_from_new_cmds \ 20665 old_archive_from_expsyms_cmds \ 20666 archive_cmds \ 20667 archive_expsym_cmds \ 20668 module_cmds \ 20669 module_expsym_cmds \ 20670 export_symbols_cmds \ 20671 prelink_cmds \ 20672 postlink_cmds \ 20673 postinstall_cmds \ 20674 postuninstall_cmds \ 20675 finish_cmds \ 20676 sys_lib_search_path_spec \ 20677 configure_time_dlsearch_path \ 20678 configure_time_lt_sys_library_path; do 20679 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20680 *[\\\\\\\`\\"\\\$]*) 20681 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20682 ;; 20683 *) 20684 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20685 ;; 20686 esac 20687 done 20688 20689 ac_aux_dir='$ac_aux_dir' 20690 20691 # See if we are running on zsh, and set the options that allow our 20692 # commands through without removal of \ escapes INIT. 20693 if test -n "\${ZSH_VERSION+set}"; then 20694 setopt NO_GLOB_SUBST 20695 fi 20696 20697 20698 PACKAGE='$PACKAGE' 20699 VERSION='$VERSION' 20700 RM='$RM' 20701 ofile='$ofile' 20702 20703 20704 20705 20706 _ACEOF 20707 20708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20709 20710 # Handling of arguments. 20711 for ac_config_target in $ac_config_targets 20712 do 20713 case $ac_config_target in 20714 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20716 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20717 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20718 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20719 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20720 20721 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20722 esac 20723 done 20724 20725 20726 # If the user did not use the arguments to specify the items to instantiate, 20727 # then the envvar interface is used. Set only those that are not. 20728 # We use the long form for the default assignment because of an extremely 20729 # bizarre bug on SunOS 4.1.3. 20730 if $ac_need_defaults; then 20731 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20732 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20733 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20734 fi 20735 20736 # Have a temporary directory for convenience. Make it in the build tree 20737 # simply because there is no reason against having it here, and in addition, 20738 # creating and moving files from /tmp can sometimes cause problems. 20739 # Hook for its removal unless debugging. 20740 # Note that there is a small window in which the directory will not be cleaned: 20741 # after its creation but before its name has been assigned to `$tmp'. 20742 $debug || 20743 { 20744 tmp= ac_tmp= 20745 trap 'exit_status=$? 20746 : "${ac_tmp:=$tmp}" 20747 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20748 ' 0 20749 trap 'as_fn_exit 1' 1 2 13 15 20750 } 20751 # Create a (secure) tmp directory for tmp files. 20752 20753 { 20754 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20755 test -d "$tmp" 20756 } || 20757 { 20758 tmp=./conf$$-$RANDOM 20759 (umask 077 && mkdir "$tmp") 20760 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20761 ac_tmp=$tmp 20762 20763 # Set up the scripts for CONFIG_FILES section. 20764 # No need to generate them if there are no CONFIG_FILES. 20765 # This happens for instance with `./config.status config.h'. 20766 if test -n "$CONFIG_FILES"; then 20767 20768 20769 ac_cr=`echo X | tr X '\015'` 20770 # On cygwin, bash can eat \r inside `` if the user requested igncr. 20771 # But we know of no other shell where ac_cr would be empty at this 20772 # point, so we can use a bashism as a fallback. 20773 if test "x$ac_cr" = x; then 20774 eval ac_cr=\$\'\\r\' 20775 fi 20776 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20777 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20778 ac_cs_awk_cr='\\r' 20779 else 20780 ac_cs_awk_cr=$ac_cr 20781 fi 20782 20783 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20784 _ACEOF 20785 20786 20787 { 20788 echo "cat >conf$$subs.awk <<_ACEOF" && 20789 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20790 echo "_ACEOF" 20791 } >conf$$subs.sh || 20792 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20793 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20794 ac_delim='%!_!# ' 20795 for ac_last_try in false false false false false :; do 20796 . ./conf$$subs.sh || 20797 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20798 20799 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20800 if test $ac_delim_n = $ac_delim_num; then 20801 break 20802 elif $ac_last_try; then 20803 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20804 else 20805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20806 fi 20807 done 20808 rm -f conf$$subs.sh 20809 20810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20811 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20812 _ACEOF 20813 sed -n ' 20814 h 20815 s/^/S["/; s/!.*/"]=/ 20816 p 20817 g 20818 s/^[^!]*!// 20819 :repl 20820 t repl 20821 s/'"$ac_delim"'$// 20822 t delim 20823 :nl 20824 h 20825 s/\(.\{148\}\)..*/\1/ 20826 t more1 20827 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20828 p 20829 n 20830 b repl 20831 :more1 20832 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20833 p 20834 g 20835 s/.\{148\}// 20836 t nl 20837 :delim 20838 h 20839 s/\(.\{148\}\)..*/\1/ 20840 t more2 20841 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20842 p 20843 b 20844 :more2 20845 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20846 p 20847 g 20848 s/.\{148\}// 20849 t delim 20850 ' <conf$$subs.awk | sed ' 20851 /^[^""]/{ 20852 N 20853 s/\n// 20854 } 20855 ' >>$CONFIG_STATUS || ac_write_fail=1 20856 rm -f conf$$subs.awk 20857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20858 _ACAWK 20859 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20860 for (key in S) S_is_set[key] = 1 20861 FS = "" 20862 20863 } 20864 { 20865 line = $ 0 20866 nfields = split(line, field, "@") 20867 substed = 0 20868 len = length(field[1]) 20869 for (i = 2; i < nfields; i++) { 20870 key = field[i] 20871 keylen = length(key) 20872 if (S_is_set[key]) { 20873 value = S[key] 20874 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20875 len += length(value) + length(field[++i]) 20876 substed = 1 20877 } else 20878 len += 1 + keylen 20879 } 20880 20881 print line 20882 } 20883 20884 _ACAWK 20885 _ACEOF 20886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20887 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20888 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20889 else 20890 cat 20891 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20892 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20893 _ACEOF 20894 20895 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20896 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20897 # trailing colons and then remove the whole line if VPATH becomes empty 20898 # (actually we leave an empty line to preserve line numbers). 20899 if test "x$srcdir" = x.; then 20900 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20901 h 20902 s/// 20903 s/^/:/ 20904 s/[ ]*$/:/ 20905 s/:\$(srcdir):/:/g 20906 s/:\${srcdir}:/:/g 20907 s/:@srcdir@:/:/g 20908 s/^:*// 20909 s/:*$// 20910 x 20911 s/\(=[ ]*\).*/\1/ 20912 G 20913 s/\n// 20914 s/^[^=]*=[ ]*$// 20915 }' 20916 fi 20917 20918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20919 fi # test -n "$CONFIG_FILES" 20920 20921 # Set up the scripts for CONFIG_HEADERS section. 20922 # No need to generate them if there are no CONFIG_HEADERS. 20923 # This happens for instance with `./config.status Makefile'. 20924 if test -n "$CONFIG_HEADERS"; then 20925 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20926 BEGIN { 20927 _ACEOF 20928 20929 # Transform confdefs.h into an awk script `defines.awk', embedded as 20930 # here-document in config.status, that substitutes the proper values into 20931 # config.h.in to produce config.h. 20932 20933 # Create a delimiter string that does not exist in confdefs.h, to ease 20934 # handling of long lines. 20935 ac_delim='%!_!# ' 20936 for ac_last_try in false false :; do 20937 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20938 if test -z "$ac_tt"; then 20939 break 20940 elif $ac_last_try; then 20941 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20942 else 20943 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20944 fi 20945 done 20946 20947 # For the awk script, D is an array of macro values keyed by name, 20948 # likewise P contains macro parameters if any. Preserve backslash 20949 # newline sequences. 20950 20951 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20952 sed -n ' 20953 s/.\{148\}/&'"$ac_delim"'/g 20954 t rset 20955 :rset 20956 s/^[ ]*#[ ]*define[ ][ ]*/ / 20957 t def 20958 d 20959 :def 20960 s/\\$// 20961 t bsnl 20962 s/["\\]/\\&/g 20963 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20964 D["\1"]=" \3"/p 20965 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20966 d 20967 :bsnl 20968 s/["\\]/\\&/g 20969 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20970 D["\1"]=" \3\\\\\\n"\\/p 20971 t cont 20972 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20973 t cont 20974 d 20975 :cont 20976 n 20977 s/.\{148\}/&'"$ac_delim"'/g 20978 t clear 20979 :clear 20980 s/\\$// 20981 t bsnlc 20982 s/["\\]/\\&/g; s/^/"/; s/$/"/p 20983 d 20984 :bsnlc 20985 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20986 b cont 20987 ' <confdefs.h | sed ' 20988 s/'"$ac_delim"'/"\\\ 20989 "/g' >>$CONFIG_STATUS || ac_write_fail=1 20990 20991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20992 for (key in D) D_is_set[key] = 1 20993 FS = "" 20994 } 20995 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20996 line = \$ 0 20997 split(line, arg, " ") 20998 if (arg[1] == "#") { 20999 defundef = arg[2] 21000 mac1 = arg[3] 21001 } else { 21002 defundef = substr(arg[1], 2) 21003 mac1 = arg[2] 21004 } 21005 split(mac1, mac2, "(") #) 21006 macro = mac2[1] 21007 prefix = substr(line, 1, index(line, defundef) - 1) 21008 if (D_is_set[macro]) { 21009 # Preserve the white space surrounding the "#". 21010 print prefix "define", macro P[macro] D[macro] 21011 next 21012 } else { 21013 # Replace #undef with comments. This is necessary, for example, 21014 # in the case of _POSIX_SOURCE, which is predefined and required 21015 # on some systems where configure will not decide to define it. 21016 if (defundef == "undef") { 21017 print "/*", prefix defundef, macro, "*/" 21018 next 21019 } 21020 } 21021 } 21022 { print } 21023 _ACAWK 21024 _ACEOF 21025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21026 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21027 fi # test -n "$CONFIG_HEADERS" 21028 21029 21030 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21031 shift 21032 for ac_tag 21033 do 21034 case $ac_tag in 21035 :[FHLC]) ac_mode=$ac_tag; continue;; 21036 esac 21037 case $ac_mode$ac_tag in 21038 :[FHL]*:*);; 21039 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21040 :[FH]-) ac_tag=-:-;; 21041 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21042 esac 21043 ac_save_IFS=$IFS 21044 IFS=: 21045 set x $ac_tag 21046 IFS=$ac_save_IFS 21047 shift 21048 ac_file=$1 21049 shift 21050 21051 case $ac_mode in 21052 :L) ac_source=$1;; 21053 :[FH]) 21054 ac_file_inputs= 21055 for ac_f 21056 do 21057 case $ac_f in 21058 -) ac_f="$ac_tmp/stdin";; 21059 *) # Look for the file first in the build tree, then in the source tree 21060 # (if the path is not absolute). The absolute path cannot be DOS-style, 21061 # because $ac_f cannot contain `:'. 21062 test -f "$ac_f" || 21063 case $ac_f in 21064 [\\/$]*) false;; 21065 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21066 esac || 21067 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21068 esac 21069 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21070 as_fn_append ac_file_inputs " '$ac_f'" 21071 done 21072 21073 # Let's still pretend it is `configure' which instantiates (i.e., don't 21074 # use $as_me), people would be surprised to read: 21075 # /* config.h. Generated by config.status. */ 21076 configure_input='Generated from '` 21077 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21078 `' by configure.' 21079 if test x"$ac_file" != x-; then 21080 configure_input="$ac_file. $configure_input" 21081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21082 printf "%s\n" "$as_me: creating $ac_file" >&6;} 21083 fi 21084 # Neutralize special characters interpreted by sed in replacement strings. 21085 case $configure_input in #( 21086 *\&* | *\|* | *\\* ) 21087 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 21088 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21089 *) ac_sed_conf_input=$configure_input;; 21090 esac 21091 21092 case $ac_tag in 21093 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21095 esac 21096 ;; 21097 esac 21098 21099 ac_dir=`$as_dirname -- "$ac_file" || 21100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21101 X"$ac_file" : 'X\(//\)[^/]' \| \ 21102 X"$ac_file" : 'X\(//\)$' \| \ 21103 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21104 printf "%s\n" X"$ac_file" | 21105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21106 s//\1/ 21107 q 21108 } 21109 /^X\(\/\/\)[^/].*/{ 21110 s//\1/ 21111 q 21112 } 21113 /^X\(\/\/\)$/{ 21114 s//\1/ 21115 q 21116 } 21117 /^X\(\/\).*/{ 21118 s//\1/ 21119 q 21120 } 21121 s/.*/./; q'` 21122 as_dir="$ac_dir"; as_fn_mkdir_p 21123 ac_builddir=. 21124 21125 case "$ac_dir" in 21126 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21127 *) 21128 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 21129 # A ".." for each directory in $ac_dir_suffix. 21130 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21131 case $ac_top_builddir_sub in 21132 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21133 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21134 esac ;; 21135 esac 21136 ac_abs_top_builddir=$ac_pwd 21137 ac_abs_builddir=$ac_pwd$ac_dir_suffix 21138 # for backward compatibility: 21139 ac_top_builddir=$ac_top_build_prefix 21140 21141 case $srcdir in 21142 .) # We are building in place. 21143 ac_srcdir=. 21144 ac_top_srcdir=$ac_top_builddir_sub 21145 ac_abs_top_srcdir=$ac_pwd ;; 21146 [\\/]* | ?:[\\/]* ) # Absolute name. 21147 ac_srcdir=$srcdir$ac_dir_suffix; 21148 ac_top_srcdir=$srcdir 21149 ac_abs_top_srcdir=$srcdir ;; 21150 *) # Relative name. 21151 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21152 ac_top_srcdir=$ac_top_build_prefix$srcdir 21153 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21154 esac 21155 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21156 21157 21158 case $ac_mode in 21159 :F) 21160 # 21161 # CONFIG_FILE 21162 # 21163 21164 case $INSTALL in 21165 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21166 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21167 esac 21168 ac_MKDIR_P=$MKDIR_P 21169 case $MKDIR_P in 21170 [\\/$]* | ?:[\\/]* ) ;; 21171 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21172 esac 21173 _ACEOF 21174 21175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21176 # If the template does not know about datarootdir, expand it. 21177 # FIXME: This hack should be removed a few years after 2.60. 21178 ac_datarootdir_hack=; ac_datarootdir_seen= 21179 ac_sed_dataroot=' 21180 /datarootdir/ { 21181 p 21182 q 21183 } 21184 /@datadir@/p 21185 /@docdir@/p 21186 /@infodir@/p 21187 /@localedir@/p 21188 /@mandir@/p' 21189 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21190 *datarootdir*) ac_datarootdir_seen=yes;; 21191 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21193 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21194 _ACEOF 21195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21196 ac_datarootdir_hack=' 21197 s&@datadir@&$datadir&g 21198 s&@docdir@&$docdir&g 21199 s&@infodir@&$infodir&g 21200 s&@localedir@&$localedir&g 21201 s&@mandir@&$mandir&g 21202 s&\\\${datarootdir}&$datarootdir&g' ;; 21203 esac 21204 _ACEOF 21205 21206 # Neutralize VPATH when `$srcdir' = `.'. 21207 # Shell code in configure.ac might set extrasub. 21208 # FIXME: do we really want to maintain this feature? 21209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21210 ac_sed_extra="$ac_vpsub 21211 $extrasub 21212 _ACEOF 21213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21214 :t 21215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21216 s|@configure_input@|$ac_sed_conf_input|;t t 21217 s&@top_builddir@&$ac_top_builddir_sub&;t t 21218 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21219 s&@srcdir@&$ac_srcdir&;t t 21220 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21221 s&@top_srcdir@&$ac_top_srcdir&;t t 21222 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21223 s&@builddir@&$ac_builddir&;t t 21224 s&@abs_builddir@&$ac_abs_builddir&;t t 21225 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21226 s&@INSTALL@&$ac_INSTALL&;t t 21227 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21228 $ac_datarootdir_hack 21229 " 21230 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21231 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21232 21233 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21234 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21235 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21236 "$ac_tmp/out"`; test -z "$ac_out"; } && 21237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21238 which seems to be undefined. Please make sure it is defined" >&5 21239 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21240 which seems to be undefined. Please make sure it is defined" >&2;} 21241 21242 rm -f "$ac_tmp/stdin" 21243 case $ac_file in 21244 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21245 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21246 esac \ 21247 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21248 ;; 21249 :H) 21250 # 21251 # CONFIG_HEADER 21252 # 21253 if test x"$ac_file" != x-; then 21254 { 21255 printf "%s\n" "/* $configure_input */" >&1 \ 21256 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21257 } >"$ac_tmp/config.h" \ 21258 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21259 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21261 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21262 else 21263 rm -f "$ac_file" 21264 mv "$ac_tmp/config.h" "$ac_file" \ 21265 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21266 fi 21267 else 21268 printf "%s\n" "/* $configure_input */" >&1 \ 21269 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21270 || as_fn_error $? "could not create -" "$LINENO" 5 21271 fi 21272 # Compute "$ac_file"'s index in $config_headers. 21273 _am_arg="$ac_file" 21274 _am_stamp_count=1 21275 for _am_header in $config_headers :; do 21276 case $_am_header in 21277 $_am_arg | $_am_arg:* ) 21278 break ;; 21279 * ) 21280 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21281 esac 21282 done 21283 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21284 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21285 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21286 X"$_am_arg" : 'X\(//\)$' \| \ 21287 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21288 printf "%s\n" X"$_am_arg" | 21289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21290 s//\1/ 21291 q 21292 } 21293 /^X\(\/\/\)[^/].*/{ 21294 s//\1/ 21295 q 21296 } 21297 /^X\(\/\/\)$/{ 21298 s//\1/ 21299 q 21300 } 21301 /^X\(\/\).*/{ 21302 s//\1/ 21303 q 21304 } 21305 s/.*/./; q'`/stamp-h$_am_stamp_count 21306 ;; 21307 21308 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21309 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21310 ;; 21311 esac 21312 21313 21314 case $ac_file$ac_mode in 21315 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21316 # Older Autoconf quotes --file arguments for eval, but not when files 21317 # are listed without --file. Let's play safe and only enable the eval 21318 # if we detect the quoting. 21319 # TODO: see whether this extra hack can be removed once we start 21320 # requiring Autoconf 2.70 or later. 21321 case $CONFIG_FILES in #( 21322 *\'*) : 21323 eval set x "$CONFIG_FILES" ;; #( 21324 *) : 21325 set x $CONFIG_FILES ;; #( 21326 *) : 21327 ;; 21328 esac 21329 shift 21330 # Used to flag and report bootstrapping failures. 21331 am_rc=0 21332 for am_mf 21333 do 21334 # Strip MF so we end up with the name of the file. 21335 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21336 # Check whether this is an Automake generated Makefile which includes 21337 # dependency-tracking related rules and includes. 21338 # Grep'ing the whole file directly is not great: AIX grep has a line 21339 # limit of 2048, but all sed's we know have understand at least 4000. 21340 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21341 || continue 21342 am_dirpart=`$as_dirname -- "$am_mf" || 21343 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21344 X"$am_mf" : 'X\(//\)[^/]' \| \ 21345 X"$am_mf" : 'X\(//\)$' \| \ 21346 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21347 printf "%s\n" X"$am_mf" | 21348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21349 s//\1/ 21350 q 21351 } 21352 /^X\(\/\/\)[^/].*/{ 21353 s//\1/ 21354 q 21355 } 21356 /^X\(\/\/\)$/{ 21357 s//\1/ 21358 q 21359 } 21360 /^X\(\/\).*/{ 21361 s//\1/ 21362 q 21363 } 21364 s/.*/./; q'` 21365 am_filepart=`$as_basename -- "$am_mf" || 21366 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21367 X"$am_mf" : 'X\(//\)$' \| \ 21368 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21369 printf "%s\n" X/"$am_mf" | 21370 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21371 s//\1/ 21372 q 21373 } 21374 /^X\/\(\/\/\)$/{ 21375 s//\1/ 21376 q 21377 } 21378 /^X\/\(\/\).*/{ 21379 s//\1/ 21380 q 21381 } 21382 s/.*/./; q'` 21383 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21384 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21385 | $MAKE -f - am--depfiles" >&5 21386 (cd "$am_dirpart" \ 21387 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21388 | $MAKE -f - am--depfiles) >&5 2>&5 21389 ac_status=$? 21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21391 (exit $ac_status); } || am_rc=$? 21392 done 21393 if test $am_rc -ne 0; then 21394 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21395 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21396 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21397 for automatic dependency tracking. If GNU make was not used, consider 21398 re-running the configure script with MAKE=\"gmake\" (or whatever is 21399 necessary). You can also try re-running configure with the 21400 '--disable-dependency-tracking' option to at least be able to build 21401 the package (albeit without support for automatic dependency tracking). 21402 See \`config.log' for more details" "$LINENO" 5; } 21403 fi 21404 { am_dirpart=; unset am_dirpart;} 21405 { am_filepart=; unset am_filepart;} 21406 { am_mf=; unset am_mf;} 21407 { am_rc=; unset am_rc;} 21408 rm -f conftest-deps.mk 21409 } 21410 ;; 21411 "libtool":C) 21412 21413 # See if we are running on zsh, and set the options that allow our 21414 # commands through without removal of \ escapes. 21415 if test -n "${ZSH_VERSION+set}"; then 21416 setopt NO_GLOB_SUBST 21417 fi 21418 21419 cfgfile=${ofile}T 21420 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21421 $RM "$cfgfile" 21422 21423 cat <<_LT_EOF >> "$cfgfile" 21424 #! $SHELL 21425 # Generated automatically by $as_me ($PACKAGE) $VERSION 21426 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21427 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21428 21429 # Provide generalized library-building support services. 21430 # Written by Gordon Matzigkeit, 1996 21431 21432 # Copyright (C) 2014 Free Software Foundation, Inc. 21433 # This is free software; see the source for copying conditions. There is NO 21434 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21435 21436 # GNU Libtool is free software; you can redistribute it and/or modify 21437 # it under the terms of the GNU General Public License as published by 21438 # the Free Software Foundation; either version 2 of of the License, or 21439 # (at your option) any later version. 21440 # 21441 # As a special exception to the GNU General Public License, if you 21442 # distribute this file as part of a program or library that is built 21443 # using GNU Libtool, you may include this file under the same 21444 # distribution terms that you use for the rest of that program. 21445 # 21446 # GNU Libtool is distributed in the hope that it will be useful, but 21447 # WITHOUT ANY WARRANTY; without even the implied warranty of 21448 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21449 # GNU General Public License for more details. 21450 # 21451 # You should have received a copy of the GNU General Public License 21452 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21453 21454 21455 # The names of the tagged configurations supported by this script. 21456 available_tags='' 21457 21458 # Configured defaults for sys_lib_dlsearch_path munging. 21459 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21460 21461 # ### BEGIN LIBTOOL CONFIG 21462 21463 # Whether or not to build static libraries. 21464 build_old_libs=$enable_static 21465 21466 # Which release of libtool.m4 was used? 21467 macro_version=$macro_version 21468 macro_revision=$macro_revision 21469 21470 # Whether or not to build shared libraries. 21471 build_libtool_libs=$enable_shared 21472 21473 # What type of objects to build. 21474 pic_mode=$pic_mode 21475 21476 # Whether or not to optimize for fast installation. 21477 fast_install=$enable_fast_install 21478 21479 # Shared archive member basename,for filename based shared library versioning on AIX. 21480 shared_archive_member_spec=$shared_archive_member_spec 21481 21482 # Shell to use when invoking shell scripts. 21483 SHELL=$lt_SHELL 21484 21485 # An echo program that protects backslashes. 21486 ECHO=$lt_ECHO 21487 21488 # The PATH separator for the build system. 21489 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21490 21491 # The host system. 21492 host_alias=$host_alias 21493 host=$host 21494 host_os=$host_os 21495 21496 # The build system. 21497 build_alias=$build_alias 21498 build=$build 21499 build_os=$build_os 21500 21501 # A sed program that does not truncate output. 21502 SED=$lt_SED 21503 21504 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21505 Xsed="\$SED -e 1s/^X//" 21506 21507 # A grep program that handles long lines. 21508 GREP=$lt_GREP 21509 21510 # An ERE matcher. 21511 EGREP=$lt_EGREP 21512 21513 # A literal string matcher. 21514 FGREP=$lt_FGREP 21515 21516 # A BSD- or MS-compatible name lister. 21517 NM=$lt_NM 21518 21519 # Whether we need soft or hard links. 21520 LN_S=$lt_LN_S 21521 21522 # What is the maximum length of a command? 21523 max_cmd_len=$max_cmd_len 21524 21525 # Object file suffix (normally "o"). 21526 objext=$ac_objext 21527 21528 # Executable file suffix (normally ""). 21529 exeext=$exeext 21530 21531 # whether the shell understands "unset". 21532 lt_unset=$lt_unset 21533 21534 # turn spaces into newlines. 21535 SP2NL=$lt_lt_SP2NL 21536 21537 # turn newlines into spaces. 21538 NL2SP=$lt_lt_NL2SP 21539 21540 # convert \$build file names to \$host format. 21541 to_host_file_cmd=$lt_cv_to_host_file_cmd 21542 21543 # convert \$build files to toolchain format. 21544 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21545 21546 # A file(cmd) program that detects file types. 21547 FILECMD=$lt_FILECMD 21548 21549 # An object symbol dumper. 21550 OBJDUMP=$lt_OBJDUMP 21551 21552 # Method to check whether dependent libraries are shared objects. 21553 deplibs_check_method=$lt_deplibs_check_method 21554 21555 # Command to use when deplibs_check_method = "file_magic". 21556 file_magic_cmd=$lt_file_magic_cmd 21557 21558 # How to find potential files when deplibs_check_method = "file_magic". 21559 file_magic_glob=$lt_file_magic_glob 21560 21561 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21562 want_nocaseglob=$lt_want_nocaseglob 21563 21564 # DLL creation program. 21565 DLLTOOL=$lt_DLLTOOL 21566 21567 # Command to associate shared and link libraries. 21568 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21569 21570 # The archiver. 21571 AR=$lt_AR 21572 21573 # Flags to create an archive (by configure). 21574 lt_ar_flags=$lt_ar_flags 21575 21576 # Flags to create an archive. 21577 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21578 21579 # How to feed a file listing to the archiver. 21580 archiver_list_spec=$lt_archiver_list_spec 21581 21582 # A symbol stripping program. 21583 STRIP=$lt_STRIP 21584 21585 # Commands used to install an old-style archive. 21586 RANLIB=$lt_RANLIB 21587 old_postinstall_cmds=$lt_old_postinstall_cmds 21588 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21589 21590 # Whether to use a lock for old archive extraction. 21591 lock_old_archive_extraction=$lock_old_archive_extraction 21592 21593 # A C compiler. 21594 LTCC=$lt_CC 21595 21596 # LTCC compiler flags. 21597 LTCFLAGS=$lt_CFLAGS 21598 21599 # Take the output of nm and produce a listing of raw symbols and C names. 21600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21601 21602 # Transform the output of nm in a proper C declaration. 21603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21604 21605 # Transform the output of nm into a list of symbols to manually relocate. 21606 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21607 21608 # Transform the output of nm in a C name address pair. 21609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21610 21611 # Transform the output of nm in a C name address pair when lib prefix is needed. 21612 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21613 21614 # The name lister interface. 21615 nm_interface=$lt_lt_cv_nm_interface 21616 21617 # Specify filename containing input files for \$NM. 21618 nm_file_list_spec=$lt_nm_file_list_spec 21619 21620 # The root where to search for dependent libraries,and where our libraries should be installed. 21621 lt_sysroot=$lt_sysroot 21622 21623 # Command to truncate a binary pipe. 21624 lt_truncate_bin=$lt_lt_cv_truncate_bin 21625 21626 # The name of the directory that contains temporary libtool files. 21627 objdir=$objdir 21628 21629 # Used to examine libraries when file_magic_cmd begins with "file". 21630 MAGIC_CMD=$MAGIC_CMD 21631 21632 # Must we lock files when doing compilation? 21633 need_locks=$lt_need_locks 21634 21635 # Manifest tool. 21636 MANIFEST_TOOL=$lt_MANIFEST_TOOL 21637 21638 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21639 DSYMUTIL=$lt_DSYMUTIL 21640 21641 # Tool to change global to local symbols on Mac OS X. 21642 NMEDIT=$lt_NMEDIT 21643 21644 # Tool to manipulate fat objects and archives on Mac OS X. 21645 LIPO=$lt_LIPO 21646 21647 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 21648 OTOOL=$lt_OTOOL 21649 21650 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21651 OTOOL64=$lt_OTOOL64 21652 21653 # Old archive suffix (normally "a"). 21654 libext=$libext 21655 21656 # Shared library suffix (normally ".so"). 21657 shrext_cmds=$lt_shrext_cmds 21658 21659 # The commands to extract the exported symbol list from a shared archive. 21660 extract_expsyms_cmds=$lt_extract_expsyms_cmds 21661 21662 # Variables whose values should be saved in libtool wrapper scripts and 21663 # restored at link time. 21664 variables_saved_for_relink=$lt_variables_saved_for_relink 21665 21666 # Do we need the "lib" prefix for modules? 21667 need_lib_prefix=$need_lib_prefix 21668 21669 # Do we need a version for libraries? 21670 need_version=$need_version 21671 21672 # Library versioning type. 21673 version_type=$version_type 21674 21675 # Shared library runtime path variable. 21676 runpath_var=$runpath_var 21677 21678 # Shared library path variable. 21679 shlibpath_var=$shlibpath_var 21680 21681 # Is shlibpath searched before the hard-coded library search path? 21682 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21683 21684 # Format of library name prefix. 21685 libname_spec=$lt_libname_spec 21686 21687 # List of archive names. First name is the real one, the rest are links. 21688 # The last name is the one that the linker finds with -lNAME 21689 library_names_spec=$lt_library_names_spec 21690 21691 # The coded name of the library, if different from the real name. 21692 soname_spec=$lt_soname_spec 21693 21694 # Permission mode override for installation of shared libraries. 21695 install_override_mode=$lt_install_override_mode 21696 21697 # Command to use after installation of a shared archive. 21698 postinstall_cmds=$lt_postinstall_cmds 21699 21700 # Command to use after uninstallation of a shared archive. 21701 postuninstall_cmds=$lt_postuninstall_cmds 21702 21703 # Commands used to finish a libtool library installation in a directory. 21704 finish_cmds=$lt_finish_cmds 21705 21706 # As "finish_cmds", except a single script fragment to be evaled but 21707 # not shown. 21708 finish_eval=$lt_finish_eval 21709 21710 # Whether we should hardcode library paths into libraries. 21711 hardcode_into_libs=$hardcode_into_libs 21712 21713 # Compile-time system search path for libraries. 21714 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21715 21716 # Detected run-time system search path for libraries. 21717 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21718 21719 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21720 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21721 21722 # Whether dlopen is supported. 21723 dlopen_support=$enable_dlopen 21724 21725 # Whether dlopen of programs is supported. 21726 dlopen_self=$enable_dlopen_self 21727 21728 # Whether dlopen of statically linked programs is supported. 21729 dlopen_self_static=$enable_dlopen_self_static 21730 21731 # Commands to strip libraries. 21732 old_striplib=$lt_old_striplib 21733 striplib=$lt_striplib 21734 21735 21736 # The linker used to build libraries. 21737 LD=$lt_LD 21738 21739 # How to create reloadable object files. 21740 reload_flag=$lt_reload_flag 21741 reload_cmds=$lt_reload_cmds 21742 21743 # Commands used to build an old-style archive. 21744 old_archive_cmds=$lt_old_archive_cmds 21745 21746 # A language specific compiler. 21747 CC=$lt_compiler 21748 21749 # Is the compiler the GNU compiler? 21750 with_gcc=$GCC 21751 21752 # Compiler flag to turn off builtin functions. 21753 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21754 21755 # Additional compiler flags for building library objects. 21756 pic_flag=$lt_lt_prog_compiler_pic 21757 21758 # How to pass a linker flag through the compiler. 21759 wl=$lt_lt_prog_compiler_wl 21760 21761 # Compiler flag to prevent dynamic linking. 21762 link_static_flag=$lt_lt_prog_compiler_static 21763 21764 # Does compiler simultaneously support -c and -o options? 21765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21766 21767 # Whether or not to add -lc for building shared libraries. 21768 build_libtool_need_lc=$archive_cmds_need_lc 21769 21770 # Whether or not to disallow shared libs when runtime libs are static. 21771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21772 21773 # Compiler flag to allow reflexive dlopens. 21774 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21775 21776 # Compiler flag to generate shared objects directly from archives. 21777 whole_archive_flag_spec=$lt_whole_archive_flag_spec 21778 21779 # Whether the compiler copes with passing no objects directly. 21780 compiler_needs_object=$lt_compiler_needs_object 21781 21782 # Create an old-style archive from a shared archive. 21783 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21784 21785 # Create a temporary old-style archive to link instead of a shared archive. 21786 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21787 21788 # Commands used to build a shared archive. 21789 archive_cmds=$lt_archive_cmds 21790 archive_expsym_cmds=$lt_archive_expsym_cmds 21791 21792 # Commands used to build a loadable module if different from building 21793 # a shared archive. 21794 module_cmds=$lt_module_cmds 21795 module_expsym_cmds=$lt_module_expsym_cmds 21796 21797 # Whether we are building with GNU ld or not. 21798 with_gnu_ld=$lt_with_gnu_ld 21799 21800 # Flag that allows shared libraries with undefined symbols to be built. 21801 allow_undefined_flag=$lt_allow_undefined_flag 21802 21803 # Flag that enforces no undefined symbols. 21804 no_undefined_flag=$lt_no_undefined_flag 21805 21806 # Flag to hardcode \$libdir into a binary during linking. 21807 # This must work even if \$libdir does not exist 21808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21809 21810 # Whether we need a single "-rpath" flag with a separated argument. 21811 hardcode_libdir_separator=$lt_hardcode_libdir_separator 21812 21813 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21814 # DIR into the resulting binary. 21815 hardcode_direct=$hardcode_direct 21816 21817 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21818 # DIR into the resulting binary and the resulting library dependency is 21819 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 21820 # library is relocated. 21821 hardcode_direct_absolute=$hardcode_direct_absolute 21822 21823 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21824 # into the resulting binary. 21825 hardcode_minus_L=$hardcode_minus_L 21826 21827 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21828 # into the resulting binary. 21829 hardcode_shlibpath_var=$hardcode_shlibpath_var 21830 21831 # Set to "yes" if building a shared library automatically hardcodes DIR 21832 # into the library and all subsequent libraries and executables linked 21833 # against it. 21834 hardcode_automatic=$hardcode_automatic 21835 21836 # Set to yes if linker adds runtime paths of dependent libraries 21837 # to runtime path list. 21838 inherit_rpath=$inherit_rpath 21839 21840 # Whether libtool must link a program against all its dependency libraries. 21841 link_all_deplibs=$link_all_deplibs 21842 21843 # Set to "yes" if exported symbols are required. 21844 always_export_symbols=$always_export_symbols 21845 21846 # The commands to list exported symbols. 21847 export_symbols_cmds=$lt_export_symbols_cmds 21848 21849 # Symbols that should not be listed in the preloaded symbols. 21850 exclude_expsyms=$lt_exclude_expsyms 21851 21852 # Symbols that must always be exported. 21853 include_expsyms=$lt_include_expsyms 21854 21855 # Commands necessary for linking programs (against libraries) with templates. 21856 prelink_cmds=$lt_prelink_cmds 21857 21858 # Commands necessary for finishing linking programs. 21859 postlink_cmds=$lt_postlink_cmds 21860 21861 # Specify filename containing input files. 21862 file_list_spec=$lt_file_list_spec 21863 21864 # How to hardcode a shared library path into an executable. 21865 hardcode_action=$hardcode_action 21866 21867 # ### END LIBTOOL CONFIG 21868 21869 _LT_EOF 21870 21871 cat <<'_LT_EOF' >> "$cfgfile" 21872 21873 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21874 21875 # func_munge_path_list VARIABLE PATH 21876 # ----------------------------------- 21877 # VARIABLE is name of variable containing _space_ separated list of 21878 # directories to be munged by the contents of PATH, which is string 21879 # having a format: 21880 # "DIR[:DIR]:" 21881 # string "DIR[ DIR]" will be prepended to VARIABLE 21882 # ":DIR[:DIR]" 21883 # string "DIR[ DIR]" will be appended to VARIABLE 21884 # "DIRP[:DIRP]::[DIRA:]DIRA" 21885 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21886 # "DIRA[ DIRA]" will be appended to VARIABLE 21887 # "DIR[:DIR]" 21888 # VARIABLE will be replaced by "DIR[ DIR]" 21889 func_munge_path_list () 21890 { 21891 case x$2 in 21892 x) 21893 ;; 21894 *:) 21895 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21896 ;; 21897 x:*) 21898 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21899 ;; 21900 *::*) 21901 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21902 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21903 ;; 21904 *) 21905 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21906 ;; 21907 esac 21908 } 21909 21910 21911 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21912 func_cc_basename () 21913 { 21914 for cc_temp in $*""; do 21915 case $cc_temp in 21916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21918 \-*) ;; 21919 *) break;; 21920 esac 21921 done 21922 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21923 } 21924 21925 21926 # ### END FUNCTIONS SHARED WITH CONFIGURE 21927 21928 _LT_EOF 21929 21930 case $host_os in 21931 aix3*) 21932 cat <<\_LT_EOF >> "$cfgfile" 21933 # AIX sometimes has problems with the GCC collect2 program. For some 21934 # reason, if we set the COLLECT_NAMES environment variable, the problems 21935 # vanish in a puff of smoke. 21936 if test set != "${COLLECT_NAMES+set}"; then 21937 COLLECT_NAMES= 21938 export COLLECT_NAMES 21939 fi 21940 _LT_EOF 21941 ;; 21942 esac 21943 21944 21945 21946 ltmain=$ac_aux_dir/ltmain.sh 21947 21948 21949 # We use sed instead of cat because bash on DJGPP gets confused if 21950 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21951 # text mode, it properly converts lines to CR/LF. This bash problem 21952 # is reportedly fixed, but why not run on old versions too? 21953 $SED '$q' "$ltmain" >> "$cfgfile" \ 21954 || (rm -f "$cfgfile"; exit 1) 21955 21956 mv -f "$cfgfile" "$ofile" || 21957 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21958 chmod +x "$ofile" 21959 21960 ;; 21961 21962 esac 21963 done # for ac_tag 21964 21965 21966 as_fn_exit 0 21967 _ACEOF 21968 ac_clean_files=$ac_clean_files_save 21969 21970 test $ac_write_fail = 0 || 21971 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21972 21973 21974 # configure is writing to config.log, and then calls config.status. 21975 # config.status does its own redirection, appending to config.log. 21976 # Unfortunately, on DOS this fails, as config.log is still kept open 21977 # by configure, so config.status won't be able to write to it; its 21978 # output is simply discarded. So we exec the FD to /dev/null, 21979 # effectively closing config.log, so it can be properly (re)opened and 21980 # appended to by config.status. When coming back to configure, we 21981 # need to make the FD available again. 21982 if test "$no_create" != yes; then 21983 ac_cs_success=: 21984 ac_config_status_args= 21985 test "$silent" = yes && 21986 ac_config_status_args="$ac_config_status_args --quiet" 21987 exec 5>/dev/null 21988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21989 exec 5>>config.log 21990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21991 # would make configure fail if this is the last instruction. 21992 $ac_cs_success || as_fn_exit 1 21993 fi 21994 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21996 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21997 fi 21998 21999 22000