1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.71 for libXft 2.3.9. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/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 187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 PATH=/empty FPATH=/empty; export PATH FPATH 192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 194 test \$(( 1 + 1 )) = 2 || 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/lib/libXft/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='libXft' 624 PACKAGE_TARNAME='libXft' 625 PACKAGE_VERSION='2.3.9' 626 PACKAGE_STRING='libXft 2.3.9' 627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXft/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 FONTCONFIG_LIBS 668 FONTCONFIG_CFLAGS 669 FREETYPE_LIBS 670 FREETYPE_CFLAGS 671 XRENDER_LIBS 672 XRENDER_CFLAGS 673 XFT_LT_VERSION 674 MAN_SUBSTS 675 XORG_MAN_PAGE 676 ADMIN_MAN_DIR 677 DRIVER_MAN_DIR 678 MISC_MAN_DIR 679 FILE_MAN_DIR 680 LIB_MAN_DIR 681 APP_MAN_DIR 682 ADMIN_MAN_SUFFIX 683 DRIVER_MAN_SUFFIX 684 MISC_MAN_SUFFIX 685 FILE_MAN_SUFFIX 686 LIB_MAN_SUFFIX 687 APP_MAN_SUFFIX 688 INSTALL_CMD 689 PKG_CONFIG_LIBDIR 690 PKG_CONFIG_PATH 691 PKG_CONFIG 692 CHANGELOG_CMD 693 STRICT_CFLAGS 694 CWARNFLAGS 695 BASE_CFLAGS 696 LT_SYS_LIBRARY_PATH 697 OTOOL64 698 OTOOL 699 LIPO 700 NMEDIT 701 DSYMUTIL 702 MANIFEST_TOOL 703 RANLIB 704 ac_ct_AR 705 AR 706 DLLTOOL 707 OBJDUMP 708 FILECMD 709 LN_S 710 NM 711 ac_ct_DUMPBIN 712 DUMPBIN 713 LD 714 FGREP 715 EGREP 716 GREP 717 SED 718 am__fastdepCC_FALSE 719 am__fastdepCC_TRUE 720 CCDEPMODE 721 am__nodep 722 AMDEPBACKSLASH 723 AMDEP_FALSE 724 AMDEP_TRUE 725 am__include 726 DEPDIR 727 OBJEXT 728 EXEEXT 729 ac_ct_CC 730 CPPFLAGS 731 LDFLAGS 732 CFLAGS 733 CC 734 host_os 735 host_vendor 736 host_cpu 737 host 738 build_os 739 build_vendor 740 build_cpu 741 build 742 LIBTOOL 743 AM_BACKSLASH 744 AM_DEFAULT_VERBOSITY 745 AM_DEFAULT_V 746 AM_V 747 CSCOPE 748 ETAGS 749 CTAGS 750 am__untar 751 am__tar 752 AMTAR 753 am__leading_dot 754 SET_MAKE 755 AWK 756 mkdir_p 757 MKDIR_P 758 INSTALL_STRIP_PROGRAM 759 STRIP 760 install_sh 761 MAKEINFO 762 AUTOHEADER 763 AUTOMAKE 764 AUTOCONF 765 ACLOCAL 766 VERSION 767 PACKAGE 768 CYGPATH_W 769 am__isrc 770 INSTALL_DATA 771 INSTALL_SCRIPT 772 INSTALL_PROGRAM 773 target_alias 774 host_alias 775 build_alias 776 LIBS 777 ECHO_T 778 ECHO_N 779 ECHO_C 780 DEFS 781 mandir 782 localedir 783 libdir 784 psdir 785 pdfdir 786 dvidir 787 htmldir 788 infodir 789 docdir 790 oldincludedir 791 includedir 792 runstatedir 793 localstatedir 794 sharedstatedir 795 sysconfdir 796 datadir 797 datarootdir 798 libexecdir 799 sbindir 800 bindir 801 program_transform_name 802 prefix 803 exec_prefix 804 PACKAGE_URL 805 PACKAGE_BUGREPORT 806 PACKAGE_STRING 807 PACKAGE_VERSION 808 PACKAGE_TARNAME 809 PACKAGE_NAME 810 PATH_SEPARATOR 811 SHELL 812 am__quote' 813 ac_subst_files='' 814 ac_user_opts=' 815 enable_option_checking 816 enable_silent_rules 817 enable_shared 818 enable_static 819 with_pic 820 enable_fast_install 821 with_aix_soname 822 enable_dependency_tracking 823 with_gnu_ld 824 with_sysroot 825 enable_libtool_lock 826 enable_selective_werror 827 enable_strict_compilation 828 ' 829 ac_precious_vars='build_alias 830 host_alias 831 target_alias 832 CC 833 CFLAGS 834 LDFLAGS 835 LIBS 836 CPPFLAGS 837 LT_SYS_LIBRARY_PATH 838 PKG_CONFIG 839 PKG_CONFIG_PATH 840 PKG_CONFIG_LIBDIR 841 XRENDER_CFLAGS 842 XRENDER_LIBS 843 FREETYPE_CFLAGS 844 FREETYPE_LIBS 845 FONTCONFIG_CFLAGS 846 FONTCONFIG_LIBS' 847 848 849 # Initialize some variables set by options. 850 ac_init_help= 851 ac_init_version=false 852 ac_unrecognized_opts= 853 ac_unrecognized_sep= 854 # The variables have the same names as the options, with 855 # dashes changed to underlines. 856 cache_file=/dev/null 857 exec_prefix=NONE 858 no_create= 859 no_recursion= 860 prefix=NONE 861 program_prefix=NONE 862 program_suffix=NONE 863 program_transform_name=s,x,x, 864 silent= 865 site= 866 srcdir= 867 verbose= 868 x_includes=NONE 869 x_libraries=NONE 870 871 # Installation directory options. 872 # These are left unexpanded so users can "make install exec_prefix=/foo" 873 # and all the variables that are supposed to be based on exec_prefix 874 # by default will actually change. 875 # Use braces instead of parens because sh, perl, etc. also accept them. 876 # (The list follows the same order as the GNU Coding Standards.) 877 bindir='${exec_prefix}/bin' 878 sbindir='${exec_prefix}/sbin' 879 libexecdir='${exec_prefix}/libexec' 880 datarootdir='${prefix}/share' 881 datadir='${datarootdir}' 882 sysconfdir='${prefix}/etc' 883 sharedstatedir='${prefix}/com' 884 localstatedir='${prefix}/var' 885 runstatedir='${localstatedir}/run' 886 includedir='${prefix}/include' 887 oldincludedir='/usr/include' 888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 889 infodir='${datarootdir}/info' 890 htmldir='${docdir}' 891 dvidir='${docdir}' 892 pdfdir='${docdir}' 893 psdir='${docdir}' 894 libdir='${exec_prefix}/lib' 895 localedir='${datarootdir}/locale' 896 mandir='${datarootdir}/man' 897 898 ac_prev= 899 ac_dashdash= 900 for ac_option 901 do 902 # If the previous option needs an argument, assign it. 903 if test -n "$ac_prev"; then 904 eval $ac_prev=\$ac_option 905 ac_prev= 906 continue 907 fi 908 909 case $ac_option in 910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 911 *=) ac_optarg= ;; 912 *) ac_optarg=yes ;; 913 esac 914 915 case $ac_dashdash$ac_option in 916 --) 917 ac_dashdash=yes ;; 918 919 -bindir | --bindir | --bindi | --bind | --bin | --bi) 920 ac_prev=bindir ;; 921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 922 bindir=$ac_optarg ;; 923 924 -build | --build | --buil | --bui | --bu) 925 ac_prev=build_alias ;; 926 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 927 build_alias=$ac_optarg ;; 928 929 -cache-file | --cache-file | --cache-fil | --cache-fi \ 930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 931 ac_prev=cache_file ;; 932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 934 cache_file=$ac_optarg ;; 935 936 --config-cache | -C) 937 cache_file=config.cache ;; 938 939 -datadir | --datadir | --datadi | --datad) 940 ac_prev=datadir ;; 941 -datadir=* | --datadir=* | --datadi=* | --datad=*) 942 datadir=$ac_optarg ;; 943 944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 945 | --dataroo | --dataro | --datar) 946 ac_prev=datarootdir ;; 947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 949 datarootdir=$ac_optarg ;; 950 951 -disable-* | --disable-*) 952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 953 # Reject names that are not valid shell variable names. 954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 955 as_fn_error $? "invalid feature name: \`$ac_useropt'" 956 ac_useropt_orig=$ac_useropt 957 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 958 case $ac_user_opts in 959 *" 960 "enable_$ac_useropt" 961 "*) ;; 962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 963 ac_unrecognized_sep=', ';; 964 esac 965 eval enable_$ac_useropt=no ;; 966 967 -docdir | --docdir | --docdi | --doc | --do) 968 ac_prev=docdir ;; 969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 970 docdir=$ac_optarg ;; 971 972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 973 ac_prev=dvidir ;; 974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 975 dvidir=$ac_optarg ;; 976 977 -enable-* | --enable-*) 978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 979 # Reject names that are not valid shell variable names. 980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 981 as_fn_error $? "invalid feature name: \`$ac_useropt'" 982 ac_useropt_orig=$ac_useropt 983 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 984 case $ac_user_opts in 985 *" 986 "enable_$ac_useropt" 987 "*) ;; 988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 989 ac_unrecognized_sep=', ';; 990 esac 991 eval enable_$ac_useropt=\$ac_optarg ;; 992 993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 995 | --exec | --exe | --ex) 996 ac_prev=exec_prefix ;; 997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 999 | --exec=* | --exe=* | --ex=*) 1000 exec_prefix=$ac_optarg ;; 1001 1002 -gas | --gas | --ga | --g) 1003 # Obsolete; use --with-gas. 1004 with_gas=yes ;; 1005 1006 -help | --help | --hel | --he | -h) 1007 ac_init_help=long ;; 1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1009 ac_init_help=recursive ;; 1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1011 ac_init_help=short ;; 1012 1013 -host | --host | --hos | --ho) 1014 ac_prev=host_alias ;; 1015 -host=* | --host=* | --hos=* | --ho=*) 1016 host_alias=$ac_optarg ;; 1017 1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1019 ac_prev=htmldir ;; 1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1021 | --ht=*) 1022 htmldir=$ac_optarg ;; 1023 1024 -includedir | --includedir | --includedi | --included | --include \ 1025 | --includ | --inclu | --incl | --inc) 1026 ac_prev=includedir ;; 1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1028 | --includ=* | --inclu=* | --incl=* | --inc=*) 1029 includedir=$ac_optarg ;; 1030 1031 -infodir | --infodir | --infodi | --infod | --info | --inf) 1032 ac_prev=infodir ;; 1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1034 infodir=$ac_optarg ;; 1035 1036 -libdir | --libdir | --libdi | --libd) 1037 ac_prev=libdir ;; 1038 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1039 libdir=$ac_optarg ;; 1040 1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1042 | --libexe | --libex | --libe) 1043 ac_prev=libexecdir ;; 1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1045 | --libexe=* | --libex=* | --libe=*) 1046 libexecdir=$ac_optarg ;; 1047 1048 -localedir | --localedir | --localedi | --localed | --locale) 1049 ac_prev=localedir ;; 1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1051 localedir=$ac_optarg ;; 1052 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1054 | --localstate | --localstat | --localsta | --localst | --locals) 1055 ac_prev=localstatedir ;; 1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1058 localstatedir=$ac_optarg ;; 1059 1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1061 ac_prev=mandir ;; 1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1063 mandir=$ac_optarg ;; 1064 1065 -nfp | --nfp | --nf) 1066 # Obsolete; use --without-fp. 1067 with_fp=no ;; 1068 1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1070 | --no-cr | --no-c | -n) 1071 no_create=yes ;; 1072 1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1075 no_recursion=yes ;; 1076 1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1079 | --oldin | --oldi | --old | --ol | --o) 1080 ac_prev=oldincludedir ;; 1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1084 oldincludedir=$ac_optarg ;; 1085 1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1087 ac_prev=prefix ;; 1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1089 prefix=$ac_optarg ;; 1090 1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1092 | --program-pre | --program-pr | --program-p) 1093 ac_prev=program_prefix ;; 1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1096 program_prefix=$ac_optarg ;; 1097 1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1099 | --program-suf | --program-su | --program-s) 1100 ac_prev=program_suffix ;; 1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1103 program_suffix=$ac_optarg ;; 1104 1105 -program-transform-name | --program-transform-name \ 1106 | --program-transform-nam | --program-transform-na \ 1107 | --program-transform-n | --program-transform- \ 1108 | --program-transform | --program-transfor \ 1109 | --program-transfo | --program-transf \ 1110 | --program-trans | --program-tran \ 1111 | --progr-tra | --program-tr | --program-t) 1112 ac_prev=program_transform_name ;; 1113 -program-transform-name=* | --program-transform-name=* \ 1114 | --program-transform-nam=* | --program-transform-na=* \ 1115 | --program-transform-n=* | --program-transform-=* \ 1116 | --program-transform=* | --program-transfor=* \ 1117 | --program-transfo=* | --program-transf=* \ 1118 | --program-trans=* | --program-tran=* \ 1119 | --progr-tra=* | --program-tr=* | --program-t=*) 1120 program_transform_name=$ac_optarg ;; 1121 1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1123 ac_prev=pdfdir ;; 1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1125 pdfdir=$ac_optarg ;; 1126 1127 -psdir | --psdir | --psdi | --psd | --ps) 1128 ac_prev=psdir ;; 1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1130 psdir=$ac_optarg ;; 1131 1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1133 | -silent | --silent | --silen | --sile | --sil) 1134 silent=yes ;; 1135 1136 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1137 | --runstate | --runstat | --runsta | --runst | --runs \ 1138 | --run | --ru | --r) 1139 ac_prev=runstatedir ;; 1140 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1141 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1142 | --run=* | --ru=* | --r=*) 1143 runstatedir=$ac_optarg ;; 1144 1145 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1146 ac_prev=sbindir ;; 1147 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1148 | --sbi=* | --sb=*) 1149 sbindir=$ac_optarg ;; 1150 1151 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1152 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1153 | --sharedst | --shareds | --shared | --share | --shar \ 1154 | --sha | --sh) 1155 ac_prev=sharedstatedir ;; 1156 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1157 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1158 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1159 | --sha=* | --sh=*) 1160 sharedstatedir=$ac_optarg ;; 1161 1162 -site | --site | --sit) 1163 ac_prev=site ;; 1164 -site=* | --site=* | --sit=*) 1165 site=$ac_optarg ;; 1166 1167 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1168 ac_prev=srcdir ;; 1169 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1170 srcdir=$ac_optarg ;; 1171 1172 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1173 | --syscon | --sysco | --sysc | --sys | --sy) 1174 ac_prev=sysconfdir ;; 1175 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1176 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1177 sysconfdir=$ac_optarg ;; 1178 1179 -target | --target | --targe | --targ | --tar | --ta | --t) 1180 ac_prev=target_alias ;; 1181 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1182 target_alias=$ac_optarg ;; 1183 1184 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1185 verbose=yes ;; 1186 1187 -version | --version | --versio | --versi | --vers | -V) 1188 ac_init_version=: ;; 1189 1190 -with-* | --with-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error $? "invalid package name: \`$ac_useropt'" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199 "with_$ac_useropt" 1200 "*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval with_$ac_useropt=\$ac_optarg ;; 1205 1206 -without-* | --without-*) 1207 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1208 # Reject names that are not valid shell variable names. 1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 as_fn_error $? "invalid package name: \`$ac_useropt'" 1211 ac_useropt_orig=$ac_useropt 1212 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1213 case $ac_user_opts in 1214 *" 1215 "with_$ac_useropt" 1216 "*) ;; 1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1218 ac_unrecognized_sep=', ';; 1219 esac 1220 eval with_$ac_useropt=no ;; 1221 1222 --x) 1223 # Obsolete; use --with-x. 1224 with_x=yes ;; 1225 1226 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1227 | --x-incl | --x-inc | --x-in | --x-i) 1228 ac_prev=x_includes ;; 1229 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1230 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1231 x_includes=$ac_optarg ;; 1232 1233 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1234 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1235 ac_prev=x_libraries ;; 1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1238 x_libraries=$ac_optarg ;; 1239 1240 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1241 Try \`$0 --help' for more information" 1242 ;; 1243 1244 *=*) 1245 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1246 # Reject names that are not valid shell variable names. 1247 case $ac_envvar in #( 1248 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1249 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1250 esac 1251 eval $ac_envvar=\$ac_optarg 1252 export $ac_envvar ;; 1253 1254 *) 1255 # FIXME: should be removed in autoconf 3.0. 1256 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1257 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1258 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1259 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1260 ;; 1261 1262 esac 1263 done 1264 1265 if test -n "$ac_prev"; then 1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1267 as_fn_error $? "missing argument to $ac_option" 1268 fi 1269 1270 if test -n "$ac_unrecognized_opts"; then 1271 case $enable_option_checking in 1272 no) ;; 1273 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1274 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1275 esac 1276 fi 1277 1278 # Check all directory arguments for consistency. 1279 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1280 datadir sysconfdir sharedstatedir localstatedir includedir \ 1281 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1282 libdir localedir mandir runstatedir 1283 do 1284 eval ac_val=\$$ac_var 1285 # Remove trailing slashes. 1286 case $ac_val in 1287 */ ) 1288 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1289 eval $ac_var=\$ac_val;; 1290 esac 1291 # Be sure to have absolute directory names. 1292 case $ac_val in 1293 [\\/$]* | ?:[\\/]* ) continue;; 1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1295 esac 1296 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1297 done 1298 1299 # There might be people who depend on the old broken behavior: `$host' 1300 # used to hold the argument of --host etc. 1301 # FIXME: To remove some day. 1302 build=$build_alias 1303 host=$host_alias 1304 target=$target_alias 1305 1306 # FIXME: To remove some day. 1307 if test "x$host_alias" != x; then 1308 if test "x$build_alias" = x; then 1309 cross_compiling=maybe 1310 elif test "x$build_alias" != "x$host_alias"; then 1311 cross_compiling=yes 1312 fi 1313 fi 1314 1315 ac_tool_prefix= 1316 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1317 1318 test "$silent" = yes && exec 6>/dev/null 1319 1320 1321 ac_pwd=`pwd` && test -n "$ac_pwd" && 1322 ac_ls_di=`ls -di .` && 1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1324 as_fn_error $? "working directory cannot be determined" 1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1326 as_fn_error $? "pwd does not report name of working directory" 1327 1328 1329 # Find the source files, if location was not specified. 1330 if test -z "$srcdir"; then 1331 ac_srcdir_defaulted=yes 1332 # Try the directory containing this script, then the parent directory. 1333 ac_confdir=`$as_dirname -- "$as_myself" || 1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1335 X"$as_myself" : 'X\(//\)[^/]' \| \ 1336 X"$as_myself" : 'X\(//\)$' \| \ 1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1338 printf "%s\n" X"$as_myself" | 1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1340 s//\1/ 1341 q 1342 } 1343 /^X\(\/\/\)[^/].*/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)$/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\).*/{ 1352 s//\1/ 1353 q 1354 } 1355 s/.*/./; q'` 1356 srcdir=$ac_confdir 1357 if test ! -r "$srcdir/$ac_unique_file"; then 1358 srcdir=.. 1359 fi 1360 else 1361 ac_srcdir_defaulted=no 1362 fi 1363 if test ! -r "$srcdir/$ac_unique_file"; then 1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1365 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1366 fi 1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1368 ac_abs_confdir=`( 1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1370 pwd)` 1371 # When building in place, set srcdir=. 1372 if test "$ac_abs_confdir" = "$ac_pwd"; then 1373 srcdir=. 1374 fi 1375 # Remove unnecessary trailing slashes from srcdir. 1376 # Double slashes in file names in object file debugging info 1377 # mess up M-x gdb in Emacs. 1378 case $srcdir in 1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1380 esac 1381 for ac_var in $ac_precious_vars; do 1382 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1383 eval ac_env_${ac_var}_value=\$${ac_var} 1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1386 done 1387 1388 # 1389 # Report the --help message. 1390 # 1391 if test "$ac_init_help" = "long"; then 1392 # Omit some internal or obsolete options to make the list less imposing. 1393 # This message is too long to be a string in the A/UX 3.1 sh. 1394 cat <<_ACEOF 1395 \`configure' configures libXft 2.3.9 to adapt to many kinds of systems. 1396 1397 Usage: $0 [OPTION]... [VAR=VALUE]... 1398 1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1400 VAR=VALUE. See below for descriptions of some of the useful variables. 1401 1402 Defaults for the options are specified in brackets. 1403 1404 Configuration: 1405 -h, --help display this help and exit 1406 --help=short display options specific to this package 1407 --help=recursive display the short help of all the included packages 1408 -V, --version display version information and exit 1409 -q, --quiet, --silent do not print \`checking ...' messages 1410 --cache-file=FILE cache test results in FILE [disabled] 1411 -C, --config-cache alias for \`--cache-file=config.cache' 1412 -n, --no-create do not create output files 1413 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1414 1415 Installation directories: 1416 --prefix=PREFIX install architecture-independent files in PREFIX 1417 [$ac_default_prefix] 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1419 [PREFIX] 1420 1421 By default, \`make install' will install all the files in 1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1424 for instance \`--prefix=\$HOME'. 1425 1426 For better control, use the options below. 1427 1428 Fine tuning of the installation directories: 1429 --bindir=DIR user executables [EPREFIX/bin] 1430 --sbindir=DIR system admin executables [EPREFIX/sbin] 1431 --libexecdir=DIR program executables [EPREFIX/libexec] 1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1435 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1436 --libdir=DIR object code libraries [EPREFIX/lib] 1437 --includedir=DIR C header files [PREFIX/include] 1438 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1441 --infodir=DIR info documentation [DATAROOTDIR/info] 1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1443 --mandir=DIR man documentation [DATAROOTDIR/man] 1444 --docdir=DIR documentation root [DATAROOTDIR/doc/libXft] 1445 --htmldir=DIR html documentation [DOCDIR] 1446 --dvidir=DIR dvi documentation [DOCDIR] 1447 --pdfdir=DIR pdf documentation [DOCDIR] 1448 --psdir=DIR ps documentation [DOCDIR] 1449 _ACEOF 1450 1451 cat <<\_ACEOF 1452 1453 Program names: 1454 --program-prefix=PREFIX prepend PREFIX to installed program names 1455 --program-suffix=SUFFIX append SUFFIX to installed program names 1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1457 1458 System types: 1459 --build=BUILD configure for building on BUILD [guessed] 1460 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1461 _ACEOF 1462 fi 1463 1464 if test -n "$ac_init_help"; then 1465 case $ac_init_help in 1466 short | recursive ) echo "Configuration of libXft 2.3.9:";; 1467 esac 1468 cat <<\_ACEOF 1469 1470 Optional Features: 1471 --disable-option-checking ignore unrecognized --enable/--with options 1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1474 --enable-silent-rules less verbose build output (undo: "make V=1") 1475 --disable-silent-rules verbose build output (undo: "make V=0") 1476 --enable-shared[=PKGS] build shared libraries [default=yes] 1477 --enable-static[=PKGS] build static libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --disable-libtool-lock avoid locking (might break parallel builds) 1485 --disable-selective-werror 1486 Turn off selective compiler errors. (default: 1487 enabled) 1488 --enable-strict-compilation 1489 Enable all warnings from compiler and make them 1490 errors (default: disabled) 1491 1492 Optional Packages: 1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1495 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1496 both] 1497 --with-aix-soname=aix|svr4|both 1498 shared library versioning (aka "SONAME") variant to 1499 provide on AIX, [default=aix]. 1500 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1501 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1502 compiler's sysroot if not specified). 1503 1504 Some influential environment variables: 1505 CC C compiler command 1506 CFLAGS C compiler flags 1507 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1508 nonstandard directory <lib dir> 1509 LIBS libraries to pass to the linker, e.g. -l<library> 1510 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1511 you have headers in a nonstandard directory <include dir> 1512 LT_SYS_LIBRARY_PATH 1513 User-defined run-time library search path. 1514 PKG_CONFIG path to pkg-config utility 1515 PKG_CONFIG_PATH 1516 directories to add to pkg-config's search path 1517 PKG_CONFIG_LIBDIR 1518 path overriding pkg-config's built-in search path 1519 XRENDER_CFLAGS 1520 C compiler flags for XRENDER, overriding pkg-config 1521 XRENDER_LIBS 1522 linker flags for XRENDER, overriding pkg-config 1523 FREETYPE_CFLAGS 1524 C compiler flags for FREETYPE, overriding pkg-config 1525 FREETYPE_LIBS 1526 linker flags for FREETYPE, overriding pkg-config 1527 FONTCONFIG_CFLAGS 1528 C compiler flags for FONTCONFIG, overriding pkg-config 1529 FONTCONFIG_LIBS 1530 linker flags for FONTCONFIG, overriding pkg-config 1531 1532 Use these variables to override the choices made by `configure' or to help 1533 it to find libraries and programs with nonstandard names/locations. 1534 1535 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>. 1536 _ACEOF 1537 ac_status=$? 1538 fi 1539 1540 if test "$ac_init_help" = "recursive"; then 1541 # If there are subdirs, report their specific --help. 1542 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1543 test -d "$ac_dir" || 1544 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1545 continue 1546 ac_builddir=. 1547 1548 case "$ac_dir" in 1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1550 *) 1551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1552 # A ".." for each directory in $ac_dir_suffix. 1553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1554 case $ac_top_builddir_sub in 1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1557 esac ;; 1558 esac 1559 ac_abs_top_builddir=$ac_pwd 1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1561 # for backward compatibility: 1562 ac_top_builddir=$ac_top_build_prefix 1563 1564 case $srcdir in 1565 .) # We are building in place. 1566 ac_srcdir=. 1567 ac_top_srcdir=$ac_top_builddir_sub 1568 ac_abs_top_srcdir=$ac_pwd ;; 1569 [\\/]* | ?:[\\/]* ) # Absolute name. 1570 ac_srcdir=$srcdir$ac_dir_suffix; 1571 ac_top_srcdir=$srcdir 1572 ac_abs_top_srcdir=$srcdir ;; 1573 *) # Relative name. 1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1575 ac_top_srcdir=$ac_top_build_prefix$srcdir 1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1577 esac 1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1579 1580 cd "$ac_dir" || { ac_status=$?; continue; } 1581 # Check for configure.gnu first; this name is used for a wrapper for 1582 # Metaconfig's "Configure" on case-insensitive file systems. 1583 if test -f "$ac_srcdir/configure.gnu"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1586 elif test -f "$ac_srcdir/configure"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure" --help=recursive 1589 else 1590 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1591 fi || ac_status=$? 1592 cd "$ac_pwd" || { ac_status=$?; break; } 1593 done 1594 fi 1595 1596 test -n "$ac_init_help" && exit $ac_status 1597 if $ac_init_version; then 1598 cat <<\_ACEOF 1599 libXft configure 2.3.9 1600 generated by GNU Autoconf 2.71 1601 1602 Copyright (C) 2021 Free Software Foundation, Inc. 1603 This configure script is free software; the Free Software Foundation 1604 gives unlimited permission to copy, distribute and modify it. 1605 _ACEOF 1606 exit 1607 fi 1608 1609 ## ------------------------ ## 1610 ## Autoconf initialization. ## 1611 ## ------------------------ ## 1612 1613 # ac_fn_c_try_compile LINENO 1614 # -------------------------- 1615 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1616 ac_fn_c_try_compile () 1617 { 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext conftest.beam 1620 if { { ac_try="$ac_compile" 1621 case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624 esac 1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626 printf "%s\n" "$ac_try_echo"; } >&5 1627 (eval "$ac_compile") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest.$ac_objext 1639 then : 1640 ac_retval=0 1641 else $as_nop 1642 printf "%s\n" "$as_me: failed program was:" >&5 1643 sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646 fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650 } # ac_fn_c_try_compile 1651 1652 # ac_fn_c_try_link LINENO 1653 # ----------------------- 1654 # Try to link conftest.$ac_ext, and return whether this succeeded. 1655 ac_fn_c_try_link () 1656 { 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1659 if { { ac_try="$ac_link" 1660 case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663 esac 1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665 printf "%s\n" "$ac_try_echo"; } >&5 1666 (eval "$ac_link") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } && { 1675 test -z "$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 } && test -s conftest$ac_exeext && { 1678 test "$cross_compiling" = yes || 1679 test -x conftest$ac_exeext 1680 } 1681 then : 1682 ac_retval=0 1683 else $as_nop 1684 printf "%s\n" "$as_me: failed program was:" >&5 1685 sed 's/^/| /' conftest.$ac_ext >&5 1686 1687 ac_retval=1 1688 fi 1689 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1690 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1691 # interfere with the next link command; also delete a directory that is 1692 # left behind by Apple's compiler. We do this before executing the actions. 1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1695 as_fn_set_status $ac_retval 1696 1697 } # ac_fn_c_try_link 1698 1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1700 # ------------------------------------------------------- 1701 # Tests whether HEADER exists and can be compiled using the include files in 1702 # INCLUDES, setting the cache variable VAR accordingly. 1703 ac_fn_c_check_header_compile () 1704 { 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1707 printf %s "checking for $2... " >&6; } 1708 if eval test \${$3+y} 1709 then : 1710 printf %s "(cached) " >&6 1711 else $as_nop 1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1713 /* end confdefs.h. */ 1714 $4 1715 #include <$2> 1716 _ACEOF 1717 if ac_fn_c_try_compile "$LINENO" 1718 then : 1719 eval "$3=yes" 1720 else $as_nop 1721 eval "$3=no" 1722 fi 1723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1724 fi 1725 eval ac_res=\$$3 1726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1727 printf "%s\n" "$ac_res" >&6; } 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 1730 } # ac_fn_c_check_header_compile 1731 1732 # ac_fn_c_check_func LINENO FUNC VAR 1733 # ---------------------------------- 1734 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1735 ac_fn_c_check_func () 1736 { 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739 printf %s "checking for $2... " >&6; } 1740 if eval test \${$3+y} 1741 then : 1742 printf %s "(cached) " >&6 1743 else $as_nop 1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745 /* end confdefs.h. */ 1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1747 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1748 #define $2 innocuous_$2 1749 1750 /* System header to define __stub macros and hopefully few prototypes, 1751 which can conflict with char $2 (); below. */ 1752 1753 #include <limits.h> 1754 #undef $2 1755 1756 /* Override any GCC internal prototype to avoid an error. 1757 Use char because int might match the return type of a GCC 1758 builtin and then its argument prototype would still apply. */ 1759 #ifdef __cplusplus 1760 extern "C" 1761 #endif 1762 char $2 (); 1763 /* The GNU C library defines this for functions which it implements 1764 to always fail with ENOSYS. Some functions are actually named 1765 something starting with __ and the normal name is an alias. */ 1766 #if defined __stub_$2 || defined __stub___$2 1767 choke me 1768 #endif 1769 1770 int 1771 main (void) 1772 { 1773 return $2 (); 1774 ; 1775 return 0; 1776 } 1777 _ACEOF 1778 if ac_fn_c_try_link "$LINENO" 1779 then : 1780 eval "$3=yes" 1781 else $as_nop 1782 eval "$3=no" 1783 fi 1784 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1785 conftest$ac_exeext conftest.$ac_ext 1786 fi 1787 eval ac_res=\$$3 1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789 printf "%s\n" "$ac_res" >&6; } 1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1791 1792 } # ac_fn_c_check_func 1793 1794 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1795 # ------------------------------------------------------------------ 1796 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1797 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1798 ac_fn_check_decl () 1799 { 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 as_decl_name=`echo $2|sed 's/ *(.*//'` 1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1803 printf %s "checking whether $as_decl_name is declared... " >&6; } 1804 if eval test \${$3+y} 1805 then : 1806 printf %s "(cached) " >&6 1807 else $as_nop 1808 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1809 eval ac_save_FLAGS=\$$6 1810 as_fn_append $6 " $5" 1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1812 /* end confdefs.h. */ 1813 $4 1814 int 1815 main (void) 1816 { 1817 #ifndef $as_decl_name 1818 #ifdef __cplusplus 1819 (void) $as_decl_use; 1820 #else 1821 (void) $as_decl_name; 1822 #endif 1823 #endif 1824 1825 ; 1826 return 0; 1827 } 1828 _ACEOF 1829 if ac_fn_c_try_compile "$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 conftest.$ac_ext 1836 eval $6=\$ac_save_FLAGS 1837 1838 fi 1839 eval ac_res=\$$3 1840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1841 printf "%s\n" "$ac_res" >&6; } 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 1844 } # ac_fn_check_decl 1845 ac_configure_args_raw= 1846 for ac_arg 1847 do 1848 case $ac_arg in 1849 *\'*) 1850 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1851 esac 1852 as_fn_append ac_configure_args_raw " '$ac_arg'" 1853 done 1854 1855 case $ac_configure_args_raw in 1856 *$as_nl*) 1857 ac_safe_unquote= ;; 1858 *) 1859 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1860 ac_unsafe_a="$ac_unsafe_z#~" 1861 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1862 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1863 esac 1864 1865 cat >config.log <<_ACEOF 1866 This file contains any messages produced by compilers while 1867 running configure, to aid debugging if configure makes a mistake. 1868 1869 It was created by libXft $as_me 2.3.9, which was 1870 generated by GNU Autoconf 2.71. Invocation command line was 1871 1872 $ $0$ac_configure_args_raw 1873 1874 _ACEOF 1875 exec 5>>config.log 1876 { 1877 cat <<_ASUNAME 1878 ## --------- ## 1879 ## Platform. ## 1880 ## --------- ## 1881 1882 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1883 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1884 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1885 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1886 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1887 1888 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1889 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1890 1891 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1892 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1893 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1894 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1895 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1896 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1897 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1898 1899 _ASUNAME 1900 1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1902 for as_dir in $PATH 1903 do 1904 IFS=$as_save_IFS 1905 case $as_dir in #((( 1906 '') as_dir=./ ;; 1907 */) ;; 1908 *) as_dir=$as_dir/ ;; 1909 esac 1910 printf "%s\n" "PATH: $as_dir" 1911 done 1912 IFS=$as_save_IFS 1913 1914 } >&5 1915 1916 cat >&5 <<_ACEOF 1917 1918 1919 ## ----------- ## 1920 ## Core tests. ## 1921 ## ----------- ## 1922 1923 _ACEOF 1924 1925 1926 # Keep a trace of the command line. 1927 # Strip out --no-create and --no-recursion so they do not pile up. 1928 # Strip out --silent because we don't want to record it for future runs. 1929 # Also quote any args containing shell meta-characters. 1930 # Make two passes to allow for proper duplicate-argument suppression. 1931 ac_configure_args= 1932 ac_configure_args0= 1933 ac_configure_args1= 1934 ac_must_keep_next=false 1935 for ac_pass in 1 2 1936 do 1937 for ac_arg 1938 do 1939 case $ac_arg in 1940 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1941 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1942 | -silent | --silent | --silen | --sile | --sil) 1943 continue ;; 1944 *\'*) 1945 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1946 esac 1947 case $ac_pass in 1948 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1949 2) 1950 as_fn_append ac_configure_args1 " '$ac_arg'" 1951 if test $ac_must_keep_next = true; then 1952 ac_must_keep_next=false # Got value, back to normal. 1953 else 1954 case $ac_arg in 1955 *=* | --config-cache | -C | -disable-* | --disable-* \ 1956 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1957 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1958 | -with-* | --with-* | -without-* | --without-* | --x) 1959 case "$ac_configure_args0 " in 1960 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1961 esac 1962 ;; 1963 -* ) ac_must_keep_next=true ;; 1964 esac 1965 fi 1966 as_fn_append ac_configure_args " '$ac_arg'" 1967 ;; 1968 esac 1969 done 1970 done 1971 { ac_configure_args0=; unset ac_configure_args0;} 1972 { ac_configure_args1=; unset ac_configure_args1;} 1973 1974 # When interrupted or exit'd, cleanup temporary files, and complete 1975 # config.log. We remove comments because anyway the quotes in there 1976 # would cause problems or look ugly. 1977 # WARNING: Use '\'' to represent an apostrophe within the trap. 1978 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1979 trap 'exit_status=$? 1980 # Sanitize IFS. 1981 IFS=" "" $as_nl" 1982 # Save into config.log some information that might help in debugging. 1983 { 1984 echo 1985 1986 printf "%s\n" "## ---------------- ## 1987 ## Cache variables. ## 1988 ## ---------------- ##" 1989 echo 1990 # The following way of writing the cache mishandles newlines in values, 1991 ( 1992 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1993 eval ac_val=\$$ac_var 1994 case $ac_val in #( 1995 *${as_nl}*) 1996 case $ac_var in #( 1997 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1998 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1999 esac 2000 case $ac_var in #( 2001 _ | IFS | as_nl) ;; #( 2002 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2003 *) { eval $ac_var=; unset $ac_var;} ;; 2004 esac ;; 2005 esac 2006 done 2007 (set) 2>&1 | 2008 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2009 *${as_nl}ac_space=\ *) 2010 sed -n \ 2011 "s/'\''/'\''\\\\'\'''\''/g; 2012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2013 ;; #( 2014 *) 2015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2016 ;; 2017 esac | 2018 sort 2019 ) 2020 echo 2021 2022 printf "%s\n" "## ----------------- ## 2023 ## Output variables. ## 2024 ## ----------------- ##" 2025 echo 2026 for ac_var in $ac_subst_vars 2027 do 2028 eval ac_val=\$$ac_var 2029 case $ac_val in 2030 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2031 esac 2032 printf "%s\n" "$ac_var='\''$ac_val'\''" 2033 done | sort 2034 echo 2035 2036 if test -n "$ac_subst_files"; then 2037 printf "%s\n" "## ------------------- ## 2038 ## File substitutions. ## 2039 ## ------------------- ##" 2040 echo 2041 for ac_var in $ac_subst_files 2042 do 2043 eval ac_val=\$$ac_var 2044 case $ac_val in 2045 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2046 esac 2047 printf "%s\n" "$ac_var='\''$ac_val'\''" 2048 done | sort 2049 echo 2050 fi 2051 2052 if test -s confdefs.h; then 2053 printf "%s\n" "## ----------- ## 2054 ## confdefs.h. ## 2055 ## ----------- ##" 2056 echo 2057 cat confdefs.h 2058 echo 2059 fi 2060 test "$ac_signal" != 0 && 2061 printf "%s\n" "$as_me: caught signal $ac_signal" 2062 printf "%s\n" "$as_me: exit $exit_status" 2063 } >&5 2064 rm -f core *.core core.conftest.* && 2065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2066 exit $exit_status 2067 ' 0 2068 for ac_signal in 1 2 13 15; do 2069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2070 done 2071 ac_signal=0 2072 2073 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2074 rm -f -r conftest* confdefs.h 2075 2076 printf "%s\n" "/* confdefs.h */" > confdefs.h 2077 2078 # Predefined preprocessor variables. 2079 2080 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2081 2082 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2083 2084 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2085 2086 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2087 2088 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2089 2090 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2091 2092 2093 # Let the site file select an alternate cache file if it wants to. 2094 # Prefer an explicitly selected file to automatically selected ones. 2095 if test -n "$CONFIG_SITE"; then 2096 ac_site_files="$CONFIG_SITE" 2097 elif test "x$prefix" != xNONE; then 2098 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2099 else 2100 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2101 fi 2102 2103 for ac_site_file in $ac_site_files 2104 do 2105 case $ac_site_file in #( 2106 */*) : 2107 ;; #( 2108 *) : 2109 ac_site_file=./$ac_site_file ;; 2110 esac 2111 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2113 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2114 sed 's/^/| /' "$ac_site_file" >&5 2115 . "$ac_site_file" \ 2116 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2118 as_fn_error $? "failed to load site script $ac_site_file 2119 See \`config.log' for more details" "$LINENO" 5; } 2120 fi 2121 done 2122 2123 if test -r "$cache_file"; then 2124 # Some versions of bash will fail to source /dev/null (special files 2125 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2126 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2128 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2129 case $cache_file in 2130 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2131 *) . "./$cache_file";; 2132 esac 2133 fi 2134 else 2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2136 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2137 >$cache_file 2138 fi 2139 2140 # Test code for whether the C compiler supports C89 (global declarations) 2141 ac_c_conftest_c89_globals=' 2142 /* Does the compiler advertise C89 conformance? 2143 Do not test the value of __STDC__, because some compilers set it to 0 2144 while being otherwise adequately conformant. */ 2145 #if !defined __STDC__ 2146 # error "Compiler does not advertise C89 conformance" 2147 #endif 2148 2149 #include <stddef.h> 2150 #include <stdarg.h> 2151 struct stat; 2152 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2153 struct buf { int x; }; 2154 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2155 static char *e (p, i) 2156 char **p; 2157 int i; 2158 { 2159 return p[i]; 2160 } 2161 static char *f (char * (*g) (char **, int), char **p, ...) 2162 { 2163 char *s; 2164 va_list v; 2165 va_start (v,p); 2166 s = g (p, va_arg (v,int)); 2167 va_end (v); 2168 return s; 2169 } 2170 2171 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2172 function prototypes and stuff, but not \xHH hex character constants. 2173 These do not provoke an error unfortunately, instead are silently treated 2174 as an "x". The following induces an error, until -std is added to get 2175 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2176 array size at least. It is necessary to write \x00 == 0 to get something 2177 that is true only with -std. */ 2178 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2179 2180 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2181 inside strings and character constants. */ 2182 #define FOO(x) '\''x'\'' 2183 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2184 2185 int test (int i, double x); 2186 struct s1 {int (*f) (int a);}; 2187 struct s2 {int (*f) (double a);}; 2188 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2189 int, int);' 2190 2191 # Test code for whether the C compiler supports C89 (body of main). 2192 ac_c_conftest_c89_main=' 2193 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2194 ' 2195 2196 # Test code for whether the C compiler supports C99 (global declarations) 2197 ac_c_conftest_c99_globals=' 2198 // Does the compiler advertise C99 conformance? 2199 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2200 # error "Compiler does not advertise C99 conformance" 2201 #endif 2202 2203 #include <stdbool.h> 2204 extern int puts (const char *); 2205 extern int printf (const char *, ...); 2206 extern int dprintf (int, const char *, ...); 2207 extern void *malloc (size_t); 2208 2209 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2210 // dprintf is used instead of fprintf to avoid needing to declare 2211 // FILE and stderr. 2212 #define debug(...) dprintf (2, __VA_ARGS__) 2213 #define showlist(...) puts (#__VA_ARGS__) 2214 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2215 static void 2216 test_varargs_macros (void) 2217 { 2218 int x = 1234; 2219 int y = 5678; 2220 debug ("Flag"); 2221 debug ("X = %d\n", x); 2222 showlist (The first, second, and third items.); 2223 report (x>y, "x is %d but y is %d", x, y); 2224 } 2225 2226 // Check long long types. 2227 #define BIG64 18446744073709551615ull 2228 #define BIG32 4294967295ul 2229 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2230 #if !BIG_OK 2231 #error "your preprocessor is broken" 2232 #endif 2233 #if BIG_OK 2234 #else 2235 #error "your preprocessor is broken" 2236 #endif 2237 static long long int bignum = -9223372036854775807LL; 2238 static unsigned long long int ubignum = BIG64; 2239 2240 struct incomplete_array 2241 { 2242 int datasize; 2243 double data[]; 2244 }; 2245 2246 struct named_init { 2247 int number; 2248 const wchar_t *name; 2249 double average; 2250 }; 2251 2252 typedef const char *ccp; 2253 2254 static inline int 2255 test_restrict (ccp restrict text) 2256 { 2257 // See if C++-style comments work. 2258 // Iterate through items via the restricted pointer. 2259 // Also check for declarations in for loops. 2260 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2261 continue; 2262 return 0; 2263 } 2264 2265 // Check varargs and va_copy. 2266 static bool 2267 test_varargs (const char *format, ...) 2268 { 2269 va_list args; 2270 va_start (args, format); 2271 va_list args_copy; 2272 va_copy (args_copy, args); 2273 2274 const char *str = ""; 2275 int number = 0; 2276 float fnumber = 0; 2277 2278 while (*format) 2279 { 2280 switch (*format++) 2281 { 2282 case '\''s'\'': // string 2283 str = va_arg (args_copy, const char *); 2284 break; 2285 case '\''d'\'': // int 2286 number = va_arg (args_copy, int); 2287 break; 2288 case '\''f'\'': // float 2289 fnumber = va_arg (args_copy, double); 2290 break; 2291 default: 2292 break; 2293 } 2294 } 2295 va_end (args_copy); 2296 va_end (args); 2297 2298 return *str && number && fnumber; 2299 } 2300 ' 2301 2302 # Test code for whether the C compiler supports C99 (body of main). 2303 ac_c_conftest_c99_main=' 2304 // Check bool. 2305 _Bool success = false; 2306 success |= (argc != 0); 2307 2308 // Check restrict. 2309 if (test_restrict ("String literal") == 0) 2310 success = true; 2311 char *restrict newvar = "Another string"; 2312 2313 // Check varargs. 2314 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2315 test_varargs_macros (); 2316 2317 // Check flexible array members. 2318 struct incomplete_array *ia = 2319 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2320 ia->datasize = 10; 2321 for (int i = 0; i < ia->datasize; ++i) 2322 ia->data[i] = i * 1.234; 2323 2324 // Check named initializers. 2325 struct named_init ni = { 2326 .number = 34, 2327 .name = L"Test wide string", 2328 .average = 543.34343, 2329 }; 2330 2331 ni.number = 58; 2332 2333 int dynamic_array[ni.number]; 2334 dynamic_array[0] = argv[0][0]; 2335 dynamic_array[ni.number - 1] = 543; 2336 2337 // work around unused variable warnings 2338 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2339 || dynamic_array[ni.number - 1] != 543); 2340 ' 2341 2342 # Test code for whether the C compiler supports C11 (global declarations) 2343 ac_c_conftest_c11_globals=' 2344 // Does the compiler advertise C11 conformance? 2345 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2346 # error "Compiler does not advertise C11 conformance" 2347 #endif 2348 2349 // Check _Alignas. 2350 char _Alignas (double) aligned_as_double; 2351 char _Alignas (0) no_special_alignment; 2352 extern char aligned_as_int; 2353 char _Alignas (0) _Alignas (int) aligned_as_int; 2354 2355 // Check _Alignof. 2356 enum 2357 { 2358 int_alignment = _Alignof (int), 2359 int_array_alignment = _Alignof (int[100]), 2360 char_alignment = _Alignof (char) 2361 }; 2362 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2363 2364 // Check _Noreturn. 2365 int _Noreturn does_not_return (void) { for (;;) continue; } 2366 2367 // Check _Static_assert. 2368 struct test_static_assert 2369 { 2370 int x; 2371 _Static_assert (sizeof (int) <= sizeof (long int), 2372 "_Static_assert does not work in struct"); 2373 long int y; 2374 }; 2375 2376 // Check UTF-8 literals. 2377 #define u8 syntax error! 2378 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2379 2380 // Check duplicate typedefs. 2381 typedef long *long_ptr; 2382 typedef long int *long_ptr; 2383 typedef long_ptr long_ptr; 2384 2385 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2386 struct anonymous 2387 { 2388 union { 2389 struct { int i; int j; }; 2390 struct { int k; long int l; } w; 2391 }; 2392 int m; 2393 } v1; 2394 ' 2395 2396 # Test code for whether the C compiler supports C11 (body of main). 2397 ac_c_conftest_c11_main=' 2398 _Static_assert ((offsetof (struct anonymous, i) 2399 == offsetof (struct anonymous, w.k)), 2400 "Anonymous union alignment botch"); 2401 v1.i = 2; 2402 v1.w.k = 5; 2403 ok |= v1.i != 5; 2404 ' 2405 2406 # Test code for whether the C compiler supports C11 (complete). 2407 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2408 ${ac_c_conftest_c99_globals} 2409 ${ac_c_conftest_c11_globals} 2410 2411 int 2412 main (int argc, char **argv) 2413 { 2414 int ok = 0; 2415 ${ac_c_conftest_c89_main} 2416 ${ac_c_conftest_c99_main} 2417 ${ac_c_conftest_c11_main} 2418 return ok; 2419 } 2420 " 2421 2422 # Test code for whether the C compiler supports C99 (complete). 2423 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2424 ${ac_c_conftest_c99_globals} 2425 2426 int 2427 main (int argc, char **argv) 2428 { 2429 int ok = 0; 2430 ${ac_c_conftest_c89_main} 2431 ${ac_c_conftest_c99_main} 2432 return ok; 2433 } 2434 " 2435 2436 # Test code for whether the C compiler supports C89 (complete). 2437 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2438 2439 int 2440 main (int argc, char **argv) 2441 { 2442 int ok = 0; 2443 ${ac_c_conftest_c89_main} 2444 return ok; 2445 } 2446 " 2447 2448 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2449 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2450 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2451 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2452 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2453 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2454 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2455 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2456 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2457 2458 # Auxiliary files required by this configure script. 2459 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh" 2460 2461 # Locations in which to look for auxiliary files. 2462 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2463 2464 # Search for a directory containing all of the required auxiliary files, 2465 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2466 # If we don't find one directory that contains all the files we need, 2467 # we report the set of missing files from the *first* directory in 2468 # $ac_aux_dir_candidates and give up. 2469 ac_missing_aux_files="" 2470 ac_first_candidate=: 2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473 as_found=false 2474 for as_dir in $ac_aux_dir_candidates 2475 do 2476 IFS=$as_save_IFS 2477 case $as_dir in #((( 2478 '') as_dir=./ ;; 2479 */) ;; 2480 *) as_dir=$as_dir/ ;; 2481 esac 2482 as_found=: 2483 2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2485 ac_aux_dir_found=yes 2486 ac_install_sh= 2487 for ac_aux in $ac_aux_files 2488 do 2489 # As a special case, if "install-sh" is required, that requirement 2490 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2491 # and $ac_install_sh is set appropriately for whichever one is found. 2492 if test x"$ac_aux" = x"install-sh" 2493 then 2494 if test -f "${as_dir}install-sh"; then 2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2496 ac_install_sh="${as_dir}install-sh -c" 2497 elif test -f "${as_dir}install.sh"; then 2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2499 ac_install_sh="${as_dir}install.sh -c" 2500 elif test -f "${as_dir}shtool"; then 2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2502 ac_install_sh="${as_dir}shtool install -c" 2503 else 2504 ac_aux_dir_found=no 2505 if $ac_first_candidate; then 2506 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2507 else 2508 break 2509 fi 2510 fi 2511 else 2512 if test -f "${as_dir}${ac_aux}"; then 2513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2514 else 2515 ac_aux_dir_found=no 2516 if $ac_first_candidate; then 2517 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2518 else 2519 break 2520 fi 2521 fi 2522 fi 2523 done 2524 if test "$ac_aux_dir_found" = yes; then 2525 ac_aux_dir="$as_dir" 2526 break 2527 fi 2528 ac_first_candidate=false 2529 2530 as_found=false 2531 done 2532 IFS=$as_save_IFS 2533 if $as_found 2534 then : 2535 2536 else $as_nop 2537 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2538 fi 2539 2540 2541 # These three variables are undocumented and unsupported, 2542 # and are intended to be withdrawn in a future Autoconf release. 2543 # They can cause serious problems if a builder's source tree is in a directory 2544 # whose full name contains unusual characters. 2545 if test -f "${ac_aux_dir}config.guess"; then 2546 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2547 fi 2548 if test -f "${ac_aux_dir}config.sub"; then 2549 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2550 fi 2551 if test -f "$ac_aux_dir/configure"; then 2552 ac_configure="$SHELL ${ac_aux_dir}configure" 2553 fi 2554 2555 # Check that the precious variables saved in the cache have kept the same 2556 # value. 2557 ac_cache_corrupted=false 2558 for ac_var in $ac_precious_vars; do 2559 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2560 eval ac_new_set=\$ac_env_${ac_var}_set 2561 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2562 eval ac_new_val=\$ac_env_${ac_var}_value 2563 case $ac_old_set,$ac_new_set in 2564 set,) 2565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2566 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2567 ac_cache_corrupted=: ;; 2568 ,set) 2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2570 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2571 ac_cache_corrupted=: ;; 2572 ,);; 2573 *) 2574 if test "x$ac_old_val" != "x$ac_new_val"; then 2575 # differences in whitespace do not lead to failure. 2576 ac_old_val_w=`echo x $ac_old_val` 2577 ac_new_val_w=`echo x $ac_new_val` 2578 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2580 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2581 ac_cache_corrupted=: 2582 else 2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2584 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2585 eval $ac_var=\$ac_old_val 2586 fi 2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2588 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2590 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2591 fi;; 2592 esac 2593 # Pass precious variables to config.status. 2594 if test "$ac_new_set" = set; then 2595 case $ac_new_val in 2596 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2597 *) ac_arg=$ac_var=$ac_new_val ;; 2598 esac 2599 case " $ac_configure_args " in 2600 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2601 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2602 esac 2603 fi 2604 done 2605 if $ac_cache_corrupted; then 2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2609 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2610 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2611 and start over" "$LINENO" 5 2612 fi 2613 ## -------------------- ## 2614 ## Main body of script. ## 2615 ## -------------------- ## 2616 2617 ac_ext=c 2618 ac_cpp='$CPP $CPPFLAGS' 2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2622 2623 2624 2625 ac_config_headers="$ac_config_headers config.h" 2626 2627 2628 2629 # Initialize Automake 2630 am__api_version='1.16' 2631 2632 2633 2634 # Find a good install program. We prefer a C program (faster), 2635 # so one script is as good as another. But avoid the broken or 2636 # incompatible versions: 2637 # SysV /etc/install, /usr/sbin/install 2638 # SunOS /usr/etc/install 2639 # IRIX /sbin/install 2640 # AIX /bin/install 2641 # AmigaOS /C/install, which installs bootblocks on floppy discs 2642 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2645 # OS/2's system install, which has a completely different semantic 2646 # ./install, which can be erroneously created by make from ./install.sh. 2647 # Reject install programs that cannot install multiple files. 2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2649 printf %s "checking for a BSD-compatible install... " >&6; } 2650 if test -z "$INSTALL"; then 2651 if test ${ac_cv_path_install+y} 2652 then : 2653 printf %s "(cached) " >&6 2654 else $as_nop 2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656 for as_dir in $PATH 2657 do 2658 IFS=$as_save_IFS 2659 case $as_dir in #((( 2660 '') as_dir=./ ;; 2661 */) ;; 2662 *) as_dir=$as_dir/ ;; 2663 esac 2664 # Account for fact that we put trailing slashes in our PATH walk. 2665 case $as_dir in #(( 2666 ./ | /[cC]/* | \ 2667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2669 /usr/ucb/* ) ;; 2670 *) 2671 # OSF1 and SCO ODT 3.0 have their own names for install. 2672 # Don't use installbsd from OSF since it installs stuff as root 2673 # by default. 2674 for ac_prog in ginstall scoinst install; do 2675 for ac_exec_ext in '' $ac_executable_extensions; do 2676 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2677 if test $ac_prog = install && 2678 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2679 # AIX install. It has an incompatible calling convention. 2680 : 2681 elif test $ac_prog = install && 2682 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2683 # program-specific install script used by HP pwplus--don't use. 2684 : 2685 else 2686 rm -rf conftest.one conftest.two conftest.dir 2687 echo one > conftest.one 2688 echo two > conftest.two 2689 mkdir conftest.dir 2690 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2691 test -s conftest.one && test -s conftest.two && 2692 test -s conftest.dir/conftest.one && 2693 test -s conftest.dir/conftest.two 2694 then 2695 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2696 break 3 2697 fi 2698 fi 2699 fi 2700 done 2701 done 2702 ;; 2703 esac 2704 2705 done 2706 IFS=$as_save_IFS 2707 2708 rm -rf conftest.one conftest.two conftest.dir 2709 2710 fi 2711 if test ${ac_cv_path_install+y}; then 2712 INSTALL=$ac_cv_path_install 2713 else 2714 # As a last resort, use the slow shell script. Don't cache a 2715 # value for INSTALL within a source directory, because that will 2716 # break other packages using the cache if that directory is 2717 # removed, or if the value is a relative name. 2718 INSTALL=$ac_install_sh 2719 fi 2720 fi 2721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2722 printf "%s\n" "$INSTALL" >&6; } 2723 2724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2725 # It thinks the first close brace ends the variable substitution. 2726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2727 2728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2729 2730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2731 2732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2733 printf %s "checking whether build environment is sane... " >&6; } 2734 # Reject unsafe characters in $srcdir or the absolute working directory 2735 # name. Accept space and tab only in the latter. 2736 am_lf=' 2737 ' 2738 case `pwd` in 2739 *[\\\"\#\$\&\'\`$am_lf]*) 2740 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2741 esac 2742 case $srcdir in 2743 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2744 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2745 esac 2746 2747 # Do 'set' in a subshell so we don't clobber the current shell's 2748 # arguments. Must try -L first in case configure is actually a 2749 # symlink; some systems play weird games with the mod time of symlinks 2750 # (eg FreeBSD returns the mod time of the symlink's containing 2751 # directory). 2752 if ( 2753 am_has_slept=no 2754 for am_try in 1 2; do 2755 echo "timestamp, slept: $am_has_slept" > conftest.file 2756 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2757 if test "$*" = "X"; then 2758 # -L didn't work. 2759 set X `ls -t "$srcdir/configure" conftest.file` 2760 fi 2761 if test "$*" != "X $srcdir/configure conftest.file" \ 2762 && test "$*" != "X conftest.file $srcdir/configure"; then 2763 2764 # If neither matched, then we have a broken ls. This can happen 2765 # if, for instance, CONFIG_SHELL is bash and it inherits a 2766 # broken ls alias from the environment. This has actually 2767 # happened. Such a system could not be considered "sane". 2768 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2769 alias in your environment" "$LINENO" 5 2770 fi 2771 if test "$2" = conftest.file || test $am_try -eq 2; then 2772 break 2773 fi 2774 # Just in case. 2775 sleep 1 2776 am_has_slept=yes 2777 done 2778 test "$2" = conftest.file 2779 ) 2780 then 2781 # Ok. 2782 : 2783 else 2784 as_fn_error $? "newly created file is older than distributed files! 2785 Check your system clock" "$LINENO" 5 2786 fi 2787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2788 printf "%s\n" "yes" >&6; } 2789 # If we didn't sleep, we still need to ensure time stamps of config.status and 2790 # generated files are strictly newer. 2791 am_sleep_pid= 2792 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2793 ( sleep 1 ) & 2794 am_sleep_pid=$! 2795 fi 2796 2797 rm -f conftest.file 2798 2799 test "$program_prefix" != NONE && 2800 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2801 # Use a double $ so make ignores it. 2802 test "$program_suffix" != NONE && 2803 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2804 # Double any \ or $. 2805 # By default was `s,x,x', remove it if useless. 2806 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2807 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2808 2809 2810 # Expand $ac_aux_dir to an absolute path. 2811 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2812 2813 2814 if test x"${MISSING+set}" != xset; then 2815 MISSING="\${SHELL} '$am_aux_dir/missing'" 2816 fi 2817 # Use eval to expand $SHELL 2818 if eval "$MISSING --is-lightweight"; then 2819 am_missing_run="$MISSING " 2820 else 2821 am_missing_run= 2822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2823 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2824 fi 2825 2826 if test x"${install_sh+set}" != xset; then 2827 case $am_aux_dir in 2828 *\ * | *\ *) 2829 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2830 *) 2831 install_sh="\${SHELL} $am_aux_dir/install-sh" 2832 esac 2833 fi 2834 2835 # Installed binaries are usually stripped using 'strip' when the user 2836 # run "make install-strip". However 'strip' might not be the right 2837 # tool to use in cross-compilation environments, therefore Automake 2838 # will honor the 'STRIP' environment variable to overrule this program. 2839 if test "$cross_compiling" != no; then 2840 if test -n "$ac_tool_prefix"; then 2841 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2842 set dummy ${ac_tool_prefix}strip; ac_word=$2 2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2844 printf %s "checking for $ac_word... " >&6; } 2845 if test ${ac_cv_prog_STRIP+y} 2846 then : 2847 printf %s "(cached) " >&6 2848 else $as_nop 2849 if test -n "$STRIP"; then 2850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2851 else 2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2853 for as_dir in $PATH 2854 do 2855 IFS=$as_save_IFS 2856 case $as_dir in #((( 2857 '') as_dir=./ ;; 2858 */) ;; 2859 *) as_dir=$as_dir/ ;; 2860 esac 2861 for ac_exec_ext in '' $ac_executable_extensions; do 2862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2863 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2865 break 2 2866 fi 2867 done 2868 done 2869 IFS=$as_save_IFS 2870 2871 fi 2872 fi 2873 STRIP=$ac_cv_prog_STRIP 2874 if test -n "$STRIP"; then 2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2876 printf "%s\n" "$STRIP" >&6; } 2877 else 2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2879 printf "%s\n" "no" >&6; } 2880 fi 2881 2882 2883 fi 2884 if test -z "$ac_cv_prog_STRIP"; then 2885 ac_ct_STRIP=$STRIP 2886 # Extract the first word of "strip", so it can be a program name with args. 2887 set dummy strip; ac_word=$2 2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2889 printf %s "checking for $ac_word... " >&6; } 2890 if test ${ac_cv_prog_ac_ct_STRIP+y} 2891 then : 2892 printf %s "(cached) " >&6 2893 else $as_nop 2894 if test -n "$ac_ct_STRIP"; then 2895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2896 else 2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2898 for as_dir in $PATH 2899 do 2900 IFS=$as_save_IFS 2901 case $as_dir in #((( 2902 '') as_dir=./ ;; 2903 */) ;; 2904 *) as_dir=$as_dir/ ;; 2905 esac 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2908 ac_cv_prog_ac_ct_STRIP="strip" 2909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912 done 2913 done 2914 IFS=$as_save_IFS 2915 2916 fi 2917 fi 2918 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2919 if test -n "$ac_ct_STRIP"; then 2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2921 printf "%s\n" "$ac_ct_STRIP" >&6; } 2922 else 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924 printf "%s\n" "no" >&6; } 2925 fi 2926 2927 if test "x$ac_ct_STRIP" = x; then 2928 STRIP=":" 2929 else 2930 case $cross_compiling:$ac_tool_warned in 2931 yes:) 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2933 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2934 ac_tool_warned=yes ;; 2935 esac 2936 STRIP=$ac_ct_STRIP 2937 fi 2938 else 2939 STRIP="$ac_cv_prog_STRIP" 2940 fi 2941 2942 fi 2943 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2944 2945 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2947 printf %s "checking for a race-free mkdir -p... " >&6; } 2948 if test -z "$MKDIR_P"; then 2949 if test ${ac_cv_path_mkdir+y} 2950 then : 2951 printf %s "(cached) " >&6 2952 else $as_nop 2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2954 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2955 do 2956 IFS=$as_save_IFS 2957 case $as_dir in #((( 2958 '') as_dir=./ ;; 2959 */) ;; 2960 *) as_dir=$as_dir/ ;; 2961 esac 2962 for ac_prog in mkdir gmkdir; do 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2965 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2966 'mkdir ('*'coreutils) '* | \ 2967 'BusyBox '* | \ 2968 'mkdir (fileutils) '4.1*) 2969 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2970 break 3;; 2971 esac 2972 done 2973 done 2974 done 2975 IFS=$as_save_IFS 2976 2977 fi 2978 2979 test -d ./--version && rmdir ./--version 2980 if test ${ac_cv_path_mkdir+y}; then 2981 MKDIR_P="$ac_cv_path_mkdir -p" 2982 else 2983 # As a last resort, use the slow shell script. Don't cache a 2984 # value for MKDIR_P within a source directory, because that will 2985 # break other packages using the cache if that directory is 2986 # removed, or if the value is a relative name. 2987 MKDIR_P="$ac_install_sh -d" 2988 fi 2989 fi 2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2991 printf "%s\n" "$MKDIR_P" >&6; } 2992 2993 for ac_prog in gawk mawk nawk awk 2994 do 2995 # Extract the first word of "$ac_prog", so it can be a program name with args. 2996 set dummy $ac_prog; ac_word=$2 2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2998 printf %s "checking for $ac_word... " >&6; } 2999 if test ${ac_cv_prog_AWK+y} 3000 then : 3001 printf %s "(cached) " >&6 3002 else $as_nop 3003 if test -n "$AWK"; then 3004 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3005 else 3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3007 for as_dir in $PATH 3008 do 3009 IFS=$as_save_IFS 3010 case $as_dir in #((( 3011 '') as_dir=./ ;; 3012 */) ;; 3013 *) as_dir=$as_dir/ ;; 3014 esac 3015 for ac_exec_ext in '' $ac_executable_extensions; do 3016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3017 ac_cv_prog_AWK="$ac_prog" 3018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3019 break 2 3020 fi 3021 done 3022 done 3023 IFS=$as_save_IFS 3024 3025 fi 3026 fi 3027 AWK=$ac_cv_prog_AWK 3028 if test -n "$AWK"; then 3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3030 printf "%s\n" "$AWK" >&6; } 3031 else 3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3033 printf "%s\n" "no" >&6; } 3034 fi 3035 3036 3037 test -n "$AWK" && break 3038 done 3039 3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3041 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3042 set x ${MAKE-make} 3043 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3044 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3045 then : 3046 printf %s "(cached) " >&6 3047 else $as_nop 3048 cat >conftest.make <<\_ACEOF 3049 SHELL = /bin/sh 3050 all: 3051 @echo '@@@%%%=$(MAKE)=@@@%%%' 3052 _ACEOF 3053 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3054 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3055 *@@@%%%=?*=@@@%%%*) 3056 eval ac_cv_prog_make_${ac_make}_set=yes;; 3057 *) 3058 eval ac_cv_prog_make_${ac_make}_set=no;; 3059 esac 3060 rm -f conftest.make 3061 fi 3062 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3064 printf "%s\n" "yes" >&6; } 3065 SET_MAKE= 3066 else 3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068 printf "%s\n" "no" >&6; } 3069 SET_MAKE="MAKE=${MAKE-make}" 3070 fi 3071 3072 rm -rf .tst 2>/dev/null 3073 mkdir .tst 2>/dev/null 3074 if test -d .tst; then 3075 am__leading_dot=. 3076 else 3077 am__leading_dot=_ 3078 fi 3079 rmdir .tst 2>/dev/null 3080 3081 # Check whether --enable-silent-rules was given. 3082 if test ${enable_silent_rules+y} 3083 then : 3084 enableval=$enable_silent_rules; 3085 fi 3086 3087 case $enable_silent_rules in # ((( 3088 yes) AM_DEFAULT_VERBOSITY=0;; 3089 no) AM_DEFAULT_VERBOSITY=1;; 3090 *) AM_DEFAULT_VERBOSITY=1;; 3091 esac 3092 am_make=${MAKE-make} 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3094 printf %s "checking whether $am_make supports nested variables... " >&6; } 3095 if test ${am_cv_make_support_nested_variables+y} 3096 then : 3097 printf %s "(cached) " >&6 3098 else $as_nop 3099 if printf "%s\n" 'TRUE=$(BAR$(V)) 3100 BAR0=false 3101 BAR1=true 3102 V=1 3103 am__doit: 3104 @$(TRUE) 3105 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3106 am_cv_make_support_nested_variables=yes 3107 else 3108 am_cv_make_support_nested_variables=no 3109 fi 3110 fi 3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3112 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3113 if test $am_cv_make_support_nested_variables = yes; then 3114 AM_V='$(V)' 3115 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3116 else 3117 AM_V=$AM_DEFAULT_VERBOSITY 3118 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3119 fi 3120 AM_BACKSLASH='\' 3121 3122 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3123 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3124 # is not polluted with repeated "-I." 3125 am__isrc=' -I$(srcdir)' 3126 # test to see if srcdir already configured 3127 if test -f $srcdir/config.status; then 3128 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3129 fi 3130 fi 3131 3132 # test whether we have cygpath 3133 if test -z "$CYGPATH_W"; then 3134 if (cygpath --version) >/dev/null 2>/dev/null; then 3135 CYGPATH_W='cygpath -w' 3136 else 3137 CYGPATH_W=echo 3138 fi 3139 fi 3140 3141 3142 # Define the identity of the package. 3143 PACKAGE='libXft' 3144 VERSION='2.3.9' 3145 3146 3147 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3148 3149 3150 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3151 3152 # Some tools Automake needs. 3153 3154 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3155 3156 3157 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3158 3159 3160 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3161 3162 3163 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3164 3165 3166 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3167 3168 # For better backward compatibility. To be removed once Automake 1.9.x 3169 # dies out for good. For more background, see: 3170 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3171 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3172 mkdir_p='$(MKDIR_P)' 3173 3174 # We need awk for the "check" target (and possibly the TAP driver). The 3175 # system "awk" is bad on some platforms. 3176 # Always define AMTAR for backward compatibility. Yes, it's still used 3177 # in the wild :-( We should find a proper way to deprecate it ... 3178 AMTAR='$${TAR-tar}' 3179 3180 3181 # We'll loop over all known methods to create a tar archive until one works. 3182 _am_tools='gnutar pax cpio none' 3183 3184 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3185 3186 3187 3188 3189 3190 # Variables for tags utilities; see am/tags.am 3191 if test -z "$CTAGS"; then 3192 CTAGS=ctags 3193 fi 3194 3195 if test -z "$ETAGS"; then 3196 ETAGS=etags 3197 fi 3198 3199 if test -z "$CSCOPE"; then 3200 CSCOPE=cscope 3201 fi 3202 3203 3204 3205 # POSIX will say in a future version that running "rm -f" with no argument 3206 # is OK; and we want to be able to make that assumption in our Makefile 3207 # recipes. So use an aggressive probe to check that the usage we want is 3208 # actually supported "in the wild" to an acceptable degree. 3209 # See automake bug#10828. 3210 # To make any issue more visible, cause the running configure to be aborted 3211 # by default if the 'rm' program in use doesn't match our expectations; the 3212 # user can still override this though. 3213 if rm -f && rm -fr && rm -rf; then : OK; else 3214 cat >&2 <<'END' 3215 Oops! 3216 3217 Your 'rm' program seems unable to run without file operands specified 3218 on the command line, even when the '-f' option is present. This is contrary 3219 to the behaviour of most rm programs out there, and not conforming with 3220 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3221 3222 Please tell bug-automake@gnu.org about your system, including the value 3223 of your $PATH and any error possibly output before this message. This 3224 can help us improve future automake versions. 3225 3226 END 3227 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3228 echo 'Configuration will proceed anyway, since you have set the' >&2 3229 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3230 echo >&2 3231 else 3232 cat >&2 <<'END' 3233 Aborting the configuration process, to ensure you take notice of the issue. 3234 3235 You can download and install GNU coreutils to get an 'rm' implementation 3236 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3237 3238 If you want to complete the configuration process using your problematic 3239 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3240 to "yes", and re-run configure. 3241 3242 END 3243 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3244 fi 3245 fi 3246 3247 3248 # Initialize libtool 3249 case `pwd` in 3250 *\ * | *\ *) 3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3252 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3253 esac 3254 3255 3256 3257 macro_version='2.4.7' 3258 macro_revision='2.4.7' 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 ltmain=$ac_aux_dir/ltmain.sh 3274 3275 3276 3277 # Make sure we can run config.sub. 3278 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3279 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3280 3281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3282 printf %s "checking build system type... " >&6; } 3283 if test ${ac_cv_build+y} 3284 then : 3285 printf %s "(cached) " >&6 3286 else $as_nop 3287 ac_build_alias=$build_alias 3288 test "x$ac_build_alias" = x && 3289 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3290 test "x$ac_build_alias" = x && 3291 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3292 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3293 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3294 3295 fi 3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3297 printf "%s\n" "$ac_cv_build" >&6; } 3298 case $ac_cv_build in 3299 *-*-*) ;; 3300 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3301 esac 3302 build=$ac_cv_build 3303 ac_save_IFS=$IFS; IFS='-' 3304 set x $ac_cv_build 3305 shift 3306 build_cpu=$1 3307 build_vendor=$2 3308 shift; shift 3309 # Remember, the first character of IFS is used to create $*, 3310 # except with old shells: 3311 build_os=$* 3312 IFS=$ac_save_IFS 3313 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3314 3315 3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3317 printf %s "checking host system type... " >&6; } 3318 if test ${ac_cv_host+y} 3319 then : 3320 printf %s "(cached) " >&6 3321 else $as_nop 3322 if test "x$host_alias" = x; then 3323 ac_cv_host=$ac_cv_build 3324 else 3325 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3326 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3327 fi 3328 3329 fi 3330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3331 printf "%s\n" "$ac_cv_host" >&6; } 3332 case $ac_cv_host in 3333 *-*-*) ;; 3334 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3335 esac 3336 host=$ac_cv_host 3337 ac_save_IFS=$IFS; IFS='-' 3338 set x $ac_cv_host 3339 shift 3340 host_cpu=$1 3341 host_vendor=$2 3342 shift; shift 3343 # Remember, the first character of IFS is used to create $*, 3344 # except with old shells: 3345 host_os=$* 3346 IFS=$ac_save_IFS 3347 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3348 3349 3350 # Backslashify metacharacters that are still active within 3351 # double-quoted strings. 3352 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3353 3354 # Same as above, but do not quote variable references. 3355 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3356 3357 # Sed substitution to delay expansion of an escaped shell variable in a 3358 # double_quote_subst'ed string. 3359 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3360 3361 # Sed substitution to delay expansion of an escaped single quote. 3362 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3363 3364 # Sed substitution to avoid accidental globbing in evaled expressions 3365 no_glob_subst='s/\*/\\\*/g' 3366 3367 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3368 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3369 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3370 3371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3372 printf %s "checking how to print strings... " >&6; } 3373 # Test print first, because it will be a builtin if present. 3374 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3375 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3376 ECHO='print -r --' 3377 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3378 ECHO='printf %s\n' 3379 else 3380 # Use this function as a fallback that always works. 3381 func_fallback_echo () 3382 { 3383 eval 'cat <<_LTECHO_EOF 3384 $1 3385 _LTECHO_EOF' 3386 } 3387 ECHO='func_fallback_echo' 3388 fi 3389 3390 # func_echo_all arg... 3391 # Invoke $ECHO with all args, space-separated. 3392 func_echo_all () 3393 { 3394 $ECHO "" 3395 } 3396 3397 case $ECHO in 3398 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3399 printf "%s\n" "printf" >&6; } ;; 3400 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3401 printf "%s\n" "print -r" >&6; } ;; 3402 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3403 printf "%s\n" "cat" >&6; } ;; 3404 esac 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 DEPDIR="${am__leading_dot}deps" 3429 3430 ac_config_commands="$ac_config_commands depfiles" 3431 3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3433 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3434 cat > confinc.mk << 'END' 3435 am__doit: 3436 @echo this is the am__doit target >confinc.out 3437 .PHONY: am__doit 3438 END 3439 am__include="#" 3440 am__quote= 3441 # BSD make does it like this. 3442 echo '.include "confinc.mk" # ignored' > confmf.BSD 3443 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3444 echo 'include confinc.mk # ignored' > confmf.GNU 3445 _am_result=no 3446 for s in GNU BSD; do 3447 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3448 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3449 ac_status=$? 3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3451 (exit $ac_status); } 3452 case $?:`cat confinc.out 2>/dev/null` in #( 3453 '0:this is the am__doit target') : 3454 case $s in #( 3455 BSD) : 3456 am__include='.include' am__quote='"' ;; #( 3457 *) : 3458 am__include='include' am__quote='' ;; 3459 esac ;; #( 3460 *) : 3461 ;; 3462 esac 3463 if test "$am__include" != "#"; then 3464 _am_result="yes ($s style)" 3465 break 3466 fi 3467 done 3468 rm -f confinc.* confmf.* 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3470 printf "%s\n" "${_am_result}" >&6; } 3471 3472 # Check whether --enable-dependency-tracking was given. 3473 if test ${enable_dependency_tracking+y} 3474 then : 3475 enableval=$enable_dependency_tracking; 3476 fi 3477 3478 if test "x$enable_dependency_tracking" != xno; then 3479 am_depcomp="$ac_aux_dir/depcomp" 3480 AMDEPBACKSLASH='\' 3481 am__nodep='_no' 3482 fi 3483 if test "x$enable_dependency_tracking" != xno; then 3484 AMDEP_TRUE= 3485 AMDEP_FALSE='#' 3486 else 3487 AMDEP_TRUE='#' 3488 AMDEP_FALSE= 3489 fi 3490 3491 3492 ac_ext=c 3493 ac_cpp='$CPP $CPPFLAGS' 3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3497 if test -n "$ac_tool_prefix"; then 3498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3499 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501 printf %s "checking for $ac_word... " >&6; } 3502 if test ${ac_cv_prog_CC+y} 3503 then : 3504 printf %s "(cached) " >&6 3505 else $as_nop 3506 if test -n "$CC"; then 3507 ac_cv_prog_CC="$CC" # Let the user override the test. 3508 else 3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3510 for as_dir in $PATH 3511 do 3512 IFS=$as_save_IFS 3513 case $as_dir in #((( 3514 '') as_dir=./ ;; 3515 */) ;; 3516 *) as_dir=$as_dir/ ;; 3517 esac 3518 for ac_exec_ext in '' $ac_executable_extensions; do 3519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3520 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3522 break 2 3523 fi 3524 done 3525 done 3526 IFS=$as_save_IFS 3527 3528 fi 3529 fi 3530 CC=$ac_cv_prog_CC 3531 if test -n "$CC"; then 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3533 printf "%s\n" "$CC" >&6; } 3534 else 3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3536 printf "%s\n" "no" >&6; } 3537 fi 3538 3539 3540 fi 3541 if test -z "$ac_cv_prog_CC"; then 3542 ac_ct_CC=$CC 3543 # Extract the first word of "gcc", so it can be a program name with args. 3544 set dummy gcc; ac_word=$2 3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3546 printf %s "checking for $ac_word... " >&6; } 3547 if test ${ac_cv_prog_ac_ct_CC+y} 3548 then : 3549 printf %s "(cached) " >&6 3550 else $as_nop 3551 if test -n "$ac_ct_CC"; then 3552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3553 else 3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3555 for as_dir in $PATH 3556 do 3557 IFS=$as_save_IFS 3558 case $as_dir in #((( 3559 '') as_dir=./ ;; 3560 */) ;; 3561 *) as_dir=$as_dir/ ;; 3562 esac 3563 for ac_exec_ext in '' $ac_executable_extensions; do 3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3565 ac_cv_prog_ac_ct_CC="gcc" 3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3567 break 2 3568 fi 3569 done 3570 done 3571 IFS=$as_save_IFS 3572 3573 fi 3574 fi 3575 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3576 if test -n "$ac_ct_CC"; then 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3578 printf "%s\n" "$ac_ct_CC" >&6; } 3579 else 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3581 printf "%s\n" "no" >&6; } 3582 fi 3583 3584 if test "x$ac_ct_CC" = x; then 3585 CC="" 3586 else 3587 case $cross_compiling:$ac_tool_warned in 3588 yes:) 3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3590 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3591 ac_tool_warned=yes ;; 3592 esac 3593 CC=$ac_ct_CC 3594 fi 3595 else 3596 CC="$ac_cv_prog_CC" 3597 fi 3598 3599 if test -z "$CC"; then 3600 if test -n "$ac_tool_prefix"; then 3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3602 set dummy ${ac_tool_prefix}cc; ac_word=$2 3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3604 printf %s "checking for $ac_word... " >&6; } 3605 if test ${ac_cv_prog_CC+y} 3606 then : 3607 printf %s "(cached) " >&6 3608 else $as_nop 3609 if test -n "$CC"; then 3610 ac_cv_prog_CC="$CC" # Let the user override the test. 3611 else 3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613 for as_dir in $PATH 3614 do 3615 IFS=$as_save_IFS 3616 case $as_dir in #((( 3617 '') as_dir=./ ;; 3618 */) ;; 3619 *) as_dir=$as_dir/ ;; 3620 esac 3621 for ac_exec_ext in '' $ac_executable_extensions; do 3622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3623 ac_cv_prog_CC="${ac_tool_prefix}cc" 3624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3625 break 2 3626 fi 3627 done 3628 done 3629 IFS=$as_save_IFS 3630 3631 fi 3632 fi 3633 CC=$ac_cv_prog_CC 3634 if test -n "$CC"; then 3635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3636 printf "%s\n" "$CC" >&6; } 3637 else 3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3639 printf "%s\n" "no" >&6; } 3640 fi 3641 3642 3643 fi 3644 fi 3645 if test -z "$CC"; then 3646 # Extract the first word of "cc", so it can be a program name with args. 3647 set dummy cc; ac_word=$2 3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3649 printf %s "checking for $ac_word... " >&6; } 3650 if test ${ac_cv_prog_CC+y} 3651 then : 3652 printf %s "(cached) " >&6 3653 else $as_nop 3654 if test -n "$CC"; then 3655 ac_cv_prog_CC="$CC" # Let the user override the test. 3656 else 3657 ac_prog_rejected=no 3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3659 for as_dir in $PATH 3660 do 3661 IFS=$as_save_IFS 3662 case $as_dir in #((( 3663 '') as_dir=./ ;; 3664 */) ;; 3665 *) as_dir=$as_dir/ ;; 3666 esac 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3669 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3670 ac_prog_rejected=yes 3671 continue 3672 fi 3673 ac_cv_prog_CC="cc" 3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3675 break 2 3676 fi 3677 done 3678 done 3679 IFS=$as_save_IFS 3680 3681 if test $ac_prog_rejected = yes; then 3682 # We found a bogon in the path, so make sure we never use it. 3683 set dummy $ac_cv_prog_CC 3684 shift 3685 if test $# != 0; then 3686 # We chose a different compiler from the bogus one. 3687 # However, it has the same basename, so the bogon will be chosen 3688 # first if we set CC to just the basename; use the full file name. 3689 shift 3690 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3691 fi 3692 fi 3693 fi 3694 fi 3695 CC=$ac_cv_prog_CC 3696 if test -n "$CC"; then 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3698 printf "%s\n" "$CC" >&6; } 3699 else 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3701 printf "%s\n" "no" >&6; } 3702 fi 3703 3704 3705 fi 3706 if test -z "$CC"; then 3707 if test -n "$ac_tool_prefix"; then 3708 for ac_prog in cl.exe 3709 do 3710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3711 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3713 printf %s "checking for $ac_word... " >&6; } 3714 if test ${ac_cv_prog_CC+y} 3715 then : 3716 printf %s "(cached) " >&6 3717 else $as_nop 3718 if test -n "$CC"; then 3719 ac_cv_prog_CC="$CC" # Let the user override the test. 3720 else 3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3722 for as_dir in $PATH 3723 do 3724 IFS=$as_save_IFS 3725 case $as_dir in #((( 3726 '') as_dir=./ ;; 3727 */) ;; 3728 *) as_dir=$as_dir/ ;; 3729 esac 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736 done 3737 done 3738 IFS=$as_save_IFS 3739 3740 fi 3741 fi 3742 CC=$ac_cv_prog_CC 3743 if test -n "$CC"; then 3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745 printf "%s\n" "$CC" >&6; } 3746 else 3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748 printf "%s\n" "no" >&6; } 3749 fi 3750 3751 3752 test -n "$CC" && break 3753 done 3754 fi 3755 if test -z "$CC"; then 3756 ac_ct_CC=$CC 3757 for ac_prog in cl.exe 3758 do 3759 # Extract the first word of "$ac_prog", so it can be a program name with args. 3760 set dummy $ac_prog; ac_word=$2 3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3762 printf %s "checking for $ac_word... " >&6; } 3763 if test ${ac_cv_prog_ac_ct_CC+y} 3764 then : 3765 printf %s "(cached) " >&6 3766 else $as_nop 3767 if test -n "$ac_ct_CC"; then 3768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3769 else 3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3771 for as_dir in $PATH 3772 do 3773 IFS=$as_save_IFS 3774 case $as_dir in #((( 3775 '') as_dir=./ ;; 3776 */) ;; 3777 *) as_dir=$as_dir/ ;; 3778 esac 3779 for ac_exec_ext in '' $ac_executable_extensions; do 3780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3781 ac_cv_prog_ac_ct_CC="$ac_prog" 3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3783 break 2 3784 fi 3785 done 3786 done 3787 IFS=$as_save_IFS 3788 3789 fi 3790 fi 3791 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3792 if test -n "$ac_ct_CC"; then 3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3794 printf "%s\n" "$ac_ct_CC" >&6; } 3795 else 3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3797 printf "%s\n" "no" >&6; } 3798 fi 3799 3800 3801 test -n "$ac_ct_CC" && break 3802 done 3803 3804 if test "x$ac_ct_CC" = x; then 3805 CC="" 3806 else 3807 case $cross_compiling:$ac_tool_warned in 3808 yes:) 3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3811 ac_tool_warned=yes ;; 3812 esac 3813 CC=$ac_ct_CC 3814 fi 3815 fi 3816 3817 fi 3818 if test -z "$CC"; then 3819 if test -n "$ac_tool_prefix"; then 3820 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3821 set dummy ${ac_tool_prefix}clang; ac_word=$2 3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823 printf %s "checking for $ac_word... " >&6; } 3824 if test ${ac_cv_prog_CC+y} 3825 then : 3826 printf %s "(cached) " >&6 3827 else $as_nop 3828 if test -n "$CC"; then 3829 ac_cv_prog_CC="$CC" # Let the user override the test. 3830 else 3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3832 for as_dir in $PATH 3833 do 3834 IFS=$as_save_IFS 3835 case $as_dir in #((( 3836 '') as_dir=./ ;; 3837 */) ;; 3838 *) as_dir=$as_dir/ ;; 3839 esac 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3842 ac_cv_prog_CC="${ac_tool_prefix}clang" 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846 done 3847 done 3848 IFS=$as_save_IFS 3849 3850 fi 3851 fi 3852 CC=$ac_cv_prog_CC 3853 if test -n "$CC"; then 3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3855 printf "%s\n" "$CC" >&6; } 3856 else 3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3858 printf "%s\n" "no" >&6; } 3859 fi 3860 3861 3862 fi 3863 if test -z "$ac_cv_prog_CC"; then 3864 ac_ct_CC=$CC 3865 # Extract the first word of "clang", so it can be a program name with args. 3866 set dummy clang; ac_word=$2 3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3868 printf %s "checking for $ac_word... " >&6; } 3869 if test ${ac_cv_prog_ac_ct_CC+y} 3870 then : 3871 printf %s "(cached) " >&6 3872 else $as_nop 3873 if test -n "$ac_ct_CC"; then 3874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3875 else 3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3877 for as_dir in $PATH 3878 do 3879 IFS=$as_save_IFS 3880 case $as_dir in #((( 3881 '') as_dir=./ ;; 3882 */) ;; 3883 *) as_dir=$as_dir/ ;; 3884 esac 3885 for ac_exec_ext in '' $ac_executable_extensions; do 3886 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3887 ac_cv_prog_ac_ct_CC="clang" 3888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3889 break 2 3890 fi 3891 done 3892 done 3893 IFS=$as_save_IFS 3894 3895 fi 3896 fi 3897 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3898 if test -n "$ac_ct_CC"; then 3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3900 printf "%s\n" "$ac_ct_CC" >&6; } 3901 else 3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3903 printf "%s\n" "no" >&6; } 3904 fi 3905 3906 if test "x$ac_ct_CC" = x; then 3907 CC="" 3908 else 3909 case $cross_compiling:$ac_tool_warned in 3910 yes:) 3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3913 ac_tool_warned=yes ;; 3914 esac 3915 CC=$ac_ct_CC 3916 fi 3917 else 3918 CC="$ac_cv_prog_CC" 3919 fi 3920 3921 fi 3922 3923 3924 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3925 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3926 as_fn_error $? "no acceptable C compiler found in \$PATH 3927 See \`config.log' for more details" "$LINENO" 5; } 3928 3929 # Provide some information about the compiler. 3930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3931 set X $ac_compile 3932 ac_compiler=$2 3933 for ac_option in --version -v -V -qversion -version; do 3934 { { ac_try="$ac_compiler $ac_option >&5" 3935 case "(($ac_try" in 3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3937 *) ac_try_echo=$ac_try;; 3938 esac 3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3940 printf "%s\n" "$ac_try_echo"; } >&5 3941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3942 ac_status=$? 3943 if test -s conftest.err; then 3944 sed '10a\ 3945 ... rest of stderr output deleted ... 3946 10q' conftest.err >conftest.er1 3947 cat conftest.er1 >&5 3948 fi 3949 rm -f conftest.er1 conftest.err 3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; } 3952 done 3953 3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3955 /* end confdefs.h. */ 3956 3957 int 3958 main (void) 3959 { 3960 3961 ; 3962 return 0; 3963 } 3964 _ACEOF 3965 ac_clean_files_save=$ac_clean_files 3966 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3967 # Try to create an executable without -o first, disregard a.out. 3968 # It will help us diagnose broken compilers, and finding out an intuition 3969 # of exeext. 3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3971 printf %s "checking whether the C compiler works... " >&6; } 3972 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3973 3974 # The possible output files: 3975 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3976 3977 ac_rmfiles= 3978 for ac_file in $ac_files 3979 do 3980 case $ac_file in 3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3982 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3983 esac 3984 done 3985 rm -f $ac_rmfiles 3986 3987 if { { ac_try="$ac_link_default" 3988 case "(($ac_try" in 3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3990 *) ac_try_echo=$ac_try;; 3991 esac 3992 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3993 printf "%s\n" "$ac_try_echo"; } >&5 3994 (eval "$ac_link_default") 2>&5 3995 ac_status=$? 3996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3997 test $ac_status = 0; } 3998 then : 3999 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4000 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4001 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4002 # so that the user can short-circuit this test for compilers unknown to 4003 # Autoconf. 4004 for ac_file in $ac_files '' 4005 do 4006 test -f "$ac_file" || continue 4007 case $ac_file in 4008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4009 ;; 4010 [ab].out ) 4011 # We found the default executable, but exeext='' is most 4012 # certainly right. 4013 break;; 4014 *.* ) 4015 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4016 then :; else 4017 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4018 fi 4019 # We set ac_cv_exeext here because the later test for it is not 4020 # safe: cross compilers may not add the suffix if given an `-o' 4021 # argument, so we may need to know it at that point already. 4022 # Even if this section looks crufty: it has the advantage of 4023 # actually working. 4024 break;; 4025 * ) 4026 break;; 4027 esac 4028 done 4029 test "$ac_cv_exeext" = no && ac_cv_exeext= 4030 4031 else $as_nop 4032 ac_file='' 4033 fi 4034 if test -z "$ac_file" 4035 then : 4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4037 printf "%s\n" "no" >&6; } 4038 printf "%s\n" "$as_me: failed program was:" >&5 4039 sed 's/^/| /' conftest.$ac_ext >&5 4040 4041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4042 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4043 as_fn_error 77 "C compiler cannot create executables 4044 See \`config.log' for more details" "$LINENO" 5; } 4045 else $as_nop 4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4047 printf "%s\n" "yes" >&6; } 4048 fi 4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4050 printf %s "checking for C compiler default output file name... " >&6; } 4051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4052 printf "%s\n" "$ac_file" >&6; } 4053 ac_exeext=$ac_cv_exeext 4054 4055 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4056 ac_clean_files=$ac_clean_files_save 4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4058 printf %s "checking for suffix of executables... " >&6; } 4059 if { { ac_try="$ac_link" 4060 case "(($ac_try" in 4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4062 *) ac_try_echo=$ac_try;; 4063 esac 4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4065 printf "%s\n" "$ac_try_echo"; } >&5 4066 (eval "$ac_link") 2>&5 4067 ac_status=$? 4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4069 test $ac_status = 0; } 4070 then : 4071 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4072 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4073 # work properly (i.e., refer to `conftest.exe'), while it won't with 4074 # `rm'. 4075 for ac_file in conftest.exe conftest conftest.*; do 4076 test -f "$ac_file" || continue 4077 case $ac_file in 4078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4079 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4080 break;; 4081 * ) break;; 4082 esac 4083 done 4084 else $as_nop 4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4087 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4088 See \`config.log' for more details" "$LINENO" 5; } 4089 fi 4090 rm -f conftest conftest$ac_cv_exeext 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4092 printf "%s\n" "$ac_cv_exeext" >&6; } 4093 4094 rm -f conftest.$ac_ext 4095 EXEEXT=$ac_cv_exeext 4096 ac_exeext=$EXEEXT 4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4098 /* end confdefs.h. */ 4099 #include <stdio.h> 4100 int 4101 main (void) 4102 { 4103 FILE *f = fopen ("conftest.out", "w"); 4104 return ferror (f) || fclose (f) != 0; 4105 4106 ; 4107 return 0; 4108 } 4109 _ACEOF 4110 ac_clean_files="$ac_clean_files conftest.out" 4111 # Check that the compiler produces executables we can run. If not, either 4112 # the compiler is broken, or we cross compile. 4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4114 printf %s "checking whether we are cross compiling... " >&6; } 4115 if test "$cross_compiling" != yes; then 4116 { { ac_try="$ac_link" 4117 case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120 esac 4121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4122 printf "%s\n" "$ac_try_echo"; } >&5 4123 (eval "$ac_link") 2>&5 4124 ac_status=$? 4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4126 test $ac_status = 0; } 4127 if { ac_try='./conftest$ac_cv_exeext' 4128 { { case "(($ac_try" in 4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4130 *) ac_try_echo=$ac_try;; 4131 esac 4132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4133 printf "%s\n" "$ac_try_echo"; } >&5 4134 (eval "$ac_try") 2>&5 4135 ac_status=$? 4136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4137 test $ac_status = 0; }; }; then 4138 cross_compiling=no 4139 else 4140 if test "$cross_compiling" = maybe; then 4141 cross_compiling=yes 4142 else 4143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4144 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4145 as_fn_error 77 "cannot run C compiled programs. 4146 If you meant to cross compile, use \`--host'. 4147 See \`config.log' for more details" "$LINENO" 5; } 4148 fi 4149 fi 4150 fi 4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4152 printf "%s\n" "$cross_compiling" >&6; } 4153 4154 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4155 ac_clean_files=$ac_clean_files_save 4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4157 printf %s "checking for suffix of object files... " >&6; } 4158 if test ${ac_cv_objext+y} 4159 then : 4160 printf %s "(cached) " >&6 4161 else $as_nop 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163 /* end confdefs.h. */ 4164 4165 int 4166 main (void) 4167 { 4168 4169 ; 4170 return 0; 4171 } 4172 _ACEOF 4173 rm -f conftest.o conftest.obj 4174 if { { ac_try="$ac_compile" 4175 case "(($ac_try" in 4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4177 *) ac_try_echo=$ac_try;; 4178 esac 4179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4180 printf "%s\n" "$ac_try_echo"; } >&5 4181 (eval "$ac_compile") 2>&5 4182 ac_status=$? 4183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4184 test $ac_status = 0; } 4185 then : 4186 for ac_file in conftest.o conftest.obj conftest.*; do 4187 test -f "$ac_file" || continue; 4188 case $ac_file in 4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4191 break;; 4192 esac 4193 done 4194 else $as_nop 4195 printf "%s\n" "$as_me: failed program was:" >&5 4196 sed 's/^/| /' conftest.$ac_ext >&5 4197 4198 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4199 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4200 as_fn_error $? "cannot compute suffix of object files: cannot compile 4201 See \`config.log' for more details" "$LINENO" 5; } 4202 fi 4203 rm -f conftest.$ac_cv_objext conftest.$ac_ext 4204 fi 4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4206 printf "%s\n" "$ac_cv_objext" >&6; } 4207 OBJEXT=$ac_cv_objext 4208 ac_objext=$OBJEXT 4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4210 printf %s "checking whether the compiler supports GNU C... " >&6; } 4211 if test ${ac_cv_c_compiler_gnu+y} 4212 then : 4213 printf %s "(cached) " >&6 4214 else $as_nop 4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4216 /* end confdefs.h. */ 4217 4218 int 4219 main (void) 4220 { 4221 #ifndef __GNUC__ 4222 choke me 4223 #endif 4224 4225 ; 4226 return 0; 4227 } 4228 _ACEOF 4229 if ac_fn_c_try_compile "$LINENO" 4230 then : 4231 ac_compiler_gnu=yes 4232 else $as_nop 4233 ac_compiler_gnu=no 4234 fi 4235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4236 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4237 4238 fi 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4240 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4242 4243 if test $ac_compiler_gnu = yes; then 4244 GCC=yes 4245 else 4246 GCC= 4247 fi 4248 ac_test_CFLAGS=${CFLAGS+y} 4249 ac_save_CFLAGS=$CFLAGS 4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4251 printf %s "checking whether $CC accepts -g... " >&6; } 4252 if test ${ac_cv_prog_cc_g+y} 4253 then : 4254 printf %s "(cached) " >&6 4255 else $as_nop 4256 ac_save_c_werror_flag=$ac_c_werror_flag 4257 ac_c_werror_flag=yes 4258 ac_cv_prog_cc_g=no 4259 CFLAGS="-g" 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261 /* end confdefs.h. */ 4262 4263 int 4264 main (void) 4265 { 4266 4267 ; 4268 return 0; 4269 } 4270 _ACEOF 4271 if ac_fn_c_try_compile "$LINENO" 4272 then : 4273 ac_cv_prog_cc_g=yes 4274 else $as_nop 4275 CFLAGS="" 4276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4277 /* end confdefs.h. */ 4278 4279 int 4280 main (void) 4281 { 4282 4283 ; 4284 return 0; 4285 } 4286 _ACEOF 4287 if ac_fn_c_try_compile "$LINENO" 4288 then : 4289 4290 else $as_nop 4291 ac_c_werror_flag=$ac_save_c_werror_flag 4292 CFLAGS="-g" 4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4294 /* end confdefs.h. */ 4295 4296 int 4297 main (void) 4298 { 4299 4300 ; 4301 return 0; 4302 } 4303 _ACEOF 4304 if ac_fn_c_try_compile "$LINENO" 4305 then : 4306 ac_cv_prog_cc_g=yes 4307 fi 4308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4309 fi 4310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4311 fi 4312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4313 ac_c_werror_flag=$ac_save_c_werror_flag 4314 fi 4315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4316 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4317 if test $ac_test_CFLAGS; then 4318 CFLAGS=$ac_save_CFLAGS 4319 elif test $ac_cv_prog_cc_g = yes; then 4320 if test "$GCC" = yes; then 4321 CFLAGS="-g -O2" 4322 else 4323 CFLAGS="-g" 4324 fi 4325 else 4326 if test "$GCC" = yes; then 4327 CFLAGS="-O2" 4328 else 4329 CFLAGS= 4330 fi 4331 fi 4332 ac_prog_cc_stdc=no 4333 if test x$ac_prog_cc_stdc = xno 4334 then : 4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4336 printf %s "checking for $CC option to enable C11 features... " >&6; } 4337 if test ${ac_cv_prog_cc_c11+y} 4338 then : 4339 printf %s "(cached) " >&6 4340 else $as_nop 4341 ac_cv_prog_cc_c11=no 4342 ac_save_CC=$CC 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4344 /* end confdefs.h. */ 4345 $ac_c_conftest_c11_program 4346 _ACEOF 4347 for ac_arg in '' -std=gnu11 4348 do 4349 CC="$ac_save_CC $ac_arg" 4350 if ac_fn_c_try_compile "$LINENO" 4351 then : 4352 ac_cv_prog_cc_c11=$ac_arg 4353 fi 4354 rm -f core conftest.err conftest.$ac_objext conftest.beam 4355 test "x$ac_cv_prog_cc_c11" != "xno" && break 4356 done 4357 rm -f conftest.$ac_ext 4358 CC=$ac_save_CC 4359 fi 4360 4361 if test "x$ac_cv_prog_cc_c11" = xno 4362 then : 4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4364 printf "%s\n" "unsupported" >&6; } 4365 else $as_nop 4366 if test "x$ac_cv_prog_cc_c11" = x 4367 then : 4368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4369 printf "%s\n" "none needed" >&6; } 4370 else $as_nop 4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4372 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4373 CC="$CC $ac_cv_prog_cc_c11" 4374 fi 4375 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4376 ac_prog_cc_stdc=c11 4377 fi 4378 fi 4379 if test x$ac_prog_cc_stdc = xno 4380 then : 4381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4382 printf %s "checking for $CC option to enable C99 features... " >&6; } 4383 if test ${ac_cv_prog_cc_c99+y} 4384 then : 4385 printf %s "(cached) " >&6 4386 else $as_nop 4387 ac_cv_prog_cc_c99=no 4388 ac_save_CC=$CC 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390 /* end confdefs.h. */ 4391 $ac_c_conftest_c99_program 4392 _ACEOF 4393 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4394 do 4395 CC="$ac_save_CC $ac_arg" 4396 if ac_fn_c_try_compile "$LINENO" 4397 then : 4398 ac_cv_prog_cc_c99=$ac_arg 4399 fi 4400 rm -f core conftest.err conftest.$ac_objext conftest.beam 4401 test "x$ac_cv_prog_cc_c99" != "xno" && break 4402 done 4403 rm -f conftest.$ac_ext 4404 CC=$ac_save_CC 4405 fi 4406 4407 if test "x$ac_cv_prog_cc_c99" = xno 4408 then : 4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4410 printf "%s\n" "unsupported" >&6; } 4411 else $as_nop 4412 if test "x$ac_cv_prog_cc_c99" = x 4413 then : 4414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4415 printf "%s\n" "none needed" >&6; } 4416 else $as_nop 4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4418 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4419 CC="$CC $ac_cv_prog_cc_c99" 4420 fi 4421 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4422 ac_prog_cc_stdc=c99 4423 fi 4424 fi 4425 if test x$ac_prog_cc_stdc = xno 4426 then : 4427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4428 printf %s "checking for $CC option to enable C89 features... " >&6; } 4429 if test ${ac_cv_prog_cc_c89+y} 4430 then : 4431 printf %s "(cached) " >&6 4432 else $as_nop 4433 ac_cv_prog_cc_c89=no 4434 ac_save_CC=$CC 4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4436 /* end confdefs.h. */ 4437 $ac_c_conftest_c89_program 4438 _ACEOF 4439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4440 do 4441 CC="$ac_save_CC $ac_arg" 4442 if ac_fn_c_try_compile "$LINENO" 4443 then : 4444 ac_cv_prog_cc_c89=$ac_arg 4445 fi 4446 rm -f core conftest.err conftest.$ac_objext conftest.beam 4447 test "x$ac_cv_prog_cc_c89" != "xno" && break 4448 done 4449 rm -f conftest.$ac_ext 4450 CC=$ac_save_CC 4451 fi 4452 4453 if test "x$ac_cv_prog_cc_c89" = xno 4454 then : 4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4456 printf "%s\n" "unsupported" >&6; } 4457 else $as_nop 4458 if test "x$ac_cv_prog_cc_c89" = x 4459 then : 4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4461 printf "%s\n" "none needed" >&6; } 4462 else $as_nop 4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4464 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4465 CC="$CC $ac_cv_prog_cc_c89" 4466 fi 4467 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4468 ac_prog_cc_stdc=c89 4469 fi 4470 fi 4471 4472 ac_ext=c 4473 ac_cpp='$CPP $CPPFLAGS' 4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4477 4478 4479 ac_ext=c 4480 ac_cpp='$CPP $CPPFLAGS' 4481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4483 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4485 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4486 if test ${am_cv_prog_cc_c_o+y} 4487 then : 4488 printf %s "(cached) " >&6 4489 else $as_nop 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491 /* end confdefs.h. */ 4492 4493 int 4494 main (void) 4495 { 4496 4497 ; 4498 return 0; 4499 } 4500 _ACEOF 4501 # Make sure it works both with $CC and with simple cc. 4502 # Following AC_PROG_CC_C_O, we do the test twice because some 4503 # compilers refuse to overwrite an existing .o file with -o, 4504 # though they will create one. 4505 am_cv_prog_cc_c_o=yes 4506 for am_i in 1 2; do 4507 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4508 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4509 ac_status=$? 4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4511 (exit $ac_status); } \ 4512 && test -f conftest2.$ac_objext; then 4513 : OK 4514 else 4515 am_cv_prog_cc_c_o=no 4516 break 4517 fi 4518 done 4519 rm -f core conftest* 4520 unset am_i 4521 fi 4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4523 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4524 if test "$am_cv_prog_cc_c_o" != yes; then 4525 # Losing compiler, so override with the script. 4526 # FIXME: It is wrong to rewrite CC. 4527 # But if we don't then we get into trouble of one sort or another. 4528 # A longer-term fix would be to have automake use am__CC in this case, 4529 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4530 CC="$am_aux_dir/compile $CC" 4531 fi 4532 ac_ext=c 4533 ac_cpp='$CPP $CPPFLAGS' 4534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4536 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4537 4538 4539 depcc="$CC" am_compiler_list= 4540 4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4542 printf %s "checking dependency style of $depcc... " >&6; } 4543 if test ${am_cv_CC_dependencies_compiler_type+y} 4544 then : 4545 printf %s "(cached) " >&6 4546 else $as_nop 4547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4548 # We make a subdir and do the tests there. Otherwise we can end up 4549 # making bogus files that we don't know about and never remove. For 4550 # instance it was reported that on HP-UX the gcc test will end up 4551 # making a dummy file named 'D' -- because '-MD' means "put the output 4552 # in D". 4553 rm -rf conftest.dir 4554 mkdir conftest.dir 4555 # Copy depcomp to subdir because otherwise we won't find it if we're 4556 # using a relative directory. 4557 cp "$am_depcomp" conftest.dir 4558 cd conftest.dir 4559 # We will build objects and dependencies in a subdirectory because 4560 # it helps to detect inapplicable dependency modes. For instance 4561 # both Tru64's cc and ICC support -MD to output dependencies as a 4562 # side effect of compilation, but ICC will put the dependencies in 4563 # the current directory while Tru64 will put them in the object 4564 # directory. 4565 mkdir sub 4566 4567 am_cv_CC_dependencies_compiler_type=none 4568 if test "$am_compiler_list" = ""; then 4569 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4570 fi 4571 am__universal=false 4572 case " $depcc " in #( 4573 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4574 esac 4575 4576 for depmode in $am_compiler_list; do 4577 # Setup a source with many dependencies, because some compilers 4578 # like to wrap large dependency lists on column 80 (with \), and 4579 # we should not choose a depcomp mode which is confused by this. 4580 # 4581 # We need to recreate these files for each test, as the compiler may 4582 # overwrite some of them when testing with obscure command lines. 4583 # This happens at least with the AIX C compiler. 4584 : > sub/conftest.c 4585 for i in 1 2 3 4 5 6; do 4586 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4587 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4588 # Solaris 10 /bin/sh. 4589 echo '/* dummy */' > sub/conftst$i.h 4590 done 4591 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4592 4593 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4594 # mode. It turns out that the SunPro C++ compiler does not properly 4595 # handle '-M -o', and we need to detect this. Also, some Intel 4596 # versions had trouble with output in subdirs. 4597 am__obj=sub/conftest.${OBJEXT-o} 4598 am__minus_obj="-o $am__obj" 4599 case $depmode in 4600 gcc) 4601 # This depmode causes a compiler race in universal mode. 4602 test "$am__universal" = false || continue 4603 ;; 4604 nosideeffect) 4605 # After this tag, mechanisms are not by side-effect, so they'll 4606 # only be used when explicitly requested. 4607 if test "x$enable_dependency_tracking" = xyes; then 4608 continue 4609 else 4610 break 4611 fi 4612 ;; 4613 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4614 # This compiler won't grok '-c -o', but also, the minuso test has 4615 # not run yet. These depmodes are late enough in the game, and 4616 # so weak that their functioning should not be impacted. 4617 am__obj=conftest.${OBJEXT-o} 4618 am__minus_obj= 4619 ;; 4620 none) break ;; 4621 esac 4622 if depmode=$depmode \ 4623 source=sub/conftest.c object=$am__obj \ 4624 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4625 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4626 >/dev/null 2>conftest.err && 4627 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4628 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4629 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4630 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4631 # icc doesn't choke on unknown options, it will just issue warnings 4632 # or remarks (even with -Werror). So we grep stderr for any message 4633 # that says an option was ignored or not supported. 4634 # When given -MP, icc 7.0 and 7.1 complain thusly: 4635 # icc: Command line warning: ignoring option '-M'; no argument required 4636 # The diagnosis changed in icc 8.0: 4637 # icc: Command line remark: option '-MP' not supported 4638 if (grep 'ignoring option' conftest.err || 4639 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4640 am_cv_CC_dependencies_compiler_type=$depmode 4641 break 4642 fi 4643 fi 4644 done 4645 4646 cd .. 4647 rm -rf conftest.dir 4648 else 4649 am_cv_CC_dependencies_compiler_type=none 4650 fi 4651 4652 fi 4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4654 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4655 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4656 4657 if 4658 test "x$enable_dependency_tracking" != xno \ 4659 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4660 am__fastdepCC_TRUE= 4661 am__fastdepCC_FALSE='#' 4662 else 4663 am__fastdepCC_TRUE='#' 4664 am__fastdepCC_FALSE= 4665 fi 4666 4667 4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4669 printf %s "checking for a sed that does not truncate output... " >&6; } 4670 if test ${ac_cv_path_SED+y} 4671 then : 4672 printf %s "(cached) " >&6 4673 else $as_nop 4674 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4675 for ac_i in 1 2 3 4 5 6 7; do 4676 ac_script="$ac_script$as_nl$ac_script" 4677 done 4678 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4679 { ac_script=; unset ac_script;} 4680 if test -z "$SED"; then 4681 ac_path_SED_found=false 4682 # Loop through the user's path and test for each of PROGNAME-LIST 4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4684 for as_dir in $PATH 4685 do 4686 IFS=$as_save_IFS 4687 case $as_dir in #((( 4688 '') as_dir=./ ;; 4689 */) ;; 4690 *) as_dir=$as_dir/ ;; 4691 esac 4692 for ac_prog in sed gsed 4693 do 4694 for ac_exec_ext in '' $ac_executable_extensions; do 4695 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4696 as_fn_executable_p "$ac_path_SED" || continue 4697 # Check for GNU ac_path_SED and select it if it is found. 4698 # Check for GNU $ac_path_SED 4699 case `"$ac_path_SED" --version 2>&1` in 4700 *GNU*) 4701 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4702 *) 4703 ac_count=0 4704 printf %s 0123456789 >"conftest.in" 4705 while : 4706 do 4707 cat "conftest.in" "conftest.in" >"conftest.tmp" 4708 mv "conftest.tmp" "conftest.in" 4709 cp "conftest.in" "conftest.nl" 4710 printf "%s\n" '' >> "conftest.nl" 4711 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4712 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4713 as_fn_arith $ac_count + 1 && ac_count=$as_val 4714 if test $ac_count -gt ${ac_path_SED_max-0}; then 4715 # Best one so far, save it but keep looking for a better one 4716 ac_cv_path_SED="$ac_path_SED" 4717 ac_path_SED_max=$ac_count 4718 fi 4719 # 10*(2^10) chars as input seems more than enough 4720 test $ac_count -gt 10 && break 4721 done 4722 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4723 esac 4724 4725 $ac_path_SED_found && break 3 4726 done 4727 done 4728 done 4729 IFS=$as_save_IFS 4730 if test -z "$ac_cv_path_SED"; then 4731 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4732 fi 4733 else 4734 ac_cv_path_SED=$SED 4735 fi 4736 4737 fi 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4739 printf "%s\n" "$ac_cv_path_SED" >&6; } 4740 SED="$ac_cv_path_SED" 4741 rm -f conftest.sed 4742 4743 test -z "$SED" && SED=sed 4744 Xsed="$SED -e 1s/^X//" 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4757 printf %s "checking for grep that handles long lines and -e... " >&6; } 4758 if test ${ac_cv_path_GREP+y} 4759 then : 4760 printf %s "(cached) " >&6 4761 else $as_nop 4762 if test -z "$GREP"; then 4763 ac_path_GREP_found=false 4764 # Loop through the user's path and test for each of PROGNAME-LIST 4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4767 do 4768 IFS=$as_save_IFS 4769 case $as_dir in #((( 4770 '') as_dir=./ ;; 4771 */) ;; 4772 *) as_dir=$as_dir/ ;; 4773 esac 4774 for ac_prog in grep ggrep 4775 do 4776 for ac_exec_ext in '' $ac_executable_extensions; do 4777 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 4778 as_fn_executable_p "$ac_path_GREP" || continue 4779 # Check for GNU ac_path_GREP and select it if it is found. 4780 # Check for GNU $ac_path_GREP 4781 case `"$ac_path_GREP" --version 2>&1` in 4782 *GNU*) 4783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4784 *) 4785 ac_count=0 4786 printf %s 0123456789 >"conftest.in" 4787 while : 4788 do 4789 cat "conftest.in" "conftest.in" >"conftest.tmp" 4790 mv "conftest.tmp" "conftest.in" 4791 cp "conftest.in" "conftest.nl" 4792 printf "%s\n" 'GREP' >> "conftest.nl" 4793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4795 as_fn_arith $ac_count + 1 && ac_count=$as_val 4796 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4797 # Best one so far, save it but keep looking for a better one 4798 ac_cv_path_GREP="$ac_path_GREP" 4799 ac_path_GREP_max=$ac_count 4800 fi 4801 # 10*(2^10) chars as input seems more than enough 4802 test $ac_count -gt 10 && break 4803 done 4804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4805 esac 4806 4807 $ac_path_GREP_found && break 3 4808 done 4809 done 4810 done 4811 IFS=$as_save_IFS 4812 if test -z "$ac_cv_path_GREP"; then 4813 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4814 fi 4815 else 4816 ac_cv_path_GREP=$GREP 4817 fi 4818 4819 fi 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4821 printf "%s\n" "$ac_cv_path_GREP" >&6; } 4822 GREP="$ac_cv_path_GREP" 4823 4824 4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4826 printf %s "checking for egrep... " >&6; } 4827 if test ${ac_cv_path_EGREP+y} 4828 then : 4829 printf %s "(cached) " >&6 4830 else $as_nop 4831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4832 then ac_cv_path_EGREP="$GREP -E" 4833 else 4834 if test -z "$EGREP"; then 4835 ac_path_EGREP_found=false 4836 # Loop through the user's path and test for each of PROGNAME-LIST 4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4839 do 4840 IFS=$as_save_IFS 4841 case $as_dir in #((( 4842 '') as_dir=./ ;; 4843 */) ;; 4844 *) as_dir=$as_dir/ ;; 4845 esac 4846 for ac_prog in egrep 4847 do 4848 for ac_exec_ext in '' $ac_executable_extensions; do 4849 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 4850 as_fn_executable_p "$ac_path_EGREP" || continue 4851 # Check for GNU ac_path_EGREP and select it if it is found. 4852 # Check for GNU $ac_path_EGREP 4853 case `"$ac_path_EGREP" --version 2>&1` in 4854 *GNU*) 4855 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4856 *) 4857 ac_count=0 4858 printf %s 0123456789 >"conftest.in" 4859 while : 4860 do 4861 cat "conftest.in" "conftest.in" >"conftest.tmp" 4862 mv "conftest.tmp" "conftest.in" 4863 cp "conftest.in" "conftest.nl" 4864 printf "%s\n" 'EGREP' >> "conftest.nl" 4865 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4867 as_fn_arith $ac_count + 1 && ac_count=$as_val 4868 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4869 # Best one so far, save it but keep looking for a better one 4870 ac_cv_path_EGREP="$ac_path_EGREP" 4871 ac_path_EGREP_max=$ac_count 4872 fi 4873 # 10*(2^10) chars as input seems more than enough 4874 test $ac_count -gt 10 && break 4875 done 4876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4877 esac 4878 4879 $ac_path_EGREP_found && break 3 4880 done 4881 done 4882 done 4883 IFS=$as_save_IFS 4884 if test -z "$ac_cv_path_EGREP"; then 4885 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4886 fi 4887 else 4888 ac_cv_path_EGREP=$EGREP 4889 fi 4890 4891 fi 4892 fi 4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4894 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 4895 EGREP="$ac_cv_path_EGREP" 4896 4897 4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4899 printf %s "checking for fgrep... " >&6; } 4900 if test ${ac_cv_path_FGREP+y} 4901 then : 4902 printf %s "(cached) " >&6 4903 else $as_nop 4904 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4905 then ac_cv_path_FGREP="$GREP -F" 4906 else 4907 if test -z "$FGREP"; then 4908 ac_path_FGREP_found=false 4909 # Loop through the user's path and test for each of PROGNAME-LIST 4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4912 do 4913 IFS=$as_save_IFS 4914 case $as_dir in #((( 4915 '') as_dir=./ ;; 4916 */) ;; 4917 *) as_dir=$as_dir/ ;; 4918 esac 4919 for ac_prog in fgrep 4920 do 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 4923 as_fn_executable_p "$ac_path_FGREP" || continue 4924 # Check for GNU ac_path_FGREP and select it if it is found. 4925 # Check for GNU $ac_path_FGREP 4926 case `"$ac_path_FGREP" --version 2>&1` in 4927 *GNU*) 4928 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4929 *) 4930 ac_count=0 4931 printf %s 0123456789 >"conftest.in" 4932 while : 4933 do 4934 cat "conftest.in" "conftest.in" >"conftest.tmp" 4935 mv "conftest.tmp" "conftest.in" 4936 cp "conftest.in" "conftest.nl" 4937 printf "%s\n" 'FGREP' >> "conftest.nl" 4938 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4940 as_fn_arith $ac_count + 1 && ac_count=$as_val 4941 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4942 # Best one so far, save it but keep looking for a better one 4943 ac_cv_path_FGREP="$ac_path_FGREP" 4944 ac_path_FGREP_max=$ac_count 4945 fi 4946 # 10*(2^10) chars as input seems more than enough 4947 test $ac_count -gt 10 && break 4948 done 4949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4950 esac 4951 4952 $ac_path_FGREP_found && break 3 4953 done 4954 done 4955 done 4956 IFS=$as_save_IFS 4957 if test -z "$ac_cv_path_FGREP"; then 4958 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4959 fi 4960 else 4961 ac_cv_path_FGREP=$FGREP 4962 fi 4963 4964 fi 4965 fi 4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4967 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 4968 FGREP="$ac_cv_path_FGREP" 4969 4970 4971 test -z "$GREP" && GREP=grep 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 # Check whether --with-gnu-ld was given. 4992 if test ${with_gnu_ld+y} 4993 then : 4994 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4995 else $as_nop 4996 with_gnu_ld=no 4997 fi 4998 4999 ac_prog=ld 5000 if test yes = "$GCC"; then 5001 # Check if gcc -print-prog-name=ld gives a path. 5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5003 printf %s "checking for ld used by $CC... " >&6; } 5004 case $host in 5005 *-*-mingw*) 5006 # gcc leaves a trailing carriage return, which upsets mingw 5007 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5008 *) 5009 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5010 esac 5011 case $ac_prog in 5012 # Accept absolute paths. 5013 [\\/]* | ?:[\\/]*) 5014 re_direlt='/[^/][^/]*/\.\./' 5015 # Canonicalize the pathname of ld 5016 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5017 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5018 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5019 done 5020 test -z "$LD" && LD=$ac_prog 5021 ;; 5022 "") 5023 # If it fails, then pretend we aren't using GCC. 5024 ac_prog=ld 5025 ;; 5026 *) 5027 # If it is relative, then search for the first ld in PATH. 5028 with_gnu_ld=unknown 5029 ;; 5030 esac 5031 elif test yes = "$with_gnu_ld"; then 5032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5033 printf %s "checking for GNU ld... " >&6; } 5034 else 5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5036 printf %s "checking for non-GNU ld... " >&6; } 5037 fi 5038 if test ${lt_cv_path_LD+y} 5039 then : 5040 printf %s "(cached) " >&6 5041 else $as_nop 5042 if test -z "$LD"; then 5043 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5044 for ac_dir in $PATH; do 5045 IFS=$lt_save_ifs 5046 test -z "$ac_dir" && ac_dir=. 5047 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5048 lt_cv_path_LD=$ac_dir/$ac_prog 5049 # Check to see if the program is GNU ld. I'd rather use --version, 5050 # but apparently some variants of GNU ld only accept -v. 5051 # Break only if it was the GNU/non-GNU ld that we prefer. 5052 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5053 *GNU* | *'with BFD'*) 5054 test no != "$with_gnu_ld" && break 5055 ;; 5056 *) 5057 test yes != "$with_gnu_ld" && break 5058 ;; 5059 esac 5060 fi 5061 done 5062 IFS=$lt_save_ifs 5063 else 5064 lt_cv_path_LD=$LD # Let the user override the test with a path. 5065 fi 5066 fi 5067 5068 LD=$lt_cv_path_LD 5069 if test -n "$LD"; then 5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5071 printf "%s\n" "$LD" >&6; } 5072 else 5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5074 printf "%s\n" "no" >&6; } 5075 fi 5076 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5078 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5079 if test ${lt_cv_prog_gnu_ld+y} 5080 then : 5081 printf %s "(cached) " >&6 5082 else $as_nop 5083 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5084 case `$LD -v 2>&1 </dev/null` in 5085 *GNU* | *'with BFD'*) 5086 lt_cv_prog_gnu_ld=yes 5087 ;; 5088 *) 5089 lt_cv_prog_gnu_ld=no 5090 ;; 5091 esac 5092 fi 5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5094 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5095 with_gnu_ld=$lt_cv_prog_gnu_ld 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5106 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5107 if test ${lt_cv_path_NM+y} 5108 then : 5109 printf %s "(cached) " >&6 5110 else $as_nop 5111 if test -n "$NM"; then 5112 # Let the user override the test. 5113 lt_cv_path_NM=$NM 5114 else 5115 lt_nm_to_check=${ac_tool_prefix}nm 5116 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5117 lt_nm_to_check="$lt_nm_to_check nm" 5118 fi 5119 for lt_tmp_nm in $lt_nm_to_check; do 5120 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5121 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5122 IFS=$lt_save_ifs 5123 test -z "$ac_dir" && ac_dir=. 5124 tmp_nm=$ac_dir/$lt_tmp_nm 5125 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5126 # Check to see if the nm accepts a BSD-compat flag. 5127 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5128 # nm: unknown option "B" ignored 5129 # Tru64's nm complains that /dev/null is an invalid object file 5130 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5131 case $build_os in 5132 mingw*) lt_bad_file=conftest.nm/nofile ;; 5133 *) lt_bad_file=/dev/null ;; 5134 esac 5135 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5136 *$lt_bad_file* | *'Invalid file or object type'*) 5137 lt_cv_path_NM="$tmp_nm -B" 5138 break 2 5139 ;; 5140 *) 5141 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5142 */dev/null*) 5143 lt_cv_path_NM="$tmp_nm -p" 5144 break 2 5145 ;; 5146 *) 5147 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5148 continue # so that we can try to find one that supports BSD flags 5149 ;; 5150 esac 5151 ;; 5152 esac 5153 fi 5154 done 5155 IFS=$lt_save_ifs 5156 done 5157 : ${lt_cv_path_NM=no} 5158 fi 5159 fi 5160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5161 printf "%s\n" "$lt_cv_path_NM" >&6; } 5162 if test no != "$lt_cv_path_NM"; then 5163 NM=$lt_cv_path_NM 5164 else 5165 # Didn't find any BSD compatible name lister, look for dumpbin. 5166 if test -n "$DUMPBIN"; then : 5167 # Let the user override the test. 5168 else 5169 if test -n "$ac_tool_prefix"; then 5170 for ac_prog in dumpbin "link -dump" 5171 do 5172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5175 printf %s "checking for $ac_word... " >&6; } 5176 if test ${ac_cv_prog_DUMPBIN+y} 5177 then : 5178 printf %s "(cached) " >&6 5179 else $as_nop 5180 if test -n "$DUMPBIN"; then 5181 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5182 else 5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5184 for as_dir in $PATH 5185 do 5186 IFS=$as_save_IFS 5187 case $as_dir in #((( 5188 '') as_dir=./ ;; 5189 */) ;; 5190 *) as_dir=$as_dir/ ;; 5191 esac 5192 for ac_exec_ext in '' $ac_executable_extensions; do 5193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5194 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5196 break 2 5197 fi 5198 done 5199 done 5200 IFS=$as_save_IFS 5201 5202 fi 5203 fi 5204 DUMPBIN=$ac_cv_prog_DUMPBIN 5205 if test -n "$DUMPBIN"; then 5206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5207 printf "%s\n" "$DUMPBIN" >&6; } 5208 else 5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5210 printf "%s\n" "no" >&6; } 5211 fi 5212 5213 5214 test -n "$DUMPBIN" && break 5215 done 5216 fi 5217 if test -z "$DUMPBIN"; then 5218 ac_ct_DUMPBIN=$DUMPBIN 5219 for ac_prog in dumpbin "link -dump" 5220 do 5221 # Extract the first word of "$ac_prog", so it can be a program name with args. 5222 set dummy $ac_prog; ac_word=$2 5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5224 printf %s "checking for $ac_word... " >&6; } 5225 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5226 then : 5227 printf %s "(cached) " >&6 5228 else $as_nop 5229 if test -n "$ac_ct_DUMPBIN"; then 5230 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5231 else 5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5233 for as_dir in $PATH 5234 do 5235 IFS=$as_save_IFS 5236 case $as_dir in #((( 5237 '') as_dir=./ ;; 5238 */) ;; 5239 *) as_dir=$as_dir/ ;; 5240 esac 5241 for ac_exec_ext in '' $ac_executable_extensions; do 5242 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5243 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5244 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5245 break 2 5246 fi 5247 done 5248 done 5249 IFS=$as_save_IFS 5250 5251 fi 5252 fi 5253 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5254 if test -n "$ac_ct_DUMPBIN"; then 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5256 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5257 else 5258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259 printf "%s\n" "no" >&6; } 5260 fi 5261 5262 5263 test -n "$ac_ct_DUMPBIN" && break 5264 done 5265 5266 if test "x$ac_ct_DUMPBIN" = x; then 5267 DUMPBIN=":" 5268 else 5269 case $cross_compiling:$ac_tool_warned in 5270 yes:) 5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5272 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5273 ac_tool_warned=yes ;; 5274 esac 5275 DUMPBIN=$ac_ct_DUMPBIN 5276 fi 5277 fi 5278 5279 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5280 *COFF*) 5281 DUMPBIN="$DUMPBIN -symbols -headers" 5282 ;; 5283 *) 5284 DUMPBIN=: 5285 ;; 5286 esac 5287 fi 5288 5289 if test : != "$DUMPBIN"; then 5290 NM=$DUMPBIN 5291 fi 5292 fi 5293 test -z "$NM" && NM=nm 5294 5295 5296 5297 5298 5299 5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5301 printf %s "checking the name lister ($NM) interface... " >&6; } 5302 if test ${lt_cv_nm_interface+y} 5303 then : 5304 printf %s "(cached) " >&6 5305 else $as_nop 5306 lt_cv_nm_interface="BSD nm" 5307 echo "int some_variable = 0;" > conftest.$ac_ext 5308 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5309 (eval "$ac_compile" 2>conftest.err) 5310 cat conftest.err >&5 5311 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5312 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5313 cat conftest.err >&5 5314 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5315 cat conftest.out >&5 5316 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5317 lt_cv_nm_interface="MS dumpbin" 5318 fi 5319 rm -f conftest* 5320 fi 5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5322 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5323 5324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5325 printf %s "checking whether ln -s works... " >&6; } 5326 LN_S=$as_ln_s 5327 if test "$LN_S" = "ln -s"; then 5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5329 printf "%s\n" "yes" >&6; } 5330 else 5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5332 printf "%s\n" "no, using $LN_S" >&6; } 5333 fi 5334 5335 # find the maximum length of command line arguments 5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5337 printf %s "checking the maximum length of command line arguments... " >&6; } 5338 if test ${lt_cv_sys_max_cmd_len+y} 5339 then : 5340 printf %s "(cached) " >&6 5341 else $as_nop 5342 i=0 5343 teststring=ABCD 5344 5345 case $build_os in 5346 msdosdjgpp*) 5347 # On DJGPP, this test can blow up pretty badly due to problems in libc 5348 # (any single argument exceeding 2000 bytes causes a buffer overrun 5349 # during glob expansion). Even if it were fixed, the result of this 5350 # check would be larger than it should be. 5351 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5352 ;; 5353 5354 gnu*) 5355 # Under GNU Hurd, this test is not required because there is 5356 # no limit to the length of command line arguments. 5357 # Libtool will interpret -1 as no limit whatsoever 5358 lt_cv_sys_max_cmd_len=-1; 5359 ;; 5360 5361 cygwin* | mingw* | cegcc*) 5362 # On Win9x/ME, this test blows up -- it succeeds, but takes 5363 # about 5 minutes as the teststring grows exponentially. 5364 # Worse, since 9x/ME are not pre-emptively multitasking, 5365 # you end up with a "frozen" computer, even though with patience 5366 # the test eventually succeeds (with a max line length of 256k). 5367 # Instead, let's just punt: use the minimum linelength reported by 5368 # all of the supported platforms: 8192 (on NT/2K/XP). 5369 lt_cv_sys_max_cmd_len=8192; 5370 ;; 5371 5372 mint*) 5373 # On MiNT this can take a long time and run out of memory. 5374 lt_cv_sys_max_cmd_len=8192; 5375 ;; 5376 5377 amigaos*) 5378 # On AmigaOS with pdksh, this test takes hours, literally. 5379 # So we just punt and use a minimum line length of 8192. 5380 lt_cv_sys_max_cmd_len=8192; 5381 ;; 5382 5383 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5384 # This has been around since 386BSD, at least. Likely further. 5385 if test -x /sbin/sysctl; then 5386 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5387 elif test -x /usr/sbin/sysctl; then 5388 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5389 else 5390 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5391 fi 5392 # And add a safety zone 5393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5394 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5395 ;; 5396 5397 interix*) 5398 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5399 lt_cv_sys_max_cmd_len=196608 5400 ;; 5401 5402 os2*) 5403 # The test takes a long time on OS/2. 5404 lt_cv_sys_max_cmd_len=8192 5405 ;; 5406 5407 osf*) 5408 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5409 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5410 # nice to cause kernel panics so lets avoid the loop below. 5411 # First set a reasonable default. 5412 lt_cv_sys_max_cmd_len=16384 5413 # 5414 if test -x /sbin/sysconfig; then 5415 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5416 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5417 esac 5418 fi 5419 ;; 5420 sco3.2v5*) 5421 lt_cv_sys_max_cmd_len=102400 5422 ;; 5423 sysv5* | sco5v6* | sysv4.2uw2*) 5424 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5425 if test -n "$kargmax"; then 5426 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 5427 else 5428 lt_cv_sys_max_cmd_len=32768 5429 fi 5430 ;; 5431 *) 5432 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5433 if test -n "$lt_cv_sys_max_cmd_len" && \ 5434 test undefined != "$lt_cv_sys_max_cmd_len"; then 5435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5437 else 5438 # Make teststring a little bigger before we do anything with it. 5439 # a 1K string should be a reasonable start. 5440 for i in 1 2 3 4 5 6 7 8; do 5441 teststring=$teststring$teststring 5442 done 5443 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5444 # If test is not a shell built-in, we'll probably end up computing a 5445 # maximum length that is only half of the actual maximum length, but 5446 # we can't tell. 5447 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5448 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5449 test 17 != "$i" # 1/2 MB should be enough 5450 do 5451 i=`expr $i + 1` 5452 teststring=$teststring$teststring 5453 done 5454 # Only check the string length outside the loop. 5455 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5456 teststring= 5457 # Add a significant safety factor because C++ compilers can tack on 5458 # massive amounts of additional arguments before passing them to the 5459 # linker. It appears as though 1/2 is a usable value. 5460 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5461 fi 5462 ;; 5463 esac 5464 5465 fi 5466 5467 if test -n "$lt_cv_sys_max_cmd_len"; then 5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5469 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 5470 else 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 5472 printf "%s\n" "none" >&6; } 5473 fi 5474 max_cmd_len=$lt_cv_sys_max_cmd_len 5475 5476 5477 5478 5479 5480 5481 : ${CP="cp -f"} 5482 : ${MV="mv -f"} 5483 : ${RM="rm -f"} 5484 5485 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5486 lt_unset=unset 5487 else 5488 lt_unset=false 5489 fi 5490 5491 5492 5493 5494 5495 # test EBCDIC or ASCII 5496 case `echo X|tr X '\101'` in 5497 A) # ASCII based system 5498 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5499 lt_SP2NL='tr \040 \012' 5500 lt_NL2SP='tr \015\012 \040\040' 5501 ;; 5502 *) # EBCDIC based system 5503 lt_SP2NL='tr \100 \n' 5504 lt_NL2SP='tr \r\n \100\100' 5505 ;; 5506 esac 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5517 printf %s "checking how to convert $build file names to $host format... " >&6; } 5518 if test ${lt_cv_to_host_file_cmd+y} 5519 then : 5520 printf %s "(cached) " >&6 5521 else $as_nop 5522 case $host in 5523 *-*-mingw* ) 5524 case $build in 5525 *-*-mingw* ) # actually msys 5526 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5527 ;; 5528 *-*-cygwin* ) 5529 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5530 ;; 5531 * ) # otherwise, assume *nix 5532 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5533 ;; 5534 esac 5535 ;; 5536 *-*-cygwin* ) 5537 case $build in 5538 *-*-mingw* ) # actually msys 5539 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5540 ;; 5541 *-*-cygwin* ) 5542 lt_cv_to_host_file_cmd=func_convert_file_noop 5543 ;; 5544 * ) # otherwise, assume *nix 5545 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5546 ;; 5547 esac 5548 ;; 5549 * ) # unhandled hosts (and "normal" native builds) 5550 lt_cv_to_host_file_cmd=func_convert_file_noop 5551 ;; 5552 esac 5553 5554 fi 5555 5556 to_host_file_cmd=$lt_cv_to_host_file_cmd 5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5558 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 5559 5560 5561 5562 5563 5564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5565 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 5566 if test ${lt_cv_to_tool_file_cmd+y} 5567 then : 5568 printf %s "(cached) " >&6 5569 else $as_nop 5570 #assume ordinary cross tools, or native build. 5571 lt_cv_to_tool_file_cmd=func_convert_file_noop 5572 case $host in 5573 *-*-mingw* ) 5574 case $build in 5575 *-*-mingw* ) # actually msys 5576 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5577 ;; 5578 esac 5579 ;; 5580 esac 5581 5582 fi 5583 5584 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5586 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 5587 5588 5589 5590 5591 5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5593 printf %s "checking for $LD option to reload object files... " >&6; } 5594 if test ${lt_cv_ld_reload_flag+y} 5595 then : 5596 printf %s "(cached) " >&6 5597 else $as_nop 5598 lt_cv_ld_reload_flag='-r' 5599 fi 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5601 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 5602 reload_flag=$lt_cv_ld_reload_flag 5603 case $reload_flag in 5604 "" | " "*) ;; 5605 *) reload_flag=" $reload_flag" ;; 5606 esac 5607 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5608 case $host_os in 5609 cygwin* | mingw* | pw32* | cegcc*) 5610 if test yes != "$GCC"; then 5611 reload_cmds=false 5612 fi 5613 ;; 5614 darwin*) 5615 if test yes = "$GCC"; then 5616 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5617 else 5618 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5619 fi 5620 ;; 5621 esac 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 if test -n "$ac_tool_prefix"; then 5632 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 5633 set dummy ${ac_tool_prefix}file; ac_word=$2 5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5635 printf %s "checking for $ac_word... " >&6; } 5636 if test ${ac_cv_prog_FILECMD+y} 5637 then : 5638 printf %s "(cached) " >&6 5639 else $as_nop 5640 if test -n "$FILECMD"; then 5641 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 5642 else 5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5644 for as_dir in $PATH 5645 do 5646 IFS=$as_save_IFS 5647 case $as_dir in #((( 5648 '') as_dir=./ ;; 5649 */) ;; 5650 *) as_dir=$as_dir/ ;; 5651 esac 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5654 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 5655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658 done 5659 done 5660 IFS=$as_save_IFS 5661 5662 fi 5663 fi 5664 FILECMD=$ac_cv_prog_FILECMD 5665 if test -n "$FILECMD"; then 5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 5667 printf "%s\n" "$FILECMD" >&6; } 5668 else 5669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670 printf "%s\n" "no" >&6; } 5671 fi 5672 5673 5674 fi 5675 if test -z "$ac_cv_prog_FILECMD"; then 5676 ac_ct_FILECMD=$FILECMD 5677 # Extract the first word of "file", so it can be a program name with args. 5678 set dummy file; ac_word=$2 5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680 printf %s "checking for $ac_word... " >&6; } 5681 if test ${ac_cv_prog_ac_ct_FILECMD+y} 5682 then : 5683 printf %s "(cached) " >&6 5684 else $as_nop 5685 if test -n "$ac_ct_FILECMD"; then 5686 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 5687 else 5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689 for as_dir in $PATH 5690 do 5691 IFS=$as_save_IFS 5692 case $as_dir in #((( 5693 '') as_dir=./ ;; 5694 */) ;; 5695 *) as_dir=$as_dir/ ;; 5696 esac 5697 for ac_exec_ext in '' $ac_executable_extensions; do 5698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5699 ac_cv_prog_ac_ct_FILECMD="file" 5700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5701 break 2 5702 fi 5703 done 5704 done 5705 IFS=$as_save_IFS 5706 5707 fi 5708 fi 5709 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 5710 if test -n "$ac_ct_FILECMD"; then 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 5712 printf "%s\n" "$ac_ct_FILECMD" >&6; } 5713 else 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5715 printf "%s\n" "no" >&6; } 5716 fi 5717 5718 if test "x$ac_ct_FILECMD" = x; then 5719 FILECMD=":" 5720 else 5721 case $cross_compiling:$ac_tool_warned in 5722 yes:) 5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5724 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5725 ac_tool_warned=yes ;; 5726 esac 5727 FILECMD=$ac_ct_FILECMD 5728 fi 5729 else 5730 FILECMD="$ac_cv_prog_FILECMD" 5731 fi 5732 5733 5734 5735 5736 5737 5738 5739 if test -n "$ac_tool_prefix"; then 5740 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5741 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5743 printf %s "checking for $ac_word... " >&6; } 5744 if test ${ac_cv_prog_OBJDUMP+y} 5745 then : 5746 printf %s "(cached) " >&6 5747 else $as_nop 5748 if test -n "$OBJDUMP"; then 5749 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5750 else 5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5752 for as_dir in $PATH 5753 do 5754 IFS=$as_save_IFS 5755 case $as_dir in #((( 5756 '') as_dir=./ ;; 5757 */) ;; 5758 *) as_dir=$as_dir/ ;; 5759 esac 5760 for ac_exec_ext in '' $ac_executable_extensions; do 5761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5762 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5764 break 2 5765 fi 5766 done 5767 done 5768 IFS=$as_save_IFS 5769 5770 fi 5771 fi 5772 OBJDUMP=$ac_cv_prog_OBJDUMP 5773 if test -n "$OBJDUMP"; then 5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5775 printf "%s\n" "$OBJDUMP" >&6; } 5776 else 5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5778 printf "%s\n" "no" >&6; } 5779 fi 5780 5781 5782 fi 5783 if test -z "$ac_cv_prog_OBJDUMP"; then 5784 ac_ct_OBJDUMP=$OBJDUMP 5785 # Extract the first word of "objdump", so it can be a program name with args. 5786 set dummy objdump; ac_word=$2 5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5788 printf %s "checking for $ac_word... " >&6; } 5789 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 5790 then : 5791 printf %s "(cached) " >&6 5792 else $as_nop 5793 if test -n "$ac_ct_OBJDUMP"; then 5794 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5795 else 5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5797 for as_dir in $PATH 5798 do 5799 IFS=$as_save_IFS 5800 case $as_dir in #((( 5801 '') as_dir=./ ;; 5802 */) ;; 5803 *) as_dir=$as_dir/ ;; 5804 esac 5805 for ac_exec_ext in '' $ac_executable_extensions; do 5806 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5807 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5809 break 2 5810 fi 5811 done 5812 done 5813 IFS=$as_save_IFS 5814 5815 fi 5816 fi 5817 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5818 if test -n "$ac_ct_OBJDUMP"; then 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5820 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 5821 else 5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5823 printf "%s\n" "no" >&6; } 5824 fi 5825 5826 if test "x$ac_ct_OBJDUMP" = x; then 5827 OBJDUMP="false" 5828 else 5829 case $cross_compiling:$ac_tool_warned in 5830 yes:) 5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5832 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5833 ac_tool_warned=yes ;; 5834 esac 5835 OBJDUMP=$ac_ct_OBJDUMP 5836 fi 5837 else 5838 OBJDUMP="$ac_cv_prog_OBJDUMP" 5839 fi 5840 5841 test -z "$OBJDUMP" && OBJDUMP=objdump 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5852 printf %s "checking how to recognize dependent libraries... " >&6; } 5853 if test ${lt_cv_deplibs_check_method+y} 5854 then : 5855 printf %s "(cached) " >&6 5856 else $as_nop 5857 lt_cv_file_magic_cmd='$MAGIC_CMD' 5858 lt_cv_file_magic_test_file= 5859 lt_cv_deplibs_check_method='unknown' 5860 # Need to set the preceding variable on all platforms that support 5861 # interlibrary dependencies. 5862 # 'none' -- dependencies not supported. 5863 # 'unknown' -- same as none, but documents that we really don't know. 5864 # 'pass_all' -- all dependencies passed with no checks. 5865 # 'test_compile' -- check by making test program. 5866 # 'file_magic [[regex]]' -- check by looking for files in library path 5867 # that responds to the $file_magic_cmd with a given extended regex. 5868 # If you have 'file' or equivalent on your system and you're not sure 5869 # whether 'pass_all' will *always* work, you probably want this one. 5870 5871 case $host_os in 5872 aix[4-9]*) 5873 lt_cv_deplibs_check_method=pass_all 5874 ;; 5875 5876 beos*) 5877 lt_cv_deplibs_check_method=pass_all 5878 ;; 5879 5880 bsdi[45]*) 5881 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5882 lt_cv_file_magic_cmd='$FILECMD -L' 5883 lt_cv_file_magic_test_file=/shlib/libc.so 5884 ;; 5885 5886 cygwin*) 5887 # func_win32_libid is a shell function defined in ltmain.sh 5888 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5889 lt_cv_file_magic_cmd='func_win32_libid' 5890 ;; 5891 5892 mingw* | pw32*) 5893 # Base MSYS/MinGW do not provide the 'file' command needed by 5894 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5895 # unless we find 'file', for example because we are cross-compiling. 5896 if ( file / ) >/dev/null 2>&1; then 5897 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5898 lt_cv_file_magic_cmd='func_win32_libid' 5899 else 5900 # Keep this pattern in sync with the one in func_win32_libid. 5901 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5902 lt_cv_file_magic_cmd='$OBJDUMP -f' 5903 fi 5904 ;; 5905 5906 cegcc*) 5907 # use the weaker test based on 'objdump'. See mingw*. 5908 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5909 lt_cv_file_magic_cmd='$OBJDUMP -f' 5910 ;; 5911 5912 darwin* | rhapsody*) 5913 lt_cv_deplibs_check_method=pass_all 5914 ;; 5915 5916 freebsd* | dragonfly* | midnightbsd*) 5917 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5918 case $host_cpu in 5919 i*86 ) 5920 # Not sure whether the presence of OpenBSD here was a mistake. 5921 # Let's accept both of them until this is cleared up. 5922 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5923 lt_cv_file_magic_cmd=$FILECMD 5924 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5925 ;; 5926 esac 5927 else 5928 lt_cv_deplibs_check_method=pass_all 5929 fi 5930 ;; 5931 5932 haiku*) 5933 lt_cv_deplibs_check_method=pass_all 5934 ;; 5935 5936 hpux10.20* | hpux11*) 5937 lt_cv_file_magic_cmd=$FILECMD 5938 case $host_cpu in 5939 ia64*) 5940 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5941 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5942 ;; 5943 hppa*64*) 5944 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]' 5945 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5946 ;; 5947 *) 5948 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5949 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5950 ;; 5951 esac 5952 ;; 5953 5954 interix[3-9]*) 5955 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5957 ;; 5958 5959 irix5* | irix6* | nonstopux*) 5960 case $LD in 5961 *-32|*"-32 ") libmagic=32-bit;; 5962 *-n32|*"-n32 ") libmagic=N32;; 5963 *-64|*"-64 ") libmagic=64-bit;; 5964 *) libmagic=never-match;; 5965 esac 5966 lt_cv_deplibs_check_method=pass_all 5967 ;; 5968 5969 # This must be glibc/ELF. 5970 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5971 lt_cv_deplibs_check_method=pass_all 5972 ;; 5973 5974 netbsd* | netbsdelf*-gnu) 5975 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5977 else 5978 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5979 fi 5980 ;; 5981 5982 newos6*) 5983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5984 lt_cv_file_magic_cmd=$FILECMD 5985 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5986 ;; 5987 5988 *nto* | *qnx*) 5989 lt_cv_deplibs_check_method=pass_all 5990 ;; 5991 5992 openbsd* | bitrig*) 5993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5995 else 5996 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5997 fi 5998 ;; 5999 6000 osf3* | osf4* | osf5*) 6001 lt_cv_deplibs_check_method=pass_all 6002 ;; 6003 6004 rdos*) 6005 lt_cv_deplibs_check_method=pass_all 6006 ;; 6007 6008 solaris*) 6009 lt_cv_deplibs_check_method=pass_all 6010 ;; 6011 6012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6013 lt_cv_deplibs_check_method=pass_all 6014 ;; 6015 6016 sysv4 | sysv4.3*) 6017 case $host_vendor in 6018 motorola) 6019 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]' 6020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6021 ;; 6022 ncr) 6023 lt_cv_deplibs_check_method=pass_all 6024 ;; 6025 sequent) 6026 lt_cv_file_magic_cmd='/bin/file' 6027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6028 ;; 6029 sni) 6030 lt_cv_file_magic_cmd='/bin/file' 6031 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6032 lt_cv_file_magic_test_file=/lib/libc.so 6033 ;; 6034 siemens) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 pc) 6038 lt_cv_deplibs_check_method=pass_all 6039 ;; 6040 esac 6041 ;; 6042 6043 tpf*) 6044 lt_cv_deplibs_check_method=pass_all 6045 ;; 6046 os2*) 6047 lt_cv_deplibs_check_method=pass_all 6048 ;; 6049 esac 6050 6051 fi 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6053 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6054 6055 file_magic_glob= 6056 want_nocaseglob=no 6057 if test "$build" = "$host"; then 6058 case $host_os in 6059 mingw* | pw32*) 6060 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6061 want_nocaseglob=yes 6062 else 6063 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6064 fi 6065 ;; 6066 esac 6067 fi 6068 6069 file_magic_cmd=$lt_cv_file_magic_cmd 6070 deplibs_check_method=$lt_cv_deplibs_check_method 6071 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 if test -n "$ac_tool_prefix"; then 6095 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6096 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6098 printf %s "checking for $ac_word... " >&6; } 6099 if test ${ac_cv_prog_DLLTOOL+y} 6100 then : 6101 printf %s "(cached) " >&6 6102 else $as_nop 6103 if test -n "$DLLTOOL"; then 6104 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6105 else 6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107 for as_dir in $PATH 6108 do 6109 IFS=$as_save_IFS 6110 case $as_dir in #((( 6111 '') as_dir=./ ;; 6112 */) ;; 6113 *) as_dir=$as_dir/ ;; 6114 esac 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6117 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121 done 6122 done 6123 IFS=$as_save_IFS 6124 6125 fi 6126 fi 6127 DLLTOOL=$ac_cv_prog_DLLTOOL 6128 if test -n "$DLLTOOL"; then 6129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6130 printf "%s\n" "$DLLTOOL" >&6; } 6131 else 6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6133 printf "%s\n" "no" >&6; } 6134 fi 6135 6136 6137 fi 6138 if test -z "$ac_cv_prog_DLLTOOL"; then 6139 ac_ct_DLLTOOL=$DLLTOOL 6140 # Extract the first word of "dlltool", so it can be a program name with args. 6141 set dummy dlltool; ac_word=$2 6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6143 printf %s "checking for $ac_word... " >&6; } 6144 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6145 then : 6146 printf %s "(cached) " >&6 6147 else $as_nop 6148 if test -n "$ac_ct_DLLTOOL"; then 6149 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6150 else 6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152 for as_dir in $PATH 6153 do 6154 IFS=$as_save_IFS 6155 case $as_dir in #((( 6156 '') as_dir=./ ;; 6157 */) ;; 6158 *) as_dir=$as_dir/ ;; 6159 esac 6160 for ac_exec_ext in '' $ac_executable_extensions; do 6161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6162 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6164 break 2 6165 fi 6166 done 6167 done 6168 IFS=$as_save_IFS 6169 6170 fi 6171 fi 6172 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6173 if test -n "$ac_ct_DLLTOOL"; then 6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6175 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6176 else 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6178 printf "%s\n" "no" >&6; } 6179 fi 6180 6181 if test "x$ac_ct_DLLTOOL" = x; then 6182 DLLTOOL="false" 6183 else 6184 case $cross_compiling:$ac_tool_warned in 6185 yes:) 6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6187 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6188 ac_tool_warned=yes ;; 6189 esac 6190 DLLTOOL=$ac_ct_DLLTOOL 6191 fi 6192 else 6193 DLLTOOL="$ac_cv_prog_DLLTOOL" 6194 fi 6195 6196 test -z "$DLLTOOL" && DLLTOOL=dlltool 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6208 printf %s "checking how to associate runtime and link libraries... " >&6; } 6209 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6210 then : 6211 printf %s "(cached) " >&6 6212 else $as_nop 6213 lt_cv_sharedlib_from_linklib_cmd='unknown' 6214 6215 case $host_os in 6216 cygwin* | mingw* | pw32* | cegcc*) 6217 # two different shell functions defined in ltmain.sh; 6218 # decide which one to use based on capabilities of $DLLTOOL 6219 case `$DLLTOOL --help 2>&1` in 6220 *--identify-strict*) 6221 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6222 ;; 6223 *) 6224 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6225 ;; 6226 esac 6227 ;; 6228 *) 6229 # fallback: assume linklib IS sharedlib 6230 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6231 ;; 6232 esac 6233 6234 fi 6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6236 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6237 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6238 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6239 6240 6241 6242 6243 6244 6245 6246 6247 if test -n "$ac_tool_prefix"; then 6248 for ac_prog in ar 6249 do 6250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6253 printf %s "checking for $ac_word... " >&6; } 6254 if test ${ac_cv_prog_AR+y} 6255 then : 6256 printf %s "(cached) " >&6 6257 else $as_nop 6258 if test -n "$AR"; then 6259 ac_cv_prog_AR="$AR" # Let the user override the test. 6260 else 6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6262 for as_dir in $PATH 6263 do 6264 IFS=$as_save_IFS 6265 case $as_dir in #((( 6266 '') as_dir=./ ;; 6267 */) ;; 6268 *) as_dir=$as_dir/ ;; 6269 esac 6270 for ac_exec_ext in '' $ac_executable_extensions; do 6271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6272 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6274 break 2 6275 fi 6276 done 6277 done 6278 IFS=$as_save_IFS 6279 6280 fi 6281 fi 6282 AR=$ac_cv_prog_AR 6283 if test -n "$AR"; then 6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6285 printf "%s\n" "$AR" >&6; } 6286 else 6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6288 printf "%s\n" "no" >&6; } 6289 fi 6290 6291 6292 test -n "$AR" && break 6293 done 6294 fi 6295 if test -z "$AR"; then 6296 ac_ct_AR=$AR 6297 for ac_prog in ar 6298 do 6299 # Extract the first word of "$ac_prog", so it can be a program name with args. 6300 set dummy $ac_prog; ac_word=$2 6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6302 printf %s "checking for $ac_word... " >&6; } 6303 if test ${ac_cv_prog_ac_ct_AR+y} 6304 then : 6305 printf %s "(cached) " >&6 6306 else $as_nop 6307 if test -n "$ac_ct_AR"; then 6308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6309 else 6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6311 for as_dir in $PATH 6312 do 6313 IFS=$as_save_IFS 6314 case $as_dir in #((( 6315 '') as_dir=./ ;; 6316 */) ;; 6317 *) as_dir=$as_dir/ ;; 6318 esac 6319 for ac_exec_ext in '' $ac_executable_extensions; do 6320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6321 ac_cv_prog_ac_ct_AR="$ac_prog" 6322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6323 break 2 6324 fi 6325 done 6326 done 6327 IFS=$as_save_IFS 6328 6329 fi 6330 fi 6331 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6332 if test -n "$ac_ct_AR"; then 6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6334 printf "%s\n" "$ac_ct_AR" >&6; } 6335 else 6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6337 printf "%s\n" "no" >&6; } 6338 fi 6339 6340 6341 test -n "$ac_ct_AR" && break 6342 done 6343 6344 if test "x$ac_ct_AR" = x; then 6345 AR="false" 6346 else 6347 case $cross_compiling:$ac_tool_warned in 6348 yes:) 6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6350 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6351 ac_tool_warned=yes ;; 6352 esac 6353 AR=$ac_ct_AR 6354 fi 6355 fi 6356 6357 : ${AR=ar} 6358 6359 6360 6361 6362 6363 6364 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6365 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6366 # higher priority because thats what people were doing historically (setting 6367 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6368 # variable obsoleted/removed. 6369 6370 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6371 lt_ar_flags=$AR_FLAGS 6372 6373 6374 6375 6376 6377 6378 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6379 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6380 6381 6382 6383 6384 6385 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6387 printf %s "checking for archiver @FILE support... " >&6; } 6388 if test ${lt_cv_ar_at_file+y} 6389 then : 6390 printf %s "(cached) " >&6 6391 else $as_nop 6392 lt_cv_ar_at_file=no 6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6394 /* end confdefs.h. */ 6395 6396 int 6397 main (void) 6398 { 6399 6400 ; 6401 return 0; 6402 } 6403 _ACEOF 6404 if ac_fn_c_try_compile "$LINENO" 6405 then : 6406 echo conftest.$ac_objext > conftest.lst 6407 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6409 (eval $lt_ar_try) 2>&5 6410 ac_status=$? 6411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6412 test $ac_status = 0; } 6413 if test 0 -eq "$ac_status"; then 6414 # Ensure the archiver fails upon bogus file names. 6415 rm -f conftest.$ac_objext libconftest.a 6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6417 (eval $lt_ar_try) 2>&5 6418 ac_status=$? 6419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6420 test $ac_status = 0; } 6421 if test 0 -ne "$ac_status"; then 6422 lt_cv_ar_at_file=@ 6423 fi 6424 fi 6425 rm -f conftest.* libconftest.a 6426 6427 fi 6428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6429 6430 fi 6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6432 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 6433 6434 if test no = "$lt_cv_ar_at_file"; then 6435 archiver_list_spec= 6436 else 6437 archiver_list_spec=$lt_cv_ar_at_file 6438 fi 6439 6440 6441 6442 6443 6444 6445 6446 if test -n "$ac_tool_prefix"; then 6447 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6448 set dummy ${ac_tool_prefix}strip; ac_word=$2 6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6450 printf %s "checking for $ac_word... " >&6; } 6451 if test ${ac_cv_prog_STRIP+y} 6452 then : 6453 printf %s "(cached) " >&6 6454 else $as_nop 6455 if test -n "$STRIP"; then 6456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6457 else 6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6459 for as_dir in $PATH 6460 do 6461 IFS=$as_save_IFS 6462 case $as_dir in #((( 6463 '') as_dir=./ ;; 6464 */) ;; 6465 *) as_dir=$as_dir/ ;; 6466 esac 6467 for ac_exec_ext in '' $ac_executable_extensions; do 6468 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6469 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6470 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6471 break 2 6472 fi 6473 done 6474 done 6475 IFS=$as_save_IFS 6476 6477 fi 6478 fi 6479 STRIP=$ac_cv_prog_STRIP 6480 if test -n "$STRIP"; then 6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6482 printf "%s\n" "$STRIP" >&6; } 6483 else 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6485 printf "%s\n" "no" >&6; } 6486 fi 6487 6488 6489 fi 6490 if test -z "$ac_cv_prog_STRIP"; then 6491 ac_ct_STRIP=$STRIP 6492 # Extract the first word of "strip", so it can be a program name with args. 6493 set dummy strip; ac_word=$2 6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6495 printf %s "checking for $ac_word... " >&6; } 6496 if test ${ac_cv_prog_ac_ct_STRIP+y} 6497 then : 6498 printf %s "(cached) " >&6 6499 else $as_nop 6500 if test -n "$ac_ct_STRIP"; then 6501 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6502 else 6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6504 for as_dir in $PATH 6505 do 6506 IFS=$as_save_IFS 6507 case $as_dir in #((( 6508 '') as_dir=./ ;; 6509 */) ;; 6510 *) as_dir=$as_dir/ ;; 6511 esac 6512 for ac_exec_ext in '' $ac_executable_extensions; do 6513 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6514 ac_cv_prog_ac_ct_STRIP="strip" 6515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6516 break 2 6517 fi 6518 done 6519 done 6520 IFS=$as_save_IFS 6521 6522 fi 6523 fi 6524 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6525 if test -n "$ac_ct_STRIP"; then 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6527 printf "%s\n" "$ac_ct_STRIP" >&6; } 6528 else 6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6530 printf "%s\n" "no" >&6; } 6531 fi 6532 6533 if test "x$ac_ct_STRIP" = x; then 6534 STRIP=":" 6535 else 6536 case $cross_compiling:$ac_tool_warned in 6537 yes:) 6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6539 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6540 ac_tool_warned=yes ;; 6541 esac 6542 STRIP=$ac_ct_STRIP 6543 fi 6544 else 6545 STRIP="$ac_cv_prog_STRIP" 6546 fi 6547 6548 test -z "$STRIP" && STRIP=: 6549 6550 6551 6552 6553 6554 6555 if test -n "$ac_tool_prefix"; then 6556 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6559 printf %s "checking for $ac_word... " >&6; } 6560 if test ${ac_cv_prog_RANLIB+y} 6561 then : 6562 printf %s "(cached) " >&6 6563 else $as_nop 6564 if test -n "$RANLIB"; then 6565 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6566 else 6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6568 for as_dir in $PATH 6569 do 6570 IFS=$as_save_IFS 6571 case $as_dir in #((( 6572 '') as_dir=./ ;; 6573 */) ;; 6574 *) as_dir=$as_dir/ ;; 6575 esac 6576 for ac_exec_ext in '' $ac_executable_extensions; do 6577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6580 break 2 6581 fi 6582 done 6583 done 6584 IFS=$as_save_IFS 6585 6586 fi 6587 fi 6588 RANLIB=$ac_cv_prog_RANLIB 6589 if test -n "$RANLIB"; then 6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6591 printf "%s\n" "$RANLIB" >&6; } 6592 else 6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6594 printf "%s\n" "no" >&6; } 6595 fi 6596 6597 6598 fi 6599 if test -z "$ac_cv_prog_RANLIB"; then 6600 ac_ct_RANLIB=$RANLIB 6601 # Extract the first word of "ranlib", so it can be a program name with args. 6602 set dummy ranlib; ac_word=$2 6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604 printf %s "checking for $ac_word... " >&6; } 6605 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6606 then : 6607 printf %s "(cached) " >&6 6608 else $as_nop 6609 if test -n "$ac_ct_RANLIB"; then 6610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6611 else 6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613 for as_dir in $PATH 6614 do 6615 IFS=$as_save_IFS 6616 case $as_dir in #((( 6617 '') as_dir=./ ;; 6618 */) ;; 6619 *) as_dir=$as_dir/ ;; 6620 esac 6621 for ac_exec_ext in '' $ac_executable_extensions; do 6622 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6623 ac_cv_prog_ac_ct_RANLIB="ranlib" 6624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6625 break 2 6626 fi 6627 done 6628 done 6629 IFS=$as_save_IFS 6630 6631 fi 6632 fi 6633 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6634 if test -n "$ac_ct_RANLIB"; then 6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6636 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6637 else 6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6639 printf "%s\n" "no" >&6; } 6640 fi 6641 6642 if test "x$ac_ct_RANLIB" = x; then 6643 RANLIB=":" 6644 else 6645 case $cross_compiling:$ac_tool_warned in 6646 yes:) 6647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6648 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6649 ac_tool_warned=yes ;; 6650 esac 6651 RANLIB=$ac_ct_RANLIB 6652 fi 6653 else 6654 RANLIB="$ac_cv_prog_RANLIB" 6655 fi 6656 6657 test -z "$RANLIB" && RANLIB=: 6658 6659 6660 6661 6662 6663 6664 # Determine commands to create old-style static archives. 6665 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6666 old_postinstall_cmds='chmod 644 $oldlib' 6667 old_postuninstall_cmds= 6668 6669 if test -n "$RANLIB"; then 6670 case $host_os in 6671 bitrig* | openbsd*) 6672 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6673 ;; 6674 *) 6675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6676 ;; 6677 esac 6678 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6679 fi 6680 6681 case $host_os in 6682 darwin*) 6683 lock_old_archive_extraction=yes ;; 6684 *) 6685 lock_old_archive_extraction=no ;; 6686 esac 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 # If no C compiler was specified, use CC. 6727 LTCC=${LTCC-"$CC"} 6728 6729 # If no C compiler flags were specified, use CFLAGS. 6730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6731 6732 # Allow CC to be a program name with arguments. 6733 compiler=$CC 6734 6735 6736 # Check for command to grab the raw symbol name followed by C symbol from nm. 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6738 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 6739 if test ${lt_cv_sys_global_symbol_pipe+y} 6740 then : 6741 printf %s "(cached) " >&6 6742 else $as_nop 6743 6744 # These are sane defaults that work on at least a few old systems. 6745 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6746 6747 # Character class describing NM global symbol codes. 6748 symcode='[BCDEGRST]' 6749 6750 # Regexp to match symbols that can be accessed directly from C. 6751 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6752 6753 # Define system-specific variables. 6754 case $host_os in 6755 aix*) 6756 symcode='[BCDT]' 6757 ;; 6758 cygwin* | mingw* | pw32* | cegcc*) 6759 symcode='[ABCDGISTW]' 6760 ;; 6761 hpux*) 6762 if test ia64 = "$host_cpu"; then 6763 symcode='[ABCDEGRST]' 6764 fi 6765 ;; 6766 irix* | nonstopux*) 6767 symcode='[BCDEGRST]' 6768 ;; 6769 osf*) 6770 symcode='[BCDEGQRST]' 6771 ;; 6772 solaris*) 6773 symcode='[BDRT]' 6774 ;; 6775 sco3.2v5*) 6776 symcode='[DT]' 6777 ;; 6778 sysv4.2uw2*) 6779 symcode='[DT]' 6780 ;; 6781 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6782 symcode='[ABDT]' 6783 ;; 6784 sysv4) 6785 symcode='[DFNSTU]' 6786 ;; 6787 esac 6788 6789 # If we're using GNU nm, then use its standard symbol codes. 6790 case `$NM -V 2>&1` in 6791 *GNU* | *'with BFD'*) 6792 symcode='[ABCDGIRSTW]' ;; 6793 esac 6794 6795 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6796 # Gets list of data symbols to import. 6797 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 6798 # Adjust the below global symbol transforms to fixup imported variables. 6799 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6800 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6801 lt_c_name_lib_hook="\ 6802 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6803 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6804 else 6805 # Disable hooks by default. 6806 lt_cv_sys_global_symbol_to_import= 6807 lt_cdecl_hook= 6808 lt_c_name_hook= 6809 lt_c_name_lib_hook= 6810 fi 6811 6812 # Transform an extracted symbol line into a proper C declaration. 6813 # Some systems (esp. on ia64) link data and code symbols differently, 6814 # so use this general approach. 6815 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 6816 $lt_cdecl_hook\ 6817 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6818 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6819 6820 # Transform an extracted symbol line into symbol name and symbol address 6821 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 6822 $lt_c_name_hook\ 6823 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6824 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6825 6826 # Transform an extracted symbol line into symbol name with lib prefix and 6827 # symbol address. 6828 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 6829 $lt_c_name_lib_hook\ 6830 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6831 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6832 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6833 6834 # Handle CRLF in mingw tool chain 6835 opt_cr= 6836 case $build_os in 6837 mingw*) 6838 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6839 ;; 6840 esac 6841 6842 # Try without a prefix underscore, then with it. 6843 for ac_symprfx in "" "_"; do 6844 6845 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6846 symxfrm="\\1 $ac_symprfx\\2 \\2" 6847 6848 # Write the raw and C identifiers. 6849 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6850 # Fake it for dumpbin and say T for any non-static function, 6851 # D for any global variable and I for any imported variable. 6852 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 6853 # which start with @ or ?. 6854 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6855 " {last_section=section; section=\$ 3};"\ 6856 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6857 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6858 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6859 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6860 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6861 " \$ 0!~/External *\|/{next};"\ 6862 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6863 " {if(hide[section]) next};"\ 6864 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6865 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6866 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6867 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6868 " ' prfx=^$ac_symprfx" 6869 else 6870 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6871 fi 6872 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 6873 6874 # Check to see that the pipe works correctly. 6875 pipe_works=no 6876 6877 rm -f conftest* 6878 cat > conftest.$ac_ext <<_LT_EOF 6879 #ifdef __cplusplus 6880 extern "C" { 6881 #endif 6882 char nm_test_var; 6883 void nm_test_func(void); 6884 void nm_test_func(void){} 6885 #ifdef __cplusplus 6886 } 6887 #endif 6888 int main(){nm_test_var='a';nm_test_func();return(0);} 6889 _LT_EOF 6890 6891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6892 (eval $ac_compile) 2>&5 6893 ac_status=$? 6894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6895 test $ac_status = 0; }; then 6896 # Now try to grab the symbols. 6897 nlist=conftest.nm 6898 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6899 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6900 # Try sorting and uniquifying the output. 6901 if sort "$nlist" | uniq > "$nlist"T; then 6902 mv -f "$nlist"T "$nlist" 6903 else 6904 rm -f "$nlist"T 6905 fi 6906 6907 # Make sure that we snagged all the symbols we need. 6908 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6909 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6910 cat <<_LT_EOF > conftest.$ac_ext 6911 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6912 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6913 /* DATA imports from DLLs on WIN32 can't be const, because runtime 6914 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6915 # define LT_DLSYM_CONST 6916 #elif defined __osf__ 6917 /* This system does not cope well with relocations in const data. */ 6918 # define LT_DLSYM_CONST 6919 #else 6920 # define LT_DLSYM_CONST const 6921 #endif 6922 6923 #ifdef __cplusplus 6924 extern "C" { 6925 #endif 6926 6927 _LT_EOF 6928 # Now generate the symbol file. 6929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6930 6931 cat <<_LT_EOF >> conftest.$ac_ext 6932 6933 /* The mapping between symbol names and symbols. */ 6934 LT_DLSYM_CONST struct { 6935 const char *name; 6936 void *address; 6937 } 6938 lt__PROGRAM__LTX_preloaded_symbols[] = 6939 { 6940 { "@PROGRAM@", (void *) 0 }, 6941 _LT_EOF 6942 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6943 cat <<\_LT_EOF >> conftest.$ac_ext 6944 {0, (void *) 0} 6945 }; 6946 6947 /* This works around a problem in FreeBSD linker */ 6948 #ifdef FREEBSD_WORKAROUND 6949 static const void *lt_preloaded_setup() { 6950 return lt__PROGRAM__LTX_preloaded_symbols; 6951 } 6952 #endif 6953 6954 #ifdef __cplusplus 6955 } 6956 #endif 6957 _LT_EOF 6958 # Now try linking the two files. 6959 mv conftest.$ac_objext conftstm.$ac_objext 6960 lt_globsym_save_LIBS=$LIBS 6961 lt_globsym_save_CFLAGS=$CFLAGS 6962 LIBS=conftstm.$ac_objext 6963 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6965 (eval $ac_link) 2>&5 6966 ac_status=$? 6967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6968 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6969 pipe_works=yes 6970 fi 6971 LIBS=$lt_globsym_save_LIBS 6972 CFLAGS=$lt_globsym_save_CFLAGS 6973 else 6974 echo "cannot find nm_test_func in $nlist" >&5 6975 fi 6976 else 6977 echo "cannot find nm_test_var in $nlist" >&5 6978 fi 6979 else 6980 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6981 fi 6982 else 6983 echo "$progname: failed program was:" >&5 6984 cat conftest.$ac_ext >&5 6985 fi 6986 rm -rf conftest* conftst* 6987 6988 # Do not use the global_symbol_pipe unless it works. 6989 if test yes = "$pipe_works"; then 6990 break 6991 else 6992 lt_cv_sys_global_symbol_pipe= 6993 fi 6994 done 6995 6996 fi 6997 6998 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6999 lt_cv_sys_global_symbol_to_cdecl= 7000 fi 7001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7003 printf "%s\n" "failed" >&6; } 7004 else 7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7006 printf "%s\n" "ok" >&6; } 7007 fi 7008 7009 # Response file support. 7010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7011 nm_file_list_spec='@' 7012 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7013 nm_file_list_spec='@' 7014 fi 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7053 printf %s "checking for sysroot... " >&6; } 7054 7055 # Check whether --with-sysroot was given. 7056 if test ${with_sysroot+y} 7057 then : 7058 withval=$with_sysroot; 7059 else $as_nop 7060 with_sysroot=no 7061 fi 7062 7063 7064 lt_sysroot= 7065 case $with_sysroot in #( 7066 yes) 7067 if test yes = "$GCC"; then 7068 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7069 fi 7070 ;; #( 7071 /*) 7072 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7073 ;; #( 7074 no|'') 7075 ;; #( 7076 *) 7077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7078 printf "%s\n" "$with_sysroot" >&6; } 7079 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7080 ;; 7081 esac 7082 7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7084 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7085 7086 7087 7088 7089 7090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7091 printf %s "checking for a working dd... " >&6; } 7092 if test ${ac_cv_path_lt_DD+y} 7093 then : 7094 printf %s "(cached) " >&6 7095 else $as_nop 7096 printf 0123456789abcdef0123456789abcdef >conftest.i 7097 cat conftest.i conftest.i >conftest2.i 7098 : ${lt_DD:=$DD} 7099 if test -z "$lt_DD"; then 7100 ac_path_lt_DD_found=false 7101 # Loop through the user's path and test for each of PROGNAME-LIST 7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7103 for as_dir in $PATH 7104 do 7105 IFS=$as_save_IFS 7106 case $as_dir in #((( 7107 '') as_dir=./ ;; 7108 */) ;; 7109 *) as_dir=$as_dir/ ;; 7110 esac 7111 for ac_prog in dd 7112 do 7113 for ac_exec_ext in '' $ac_executable_extensions; do 7114 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7115 as_fn_executable_p "$ac_path_lt_DD" || continue 7116 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7117 cmp -s conftest.i conftest.out \ 7118 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7119 fi 7120 $ac_path_lt_DD_found && break 3 7121 done 7122 done 7123 done 7124 IFS=$as_save_IFS 7125 if test -z "$ac_cv_path_lt_DD"; then 7126 : 7127 fi 7128 else 7129 ac_cv_path_lt_DD=$lt_DD 7130 fi 7131 7132 rm -f conftest.i conftest2.i conftest.out 7133 fi 7134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7135 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7136 7137 7138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7139 printf %s "checking how to truncate binary pipes... " >&6; } 7140 if test ${lt_cv_truncate_bin+y} 7141 then : 7142 printf %s "(cached) " >&6 7143 else $as_nop 7144 printf 0123456789abcdef0123456789abcdef >conftest.i 7145 cat conftest.i conftest.i >conftest2.i 7146 lt_cv_truncate_bin= 7147 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7148 cmp -s conftest.i conftest.out \ 7149 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7150 fi 7151 rm -f conftest.i conftest2.i conftest.out 7152 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7153 fi 7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7155 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7156 7157 7158 7159 7160 7161 7162 7163 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7164 func_cc_basename () 7165 { 7166 for cc_temp in $*""; do 7167 case $cc_temp in 7168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7170 \-*) ;; 7171 *) break;; 7172 esac 7173 done 7174 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7175 } 7176 7177 # Check whether --enable-libtool-lock was given. 7178 if test ${enable_libtool_lock+y} 7179 then : 7180 enableval=$enable_libtool_lock; 7181 fi 7182 7183 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7184 7185 # Some flags need to be propagated to the compiler or linker for good 7186 # libtool support. 7187 case $host in 7188 ia64-*-hpux*) 7189 # Find out what ABI is being produced by ac_compile, and set mode 7190 # options accordingly. 7191 echo 'int i;' > conftest.$ac_ext 7192 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7193 (eval $ac_compile) 2>&5 7194 ac_status=$? 7195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7196 test $ac_status = 0; }; then 7197 case `$FILECMD conftest.$ac_objext` in 7198 *ELF-32*) 7199 HPUX_IA64_MODE=32 7200 ;; 7201 *ELF-64*) 7202 HPUX_IA64_MODE=64 7203 ;; 7204 esac 7205 fi 7206 rm -rf conftest* 7207 ;; 7208 *-*-irix6*) 7209 # Find out what ABI is being produced by ac_compile, and set linker 7210 # options accordingly. 7211 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7213 (eval $ac_compile) 2>&5 7214 ac_status=$? 7215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7216 test $ac_status = 0; }; then 7217 if test yes = "$lt_cv_prog_gnu_ld"; then 7218 case `$FILECMD conftest.$ac_objext` in 7219 *32-bit*) 7220 LD="${LD-ld} -melf32bsmip" 7221 ;; 7222 *N32*) 7223 LD="${LD-ld} -melf32bmipn32" 7224 ;; 7225 *64-bit*) 7226 LD="${LD-ld} -melf64bmip" 7227 ;; 7228 esac 7229 else 7230 case `$FILECMD conftest.$ac_objext` in 7231 *32-bit*) 7232 LD="${LD-ld} -32" 7233 ;; 7234 *N32*) 7235 LD="${LD-ld} -n32" 7236 ;; 7237 *64-bit*) 7238 LD="${LD-ld} -64" 7239 ;; 7240 esac 7241 fi 7242 fi 7243 rm -rf conftest* 7244 ;; 7245 7246 mips64*-*linux*) 7247 # Find out what ABI is being produced by ac_compile, and set linker 7248 # options accordingly. 7249 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7251 (eval $ac_compile) 2>&5 7252 ac_status=$? 7253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7254 test $ac_status = 0; }; then 7255 emul=elf 7256 case `$FILECMD conftest.$ac_objext` in 7257 *32-bit*) 7258 emul="${emul}32" 7259 ;; 7260 *64-bit*) 7261 emul="${emul}64" 7262 ;; 7263 esac 7264 case `$FILECMD conftest.$ac_objext` in 7265 *MSB*) 7266 emul="${emul}btsmip" 7267 ;; 7268 *LSB*) 7269 emul="${emul}ltsmip" 7270 ;; 7271 esac 7272 case `$FILECMD conftest.$ac_objext` in 7273 *N32*) 7274 emul="${emul}n32" 7275 ;; 7276 esac 7277 LD="${LD-ld} -m $emul" 7278 fi 7279 rm -rf conftest* 7280 ;; 7281 7282 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7283 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7284 # Find out what ABI is being produced by ac_compile, and set linker 7285 # options accordingly. Note that the listed cases only cover the 7286 # situations where additional linker options are needed (such as when 7287 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7288 # vice versa); the common cases where no linker options are needed do 7289 # not appear in the list. 7290 echo 'int i;' > conftest.$ac_ext 7291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7292 (eval $ac_compile) 2>&5 7293 ac_status=$? 7294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7295 test $ac_status = 0; }; then 7296 case `$FILECMD conftest.o` in 7297 *32-bit*) 7298 case $host in 7299 x86_64-*kfreebsd*-gnu) 7300 LD="${LD-ld} -m elf_i386_fbsd" 7301 ;; 7302 x86_64-*linux*) 7303 case `$FILECMD conftest.o` in 7304 *x86-64*) 7305 LD="${LD-ld} -m elf32_x86_64" 7306 ;; 7307 *) 7308 LD="${LD-ld} -m elf_i386" 7309 ;; 7310 esac 7311 ;; 7312 powerpc64le-*linux*) 7313 LD="${LD-ld} -m elf32lppclinux" 7314 ;; 7315 powerpc64-*linux*) 7316 LD="${LD-ld} -m elf32ppclinux" 7317 ;; 7318 s390x-*linux*) 7319 LD="${LD-ld} -m elf_s390" 7320 ;; 7321 sparc64-*linux*) 7322 LD="${LD-ld} -m elf32_sparc" 7323 ;; 7324 esac 7325 ;; 7326 *64-bit*) 7327 case $host in 7328 x86_64-*kfreebsd*-gnu) 7329 LD="${LD-ld} -m elf_x86_64_fbsd" 7330 ;; 7331 x86_64-*linux*) 7332 LD="${LD-ld} -m elf_x86_64" 7333 ;; 7334 powerpcle-*linux*) 7335 LD="${LD-ld} -m elf64lppc" 7336 ;; 7337 powerpc-*linux*) 7338 LD="${LD-ld} -m elf64ppc" 7339 ;; 7340 s390*-*linux*|s390*-*tpf*) 7341 LD="${LD-ld} -m elf64_s390" 7342 ;; 7343 sparc*-*linux*) 7344 LD="${LD-ld} -m elf64_sparc" 7345 ;; 7346 esac 7347 ;; 7348 esac 7349 fi 7350 rm -rf conftest* 7351 ;; 7352 7353 *-*-sco3.2v5*) 7354 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7355 SAVE_CFLAGS=$CFLAGS 7356 CFLAGS="$CFLAGS -belf" 7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7358 printf %s "checking whether the C compiler needs -belf... " >&6; } 7359 if test ${lt_cv_cc_needs_belf+y} 7360 then : 7361 printf %s "(cached) " >&6 7362 else $as_nop 7363 ac_ext=c 7364 ac_cpp='$CPP $CPPFLAGS' 7365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7367 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7368 7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7370 /* end confdefs.h. */ 7371 7372 int 7373 main (void) 7374 { 7375 7376 ; 7377 return 0; 7378 } 7379 _ACEOF 7380 if ac_fn_c_try_link "$LINENO" 7381 then : 7382 lt_cv_cc_needs_belf=yes 7383 else $as_nop 7384 lt_cv_cc_needs_belf=no 7385 fi 7386 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7387 conftest$ac_exeext conftest.$ac_ext 7388 ac_ext=c 7389 ac_cpp='$CPP $CPPFLAGS' 7390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7392 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7393 7394 fi 7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7396 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 7397 if test yes != "$lt_cv_cc_needs_belf"; then 7398 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7399 CFLAGS=$SAVE_CFLAGS 7400 fi 7401 ;; 7402 *-*solaris*) 7403 # Find out what ABI is being produced by ac_compile, and set linker 7404 # options accordingly. 7405 echo 'int i;' > conftest.$ac_ext 7406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7407 (eval $ac_compile) 2>&5 7408 ac_status=$? 7409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7410 test $ac_status = 0; }; then 7411 case `$FILECMD conftest.o` in 7412 *64-bit*) 7413 case $lt_cv_prog_gnu_ld in 7414 yes*) 7415 case $host in 7416 i?86-*-solaris*|x86_64-*-solaris*) 7417 LD="${LD-ld} -m elf_x86_64" 7418 ;; 7419 sparc*-*-solaris*) 7420 LD="${LD-ld} -m elf64_sparc" 7421 ;; 7422 esac 7423 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7424 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7425 LD=${LD-ld}_sol2 7426 fi 7427 ;; 7428 *) 7429 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7430 LD="${LD-ld} -64" 7431 fi 7432 ;; 7433 esac 7434 ;; 7435 esac 7436 fi 7437 rm -rf conftest* 7438 ;; 7439 esac 7440 7441 need_locks=$enable_libtool_lock 7442 7443 if test -n "$ac_tool_prefix"; then 7444 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7445 set dummy ${ac_tool_prefix}mt; ac_word=$2 7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7447 printf %s "checking for $ac_word... " >&6; } 7448 if test ${ac_cv_prog_MANIFEST_TOOL+y} 7449 then : 7450 printf %s "(cached) " >&6 7451 else $as_nop 7452 if test -n "$MANIFEST_TOOL"; then 7453 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7454 else 7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7456 for as_dir in $PATH 7457 do 7458 IFS=$as_save_IFS 7459 case $as_dir in #((( 7460 '') as_dir=./ ;; 7461 */) ;; 7462 *) as_dir=$as_dir/ ;; 7463 esac 7464 for ac_exec_ext in '' $ac_executable_extensions; do 7465 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7466 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7468 break 2 7469 fi 7470 done 7471 done 7472 IFS=$as_save_IFS 7473 7474 fi 7475 fi 7476 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7477 if test -n "$MANIFEST_TOOL"; then 7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7479 printf "%s\n" "$MANIFEST_TOOL" >&6; } 7480 else 7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7482 printf "%s\n" "no" >&6; } 7483 fi 7484 7485 7486 fi 7487 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7488 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7489 # Extract the first word of "mt", so it can be a program name with args. 7490 set dummy mt; ac_word=$2 7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7492 printf %s "checking for $ac_word... " >&6; } 7493 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 7494 then : 7495 printf %s "(cached) " >&6 7496 else $as_nop 7497 if test -n "$ac_ct_MANIFEST_TOOL"; then 7498 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7499 else 7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7501 for as_dir in $PATH 7502 do 7503 IFS=$as_save_IFS 7504 case $as_dir in #((( 7505 '') as_dir=./ ;; 7506 */) ;; 7507 *) as_dir=$as_dir/ ;; 7508 esac 7509 for ac_exec_ext in '' $ac_executable_extensions; do 7510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7511 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7513 break 2 7514 fi 7515 done 7516 done 7517 IFS=$as_save_IFS 7518 7519 fi 7520 fi 7521 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7522 if test -n "$ac_ct_MANIFEST_TOOL"; then 7523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7524 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 7525 else 7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7527 printf "%s\n" "no" >&6; } 7528 fi 7529 7530 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7531 MANIFEST_TOOL=":" 7532 else 7533 case $cross_compiling:$ac_tool_warned in 7534 yes:) 7535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7536 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7537 ac_tool_warned=yes ;; 7538 esac 7539 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7540 fi 7541 else 7542 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7543 fi 7544 7545 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7547 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7548 if test ${lt_cv_path_mainfest_tool+y} 7549 then : 7550 printf %s "(cached) " >&6 7551 else $as_nop 7552 lt_cv_path_mainfest_tool=no 7553 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7554 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7555 cat conftest.err >&5 7556 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7557 lt_cv_path_mainfest_tool=yes 7558 fi 7559 rm -f conftest* 7560 fi 7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7562 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 7563 if test yes != "$lt_cv_path_mainfest_tool"; then 7564 MANIFEST_TOOL=: 7565 fi 7566 7567 7568 7569 7570 7571 7572 case $host_os in 7573 rhapsody* | darwin*) 7574 if test -n "$ac_tool_prefix"; then 7575 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7576 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7578 printf %s "checking for $ac_word... " >&6; } 7579 if test ${ac_cv_prog_DSYMUTIL+y} 7580 then : 7581 printf %s "(cached) " >&6 7582 else $as_nop 7583 if test -n "$DSYMUTIL"; then 7584 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7585 else 7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7587 for as_dir in $PATH 7588 do 7589 IFS=$as_save_IFS 7590 case $as_dir in #((( 7591 '') as_dir=./ ;; 7592 */) ;; 7593 *) as_dir=$as_dir/ ;; 7594 esac 7595 for ac_exec_ext in '' $ac_executable_extensions; do 7596 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7597 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7599 break 2 7600 fi 7601 done 7602 done 7603 IFS=$as_save_IFS 7604 7605 fi 7606 fi 7607 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7608 if test -n "$DSYMUTIL"; then 7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7610 printf "%s\n" "$DSYMUTIL" >&6; } 7611 else 7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7613 printf "%s\n" "no" >&6; } 7614 fi 7615 7616 7617 fi 7618 if test -z "$ac_cv_prog_DSYMUTIL"; then 7619 ac_ct_DSYMUTIL=$DSYMUTIL 7620 # Extract the first word of "dsymutil", so it can be a program name with args. 7621 set dummy dsymutil; ac_word=$2 7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7623 printf %s "checking for $ac_word... " >&6; } 7624 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 7625 then : 7626 printf %s "(cached) " >&6 7627 else $as_nop 7628 if test -n "$ac_ct_DSYMUTIL"; then 7629 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7630 else 7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7632 for as_dir in $PATH 7633 do 7634 IFS=$as_save_IFS 7635 case $as_dir in #((( 7636 '') as_dir=./ ;; 7637 */) ;; 7638 *) as_dir=$as_dir/ ;; 7639 esac 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646 done 7647 done 7648 IFS=$as_save_IFS 7649 7650 fi 7651 fi 7652 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7653 if test -n "$ac_ct_DSYMUTIL"; then 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7655 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 7656 else 7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7658 printf "%s\n" "no" >&6; } 7659 fi 7660 7661 if test "x$ac_ct_DSYMUTIL" = x; then 7662 DSYMUTIL=":" 7663 else 7664 case $cross_compiling:$ac_tool_warned in 7665 yes:) 7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7668 ac_tool_warned=yes ;; 7669 esac 7670 DSYMUTIL=$ac_ct_DSYMUTIL 7671 fi 7672 else 7673 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7674 fi 7675 7676 if test -n "$ac_tool_prefix"; then 7677 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7678 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7680 printf %s "checking for $ac_word... " >&6; } 7681 if test ${ac_cv_prog_NMEDIT+y} 7682 then : 7683 printf %s "(cached) " >&6 7684 else $as_nop 7685 if test -n "$NMEDIT"; then 7686 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7687 else 7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7689 for as_dir in $PATH 7690 do 7691 IFS=$as_save_IFS 7692 case $as_dir in #((( 7693 '') as_dir=./ ;; 7694 */) ;; 7695 *) as_dir=$as_dir/ ;; 7696 esac 7697 for ac_exec_ext in '' $ac_executable_extensions; do 7698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7699 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7701 break 2 7702 fi 7703 done 7704 done 7705 IFS=$as_save_IFS 7706 7707 fi 7708 fi 7709 NMEDIT=$ac_cv_prog_NMEDIT 7710 if test -n "$NMEDIT"; then 7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7712 printf "%s\n" "$NMEDIT" >&6; } 7713 else 7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7715 printf "%s\n" "no" >&6; } 7716 fi 7717 7718 7719 fi 7720 if test -z "$ac_cv_prog_NMEDIT"; then 7721 ac_ct_NMEDIT=$NMEDIT 7722 # Extract the first word of "nmedit", so it can be a program name with args. 7723 set dummy nmedit; ac_word=$2 7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7725 printf %s "checking for $ac_word... " >&6; } 7726 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 7727 then : 7728 printf %s "(cached) " >&6 7729 else $as_nop 7730 if test -n "$ac_ct_NMEDIT"; then 7731 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7732 else 7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7734 for as_dir in $PATH 7735 do 7736 IFS=$as_save_IFS 7737 case $as_dir in #((( 7738 '') as_dir=./ ;; 7739 */) ;; 7740 *) as_dir=$as_dir/ ;; 7741 esac 7742 for ac_exec_ext in '' $ac_executable_extensions; do 7743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7744 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7746 break 2 7747 fi 7748 done 7749 done 7750 IFS=$as_save_IFS 7751 7752 fi 7753 fi 7754 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7755 if test -n "$ac_ct_NMEDIT"; then 7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7757 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 7758 else 7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7760 printf "%s\n" "no" >&6; } 7761 fi 7762 7763 if test "x$ac_ct_NMEDIT" = x; then 7764 NMEDIT=":" 7765 else 7766 case $cross_compiling:$ac_tool_warned in 7767 yes:) 7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7769 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7770 ac_tool_warned=yes ;; 7771 esac 7772 NMEDIT=$ac_ct_NMEDIT 7773 fi 7774 else 7775 NMEDIT="$ac_cv_prog_NMEDIT" 7776 fi 7777 7778 if test -n "$ac_tool_prefix"; then 7779 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7780 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7782 printf %s "checking for $ac_word... " >&6; } 7783 if test ${ac_cv_prog_LIPO+y} 7784 then : 7785 printf %s "(cached) " >&6 7786 else $as_nop 7787 if test -n "$LIPO"; then 7788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7789 else 7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7791 for as_dir in $PATH 7792 do 7793 IFS=$as_save_IFS 7794 case $as_dir in #((( 7795 '') as_dir=./ ;; 7796 */) ;; 7797 *) as_dir=$as_dir/ ;; 7798 esac 7799 for ac_exec_ext in '' $ac_executable_extensions; do 7800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7801 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7803 break 2 7804 fi 7805 done 7806 done 7807 IFS=$as_save_IFS 7808 7809 fi 7810 fi 7811 LIPO=$ac_cv_prog_LIPO 7812 if test -n "$LIPO"; then 7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7814 printf "%s\n" "$LIPO" >&6; } 7815 else 7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7817 printf "%s\n" "no" >&6; } 7818 fi 7819 7820 7821 fi 7822 if test -z "$ac_cv_prog_LIPO"; then 7823 ac_ct_LIPO=$LIPO 7824 # Extract the first word of "lipo", so it can be a program name with args. 7825 set dummy lipo; ac_word=$2 7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7827 printf %s "checking for $ac_word... " >&6; } 7828 if test ${ac_cv_prog_ac_ct_LIPO+y} 7829 then : 7830 printf %s "(cached) " >&6 7831 else $as_nop 7832 if test -n "$ac_ct_LIPO"; then 7833 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7834 else 7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7836 for as_dir in $PATH 7837 do 7838 IFS=$as_save_IFS 7839 case $as_dir in #((( 7840 '') as_dir=./ ;; 7841 */) ;; 7842 *) as_dir=$as_dir/ ;; 7843 esac 7844 for ac_exec_ext in '' $ac_executable_extensions; do 7845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7846 ac_cv_prog_ac_ct_LIPO="lipo" 7847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7848 break 2 7849 fi 7850 done 7851 done 7852 IFS=$as_save_IFS 7853 7854 fi 7855 fi 7856 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7857 if test -n "$ac_ct_LIPO"; then 7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7859 printf "%s\n" "$ac_ct_LIPO" >&6; } 7860 else 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7862 printf "%s\n" "no" >&6; } 7863 fi 7864 7865 if test "x$ac_ct_LIPO" = x; then 7866 LIPO=":" 7867 else 7868 case $cross_compiling:$ac_tool_warned in 7869 yes:) 7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7871 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7872 ac_tool_warned=yes ;; 7873 esac 7874 LIPO=$ac_ct_LIPO 7875 fi 7876 else 7877 LIPO="$ac_cv_prog_LIPO" 7878 fi 7879 7880 if test -n "$ac_tool_prefix"; then 7881 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7882 set dummy ${ac_tool_prefix}otool; ac_word=$2 7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7884 printf %s "checking for $ac_word... " >&6; } 7885 if test ${ac_cv_prog_OTOOL+y} 7886 then : 7887 printf %s "(cached) " >&6 7888 else $as_nop 7889 if test -n "$OTOOL"; then 7890 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7891 else 7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7893 for as_dir in $PATH 7894 do 7895 IFS=$as_save_IFS 7896 case $as_dir in #((( 7897 '') as_dir=./ ;; 7898 */) ;; 7899 *) as_dir=$as_dir/ ;; 7900 esac 7901 for ac_exec_ext in '' $ac_executable_extensions; do 7902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7903 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7905 break 2 7906 fi 7907 done 7908 done 7909 IFS=$as_save_IFS 7910 7911 fi 7912 fi 7913 OTOOL=$ac_cv_prog_OTOOL 7914 if test -n "$OTOOL"; then 7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7916 printf "%s\n" "$OTOOL" >&6; } 7917 else 7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7919 printf "%s\n" "no" >&6; } 7920 fi 7921 7922 7923 fi 7924 if test -z "$ac_cv_prog_OTOOL"; then 7925 ac_ct_OTOOL=$OTOOL 7926 # Extract the first word of "otool", so it can be a program name with args. 7927 set dummy otool; ac_word=$2 7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7929 printf %s "checking for $ac_word... " >&6; } 7930 if test ${ac_cv_prog_ac_ct_OTOOL+y} 7931 then : 7932 printf %s "(cached) " >&6 7933 else $as_nop 7934 if test -n "$ac_ct_OTOOL"; then 7935 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7936 else 7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7938 for as_dir in $PATH 7939 do 7940 IFS=$as_save_IFS 7941 case $as_dir in #((( 7942 '') as_dir=./ ;; 7943 */) ;; 7944 *) as_dir=$as_dir/ ;; 7945 esac 7946 for ac_exec_ext in '' $ac_executable_extensions; do 7947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7948 ac_cv_prog_ac_ct_OTOOL="otool" 7949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7950 break 2 7951 fi 7952 done 7953 done 7954 IFS=$as_save_IFS 7955 7956 fi 7957 fi 7958 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7959 if test -n "$ac_ct_OTOOL"; then 7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7961 printf "%s\n" "$ac_ct_OTOOL" >&6; } 7962 else 7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7964 printf "%s\n" "no" >&6; } 7965 fi 7966 7967 if test "x$ac_ct_OTOOL" = x; then 7968 OTOOL=":" 7969 else 7970 case $cross_compiling:$ac_tool_warned in 7971 yes:) 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7973 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7974 ac_tool_warned=yes ;; 7975 esac 7976 OTOOL=$ac_ct_OTOOL 7977 fi 7978 else 7979 OTOOL="$ac_cv_prog_OTOOL" 7980 fi 7981 7982 if test -n "$ac_tool_prefix"; then 7983 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7984 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7986 printf %s "checking for $ac_word... " >&6; } 7987 if test ${ac_cv_prog_OTOOL64+y} 7988 then : 7989 printf %s "(cached) " >&6 7990 else $as_nop 7991 if test -n "$OTOOL64"; then 7992 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7993 else 7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7995 for as_dir in $PATH 7996 do 7997 IFS=$as_save_IFS 7998 case $as_dir in #((( 7999 '') as_dir=./ ;; 8000 */) ;; 8001 *) as_dir=$as_dir/ ;; 8002 esac 8003 for ac_exec_ext in '' $ac_executable_extensions; do 8004 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8005 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8007 break 2 8008 fi 8009 done 8010 done 8011 IFS=$as_save_IFS 8012 8013 fi 8014 fi 8015 OTOOL64=$ac_cv_prog_OTOOL64 8016 if test -n "$OTOOL64"; then 8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8018 printf "%s\n" "$OTOOL64" >&6; } 8019 else 8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8021 printf "%s\n" "no" >&6; } 8022 fi 8023 8024 8025 fi 8026 if test -z "$ac_cv_prog_OTOOL64"; then 8027 ac_ct_OTOOL64=$OTOOL64 8028 # Extract the first word of "otool64", so it can be a program name with args. 8029 set dummy otool64; ac_word=$2 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8031 printf %s "checking for $ac_word... " >&6; } 8032 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8033 then : 8034 printf %s "(cached) " >&6 8035 else $as_nop 8036 if test -n "$ac_ct_OTOOL64"; then 8037 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8038 else 8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8040 for as_dir in $PATH 8041 do 8042 IFS=$as_save_IFS 8043 case $as_dir in #((( 8044 '') as_dir=./ ;; 8045 */) ;; 8046 *) as_dir=$as_dir/ ;; 8047 esac 8048 for ac_exec_ext in '' $ac_executable_extensions; do 8049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8050 ac_cv_prog_ac_ct_OTOOL64="otool64" 8051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8052 break 2 8053 fi 8054 done 8055 done 8056 IFS=$as_save_IFS 8057 8058 fi 8059 fi 8060 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8061 if test -n "$ac_ct_OTOOL64"; then 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8063 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8064 else 8065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8066 printf "%s\n" "no" >&6; } 8067 fi 8068 8069 if test "x$ac_ct_OTOOL64" = x; then 8070 OTOOL64=":" 8071 else 8072 case $cross_compiling:$ac_tool_warned in 8073 yes:) 8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8075 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8076 ac_tool_warned=yes ;; 8077 esac 8078 OTOOL64=$ac_ct_OTOOL64 8079 fi 8080 else 8081 OTOOL64="$ac_cv_prog_OTOOL64" 8082 fi 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8111 printf %s "checking for -single_module linker flag... " >&6; } 8112 if test ${lt_cv_apple_cc_single_mod+y} 8113 then : 8114 printf %s "(cached) " >&6 8115 else $as_nop 8116 lt_cv_apple_cc_single_mod=no 8117 if test -z "$LT_MULTI_MODULE"; then 8118 # By default we will add the -single_module flag. You can override 8119 # by either setting the environment variable LT_MULTI_MODULE 8120 # non-empty at configure time, or by adding -multi_module to the 8121 # link flags. 8122 rm -rf libconftest.dylib* 8123 echo "int foo(void){return 1;}" > conftest.c 8124 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8125 -dynamiclib -Wl,-single_module conftest.c" >&5 8126 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8127 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8128 _lt_result=$? 8129 # If there is a non-empty error log, and "single_module" 8130 # appears in it, assume the flag caused a linker warning 8131 if test -s conftest.err && $GREP single_module conftest.err; then 8132 cat conftest.err >&5 8133 # Otherwise, if the output was created with a 0 exit code from 8134 # the compiler, it worked. 8135 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8136 lt_cv_apple_cc_single_mod=yes 8137 else 8138 cat conftest.err >&5 8139 fi 8140 rm -rf libconftest.dylib* 8141 rm -f conftest.* 8142 fi 8143 fi 8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8145 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8146 8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8148 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8149 if test ${lt_cv_ld_exported_symbols_list+y} 8150 then : 8151 printf %s "(cached) " >&6 8152 else $as_nop 8153 lt_cv_ld_exported_symbols_list=no 8154 save_LDFLAGS=$LDFLAGS 8155 echo "_main" > conftest.sym 8156 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8158 /* end confdefs.h. */ 8159 8160 int 8161 main (void) 8162 { 8163 8164 ; 8165 return 0; 8166 } 8167 _ACEOF 8168 if ac_fn_c_try_link "$LINENO" 8169 then : 8170 lt_cv_ld_exported_symbols_list=yes 8171 else $as_nop 8172 lt_cv_ld_exported_symbols_list=no 8173 fi 8174 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8175 conftest$ac_exeext conftest.$ac_ext 8176 LDFLAGS=$save_LDFLAGS 8177 8178 fi 8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8180 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8181 8182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8183 printf %s "checking for -force_load linker flag... " >&6; } 8184 if test ${lt_cv_ld_force_load+y} 8185 then : 8186 printf %s "(cached) " >&6 8187 else $as_nop 8188 lt_cv_ld_force_load=no 8189 cat > conftest.c << _LT_EOF 8190 int forced_loaded() { return 2;} 8191 _LT_EOF 8192 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8193 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8194 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8195 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8196 echo "$RANLIB libconftest.a" >&5 8197 $RANLIB libconftest.a 2>&5 8198 cat > conftest.c << _LT_EOF 8199 int main() { return 0;} 8200 _LT_EOF 8201 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8202 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8203 _lt_result=$? 8204 if test -s conftest.err && $GREP force_load conftest.err; then 8205 cat conftest.err >&5 8206 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8207 lt_cv_ld_force_load=yes 8208 else 8209 cat conftest.err >&5 8210 fi 8211 rm -f conftest.err libconftest.a conftest conftest.c 8212 rm -rf conftest.dSYM 8213 8214 fi 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8216 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8217 case $host_os in 8218 rhapsody* | darwin1.[012]) 8219 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8220 darwin1.*) 8221 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8222 darwin*) 8223 case $MACOSX_DEPLOYMENT_TARGET,$host in 8224 10.[012],*|,*powerpc*-darwin[5-8]*) 8225 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8226 *) 8227 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8228 esac 8229 ;; 8230 esac 8231 if test yes = "$lt_cv_apple_cc_single_mod"; then 8232 _lt_dar_single_mod='$single_module' 8233 fi 8234 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8235 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8236 else 8237 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8238 fi 8239 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8240 _lt_dsymutil='~$DSYMUTIL $lib || :' 8241 else 8242 _lt_dsymutil= 8243 fi 8244 ;; 8245 esac 8246 8247 # func_munge_path_list VARIABLE PATH 8248 # ----------------------------------- 8249 # VARIABLE is name of variable containing _space_ separated list of 8250 # directories to be munged by the contents of PATH, which is string 8251 # having a format: 8252 # "DIR[:DIR]:" 8253 # string "DIR[ DIR]" will be prepended to VARIABLE 8254 # ":DIR[:DIR]" 8255 # string "DIR[ DIR]" will be appended to VARIABLE 8256 # "DIRP[:DIRP]::[DIRA:]DIRA" 8257 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8258 # "DIRA[ DIRA]" will be appended to VARIABLE 8259 # "DIR[:DIR]" 8260 # VARIABLE will be replaced by "DIR[ DIR]" 8261 func_munge_path_list () 8262 { 8263 case x$2 in 8264 x) 8265 ;; 8266 *:) 8267 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8268 ;; 8269 x:*) 8270 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8271 ;; 8272 *::*) 8273 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8274 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8275 ;; 8276 *) 8277 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8278 ;; 8279 esac 8280 } 8281 8282 ac_header= ac_cache= 8283 for ac_item in $ac_header_c_list 8284 do 8285 if test $ac_cache; then 8286 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 8287 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 8288 printf "%s\n" "#define $ac_item 1" >> confdefs.h 8289 fi 8290 ac_header= ac_cache= 8291 elif test $ac_header; then 8292 ac_cache=$ac_item 8293 else 8294 ac_header=$ac_item 8295 fi 8296 done 8297 8298 8299 8300 8301 8302 8303 8304 8305 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 8306 then : 8307 8308 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 8309 8310 fi 8311 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8312 " 8313 if test "x$ac_cv_header_dlfcn_h" = xyes 8314 then : 8315 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8316 8317 fi 8318 8319 8320 8321 8322 8323 # Set options 8324 8325 8326 8327 enable_dlopen=no 8328 8329 8330 enable_win32_dll=no 8331 8332 8333 # Check whether --enable-shared was given. 8334 if test ${enable_shared+y} 8335 then : 8336 enableval=$enable_shared; p=${PACKAGE-default} 8337 case $enableval in 8338 yes) enable_shared=yes ;; 8339 no) enable_shared=no ;; 8340 *) 8341 enable_shared=no 8342 # Look at the argument we got. We use all the common list separators. 8343 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8344 for pkg in $enableval; do 8345 IFS=$lt_save_ifs 8346 if test "X$pkg" = "X$p"; then 8347 enable_shared=yes 8348 fi 8349 done 8350 IFS=$lt_save_ifs 8351 ;; 8352 esac 8353 else $as_nop 8354 enable_shared=yes 8355 fi 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 # Check whether --enable-static was given. 8366 if test ${enable_static+y} 8367 then : 8368 enableval=$enable_static; p=${PACKAGE-default} 8369 case $enableval in 8370 yes) enable_static=yes ;; 8371 no) enable_static=no ;; 8372 *) 8373 enable_static=no 8374 # Look at the argument we got. We use all the common list separators. 8375 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8376 for pkg in $enableval; do 8377 IFS=$lt_save_ifs 8378 if test "X$pkg" = "X$p"; then 8379 enable_static=yes 8380 fi 8381 done 8382 IFS=$lt_save_ifs 8383 ;; 8384 esac 8385 else $as_nop 8386 enable_static=yes 8387 fi 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 # Check whether --with-pic was given. 8399 if test ${with_pic+y} 8400 then : 8401 withval=$with_pic; lt_p=${PACKAGE-default} 8402 case $withval in 8403 yes|no) pic_mode=$withval ;; 8404 *) 8405 pic_mode=default 8406 # Look at the argument we got. We use all the common list separators. 8407 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8408 for lt_pkg in $withval; do 8409 IFS=$lt_save_ifs 8410 if test "X$lt_pkg" = "X$lt_p"; then 8411 pic_mode=yes 8412 fi 8413 done 8414 IFS=$lt_save_ifs 8415 ;; 8416 esac 8417 else $as_nop 8418 pic_mode=default 8419 fi 8420 8421 8422 8423 8424 8425 8426 8427 8428 # Check whether --enable-fast-install was given. 8429 if test ${enable_fast_install+y} 8430 then : 8431 enableval=$enable_fast_install; p=${PACKAGE-default} 8432 case $enableval in 8433 yes) enable_fast_install=yes ;; 8434 no) enable_fast_install=no ;; 8435 *) 8436 enable_fast_install=no 8437 # Look at the argument we got. We use all the common list separators. 8438 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8439 for pkg in $enableval; do 8440 IFS=$lt_save_ifs 8441 if test "X$pkg" = "X$p"; then 8442 enable_fast_install=yes 8443 fi 8444 done 8445 IFS=$lt_save_ifs 8446 ;; 8447 esac 8448 else $as_nop 8449 enable_fast_install=yes 8450 fi 8451 8452 8453 8454 8455 8456 8457 8458 8459 shared_archive_member_spec= 8460 case $host,$enable_shared in 8461 power*-*-aix[5-9]*,yes) 8462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8463 printf %s "checking which variant of shared library versioning to provide... " >&6; } 8464 8465 # Check whether --with-aix-soname was given. 8466 if test ${with_aix_soname+y} 8467 then : 8468 withval=$with_aix_soname; case $withval in 8469 aix|svr4|both) 8470 ;; 8471 *) 8472 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8473 ;; 8474 esac 8475 lt_cv_with_aix_soname=$with_aix_soname 8476 else $as_nop 8477 if test ${lt_cv_with_aix_soname+y} 8478 then : 8479 printf %s "(cached) " >&6 8480 else $as_nop 8481 lt_cv_with_aix_soname=aix 8482 fi 8483 8484 with_aix_soname=$lt_cv_with_aix_soname 8485 fi 8486 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8488 printf "%s\n" "$with_aix_soname" >&6; } 8489 if test aix != "$with_aix_soname"; then 8490 # For the AIX way of multilib, we name the shared archive member 8491 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8492 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8493 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8494 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8495 if test 64 = "${OBJECT_MODE-32}"; then 8496 shared_archive_member_spec=shr_64 8497 else 8498 shared_archive_member_spec=shr 8499 fi 8500 fi 8501 ;; 8502 *) 8503 with_aix_soname=aix 8504 ;; 8505 esac 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 # This can be used to rebuild libtool when needed 8517 LIBTOOL_DEPS=$ltmain 8518 8519 # Always use our own libtool. 8520 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 test -z "$LN_S" && LN_S="ln -s" 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 if test -n "${ZSH_VERSION+set}"; then 8567 setopt NO_GLOB_SUBST 8568 fi 8569 8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8571 printf %s "checking for objdir... " >&6; } 8572 if test ${lt_cv_objdir+y} 8573 then : 8574 printf %s "(cached) " >&6 8575 else $as_nop 8576 rm -f .libs 2>/dev/null 8577 mkdir .libs 2>/dev/null 8578 if test -d .libs; then 8579 lt_cv_objdir=.libs 8580 else 8581 # MS-DOS does not allow filenames that begin with a dot. 8582 lt_cv_objdir=_libs 8583 fi 8584 rmdir .libs 2>/dev/null 8585 fi 8586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8587 printf "%s\n" "$lt_cv_objdir" >&6; } 8588 objdir=$lt_cv_objdir 8589 8590 8591 8592 8593 8594 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 8595 8596 8597 8598 8599 case $host_os in 8600 aix3*) 8601 # AIX sometimes has problems with the GCC collect2 program. For some 8602 # reason, if we set the COLLECT_NAMES environment variable, the problems 8603 # vanish in a puff of smoke. 8604 if test set != "${COLLECT_NAMES+set}"; then 8605 COLLECT_NAMES= 8606 export COLLECT_NAMES 8607 fi 8608 ;; 8609 esac 8610 8611 # Global variables: 8612 ofile=libtool 8613 can_build_shared=yes 8614 8615 # All known linkers require a '.a' archive for static linking (except MSVC and 8616 # ICC, which need '.lib'). 8617 libext=a 8618 8619 with_gnu_ld=$lt_cv_prog_gnu_ld 8620 8621 old_CC=$CC 8622 old_CFLAGS=$CFLAGS 8623 8624 # Set sane defaults for various variables 8625 test -z "$CC" && CC=cc 8626 test -z "$LTCC" && LTCC=$CC 8627 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8628 test -z "$LD" && LD=ld 8629 test -z "$ac_objext" && ac_objext=o 8630 8631 func_cc_basename $compiler 8632 cc_basename=$func_cc_basename_result 8633 8634 8635 # Only perform the check for file, if the check method requires it 8636 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8637 case $deplibs_check_method in 8638 file_magic*) 8639 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8641 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 8642 if test ${lt_cv_path_MAGIC_CMD+y} 8643 then : 8644 printf %s "(cached) " >&6 8645 else $as_nop 8646 case $MAGIC_CMD in 8647 [\\/*] | ?:[\\/]*) 8648 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8649 ;; 8650 *) 8651 lt_save_MAGIC_CMD=$MAGIC_CMD 8652 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8653 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8654 for ac_dir in $ac_dummy; do 8655 IFS=$lt_save_ifs 8656 test -z "$ac_dir" && ac_dir=. 8657 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8658 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8659 if test -n "$file_magic_test_file"; then 8660 case $deplibs_check_method in 8661 "file_magic "*) 8662 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8663 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8664 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8665 $EGREP "$file_magic_regex" > /dev/null; then 8666 : 8667 else 8668 cat <<_LT_EOF 1>&2 8669 8670 *** Warning: the command libtool uses to detect shared libraries, 8671 *** $file_magic_cmd, produces output that libtool cannot recognize. 8672 *** The result is that libtool may fail to recognize shared libraries 8673 *** as such. This will affect the creation of libtool libraries that 8674 *** depend on shared libraries, but programs linked with such libtool 8675 *** libraries will work regardless of this problem. Nevertheless, you 8676 *** may want to report the problem to your system manager and/or to 8677 *** bug-libtool@gnu.org 8678 8679 _LT_EOF 8680 fi ;; 8681 esac 8682 fi 8683 break 8684 fi 8685 done 8686 IFS=$lt_save_ifs 8687 MAGIC_CMD=$lt_save_MAGIC_CMD 8688 ;; 8689 esac 8690 fi 8691 8692 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8693 if test -n "$MAGIC_CMD"; then 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8695 printf "%s\n" "$MAGIC_CMD" >&6; } 8696 else 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8698 printf "%s\n" "no" >&6; } 8699 fi 8700 8701 8702 8703 8704 8705 if test -z "$lt_cv_path_MAGIC_CMD"; then 8706 if test -n "$ac_tool_prefix"; then 8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8708 printf %s "checking for file... " >&6; } 8709 if test ${lt_cv_path_MAGIC_CMD+y} 8710 then : 8711 printf %s "(cached) " >&6 8712 else $as_nop 8713 case $MAGIC_CMD in 8714 [\\/*] | ?:[\\/]*) 8715 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8716 ;; 8717 *) 8718 lt_save_MAGIC_CMD=$MAGIC_CMD 8719 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8721 for ac_dir in $ac_dummy; do 8722 IFS=$lt_save_ifs 8723 test -z "$ac_dir" && ac_dir=. 8724 if test -f "$ac_dir/file"; then 8725 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8726 if test -n "$file_magic_test_file"; then 8727 case $deplibs_check_method in 8728 "file_magic "*) 8729 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8730 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8732 $EGREP "$file_magic_regex" > /dev/null; then 8733 : 8734 else 8735 cat <<_LT_EOF 1>&2 8736 8737 *** Warning: the command libtool uses to detect shared libraries, 8738 *** $file_magic_cmd, produces output that libtool cannot recognize. 8739 *** The result is that libtool may fail to recognize shared libraries 8740 *** as such. This will affect the creation of libtool libraries that 8741 *** depend on shared libraries, but programs linked with such libtool 8742 *** libraries will work regardless of this problem. Nevertheless, you 8743 *** may want to report the problem to your system manager and/or to 8744 *** bug-libtool@gnu.org 8745 8746 _LT_EOF 8747 fi ;; 8748 esac 8749 fi 8750 break 8751 fi 8752 done 8753 IFS=$lt_save_ifs 8754 MAGIC_CMD=$lt_save_MAGIC_CMD 8755 ;; 8756 esac 8757 fi 8758 8759 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8760 if test -n "$MAGIC_CMD"; then 8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8762 printf "%s\n" "$MAGIC_CMD" >&6; } 8763 else 8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8765 printf "%s\n" "no" >&6; } 8766 fi 8767 8768 8769 else 8770 MAGIC_CMD=: 8771 fi 8772 fi 8773 8774 fi 8775 ;; 8776 esac 8777 8778 # Use C for the default configuration in the libtool script 8779 8780 lt_save_CC=$CC 8781 ac_ext=c 8782 ac_cpp='$CPP $CPPFLAGS' 8783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8785 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8786 8787 8788 # Source file extension for C test sources. 8789 ac_ext=c 8790 8791 # Object file extension for compiled C test sources. 8792 objext=o 8793 objext=$objext 8794 8795 # Code to be used in simple compile tests 8796 lt_simple_compile_test_code="int some_variable = 0;" 8797 8798 # Code to be used in simple link tests 8799 lt_simple_link_test_code='int main(){return(0);}' 8800 8801 8802 8803 8804 8805 8806 8807 # If no C compiler was specified, use CC. 8808 LTCC=${LTCC-"$CC"} 8809 8810 # If no C compiler flags were specified, use CFLAGS. 8811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8812 8813 # Allow CC to be a program name with arguments. 8814 compiler=$CC 8815 8816 # Save the default compiler, since it gets overwritten when the other 8817 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8818 compiler_DEFAULT=$CC 8819 8820 # save warnings/boilerplate of simple test code 8821 ac_outfile=conftest.$ac_objext 8822 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8823 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8824 _lt_compiler_boilerplate=`cat conftest.err` 8825 $RM conftest* 8826 8827 ac_outfile=conftest.$ac_objext 8828 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8829 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8830 _lt_linker_boilerplate=`cat conftest.err` 8831 $RM -r conftest* 8832 8833 8834 ## CAVEAT EMPTOR: 8835 ## There is no encapsulation within the following macros, do not change 8836 ## the running order or otherwise move them around unless you know exactly 8837 ## what you are doing... 8838 if test -n "$compiler"; then 8839 8840 lt_prog_compiler_no_builtin_flag= 8841 8842 if test yes = "$GCC"; then 8843 case $cc_basename in 8844 nvcc*) 8845 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8846 *) 8847 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8848 esac 8849 8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8851 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8852 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 8853 then : 8854 printf %s "(cached) " >&6 8855 else $as_nop 8856 lt_cv_prog_compiler_rtti_exceptions=no 8857 ac_outfile=conftest.$ac_objext 8858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8859 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8860 # Insert the option either (1) after the last *FLAGS variable, or 8861 # (2) before a word containing "conftest.", or (3) at the end. 8862 # Note that $ac_compile itself does not contain backslashes and begins 8863 # with a dollar sign (not a hyphen), so the echo should work correctly. 8864 # The option is referenced via a variable to avoid confusing sed. 8865 lt_compile=`echo "$ac_compile" | $SED \ 8866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8868 -e 's:$: $lt_compiler_flag:'` 8869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8870 (eval "$lt_compile" 2>conftest.err) 8871 ac_status=$? 8872 cat conftest.err >&5 8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8874 if (exit $ac_status) && test -s "$ac_outfile"; then 8875 # The compiler can only warn and ignore the option if not recognized 8876 # So say no if there are warnings other than the usual output. 8877 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8879 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8880 lt_cv_prog_compiler_rtti_exceptions=yes 8881 fi 8882 fi 8883 $RM conftest* 8884 8885 fi 8886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8887 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8888 8889 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8890 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8891 else 8892 : 8893 fi 8894 8895 fi 8896 8897 8898 8899 8900 8901 8902 lt_prog_compiler_wl= 8903 lt_prog_compiler_pic= 8904 lt_prog_compiler_static= 8905 8906 8907 if test yes = "$GCC"; then 8908 lt_prog_compiler_wl='-Wl,' 8909 lt_prog_compiler_static='-static' 8910 8911 case $host_os in 8912 aix*) 8913 # All AIX code is PIC. 8914 if test ia64 = "$host_cpu"; then 8915 # AIX 5 now supports IA64 processor 8916 lt_prog_compiler_static='-Bstatic' 8917 fi 8918 lt_prog_compiler_pic='-fPIC' 8919 ;; 8920 8921 amigaos*) 8922 case $host_cpu in 8923 powerpc) 8924 # see comment about AmigaOS4 .so support 8925 lt_prog_compiler_pic='-fPIC' 8926 ;; 8927 m68k) 8928 # FIXME: we need at least 68020 code to build shared libraries, but 8929 # adding the '-m68020' flag to GCC prevents building anything better, 8930 # like '-m68040'. 8931 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8932 ;; 8933 esac 8934 ;; 8935 8936 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8937 # PIC is the default for these OSes. 8938 ;; 8939 8940 mingw* | cygwin* | pw32* | os2* | cegcc*) 8941 # This hack is so that the source file can tell whether it is being 8942 # built for inclusion in a dll (and should export symbols for example). 8943 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8944 # (--disable-auto-import) libraries 8945 lt_prog_compiler_pic='-DDLL_EXPORT' 8946 case $host_os in 8947 os2*) 8948 lt_prog_compiler_static='$wl-static' 8949 ;; 8950 esac 8951 ;; 8952 8953 darwin* | rhapsody*) 8954 # PIC is the default on this platform 8955 # Common symbols not allowed in MH_DYLIB files 8956 lt_prog_compiler_pic='-fno-common' 8957 ;; 8958 8959 haiku*) 8960 # PIC is the default for Haiku. 8961 # The "-static" flag exists, but is broken. 8962 lt_prog_compiler_static= 8963 ;; 8964 8965 hpux*) 8966 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8967 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8968 # sets the default TLS model and affects inlining. 8969 case $host_cpu in 8970 hppa*64*) 8971 # +Z the default 8972 ;; 8973 *) 8974 lt_prog_compiler_pic='-fPIC' 8975 ;; 8976 esac 8977 ;; 8978 8979 interix[3-9]*) 8980 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8981 # Instead, we relocate shared libraries at runtime. 8982 ;; 8983 8984 msdosdjgpp*) 8985 # Just because we use GCC doesn't mean we suddenly get shared libraries 8986 # on systems that don't support them. 8987 lt_prog_compiler_can_build_shared=no 8988 enable_shared=no 8989 ;; 8990 8991 *nto* | *qnx*) 8992 # QNX uses GNU C++, but need to define -shared option too, otherwise 8993 # it will coredump. 8994 lt_prog_compiler_pic='-fPIC -shared' 8995 ;; 8996 8997 sysv4*MP*) 8998 if test -d /usr/nec; then 8999 lt_prog_compiler_pic=-Kconform_pic 9000 fi 9001 ;; 9002 9003 *) 9004 lt_prog_compiler_pic='-fPIC' 9005 ;; 9006 esac 9007 9008 case $cc_basename in 9009 nvcc*) # Cuda Compiler Driver 2.2 9010 lt_prog_compiler_wl='-Xlinker ' 9011 if test -n "$lt_prog_compiler_pic"; then 9012 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9013 fi 9014 ;; 9015 esac 9016 else 9017 # PORTME Check for flag to pass linker flags through the system compiler. 9018 case $host_os in 9019 aix*) 9020 lt_prog_compiler_wl='-Wl,' 9021 if test ia64 = "$host_cpu"; then 9022 # AIX 5 now supports IA64 processor 9023 lt_prog_compiler_static='-Bstatic' 9024 else 9025 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9026 fi 9027 ;; 9028 9029 darwin* | rhapsody*) 9030 # PIC is the default on this platform 9031 # Common symbols not allowed in MH_DYLIB files 9032 lt_prog_compiler_pic='-fno-common' 9033 case $cc_basename in 9034 nagfor*) 9035 # NAG Fortran compiler 9036 lt_prog_compiler_wl='-Wl,-Wl,,' 9037 lt_prog_compiler_pic='-PIC' 9038 lt_prog_compiler_static='-Bstatic' 9039 ;; 9040 esac 9041 ;; 9042 9043 mingw* | cygwin* | pw32* | os2* | cegcc*) 9044 # This hack is so that the source file can tell whether it is being 9045 # built for inclusion in a dll (and should export symbols for example). 9046 lt_prog_compiler_pic='-DDLL_EXPORT' 9047 case $host_os in 9048 os2*) 9049 lt_prog_compiler_static='$wl-static' 9050 ;; 9051 esac 9052 ;; 9053 9054 hpux9* | hpux10* | hpux11*) 9055 lt_prog_compiler_wl='-Wl,' 9056 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9057 # not for PA HP-UX. 9058 case $host_cpu in 9059 hppa*64*|ia64*) 9060 # +Z the default 9061 ;; 9062 *) 9063 lt_prog_compiler_pic='+Z' 9064 ;; 9065 esac 9066 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9067 lt_prog_compiler_static='$wl-a ${wl}archive' 9068 ;; 9069 9070 irix5* | irix6* | nonstopux*) 9071 lt_prog_compiler_wl='-Wl,' 9072 # PIC (with -KPIC) is the default. 9073 lt_prog_compiler_static='-non_shared' 9074 ;; 9075 9076 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9077 case $cc_basename in 9078 # old Intel for x86_64, which still supported -KPIC. 9079 ecc*) 9080 lt_prog_compiler_wl='-Wl,' 9081 lt_prog_compiler_pic='-KPIC' 9082 lt_prog_compiler_static='-static' 9083 ;; 9084 # flang / f18. f95 an alias for gfortran or flang on Debian 9085 flang* | f18* | f95*) 9086 lt_prog_compiler_wl='-Wl,' 9087 lt_prog_compiler_pic='-fPIC' 9088 lt_prog_compiler_static='-static' 9089 ;; 9090 # icc used to be incompatible with GCC. 9091 # ICC 10 doesn't accept -KPIC any more. 9092 icc* | ifort*) 9093 lt_prog_compiler_wl='-Wl,' 9094 lt_prog_compiler_pic='-fPIC' 9095 lt_prog_compiler_static='-static' 9096 ;; 9097 # Lahey Fortran 8.1. 9098 lf95*) 9099 lt_prog_compiler_wl='-Wl,' 9100 lt_prog_compiler_pic='--shared' 9101 lt_prog_compiler_static='--static' 9102 ;; 9103 nagfor*) 9104 # NAG Fortran compiler 9105 lt_prog_compiler_wl='-Wl,-Wl,,' 9106 lt_prog_compiler_pic='-PIC' 9107 lt_prog_compiler_static='-Bstatic' 9108 ;; 9109 tcc*) 9110 # Fabrice Bellard et al's Tiny C Compiler 9111 lt_prog_compiler_wl='-Wl,' 9112 lt_prog_compiler_pic='-fPIC' 9113 lt_prog_compiler_static='-static' 9114 ;; 9115 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9116 # Portland Group compilers (*not* the Pentium gcc compiler, 9117 # which looks to be a dead project) 9118 lt_prog_compiler_wl='-Wl,' 9119 lt_prog_compiler_pic='-fpic' 9120 lt_prog_compiler_static='-Bstatic' 9121 ;; 9122 ccc*) 9123 lt_prog_compiler_wl='-Wl,' 9124 # All Alpha code is PIC. 9125 lt_prog_compiler_static='-non_shared' 9126 ;; 9127 xl* | bgxl* | bgf* | mpixl*) 9128 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9129 lt_prog_compiler_wl='-Wl,' 9130 lt_prog_compiler_pic='-qpic' 9131 lt_prog_compiler_static='-qstaticlink' 9132 ;; 9133 *) 9134 case `$CC -V 2>&1 | $SED 5q` in 9135 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9136 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9137 lt_prog_compiler_pic='-KPIC' 9138 lt_prog_compiler_static='-Bstatic' 9139 lt_prog_compiler_wl='' 9140 ;; 9141 *Sun\ F* | *Sun*Fortran*) 9142 lt_prog_compiler_pic='-KPIC' 9143 lt_prog_compiler_static='-Bstatic' 9144 lt_prog_compiler_wl='-Qoption ld ' 9145 ;; 9146 *Sun\ C*) 9147 # Sun C 5.9 9148 lt_prog_compiler_pic='-KPIC' 9149 lt_prog_compiler_static='-Bstatic' 9150 lt_prog_compiler_wl='-Wl,' 9151 ;; 9152 *Intel*\ [CF]*Compiler*) 9153 lt_prog_compiler_wl='-Wl,' 9154 lt_prog_compiler_pic='-fPIC' 9155 lt_prog_compiler_static='-static' 9156 ;; 9157 *Portland\ Group*) 9158 lt_prog_compiler_wl='-Wl,' 9159 lt_prog_compiler_pic='-fpic' 9160 lt_prog_compiler_static='-Bstatic' 9161 ;; 9162 esac 9163 ;; 9164 esac 9165 ;; 9166 9167 newsos6) 9168 lt_prog_compiler_pic='-KPIC' 9169 lt_prog_compiler_static='-Bstatic' 9170 ;; 9171 9172 *nto* | *qnx*) 9173 # QNX uses GNU C++, but need to define -shared option too, otherwise 9174 # it will coredump. 9175 lt_prog_compiler_pic='-fPIC -shared' 9176 ;; 9177 9178 osf3* | osf4* | osf5*) 9179 lt_prog_compiler_wl='-Wl,' 9180 # All OSF/1 code is PIC. 9181 lt_prog_compiler_static='-non_shared' 9182 ;; 9183 9184 rdos*) 9185 lt_prog_compiler_static='-non_shared' 9186 ;; 9187 9188 solaris*) 9189 lt_prog_compiler_pic='-KPIC' 9190 lt_prog_compiler_static='-Bstatic' 9191 case $cc_basename in 9192 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9193 lt_prog_compiler_wl='-Qoption ld ';; 9194 *) 9195 lt_prog_compiler_wl='-Wl,';; 9196 esac 9197 ;; 9198 9199 sunos4*) 9200 lt_prog_compiler_wl='-Qoption ld ' 9201 lt_prog_compiler_pic='-PIC' 9202 lt_prog_compiler_static='-Bstatic' 9203 ;; 9204 9205 sysv4 | sysv4.2uw2* | sysv4.3*) 9206 lt_prog_compiler_wl='-Wl,' 9207 lt_prog_compiler_pic='-KPIC' 9208 lt_prog_compiler_static='-Bstatic' 9209 ;; 9210 9211 sysv4*MP*) 9212 if test -d /usr/nec; then 9213 lt_prog_compiler_pic='-Kconform_pic' 9214 lt_prog_compiler_static='-Bstatic' 9215 fi 9216 ;; 9217 9218 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9219 lt_prog_compiler_wl='-Wl,' 9220 lt_prog_compiler_pic='-KPIC' 9221 lt_prog_compiler_static='-Bstatic' 9222 ;; 9223 9224 unicos*) 9225 lt_prog_compiler_wl='-Wl,' 9226 lt_prog_compiler_can_build_shared=no 9227 ;; 9228 9229 uts4*) 9230 lt_prog_compiler_pic='-pic' 9231 lt_prog_compiler_static='-Bstatic' 9232 ;; 9233 9234 *) 9235 lt_prog_compiler_can_build_shared=no 9236 ;; 9237 esac 9238 fi 9239 9240 case $host_os in 9241 # For platforms that do not support PIC, -DPIC is meaningless: 9242 *djgpp*) 9243 lt_prog_compiler_pic= 9244 ;; 9245 *) 9246 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9247 ;; 9248 esac 9249 9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9251 printf %s "checking for $compiler option to produce PIC... " >&6; } 9252 if test ${lt_cv_prog_compiler_pic+y} 9253 then : 9254 printf %s "(cached) " >&6 9255 else $as_nop 9256 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9257 fi 9258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9259 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9260 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9261 9262 # 9263 # Check to make sure the PIC flag actually works. 9264 # 9265 if test -n "$lt_prog_compiler_pic"; then 9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9267 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9268 if test ${lt_cv_prog_compiler_pic_works+y} 9269 then : 9270 printf %s "(cached) " >&6 9271 else $as_nop 9272 lt_cv_prog_compiler_pic_works=no 9273 ac_outfile=conftest.$ac_objext 9274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9275 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9276 # Insert the option either (1) after the last *FLAGS variable, or 9277 # (2) before a word containing "conftest.", or (3) at the end. 9278 # Note that $ac_compile itself does not contain backslashes and begins 9279 # with a dollar sign (not a hyphen), so the echo should work correctly. 9280 # The option is referenced via a variable to avoid confusing sed. 9281 lt_compile=`echo "$ac_compile" | $SED \ 9282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9284 -e 's:$: $lt_compiler_flag:'` 9285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9286 (eval "$lt_compile" 2>conftest.err) 9287 ac_status=$? 9288 cat conftest.err >&5 9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9290 if (exit $ac_status) && test -s "$ac_outfile"; then 9291 # The compiler can only warn and ignore the option if not recognized 9292 # So say no if there are warnings other than the usual output. 9293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9296 lt_cv_prog_compiler_pic_works=yes 9297 fi 9298 fi 9299 $RM conftest* 9300 9301 fi 9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9303 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9304 9305 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9306 case $lt_prog_compiler_pic in 9307 "" | " "*) ;; 9308 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9309 esac 9310 else 9311 lt_prog_compiler_pic= 9312 lt_prog_compiler_can_build_shared=no 9313 fi 9314 9315 fi 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 # 9328 # Check to make sure the static flag actually works. 9329 # 9330 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9332 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9333 if test ${lt_cv_prog_compiler_static_works+y} 9334 then : 9335 printf %s "(cached) " >&6 9336 else $as_nop 9337 lt_cv_prog_compiler_static_works=no 9338 save_LDFLAGS=$LDFLAGS 9339 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9340 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9342 # The linker can only warn and ignore the option if not recognized 9343 # So say no if there are warnings 9344 if test -s conftest.err; then 9345 # Append any errors to the config.log. 9346 cat conftest.err 1>&5 9347 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9349 if diff conftest.exp conftest.er2 >/dev/null; then 9350 lt_cv_prog_compiler_static_works=yes 9351 fi 9352 else 9353 lt_cv_prog_compiler_static_works=yes 9354 fi 9355 fi 9356 $RM -r conftest* 9357 LDFLAGS=$save_LDFLAGS 9358 9359 fi 9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9361 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9362 9363 if test yes = "$lt_cv_prog_compiler_static_works"; then 9364 : 9365 else 9366 lt_prog_compiler_static= 9367 fi 9368 9369 9370 9371 9372 9373 9374 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9376 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9377 if test ${lt_cv_prog_compiler_c_o+y} 9378 then : 9379 printf %s "(cached) " >&6 9380 else $as_nop 9381 lt_cv_prog_compiler_c_o=no 9382 $RM -r conftest 2>/dev/null 9383 mkdir conftest 9384 cd conftest 9385 mkdir out 9386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9387 9388 lt_compiler_flag="-o out/conftest2.$ac_objext" 9389 # Insert the option either (1) after the last *FLAGS variable, or 9390 # (2) before a word containing "conftest.", or (3) at the end. 9391 # Note that $ac_compile itself does not contain backslashes and begins 9392 # with a dollar sign (not a hyphen), so the echo should work correctly. 9393 lt_compile=`echo "$ac_compile" | $SED \ 9394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9396 -e 's:$: $lt_compiler_flag:'` 9397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9398 (eval "$lt_compile" 2>out/conftest.err) 9399 ac_status=$? 9400 cat out/conftest.err >&5 9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9402 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9403 then 9404 # The compiler can only warn and ignore the option if not recognized 9405 # So say no if there are warnings 9406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9409 lt_cv_prog_compiler_c_o=yes 9410 fi 9411 fi 9412 chmod u+w . 2>&5 9413 $RM conftest* 9414 # SGI C++ compiler will create directory out/ii_files/ for 9415 # template instantiation 9416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9417 $RM out/* && rmdir out 9418 cd .. 9419 $RM -r conftest 9420 $RM conftest* 9421 9422 fi 9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9424 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9425 9426 9427 9428 9429 9430 9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9432 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9433 if test ${lt_cv_prog_compiler_c_o+y} 9434 then : 9435 printf %s "(cached) " >&6 9436 else $as_nop 9437 lt_cv_prog_compiler_c_o=no 9438 $RM -r conftest 2>/dev/null 9439 mkdir conftest 9440 cd conftest 9441 mkdir out 9442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9443 9444 lt_compiler_flag="-o out/conftest2.$ac_objext" 9445 # Insert the option either (1) after the last *FLAGS variable, or 9446 # (2) before a word containing "conftest.", or (3) at the end. 9447 # Note that $ac_compile itself does not contain backslashes and begins 9448 # with a dollar sign (not a hyphen), so the echo should work correctly. 9449 lt_compile=`echo "$ac_compile" | $SED \ 9450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9452 -e 's:$: $lt_compiler_flag:'` 9453 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9454 (eval "$lt_compile" 2>out/conftest.err) 9455 ac_status=$? 9456 cat out/conftest.err >&5 9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9458 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9459 then 9460 # The compiler can only warn and ignore the option if not recognized 9461 # So say no if there are warnings 9462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9465 lt_cv_prog_compiler_c_o=yes 9466 fi 9467 fi 9468 chmod u+w . 2>&5 9469 $RM conftest* 9470 # SGI C++ compiler will create directory out/ii_files/ for 9471 # template instantiation 9472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9473 $RM out/* && rmdir out 9474 cd .. 9475 $RM -r conftest 9476 $RM conftest* 9477 9478 fi 9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9480 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 9481 9482 9483 9484 9485 hard_links=nottested 9486 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9487 # do not overwrite the value of need_locks provided by the user 9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9489 printf %s "checking if we can lock with hard links... " >&6; } 9490 hard_links=yes 9491 $RM conftest* 9492 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9493 touch conftest.a 9494 ln conftest.a conftest.b 2>&5 || hard_links=no 9495 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9497 printf "%s\n" "$hard_links" >&6; } 9498 if test no = "$hard_links"; then 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9500 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9501 need_locks=warn 9502 fi 9503 else 9504 need_locks=no 9505 fi 9506 9507 9508 9509 9510 9511 9512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9513 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9514 9515 runpath_var= 9516 allow_undefined_flag= 9517 always_export_symbols=no 9518 archive_cmds= 9519 archive_expsym_cmds= 9520 compiler_needs_object=no 9521 enable_shared_with_static_runtimes=no 9522 export_dynamic_flag_spec= 9523 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9524 hardcode_automatic=no 9525 hardcode_direct=no 9526 hardcode_direct_absolute=no 9527 hardcode_libdir_flag_spec= 9528 hardcode_libdir_separator= 9529 hardcode_minus_L=no 9530 hardcode_shlibpath_var=unsupported 9531 inherit_rpath=no 9532 link_all_deplibs=unknown 9533 module_cmds= 9534 module_expsym_cmds= 9535 old_archive_from_new_cmds= 9536 old_archive_from_expsyms_cmds= 9537 thread_safe_flag_spec= 9538 whole_archive_flag_spec= 9539 # include_expsyms should be a list of space-separated symbols to be *always* 9540 # included in the symbol list 9541 include_expsyms= 9542 # exclude_expsyms can be an extended regexp of symbols to exclude 9543 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9544 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9545 # as well as any symbol that contains 'd'. 9546 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9547 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9548 # platforms (ab)use it in PIC code, but their linkers get confused if 9549 # the symbol is explicitly referenced. Since portable code cannot 9550 # rely on this symbol name, it's probably fine to never include it in 9551 # preloaded symbol tables. 9552 # Exclude shared library initialization/finalization symbols. 9553 extract_expsyms_cmds= 9554 9555 case $host_os in 9556 cygwin* | mingw* | pw32* | cegcc*) 9557 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 9558 # When not using gcc, we currently assume that we are using 9559 # Microsoft Visual C++ or Intel C++ Compiler. 9560 if test yes != "$GCC"; then 9561 with_gnu_ld=no 9562 fi 9563 ;; 9564 interix*) 9565 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 9566 with_gnu_ld=yes 9567 ;; 9568 openbsd* | bitrig*) 9569 with_gnu_ld=no 9570 ;; 9571 linux* | k*bsd*-gnu | gnu*) 9572 link_all_deplibs=no 9573 ;; 9574 esac 9575 9576 ld_shlibs=yes 9577 9578 # On some targets, GNU ld is compatible enough with the native linker 9579 # that we're better off using the native interface for both. 9580 lt_use_gnu_ld_interface=no 9581 if test yes = "$with_gnu_ld"; then 9582 case $host_os in 9583 aix*) 9584 # The AIX port of GNU ld has always aspired to compatibility 9585 # with the native linker. However, as the warning in the GNU ld 9586 # block says, versions before 2.19.5* couldn't really create working 9587 # shared libraries, regardless of the interface used. 9588 case `$LD -v 2>&1` in 9589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9591 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9592 *) 9593 lt_use_gnu_ld_interface=yes 9594 ;; 9595 esac 9596 ;; 9597 *) 9598 lt_use_gnu_ld_interface=yes 9599 ;; 9600 esac 9601 fi 9602 9603 if test yes = "$lt_use_gnu_ld_interface"; then 9604 # If archive_cmds runs LD, not CC, wlarc should be empty 9605 wlarc='$wl' 9606 9607 # Set some defaults for GNU ld with shared library support. These 9608 # are reset later if shared libraries are not supported. Putting them 9609 # here allows them to be overridden if necessary. 9610 runpath_var=LD_RUN_PATH 9611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9612 export_dynamic_flag_spec='$wl--export-dynamic' 9613 # ancient GNU ld didn't support --whole-archive et. al. 9614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9615 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9616 else 9617 whole_archive_flag_spec= 9618 fi 9619 supports_anon_versioning=no 9620 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 9621 *GNU\ gold*) supports_anon_versioning=yes ;; 9622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9625 *\ 2.11.*) ;; # other 2.11 versions 9626 *) supports_anon_versioning=yes ;; 9627 esac 9628 9629 # See if GNU ld supports shared libraries. 9630 case $host_os in 9631 aix[3-9]*) 9632 # On AIX/PPC, the GNU linker is very broken 9633 if test ia64 != "$host_cpu"; then 9634 ld_shlibs=no 9635 cat <<_LT_EOF 1>&2 9636 9637 *** Warning: the GNU linker, at least up to release 2.19, is reported 9638 *** to be unable to reliably create shared libraries on AIX. 9639 *** Therefore, libtool is disabling shared libraries support. If you 9640 *** really care for shared libraries, you may want to install binutils 9641 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9642 *** You will then need to restart the configuration process. 9643 9644 _LT_EOF 9645 fi 9646 ;; 9647 9648 amigaos*) 9649 case $host_cpu in 9650 powerpc) 9651 # see comment about AmigaOS4 .so support 9652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9653 archive_expsym_cmds='' 9654 ;; 9655 m68k) 9656 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)' 9657 hardcode_libdir_flag_spec='-L$libdir' 9658 hardcode_minus_L=yes 9659 ;; 9660 esac 9661 ;; 9662 9663 beos*) 9664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9665 allow_undefined_flag=unsupported 9666 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9667 # support --undefined. This deserves some investigation. FIXME 9668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9669 else 9670 ld_shlibs=no 9671 fi 9672 ;; 9673 9674 cygwin* | mingw* | pw32* | cegcc*) 9675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9676 # as there is no search path for DLLs. 9677 hardcode_libdir_flag_spec='-L$libdir' 9678 export_dynamic_flag_spec='$wl--export-all-symbols' 9679 allow_undefined_flag=unsupported 9680 always_export_symbols=no 9681 enable_shared_with_static_runtimes=yes 9682 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' 9683 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9684 9685 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9687 # If the export-symbols file already is a .def file, use it as 9688 # is; otherwise, prepend EXPORTS... 9689 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9690 cp $export_symbols $output_objdir/$soname.def; 9691 else 9692 echo EXPORTS > $output_objdir/$soname.def; 9693 cat $export_symbols >> $output_objdir/$soname.def; 9694 fi~ 9695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9696 else 9697 ld_shlibs=no 9698 fi 9699 ;; 9700 9701 haiku*) 9702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9703 link_all_deplibs=yes 9704 ;; 9705 9706 os2*) 9707 hardcode_libdir_flag_spec='-L$libdir' 9708 hardcode_minus_L=yes 9709 allow_undefined_flag=unsupported 9710 shrext_cmds=.dll 9711 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9712 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9713 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9714 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9715 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9716 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9717 emximp -o $lib $output_objdir/$libname.def' 9718 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9719 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9720 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9721 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9722 prefix_cmds="$SED"~ 9723 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9724 prefix_cmds="$prefix_cmds -e 1d"; 9725 fi~ 9726 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9727 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9728 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9729 emximp -o $lib $output_objdir/$libname.def' 9730 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9731 enable_shared_with_static_runtimes=yes 9732 file_list_spec='@' 9733 ;; 9734 9735 interix[3-9]*) 9736 hardcode_direct=no 9737 hardcode_shlibpath_var=no 9738 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9739 export_dynamic_flag_spec='$wl-E' 9740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9741 # Instead, shared libraries are loaded at an image base (0x10000000 by 9742 # default) and relocated if they conflict, which is a slow very memory 9743 # consuming and fragmenting process. To avoid this, we pick a random, 9744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9745 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9746 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9747 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' 9748 ;; 9749 9750 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9751 tmp_diet=no 9752 if test linux-dietlibc = "$host_os"; then 9753 case $cc_basename in 9754 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9755 esac 9756 fi 9757 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9758 && test no = "$tmp_diet" 9759 then 9760 tmp_addflag=' $pic_flag' 9761 tmp_sharedflag='-shared' 9762 case $cc_basename,$host_cpu in 9763 pgcc*) # Portland Group C compiler 9764 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' 9765 tmp_addflag=' $pic_flag' 9766 ;; 9767 pgf77* | pgf90* | pgf95* | pgfortran*) 9768 # Portland Group f77 and f90 compilers 9769 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' 9770 tmp_addflag=' $pic_flag -Mnomain' ;; 9771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9772 tmp_addflag=' -i_dynamic' ;; 9773 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9774 tmp_addflag=' -i_dynamic -nofor_main' ;; 9775 ifc* | ifort*) # Intel Fortran compiler 9776 tmp_addflag=' -nofor_main' ;; 9777 lf95*) # Lahey Fortran 8.1 9778 whole_archive_flag_spec= 9779 tmp_sharedflag='--shared' ;; 9780 nagfor*) # NAGFOR 5.3 9781 tmp_sharedflag='-Wl,-shared' ;; 9782 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9783 tmp_sharedflag='-qmkshrobj' 9784 tmp_addflag= ;; 9785 nvcc*) # Cuda Compiler Driver 2.2 9786 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' 9787 compiler_needs_object=yes 9788 ;; 9789 esac 9790 case `$CC -V 2>&1 | $SED 5q` in 9791 *Sun\ C*) # Sun C 5.9 9792 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' 9793 compiler_needs_object=yes 9794 tmp_sharedflag='-G' ;; 9795 *Sun\ F*) # Sun Fortran 8.3 9796 tmp_sharedflag='-G' ;; 9797 esac 9798 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9799 9800 if test yes = "$supports_anon_versioning"; then 9801 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9802 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9803 echo "local: *; };" >> $output_objdir/$libname.ver~ 9804 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9805 fi 9806 9807 case $cc_basename in 9808 tcc*) 9809 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9810 export_dynamic_flag_spec='-rdynamic' 9811 ;; 9812 xlf* | bgf* | bgxlf* | mpixlf*) 9813 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9814 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9815 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9816 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9817 if test yes = "$supports_anon_versioning"; then 9818 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9819 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9820 echo "local: *; };" >> $output_objdir/$libname.ver~ 9821 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9822 fi 9823 ;; 9824 esac 9825 else 9826 ld_shlibs=no 9827 fi 9828 ;; 9829 9830 netbsd* | netbsdelf*-gnu) 9831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9832 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9833 wlarc= 9834 else 9835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9836 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9837 fi 9838 ;; 9839 9840 solaris*) 9841 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9842 ld_shlibs=no 9843 cat <<_LT_EOF 1>&2 9844 9845 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9846 *** create shared libraries on Solaris systems. Therefore, libtool 9847 *** is disabling shared libraries support. We urge you to upgrade GNU 9848 *** binutils to release 2.9.1 or newer. Another option is to modify 9849 *** your PATH or compiler configuration so that the native linker is 9850 *** used, and then restart. 9851 9852 _LT_EOF 9853 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9854 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9855 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9856 else 9857 ld_shlibs=no 9858 fi 9859 ;; 9860 9861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9862 case `$LD -v 2>&1` in 9863 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9864 ld_shlibs=no 9865 cat <<_LT_EOF 1>&2 9866 9867 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9868 *** reliably create shared libraries on SCO systems. Therefore, libtool 9869 *** is disabling shared libraries support. We urge you to upgrade GNU 9870 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9871 *** your PATH or compiler configuration so that the native linker is 9872 *** used, and then restart. 9873 9874 _LT_EOF 9875 ;; 9876 *) 9877 # For security reasons, it is highly recommended that you always 9878 # use absolute paths for naming shared libraries, and exclude the 9879 # DT_RUNPATH tag from executables and libraries. But doing so 9880 # requires that you compile everything twice, which is a pain. 9881 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9882 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9883 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9884 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9885 else 9886 ld_shlibs=no 9887 fi 9888 ;; 9889 esac 9890 ;; 9891 9892 sunos4*) 9893 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9894 wlarc= 9895 hardcode_direct=yes 9896 hardcode_shlibpath_var=no 9897 ;; 9898 9899 *) 9900 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9901 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9902 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9903 else 9904 ld_shlibs=no 9905 fi 9906 ;; 9907 esac 9908 9909 if test no = "$ld_shlibs"; then 9910 runpath_var= 9911 hardcode_libdir_flag_spec= 9912 export_dynamic_flag_spec= 9913 whole_archive_flag_spec= 9914 fi 9915 else 9916 # PORTME fill in a description of your system's linker (not GNU ld) 9917 case $host_os in 9918 aix3*) 9919 allow_undefined_flag=unsupported 9920 always_export_symbols=yes 9921 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' 9922 # Note: this linker hardcodes the directories in LIBPATH if there 9923 # are no directories specified by -L. 9924 hardcode_minus_L=yes 9925 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9926 # Neither direct hardcoding nor static linking is supported with a 9927 # broken collect2. 9928 hardcode_direct=unsupported 9929 fi 9930 ;; 9931 9932 aix[4-9]*) 9933 if test ia64 = "$host_cpu"; then 9934 # On IA64, the linker does run time linking by default, so we don't 9935 # have to do anything special. 9936 aix_use_runtimelinking=no 9937 exp_sym_flag='-Bexport' 9938 no_entry_flag= 9939 else 9940 # If we're using GNU nm, then we don't want the "-C" option. 9941 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9942 # Without the "-l" option, or with the "-B" option, AIX nm treats 9943 # weak defined symbols like other global defined symbols, whereas 9944 # GNU nm marks them as "W". 9945 # While the 'weak' keyword is ignored in the Export File, we need 9946 # it in the Import File for the 'aix-soname' feature, so we have 9947 # to replace the "-B" option with "-P" for AIX nm. 9948 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9949 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' 9950 else 9951 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' 9952 fi 9953 aix_use_runtimelinking=no 9954 9955 # Test if we are trying to use run time linking or normal 9956 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9957 # have runtime linking enabled, and use it for executables. 9958 # For shared libraries, we enable/disable runtime linking 9959 # depending on the kind of the shared library created - 9960 # when "with_aix_soname,aix_use_runtimelinking" is: 9961 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9962 # "aix,yes" lib.so shared, rtl:yes, for executables 9963 # lib.a static archive 9964 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9965 # lib.a(lib.so.V) shared, rtl:no, for executables 9966 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9967 # lib.a(lib.so.V) shared, rtl:no 9968 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9969 # lib.a static archive 9970 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9971 for ld_flag in $LDFLAGS; do 9972 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9973 aix_use_runtimelinking=yes 9974 break 9975 fi 9976 done 9977 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9978 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9979 # so we don't have lib.a shared libs to link our executables. 9980 # We have to force runtime linking in this case. 9981 aix_use_runtimelinking=yes 9982 LDFLAGS="$LDFLAGS -Wl,-brtl" 9983 fi 9984 ;; 9985 esac 9986 9987 exp_sym_flag='-bexport' 9988 no_entry_flag='-bnoentry' 9989 fi 9990 9991 # When large executables or shared objects are built, AIX ld can 9992 # have problems creating the table of contents. If linking a library 9993 # or program results in "error TOC overflow" add -mminimal-toc to 9994 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9995 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9996 9997 archive_cmds='' 9998 hardcode_direct=yes 9999 hardcode_direct_absolute=yes 10000 hardcode_libdir_separator=':' 10001 link_all_deplibs=yes 10002 file_list_spec='$wl-f,' 10003 case $with_aix_soname,$aix_use_runtimelinking in 10004 aix,*) ;; # traditional, no import file 10005 svr4,* | *,yes) # use import file 10006 # The Import File defines what to hardcode. 10007 hardcode_direct=no 10008 hardcode_direct_absolute=no 10009 ;; 10010 esac 10011 10012 if test yes = "$GCC"; then 10013 case $host_os in aix4.[012]|aix4.[012].*) 10014 # We only want to do this on AIX 4.2 and lower, the check 10015 # below for broken collect2 doesn't work under 4.3+ 10016 collect2name=`$CC -print-prog-name=collect2` 10017 if test -f "$collect2name" && 10018 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10019 then 10020 # We have reworked collect2 10021 : 10022 else 10023 # We have old collect2 10024 hardcode_direct=unsupported 10025 # It fails to find uninstalled libraries when the uninstalled 10026 # path is not listed in the libpath. Setting hardcode_minus_L 10027 # to unsupported forces relinking 10028 hardcode_minus_L=yes 10029 hardcode_libdir_flag_spec='-L$libdir' 10030 hardcode_libdir_separator= 10031 fi 10032 ;; 10033 esac 10034 shared_flag='-shared' 10035 if test yes = "$aix_use_runtimelinking"; then 10036 shared_flag="$shared_flag "'$wl-G' 10037 fi 10038 # Need to ensure runtime linking is disabled for the traditional 10039 # shared library, or the linker may eventually find shared libraries 10040 # /with/ Import File - we do not want to mix them. 10041 shared_flag_aix='-shared' 10042 shared_flag_svr4='-shared $wl-G' 10043 else 10044 # not using gcc 10045 if test ia64 = "$host_cpu"; then 10046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10047 # chokes on -Wl,-G. The following line is correct: 10048 shared_flag='-G' 10049 else 10050 if test yes = "$aix_use_runtimelinking"; then 10051 shared_flag='$wl-G' 10052 else 10053 shared_flag='$wl-bM:SRE' 10054 fi 10055 shared_flag_aix='$wl-bM:SRE' 10056 shared_flag_svr4='$wl-G' 10057 fi 10058 fi 10059 10060 export_dynamic_flag_spec='$wl-bexpall' 10061 # It seems that -bexpall does not export symbols beginning with 10062 # underscore (_), so it is better to generate a list of symbols to export. 10063 always_export_symbols=yes 10064 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10065 # Warning - without using the other runtime loading flags (-brtl), 10066 # -berok will link without error, but may produce a broken library. 10067 allow_undefined_flag='-berok' 10068 # Determine the default libpath from the value encoded in an 10069 # empty executable. 10070 if test set = "${lt_cv_aix_libpath+set}"; then 10071 aix_libpath=$lt_cv_aix_libpath 10072 else 10073 if test ${lt_cv_aix_libpath_+y} 10074 then : 10075 printf %s "(cached) " >&6 10076 else $as_nop 10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10078 /* end confdefs.h. */ 10079 10080 int 10081 main (void) 10082 { 10083 10084 ; 10085 return 0; 10086 } 10087 _ACEOF 10088 if ac_fn_c_try_link "$LINENO" 10089 then : 10090 10091 lt_aix_libpath_sed=' 10092 /Import File Strings/,/^$/ { 10093 /^0/ { 10094 s/^0 *\([^ ]*\) *$/\1/ 10095 p 10096 } 10097 }' 10098 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10099 # Check for a 64-bit object if we didn't find anything. 10100 if test -z "$lt_cv_aix_libpath_"; then 10101 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10102 fi 10103 fi 10104 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10105 conftest$ac_exeext conftest.$ac_ext 10106 if test -z "$lt_cv_aix_libpath_"; then 10107 lt_cv_aix_libpath_=/usr/lib:/lib 10108 fi 10109 10110 fi 10111 10112 aix_libpath=$lt_cv_aix_libpath_ 10113 fi 10114 10115 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10116 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 10117 else 10118 if test ia64 = "$host_cpu"; then 10119 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10120 allow_undefined_flag="-z nodefs" 10121 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" 10122 else 10123 # Determine the default libpath from the value encoded in an 10124 # empty executable. 10125 if test set = "${lt_cv_aix_libpath+set}"; then 10126 aix_libpath=$lt_cv_aix_libpath 10127 else 10128 if test ${lt_cv_aix_libpath_+y} 10129 then : 10130 printf %s "(cached) " >&6 10131 else $as_nop 10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10133 /* end confdefs.h. */ 10134 10135 int 10136 main (void) 10137 { 10138 10139 ; 10140 return 0; 10141 } 10142 _ACEOF 10143 if ac_fn_c_try_link "$LINENO" 10144 then : 10145 10146 lt_aix_libpath_sed=' 10147 /Import File Strings/,/^$/ { 10148 /^0/ { 10149 s/^0 *\([^ ]*\) *$/\1/ 10150 p 10151 } 10152 }' 10153 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10154 # Check for a 64-bit object if we didn't find anything. 10155 if test -z "$lt_cv_aix_libpath_"; then 10156 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10157 fi 10158 fi 10159 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10160 conftest$ac_exeext conftest.$ac_ext 10161 if test -z "$lt_cv_aix_libpath_"; then 10162 lt_cv_aix_libpath_=/usr/lib:/lib 10163 fi 10164 10165 fi 10166 10167 aix_libpath=$lt_cv_aix_libpath_ 10168 fi 10169 10170 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10171 # Warning - without using the other run time loading flags, 10172 # -berok will link without error, but may produce a broken library. 10173 no_undefined_flag=' $wl-bernotok' 10174 allow_undefined_flag=' $wl-berok' 10175 if test yes = "$with_gnu_ld"; then 10176 # We only use this code for GNU lds that support --whole-archive. 10177 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10178 else 10179 # Exported symbols can be pulled into shared objects from archives 10180 whole_archive_flag_spec='$convenience' 10181 fi 10182 archive_cmds_need_lc=yes 10183 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10184 # -brtl affects multiple linker settings, -berok does not and is overridden later 10185 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10186 if test svr4 != "$with_aix_soname"; then 10187 # This is similar to how AIX traditionally builds its shared libraries. 10188 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' 10189 fi 10190 if test aix != "$with_aix_soname"; then 10191 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' 10192 else 10193 # used by -dlpreopen to get the symbols 10194 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10195 fi 10196 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10197 fi 10198 fi 10199 ;; 10200 10201 amigaos*) 10202 case $host_cpu in 10203 powerpc) 10204 # see comment about AmigaOS4 .so support 10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10206 archive_expsym_cmds='' 10207 ;; 10208 m68k) 10209 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)' 10210 hardcode_libdir_flag_spec='-L$libdir' 10211 hardcode_minus_L=yes 10212 ;; 10213 esac 10214 ;; 10215 10216 bsdi[45]*) 10217 export_dynamic_flag_spec=-rdynamic 10218 ;; 10219 10220 cygwin* | mingw* | pw32* | cegcc*) 10221 # When not using gcc, we currently assume that we are using 10222 # Microsoft Visual C++ or Intel C++ Compiler. 10223 # hardcode_libdir_flag_spec is actually meaningless, as there is 10224 # no search path for DLLs. 10225 case $cc_basename in 10226 cl* | icl*) 10227 # Native MSVC or ICC 10228 hardcode_libdir_flag_spec=' ' 10229 allow_undefined_flag=unsupported 10230 always_export_symbols=yes 10231 file_list_spec='@' 10232 # Tell ltmain to make .lib files, not .a files. 10233 libext=lib 10234 # Tell ltmain to make .dll files, not .so files. 10235 shrext_cmds=.dll 10236 # FIXME: Setting linknames here is a bad hack. 10237 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10238 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10239 cp "$export_symbols" "$output_objdir/$soname.def"; 10240 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10241 else 10242 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10243 fi~ 10244 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10245 linknames=' 10246 # The linker will not automatically build a static lib if we build a DLL. 10247 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10248 enable_shared_with_static_runtimes=yes 10249 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10251 # Don't use ranlib 10252 old_postinstall_cmds='chmod 644 $oldlib' 10253 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10254 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10255 case $lt_outputfile in 10256 *.exe|*.EXE) ;; 10257 *) 10258 lt_outputfile=$lt_outputfile.exe 10259 lt_tool_outputfile=$lt_tool_outputfile.exe 10260 ;; 10261 esac~ 10262 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10263 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10264 $RM "$lt_outputfile.manifest"; 10265 fi' 10266 ;; 10267 *) 10268 # Assume MSVC and ICC wrapper 10269 hardcode_libdir_flag_spec=' ' 10270 allow_undefined_flag=unsupported 10271 # Tell ltmain to make .lib files, not .a files. 10272 libext=lib 10273 # Tell ltmain to make .dll files, not .so files. 10274 shrext_cmds=.dll 10275 # FIXME: Setting linknames here is a bad hack. 10276 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10277 # The linker will automatically build a .lib file if we build a DLL. 10278 old_archive_from_new_cmds='true' 10279 # FIXME: Should let the user specify the lib program. 10280 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10281 enable_shared_with_static_runtimes=yes 10282 ;; 10283 esac 10284 ;; 10285 10286 darwin* | rhapsody*) 10287 10288 10289 archive_cmds_need_lc=no 10290 hardcode_direct=no 10291 hardcode_automatic=yes 10292 hardcode_shlibpath_var=unsupported 10293 if test yes = "$lt_cv_ld_force_load"; then 10294 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\"`' 10295 10296 else 10297 whole_archive_flag_spec='' 10298 fi 10299 link_all_deplibs=yes 10300 allow_undefined_flag=$_lt_dar_allow_undefined 10301 case $cc_basename in 10302 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10303 *) _lt_dar_can_shared=$GCC ;; 10304 esac 10305 if test yes = "$_lt_dar_can_shared"; then 10306 output_verbose_link_cmd=func_echo_all 10307 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10308 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10309 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" 10310 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" 10311 10312 else 10313 ld_shlibs=no 10314 fi 10315 10316 ;; 10317 10318 dgux*) 10319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10320 hardcode_libdir_flag_spec='-L$libdir' 10321 hardcode_shlibpath_var=no 10322 ;; 10323 10324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10325 # support. Future versions do this automatically, but an explicit c++rt0.o 10326 # does not break anything, and helps significantly (at the cost of a little 10327 # extra space). 10328 freebsd2.2*) 10329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10330 hardcode_libdir_flag_spec='-R$libdir' 10331 hardcode_direct=yes 10332 hardcode_shlibpath_var=no 10333 ;; 10334 10335 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10336 freebsd2.*) 10337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10338 hardcode_direct=yes 10339 hardcode_minus_L=yes 10340 hardcode_shlibpath_var=no 10341 ;; 10342 10343 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10344 freebsd* | dragonfly* | midnightbsd*) 10345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10346 hardcode_libdir_flag_spec='-R$libdir' 10347 hardcode_direct=yes 10348 hardcode_shlibpath_var=no 10349 ;; 10350 10351 hpux9*) 10352 if test yes = "$GCC"; then 10353 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' 10354 else 10355 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' 10356 fi 10357 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10358 hardcode_libdir_separator=: 10359 hardcode_direct=yes 10360 10361 # hardcode_minus_L: Not really in the search PATH, 10362 # but as the default location of the library. 10363 hardcode_minus_L=yes 10364 export_dynamic_flag_spec='$wl-E' 10365 ;; 10366 10367 hpux10*) 10368 if test yes,no = "$GCC,$with_gnu_ld"; then 10369 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10370 else 10371 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10372 fi 10373 if test no = "$with_gnu_ld"; then 10374 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10375 hardcode_libdir_separator=: 10376 hardcode_direct=yes 10377 hardcode_direct_absolute=yes 10378 export_dynamic_flag_spec='$wl-E' 10379 # hardcode_minus_L: Not really in the search PATH, 10380 # but as the default location of the library. 10381 hardcode_minus_L=yes 10382 fi 10383 ;; 10384 10385 hpux11*) 10386 if test yes,no = "$GCC,$with_gnu_ld"; then 10387 case $host_cpu in 10388 hppa*64*) 10389 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10390 ;; 10391 ia64*) 10392 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10393 ;; 10394 *) 10395 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10396 ;; 10397 esac 10398 else 10399 case $host_cpu in 10400 hppa*64*) 10401 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10402 ;; 10403 ia64*) 10404 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10405 ;; 10406 *) 10407 10408 # Older versions of the 11.00 compiler do not understand -b yet 10409 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10411 printf %s "checking if $CC understands -b... " >&6; } 10412 if test ${lt_cv_prog_compiler__b+y} 10413 then : 10414 printf %s "(cached) " >&6 10415 else $as_nop 10416 lt_cv_prog_compiler__b=no 10417 save_LDFLAGS=$LDFLAGS 10418 LDFLAGS="$LDFLAGS -b" 10419 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10420 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10421 # The linker can only warn and ignore the option if not recognized 10422 # So say no if there are warnings 10423 if test -s conftest.err; then 10424 # Append any errors to the config.log. 10425 cat conftest.err 1>&5 10426 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10427 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10428 if diff conftest.exp conftest.er2 >/dev/null; then 10429 lt_cv_prog_compiler__b=yes 10430 fi 10431 else 10432 lt_cv_prog_compiler__b=yes 10433 fi 10434 fi 10435 $RM -r conftest* 10436 LDFLAGS=$save_LDFLAGS 10437 10438 fi 10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10440 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 10441 10442 if test yes = "$lt_cv_prog_compiler__b"; then 10443 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10444 else 10445 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10446 fi 10447 10448 ;; 10449 esac 10450 fi 10451 if test no = "$with_gnu_ld"; then 10452 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10453 hardcode_libdir_separator=: 10454 10455 case $host_cpu in 10456 hppa*64*|ia64*) 10457 hardcode_direct=no 10458 hardcode_shlibpath_var=no 10459 ;; 10460 *) 10461 hardcode_direct=yes 10462 hardcode_direct_absolute=yes 10463 export_dynamic_flag_spec='$wl-E' 10464 10465 # hardcode_minus_L: Not really in the search PATH, 10466 # but as the default location of the library. 10467 hardcode_minus_L=yes 10468 ;; 10469 esac 10470 fi 10471 ;; 10472 10473 irix5* | irix6* | nonstopux*) 10474 if test yes = "$GCC"; then 10475 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' 10476 # Try to use the -exported_symbol ld option, if it does not 10477 # work, assume that -exports_file does not work either and 10478 # implicitly export all symbols. 10479 # This should be the same for all languages, so no per-tag cache variable. 10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10481 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10482 if test ${lt_cv_irix_exported_symbol+y} 10483 then : 10484 printf %s "(cached) " >&6 10485 else $as_nop 10486 save_LDFLAGS=$LDFLAGS 10487 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10489 /* end confdefs.h. */ 10490 int foo (void) { return 0; } 10491 _ACEOF 10492 if ac_fn_c_try_link "$LINENO" 10493 then : 10494 lt_cv_irix_exported_symbol=yes 10495 else $as_nop 10496 lt_cv_irix_exported_symbol=no 10497 fi 10498 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10499 conftest$ac_exeext conftest.$ac_ext 10500 LDFLAGS=$save_LDFLAGS 10501 fi 10502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10503 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 10504 if test yes = "$lt_cv_irix_exported_symbol"; then 10505 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' 10506 fi 10507 link_all_deplibs=no 10508 else 10509 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' 10510 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' 10511 fi 10512 archive_cmds_need_lc='no' 10513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10514 hardcode_libdir_separator=: 10515 inherit_rpath=yes 10516 link_all_deplibs=yes 10517 ;; 10518 10519 linux*) 10520 case $cc_basename in 10521 tcc*) 10522 # Fabrice Bellard et al's Tiny C Compiler 10523 ld_shlibs=yes 10524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10525 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10526 ;; 10527 esac 10528 ;; 10529 10530 netbsd* | netbsdelf*-gnu) 10531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10533 else 10534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10535 fi 10536 hardcode_libdir_flag_spec='-R$libdir' 10537 hardcode_direct=yes 10538 hardcode_shlibpath_var=no 10539 ;; 10540 10541 newsos6) 10542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10543 hardcode_direct=yes 10544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10545 hardcode_libdir_separator=: 10546 hardcode_shlibpath_var=no 10547 ;; 10548 10549 *nto* | *qnx*) 10550 ;; 10551 10552 openbsd* | bitrig*) 10553 if test -f /usr/libexec/ld.so; then 10554 hardcode_direct=yes 10555 hardcode_shlibpath_var=no 10556 hardcode_direct_absolute=yes 10557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10560 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10561 export_dynamic_flag_spec='$wl-E' 10562 else 10563 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10564 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10565 fi 10566 else 10567 ld_shlibs=no 10568 fi 10569 ;; 10570 10571 os2*) 10572 hardcode_libdir_flag_spec='-L$libdir' 10573 hardcode_minus_L=yes 10574 allow_undefined_flag=unsupported 10575 shrext_cmds=.dll 10576 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10577 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10578 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10579 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10580 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10581 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10582 emximp -o $lib $output_objdir/$libname.def' 10583 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10584 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10585 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10586 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10587 prefix_cmds="$SED"~ 10588 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10589 prefix_cmds="$prefix_cmds -e 1d"; 10590 fi~ 10591 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10592 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10593 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10594 emximp -o $lib $output_objdir/$libname.def' 10595 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10596 enable_shared_with_static_runtimes=yes 10597 file_list_spec='@' 10598 ;; 10599 10600 osf3*) 10601 if test yes = "$GCC"; then 10602 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10603 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' 10604 else 10605 allow_undefined_flag=' -expect_unresolved \*' 10606 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' 10607 fi 10608 archive_cmds_need_lc='no' 10609 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10610 hardcode_libdir_separator=: 10611 ;; 10612 10613 osf4* | osf5*) # as osf3* with the addition of -msym flag 10614 if test yes = "$GCC"; then 10615 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10616 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' 10617 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10618 else 10619 allow_undefined_flag=' -expect_unresolved \*' 10620 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' 10621 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~ 10622 $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' 10623 10624 # Both c and cxx compiler support -rpath directly 10625 hardcode_libdir_flag_spec='-rpath $libdir' 10626 fi 10627 archive_cmds_need_lc='no' 10628 hardcode_libdir_separator=: 10629 ;; 10630 10631 solaris*) 10632 no_undefined_flag=' -z defs' 10633 if test yes = "$GCC"; then 10634 wlarc='$wl' 10635 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10637 $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' 10638 else 10639 case `$CC -V 2>&1` in 10640 *"Compilers 5.0"*) 10641 wlarc='' 10642 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10644 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10645 ;; 10646 *) 10647 wlarc='$wl' 10648 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10649 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10650 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10651 ;; 10652 esac 10653 fi 10654 hardcode_libdir_flag_spec='-R$libdir' 10655 hardcode_shlibpath_var=no 10656 case $host_os in 10657 solaris2.[0-5] | solaris2.[0-5].*) ;; 10658 *) 10659 # The compiler driver will combine and reorder linker options, 10660 # but understands '-z linker_flag'. GCC discards it without '$wl', 10661 # but is careful enough not to reorder. 10662 # Supported since Solaris 2.6 (maybe 2.5.1?) 10663 if test yes = "$GCC"; then 10664 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10665 else 10666 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10667 fi 10668 ;; 10669 esac 10670 link_all_deplibs=yes 10671 ;; 10672 10673 sunos4*) 10674 if test sequent = "$host_vendor"; then 10675 # Use $CC to link under sequent, because it throws in some extra .o 10676 # files that make .init and .fini sections work. 10677 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10678 else 10679 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10680 fi 10681 hardcode_libdir_flag_spec='-L$libdir' 10682 hardcode_direct=yes 10683 hardcode_minus_L=yes 10684 hardcode_shlibpath_var=no 10685 ;; 10686 10687 sysv4) 10688 case $host_vendor in 10689 sni) 10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10691 hardcode_direct=yes # is this really true??? 10692 ;; 10693 siemens) 10694 ## LD is ld it makes a PLAMLIB 10695 ## CC just makes a GrossModule. 10696 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10697 reload_cmds='$CC -r -o $output$reload_objs' 10698 hardcode_direct=no 10699 ;; 10700 motorola) 10701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10702 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10703 ;; 10704 esac 10705 runpath_var='LD_RUN_PATH' 10706 hardcode_shlibpath_var=no 10707 ;; 10708 10709 sysv4.3*) 10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10711 hardcode_shlibpath_var=no 10712 export_dynamic_flag_spec='-Bexport' 10713 ;; 10714 10715 sysv4*MP*) 10716 if test -d /usr/nec; then 10717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10718 hardcode_shlibpath_var=no 10719 runpath_var=LD_RUN_PATH 10720 hardcode_runpath_var=yes 10721 ld_shlibs=yes 10722 fi 10723 ;; 10724 10725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10726 no_undefined_flag='$wl-z,text' 10727 archive_cmds_need_lc=no 10728 hardcode_shlibpath_var=no 10729 runpath_var='LD_RUN_PATH' 10730 10731 if test yes = "$GCC"; then 10732 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10733 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10734 else 10735 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10736 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10737 fi 10738 ;; 10739 10740 sysv5* | sco3.2v5* | sco5v6*) 10741 # Note: We CANNOT use -z defs as we might desire, because we do not 10742 # link with -lc, and that would cause any symbols used from libc to 10743 # always be unresolved, which means just about no library would 10744 # ever link correctly. If we're not using GNU ld we use -z text 10745 # though, which does catch some bad symbols but isn't as heavy-handed 10746 # as -z defs. 10747 no_undefined_flag='$wl-z,text' 10748 allow_undefined_flag='$wl-z,nodefs' 10749 archive_cmds_need_lc=no 10750 hardcode_shlibpath_var=no 10751 hardcode_libdir_flag_spec='$wl-R,$libdir' 10752 hardcode_libdir_separator=':' 10753 link_all_deplibs=yes 10754 export_dynamic_flag_spec='$wl-Bexport' 10755 runpath_var='LD_RUN_PATH' 10756 10757 if test yes = "$GCC"; then 10758 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10759 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10760 else 10761 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10762 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10763 fi 10764 ;; 10765 10766 uts4*) 10767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10768 hardcode_libdir_flag_spec='-L$libdir' 10769 hardcode_shlibpath_var=no 10770 ;; 10771 10772 *) 10773 ld_shlibs=no 10774 ;; 10775 esac 10776 10777 if test sni = "$host_vendor"; then 10778 case $host in 10779 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10780 export_dynamic_flag_spec='$wl-Blargedynsym' 10781 ;; 10782 esac 10783 fi 10784 fi 10785 10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10787 printf "%s\n" "$ld_shlibs" >&6; } 10788 test no = "$ld_shlibs" && can_build_shared=no 10789 10790 with_gnu_ld=$with_gnu_ld 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 # 10807 # Do we need to explicitly link libc? 10808 # 10809 case "x$archive_cmds_need_lc" in 10810 x|xyes) 10811 # Assume -lc should be added 10812 archive_cmds_need_lc=yes 10813 10814 if test yes,yes = "$GCC,$enable_shared"; then 10815 case $archive_cmds in 10816 *'~'*) 10817 # FIXME: we may have to deal with multi-command sequences. 10818 ;; 10819 '$CC '*) 10820 # Test whether the compiler implicitly links with -lc since on some 10821 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10822 # to ld, don't add -lc before -lgcc. 10823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10824 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 10825 if test ${lt_cv_archive_cmds_need_lc+y} 10826 then : 10827 printf %s "(cached) " >&6 10828 else $as_nop 10829 $RM conftest* 10830 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10831 10832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10833 (eval $ac_compile) 2>&5 10834 ac_status=$? 10835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10836 test $ac_status = 0; } 2>conftest.err; then 10837 soname=conftest 10838 lib=conftest 10839 libobjs=conftest.$ac_objext 10840 deplibs= 10841 wl=$lt_prog_compiler_wl 10842 pic_flag=$lt_prog_compiler_pic 10843 compiler_flags=-v 10844 linker_flags=-v 10845 verstring= 10846 output_objdir=. 10847 libname=conftest 10848 lt_save_allow_undefined_flag=$allow_undefined_flag 10849 allow_undefined_flag= 10850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10851 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10852 ac_status=$? 10853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10854 test $ac_status = 0; } 10855 then 10856 lt_cv_archive_cmds_need_lc=no 10857 else 10858 lt_cv_archive_cmds_need_lc=yes 10859 fi 10860 allow_undefined_flag=$lt_save_allow_undefined_flag 10861 else 10862 cat conftest.err 1>&5 10863 fi 10864 $RM conftest* 10865 10866 fi 10867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10868 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 10869 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10870 ;; 10871 esac 10872 fi 10873 ;; 10874 esac 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11028 printf %s "checking dynamic linker characteristics... " >&6; } 11029 11030 if test yes = "$GCC"; then 11031 case $host_os in 11032 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11033 *) lt_awk_arg='/^libraries:/' ;; 11034 esac 11035 case $host_os in 11036 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11037 *) lt_sed_strip_eq='s|=/|/|g' ;; 11038 esac 11039 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11040 case $lt_search_path_spec in 11041 *\;*) 11042 # if the path contains ";" then we assume it to be the separator 11043 # otherwise default to the standard path separator (i.e. ":") - it is 11044 # assumed that no part of a normal pathname contains ";" but that should 11045 # okay in the real world where ";" in dirpaths is itself problematic. 11046 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11047 ;; 11048 *) 11049 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11050 ;; 11051 esac 11052 # Ok, now we have the path, separated by spaces, we can step through it 11053 # and add multilib dir if necessary... 11054 lt_tmp_lt_search_path_spec= 11055 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11056 # ...but if some path component already ends with the multilib dir we assume 11057 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11058 case "$lt_multi_os_dir; $lt_search_path_spec " in 11059 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11060 lt_multi_os_dir= 11061 ;; 11062 esac 11063 for lt_sys_path in $lt_search_path_spec; do 11064 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11065 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11066 elif test -n "$lt_multi_os_dir"; then 11067 test -d "$lt_sys_path" && \ 11068 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11069 fi 11070 done 11071 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11072 BEGIN {RS = " "; FS = "/|\n";} { 11073 lt_foo = ""; 11074 lt_count = 0; 11075 for (lt_i = NF; lt_i > 0; lt_i--) { 11076 if ($lt_i != "" && $lt_i != ".") { 11077 if ($lt_i == "..") { 11078 lt_count++; 11079 } else { 11080 if (lt_count == 0) { 11081 lt_foo = "/" $lt_i lt_foo; 11082 } else { 11083 lt_count--; 11084 } 11085 } 11086 } 11087 } 11088 if (lt_foo != "") { lt_freq[lt_foo]++; } 11089 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11090 }'` 11091 # AWK program above erroneously prepends '/' to C:/dos/paths 11092 # for these hosts. 11093 case $host_os in 11094 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11095 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11096 esac 11097 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11098 else 11099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11100 fi 11101 library_names_spec= 11102 libname_spec='lib$name' 11103 soname_spec= 11104 shrext_cmds=.so 11105 postinstall_cmds= 11106 postuninstall_cmds= 11107 finish_cmds= 11108 finish_eval= 11109 shlibpath_var= 11110 shlibpath_overrides_runpath=unknown 11111 version_type=none 11112 dynamic_linker="$host_os ld.so" 11113 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11114 need_lib_prefix=unknown 11115 hardcode_into_libs=no 11116 11117 # when you set need_version to no, make sure it does not cause -set_version 11118 # flags to be left without arguments 11119 need_version=unknown 11120 11121 11122 11123 case $host_os in 11124 aix3*) 11125 version_type=linux # correct to gnu/linux during the next big refactor 11126 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11127 shlibpath_var=LIBPATH 11128 11129 # AIX 3 has no versioning support, so we append a major version to the name. 11130 soname_spec='$libname$release$shared_ext$major' 11131 ;; 11132 11133 aix[4-9]*) 11134 version_type=linux # correct to gnu/linux during the next big refactor 11135 need_lib_prefix=no 11136 need_version=no 11137 hardcode_into_libs=yes 11138 if test ia64 = "$host_cpu"; then 11139 # AIX 5 supports IA64 11140 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11141 shlibpath_var=LD_LIBRARY_PATH 11142 else 11143 # With GCC up to 2.95.x, collect2 would create an import file 11144 # for dependence libraries. The import file would start with 11145 # the line '#! .'. This would cause the generated library to 11146 # depend on '.', always an invalid library. This was fixed in 11147 # development snapshots of GCC prior to 3.0. 11148 case $host_os in 11149 aix4 | aix4.[01] | aix4.[01].*) 11150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11151 echo ' yes ' 11152 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11153 : 11154 else 11155 can_build_shared=no 11156 fi 11157 ;; 11158 esac 11159 # Using Import Files as archive members, it is possible to support 11160 # filename-based versioning of shared library archives on AIX. While 11161 # this would work for both with and without runtime linking, it will 11162 # prevent static linking of such archives. So we do filename-based 11163 # shared library versioning with .so extension only, which is used 11164 # when both runtime linking and shared linking is enabled. 11165 # Unfortunately, runtime linking may impact performance, so we do 11166 # not want this to be the default eventually. Also, we use the 11167 # versioned .so libs for executables only if there is the -brtl 11168 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11169 # To allow for filename-based versioning support, we need to create 11170 # libNAME.so.V as an archive file, containing: 11171 # *) an Import File, referring to the versioned filename of the 11172 # archive as well as the shared archive member, telling the 11173 # bitwidth (32 or 64) of that shared object, and providing the 11174 # list of exported symbols of that shared object, eventually 11175 # decorated with the 'weak' keyword 11176 # *) the shared object with the F_LOADONLY flag set, to really avoid 11177 # it being seen by the linker. 11178 # At run time we better use the real file rather than another symlink, 11179 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11180 11181 case $with_aix_soname,$aix_use_runtimelinking in 11182 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11183 # soname into executable. Probably we can add versioning support to 11184 # collect2, so additional links can be useful in future. 11185 aix,yes) # traditional libtool 11186 dynamic_linker='AIX unversionable lib.so' 11187 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11188 # instead of lib<name>.a to let people know that these are not 11189 # typical AIX shared libraries. 11190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11191 ;; 11192 aix,no) # traditional AIX only 11193 dynamic_linker='AIX lib.a(lib.so.V)' 11194 # We preserve .a as extension for shared libraries through AIX4.2 11195 # and later when we are not doing run time linking. 11196 library_names_spec='$libname$release.a $libname.a' 11197 soname_spec='$libname$release$shared_ext$major' 11198 ;; 11199 svr4,*) # full svr4 only 11200 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11201 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11202 # We do not specify a path in Import Files, so LIBPATH fires. 11203 shlibpath_overrides_runpath=yes 11204 ;; 11205 *,yes) # both, prefer svr4 11206 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11207 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11208 # unpreferred sharedlib libNAME.a needs extra handling 11209 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"' 11210 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"' 11211 # We do not specify a path in Import Files, so LIBPATH fires. 11212 shlibpath_overrides_runpath=yes 11213 ;; 11214 *,no) # both, prefer aix 11215 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11216 library_names_spec='$libname$release.a $libname.a' 11217 soname_spec='$libname$release$shared_ext$major' 11218 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11219 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)' 11220 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"' 11221 ;; 11222 esac 11223 shlibpath_var=LIBPATH 11224 fi 11225 ;; 11226 11227 amigaos*) 11228 case $host_cpu in 11229 powerpc) 11230 # Since July 2007 AmigaOS4 officially supports .so libraries. 11231 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11233 ;; 11234 m68k) 11235 library_names_spec='$libname.ixlibrary $libname.a' 11236 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11237 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' 11238 ;; 11239 esac 11240 ;; 11241 11242 beos*) 11243 library_names_spec='$libname$shared_ext' 11244 dynamic_linker="$host_os ld.so" 11245 shlibpath_var=LIBRARY_PATH 11246 ;; 11247 11248 bsdi[45]*) 11249 version_type=linux # correct to gnu/linux during the next big refactor 11250 need_version=no 11251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11252 soname_spec='$libname$release$shared_ext$major' 11253 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11254 shlibpath_var=LD_LIBRARY_PATH 11255 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11256 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11257 # the default ld.so.conf also contains /usr/contrib/lib and 11258 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11259 # libtool to hard-code these into programs 11260 ;; 11261 11262 cygwin* | mingw* | pw32* | cegcc*) 11263 version_type=windows 11264 shrext_cmds=.dll 11265 need_version=no 11266 need_lib_prefix=no 11267 11268 case $GCC,$cc_basename in 11269 yes,*) 11270 # gcc 11271 library_names_spec='$libname.dll.a' 11272 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11273 postinstall_cmds='base_file=`basename \$file`~ 11274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11275 dldir=$destdir/`dirname \$dlpath`~ 11276 test -d \$dldir || mkdir -p \$dldir~ 11277 $install_prog $dir/$dlname \$dldir/$dlname~ 11278 chmod a+x \$dldir/$dlname~ 11279 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11280 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11281 fi' 11282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11283 dlpath=$dir/\$dldll~ 11284 $RM \$dlpath' 11285 shlibpath_overrides_runpath=yes 11286 11287 case $host_os in 11288 cygwin*) 11289 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11290 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11291 11292 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11293 ;; 11294 mingw* | cegcc*) 11295 # MinGW DLLs use traditional 'lib' prefix 11296 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11297 ;; 11298 pw32*) 11299 # pw32 DLLs use 'pw' prefix rather than 'lib' 11300 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11301 ;; 11302 esac 11303 dynamic_linker='Win32 ld.exe' 11304 ;; 11305 11306 *,cl* | *,icl*) 11307 # Native MSVC or ICC 11308 libname_spec='$name' 11309 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11310 library_names_spec='$libname.dll.lib' 11311 11312 case $build_os in 11313 mingw*) 11314 sys_lib_search_path_spec= 11315 lt_save_ifs=$IFS 11316 IFS=';' 11317 for lt_path in $LIB 11318 do 11319 IFS=$lt_save_ifs 11320 # Let DOS variable expansion print the short 8.3 style file name. 11321 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11322 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11323 done 11324 IFS=$lt_save_ifs 11325 # Convert to MSYS style. 11326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11327 ;; 11328 cygwin*) 11329 # Convert to unix form, then to dos form, then back to unix form 11330 # but this time dos style (no spaces!) so that the unix form looks 11331 # like /cygdrive/c/PROGRA~1:/cygdr... 11332 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11333 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11334 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11335 ;; 11336 *) 11337 sys_lib_search_path_spec=$LIB 11338 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11339 # It is most probably a Windows format PATH. 11340 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11341 else 11342 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11343 fi 11344 # FIXME: find the short name or the path components, as spaces are 11345 # common. (e.g. "Program Files" -> "PROGRA~1") 11346 ;; 11347 esac 11348 11349 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11350 postinstall_cmds='base_file=`basename \$file`~ 11351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11352 dldir=$destdir/`dirname \$dlpath`~ 11353 test -d \$dldir || mkdir -p \$dldir~ 11354 $install_prog $dir/$dlname \$dldir/$dlname' 11355 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11356 dlpath=$dir/\$dldll~ 11357 $RM \$dlpath' 11358 shlibpath_overrides_runpath=yes 11359 dynamic_linker='Win32 link.exe' 11360 ;; 11361 11362 *) 11363 # Assume MSVC and ICC wrapper 11364 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11365 dynamic_linker='Win32 ld.exe' 11366 ;; 11367 esac 11368 # FIXME: first we should search . and the directory the executable is in 11369 shlibpath_var=PATH 11370 ;; 11371 11372 darwin* | rhapsody*) 11373 dynamic_linker="$host_os dyld" 11374 version_type=darwin 11375 need_lib_prefix=no 11376 need_version=no 11377 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11378 soname_spec='$libname$release$major$shared_ext' 11379 shlibpath_overrides_runpath=yes 11380 shlibpath_var=DYLD_LIBRARY_PATH 11381 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11382 11383 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11385 ;; 11386 11387 dgux*) 11388 version_type=linux # correct to gnu/linux during the next big refactor 11389 need_lib_prefix=no 11390 need_version=no 11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11392 soname_spec='$libname$release$shared_ext$major' 11393 shlibpath_var=LD_LIBRARY_PATH 11394 ;; 11395 11396 freebsd* | dragonfly* | midnightbsd*) 11397 # DragonFly does not have aout. When/if they implement a new 11398 # versioning mechanism, adjust this. 11399 if test -x /usr/bin/objformat; then 11400 objformat=`/usr/bin/objformat` 11401 else 11402 case $host_os in 11403 freebsd[23].*) objformat=aout ;; 11404 *) objformat=elf ;; 11405 esac 11406 fi 11407 version_type=freebsd-$objformat 11408 case $version_type in 11409 freebsd-elf*) 11410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11411 soname_spec='$libname$release$shared_ext$major' 11412 need_version=no 11413 need_lib_prefix=no 11414 ;; 11415 freebsd-*) 11416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11417 need_version=yes 11418 ;; 11419 esac 11420 shlibpath_var=LD_LIBRARY_PATH 11421 case $host_os in 11422 freebsd2.*) 11423 shlibpath_overrides_runpath=yes 11424 ;; 11425 freebsd3.[01]* | freebsdelf3.[01]*) 11426 shlibpath_overrides_runpath=yes 11427 hardcode_into_libs=yes 11428 ;; 11429 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11430 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11431 shlibpath_overrides_runpath=no 11432 hardcode_into_libs=yes 11433 ;; 11434 *) # from 4.6 on, and DragonFly 11435 shlibpath_overrides_runpath=yes 11436 hardcode_into_libs=yes 11437 ;; 11438 esac 11439 ;; 11440 11441 haiku*) 11442 version_type=linux # correct to gnu/linux during the next big refactor 11443 need_lib_prefix=no 11444 need_version=no 11445 dynamic_linker="$host_os runtime_loader" 11446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11447 soname_spec='$libname$release$shared_ext$major' 11448 shlibpath_var=LIBRARY_PATH 11449 shlibpath_overrides_runpath=no 11450 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11451 hardcode_into_libs=yes 11452 ;; 11453 11454 hpux9* | hpux10* | hpux11*) 11455 # Give a soname corresponding to the major version so that dld.sl refuses to 11456 # link against other versions. 11457 version_type=sunos 11458 need_lib_prefix=no 11459 need_version=no 11460 case $host_cpu in 11461 ia64*) 11462 shrext_cmds='.so' 11463 hardcode_into_libs=yes 11464 dynamic_linker="$host_os dld.so" 11465 shlibpath_var=LD_LIBRARY_PATH 11466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11468 soname_spec='$libname$release$shared_ext$major' 11469 if test 32 = "$HPUX_IA64_MODE"; then 11470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11471 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11472 else 11473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11474 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11475 fi 11476 ;; 11477 hppa*64*) 11478 shrext_cmds='.sl' 11479 hardcode_into_libs=yes 11480 dynamic_linker="$host_os dld.sl" 11481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11484 soname_spec='$libname$release$shared_ext$major' 11485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11487 ;; 11488 *) 11489 shrext_cmds='.sl' 11490 dynamic_linker="$host_os dld.sl" 11491 shlibpath_var=SHLIB_PATH 11492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11494 soname_spec='$libname$release$shared_ext$major' 11495 ;; 11496 esac 11497 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11498 postinstall_cmds='chmod 555 $lib' 11499 # or fails outright, so override atomically: 11500 install_override_mode=555 11501 ;; 11502 11503 interix[3-9]*) 11504 version_type=linux # correct to gnu/linux during the next big refactor 11505 need_lib_prefix=no 11506 need_version=no 11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11508 soname_spec='$libname$release$shared_ext$major' 11509 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11510 shlibpath_var=LD_LIBRARY_PATH 11511 shlibpath_overrides_runpath=no 11512 hardcode_into_libs=yes 11513 ;; 11514 11515 irix5* | irix6* | nonstopux*) 11516 case $host_os in 11517 nonstopux*) version_type=nonstopux ;; 11518 *) 11519 if test yes = "$lt_cv_prog_gnu_ld"; then 11520 version_type=linux # correct to gnu/linux during the next big refactor 11521 else 11522 version_type=irix 11523 fi ;; 11524 esac 11525 need_lib_prefix=no 11526 need_version=no 11527 soname_spec='$libname$release$shared_ext$major' 11528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11529 case $host_os in 11530 irix5* | nonstopux*) 11531 libsuff= shlibsuff= 11532 ;; 11533 *) 11534 case $LD in # libtool.m4 will add one of these switches to LD 11535 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11536 libsuff= shlibsuff= libmagic=32-bit;; 11537 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11538 libsuff=32 shlibsuff=N32 libmagic=N32;; 11539 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11540 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11541 *) libsuff= shlibsuff= libmagic=never-match;; 11542 esac 11543 ;; 11544 esac 11545 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11546 shlibpath_overrides_runpath=no 11547 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11548 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11549 hardcode_into_libs=yes 11550 ;; 11551 11552 # No shared lib support for Linux oldld, aout, or coff. 11553 linux*oldld* | linux*aout* | linux*coff*) 11554 dynamic_linker=no 11555 ;; 11556 11557 linux*android*) 11558 version_type=none # Android doesn't support versioned libraries. 11559 need_lib_prefix=no 11560 need_version=no 11561 library_names_spec='$libname$release$shared_ext' 11562 soname_spec='$libname$release$shared_ext' 11563 finish_cmds= 11564 shlibpath_var=LD_LIBRARY_PATH 11565 shlibpath_overrides_runpath=yes 11566 11567 # This implies no fast_install, which is unacceptable. 11568 # Some rework will be needed to allow for fast_install 11569 # before this can be enabled. 11570 hardcode_into_libs=yes 11571 11572 dynamic_linker='Android linker' 11573 # Don't embed -rpath directories since the linker doesn't support them. 11574 hardcode_libdir_flag_spec='-L$libdir' 11575 ;; 11576 11577 # This must be glibc/ELF. 11578 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11579 version_type=linux # correct to gnu/linux during the next big refactor 11580 need_lib_prefix=no 11581 need_version=no 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11583 soname_spec='$libname$release$shared_ext$major' 11584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11585 shlibpath_var=LD_LIBRARY_PATH 11586 shlibpath_overrides_runpath=no 11587 11588 # Some binutils ld are patched to set DT_RUNPATH 11589 if test ${lt_cv_shlibpath_overrides_runpath+y} 11590 then : 11591 printf %s "(cached) " >&6 11592 else $as_nop 11593 lt_cv_shlibpath_overrides_runpath=no 11594 save_LDFLAGS=$LDFLAGS 11595 save_libdir=$libdir 11596 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11597 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11599 /* end confdefs.h. */ 11600 11601 int 11602 main (void) 11603 { 11604 11605 ; 11606 return 0; 11607 } 11608 _ACEOF 11609 if ac_fn_c_try_link "$LINENO" 11610 then : 11611 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 11612 then : 11613 lt_cv_shlibpath_overrides_runpath=yes 11614 fi 11615 fi 11616 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11617 conftest$ac_exeext conftest.$ac_ext 11618 LDFLAGS=$save_LDFLAGS 11619 libdir=$save_libdir 11620 11621 fi 11622 11623 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11624 11625 # This implies no fast_install, which is unacceptable. 11626 # Some rework will be needed to allow for fast_install 11627 # before this can be enabled. 11628 hardcode_into_libs=yes 11629 11630 # Ideally, we could use ldconfig to report *all* directores which are 11631 # searched for libraries, however this is still not possible. Aside from not 11632 # being certain /sbin/ldconfig is available, command 11633 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11634 # even though it is searched at run-time. Try to do the best guess by 11635 # appending ld.so.conf contents (and includes) to the search path. 11636 if test -f /etc/ld.so.conf; then 11637 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' ' '` 11638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11639 fi 11640 11641 # We used to test for /lib/ld.so.1 and disable shared libraries on 11642 # powerpc, because MkLinux only supported shared libraries with the 11643 # GNU dynamic linker. Since this was broken with cross compilers, 11644 # most powerpc-linux boxes support dynamic linking these days and 11645 # people can always --disable-shared, the test was removed, and we 11646 # assume the GNU/Linux dynamic linker is in use. 11647 dynamic_linker='GNU/Linux ld.so' 11648 ;; 11649 11650 netbsdelf*-gnu) 11651 version_type=linux 11652 need_lib_prefix=no 11653 need_version=no 11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11655 soname_spec='${libname}${release}${shared_ext}$major' 11656 shlibpath_var=LD_LIBRARY_PATH 11657 shlibpath_overrides_runpath=no 11658 hardcode_into_libs=yes 11659 dynamic_linker='NetBSD ld.elf_so' 11660 ;; 11661 11662 netbsd*) 11663 version_type=sunos 11664 need_lib_prefix=no 11665 need_version=no 11666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11667 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11669 dynamic_linker='NetBSD (a.out) ld.so' 11670 else 11671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11672 soname_spec='$libname$release$shared_ext$major' 11673 dynamic_linker='NetBSD ld.elf_so' 11674 fi 11675 shlibpath_var=LD_LIBRARY_PATH 11676 shlibpath_overrides_runpath=yes 11677 hardcode_into_libs=yes 11678 ;; 11679 11680 newsos6) 11681 version_type=linux # correct to gnu/linux during the next big refactor 11682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11683 shlibpath_var=LD_LIBRARY_PATH 11684 shlibpath_overrides_runpath=yes 11685 ;; 11686 11687 *nto* | *qnx*) 11688 version_type=qnx 11689 need_lib_prefix=no 11690 need_version=no 11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11692 soname_spec='$libname$release$shared_ext$major' 11693 shlibpath_var=LD_LIBRARY_PATH 11694 shlibpath_overrides_runpath=no 11695 hardcode_into_libs=yes 11696 dynamic_linker='ldqnx.so' 11697 ;; 11698 11699 openbsd* | bitrig*) 11700 version_type=sunos 11701 sys_lib_dlsearch_path_spec=/usr/lib 11702 need_lib_prefix=no 11703 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11704 need_version=no 11705 else 11706 need_version=yes 11707 fi 11708 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11710 shlibpath_var=LD_LIBRARY_PATH 11711 shlibpath_overrides_runpath=yes 11712 ;; 11713 11714 os2*) 11715 libname_spec='$name' 11716 version_type=windows 11717 shrext_cmds=.dll 11718 need_version=no 11719 need_lib_prefix=no 11720 # OS/2 can only load a DLL with a base name of 8 characters or less. 11721 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11722 v=$($ECHO $release$versuffix | tr -d .-); 11723 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11724 $ECHO $n$v`$shared_ext' 11725 library_names_spec='${libname}_dll.$libext' 11726 dynamic_linker='OS/2 ld.exe' 11727 shlibpath_var=BEGINLIBPATH 11728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11729 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11730 postinstall_cmds='base_file=`basename \$file`~ 11731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11732 dldir=$destdir/`dirname \$dlpath`~ 11733 test -d \$dldir || mkdir -p \$dldir~ 11734 $install_prog $dir/$dlname \$dldir/$dlname~ 11735 chmod a+x \$dldir/$dlname~ 11736 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11737 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11738 fi' 11739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11740 dlpath=$dir/\$dldll~ 11741 $RM \$dlpath' 11742 ;; 11743 11744 osf3* | osf4* | osf5*) 11745 version_type=osf 11746 need_lib_prefix=no 11747 need_version=no 11748 soname_spec='$libname$release$shared_ext$major' 11749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11750 shlibpath_var=LD_LIBRARY_PATH 11751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11752 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11753 ;; 11754 11755 rdos*) 11756 dynamic_linker=no 11757 ;; 11758 11759 solaris*) 11760 version_type=linux # correct to gnu/linux during the next big refactor 11761 need_lib_prefix=no 11762 need_version=no 11763 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11764 soname_spec='$libname$release$shared_ext$major' 11765 shlibpath_var=LD_LIBRARY_PATH 11766 shlibpath_overrides_runpath=yes 11767 hardcode_into_libs=yes 11768 # ldd complains unless libraries are executable 11769 postinstall_cmds='chmod +x $lib' 11770 ;; 11771 11772 sunos4*) 11773 version_type=sunos 11774 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11776 shlibpath_var=LD_LIBRARY_PATH 11777 shlibpath_overrides_runpath=yes 11778 if test yes = "$with_gnu_ld"; then 11779 need_lib_prefix=no 11780 fi 11781 need_version=yes 11782 ;; 11783 11784 sysv4 | sysv4.3*) 11785 version_type=linux # correct to gnu/linux during the next big refactor 11786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11787 soname_spec='$libname$release$shared_ext$major' 11788 shlibpath_var=LD_LIBRARY_PATH 11789 case $host_vendor in 11790 sni) 11791 shlibpath_overrides_runpath=no 11792 need_lib_prefix=no 11793 runpath_var=LD_RUN_PATH 11794 ;; 11795 siemens) 11796 need_lib_prefix=no 11797 ;; 11798 motorola) 11799 need_lib_prefix=no 11800 need_version=no 11801 shlibpath_overrides_runpath=no 11802 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11803 ;; 11804 esac 11805 ;; 11806 11807 sysv4*MP*) 11808 if test -d /usr/nec; then 11809 version_type=linux # correct to gnu/linux during the next big refactor 11810 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11811 soname_spec='$libname$shared_ext.$major' 11812 shlibpath_var=LD_LIBRARY_PATH 11813 fi 11814 ;; 11815 11816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11817 version_type=sco 11818 need_lib_prefix=no 11819 need_version=no 11820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11821 soname_spec='$libname$release$shared_ext$major' 11822 shlibpath_var=LD_LIBRARY_PATH 11823 shlibpath_overrides_runpath=yes 11824 hardcode_into_libs=yes 11825 if test yes = "$with_gnu_ld"; then 11826 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11827 else 11828 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11829 case $host_os in 11830 sco3.2v5*) 11831 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11832 ;; 11833 esac 11834 fi 11835 sys_lib_dlsearch_path_spec='/usr/lib' 11836 ;; 11837 11838 tpf*) 11839 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11840 version_type=linux # correct to gnu/linux during the next big refactor 11841 need_lib_prefix=no 11842 need_version=no 11843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11844 shlibpath_var=LD_LIBRARY_PATH 11845 shlibpath_overrides_runpath=no 11846 hardcode_into_libs=yes 11847 ;; 11848 11849 uts4*) 11850 version_type=linux # correct to gnu/linux during the next big refactor 11851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11852 soname_spec='$libname$release$shared_ext$major' 11853 shlibpath_var=LD_LIBRARY_PATH 11854 ;; 11855 11856 *) 11857 dynamic_linker=no 11858 ;; 11859 esac 11860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11861 printf "%s\n" "$dynamic_linker" >&6; } 11862 test no = "$dynamic_linker" && can_build_shared=no 11863 11864 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11865 if test yes = "$GCC"; then 11866 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11867 fi 11868 11869 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11870 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11871 fi 11872 11873 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11874 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11875 fi 11876 11877 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11878 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11879 11880 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11881 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11882 11883 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11884 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11983 printf %s "checking how to hardcode library paths into programs... " >&6; } 11984 hardcode_action= 11985 if test -n "$hardcode_libdir_flag_spec" || 11986 test -n "$runpath_var" || 11987 test yes = "$hardcode_automatic"; then 11988 11989 # We can hardcode non-existent directories. 11990 if test no != "$hardcode_direct" && 11991 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11992 # have to relink, otherwise we might link with an installed library 11993 # when we should be linking with a yet-to-be-installed one 11994 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11995 test no != "$hardcode_minus_L"; then 11996 # Linking always hardcodes the temporary library directory. 11997 hardcode_action=relink 11998 else 11999 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12000 hardcode_action=immediate 12001 fi 12002 else 12003 # We cannot hardcode anything, or else we can only hardcode existing 12004 # directories. 12005 hardcode_action=unsupported 12006 fi 12007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12008 printf "%s\n" "$hardcode_action" >&6; } 12009 12010 if test relink = "$hardcode_action" || 12011 test yes = "$inherit_rpath"; then 12012 # Fast installation is not supported 12013 enable_fast_install=no 12014 elif test yes = "$shlibpath_overrides_runpath" || 12015 test no = "$enable_shared"; then 12016 # Fast installation is not necessary 12017 enable_fast_install=needless 12018 fi 12019 12020 12021 12022 12023 12024 12025 if test yes != "$enable_dlopen"; then 12026 enable_dlopen=unknown 12027 enable_dlopen_self=unknown 12028 enable_dlopen_self_static=unknown 12029 else 12030 lt_cv_dlopen=no 12031 lt_cv_dlopen_libs= 12032 12033 case $host_os in 12034 beos*) 12035 lt_cv_dlopen=load_add_on 12036 lt_cv_dlopen_libs= 12037 lt_cv_dlopen_self=yes 12038 ;; 12039 12040 mingw* | pw32* | cegcc*) 12041 lt_cv_dlopen=LoadLibrary 12042 lt_cv_dlopen_libs= 12043 ;; 12044 12045 cygwin*) 12046 lt_cv_dlopen=dlopen 12047 lt_cv_dlopen_libs= 12048 ;; 12049 12050 darwin*) 12051 # if libdl is installed we need to link against it 12052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12053 printf %s "checking for dlopen in -ldl... " >&6; } 12054 if test ${ac_cv_lib_dl_dlopen+y} 12055 then : 12056 printf %s "(cached) " >&6 12057 else $as_nop 12058 ac_check_lib_save_LIBS=$LIBS 12059 LIBS="-ldl $LIBS" 12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12061 /* end confdefs.h. */ 12062 12063 /* Override any GCC internal prototype to avoid an error. 12064 Use char because int might match the return type of a GCC 12065 builtin and then its argument prototype would still apply. */ 12066 char dlopen (); 12067 int 12068 main (void) 12069 { 12070 return dlopen (); 12071 ; 12072 return 0; 12073 } 12074 _ACEOF 12075 if ac_fn_c_try_link "$LINENO" 12076 then : 12077 ac_cv_lib_dl_dlopen=yes 12078 else $as_nop 12079 ac_cv_lib_dl_dlopen=no 12080 fi 12081 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12082 conftest$ac_exeext conftest.$ac_ext 12083 LIBS=$ac_check_lib_save_LIBS 12084 fi 12085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12086 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12087 if test "x$ac_cv_lib_dl_dlopen" = xyes 12088 then : 12089 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12090 else $as_nop 12091 12092 lt_cv_dlopen=dyld 12093 lt_cv_dlopen_libs= 12094 lt_cv_dlopen_self=yes 12095 12096 fi 12097 12098 ;; 12099 12100 tpf*) 12101 # Don't try to run any link tests for TPF. We know it's impossible 12102 # because TPF is a cross-compiler, and we know how we open DSOs. 12103 lt_cv_dlopen=dlopen 12104 lt_cv_dlopen_libs= 12105 lt_cv_dlopen_self=no 12106 ;; 12107 12108 *) 12109 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12110 if test "x$ac_cv_func_shl_load" = xyes 12111 then : 12112 lt_cv_dlopen=shl_load 12113 else $as_nop 12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12115 printf %s "checking for shl_load in -ldld... " >&6; } 12116 if test ${ac_cv_lib_dld_shl_load+y} 12117 then : 12118 printf %s "(cached) " >&6 12119 else $as_nop 12120 ac_check_lib_save_LIBS=$LIBS 12121 LIBS="-ldld $LIBS" 12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12123 /* end confdefs.h. */ 12124 12125 /* Override any GCC internal prototype to avoid an error. 12126 Use char because int might match the return type of a GCC 12127 builtin and then its argument prototype would still apply. */ 12128 char shl_load (); 12129 int 12130 main (void) 12131 { 12132 return shl_load (); 12133 ; 12134 return 0; 12135 } 12136 _ACEOF 12137 if ac_fn_c_try_link "$LINENO" 12138 then : 12139 ac_cv_lib_dld_shl_load=yes 12140 else $as_nop 12141 ac_cv_lib_dld_shl_load=no 12142 fi 12143 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12144 conftest$ac_exeext conftest.$ac_ext 12145 LIBS=$ac_check_lib_save_LIBS 12146 fi 12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12148 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12149 if test "x$ac_cv_lib_dld_shl_load" = xyes 12150 then : 12151 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12152 else $as_nop 12153 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12154 if test "x$ac_cv_func_dlopen" = xyes 12155 then : 12156 lt_cv_dlopen=dlopen 12157 else $as_nop 12158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12159 printf %s "checking for dlopen in -ldl... " >&6; } 12160 if test ${ac_cv_lib_dl_dlopen+y} 12161 then : 12162 printf %s "(cached) " >&6 12163 else $as_nop 12164 ac_check_lib_save_LIBS=$LIBS 12165 LIBS="-ldl $LIBS" 12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12167 /* end confdefs.h. */ 12168 12169 /* Override any GCC internal prototype to avoid an error. 12170 Use char because int might match the return type of a GCC 12171 builtin and then its argument prototype would still apply. */ 12172 char dlopen (); 12173 int 12174 main (void) 12175 { 12176 return dlopen (); 12177 ; 12178 return 0; 12179 } 12180 _ACEOF 12181 if ac_fn_c_try_link "$LINENO" 12182 then : 12183 ac_cv_lib_dl_dlopen=yes 12184 else $as_nop 12185 ac_cv_lib_dl_dlopen=no 12186 fi 12187 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12188 conftest$ac_exeext conftest.$ac_ext 12189 LIBS=$ac_check_lib_save_LIBS 12190 fi 12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12192 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12193 if test "x$ac_cv_lib_dl_dlopen" = xyes 12194 then : 12195 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12196 else $as_nop 12197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12198 printf %s "checking for dlopen in -lsvld... " >&6; } 12199 if test ${ac_cv_lib_svld_dlopen+y} 12200 then : 12201 printf %s "(cached) " >&6 12202 else $as_nop 12203 ac_check_lib_save_LIBS=$LIBS 12204 LIBS="-lsvld $LIBS" 12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12206 /* end confdefs.h. */ 12207 12208 /* Override any GCC internal prototype to avoid an error. 12209 Use char because int might match the return type of a GCC 12210 builtin and then its argument prototype would still apply. */ 12211 char dlopen (); 12212 int 12213 main (void) 12214 { 12215 return dlopen (); 12216 ; 12217 return 0; 12218 } 12219 _ACEOF 12220 if ac_fn_c_try_link "$LINENO" 12221 then : 12222 ac_cv_lib_svld_dlopen=yes 12223 else $as_nop 12224 ac_cv_lib_svld_dlopen=no 12225 fi 12226 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12227 conftest$ac_exeext conftest.$ac_ext 12228 LIBS=$ac_check_lib_save_LIBS 12229 fi 12230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12231 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12232 if test "x$ac_cv_lib_svld_dlopen" = xyes 12233 then : 12234 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12235 else $as_nop 12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12237 printf %s "checking for dld_link in -ldld... " >&6; } 12238 if test ${ac_cv_lib_dld_dld_link+y} 12239 then : 12240 printf %s "(cached) " >&6 12241 else $as_nop 12242 ac_check_lib_save_LIBS=$LIBS 12243 LIBS="-ldld $LIBS" 12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245 /* end confdefs.h. */ 12246 12247 /* Override any GCC internal prototype to avoid an error. 12248 Use char because int might match the return type of a GCC 12249 builtin and then its argument prototype would still apply. */ 12250 char dld_link (); 12251 int 12252 main (void) 12253 { 12254 return dld_link (); 12255 ; 12256 return 0; 12257 } 12258 _ACEOF 12259 if ac_fn_c_try_link "$LINENO" 12260 then : 12261 ac_cv_lib_dld_dld_link=yes 12262 else $as_nop 12263 ac_cv_lib_dld_dld_link=no 12264 fi 12265 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12266 conftest$ac_exeext conftest.$ac_ext 12267 LIBS=$ac_check_lib_save_LIBS 12268 fi 12269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12270 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12271 if test "x$ac_cv_lib_dld_dld_link" = xyes 12272 then : 12273 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12274 fi 12275 12276 12277 fi 12278 12279 12280 fi 12281 12282 12283 fi 12284 12285 12286 fi 12287 12288 12289 fi 12290 12291 ;; 12292 esac 12293 12294 if test no = "$lt_cv_dlopen"; then 12295 enable_dlopen=no 12296 else 12297 enable_dlopen=yes 12298 fi 12299 12300 case $lt_cv_dlopen in 12301 dlopen) 12302 save_CPPFLAGS=$CPPFLAGS 12303 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12304 12305 save_LDFLAGS=$LDFLAGS 12306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12307 12308 save_LIBS=$LIBS 12309 LIBS="$lt_cv_dlopen_libs $LIBS" 12310 12311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12312 printf %s "checking whether a program can dlopen itself... " >&6; } 12313 if test ${lt_cv_dlopen_self+y} 12314 then : 12315 printf %s "(cached) " >&6 12316 else $as_nop 12317 if test yes = "$cross_compiling"; then : 12318 lt_cv_dlopen_self=cross 12319 else 12320 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12321 lt_status=$lt_dlunknown 12322 cat > conftest.$ac_ext <<_LT_EOF 12323 #line $LINENO "configure" 12324 #include "confdefs.h" 12325 12326 #if HAVE_DLFCN_H 12327 #include <dlfcn.h> 12328 #endif 12329 12330 #include <stdio.h> 12331 12332 #ifdef RTLD_GLOBAL 12333 # define LT_DLGLOBAL RTLD_GLOBAL 12334 #else 12335 # ifdef DL_GLOBAL 12336 # define LT_DLGLOBAL DL_GLOBAL 12337 # else 12338 # define LT_DLGLOBAL 0 12339 # endif 12340 #endif 12341 12342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12343 find out it does not work in some platform. */ 12344 #ifndef LT_DLLAZY_OR_NOW 12345 # ifdef RTLD_LAZY 12346 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12347 # else 12348 # ifdef DL_LAZY 12349 # define LT_DLLAZY_OR_NOW DL_LAZY 12350 # else 12351 # ifdef RTLD_NOW 12352 # define LT_DLLAZY_OR_NOW RTLD_NOW 12353 # else 12354 # ifdef DL_NOW 12355 # define LT_DLLAZY_OR_NOW DL_NOW 12356 # else 12357 # define LT_DLLAZY_OR_NOW 0 12358 # endif 12359 # endif 12360 # endif 12361 # endif 12362 #endif 12363 12364 /* When -fvisibility=hidden is used, assume the code has been annotated 12365 correspondingly for the symbols needed. */ 12366 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12367 int fnord () __attribute__((visibility("default"))); 12368 #endif 12369 12370 int fnord () { return 42; } 12371 int main () 12372 { 12373 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12374 int status = $lt_dlunknown; 12375 12376 if (self) 12377 { 12378 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12379 else 12380 { 12381 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12382 else puts (dlerror ()); 12383 } 12384 /* dlclose (self); */ 12385 } 12386 else 12387 puts (dlerror ()); 12388 12389 return status; 12390 } 12391 _LT_EOF 12392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12393 (eval $ac_link) 2>&5 12394 ac_status=$? 12395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12396 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12397 (./conftest; exit; ) >&5 2>/dev/null 12398 lt_status=$? 12399 case x$lt_status in 12400 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12401 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12402 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12403 esac 12404 else : 12405 # compilation failed 12406 lt_cv_dlopen_self=no 12407 fi 12408 fi 12409 rm -fr conftest* 12410 12411 12412 fi 12413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12414 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 12415 12416 if test yes = "$lt_cv_dlopen_self"; then 12417 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12419 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 12420 if test ${lt_cv_dlopen_self_static+y} 12421 then : 12422 printf %s "(cached) " >&6 12423 else $as_nop 12424 if test yes = "$cross_compiling"; then : 12425 lt_cv_dlopen_self_static=cross 12426 else 12427 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12428 lt_status=$lt_dlunknown 12429 cat > conftest.$ac_ext <<_LT_EOF 12430 #line $LINENO "configure" 12431 #include "confdefs.h" 12432 12433 #if HAVE_DLFCN_H 12434 #include <dlfcn.h> 12435 #endif 12436 12437 #include <stdio.h> 12438 12439 #ifdef RTLD_GLOBAL 12440 # define LT_DLGLOBAL RTLD_GLOBAL 12441 #else 12442 # ifdef DL_GLOBAL 12443 # define LT_DLGLOBAL DL_GLOBAL 12444 # else 12445 # define LT_DLGLOBAL 0 12446 # endif 12447 #endif 12448 12449 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12450 find out it does not work in some platform. */ 12451 #ifndef LT_DLLAZY_OR_NOW 12452 # ifdef RTLD_LAZY 12453 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12454 # else 12455 # ifdef DL_LAZY 12456 # define LT_DLLAZY_OR_NOW DL_LAZY 12457 # else 12458 # ifdef RTLD_NOW 12459 # define LT_DLLAZY_OR_NOW RTLD_NOW 12460 # else 12461 # ifdef DL_NOW 12462 # define LT_DLLAZY_OR_NOW DL_NOW 12463 # else 12464 # define LT_DLLAZY_OR_NOW 0 12465 # endif 12466 # endif 12467 # endif 12468 # endif 12469 #endif 12470 12471 /* When -fvisibility=hidden is used, assume the code has been annotated 12472 correspondingly for the symbols needed. */ 12473 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12474 int fnord () __attribute__((visibility("default"))); 12475 #endif 12476 12477 int fnord () { return 42; } 12478 int main () 12479 { 12480 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12481 int status = $lt_dlunknown; 12482 12483 if (self) 12484 { 12485 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12486 else 12487 { 12488 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12489 else puts (dlerror ()); 12490 } 12491 /* dlclose (self); */ 12492 } 12493 else 12494 puts (dlerror ()); 12495 12496 return status; 12497 } 12498 _LT_EOF 12499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12500 (eval $ac_link) 2>&5 12501 ac_status=$? 12502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12503 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12504 (./conftest; exit; ) >&5 2>/dev/null 12505 lt_status=$? 12506 case x$lt_status in 12507 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12508 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12509 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12510 esac 12511 else : 12512 # compilation failed 12513 lt_cv_dlopen_self_static=no 12514 fi 12515 fi 12516 rm -fr conftest* 12517 12518 12519 fi 12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12521 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 12522 fi 12523 12524 CPPFLAGS=$save_CPPFLAGS 12525 LDFLAGS=$save_LDFLAGS 12526 LIBS=$save_LIBS 12527 ;; 12528 esac 12529 12530 case $lt_cv_dlopen_self in 12531 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12532 *) enable_dlopen_self=unknown ;; 12533 esac 12534 12535 case $lt_cv_dlopen_self_static in 12536 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12537 *) enable_dlopen_self_static=unknown ;; 12538 esac 12539 fi 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 striplib= 12558 old_striplib= 12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12560 printf %s "checking whether stripping libraries is possible... " >&6; } 12561 if test -z "$STRIP"; then 12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12563 printf "%s\n" "no" >&6; } 12564 else 12565 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12566 old_striplib="$STRIP --strip-debug" 12567 striplib="$STRIP --strip-unneeded" 12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12569 printf "%s\n" "yes" >&6; } 12570 else 12571 case $host_os in 12572 darwin*) 12573 # FIXME - insert some real tests, host_os isn't really good enough 12574 striplib="$STRIP -x" 12575 old_striplib="$STRIP -S" 12576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12577 printf "%s\n" "yes" >&6; } 12578 ;; 12579 freebsd*) 12580 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 12581 old_striplib="$STRIP --strip-debug" 12582 striplib="$STRIP --strip-unneeded" 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12584 printf "%s\n" "yes" >&6; } 12585 else 12586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12587 printf "%s\n" "no" >&6; } 12588 fi 12589 ;; 12590 *) 12591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12592 printf "%s\n" "no" >&6; } 12593 ;; 12594 esac 12595 fi 12596 fi 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 # Report what library types will actually be built 12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12611 printf %s "checking if libtool supports shared libraries... " >&6; } 12612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12613 printf "%s\n" "$can_build_shared" >&6; } 12614 12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12616 printf %s "checking whether to build shared libraries... " >&6; } 12617 test no = "$can_build_shared" && enable_shared=no 12618 12619 # On AIX, shared libraries and static libraries use the same namespace, and 12620 # are all built from PIC. 12621 case $host_os in 12622 aix3*) 12623 test yes = "$enable_shared" && enable_static=no 12624 if test -n "$RANLIB"; then 12625 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12626 postinstall_cmds='$RANLIB $lib' 12627 fi 12628 ;; 12629 12630 aix[4-9]*) 12631 if test ia64 != "$host_cpu"; then 12632 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12633 yes,aix,yes) ;; # shared object as lib.so file only 12634 yes,svr4,*) ;; # shared object as lib.so archive member only 12635 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12636 esac 12637 fi 12638 ;; 12639 esac 12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12641 printf "%s\n" "$enable_shared" >&6; } 12642 12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12644 printf %s "checking whether to build static libraries... " >&6; } 12645 # Make sure either enable_shared or enable_static is yes. 12646 test yes = "$enable_shared" || enable_static=yes 12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12648 printf "%s\n" "$enable_static" >&6; } 12649 12650 12651 12652 12653 fi 12654 ac_ext=c 12655 ac_cpp='$CPP $CPPFLAGS' 12656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12658 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12659 12660 CC=$lt_save_CC 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 ac_config_commands="$ac_config_commands libtool" 12677 12678 12679 12680 12681 # Only expand once: 12682 12683 12684 12685 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 12699 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 12700 if test ${ac_cv_c_undeclared_builtin_options+y} 12701 then : 12702 printf %s "(cached) " >&6 12703 else $as_nop 12704 ac_save_CFLAGS=$CFLAGS 12705 ac_cv_c_undeclared_builtin_options='cannot detect' 12706 for ac_arg in '' -fno-builtin; do 12707 CFLAGS="$ac_save_CFLAGS $ac_arg" 12708 # This test program should *not* compile successfully. 12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12710 /* end confdefs.h. */ 12711 12712 int 12713 main (void) 12714 { 12715 (void) strchr; 12716 ; 12717 return 0; 12718 } 12719 _ACEOF 12720 if ac_fn_c_try_compile "$LINENO" 12721 then : 12722 12723 else $as_nop 12724 # This test program should compile successfully. 12725 # No library function is consistently available on 12726 # freestanding implementations, so test against a dummy 12727 # declaration. Include always-available headers on the 12728 # off chance that they somehow elicit warnings. 12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12730 /* end confdefs.h. */ 12731 #include <float.h> 12732 #include <limits.h> 12733 #include <stdarg.h> 12734 #include <stddef.h> 12735 extern void ac_decl (int, char *); 12736 12737 int 12738 main (void) 12739 { 12740 (void) ac_decl (0, (char *) 0); 12741 (void) ac_decl; 12742 12743 ; 12744 return 0; 12745 } 12746 _ACEOF 12747 if ac_fn_c_try_compile "$LINENO" 12748 then : 12749 if test x"$ac_arg" = x 12750 then : 12751 ac_cv_c_undeclared_builtin_options='none needed' 12752 else $as_nop 12753 ac_cv_c_undeclared_builtin_options=$ac_arg 12754 fi 12755 break 12756 fi 12757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12758 fi 12759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12760 done 12761 CFLAGS=$ac_save_CFLAGS 12762 12763 fi 12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 12765 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 12766 case $ac_cv_c_undeclared_builtin_options in #( 12767 'cannot detect') : 12768 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12769 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12770 as_fn_error $? "cannot make $CC report undeclared builtins 12771 See \`config.log' for more details" "$LINENO" 5; } ;; #( 12772 'none needed') : 12773 ac_c_undeclared_builtin_options='' ;; #( 12774 *) : 12775 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 12776 esac 12777 12778 12779 12780 12781 12782 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12783 if test "x$ac_cv_have_decl___clang__" = xyes 12784 then : 12785 CLANGCC="yes" 12786 else $as_nop 12787 CLANGCC="no" 12788 fi 12789 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12790 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 12791 then : 12792 INTELCC="yes" 12793 else $as_nop 12794 INTELCC="no" 12795 fi 12796 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 12797 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 12798 then : 12799 SUNCC="yes" 12800 else $as_nop 12801 SUNCC="no" 12802 fi 12803 12804 12805 12806 12807 12808 12809 12810 12811 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12812 if test -n "$ac_tool_prefix"; then 12813 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12814 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12816 printf %s "checking for $ac_word... " >&6; } 12817 if test ${ac_cv_path_PKG_CONFIG+y} 12818 then : 12819 printf %s "(cached) " >&6 12820 else $as_nop 12821 case $PKG_CONFIG in 12822 [\\/]* | ?:[\\/]*) 12823 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12824 ;; 12825 *) 12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12827 for as_dir in $PATH 12828 do 12829 IFS=$as_save_IFS 12830 case $as_dir in #((( 12831 '') as_dir=./ ;; 12832 */) ;; 12833 *) as_dir=$as_dir/ ;; 12834 esac 12835 for ac_exec_ext in '' $ac_executable_extensions; do 12836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12837 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12839 break 2 12840 fi 12841 done 12842 done 12843 IFS=$as_save_IFS 12844 12845 ;; 12846 esac 12847 fi 12848 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12849 if test -n "$PKG_CONFIG"; then 12850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12851 printf "%s\n" "$PKG_CONFIG" >&6; } 12852 else 12853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12854 printf "%s\n" "no" >&6; } 12855 fi 12856 12857 12858 fi 12859 if test -z "$ac_cv_path_PKG_CONFIG"; then 12860 ac_pt_PKG_CONFIG=$PKG_CONFIG 12861 # Extract the first word of "pkg-config", so it can be a program name with args. 12862 set dummy pkg-config; ac_word=$2 12863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12864 printf %s "checking for $ac_word... " >&6; } 12865 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 12866 then : 12867 printf %s "(cached) " >&6 12868 else $as_nop 12869 case $ac_pt_PKG_CONFIG in 12870 [\\/]* | ?:[\\/]*) 12871 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12872 ;; 12873 *) 12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12875 for as_dir in $PATH 12876 do 12877 IFS=$as_save_IFS 12878 case $as_dir in #((( 12879 '') as_dir=./ ;; 12880 */) ;; 12881 *) as_dir=$as_dir/ ;; 12882 esac 12883 for ac_exec_ext in '' $ac_executable_extensions; do 12884 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12885 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 12886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12887 break 2 12888 fi 12889 done 12890 done 12891 IFS=$as_save_IFS 12892 12893 ;; 12894 esac 12895 fi 12896 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12897 if test -n "$ac_pt_PKG_CONFIG"; then 12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12899 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 12900 else 12901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12902 printf "%s\n" "no" >&6; } 12903 fi 12904 12905 if test "x$ac_pt_PKG_CONFIG" = x; then 12906 PKG_CONFIG="" 12907 else 12908 case $cross_compiling:$ac_tool_warned in 12909 yes:) 12910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12911 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12912 ac_tool_warned=yes ;; 12913 esac 12914 PKG_CONFIG=$ac_pt_PKG_CONFIG 12915 fi 12916 else 12917 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12918 fi 12919 12920 fi 12921 if test -n "$PKG_CONFIG"; then 12922 _pkg_min_version=0.9.0 12923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12924 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12925 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12927 printf "%s\n" "yes" >&6; } 12928 else 12929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12930 printf "%s\n" "no" >&6; } 12931 PKG_CONFIG="" 12932 fi 12933 fi 12934 12935 12936 12937 12938 12939 # Check whether --enable-selective-werror was given. 12940 if test ${enable_selective_werror+y} 12941 then : 12942 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12943 else $as_nop 12944 SELECTIVE_WERROR=yes 12945 fi 12946 12947 12948 12949 12950 12951 # -v is too short to test reliably with XORG_TESTSET_CFLAG 12952 if test "x$SUNCC" = "xyes"; then 12953 BASE_CFLAGS="-v" 12954 else 12955 BASE_CFLAGS="" 12956 fi 12957 12958 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 xorg_testset_save_CFLAGS="$CFLAGS" 12973 12974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12978 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 12979 then : 12980 printf %s "(cached) " >&6 12981 else $as_nop 12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12983 /* end confdefs.h. */ 12984 int i; 12985 _ACEOF 12986 if ac_fn_c_try_compile "$LINENO" 12987 then : 12988 xorg_cv_cc_flag_unknown_warning_option=yes 12989 else $as_nop 12990 xorg_cv_cc_flag_unknown_warning_option=no 12991 fi 12992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12993 fi 12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12995 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12997 CFLAGS="$xorg_testset_save_CFLAGS" 12998 fi 12999 13000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13003 fi 13004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13006 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13007 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13008 then : 13009 printf %s "(cached) " >&6 13010 else $as_nop 13011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13012 /* end confdefs.h. */ 13013 int i; 13014 _ACEOF 13015 if ac_fn_c_try_compile "$LINENO" 13016 then : 13017 xorg_cv_cc_flag_unused_command_line_argument=yes 13018 else $as_nop 13019 xorg_cv_cc_flag_unused_command_line_argument=no 13020 fi 13021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13022 fi 13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13024 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13026 CFLAGS="$xorg_testset_save_CFLAGS" 13027 fi 13028 13029 found="no" 13030 13031 if test $found = "no" ; then 13032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13034 fi 13035 13036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13038 fi 13039 13040 CFLAGS="$CFLAGS -Wall" 13041 13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13043 printf %s "checking if $CC supports -Wall... " >&6; } 13044 cacheid=xorg_cv_cc_flag__Wall 13045 if eval test \${$cacheid+y} 13046 then : 13047 printf %s "(cached) " >&6 13048 else $as_nop 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13050 /* end confdefs.h. */ 13051 int i; 13052 int 13053 main (void) 13054 { 13055 13056 ; 13057 return 0; 13058 } 13059 _ACEOF 13060 if ac_fn_c_try_link "$LINENO" 13061 then : 13062 eval $cacheid=yes 13063 else $as_nop 13064 eval $cacheid=no 13065 fi 13066 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13067 conftest$ac_exeext conftest.$ac_ext 13068 fi 13069 13070 13071 CFLAGS="$xorg_testset_save_CFLAGS" 13072 13073 eval supported=\$$cacheid 13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13075 printf "%s\n" "$supported" >&6; } 13076 if test "$supported" = "yes" ; then 13077 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13078 found="yes" 13079 fi 13080 fi 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 xorg_testset_save_CFLAGS="$CFLAGS" 13097 13098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13102 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13103 then : 13104 printf %s "(cached) " >&6 13105 else $as_nop 13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13107 /* end confdefs.h. */ 13108 int i; 13109 _ACEOF 13110 if ac_fn_c_try_compile "$LINENO" 13111 then : 13112 xorg_cv_cc_flag_unknown_warning_option=yes 13113 else $as_nop 13114 xorg_cv_cc_flag_unknown_warning_option=no 13115 fi 13116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13117 fi 13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13119 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13121 CFLAGS="$xorg_testset_save_CFLAGS" 13122 fi 13123 13124 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13127 fi 13128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13130 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13131 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13132 then : 13133 printf %s "(cached) " >&6 13134 else $as_nop 13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13136 /* end confdefs.h. */ 13137 int i; 13138 _ACEOF 13139 if ac_fn_c_try_compile "$LINENO" 13140 then : 13141 xorg_cv_cc_flag_unused_command_line_argument=yes 13142 else $as_nop 13143 xorg_cv_cc_flag_unused_command_line_argument=no 13144 fi 13145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13146 fi 13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13148 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13150 CFLAGS="$xorg_testset_save_CFLAGS" 13151 fi 13152 13153 found="no" 13154 13155 if test $found = "no" ; then 13156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13158 fi 13159 13160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13162 fi 13163 13164 CFLAGS="$CFLAGS -Wpointer-arith" 13165 13166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13167 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13168 cacheid=xorg_cv_cc_flag__Wpointer_arith 13169 if eval test \${$cacheid+y} 13170 then : 13171 printf %s "(cached) " >&6 13172 else $as_nop 13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13174 /* end confdefs.h. */ 13175 int i; 13176 int 13177 main (void) 13178 { 13179 13180 ; 13181 return 0; 13182 } 13183 _ACEOF 13184 if ac_fn_c_try_link "$LINENO" 13185 then : 13186 eval $cacheid=yes 13187 else $as_nop 13188 eval $cacheid=no 13189 fi 13190 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13191 conftest$ac_exeext conftest.$ac_ext 13192 fi 13193 13194 13195 CFLAGS="$xorg_testset_save_CFLAGS" 13196 13197 eval supported=\$$cacheid 13198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13199 printf "%s\n" "$supported" >&6; } 13200 if test "$supported" = "yes" ; then 13201 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13202 found="yes" 13203 fi 13204 fi 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 xorg_testset_save_CFLAGS="$CFLAGS" 13221 13222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13225 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13226 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13227 then : 13228 printf %s "(cached) " >&6 13229 else $as_nop 13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13231 /* end confdefs.h. */ 13232 int i; 13233 _ACEOF 13234 if ac_fn_c_try_compile "$LINENO" 13235 then : 13236 xorg_cv_cc_flag_unknown_warning_option=yes 13237 else $as_nop 13238 xorg_cv_cc_flag_unknown_warning_option=no 13239 fi 13240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13241 fi 13242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13243 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13245 CFLAGS="$xorg_testset_save_CFLAGS" 13246 fi 13247 13248 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13251 fi 13252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13254 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13255 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13256 then : 13257 printf %s "(cached) " >&6 13258 else $as_nop 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260 /* end confdefs.h. */ 13261 int i; 13262 _ACEOF 13263 if ac_fn_c_try_compile "$LINENO" 13264 then : 13265 xorg_cv_cc_flag_unused_command_line_argument=yes 13266 else $as_nop 13267 xorg_cv_cc_flag_unused_command_line_argument=no 13268 fi 13269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13270 fi 13271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13274 CFLAGS="$xorg_testset_save_CFLAGS" 13275 fi 13276 13277 found="no" 13278 13279 if test $found = "no" ; then 13280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13282 fi 13283 13284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13286 fi 13287 13288 CFLAGS="$CFLAGS -Wmissing-declarations" 13289 13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13291 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13292 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13293 if eval test \${$cacheid+y} 13294 then : 13295 printf %s "(cached) " >&6 13296 else $as_nop 13297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13298 /* end confdefs.h. */ 13299 int i; 13300 int 13301 main (void) 13302 { 13303 13304 ; 13305 return 0; 13306 } 13307 _ACEOF 13308 if ac_fn_c_try_link "$LINENO" 13309 then : 13310 eval $cacheid=yes 13311 else $as_nop 13312 eval $cacheid=no 13313 fi 13314 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13315 conftest$ac_exeext conftest.$ac_ext 13316 fi 13317 13318 13319 CFLAGS="$xorg_testset_save_CFLAGS" 13320 13321 eval supported=\$$cacheid 13322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13323 printf "%s\n" "$supported" >&6; } 13324 if test "$supported" = "yes" ; then 13325 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13326 found="yes" 13327 fi 13328 fi 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 xorg_testset_save_CFLAGS="$CFLAGS" 13345 13346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13350 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13351 then : 13352 printf %s "(cached) " >&6 13353 else $as_nop 13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13355 /* end confdefs.h. */ 13356 int i; 13357 _ACEOF 13358 if ac_fn_c_try_compile "$LINENO" 13359 then : 13360 xorg_cv_cc_flag_unknown_warning_option=yes 13361 else $as_nop 13362 xorg_cv_cc_flag_unknown_warning_option=no 13363 fi 13364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13365 fi 13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13367 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13368 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13369 CFLAGS="$xorg_testset_save_CFLAGS" 13370 fi 13371 13372 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13375 fi 13376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13378 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13379 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13380 then : 13381 printf %s "(cached) " >&6 13382 else $as_nop 13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13384 /* end confdefs.h. */ 13385 int i; 13386 _ACEOF 13387 if ac_fn_c_try_compile "$LINENO" 13388 then : 13389 xorg_cv_cc_flag_unused_command_line_argument=yes 13390 else $as_nop 13391 xorg_cv_cc_flag_unused_command_line_argument=no 13392 fi 13393 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13394 fi 13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13396 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13398 CFLAGS="$xorg_testset_save_CFLAGS" 13399 fi 13400 13401 found="no" 13402 13403 if test $found = "no" ; then 13404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13406 fi 13407 13408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13410 fi 13411 13412 CFLAGS="$CFLAGS -Wformat=2" 13413 13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13415 printf %s "checking if $CC supports -Wformat=2... " >&6; } 13416 cacheid=xorg_cv_cc_flag__Wformat_2 13417 if eval test \${$cacheid+y} 13418 then : 13419 printf %s "(cached) " >&6 13420 else $as_nop 13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13422 /* end confdefs.h. */ 13423 int i; 13424 int 13425 main (void) 13426 { 13427 13428 ; 13429 return 0; 13430 } 13431 _ACEOF 13432 if ac_fn_c_try_link "$LINENO" 13433 then : 13434 eval $cacheid=yes 13435 else $as_nop 13436 eval $cacheid=no 13437 fi 13438 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13439 conftest$ac_exeext conftest.$ac_ext 13440 fi 13441 13442 13443 CFLAGS="$xorg_testset_save_CFLAGS" 13444 13445 eval supported=\$$cacheid 13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13447 printf "%s\n" "$supported" >&6; } 13448 if test "$supported" = "yes" ; then 13449 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13450 found="yes" 13451 fi 13452 fi 13453 13454 if test $found = "no" ; then 13455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13457 fi 13458 13459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13461 fi 13462 13463 CFLAGS="$CFLAGS -Wformat" 13464 13465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13466 printf %s "checking if $CC supports -Wformat... " >&6; } 13467 cacheid=xorg_cv_cc_flag__Wformat 13468 if eval test \${$cacheid+y} 13469 then : 13470 printf %s "(cached) " >&6 13471 else $as_nop 13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13473 /* end confdefs.h. */ 13474 int i; 13475 int 13476 main (void) 13477 { 13478 13479 ; 13480 return 0; 13481 } 13482 _ACEOF 13483 if ac_fn_c_try_link "$LINENO" 13484 then : 13485 eval $cacheid=yes 13486 else $as_nop 13487 eval $cacheid=no 13488 fi 13489 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13490 conftest$ac_exeext conftest.$ac_ext 13491 fi 13492 13493 13494 CFLAGS="$xorg_testset_save_CFLAGS" 13495 13496 eval supported=\$$cacheid 13497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13498 printf "%s\n" "$supported" >&6; } 13499 if test "$supported" = "yes" ; then 13500 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13501 found="yes" 13502 fi 13503 fi 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 xorg_testset_save_CFLAGS="$CFLAGS" 13522 13523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13526 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13527 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13528 then : 13529 printf %s "(cached) " >&6 13530 else $as_nop 13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13532 /* end confdefs.h. */ 13533 int i; 13534 _ACEOF 13535 if ac_fn_c_try_compile "$LINENO" 13536 then : 13537 xorg_cv_cc_flag_unknown_warning_option=yes 13538 else $as_nop 13539 xorg_cv_cc_flag_unknown_warning_option=no 13540 fi 13541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13542 fi 13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13544 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13546 CFLAGS="$xorg_testset_save_CFLAGS" 13547 fi 13548 13549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13552 fi 13553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13555 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13556 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13557 then : 13558 printf %s "(cached) " >&6 13559 else $as_nop 13560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13561 /* end confdefs.h. */ 13562 int i; 13563 _ACEOF 13564 if ac_fn_c_try_compile "$LINENO" 13565 then : 13566 xorg_cv_cc_flag_unused_command_line_argument=yes 13567 else $as_nop 13568 xorg_cv_cc_flag_unused_command_line_argument=no 13569 fi 13570 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13571 fi 13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13573 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13575 CFLAGS="$xorg_testset_save_CFLAGS" 13576 fi 13577 13578 found="no" 13579 13580 if test $found = "no" ; then 13581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13583 fi 13584 13585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13587 fi 13588 13589 CFLAGS="$CFLAGS -Wstrict-prototypes" 13590 13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13592 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 13593 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13594 if eval test \${$cacheid+y} 13595 then : 13596 printf %s "(cached) " >&6 13597 else $as_nop 13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13599 /* end confdefs.h. */ 13600 int i; 13601 int 13602 main (void) 13603 { 13604 13605 ; 13606 return 0; 13607 } 13608 _ACEOF 13609 if ac_fn_c_try_link "$LINENO" 13610 then : 13611 eval $cacheid=yes 13612 else $as_nop 13613 eval $cacheid=no 13614 fi 13615 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13616 conftest$ac_exeext conftest.$ac_ext 13617 fi 13618 13619 13620 CFLAGS="$xorg_testset_save_CFLAGS" 13621 13622 eval supported=\$$cacheid 13623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13624 printf "%s\n" "$supported" >&6; } 13625 if test "$supported" = "yes" ; then 13626 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13627 found="yes" 13628 fi 13629 fi 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 xorg_testset_save_CFLAGS="$CFLAGS" 13646 13647 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13650 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13651 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13652 then : 13653 printf %s "(cached) " >&6 13654 else $as_nop 13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13656 /* end confdefs.h. */ 13657 int i; 13658 _ACEOF 13659 if ac_fn_c_try_compile "$LINENO" 13660 then : 13661 xorg_cv_cc_flag_unknown_warning_option=yes 13662 else $as_nop 13663 xorg_cv_cc_flag_unknown_warning_option=no 13664 fi 13665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13666 fi 13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13670 CFLAGS="$xorg_testset_save_CFLAGS" 13671 fi 13672 13673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13676 fi 13677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13681 then : 13682 printf %s "(cached) " >&6 13683 else $as_nop 13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13685 /* end confdefs.h. */ 13686 int i; 13687 _ACEOF 13688 if ac_fn_c_try_compile "$LINENO" 13689 then : 13690 xorg_cv_cc_flag_unused_command_line_argument=yes 13691 else $as_nop 13692 xorg_cv_cc_flag_unused_command_line_argument=no 13693 fi 13694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13695 fi 13696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13697 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13699 CFLAGS="$xorg_testset_save_CFLAGS" 13700 fi 13701 13702 found="no" 13703 13704 if test $found = "no" ; then 13705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13707 fi 13708 13709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13711 fi 13712 13713 CFLAGS="$CFLAGS -Wmissing-prototypes" 13714 13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13716 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 13717 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13718 if eval test \${$cacheid+y} 13719 then : 13720 printf %s "(cached) " >&6 13721 else $as_nop 13722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13723 /* end confdefs.h. */ 13724 int i; 13725 int 13726 main (void) 13727 { 13728 13729 ; 13730 return 0; 13731 } 13732 _ACEOF 13733 if ac_fn_c_try_link "$LINENO" 13734 then : 13735 eval $cacheid=yes 13736 else $as_nop 13737 eval $cacheid=no 13738 fi 13739 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13740 conftest$ac_exeext conftest.$ac_ext 13741 fi 13742 13743 13744 CFLAGS="$xorg_testset_save_CFLAGS" 13745 13746 eval supported=\$$cacheid 13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13748 printf "%s\n" "$supported" >&6; } 13749 if test "$supported" = "yes" ; then 13750 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13751 found="yes" 13752 fi 13753 fi 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 xorg_testset_save_CFLAGS="$CFLAGS" 13770 13771 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13774 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13775 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13776 then : 13777 printf %s "(cached) " >&6 13778 else $as_nop 13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13780 /* end confdefs.h. */ 13781 int i; 13782 _ACEOF 13783 if ac_fn_c_try_compile "$LINENO" 13784 then : 13785 xorg_cv_cc_flag_unknown_warning_option=yes 13786 else $as_nop 13787 xorg_cv_cc_flag_unknown_warning_option=no 13788 fi 13789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13790 fi 13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13792 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13794 CFLAGS="$xorg_testset_save_CFLAGS" 13795 fi 13796 13797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13800 fi 13801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13803 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13804 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13805 then : 13806 printf %s "(cached) " >&6 13807 else $as_nop 13808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13809 /* end confdefs.h. */ 13810 int i; 13811 _ACEOF 13812 if ac_fn_c_try_compile "$LINENO" 13813 then : 13814 xorg_cv_cc_flag_unused_command_line_argument=yes 13815 else $as_nop 13816 xorg_cv_cc_flag_unused_command_line_argument=no 13817 fi 13818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13819 fi 13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13821 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13823 CFLAGS="$xorg_testset_save_CFLAGS" 13824 fi 13825 13826 found="no" 13827 13828 if test $found = "no" ; then 13829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13831 fi 13832 13833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13835 fi 13836 13837 CFLAGS="$CFLAGS -Wnested-externs" 13838 13839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13840 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 13841 cacheid=xorg_cv_cc_flag__Wnested_externs 13842 if eval test \${$cacheid+y} 13843 then : 13844 printf %s "(cached) " >&6 13845 else $as_nop 13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13847 /* end confdefs.h. */ 13848 int i; 13849 int 13850 main (void) 13851 { 13852 13853 ; 13854 return 0; 13855 } 13856 _ACEOF 13857 if ac_fn_c_try_link "$LINENO" 13858 then : 13859 eval $cacheid=yes 13860 else $as_nop 13861 eval $cacheid=no 13862 fi 13863 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13864 conftest$ac_exeext conftest.$ac_ext 13865 fi 13866 13867 13868 CFLAGS="$xorg_testset_save_CFLAGS" 13869 13870 eval supported=\$$cacheid 13871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13872 printf "%s\n" "$supported" >&6; } 13873 if test "$supported" = "yes" ; then 13874 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13875 found="yes" 13876 fi 13877 fi 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 xorg_testset_save_CFLAGS="$CFLAGS" 13894 13895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13899 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13900 then : 13901 printf %s "(cached) " >&6 13902 else $as_nop 13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13904 /* end confdefs.h. */ 13905 int i; 13906 _ACEOF 13907 if ac_fn_c_try_compile "$LINENO" 13908 then : 13909 xorg_cv_cc_flag_unknown_warning_option=yes 13910 else $as_nop 13911 xorg_cv_cc_flag_unknown_warning_option=no 13912 fi 13913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13914 fi 13915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13918 CFLAGS="$xorg_testset_save_CFLAGS" 13919 fi 13920 13921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13924 fi 13925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13929 then : 13930 printf %s "(cached) " >&6 13931 else $as_nop 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933 /* end confdefs.h. */ 13934 int i; 13935 _ACEOF 13936 if ac_fn_c_try_compile "$LINENO" 13937 then : 13938 xorg_cv_cc_flag_unused_command_line_argument=yes 13939 else $as_nop 13940 xorg_cv_cc_flag_unused_command_line_argument=no 13941 fi 13942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13943 fi 13944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13947 CFLAGS="$xorg_testset_save_CFLAGS" 13948 fi 13949 13950 found="no" 13951 13952 if test $found = "no" ; then 13953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13955 fi 13956 13957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13959 fi 13960 13961 CFLAGS="$CFLAGS -Wbad-function-cast" 13962 13963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13964 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 13965 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13966 if eval test \${$cacheid+y} 13967 then : 13968 printf %s "(cached) " >&6 13969 else $as_nop 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13971 /* end confdefs.h. */ 13972 int i; 13973 int 13974 main (void) 13975 { 13976 13977 ; 13978 return 0; 13979 } 13980 _ACEOF 13981 if ac_fn_c_try_link "$LINENO" 13982 then : 13983 eval $cacheid=yes 13984 else $as_nop 13985 eval $cacheid=no 13986 fi 13987 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13988 conftest$ac_exeext conftest.$ac_ext 13989 fi 13990 13991 13992 CFLAGS="$xorg_testset_save_CFLAGS" 13993 13994 eval supported=\$$cacheid 13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13996 printf "%s\n" "$supported" >&6; } 13997 if test "$supported" = "yes" ; then 13998 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13999 found="yes" 14000 fi 14001 fi 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 xorg_testset_save_CFLAGS="$CFLAGS" 14018 14019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14022 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14023 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14024 then : 14025 printf %s "(cached) " >&6 14026 else $as_nop 14027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14028 /* end confdefs.h. */ 14029 int i; 14030 _ACEOF 14031 if ac_fn_c_try_compile "$LINENO" 14032 then : 14033 xorg_cv_cc_flag_unknown_warning_option=yes 14034 else $as_nop 14035 xorg_cv_cc_flag_unknown_warning_option=no 14036 fi 14037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14038 fi 14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14042 CFLAGS="$xorg_testset_save_CFLAGS" 14043 fi 14044 14045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14048 fi 14049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14053 then : 14054 printf %s "(cached) " >&6 14055 else $as_nop 14056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14057 /* end confdefs.h. */ 14058 int i; 14059 _ACEOF 14060 if ac_fn_c_try_compile "$LINENO" 14061 then : 14062 xorg_cv_cc_flag_unused_command_line_argument=yes 14063 else $as_nop 14064 xorg_cv_cc_flag_unused_command_line_argument=no 14065 fi 14066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14067 fi 14068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14071 CFLAGS="$xorg_testset_save_CFLAGS" 14072 fi 14073 14074 found="no" 14075 14076 if test $found = "no" ; then 14077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14079 fi 14080 14081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14083 fi 14084 14085 CFLAGS="$CFLAGS -Wold-style-definition" 14086 14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14088 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14089 cacheid=xorg_cv_cc_flag__Wold_style_definition 14090 if eval test \${$cacheid+y} 14091 then : 14092 printf %s "(cached) " >&6 14093 else $as_nop 14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14095 /* end confdefs.h. */ 14096 int i; 14097 int 14098 main (void) 14099 { 14100 14101 ; 14102 return 0; 14103 } 14104 _ACEOF 14105 if ac_fn_c_try_link "$LINENO" 14106 then : 14107 eval $cacheid=yes 14108 else $as_nop 14109 eval $cacheid=no 14110 fi 14111 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14112 conftest$ac_exeext conftest.$ac_ext 14113 fi 14114 14115 14116 CFLAGS="$xorg_testset_save_CFLAGS" 14117 14118 eval supported=\$$cacheid 14119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14120 printf "%s\n" "$supported" >&6; } 14121 if test "$supported" = "yes" ; then 14122 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14123 found="yes" 14124 fi 14125 fi 14126 14127 if test $found = "no" ; then 14128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14130 fi 14131 14132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14134 fi 14135 14136 CFLAGS="$CFLAGS -fd" 14137 14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14139 printf %s "checking if $CC supports -fd... " >&6; } 14140 cacheid=xorg_cv_cc_flag__fd 14141 if eval test \${$cacheid+y} 14142 then : 14143 printf %s "(cached) " >&6 14144 else $as_nop 14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14146 /* end confdefs.h. */ 14147 int i; 14148 int 14149 main (void) 14150 { 14151 14152 ; 14153 return 0; 14154 } 14155 _ACEOF 14156 if ac_fn_c_try_link "$LINENO" 14157 then : 14158 eval $cacheid=yes 14159 else $as_nop 14160 eval $cacheid=no 14161 fi 14162 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14163 conftest$ac_exeext conftest.$ac_ext 14164 fi 14165 14166 14167 CFLAGS="$xorg_testset_save_CFLAGS" 14168 14169 eval supported=\$$cacheid 14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14171 printf "%s\n" "$supported" >&6; } 14172 if test "$supported" = "yes" ; then 14173 BASE_CFLAGS="$BASE_CFLAGS -fd" 14174 found="yes" 14175 fi 14176 fi 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 xorg_testset_save_CFLAGS="$CFLAGS" 14193 14194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14198 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14199 then : 14200 printf %s "(cached) " >&6 14201 else $as_nop 14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203 /* end confdefs.h. */ 14204 int i; 14205 _ACEOF 14206 if ac_fn_c_try_compile "$LINENO" 14207 then : 14208 xorg_cv_cc_flag_unknown_warning_option=yes 14209 else $as_nop 14210 xorg_cv_cc_flag_unknown_warning_option=no 14211 fi 14212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14213 fi 14214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14215 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14217 CFLAGS="$xorg_testset_save_CFLAGS" 14218 fi 14219 14220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14223 fi 14224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14226 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14227 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14228 then : 14229 printf %s "(cached) " >&6 14230 else $as_nop 14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14232 /* end confdefs.h. */ 14233 int i; 14234 _ACEOF 14235 if ac_fn_c_try_compile "$LINENO" 14236 then : 14237 xorg_cv_cc_flag_unused_command_line_argument=yes 14238 else $as_nop 14239 xorg_cv_cc_flag_unused_command_line_argument=no 14240 fi 14241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14242 fi 14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14246 CFLAGS="$xorg_testset_save_CFLAGS" 14247 fi 14248 14249 found="no" 14250 14251 if test $found = "no" ; then 14252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14254 fi 14255 14256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14258 fi 14259 14260 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14261 14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14263 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14264 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14265 if eval test \${$cacheid+y} 14266 then : 14267 printf %s "(cached) " >&6 14268 else $as_nop 14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14270 /* end confdefs.h. */ 14271 int i; 14272 int 14273 main (void) 14274 { 14275 14276 ; 14277 return 0; 14278 } 14279 _ACEOF 14280 if ac_fn_c_try_link "$LINENO" 14281 then : 14282 eval $cacheid=yes 14283 else $as_nop 14284 eval $cacheid=no 14285 fi 14286 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14287 conftest$ac_exeext conftest.$ac_ext 14288 fi 14289 14290 14291 CFLAGS="$xorg_testset_save_CFLAGS" 14292 14293 eval supported=\$$cacheid 14294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14295 printf "%s\n" "$supported" >&6; } 14296 if test "$supported" = "yes" ; then 14297 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14298 found="yes" 14299 fi 14300 fi 14301 14302 14303 14304 14305 14306 # This chunk adds additional warnings that could catch undesired effects. 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 xorg_testset_save_CFLAGS="$CFLAGS" 14321 14322 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14325 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14326 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14327 then : 14328 printf %s "(cached) " >&6 14329 else $as_nop 14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14331 /* end confdefs.h. */ 14332 int i; 14333 _ACEOF 14334 if ac_fn_c_try_compile "$LINENO" 14335 then : 14336 xorg_cv_cc_flag_unknown_warning_option=yes 14337 else $as_nop 14338 xorg_cv_cc_flag_unknown_warning_option=no 14339 fi 14340 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14341 fi 14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14345 CFLAGS="$xorg_testset_save_CFLAGS" 14346 fi 14347 14348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14351 fi 14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14356 then : 14357 printf %s "(cached) " >&6 14358 else $as_nop 14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14360 /* end confdefs.h. */ 14361 int i; 14362 _ACEOF 14363 if ac_fn_c_try_compile "$LINENO" 14364 then : 14365 xorg_cv_cc_flag_unused_command_line_argument=yes 14366 else $as_nop 14367 xorg_cv_cc_flag_unused_command_line_argument=no 14368 fi 14369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14370 fi 14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14372 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14374 CFLAGS="$xorg_testset_save_CFLAGS" 14375 fi 14376 14377 found="no" 14378 14379 if test $found = "no" ; then 14380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14382 fi 14383 14384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14386 fi 14387 14388 CFLAGS="$CFLAGS -Wunused" 14389 14390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14391 printf %s "checking if $CC supports -Wunused... " >&6; } 14392 cacheid=xorg_cv_cc_flag__Wunused 14393 if eval test \${$cacheid+y} 14394 then : 14395 printf %s "(cached) " >&6 14396 else $as_nop 14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14398 /* end confdefs.h. */ 14399 int i; 14400 int 14401 main (void) 14402 { 14403 14404 ; 14405 return 0; 14406 } 14407 _ACEOF 14408 if ac_fn_c_try_link "$LINENO" 14409 then : 14410 eval $cacheid=yes 14411 else $as_nop 14412 eval $cacheid=no 14413 fi 14414 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14415 conftest$ac_exeext conftest.$ac_ext 14416 fi 14417 14418 14419 CFLAGS="$xorg_testset_save_CFLAGS" 14420 14421 eval supported=\$$cacheid 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14423 printf "%s\n" "$supported" >&6; } 14424 if test "$supported" = "yes" ; then 14425 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14426 found="yes" 14427 fi 14428 fi 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 xorg_testset_save_CFLAGS="$CFLAGS" 14445 14446 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14449 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14450 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14451 then : 14452 printf %s "(cached) " >&6 14453 else $as_nop 14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14455 /* end confdefs.h. */ 14456 int i; 14457 _ACEOF 14458 if ac_fn_c_try_compile "$LINENO" 14459 then : 14460 xorg_cv_cc_flag_unknown_warning_option=yes 14461 else $as_nop 14462 xorg_cv_cc_flag_unknown_warning_option=no 14463 fi 14464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14465 fi 14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14467 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14469 CFLAGS="$xorg_testset_save_CFLAGS" 14470 fi 14471 14472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14475 fi 14476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14478 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14479 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14480 then : 14481 printf %s "(cached) " >&6 14482 else $as_nop 14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14484 /* end confdefs.h. */ 14485 int i; 14486 _ACEOF 14487 if ac_fn_c_try_compile "$LINENO" 14488 then : 14489 xorg_cv_cc_flag_unused_command_line_argument=yes 14490 else $as_nop 14491 xorg_cv_cc_flag_unused_command_line_argument=no 14492 fi 14493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14494 fi 14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14496 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14498 CFLAGS="$xorg_testset_save_CFLAGS" 14499 fi 14500 14501 found="no" 14502 14503 if test $found = "no" ; then 14504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14506 fi 14507 14508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14510 fi 14511 14512 CFLAGS="$CFLAGS -Wuninitialized" 14513 14514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14515 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 14516 cacheid=xorg_cv_cc_flag__Wuninitialized 14517 if eval test \${$cacheid+y} 14518 then : 14519 printf %s "(cached) " >&6 14520 else $as_nop 14521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14522 /* end confdefs.h. */ 14523 int i; 14524 int 14525 main (void) 14526 { 14527 14528 ; 14529 return 0; 14530 } 14531 _ACEOF 14532 if ac_fn_c_try_link "$LINENO" 14533 then : 14534 eval $cacheid=yes 14535 else $as_nop 14536 eval $cacheid=no 14537 fi 14538 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14539 conftest$ac_exeext conftest.$ac_ext 14540 fi 14541 14542 14543 CFLAGS="$xorg_testset_save_CFLAGS" 14544 14545 eval supported=\$$cacheid 14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14547 printf "%s\n" "$supported" >&6; } 14548 if test "$supported" = "yes" ; then 14549 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14550 found="yes" 14551 fi 14552 fi 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 xorg_testset_save_CFLAGS="$CFLAGS" 14569 14570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14573 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14574 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14575 then : 14576 printf %s "(cached) " >&6 14577 else $as_nop 14578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14579 /* end confdefs.h. */ 14580 int i; 14581 _ACEOF 14582 if ac_fn_c_try_compile "$LINENO" 14583 then : 14584 xorg_cv_cc_flag_unknown_warning_option=yes 14585 else $as_nop 14586 xorg_cv_cc_flag_unknown_warning_option=no 14587 fi 14588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14589 fi 14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14591 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14593 CFLAGS="$xorg_testset_save_CFLAGS" 14594 fi 14595 14596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14599 fi 14600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14602 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14603 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14604 then : 14605 printf %s "(cached) " >&6 14606 else $as_nop 14607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14608 /* end confdefs.h. */ 14609 int i; 14610 _ACEOF 14611 if ac_fn_c_try_compile "$LINENO" 14612 then : 14613 xorg_cv_cc_flag_unused_command_line_argument=yes 14614 else $as_nop 14615 xorg_cv_cc_flag_unused_command_line_argument=no 14616 fi 14617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14618 fi 14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14620 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14622 CFLAGS="$xorg_testset_save_CFLAGS" 14623 fi 14624 14625 found="no" 14626 14627 if test $found = "no" ; then 14628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14630 fi 14631 14632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14634 fi 14635 14636 CFLAGS="$CFLAGS -Wshadow" 14637 14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14639 printf %s "checking if $CC supports -Wshadow... " >&6; } 14640 cacheid=xorg_cv_cc_flag__Wshadow 14641 if eval test \${$cacheid+y} 14642 then : 14643 printf %s "(cached) " >&6 14644 else $as_nop 14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14646 /* end confdefs.h. */ 14647 int i; 14648 int 14649 main (void) 14650 { 14651 14652 ; 14653 return 0; 14654 } 14655 _ACEOF 14656 if ac_fn_c_try_link "$LINENO" 14657 then : 14658 eval $cacheid=yes 14659 else $as_nop 14660 eval $cacheid=no 14661 fi 14662 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14663 conftest$ac_exeext conftest.$ac_ext 14664 fi 14665 14666 14667 CFLAGS="$xorg_testset_save_CFLAGS" 14668 14669 eval supported=\$$cacheid 14670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14671 printf "%s\n" "$supported" >&6; } 14672 if test "$supported" = "yes" ; then 14673 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14674 found="yes" 14675 fi 14676 fi 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 xorg_testset_save_CFLAGS="$CFLAGS" 14693 14694 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14697 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14698 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14699 then : 14700 printf %s "(cached) " >&6 14701 else $as_nop 14702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14703 /* end confdefs.h. */ 14704 int i; 14705 _ACEOF 14706 if ac_fn_c_try_compile "$LINENO" 14707 then : 14708 xorg_cv_cc_flag_unknown_warning_option=yes 14709 else $as_nop 14710 xorg_cv_cc_flag_unknown_warning_option=no 14711 fi 14712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14713 fi 14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14717 CFLAGS="$xorg_testset_save_CFLAGS" 14718 fi 14719 14720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14723 fi 14724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14728 then : 14729 printf %s "(cached) " >&6 14730 else $as_nop 14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14732 /* end confdefs.h. */ 14733 int i; 14734 _ACEOF 14735 if ac_fn_c_try_compile "$LINENO" 14736 then : 14737 xorg_cv_cc_flag_unused_command_line_argument=yes 14738 else $as_nop 14739 xorg_cv_cc_flag_unused_command_line_argument=no 14740 fi 14741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14742 fi 14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14744 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14746 CFLAGS="$xorg_testset_save_CFLAGS" 14747 fi 14748 14749 found="no" 14750 14751 if test $found = "no" ; then 14752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14754 fi 14755 14756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14758 fi 14759 14760 CFLAGS="$CFLAGS -Wmissing-noreturn" 14761 14762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14763 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 14764 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14765 if eval test \${$cacheid+y} 14766 then : 14767 printf %s "(cached) " >&6 14768 else $as_nop 14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14770 /* end confdefs.h. */ 14771 int i; 14772 int 14773 main (void) 14774 { 14775 14776 ; 14777 return 0; 14778 } 14779 _ACEOF 14780 if ac_fn_c_try_link "$LINENO" 14781 then : 14782 eval $cacheid=yes 14783 else $as_nop 14784 eval $cacheid=no 14785 fi 14786 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14787 conftest$ac_exeext conftest.$ac_ext 14788 fi 14789 14790 14791 CFLAGS="$xorg_testset_save_CFLAGS" 14792 14793 eval supported=\$$cacheid 14794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14795 printf "%s\n" "$supported" >&6; } 14796 if test "$supported" = "yes" ; then 14797 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14798 found="yes" 14799 fi 14800 fi 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 xorg_testset_save_CFLAGS="$CFLAGS" 14817 14818 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14821 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14822 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14823 then : 14824 printf %s "(cached) " >&6 14825 else $as_nop 14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14827 /* end confdefs.h. */ 14828 int i; 14829 _ACEOF 14830 if ac_fn_c_try_compile "$LINENO" 14831 then : 14832 xorg_cv_cc_flag_unknown_warning_option=yes 14833 else $as_nop 14834 xorg_cv_cc_flag_unknown_warning_option=no 14835 fi 14836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14837 fi 14838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14839 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14841 CFLAGS="$xorg_testset_save_CFLAGS" 14842 fi 14843 14844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14847 fi 14848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14850 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14851 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14852 then : 14853 printf %s "(cached) " >&6 14854 else $as_nop 14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14856 /* end confdefs.h. */ 14857 int i; 14858 _ACEOF 14859 if ac_fn_c_try_compile "$LINENO" 14860 then : 14861 xorg_cv_cc_flag_unused_command_line_argument=yes 14862 else $as_nop 14863 xorg_cv_cc_flag_unused_command_line_argument=no 14864 fi 14865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14866 fi 14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14868 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14870 CFLAGS="$xorg_testset_save_CFLAGS" 14871 fi 14872 14873 found="no" 14874 14875 if test $found = "no" ; then 14876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14878 fi 14879 14880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14882 fi 14883 14884 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14885 14886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14887 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14888 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14889 if eval test \${$cacheid+y} 14890 then : 14891 printf %s "(cached) " >&6 14892 else $as_nop 14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14894 /* end confdefs.h. */ 14895 int i; 14896 int 14897 main (void) 14898 { 14899 14900 ; 14901 return 0; 14902 } 14903 _ACEOF 14904 if ac_fn_c_try_link "$LINENO" 14905 then : 14906 eval $cacheid=yes 14907 else $as_nop 14908 eval $cacheid=no 14909 fi 14910 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14911 conftest$ac_exeext conftest.$ac_ext 14912 fi 14913 14914 14915 CFLAGS="$xorg_testset_save_CFLAGS" 14916 14917 eval supported=\$$cacheid 14918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14919 printf "%s\n" "$supported" >&6; } 14920 if test "$supported" = "yes" ; then 14921 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14922 found="yes" 14923 fi 14924 fi 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 xorg_testset_save_CFLAGS="$CFLAGS" 14941 14942 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14945 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14946 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14947 then : 14948 printf %s "(cached) " >&6 14949 else $as_nop 14950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14951 /* end confdefs.h. */ 14952 int i; 14953 _ACEOF 14954 if ac_fn_c_try_compile "$LINENO" 14955 then : 14956 xorg_cv_cc_flag_unknown_warning_option=yes 14957 else $as_nop 14958 xorg_cv_cc_flag_unknown_warning_option=no 14959 fi 14960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14961 fi 14962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14963 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14965 CFLAGS="$xorg_testset_save_CFLAGS" 14966 fi 14967 14968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14971 fi 14972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14974 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14975 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14976 then : 14977 printf %s "(cached) " >&6 14978 else $as_nop 14979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14980 /* end confdefs.h. */ 14981 int i; 14982 _ACEOF 14983 if ac_fn_c_try_compile "$LINENO" 14984 then : 14985 xorg_cv_cc_flag_unused_command_line_argument=yes 14986 else $as_nop 14987 xorg_cv_cc_flag_unused_command_line_argument=no 14988 fi 14989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14990 fi 14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14992 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14994 CFLAGS="$xorg_testset_save_CFLAGS" 14995 fi 14996 14997 found="no" 14998 14999 if test $found = "no" ; then 15000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15002 fi 15003 15004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15006 fi 15007 15008 CFLAGS="$CFLAGS -Wredundant-decls" 15009 15010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15011 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15012 cacheid=xorg_cv_cc_flag__Wredundant_decls 15013 if eval test \${$cacheid+y} 15014 then : 15015 printf %s "(cached) " >&6 15016 else $as_nop 15017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15018 /* end confdefs.h. */ 15019 int i; 15020 int 15021 main (void) 15022 { 15023 15024 ; 15025 return 0; 15026 } 15027 _ACEOF 15028 if ac_fn_c_try_link "$LINENO" 15029 then : 15030 eval $cacheid=yes 15031 else $as_nop 15032 eval $cacheid=no 15033 fi 15034 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15035 conftest$ac_exeext conftest.$ac_ext 15036 fi 15037 15038 15039 CFLAGS="$xorg_testset_save_CFLAGS" 15040 15041 eval supported=\$$cacheid 15042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15043 printf "%s\n" "$supported" >&6; } 15044 if test "$supported" = "yes" ; then 15045 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15046 found="yes" 15047 fi 15048 fi 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 xorg_testset_save_CFLAGS="$CFLAGS" 15065 15066 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15069 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15070 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15071 then : 15072 printf %s "(cached) " >&6 15073 else $as_nop 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075 /* end confdefs.h. */ 15076 int i; 15077 _ACEOF 15078 if ac_fn_c_try_compile "$LINENO" 15079 then : 15080 xorg_cv_cc_flag_unknown_warning_option=yes 15081 else $as_nop 15082 xorg_cv_cc_flag_unknown_warning_option=no 15083 fi 15084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15085 fi 15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15087 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15089 CFLAGS="$xorg_testset_save_CFLAGS" 15090 fi 15091 15092 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15095 fi 15096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15098 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15099 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15100 then : 15101 printf %s "(cached) " >&6 15102 else $as_nop 15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15104 /* end confdefs.h. */ 15105 int i; 15106 _ACEOF 15107 if ac_fn_c_try_compile "$LINENO" 15108 then : 15109 xorg_cv_cc_flag_unused_command_line_argument=yes 15110 else $as_nop 15111 xorg_cv_cc_flag_unused_command_line_argument=no 15112 fi 15113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15114 fi 15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15116 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15118 CFLAGS="$xorg_testset_save_CFLAGS" 15119 fi 15120 15121 found="no" 15122 15123 if test $found = "no" ; then 15124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15126 fi 15127 15128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15130 fi 15131 15132 CFLAGS="$CFLAGS -Wlogical-op" 15133 15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15135 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15136 cacheid=xorg_cv_cc_flag__Wlogical_op 15137 if eval test \${$cacheid+y} 15138 then : 15139 printf %s "(cached) " >&6 15140 else $as_nop 15141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15142 /* end confdefs.h. */ 15143 int i; 15144 int 15145 main (void) 15146 { 15147 15148 ; 15149 return 0; 15150 } 15151 _ACEOF 15152 if ac_fn_c_try_link "$LINENO" 15153 then : 15154 eval $cacheid=yes 15155 else $as_nop 15156 eval $cacheid=no 15157 fi 15158 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15159 conftest$ac_exeext conftest.$ac_ext 15160 fi 15161 15162 15163 CFLAGS="$xorg_testset_save_CFLAGS" 15164 15165 eval supported=\$$cacheid 15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15167 printf "%s\n" "$supported" >&6; } 15168 if test "$supported" = "yes" ; then 15169 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15170 found="yes" 15171 fi 15172 fi 15173 15174 15175 15176 # These are currently disabled because they are noisy. They will be enabled 15177 # in the future once the codebase is sufficiently modernized to silence 15178 # them. For now, I don't want them to drown out the other warnings. 15179 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15180 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15181 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15182 15183 # Turn some warnings into errors, so we don't accidently get successful builds 15184 # when there are problems that should be fixed. 15185 15186 if test "x$SELECTIVE_WERROR" = "xyes" ; then 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 xorg_testset_save_CFLAGS="$CFLAGS" 15201 15202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15205 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15206 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15207 then : 15208 printf %s "(cached) " >&6 15209 else $as_nop 15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15211 /* end confdefs.h. */ 15212 int i; 15213 _ACEOF 15214 if ac_fn_c_try_compile "$LINENO" 15215 then : 15216 xorg_cv_cc_flag_unknown_warning_option=yes 15217 else $as_nop 15218 xorg_cv_cc_flag_unknown_warning_option=no 15219 fi 15220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15221 fi 15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15225 CFLAGS="$xorg_testset_save_CFLAGS" 15226 fi 15227 15228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15231 fi 15232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15236 then : 15237 printf %s "(cached) " >&6 15238 else $as_nop 15239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15240 /* end confdefs.h. */ 15241 int i; 15242 _ACEOF 15243 if ac_fn_c_try_compile "$LINENO" 15244 then : 15245 xorg_cv_cc_flag_unused_command_line_argument=yes 15246 else $as_nop 15247 xorg_cv_cc_flag_unused_command_line_argument=no 15248 fi 15249 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15250 fi 15251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15252 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15254 CFLAGS="$xorg_testset_save_CFLAGS" 15255 fi 15256 15257 found="no" 15258 15259 if test $found = "no" ; then 15260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15262 fi 15263 15264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15266 fi 15267 15268 CFLAGS="$CFLAGS -Werror=implicit" 15269 15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15271 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 15272 cacheid=xorg_cv_cc_flag__Werror_implicit 15273 if eval test \${$cacheid+y} 15274 then : 15275 printf %s "(cached) " >&6 15276 else $as_nop 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278 /* end confdefs.h. */ 15279 int i; 15280 int 15281 main (void) 15282 { 15283 15284 ; 15285 return 0; 15286 } 15287 _ACEOF 15288 if ac_fn_c_try_link "$LINENO" 15289 then : 15290 eval $cacheid=yes 15291 else $as_nop 15292 eval $cacheid=no 15293 fi 15294 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15295 conftest$ac_exeext conftest.$ac_ext 15296 fi 15297 15298 15299 CFLAGS="$xorg_testset_save_CFLAGS" 15300 15301 eval supported=\$$cacheid 15302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15303 printf "%s\n" "$supported" >&6; } 15304 if test "$supported" = "yes" ; then 15305 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15306 found="yes" 15307 fi 15308 fi 15309 15310 if test $found = "no" ; then 15311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15313 fi 15314 15315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15317 fi 15318 15319 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15320 15321 { 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 15322 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15323 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15324 if eval test \${$cacheid+y} 15325 then : 15326 printf %s "(cached) " >&6 15327 else $as_nop 15328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15329 /* end confdefs.h. */ 15330 int i; 15331 int 15332 main (void) 15333 { 15334 15335 ; 15336 return 0; 15337 } 15338 _ACEOF 15339 if ac_fn_c_try_link "$LINENO" 15340 then : 15341 eval $cacheid=yes 15342 else $as_nop 15343 eval $cacheid=no 15344 fi 15345 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15346 conftest$ac_exeext conftest.$ac_ext 15347 fi 15348 15349 15350 CFLAGS="$xorg_testset_save_CFLAGS" 15351 15352 eval supported=\$$cacheid 15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15354 printf "%s\n" "$supported" >&6; } 15355 if test "$supported" = "yes" ; then 15356 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15357 found="yes" 15358 fi 15359 fi 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 xorg_testset_save_CFLAGS="$CFLAGS" 15376 15377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15380 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15381 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15382 then : 15383 printf %s "(cached) " >&6 15384 else $as_nop 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386 /* end confdefs.h. */ 15387 int i; 15388 _ACEOF 15389 if ac_fn_c_try_compile "$LINENO" 15390 then : 15391 xorg_cv_cc_flag_unknown_warning_option=yes 15392 else $as_nop 15393 xorg_cv_cc_flag_unknown_warning_option=no 15394 fi 15395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15396 fi 15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15398 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15400 CFLAGS="$xorg_testset_save_CFLAGS" 15401 fi 15402 15403 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15406 fi 15407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15409 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15410 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15411 then : 15412 printf %s "(cached) " >&6 15413 else $as_nop 15414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15415 /* end confdefs.h. */ 15416 int i; 15417 _ACEOF 15418 if ac_fn_c_try_compile "$LINENO" 15419 then : 15420 xorg_cv_cc_flag_unused_command_line_argument=yes 15421 else $as_nop 15422 xorg_cv_cc_flag_unused_command_line_argument=no 15423 fi 15424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15425 fi 15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15427 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15429 CFLAGS="$xorg_testset_save_CFLAGS" 15430 fi 15431 15432 found="no" 15433 15434 if test $found = "no" ; then 15435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15437 fi 15438 15439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15441 fi 15442 15443 CFLAGS="$CFLAGS -Werror=nonnull" 15444 15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15446 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 15447 cacheid=xorg_cv_cc_flag__Werror_nonnull 15448 if eval test \${$cacheid+y} 15449 then : 15450 printf %s "(cached) " >&6 15451 else $as_nop 15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15453 /* end confdefs.h. */ 15454 int i; 15455 int 15456 main (void) 15457 { 15458 15459 ; 15460 return 0; 15461 } 15462 _ACEOF 15463 if ac_fn_c_try_link "$LINENO" 15464 then : 15465 eval $cacheid=yes 15466 else $as_nop 15467 eval $cacheid=no 15468 fi 15469 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15470 conftest$ac_exeext conftest.$ac_ext 15471 fi 15472 15473 15474 CFLAGS="$xorg_testset_save_CFLAGS" 15475 15476 eval supported=\$$cacheid 15477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15478 printf "%s\n" "$supported" >&6; } 15479 if test "$supported" = "yes" ; then 15480 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15481 found="yes" 15482 fi 15483 fi 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 xorg_testset_save_CFLAGS="$CFLAGS" 15500 15501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15505 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15506 then : 15507 printf %s "(cached) " >&6 15508 else $as_nop 15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15510 /* end confdefs.h. */ 15511 int i; 15512 _ACEOF 15513 if ac_fn_c_try_compile "$LINENO" 15514 then : 15515 xorg_cv_cc_flag_unknown_warning_option=yes 15516 else $as_nop 15517 xorg_cv_cc_flag_unknown_warning_option=no 15518 fi 15519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15520 fi 15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15522 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15524 CFLAGS="$xorg_testset_save_CFLAGS" 15525 fi 15526 15527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15530 fi 15531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15533 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15534 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15535 then : 15536 printf %s "(cached) " >&6 15537 else $as_nop 15538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15539 /* end confdefs.h. */ 15540 int i; 15541 _ACEOF 15542 if ac_fn_c_try_compile "$LINENO" 15543 then : 15544 xorg_cv_cc_flag_unused_command_line_argument=yes 15545 else $as_nop 15546 xorg_cv_cc_flag_unused_command_line_argument=no 15547 fi 15548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15549 fi 15550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15553 CFLAGS="$xorg_testset_save_CFLAGS" 15554 fi 15555 15556 found="no" 15557 15558 if test $found = "no" ; then 15559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15561 fi 15562 15563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15565 fi 15566 15567 CFLAGS="$CFLAGS -Werror=init-self" 15568 15569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15570 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 15571 cacheid=xorg_cv_cc_flag__Werror_init_self 15572 if eval test \${$cacheid+y} 15573 then : 15574 printf %s "(cached) " >&6 15575 else $as_nop 15576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15577 /* end confdefs.h. */ 15578 int i; 15579 int 15580 main (void) 15581 { 15582 15583 ; 15584 return 0; 15585 } 15586 _ACEOF 15587 if ac_fn_c_try_link "$LINENO" 15588 then : 15589 eval $cacheid=yes 15590 else $as_nop 15591 eval $cacheid=no 15592 fi 15593 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15594 conftest$ac_exeext conftest.$ac_ext 15595 fi 15596 15597 15598 CFLAGS="$xorg_testset_save_CFLAGS" 15599 15600 eval supported=\$$cacheid 15601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15602 printf "%s\n" "$supported" >&6; } 15603 if test "$supported" = "yes" ; then 15604 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15605 found="yes" 15606 fi 15607 fi 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 xorg_testset_save_CFLAGS="$CFLAGS" 15624 15625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15629 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15630 then : 15631 printf %s "(cached) " >&6 15632 else $as_nop 15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15634 /* end confdefs.h. */ 15635 int i; 15636 _ACEOF 15637 if ac_fn_c_try_compile "$LINENO" 15638 then : 15639 xorg_cv_cc_flag_unknown_warning_option=yes 15640 else $as_nop 15641 xorg_cv_cc_flag_unknown_warning_option=no 15642 fi 15643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15644 fi 15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15648 CFLAGS="$xorg_testset_save_CFLAGS" 15649 fi 15650 15651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15654 fi 15655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15659 then : 15660 printf %s "(cached) " >&6 15661 else $as_nop 15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15663 /* end confdefs.h. */ 15664 int i; 15665 _ACEOF 15666 if ac_fn_c_try_compile "$LINENO" 15667 then : 15668 xorg_cv_cc_flag_unused_command_line_argument=yes 15669 else $as_nop 15670 xorg_cv_cc_flag_unused_command_line_argument=no 15671 fi 15672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15673 fi 15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15677 CFLAGS="$xorg_testset_save_CFLAGS" 15678 fi 15679 15680 found="no" 15681 15682 if test $found = "no" ; then 15683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15685 fi 15686 15687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15689 fi 15690 15691 CFLAGS="$CFLAGS -Werror=main" 15692 15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15694 printf %s "checking if $CC supports -Werror=main... " >&6; } 15695 cacheid=xorg_cv_cc_flag__Werror_main 15696 if eval test \${$cacheid+y} 15697 then : 15698 printf %s "(cached) " >&6 15699 else $as_nop 15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15701 /* end confdefs.h. */ 15702 int i; 15703 int 15704 main (void) 15705 { 15706 15707 ; 15708 return 0; 15709 } 15710 _ACEOF 15711 if ac_fn_c_try_link "$LINENO" 15712 then : 15713 eval $cacheid=yes 15714 else $as_nop 15715 eval $cacheid=no 15716 fi 15717 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15718 conftest$ac_exeext conftest.$ac_ext 15719 fi 15720 15721 15722 CFLAGS="$xorg_testset_save_CFLAGS" 15723 15724 eval supported=\$$cacheid 15725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15726 printf "%s\n" "$supported" >&6; } 15727 if test "$supported" = "yes" ; then 15728 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15729 found="yes" 15730 fi 15731 fi 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 xorg_testset_save_CFLAGS="$CFLAGS" 15748 15749 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15752 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15753 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15754 then : 15755 printf %s "(cached) " >&6 15756 else $as_nop 15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15758 /* end confdefs.h. */ 15759 int i; 15760 _ACEOF 15761 if ac_fn_c_try_compile "$LINENO" 15762 then : 15763 xorg_cv_cc_flag_unknown_warning_option=yes 15764 else $as_nop 15765 xorg_cv_cc_flag_unknown_warning_option=no 15766 fi 15767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15768 fi 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15770 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15772 CFLAGS="$xorg_testset_save_CFLAGS" 15773 fi 15774 15775 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15778 fi 15779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15781 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15782 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15783 then : 15784 printf %s "(cached) " >&6 15785 else $as_nop 15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15787 /* end confdefs.h. */ 15788 int i; 15789 _ACEOF 15790 if ac_fn_c_try_compile "$LINENO" 15791 then : 15792 xorg_cv_cc_flag_unused_command_line_argument=yes 15793 else $as_nop 15794 xorg_cv_cc_flag_unused_command_line_argument=no 15795 fi 15796 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15797 fi 15798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15799 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15801 CFLAGS="$xorg_testset_save_CFLAGS" 15802 fi 15803 15804 found="no" 15805 15806 if test $found = "no" ; then 15807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15809 fi 15810 15811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15813 fi 15814 15815 CFLAGS="$CFLAGS -Werror=missing-braces" 15816 15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15818 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 15819 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15820 if eval test \${$cacheid+y} 15821 then : 15822 printf %s "(cached) " >&6 15823 else $as_nop 15824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15825 /* end confdefs.h. */ 15826 int i; 15827 int 15828 main (void) 15829 { 15830 15831 ; 15832 return 0; 15833 } 15834 _ACEOF 15835 if ac_fn_c_try_link "$LINENO" 15836 then : 15837 eval $cacheid=yes 15838 else $as_nop 15839 eval $cacheid=no 15840 fi 15841 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15842 conftest$ac_exeext conftest.$ac_ext 15843 fi 15844 15845 15846 CFLAGS="$xorg_testset_save_CFLAGS" 15847 15848 eval supported=\$$cacheid 15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15850 printf "%s\n" "$supported" >&6; } 15851 if test "$supported" = "yes" ; then 15852 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15853 found="yes" 15854 fi 15855 fi 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 xorg_testset_save_CFLAGS="$CFLAGS" 15872 15873 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15876 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15877 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15878 then : 15879 printf %s "(cached) " >&6 15880 else $as_nop 15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15882 /* end confdefs.h. */ 15883 int i; 15884 _ACEOF 15885 if ac_fn_c_try_compile "$LINENO" 15886 then : 15887 xorg_cv_cc_flag_unknown_warning_option=yes 15888 else $as_nop 15889 xorg_cv_cc_flag_unknown_warning_option=no 15890 fi 15891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15892 fi 15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15894 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15896 CFLAGS="$xorg_testset_save_CFLAGS" 15897 fi 15898 15899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15902 fi 15903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15905 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15906 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15907 then : 15908 printf %s "(cached) " >&6 15909 else $as_nop 15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15911 /* end confdefs.h. */ 15912 int i; 15913 _ACEOF 15914 if ac_fn_c_try_compile "$LINENO" 15915 then : 15916 xorg_cv_cc_flag_unused_command_line_argument=yes 15917 else $as_nop 15918 xorg_cv_cc_flag_unused_command_line_argument=no 15919 fi 15920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15921 fi 15922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15923 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15925 CFLAGS="$xorg_testset_save_CFLAGS" 15926 fi 15927 15928 found="no" 15929 15930 if test $found = "no" ; then 15931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15933 fi 15934 15935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15937 fi 15938 15939 CFLAGS="$CFLAGS -Werror=sequence-point" 15940 15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15942 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 15943 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15944 if eval test \${$cacheid+y} 15945 then : 15946 printf %s "(cached) " >&6 15947 else $as_nop 15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15949 /* end confdefs.h. */ 15950 int i; 15951 int 15952 main (void) 15953 { 15954 15955 ; 15956 return 0; 15957 } 15958 _ACEOF 15959 if ac_fn_c_try_link "$LINENO" 15960 then : 15961 eval $cacheid=yes 15962 else $as_nop 15963 eval $cacheid=no 15964 fi 15965 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15966 conftest$ac_exeext conftest.$ac_ext 15967 fi 15968 15969 15970 CFLAGS="$xorg_testset_save_CFLAGS" 15971 15972 eval supported=\$$cacheid 15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15974 printf "%s\n" "$supported" >&6; } 15975 if test "$supported" = "yes" ; then 15976 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15977 found="yes" 15978 fi 15979 fi 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 xorg_testset_save_CFLAGS="$CFLAGS" 15996 15997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16000 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16001 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16002 then : 16003 printf %s "(cached) " >&6 16004 else $as_nop 16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16006 /* end confdefs.h. */ 16007 int i; 16008 _ACEOF 16009 if ac_fn_c_try_compile "$LINENO" 16010 then : 16011 xorg_cv_cc_flag_unknown_warning_option=yes 16012 else $as_nop 16013 xorg_cv_cc_flag_unknown_warning_option=no 16014 fi 16015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16016 fi 16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16018 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16019 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16020 CFLAGS="$xorg_testset_save_CFLAGS" 16021 fi 16022 16023 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16026 fi 16027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16029 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16030 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16031 then : 16032 printf %s "(cached) " >&6 16033 else $as_nop 16034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16035 /* end confdefs.h. */ 16036 int i; 16037 _ACEOF 16038 if ac_fn_c_try_compile "$LINENO" 16039 then : 16040 xorg_cv_cc_flag_unused_command_line_argument=yes 16041 else $as_nop 16042 xorg_cv_cc_flag_unused_command_line_argument=no 16043 fi 16044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16045 fi 16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16047 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16049 CFLAGS="$xorg_testset_save_CFLAGS" 16050 fi 16051 16052 found="no" 16053 16054 if test $found = "no" ; then 16055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16057 fi 16058 16059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16061 fi 16062 16063 CFLAGS="$CFLAGS -Werror=return-type" 16064 16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16066 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16067 cacheid=xorg_cv_cc_flag__Werror_return_type 16068 if eval test \${$cacheid+y} 16069 then : 16070 printf %s "(cached) " >&6 16071 else $as_nop 16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16073 /* end confdefs.h. */ 16074 int i; 16075 int 16076 main (void) 16077 { 16078 16079 ; 16080 return 0; 16081 } 16082 _ACEOF 16083 if ac_fn_c_try_link "$LINENO" 16084 then : 16085 eval $cacheid=yes 16086 else $as_nop 16087 eval $cacheid=no 16088 fi 16089 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16090 conftest$ac_exeext conftest.$ac_ext 16091 fi 16092 16093 16094 CFLAGS="$xorg_testset_save_CFLAGS" 16095 16096 eval supported=\$$cacheid 16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16098 printf "%s\n" "$supported" >&6; } 16099 if test "$supported" = "yes" ; then 16100 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16101 found="yes" 16102 fi 16103 fi 16104 16105 if test $found = "no" ; then 16106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16108 fi 16109 16110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16112 fi 16113 16114 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16115 16116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16117 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16118 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16119 if eval test \${$cacheid+y} 16120 then : 16121 printf %s "(cached) " >&6 16122 else $as_nop 16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16124 /* end confdefs.h. */ 16125 int i; 16126 int 16127 main (void) 16128 { 16129 16130 ; 16131 return 0; 16132 } 16133 _ACEOF 16134 if ac_fn_c_try_link "$LINENO" 16135 then : 16136 eval $cacheid=yes 16137 else $as_nop 16138 eval $cacheid=no 16139 fi 16140 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16141 conftest$ac_exeext conftest.$ac_ext 16142 fi 16143 16144 16145 CFLAGS="$xorg_testset_save_CFLAGS" 16146 16147 eval supported=\$$cacheid 16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16149 printf "%s\n" "$supported" >&6; } 16150 if test "$supported" = "yes" ; then 16151 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16152 found="yes" 16153 fi 16154 fi 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 xorg_testset_save_CFLAGS="$CFLAGS" 16171 16172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16176 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16177 then : 16178 printf %s "(cached) " >&6 16179 else $as_nop 16180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16181 /* end confdefs.h. */ 16182 int i; 16183 _ACEOF 16184 if ac_fn_c_try_compile "$LINENO" 16185 then : 16186 xorg_cv_cc_flag_unknown_warning_option=yes 16187 else $as_nop 16188 xorg_cv_cc_flag_unknown_warning_option=no 16189 fi 16190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16191 fi 16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16193 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16195 CFLAGS="$xorg_testset_save_CFLAGS" 16196 fi 16197 16198 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16201 fi 16202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16204 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16205 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16206 then : 16207 printf %s "(cached) " >&6 16208 else $as_nop 16209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16210 /* end confdefs.h. */ 16211 int i; 16212 _ACEOF 16213 if ac_fn_c_try_compile "$LINENO" 16214 then : 16215 xorg_cv_cc_flag_unused_command_line_argument=yes 16216 else $as_nop 16217 xorg_cv_cc_flag_unused_command_line_argument=no 16218 fi 16219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16220 fi 16221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16222 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16224 CFLAGS="$xorg_testset_save_CFLAGS" 16225 fi 16226 16227 found="no" 16228 16229 if test $found = "no" ; then 16230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16232 fi 16233 16234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16236 fi 16237 16238 CFLAGS="$CFLAGS -Werror=trigraphs" 16239 16240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16241 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 16242 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16243 if eval test \${$cacheid+y} 16244 then : 16245 printf %s "(cached) " >&6 16246 else $as_nop 16247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16248 /* end confdefs.h. */ 16249 int i; 16250 int 16251 main (void) 16252 { 16253 16254 ; 16255 return 0; 16256 } 16257 _ACEOF 16258 if ac_fn_c_try_link "$LINENO" 16259 then : 16260 eval $cacheid=yes 16261 else $as_nop 16262 eval $cacheid=no 16263 fi 16264 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16265 conftest$ac_exeext conftest.$ac_ext 16266 fi 16267 16268 16269 CFLAGS="$xorg_testset_save_CFLAGS" 16270 16271 eval supported=\$$cacheid 16272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16273 printf "%s\n" "$supported" >&6; } 16274 if test "$supported" = "yes" ; then 16275 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16276 found="yes" 16277 fi 16278 fi 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 xorg_testset_save_CFLAGS="$CFLAGS" 16295 16296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16299 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16300 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16301 then : 16302 printf %s "(cached) " >&6 16303 else $as_nop 16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16305 /* end confdefs.h. */ 16306 int i; 16307 _ACEOF 16308 if ac_fn_c_try_compile "$LINENO" 16309 then : 16310 xorg_cv_cc_flag_unknown_warning_option=yes 16311 else $as_nop 16312 xorg_cv_cc_flag_unknown_warning_option=no 16313 fi 16314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16315 fi 16316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16317 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16319 CFLAGS="$xorg_testset_save_CFLAGS" 16320 fi 16321 16322 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16325 fi 16326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16328 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16329 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16330 then : 16331 printf %s "(cached) " >&6 16332 else $as_nop 16333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16334 /* end confdefs.h. */ 16335 int i; 16336 _ACEOF 16337 if ac_fn_c_try_compile "$LINENO" 16338 then : 16339 xorg_cv_cc_flag_unused_command_line_argument=yes 16340 else $as_nop 16341 xorg_cv_cc_flag_unused_command_line_argument=no 16342 fi 16343 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16344 fi 16345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16346 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16348 CFLAGS="$xorg_testset_save_CFLAGS" 16349 fi 16350 16351 found="no" 16352 16353 if test $found = "no" ; then 16354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16356 fi 16357 16358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16360 fi 16361 16362 CFLAGS="$CFLAGS -Werror=array-bounds" 16363 16364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16365 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 16366 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16367 if eval test \${$cacheid+y} 16368 then : 16369 printf %s "(cached) " >&6 16370 else $as_nop 16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16372 /* end confdefs.h. */ 16373 int i; 16374 int 16375 main (void) 16376 { 16377 16378 ; 16379 return 0; 16380 } 16381 _ACEOF 16382 if ac_fn_c_try_link "$LINENO" 16383 then : 16384 eval $cacheid=yes 16385 else $as_nop 16386 eval $cacheid=no 16387 fi 16388 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16389 conftest$ac_exeext conftest.$ac_ext 16390 fi 16391 16392 16393 CFLAGS="$xorg_testset_save_CFLAGS" 16394 16395 eval supported=\$$cacheid 16396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16397 printf "%s\n" "$supported" >&6; } 16398 if test "$supported" = "yes" ; then 16399 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16400 found="yes" 16401 fi 16402 fi 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 xorg_testset_save_CFLAGS="$CFLAGS" 16419 16420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16423 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16424 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16425 then : 16426 printf %s "(cached) " >&6 16427 else $as_nop 16428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16429 /* end confdefs.h. */ 16430 int i; 16431 _ACEOF 16432 if ac_fn_c_try_compile "$LINENO" 16433 then : 16434 xorg_cv_cc_flag_unknown_warning_option=yes 16435 else $as_nop 16436 xorg_cv_cc_flag_unknown_warning_option=no 16437 fi 16438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16439 fi 16440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16441 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16443 CFLAGS="$xorg_testset_save_CFLAGS" 16444 fi 16445 16446 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16449 fi 16450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16452 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16453 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16454 then : 16455 printf %s "(cached) " >&6 16456 else $as_nop 16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16458 /* end confdefs.h. */ 16459 int i; 16460 _ACEOF 16461 if ac_fn_c_try_compile "$LINENO" 16462 then : 16463 xorg_cv_cc_flag_unused_command_line_argument=yes 16464 else $as_nop 16465 xorg_cv_cc_flag_unused_command_line_argument=no 16466 fi 16467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16468 fi 16469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16470 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16472 CFLAGS="$xorg_testset_save_CFLAGS" 16473 fi 16474 16475 found="no" 16476 16477 if test $found = "no" ; then 16478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16480 fi 16481 16482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16484 fi 16485 16486 CFLAGS="$CFLAGS -Werror=write-strings" 16487 16488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16489 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 16490 cacheid=xorg_cv_cc_flag__Werror_write_strings 16491 if eval test \${$cacheid+y} 16492 then : 16493 printf %s "(cached) " >&6 16494 else $as_nop 16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16496 /* end confdefs.h. */ 16497 int i; 16498 int 16499 main (void) 16500 { 16501 16502 ; 16503 return 0; 16504 } 16505 _ACEOF 16506 if ac_fn_c_try_link "$LINENO" 16507 then : 16508 eval $cacheid=yes 16509 else $as_nop 16510 eval $cacheid=no 16511 fi 16512 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16513 conftest$ac_exeext conftest.$ac_ext 16514 fi 16515 16516 16517 CFLAGS="$xorg_testset_save_CFLAGS" 16518 16519 eval supported=\$$cacheid 16520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16521 printf "%s\n" "$supported" >&6; } 16522 if test "$supported" = "yes" ; then 16523 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16524 found="yes" 16525 fi 16526 fi 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 xorg_testset_save_CFLAGS="$CFLAGS" 16543 16544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16547 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16548 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16549 then : 16550 printf %s "(cached) " >&6 16551 else $as_nop 16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16553 /* end confdefs.h. */ 16554 int i; 16555 _ACEOF 16556 if ac_fn_c_try_compile "$LINENO" 16557 then : 16558 xorg_cv_cc_flag_unknown_warning_option=yes 16559 else $as_nop 16560 xorg_cv_cc_flag_unknown_warning_option=no 16561 fi 16562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16563 fi 16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16565 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16567 CFLAGS="$xorg_testset_save_CFLAGS" 16568 fi 16569 16570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16573 fi 16574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16576 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16577 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16578 then : 16579 printf %s "(cached) " >&6 16580 else $as_nop 16581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16582 /* end confdefs.h. */ 16583 int i; 16584 _ACEOF 16585 if ac_fn_c_try_compile "$LINENO" 16586 then : 16587 xorg_cv_cc_flag_unused_command_line_argument=yes 16588 else $as_nop 16589 xorg_cv_cc_flag_unused_command_line_argument=no 16590 fi 16591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16592 fi 16593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16594 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16596 CFLAGS="$xorg_testset_save_CFLAGS" 16597 fi 16598 16599 found="no" 16600 16601 if test $found = "no" ; then 16602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16604 fi 16605 16606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16608 fi 16609 16610 CFLAGS="$CFLAGS -Werror=address" 16611 16612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16613 printf %s "checking if $CC supports -Werror=address... " >&6; } 16614 cacheid=xorg_cv_cc_flag__Werror_address 16615 if eval test \${$cacheid+y} 16616 then : 16617 printf %s "(cached) " >&6 16618 else $as_nop 16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620 /* end confdefs.h. */ 16621 int i; 16622 int 16623 main (void) 16624 { 16625 16626 ; 16627 return 0; 16628 } 16629 _ACEOF 16630 if ac_fn_c_try_link "$LINENO" 16631 then : 16632 eval $cacheid=yes 16633 else $as_nop 16634 eval $cacheid=no 16635 fi 16636 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16637 conftest$ac_exeext conftest.$ac_ext 16638 fi 16639 16640 16641 CFLAGS="$xorg_testset_save_CFLAGS" 16642 16643 eval supported=\$$cacheid 16644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16645 printf "%s\n" "$supported" >&6; } 16646 if test "$supported" = "yes" ; then 16647 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16648 found="yes" 16649 fi 16650 fi 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 xorg_testset_save_CFLAGS="$CFLAGS" 16667 16668 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16671 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16672 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16673 then : 16674 printf %s "(cached) " >&6 16675 else $as_nop 16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16677 /* end confdefs.h. */ 16678 int i; 16679 _ACEOF 16680 if ac_fn_c_try_compile "$LINENO" 16681 then : 16682 xorg_cv_cc_flag_unknown_warning_option=yes 16683 else $as_nop 16684 xorg_cv_cc_flag_unknown_warning_option=no 16685 fi 16686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16687 fi 16688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16689 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16691 CFLAGS="$xorg_testset_save_CFLAGS" 16692 fi 16693 16694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16697 fi 16698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16700 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16701 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16702 then : 16703 printf %s "(cached) " >&6 16704 else $as_nop 16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16706 /* end confdefs.h. */ 16707 int i; 16708 _ACEOF 16709 if ac_fn_c_try_compile "$LINENO" 16710 then : 16711 xorg_cv_cc_flag_unused_command_line_argument=yes 16712 else $as_nop 16713 xorg_cv_cc_flag_unused_command_line_argument=no 16714 fi 16715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16716 fi 16717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16718 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16720 CFLAGS="$xorg_testset_save_CFLAGS" 16721 fi 16722 16723 found="no" 16724 16725 if test $found = "no" ; then 16726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16728 fi 16729 16730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16732 fi 16733 16734 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16735 16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16737 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16738 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16739 if eval test \${$cacheid+y} 16740 then : 16741 printf %s "(cached) " >&6 16742 else $as_nop 16743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16744 /* end confdefs.h. */ 16745 int i; 16746 int 16747 main (void) 16748 { 16749 16750 ; 16751 return 0; 16752 } 16753 _ACEOF 16754 if ac_fn_c_try_link "$LINENO" 16755 then : 16756 eval $cacheid=yes 16757 else $as_nop 16758 eval $cacheid=no 16759 fi 16760 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16761 conftest$ac_exeext conftest.$ac_ext 16762 fi 16763 16764 16765 CFLAGS="$xorg_testset_save_CFLAGS" 16766 16767 eval supported=\$$cacheid 16768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16769 printf "%s\n" "$supported" >&6; } 16770 if test "$supported" = "yes" ; then 16771 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16772 found="yes" 16773 fi 16774 fi 16775 16776 if test $found = "no" ; then 16777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16779 fi 16780 16781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16783 fi 16784 16785 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16786 16787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16788 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16789 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16790 if eval test \${$cacheid+y} 16791 then : 16792 printf %s "(cached) " >&6 16793 else $as_nop 16794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16795 /* end confdefs.h. */ 16796 int i; 16797 int 16798 main (void) 16799 { 16800 16801 ; 16802 return 0; 16803 } 16804 _ACEOF 16805 if ac_fn_c_try_link "$LINENO" 16806 then : 16807 eval $cacheid=yes 16808 else $as_nop 16809 eval $cacheid=no 16810 fi 16811 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16812 conftest$ac_exeext conftest.$ac_ext 16813 fi 16814 16815 16816 CFLAGS="$xorg_testset_save_CFLAGS" 16817 16818 eval supported=\$$cacheid 16819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16820 printf "%s\n" "$supported" >&6; } 16821 if test "$supported" = "yes" ; then 16822 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16823 found="yes" 16824 fi 16825 fi 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 xorg_testset_save_CFLAGS="$CFLAGS" 16842 16843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16846 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16847 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16848 then : 16849 printf %s "(cached) " >&6 16850 else $as_nop 16851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16852 /* end confdefs.h. */ 16853 int i; 16854 _ACEOF 16855 if ac_fn_c_try_compile "$LINENO" 16856 then : 16857 xorg_cv_cc_flag_unknown_warning_option=yes 16858 else $as_nop 16859 xorg_cv_cc_flag_unknown_warning_option=no 16860 fi 16861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16862 fi 16863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16864 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16866 CFLAGS="$xorg_testset_save_CFLAGS" 16867 fi 16868 16869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16872 fi 16873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16875 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16876 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16877 then : 16878 printf %s "(cached) " >&6 16879 else $as_nop 16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16881 /* end confdefs.h. */ 16882 int i; 16883 _ACEOF 16884 if ac_fn_c_try_compile "$LINENO" 16885 then : 16886 xorg_cv_cc_flag_unused_command_line_argument=yes 16887 else $as_nop 16888 xorg_cv_cc_flag_unused_command_line_argument=no 16889 fi 16890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16891 fi 16892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16893 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16895 CFLAGS="$xorg_testset_save_CFLAGS" 16896 fi 16897 16898 found="no" 16899 16900 if test $found = "no" ; then 16901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16903 fi 16904 16905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16907 fi 16908 16909 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16910 16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16912 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16913 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16914 if eval test \${$cacheid+y} 16915 then : 16916 printf %s "(cached) " >&6 16917 else $as_nop 16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919 /* end confdefs.h. */ 16920 int i; 16921 int 16922 main (void) 16923 { 16924 16925 ; 16926 return 0; 16927 } 16928 _ACEOF 16929 if ac_fn_c_try_link "$LINENO" 16930 then : 16931 eval $cacheid=yes 16932 else $as_nop 16933 eval $cacheid=no 16934 fi 16935 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16936 conftest$ac_exeext conftest.$ac_ext 16937 fi 16938 16939 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941 16942 eval supported=\$$cacheid 16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16944 printf "%s\n" "$supported" >&6; } 16945 if test "$supported" = "yes" ; then 16946 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16947 found="yes" 16948 fi 16949 fi 16950 16951 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16952 else 16953 { 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 16954 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;} 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 xorg_testset_save_CFLAGS="$CFLAGS" 16969 16970 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16973 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16974 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16975 then : 16976 printf %s "(cached) " >&6 16977 else $as_nop 16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16979 /* end confdefs.h. */ 16980 int i; 16981 _ACEOF 16982 if ac_fn_c_try_compile "$LINENO" 16983 then : 16984 xorg_cv_cc_flag_unknown_warning_option=yes 16985 else $as_nop 16986 xorg_cv_cc_flag_unknown_warning_option=no 16987 fi 16988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16989 fi 16990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16991 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16993 CFLAGS="$xorg_testset_save_CFLAGS" 16994 fi 16995 16996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16999 fi 17000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17003 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17004 then : 17005 printf %s "(cached) " >&6 17006 else $as_nop 17007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17008 /* end confdefs.h. */ 17009 int i; 17010 _ACEOF 17011 if ac_fn_c_try_compile "$LINENO" 17012 then : 17013 xorg_cv_cc_flag_unused_command_line_argument=yes 17014 else $as_nop 17015 xorg_cv_cc_flag_unused_command_line_argument=no 17016 fi 17017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17018 fi 17019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17020 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17022 CFLAGS="$xorg_testset_save_CFLAGS" 17023 fi 17024 17025 found="no" 17026 17027 if test $found = "no" ; then 17028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17030 fi 17031 17032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17034 fi 17035 17036 CFLAGS="$CFLAGS -Wimplicit" 17037 17038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17039 printf %s "checking if $CC supports -Wimplicit... " >&6; } 17040 cacheid=xorg_cv_cc_flag__Wimplicit 17041 if eval test \${$cacheid+y} 17042 then : 17043 printf %s "(cached) " >&6 17044 else $as_nop 17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17046 /* end confdefs.h. */ 17047 int i; 17048 int 17049 main (void) 17050 { 17051 17052 ; 17053 return 0; 17054 } 17055 _ACEOF 17056 if ac_fn_c_try_link "$LINENO" 17057 then : 17058 eval $cacheid=yes 17059 else $as_nop 17060 eval $cacheid=no 17061 fi 17062 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17063 conftest$ac_exeext conftest.$ac_ext 17064 fi 17065 17066 17067 CFLAGS="$xorg_testset_save_CFLAGS" 17068 17069 eval supported=\$$cacheid 17070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17071 printf "%s\n" "$supported" >&6; } 17072 if test "$supported" = "yes" ; then 17073 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17074 found="yes" 17075 fi 17076 fi 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 xorg_testset_save_CFLAGS="$CFLAGS" 17093 17094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17097 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17098 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17099 then : 17100 printf %s "(cached) " >&6 17101 else $as_nop 17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17103 /* end confdefs.h. */ 17104 int i; 17105 _ACEOF 17106 if ac_fn_c_try_compile "$LINENO" 17107 then : 17108 xorg_cv_cc_flag_unknown_warning_option=yes 17109 else $as_nop 17110 xorg_cv_cc_flag_unknown_warning_option=no 17111 fi 17112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17113 fi 17114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17115 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17117 CFLAGS="$xorg_testset_save_CFLAGS" 17118 fi 17119 17120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17123 fi 17124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17126 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17127 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17128 then : 17129 printf %s "(cached) " >&6 17130 else $as_nop 17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17132 /* end confdefs.h. */ 17133 int i; 17134 _ACEOF 17135 if ac_fn_c_try_compile "$LINENO" 17136 then : 17137 xorg_cv_cc_flag_unused_command_line_argument=yes 17138 else $as_nop 17139 xorg_cv_cc_flag_unused_command_line_argument=no 17140 fi 17141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17142 fi 17143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17144 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17146 CFLAGS="$xorg_testset_save_CFLAGS" 17147 fi 17148 17149 found="no" 17150 17151 if test $found = "no" ; then 17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17154 fi 17155 17156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17158 fi 17159 17160 CFLAGS="$CFLAGS -Wnonnull" 17161 17162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17163 printf %s "checking if $CC supports -Wnonnull... " >&6; } 17164 cacheid=xorg_cv_cc_flag__Wnonnull 17165 if eval test \${$cacheid+y} 17166 then : 17167 printf %s "(cached) " >&6 17168 else $as_nop 17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17170 /* end confdefs.h. */ 17171 int i; 17172 int 17173 main (void) 17174 { 17175 17176 ; 17177 return 0; 17178 } 17179 _ACEOF 17180 if ac_fn_c_try_link "$LINENO" 17181 then : 17182 eval $cacheid=yes 17183 else $as_nop 17184 eval $cacheid=no 17185 fi 17186 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17187 conftest$ac_exeext conftest.$ac_ext 17188 fi 17189 17190 17191 CFLAGS="$xorg_testset_save_CFLAGS" 17192 17193 eval supported=\$$cacheid 17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17195 printf "%s\n" "$supported" >&6; } 17196 if test "$supported" = "yes" ; then 17197 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17198 found="yes" 17199 fi 17200 fi 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 xorg_testset_save_CFLAGS="$CFLAGS" 17217 17218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17222 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17223 then : 17224 printf %s "(cached) " >&6 17225 else $as_nop 17226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17227 /* end confdefs.h. */ 17228 int i; 17229 _ACEOF 17230 if ac_fn_c_try_compile "$LINENO" 17231 then : 17232 xorg_cv_cc_flag_unknown_warning_option=yes 17233 else $as_nop 17234 xorg_cv_cc_flag_unknown_warning_option=no 17235 fi 17236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17237 fi 17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17239 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17241 CFLAGS="$xorg_testset_save_CFLAGS" 17242 fi 17243 17244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17247 fi 17248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17252 then : 17253 printf %s "(cached) " >&6 17254 else $as_nop 17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17256 /* end confdefs.h. */ 17257 int i; 17258 _ACEOF 17259 if ac_fn_c_try_compile "$LINENO" 17260 then : 17261 xorg_cv_cc_flag_unused_command_line_argument=yes 17262 else $as_nop 17263 xorg_cv_cc_flag_unused_command_line_argument=no 17264 fi 17265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17266 fi 17267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17268 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17270 CFLAGS="$xorg_testset_save_CFLAGS" 17271 fi 17272 17273 found="no" 17274 17275 if test $found = "no" ; then 17276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17278 fi 17279 17280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17282 fi 17283 17284 CFLAGS="$CFLAGS -Winit-self" 17285 17286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17287 printf %s "checking if $CC supports -Winit-self... " >&6; } 17288 cacheid=xorg_cv_cc_flag__Winit_self 17289 if eval test \${$cacheid+y} 17290 then : 17291 printf %s "(cached) " >&6 17292 else $as_nop 17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17294 /* end confdefs.h. */ 17295 int i; 17296 int 17297 main (void) 17298 { 17299 17300 ; 17301 return 0; 17302 } 17303 _ACEOF 17304 if ac_fn_c_try_link "$LINENO" 17305 then : 17306 eval $cacheid=yes 17307 else $as_nop 17308 eval $cacheid=no 17309 fi 17310 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17311 conftest$ac_exeext conftest.$ac_ext 17312 fi 17313 17314 17315 CFLAGS="$xorg_testset_save_CFLAGS" 17316 17317 eval supported=\$$cacheid 17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17319 printf "%s\n" "$supported" >&6; } 17320 if test "$supported" = "yes" ; then 17321 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17322 found="yes" 17323 fi 17324 fi 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 xorg_testset_save_CFLAGS="$CFLAGS" 17341 17342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17345 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17346 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17347 then : 17348 printf %s "(cached) " >&6 17349 else $as_nop 17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17351 /* end confdefs.h. */ 17352 int i; 17353 _ACEOF 17354 if ac_fn_c_try_compile "$LINENO" 17355 then : 17356 xorg_cv_cc_flag_unknown_warning_option=yes 17357 else $as_nop 17358 xorg_cv_cc_flag_unknown_warning_option=no 17359 fi 17360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17361 fi 17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17363 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17365 CFLAGS="$xorg_testset_save_CFLAGS" 17366 fi 17367 17368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17371 fi 17372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17374 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17375 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17376 then : 17377 printf %s "(cached) " >&6 17378 else $as_nop 17379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17380 /* end confdefs.h. */ 17381 int i; 17382 _ACEOF 17383 if ac_fn_c_try_compile "$LINENO" 17384 then : 17385 xorg_cv_cc_flag_unused_command_line_argument=yes 17386 else $as_nop 17387 xorg_cv_cc_flag_unused_command_line_argument=no 17388 fi 17389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17390 fi 17391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17392 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17394 CFLAGS="$xorg_testset_save_CFLAGS" 17395 fi 17396 17397 found="no" 17398 17399 if test $found = "no" ; then 17400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17402 fi 17403 17404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17406 fi 17407 17408 CFLAGS="$CFLAGS -Wmain" 17409 17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17411 printf %s "checking if $CC supports -Wmain... " >&6; } 17412 cacheid=xorg_cv_cc_flag__Wmain 17413 if eval test \${$cacheid+y} 17414 then : 17415 printf %s "(cached) " >&6 17416 else $as_nop 17417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17418 /* end confdefs.h. */ 17419 int i; 17420 int 17421 main (void) 17422 { 17423 17424 ; 17425 return 0; 17426 } 17427 _ACEOF 17428 if ac_fn_c_try_link "$LINENO" 17429 then : 17430 eval $cacheid=yes 17431 else $as_nop 17432 eval $cacheid=no 17433 fi 17434 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17435 conftest$ac_exeext conftest.$ac_ext 17436 fi 17437 17438 17439 CFLAGS="$xorg_testset_save_CFLAGS" 17440 17441 eval supported=\$$cacheid 17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17443 printf "%s\n" "$supported" >&6; } 17444 if test "$supported" = "yes" ; then 17445 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17446 found="yes" 17447 fi 17448 fi 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 xorg_testset_save_CFLAGS="$CFLAGS" 17465 17466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17470 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17471 then : 17472 printf %s "(cached) " >&6 17473 else $as_nop 17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17475 /* end confdefs.h. */ 17476 int i; 17477 _ACEOF 17478 if ac_fn_c_try_compile "$LINENO" 17479 then : 17480 xorg_cv_cc_flag_unknown_warning_option=yes 17481 else $as_nop 17482 xorg_cv_cc_flag_unknown_warning_option=no 17483 fi 17484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17485 fi 17486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17489 CFLAGS="$xorg_testset_save_CFLAGS" 17490 fi 17491 17492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17495 fi 17496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17500 then : 17501 printf %s "(cached) " >&6 17502 else $as_nop 17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17504 /* end confdefs.h. */ 17505 int i; 17506 _ACEOF 17507 if ac_fn_c_try_compile "$LINENO" 17508 then : 17509 xorg_cv_cc_flag_unused_command_line_argument=yes 17510 else $as_nop 17511 xorg_cv_cc_flag_unused_command_line_argument=no 17512 fi 17513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17514 fi 17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17516 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17518 CFLAGS="$xorg_testset_save_CFLAGS" 17519 fi 17520 17521 found="no" 17522 17523 if test $found = "no" ; then 17524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17526 fi 17527 17528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17530 fi 17531 17532 CFLAGS="$CFLAGS -Wmissing-braces" 17533 17534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17535 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 17536 cacheid=xorg_cv_cc_flag__Wmissing_braces 17537 if eval test \${$cacheid+y} 17538 then : 17539 printf %s "(cached) " >&6 17540 else $as_nop 17541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17542 /* end confdefs.h. */ 17543 int i; 17544 int 17545 main (void) 17546 { 17547 17548 ; 17549 return 0; 17550 } 17551 _ACEOF 17552 if ac_fn_c_try_link "$LINENO" 17553 then : 17554 eval $cacheid=yes 17555 else $as_nop 17556 eval $cacheid=no 17557 fi 17558 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17559 conftest$ac_exeext conftest.$ac_ext 17560 fi 17561 17562 17563 CFLAGS="$xorg_testset_save_CFLAGS" 17564 17565 eval supported=\$$cacheid 17566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17567 printf "%s\n" "$supported" >&6; } 17568 if test "$supported" = "yes" ; then 17569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17570 found="yes" 17571 fi 17572 fi 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 xorg_testset_save_CFLAGS="$CFLAGS" 17589 17590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17594 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17595 then : 17596 printf %s "(cached) " >&6 17597 else $as_nop 17598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17599 /* end confdefs.h. */ 17600 int i; 17601 _ACEOF 17602 if ac_fn_c_try_compile "$LINENO" 17603 then : 17604 xorg_cv_cc_flag_unknown_warning_option=yes 17605 else $as_nop 17606 xorg_cv_cc_flag_unknown_warning_option=no 17607 fi 17608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17609 fi 17610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17611 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17613 CFLAGS="$xorg_testset_save_CFLAGS" 17614 fi 17615 17616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17619 fi 17620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17624 then : 17625 printf %s "(cached) " >&6 17626 else $as_nop 17627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17628 /* end confdefs.h. */ 17629 int i; 17630 _ACEOF 17631 if ac_fn_c_try_compile "$LINENO" 17632 then : 17633 xorg_cv_cc_flag_unused_command_line_argument=yes 17634 else $as_nop 17635 xorg_cv_cc_flag_unused_command_line_argument=no 17636 fi 17637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17638 fi 17639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17640 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17642 CFLAGS="$xorg_testset_save_CFLAGS" 17643 fi 17644 17645 found="no" 17646 17647 if test $found = "no" ; then 17648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17650 fi 17651 17652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17654 fi 17655 17656 CFLAGS="$CFLAGS -Wsequence-point" 17657 17658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17659 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 17660 cacheid=xorg_cv_cc_flag__Wsequence_point 17661 if eval test \${$cacheid+y} 17662 then : 17663 printf %s "(cached) " >&6 17664 else $as_nop 17665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17666 /* end confdefs.h. */ 17667 int i; 17668 int 17669 main (void) 17670 { 17671 17672 ; 17673 return 0; 17674 } 17675 _ACEOF 17676 if ac_fn_c_try_link "$LINENO" 17677 then : 17678 eval $cacheid=yes 17679 else $as_nop 17680 eval $cacheid=no 17681 fi 17682 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17683 conftest$ac_exeext conftest.$ac_ext 17684 fi 17685 17686 17687 CFLAGS="$xorg_testset_save_CFLAGS" 17688 17689 eval supported=\$$cacheid 17690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17691 printf "%s\n" "$supported" >&6; } 17692 if test "$supported" = "yes" ; then 17693 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17694 found="yes" 17695 fi 17696 fi 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 xorg_testset_save_CFLAGS="$CFLAGS" 17713 17714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17717 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17718 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17719 then : 17720 printf %s "(cached) " >&6 17721 else $as_nop 17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723 /* end confdefs.h. */ 17724 int i; 17725 _ACEOF 17726 if ac_fn_c_try_compile "$LINENO" 17727 then : 17728 xorg_cv_cc_flag_unknown_warning_option=yes 17729 else $as_nop 17730 xorg_cv_cc_flag_unknown_warning_option=no 17731 fi 17732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17733 fi 17734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17735 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17737 CFLAGS="$xorg_testset_save_CFLAGS" 17738 fi 17739 17740 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17743 fi 17744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17746 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17747 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17748 then : 17749 printf %s "(cached) " >&6 17750 else $as_nop 17751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17752 /* end confdefs.h. */ 17753 int i; 17754 _ACEOF 17755 if ac_fn_c_try_compile "$LINENO" 17756 then : 17757 xorg_cv_cc_flag_unused_command_line_argument=yes 17758 else $as_nop 17759 xorg_cv_cc_flag_unused_command_line_argument=no 17760 fi 17761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17762 fi 17763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17764 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17766 CFLAGS="$xorg_testset_save_CFLAGS" 17767 fi 17768 17769 found="no" 17770 17771 if test $found = "no" ; then 17772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17774 fi 17775 17776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17778 fi 17779 17780 CFLAGS="$CFLAGS -Wreturn-type" 17781 17782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17783 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 17784 cacheid=xorg_cv_cc_flag__Wreturn_type 17785 if eval test \${$cacheid+y} 17786 then : 17787 printf %s "(cached) " >&6 17788 else $as_nop 17789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17790 /* end confdefs.h. */ 17791 int i; 17792 int 17793 main (void) 17794 { 17795 17796 ; 17797 return 0; 17798 } 17799 _ACEOF 17800 if ac_fn_c_try_link "$LINENO" 17801 then : 17802 eval $cacheid=yes 17803 else $as_nop 17804 eval $cacheid=no 17805 fi 17806 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17807 conftest$ac_exeext conftest.$ac_ext 17808 fi 17809 17810 17811 CFLAGS="$xorg_testset_save_CFLAGS" 17812 17813 eval supported=\$$cacheid 17814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17815 printf "%s\n" "$supported" >&6; } 17816 if test "$supported" = "yes" ; then 17817 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17818 found="yes" 17819 fi 17820 fi 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 xorg_testset_save_CFLAGS="$CFLAGS" 17837 17838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17841 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17842 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17843 then : 17844 printf %s "(cached) " >&6 17845 else $as_nop 17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17847 /* end confdefs.h. */ 17848 int i; 17849 _ACEOF 17850 if ac_fn_c_try_compile "$LINENO" 17851 then : 17852 xorg_cv_cc_flag_unknown_warning_option=yes 17853 else $as_nop 17854 xorg_cv_cc_flag_unknown_warning_option=no 17855 fi 17856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17857 fi 17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17859 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17861 CFLAGS="$xorg_testset_save_CFLAGS" 17862 fi 17863 17864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17867 fi 17868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17870 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17871 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17872 then : 17873 printf %s "(cached) " >&6 17874 else $as_nop 17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17876 /* end confdefs.h. */ 17877 int i; 17878 _ACEOF 17879 if ac_fn_c_try_compile "$LINENO" 17880 then : 17881 xorg_cv_cc_flag_unused_command_line_argument=yes 17882 else $as_nop 17883 xorg_cv_cc_flag_unused_command_line_argument=no 17884 fi 17885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17886 fi 17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17888 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17890 CFLAGS="$xorg_testset_save_CFLAGS" 17891 fi 17892 17893 found="no" 17894 17895 if test $found = "no" ; then 17896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17898 fi 17899 17900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17902 fi 17903 17904 CFLAGS="$CFLAGS -Wtrigraphs" 17905 17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17907 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 17908 cacheid=xorg_cv_cc_flag__Wtrigraphs 17909 if eval test \${$cacheid+y} 17910 then : 17911 printf %s "(cached) " >&6 17912 else $as_nop 17913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17914 /* end confdefs.h. */ 17915 int i; 17916 int 17917 main (void) 17918 { 17919 17920 ; 17921 return 0; 17922 } 17923 _ACEOF 17924 if ac_fn_c_try_link "$LINENO" 17925 then : 17926 eval $cacheid=yes 17927 else $as_nop 17928 eval $cacheid=no 17929 fi 17930 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17931 conftest$ac_exeext conftest.$ac_ext 17932 fi 17933 17934 17935 CFLAGS="$xorg_testset_save_CFLAGS" 17936 17937 eval supported=\$$cacheid 17938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17939 printf "%s\n" "$supported" >&6; } 17940 if test "$supported" = "yes" ; then 17941 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17942 found="yes" 17943 fi 17944 fi 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 xorg_testset_save_CFLAGS="$CFLAGS" 17961 17962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17965 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17966 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17967 then : 17968 printf %s "(cached) " >&6 17969 else $as_nop 17970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17971 /* end confdefs.h. */ 17972 int i; 17973 _ACEOF 17974 if ac_fn_c_try_compile "$LINENO" 17975 then : 17976 xorg_cv_cc_flag_unknown_warning_option=yes 17977 else $as_nop 17978 xorg_cv_cc_flag_unknown_warning_option=no 17979 fi 17980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17981 fi 17982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17983 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17985 CFLAGS="$xorg_testset_save_CFLAGS" 17986 fi 17987 17988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17991 fi 17992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17996 then : 17997 printf %s "(cached) " >&6 17998 else $as_nop 17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18000 /* end confdefs.h. */ 18001 int i; 18002 _ACEOF 18003 if ac_fn_c_try_compile "$LINENO" 18004 then : 18005 xorg_cv_cc_flag_unused_command_line_argument=yes 18006 else $as_nop 18007 xorg_cv_cc_flag_unused_command_line_argument=no 18008 fi 18009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18010 fi 18011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18012 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18014 CFLAGS="$xorg_testset_save_CFLAGS" 18015 fi 18016 18017 found="no" 18018 18019 if test $found = "no" ; then 18020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18022 fi 18023 18024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18026 fi 18027 18028 CFLAGS="$CFLAGS -Warray-bounds" 18029 18030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18031 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18032 cacheid=xorg_cv_cc_flag__Warray_bounds 18033 if eval test \${$cacheid+y} 18034 then : 18035 printf %s "(cached) " >&6 18036 else $as_nop 18037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18038 /* end confdefs.h. */ 18039 int i; 18040 int 18041 main (void) 18042 { 18043 18044 ; 18045 return 0; 18046 } 18047 _ACEOF 18048 if ac_fn_c_try_link "$LINENO" 18049 then : 18050 eval $cacheid=yes 18051 else $as_nop 18052 eval $cacheid=no 18053 fi 18054 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18055 conftest$ac_exeext conftest.$ac_ext 18056 fi 18057 18058 18059 CFLAGS="$xorg_testset_save_CFLAGS" 18060 18061 eval supported=\$$cacheid 18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18063 printf "%s\n" "$supported" >&6; } 18064 if test "$supported" = "yes" ; then 18065 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18066 found="yes" 18067 fi 18068 fi 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 xorg_testset_save_CFLAGS="$CFLAGS" 18085 18086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18089 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18090 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18091 then : 18092 printf %s "(cached) " >&6 18093 else $as_nop 18094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18095 /* end confdefs.h. */ 18096 int i; 18097 _ACEOF 18098 if ac_fn_c_try_compile "$LINENO" 18099 then : 18100 xorg_cv_cc_flag_unknown_warning_option=yes 18101 else $as_nop 18102 xorg_cv_cc_flag_unknown_warning_option=no 18103 fi 18104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18105 fi 18106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18107 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18109 CFLAGS="$xorg_testset_save_CFLAGS" 18110 fi 18111 18112 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18115 fi 18116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18118 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18119 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18120 then : 18121 printf %s "(cached) " >&6 18122 else $as_nop 18123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18124 /* end confdefs.h. */ 18125 int i; 18126 _ACEOF 18127 if ac_fn_c_try_compile "$LINENO" 18128 then : 18129 xorg_cv_cc_flag_unused_command_line_argument=yes 18130 else $as_nop 18131 xorg_cv_cc_flag_unused_command_line_argument=no 18132 fi 18133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18134 fi 18135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18136 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18138 CFLAGS="$xorg_testset_save_CFLAGS" 18139 fi 18140 18141 found="no" 18142 18143 if test $found = "no" ; then 18144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18146 fi 18147 18148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18150 fi 18151 18152 CFLAGS="$CFLAGS -Wwrite-strings" 18153 18154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18155 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 18156 cacheid=xorg_cv_cc_flag__Wwrite_strings 18157 if eval test \${$cacheid+y} 18158 then : 18159 printf %s "(cached) " >&6 18160 else $as_nop 18161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18162 /* end confdefs.h. */ 18163 int i; 18164 int 18165 main (void) 18166 { 18167 18168 ; 18169 return 0; 18170 } 18171 _ACEOF 18172 if ac_fn_c_try_link "$LINENO" 18173 then : 18174 eval $cacheid=yes 18175 else $as_nop 18176 eval $cacheid=no 18177 fi 18178 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18179 conftest$ac_exeext conftest.$ac_ext 18180 fi 18181 18182 18183 CFLAGS="$xorg_testset_save_CFLAGS" 18184 18185 eval supported=\$$cacheid 18186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18187 printf "%s\n" "$supported" >&6; } 18188 if test "$supported" = "yes" ; then 18189 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18190 found="yes" 18191 fi 18192 fi 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 xorg_testset_save_CFLAGS="$CFLAGS" 18209 18210 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18213 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18214 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18215 then : 18216 printf %s "(cached) " >&6 18217 else $as_nop 18218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18219 /* end confdefs.h. */ 18220 int i; 18221 _ACEOF 18222 if ac_fn_c_try_compile "$LINENO" 18223 then : 18224 xorg_cv_cc_flag_unknown_warning_option=yes 18225 else $as_nop 18226 xorg_cv_cc_flag_unknown_warning_option=no 18227 fi 18228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18229 fi 18230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18231 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18233 CFLAGS="$xorg_testset_save_CFLAGS" 18234 fi 18235 18236 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18239 fi 18240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18242 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18243 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18244 then : 18245 printf %s "(cached) " >&6 18246 else $as_nop 18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18248 /* end confdefs.h. */ 18249 int i; 18250 _ACEOF 18251 if ac_fn_c_try_compile "$LINENO" 18252 then : 18253 xorg_cv_cc_flag_unused_command_line_argument=yes 18254 else $as_nop 18255 xorg_cv_cc_flag_unused_command_line_argument=no 18256 fi 18257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18258 fi 18259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18260 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18262 CFLAGS="$xorg_testset_save_CFLAGS" 18263 fi 18264 18265 found="no" 18266 18267 if test $found = "no" ; then 18268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18270 fi 18271 18272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18274 fi 18275 18276 CFLAGS="$CFLAGS -Waddress" 18277 18278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18279 printf %s "checking if $CC supports -Waddress... " >&6; } 18280 cacheid=xorg_cv_cc_flag__Waddress 18281 if eval test \${$cacheid+y} 18282 then : 18283 printf %s "(cached) " >&6 18284 else $as_nop 18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18286 /* end confdefs.h. */ 18287 int i; 18288 int 18289 main (void) 18290 { 18291 18292 ; 18293 return 0; 18294 } 18295 _ACEOF 18296 if ac_fn_c_try_link "$LINENO" 18297 then : 18298 eval $cacheid=yes 18299 else $as_nop 18300 eval $cacheid=no 18301 fi 18302 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18303 conftest$ac_exeext conftest.$ac_ext 18304 fi 18305 18306 18307 CFLAGS="$xorg_testset_save_CFLAGS" 18308 18309 eval supported=\$$cacheid 18310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18311 printf "%s\n" "$supported" >&6; } 18312 if test "$supported" = "yes" ; then 18313 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18314 found="yes" 18315 fi 18316 fi 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 xorg_testset_save_CFLAGS="$CFLAGS" 18333 18334 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18337 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18338 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18339 then : 18340 printf %s "(cached) " >&6 18341 else $as_nop 18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18343 /* end confdefs.h. */ 18344 int i; 18345 _ACEOF 18346 if ac_fn_c_try_compile "$LINENO" 18347 then : 18348 xorg_cv_cc_flag_unknown_warning_option=yes 18349 else $as_nop 18350 xorg_cv_cc_flag_unknown_warning_option=no 18351 fi 18352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18353 fi 18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18355 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18357 CFLAGS="$xorg_testset_save_CFLAGS" 18358 fi 18359 18360 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18363 fi 18364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18366 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18367 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18368 then : 18369 printf %s "(cached) " >&6 18370 else $as_nop 18371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18372 /* end confdefs.h. */ 18373 int i; 18374 _ACEOF 18375 if ac_fn_c_try_compile "$LINENO" 18376 then : 18377 xorg_cv_cc_flag_unused_command_line_argument=yes 18378 else $as_nop 18379 xorg_cv_cc_flag_unused_command_line_argument=no 18380 fi 18381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18382 fi 18383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18386 CFLAGS="$xorg_testset_save_CFLAGS" 18387 fi 18388 18389 found="no" 18390 18391 if test $found = "no" ; then 18392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18394 fi 18395 18396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18398 fi 18399 18400 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18401 18402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18403 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18404 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18405 if eval test \${$cacheid+y} 18406 then : 18407 printf %s "(cached) " >&6 18408 else $as_nop 18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18410 /* end confdefs.h. */ 18411 int i; 18412 int 18413 main (void) 18414 { 18415 18416 ; 18417 return 0; 18418 } 18419 _ACEOF 18420 if ac_fn_c_try_link "$LINENO" 18421 then : 18422 eval $cacheid=yes 18423 else $as_nop 18424 eval $cacheid=no 18425 fi 18426 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18427 conftest$ac_exeext conftest.$ac_ext 18428 fi 18429 18430 18431 CFLAGS="$xorg_testset_save_CFLAGS" 18432 18433 eval supported=\$$cacheid 18434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18435 printf "%s\n" "$supported" >&6; } 18436 if test "$supported" = "yes" ; then 18437 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18438 found="yes" 18439 fi 18440 fi 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 xorg_testset_save_CFLAGS="$CFLAGS" 18457 18458 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18461 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18462 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18463 then : 18464 printf %s "(cached) " >&6 18465 else $as_nop 18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18467 /* end confdefs.h. */ 18468 int i; 18469 _ACEOF 18470 if ac_fn_c_try_compile "$LINENO" 18471 then : 18472 xorg_cv_cc_flag_unknown_warning_option=yes 18473 else $as_nop 18474 xorg_cv_cc_flag_unknown_warning_option=no 18475 fi 18476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18477 fi 18478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18479 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18481 CFLAGS="$xorg_testset_save_CFLAGS" 18482 fi 18483 18484 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18487 fi 18488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18490 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18491 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18492 then : 18493 printf %s "(cached) " >&6 18494 else $as_nop 18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18496 /* end confdefs.h. */ 18497 int i; 18498 _ACEOF 18499 if ac_fn_c_try_compile "$LINENO" 18500 then : 18501 xorg_cv_cc_flag_unused_command_line_argument=yes 18502 else $as_nop 18503 xorg_cv_cc_flag_unused_command_line_argument=no 18504 fi 18505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18506 fi 18507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18508 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18509 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18510 CFLAGS="$xorg_testset_save_CFLAGS" 18511 fi 18512 18513 found="no" 18514 18515 if test $found = "no" ; then 18516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18518 fi 18519 18520 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18522 fi 18523 18524 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18525 18526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18527 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18528 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18529 if eval test \${$cacheid+y} 18530 then : 18531 printf %s "(cached) " >&6 18532 else $as_nop 18533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18534 /* end confdefs.h. */ 18535 int i; 18536 int 18537 main (void) 18538 { 18539 18540 ; 18541 return 0; 18542 } 18543 _ACEOF 18544 if ac_fn_c_try_link "$LINENO" 18545 then : 18546 eval $cacheid=yes 18547 else $as_nop 18548 eval $cacheid=no 18549 fi 18550 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18551 conftest$ac_exeext conftest.$ac_ext 18552 fi 18553 18554 18555 CFLAGS="$xorg_testset_save_CFLAGS" 18556 18557 eval supported=\$$cacheid 18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18559 printf "%s\n" "$supported" >&6; } 18560 if test "$supported" = "yes" ; then 18561 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18562 found="yes" 18563 fi 18564 fi 18565 18566 18567 fi 18568 18569 18570 18571 18572 18573 18574 18575 CWARNFLAGS="$BASE_CFLAGS" 18576 if test "x$GCC" = xyes ; then 18577 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18578 fi 18579 18580 18581 18582 18583 18584 18585 18586 18587 # Check whether --enable-strict-compilation was given. 18588 if test ${enable_strict_compilation+y} 18589 then : 18590 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18591 else $as_nop 18592 STRICT_COMPILE=no 18593 fi 18594 18595 18596 18597 18598 18599 18600 STRICT_CFLAGS="" 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 xorg_testset_save_CFLAGS="$CFLAGS" 18615 18616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18620 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18621 then : 18622 printf %s "(cached) " >&6 18623 else $as_nop 18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18625 /* end confdefs.h. */ 18626 int i; 18627 _ACEOF 18628 if ac_fn_c_try_compile "$LINENO" 18629 then : 18630 xorg_cv_cc_flag_unknown_warning_option=yes 18631 else $as_nop 18632 xorg_cv_cc_flag_unknown_warning_option=no 18633 fi 18634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18635 fi 18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18639 CFLAGS="$xorg_testset_save_CFLAGS" 18640 fi 18641 18642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18645 fi 18646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18650 then : 18651 printf %s "(cached) " >&6 18652 else $as_nop 18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18654 /* end confdefs.h. */ 18655 int i; 18656 _ACEOF 18657 if ac_fn_c_try_compile "$LINENO" 18658 then : 18659 xorg_cv_cc_flag_unused_command_line_argument=yes 18660 else $as_nop 18661 xorg_cv_cc_flag_unused_command_line_argument=no 18662 fi 18663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18664 fi 18665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18668 CFLAGS="$xorg_testset_save_CFLAGS" 18669 fi 18670 18671 found="no" 18672 18673 if test $found = "no" ; then 18674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18676 fi 18677 18678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18680 fi 18681 18682 CFLAGS="$CFLAGS -pedantic" 18683 18684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18685 printf %s "checking if $CC supports -pedantic... " >&6; } 18686 cacheid=xorg_cv_cc_flag__pedantic 18687 if eval test \${$cacheid+y} 18688 then : 18689 printf %s "(cached) " >&6 18690 else $as_nop 18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18692 /* end confdefs.h. */ 18693 int i; 18694 int 18695 main (void) 18696 { 18697 18698 ; 18699 return 0; 18700 } 18701 _ACEOF 18702 if ac_fn_c_try_link "$LINENO" 18703 then : 18704 eval $cacheid=yes 18705 else $as_nop 18706 eval $cacheid=no 18707 fi 18708 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18709 conftest$ac_exeext conftest.$ac_ext 18710 fi 18711 18712 18713 CFLAGS="$xorg_testset_save_CFLAGS" 18714 18715 eval supported=\$$cacheid 18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18717 printf "%s\n" "$supported" >&6; } 18718 if test "$supported" = "yes" ; then 18719 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18720 found="yes" 18721 fi 18722 fi 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 xorg_testset_save_CFLAGS="$CFLAGS" 18739 18740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18744 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18745 then : 18746 printf %s "(cached) " >&6 18747 else $as_nop 18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18749 /* end confdefs.h. */ 18750 int i; 18751 _ACEOF 18752 if ac_fn_c_try_compile "$LINENO" 18753 then : 18754 xorg_cv_cc_flag_unknown_warning_option=yes 18755 else $as_nop 18756 xorg_cv_cc_flag_unknown_warning_option=no 18757 fi 18758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18759 fi 18760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18763 CFLAGS="$xorg_testset_save_CFLAGS" 18764 fi 18765 18766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18769 fi 18770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18774 then : 18775 printf %s "(cached) " >&6 18776 else $as_nop 18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18778 /* end confdefs.h. */ 18779 int i; 18780 _ACEOF 18781 if ac_fn_c_try_compile "$LINENO" 18782 then : 18783 xorg_cv_cc_flag_unused_command_line_argument=yes 18784 else $as_nop 18785 xorg_cv_cc_flag_unused_command_line_argument=no 18786 fi 18787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18788 fi 18789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18790 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18792 CFLAGS="$xorg_testset_save_CFLAGS" 18793 fi 18794 18795 found="no" 18796 18797 if test $found = "no" ; then 18798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18800 fi 18801 18802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18804 fi 18805 18806 CFLAGS="$CFLAGS -Werror" 18807 18808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18809 printf %s "checking if $CC supports -Werror... " >&6; } 18810 cacheid=xorg_cv_cc_flag__Werror 18811 if eval test \${$cacheid+y} 18812 then : 18813 printf %s "(cached) " >&6 18814 else $as_nop 18815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18816 /* end confdefs.h. */ 18817 int i; 18818 int 18819 main (void) 18820 { 18821 18822 ; 18823 return 0; 18824 } 18825 _ACEOF 18826 if ac_fn_c_try_link "$LINENO" 18827 then : 18828 eval $cacheid=yes 18829 else $as_nop 18830 eval $cacheid=no 18831 fi 18832 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18833 conftest$ac_exeext conftest.$ac_ext 18834 fi 18835 18836 18837 CFLAGS="$xorg_testset_save_CFLAGS" 18838 18839 eval supported=\$$cacheid 18840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18841 printf "%s\n" "$supported" >&6; } 18842 if test "$supported" = "yes" ; then 18843 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18844 found="yes" 18845 fi 18846 fi 18847 18848 if test $found = "no" ; then 18849 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18851 fi 18852 18853 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18855 fi 18856 18857 CFLAGS="$CFLAGS -errwarn" 18858 18859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18860 printf %s "checking if $CC supports -errwarn... " >&6; } 18861 cacheid=xorg_cv_cc_flag__errwarn 18862 if eval test \${$cacheid+y} 18863 then : 18864 printf %s "(cached) " >&6 18865 else $as_nop 18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18867 /* end confdefs.h. */ 18868 int i; 18869 int 18870 main (void) 18871 { 18872 18873 ; 18874 return 0; 18875 } 18876 _ACEOF 18877 if ac_fn_c_try_link "$LINENO" 18878 then : 18879 eval $cacheid=yes 18880 else $as_nop 18881 eval $cacheid=no 18882 fi 18883 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18884 conftest$ac_exeext conftest.$ac_ext 18885 fi 18886 18887 18888 CFLAGS="$xorg_testset_save_CFLAGS" 18889 18890 eval supported=\$$cacheid 18891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18892 printf "%s\n" "$supported" >&6; } 18893 if test "$supported" = "yes" ; then 18894 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18895 found="yes" 18896 fi 18897 fi 18898 18899 18900 18901 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18902 # activate it with -Werror, so we add it here explicitly. 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 xorg_testset_save_CFLAGS="$CFLAGS" 18917 18918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18921 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18922 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18923 then : 18924 printf %s "(cached) " >&6 18925 else $as_nop 18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18927 /* end confdefs.h. */ 18928 int i; 18929 _ACEOF 18930 if ac_fn_c_try_compile "$LINENO" 18931 then : 18932 xorg_cv_cc_flag_unknown_warning_option=yes 18933 else $as_nop 18934 xorg_cv_cc_flag_unknown_warning_option=no 18935 fi 18936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18937 fi 18938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18939 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18941 CFLAGS="$xorg_testset_save_CFLAGS" 18942 fi 18943 18944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18947 fi 18948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18950 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18951 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18952 then : 18953 printf %s "(cached) " >&6 18954 else $as_nop 18955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18956 /* end confdefs.h. */ 18957 int i; 18958 _ACEOF 18959 if ac_fn_c_try_compile "$LINENO" 18960 then : 18961 xorg_cv_cc_flag_unused_command_line_argument=yes 18962 else $as_nop 18963 xorg_cv_cc_flag_unused_command_line_argument=no 18964 fi 18965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 18966 fi 18967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18968 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18970 CFLAGS="$xorg_testset_save_CFLAGS" 18971 fi 18972 18973 found="no" 18974 18975 if test $found = "no" ; then 18976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18978 fi 18979 18980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18982 fi 18983 18984 CFLAGS="$CFLAGS -Werror=attributes" 18985 18986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18987 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 18988 cacheid=xorg_cv_cc_flag__Werror_attributes 18989 if eval test \${$cacheid+y} 18990 then : 18991 printf %s "(cached) " >&6 18992 else $as_nop 18993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18994 /* end confdefs.h. */ 18995 int i; 18996 int 18997 main (void) 18998 { 18999 19000 ; 19001 return 0; 19002 } 19003 _ACEOF 19004 if ac_fn_c_try_link "$LINENO" 19005 then : 19006 eval $cacheid=yes 19007 else $as_nop 19008 eval $cacheid=no 19009 fi 19010 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19011 conftest$ac_exeext conftest.$ac_ext 19012 fi 19013 19014 19015 CFLAGS="$xorg_testset_save_CFLAGS" 19016 19017 eval supported=\$$cacheid 19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19019 printf "%s\n" "$supported" >&6; } 19020 if test "$supported" = "yes" ; then 19021 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19022 found="yes" 19023 fi 19024 fi 19025 19026 19027 19028 if test "x$STRICT_COMPILE" = "xyes"; then 19029 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19030 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19031 fi 19032 19033 19034 19035 19036 19037 19038 cat >>confdefs.h <<_ACEOF 19039 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19040 _ACEOF 19041 19042 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19043 if test "x$PVM" = "x"; then 19044 PVM="0" 19045 fi 19046 19047 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19048 19049 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19050 if test "x$PVP" = "x"; then 19051 PVP="0" 19052 fi 19053 19054 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19055 19056 19057 19058 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19059 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19060 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19061 touch \$(top_srcdir)/ChangeLog; \ 19062 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19063 19064 19065 19066 19067 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19068 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19069 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19070 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19071 touch \$(top_srcdir)/INSTALL; \ 19072 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19073 19074 19075 19076 19077 19078 19079 case $host_os in 19080 solaris*) 19081 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19082 # check for a man page file found in later versions that use 19083 # traditional section numbers instead 19084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19085 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 19086 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 19087 then : 19088 printf %s "(cached) " >&6 19089 else $as_nop 19090 test "$cross_compiling" = yes && 19091 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19092 if test -r "/usr/share/man/man7/attributes.7"; then 19093 ac_cv_file__usr_share_man_man7_attributes_7=yes 19094 else 19095 ac_cv_file__usr_share_man_man7_attributes_7=no 19096 fi 19097 fi 19098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19099 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19100 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 19101 then : 19102 SYSV_MAN_SECTIONS=false 19103 else $as_nop 19104 SYSV_MAN_SECTIONS=true 19105 fi 19106 19107 ;; 19108 *) SYSV_MAN_SECTIONS=false ;; 19109 esac 19110 19111 if test x$APP_MAN_SUFFIX = x ; then 19112 APP_MAN_SUFFIX=1 19113 fi 19114 if test x$APP_MAN_DIR = x ; then 19115 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19116 fi 19117 19118 if test x$LIB_MAN_SUFFIX = x ; then 19119 LIB_MAN_SUFFIX=3 19120 fi 19121 if test x$LIB_MAN_DIR = x ; then 19122 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19123 fi 19124 19125 if test x$FILE_MAN_SUFFIX = x ; then 19126 case $SYSV_MAN_SECTIONS in 19127 true) FILE_MAN_SUFFIX=4 ;; 19128 *) FILE_MAN_SUFFIX=5 ;; 19129 esac 19130 fi 19131 if test x$FILE_MAN_DIR = x ; then 19132 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19133 fi 19134 19135 if test x$MISC_MAN_SUFFIX = x ; then 19136 case $SYSV_MAN_SECTIONS in 19137 true) MISC_MAN_SUFFIX=5 ;; 19138 *) MISC_MAN_SUFFIX=7 ;; 19139 esac 19140 fi 19141 if test x$MISC_MAN_DIR = x ; then 19142 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19143 fi 19144 19145 if test x$DRIVER_MAN_SUFFIX = x ; then 19146 case $SYSV_MAN_SECTIONS in 19147 true) DRIVER_MAN_SUFFIX=7 ;; 19148 *) DRIVER_MAN_SUFFIX=4 ;; 19149 esac 19150 fi 19151 if test x$DRIVER_MAN_DIR = x ; then 19152 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19153 fi 19154 19155 if test x$ADMIN_MAN_SUFFIX = x ; then 19156 case $SYSV_MAN_SECTIONS in 19157 true) ADMIN_MAN_SUFFIX=1m ;; 19158 *) ADMIN_MAN_SUFFIX=8 ;; 19159 esac 19160 fi 19161 if test x$ADMIN_MAN_DIR = x ; then 19162 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19163 fi 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 XORG_MAN_PAGE="X Version 11" 19180 19181 MAN_SUBSTS="\ 19182 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19183 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19184 -e 's|__xservername__|Xorg|g' \ 19185 -e 's|__xconfigfile__|xorg.conf|g' \ 19186 -e 's|__projectroot__|\$(prefix)|g' \ 19187 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19188 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19189 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19190 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19191 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19192 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19193 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19194 19195 19196 19197 # Check whether --enable-silent-rules was given. 19198 if test ${enable_silent_rules+y} 19199 then : 19200 enableval=$enable_silent_rules; 19201 fi 19202 19203 case $enable_silent_rules in # ((( 19204 yes) AM_DEFAULT_VERBOSITY=0;; 19205 no) AM_DEFAULT_VERBOSITY=1;; 19206 *) AM_DEFAULT_VERBOSITY=0;; 19207 esac 19208 am_make=${MAKE-make} 19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19210 printf %s "checking whether $am_make supports nested variables... " >&6; } 19211 if test ${am_cv_make_support_nested_variables+y} 19212 then : 19213 printf %s "(cached) " >&6 19214 else $as_nop 19215 if printf "%s\n" 'TRUE=$(BAR$(V)) 19216 BAR0=false 19217 BAR1=true 19218 V=1 19219 am__doit: 19220 @$(TRUE) 19221 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19222 am_cv_make_support_nested_variables=yes 19223 else 19224 am_cv_make_support_nested_variables=no 19225 fi 19226 fi 19227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19228 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 19229 if test $am_cv_make_support_nested_variables = yes; then 19230 AM_V='$(V)' 19231 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19232 else 19233 AM_V=$AM_DEFAULT_VERBOSITY 19234 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19235 fi 19236 AM_BACKSLASH='\' 19237 19238 19239 19240 # Set library version for Xft.h from package version set in AC_INIT 19241 # copied from PACKAGE_VERSION_* settings in XORG_VERSION 19242 ac_config_headers="$ac_config_headers include/X11/Xft/Xft.h" 19243 19244 19245 cat >>confdefs.h <<_ACEOF 19246 #define XFT_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19247 _ACEOF 19248 19249 19250 cat >>confdefs.h <<_ACEOF 19251 #define XFT_MINOR `echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19252 _ACEOF 19253 19254 19255 cat >>confdefs.h <<_ACEOF 19256 #define XFT_REVISION `echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19257 _ACEOF 19258 19259 19260 XFT_LT_VERSION=`echo $PACKAGE_VERSION | tr '.' ':'` 19261 19262 19263 # 19264 # Check for Xrender 19265 # 19266 19267 pkg_failed=no 19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender >= 0.8.2 x11 xproto >= 7.0.22" >&5 19269 printf %s "checking for xrender >= 0.8.2 x11 xproto >= 7.0.22... " >&6; } 19270 19271 if test -n "$XRENDER_CFLAGS"; then 19272 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 19273 elif test -n "$PKG_CONFIG"; then 19274 if test -n "$PKG_CONFIG" && \ 19275 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11 xproto >= 7.0.22\""; } >&5 19276 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11 xproto >= 7.0.22") 2>&5 19277 ac_status=$? 19278 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19279 test $ac_status = 0; }; then 19280 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 x11 xproto >= 7.0.22" 2>/dev/null` 19281 test "x$?" != "x0" && pkg_failed=yes 19282 else 19283 pkg_failed=yes 19284 fi 19285 else 19286 pkg_failed=untried 19287 fi 19288 if test -n "$XRENDER_LIBS"; then 19289 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 19290 elif test -n "$PKG_CONFIG"; then 19291 if test -n "$PKG_CONFIG" && \ 19292 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 x11 xproto >= 7.0.22\""; } >&5 19293 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 x11 xproto >= 7.0.22") 2>&5 19294 ac_status=$? 19295 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19296 test $ac_status = 0; }; then 19297 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 x11 xproto >= 7.0.22" 2>/dev/null` 19298 test "x$?" != "x0" && pkg_failed=yes 19299 else 19300 pkg_failed=yes 19301 fi 19302 else 19303 pkg_failed=untried 19304 fi 19305 19306 19307 19308 if test $pkg_failed = yes; then 19309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19310 printf "%s\n" "no" >&6; } 19311 19312 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19313 _pkg_short_errors_supported=yes 19314 else 19315 _pkg_short_errors_supported=no 19316 fi 19317 if test $_pkg_short_errors_supported = yes; then 19318 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.8.2 x11 xproto >= 7.0.22" 2>&1` 19319 else 19320 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.8.2 x11 xproto >= 7.0.22" 2>&1` 19321 fi 19322 # Put the nasty error message in config.log where it belongs 19323 echo "$XRENDER_PKG_ERRORS" >&5 19324 19325 as_fn_error $? "Package requirements (xrender >= 0.8.2 x11 xproto >= 7.0.22) were not met: 19326 19327 $XRENDER_PKG_ERRORS 19328 19329 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19330 installed software in a non-standard prefix. 19331 19332 Alternatively, you may set the environment variables XRENDER_CFLAGS 19333 and XRENDER_LIBS to avoid the need to call pkg-config. 19334 See the pkg-config man page for more details." "$LINENO" 5 19335 elif test $pkg_failed = untried; then 19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19337 printf "%s\n" "no" >&6; } 19338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19339 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19340 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19341 is in your PATH or set the PKG_CONFIG environment variable to the full 19342 path to pkg-config. 19343 19344 Alternatively, you may set the environment variables XRENDER_CFLAGS 19345 and XRENDER_LIBS to avoid the need to call pkg-config. 19346 See the pkg-config man page for more details. 19347 19348 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19349 See \`config.log' for more details" "$LINENO" 5; } 19350 else 19351 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 19352 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19354 printf "%s\n" "yes" >&6; } 19355 19356 fi 19357 19358 # Check freetype configuration 19359 19360 pkg_failed=no 19361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 2.1.6" >&5 19362 printf %s "checking for freetype2 >= 2.1.6... " >&6; } 19363 19364 if test -n "$FREETYPE_CFLAGS"; then 19365 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 19366 elif test -n "$PKG_CONFIG"; then 19367 if test -n "$PKG_CONFIG" && \ 19368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5 19369 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5 19370 ac_status=$? 19371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19372 test $ac_status = 0; }; then 19373 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.1.6" 2>/dev/null` 19374 test "x$?" != "x0" && pkg_failed=yes 19375 else 19376 pkg_failed=yes 19377 fi 19378 else 19379 pkg_failed=untried 19380 fi 19381 if test -n "$FREETYPE_LIBS"; then 19382 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 19383 elif test -n "$PKG_CONFIG"; then 19384 if test -n "$PKG_CONFIG" && \ 19385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.1.6\""; } >&5 19386 ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.1.6") 2>&5 19387 ac_status=$? 19388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19389 test $ac_status = 0; }; then 19390 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.1.6" 2>/dev/null` 19391 test "x$?" != "x0" && pkg_failed=yes 19392 else 19393 pkg_failed=yes 19394 fi 19395 else 19396 pkg_failed=untried 19397 fi 19398 19399 19400 19401 if test $pkg_failed = yes; then 19402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19403 printf "%s\n" "no" >&6; } 19404 19405 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19406 _pkg_short_errors_supported=yes 19407 else 19408 _pkg_short_errors_supported=no 19409 fi 19410 if test $_pkg_short_errors_supported = yes; then 19411 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1` 19412 else 19413 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2 >= 2.1.6" 2>&1` 19414 fi 19415 # Put the nasty error message in config.log where it belongs 19416 echo "$FREETYPE_PKG_ERRORS" >&5 19417 19418 as_fn_error $? "Package requirements (freetype2 >= 2.1.6) were not met: 19419 19420 $FREETYPE_PKG_ERRORS 19421 19422 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19423 installed software in a non-standard prefix. 19424 19425 Alternatively, you may set the environment variables FREETYPE_CFLAGS 19426 and FREETYPE_LIBS to avoid the need to call pkg-config. 19427 See the pkg-config man page for more details." "$LINENO" 5 19428 elif test $pkg_failed = untried; then 19429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19430 printf "%s\n" "no" >&6; } 19431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19432 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19433 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19434 is in your PATH or set the PKG_CONFIG environment variable to the full 19435 path to pkg-config. 19436 19437 Alternatively, you may set the environment variables FREETYPE_CFLAGS 19438 and FREETYPE_LIBS to avoid the need to call pkg-config. 19439 See the pkg-config man page for more details. 19440 19441 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19442 See \`config.log' for more details" "$LINENO" 5; } 19443 else 19444 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 19445 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 19446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19447 printf "%s\n" "yes" >&6; } 19448 19449 fi 19450 19451 # Check fontconfig configuration 19452 19453 pkg_failed=no 19454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.5.92" >&5 19455 printf %s "checking for fontconfig >= 2.5.92... " >&6; } 19456 19457 if test -n "$FONTCONFIG_CFLAGS"; then 19458 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS" 19459 elif test -n "$PKG_CONFIG"; then 19460 if test -n "$PKG_CONFIG" && \ 19461 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5 19462 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5 19463 ac_status=$? 19464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19465 test $ac_status = 0; }; then 19466 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.5.92" 2>/dev/null` 19467 test "x$?" != "x0" && pkg_failed=yes 19468 else 19469 pkg_failed=yes 19470 fi 19471 else 19472 pkg_failed=untried 19473 fi 19474 if test -n "$FONTCONFIG_LIBS"; then 19475 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS" 19476 elif test -n "$PKG_CONFIG"; then 19477 if test -n "$PKG_CONFIG" && \ 19478 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.5.92\""; } >&5 19479 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.5.92") 2>&5 19480 ac_status=$? 19481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19482 test $ac_status = 0; }; then 19483 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.5.92" 2>/dev/null` 19484 test "x$?" != "x0" && pkg_failed=yes 19485 else 19486 pkg_failed=yes 19487 fi 19488 else 19489 pkg_failed=untried 19490 fi 19491 19492 19493 19494 if test $pkg_failed = yes; then 19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19496 printf "%s\n" "no" >&6; } 19497 19498 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19499 _pkg_short_errors_supported=yes 19500 else 19501 _pkg_short_errors_supported=no 19502 fi 19503 if test $_pkg_short_errors_supported = yes; then 19504 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1` 19505 else 19506 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.5.92" 2>&1` 19507 fi 19508 # Put the nasty error message in config.log where it belongs 19509 echo "$FONTCONFIG_PKG_ERRORS" >&5 19510 19511 as_fn_error $? "Package requirements (fontconfig >= 2.5.92) were not met: 19512 19513 $FONTCONFIG_PKG_ERRORS 19514 19515 Consider adjusting the PKG_CONFIG_PATH environment variable if you 19516 installed software in a non-standard prefix. 19517 19518 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 19519 and FONTCONFIG_LIBS to avoid the need to call pkg-config. 19520 See the pkg-config man page for more details." "$LINENO" 5 19521 elif test $pkg_failed = untried; then 19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19523 printf "%s\n" "no" >&6; } 19524 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19525 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19526 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19527 is in your PATH or set the PKG_CONFIG environment variable to the full 19528 path to pkg-config. 19529 19530 Alternatively, you may set the environment variables FONTCONFIG_CFLAGS 19531 and FONTCONFIG_LIBS to avoid the need to call pkg-config. 19532 See the pkg-config man page for more details. 19533 19534 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19535 See \`config.log' for more details" "$LINENO" 5; } 19536 else 19537 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS 19538 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS 19539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19540 printf "%s\n" "yes" >&6; } 19541 19542 fi 19543 19544 19545 19546 19547 19548 19549 19550 19551 if test "$VERSION" = "" ; then 19552 VERSION=$PACKAGE_VERSION; 19553 fi 19554 19555 ac_config_files="$ac_config_files Makefile xft.pc src/Makefile man/Makefile" 19556 19557 cat >confcache <<\_ACEOF 19558 # This file is a shell script that caches the results of configure 19559 # tests run on this system so they can be shared between configure 19560 # scripts and configure runs, see configure's option --config-cache. 19561 # It is not useful on other systems. If it contains results you don't 19562 # want to keep, you may remove or edit it. 19563 # 19564 # config.status only pays attention to the cache file if you give it 19565 # the --recheck option to rerun configure. 19566 # 19567 # `ac_cv_env_foo' variables (set or unset) will be overridden when 19568 # loading this file, other *unset* `ac_cv_foo' will be assigned the 19569 # following values. 19570 19571 _ACEOF 19572 19573 # The following way of writing the cache mishandles newlines in values, 19574 # but we know of no workaround that is simple, portable, and efficient. 19575 # So, we kill variables containing newlines. 19576 # Ultrix sh set writes to stderr and can't be redirected directly, 19577 # and sets the high bit in the cache file unless we assign to the vars. 19578 ( 19579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19580 eval ac_val=\$$ac_var 19581 case $ac_val in #( 19582 *${as_nl}*) 19583 case $ac_var in #( 19584 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19585 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19586 esac 19587 case $ac_var in #( 19588 _ | IFS | as_nl) ;; #( 19589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19590 *) { eval $ac_var=; unset $ac_var;} ;; 19591 esac ;; 19592 esac 19593 done 19594 19595 (set) 2>&1 | 19596 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19597 *${as_nl}ac_space=\ *) 19598 # `set' does not quote correctly, so add quotes: double-quote 19599 # substitution turns \\\\ into \\, and sed turns \\ into \. 19600 sed -n \ 19601 "s/'/'\\\\''/g; 19602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19603 ;; #( 19604 *) 19605 # `set' quotes correctly as required by POSIX, so do not add quotes. 19606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19607 ;; 19608 esac | 19609 sort 19610 ) | 19611 sed ' 19612 /^ac_cv_env_/b end 19613 t clear 19614 :clear 19615 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 19616 t end 19617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19618 :end' >>confcache 19619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19620 if test -w "$cache_file"; then 19621 if test "x$cache_file" != "x/dev/null"; then 19622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19623 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 19624 if test ! -f "$cache_file" || test -h "$cache_file"; then 19625 cat confcache >"$cache_file" 19626 else 19627 case $cache_file in #( 19628 */* | ?:*) 19629 mv -f confcache "$cache_file"$$ && 19630 mv -f "$cache_file"$$ "$cache_file" ;; #( 19631 *) 19632 mv -f confcache "$cache_file" ;; 19633 esac 19634 fi 19635 fi 19636 else 19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19638 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 19639 fi 19640 fi 19641 rm -f confcache 19642 19643 test "x$prefix" = xNONE && prefix=$ac_default_prefix 19644 # Let make expand exec_prefix. 19645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19646 19647 DEFS=-DHAVE_CONFIG_H 19648 19649 ac_libobjs= 19650 ac_ltlibobjs= 19651 U= 19652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19653 # 1. Remove the extension, and $U if already installed. 19654 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19655 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 19656 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19657 # will be set to the directory where LIBOBJS objects are built. 19658 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19659 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19660 done 19661 LIBOBJS=$ac_libobjs 19662 19663 LTLIBOBJS=$ac_ltlibobjs 19664 19665 19666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19667 printf %s "checking that generated files are newer than configure... " >&6; } 19668 if test -n "$am_sleep_pid"; then 19669 # Hide warnings about reused PIDs. 19670 wait $am_sleep_pid 2>/dev/null 19671 fi 19672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 19673 printf "%s\n" "done" >&6; } 19674 if test -n "$EXEEXT"; then 19675 am__EXEEXT_TRUE= 19676 am__EXEEXT_FALSE='#' 19677 else 19678 am__EXEEXT_TRUE='#' 19679 am__EXEEXT_FALSE= 19680 fi 19681 19682 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19683 as_fn_error $? "conditional \"AMDEP\" was never defined. 19684 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19685 fi 19686 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19687 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19688 Usually this means the macro was only invoked conditionally." "$LINENO" 5 19689 fi 19690 19691 : "${CONFIG_STATUS=./config.status}" 19692 ac_write_fail=0 19693 ac_clean_files_save=$ac_clean_files 19694 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19696 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 19697 as_write_fail=0 19698 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19699 #! $SHELL 19700 # Generated by $as_me. 19701 # Run this file to recreate the current configuration. 19702 # Compiler output produced by configure, useful for debugging 19703 # configure, is in config.log if it exists. 19704 19705 debug=false 19706 ac_cs_recheck=false 19707 ac_cs_silent=false 19708 19709 SHELL=\${CONFIG_SHELL-$SHELL} 19710 export SHELL 19711 _ASEOF 19712 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19713 ## -------------------- ## 19714 ## M4sh Initialization. ## 19715 ## -------------------- ## 19716 19717 # Be more Bourne compatible 19718 DUALCASE=1; export DUALCASE # for MKS sh 19719 as_nop=: 19720 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 19721 then : 19722 emulate sh 19723 NULLCMD=: 19724 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19725 # is contrary to our usage. Disable this feature. 19726 alias -g '${1+"$@"}'='"$@"' 19727 setopt NO_GLOB_SUBST 19728 else $as_nop 19729 case `(set -o) 2>/dev/null` in #( 19730 *posix*) : 19731 set -o posix ;; #( 19732 *) : 19733 ;; 19734 esac 19735 fi 19736 19737 19738 19739 # Reset variables that may have inherited troublesome values from 19740 # the environment. 19741 19742 # IFS needs to be set, to space, tab, and newline, in precisely that order. 19743 # (If _AS_PATH_WALK were called with IFS unset, it would have the 19744 # side effect of setting IFS to empty, thus disabling word splitting.) 19745 # Quoting is to prevent editors from complaining about space-tab. 19746 as_nl=' 19747 ' 19748 export as_nl 19749 IFS=" "" $as_nl" 19750 19751 PS1='$ ' 19752 PS2='> ' 19753 PS4='+ ' 19754 19755 # Ensure predictable behavior from utilities with locale-dependent output. 19756 LC_ALL=C 19757 export LC_ALL 19758 LANGUAGE=C 19759 export LANGUAGE 19760 19761 # We cannot yet rely on "unset" to work, but we need these variables 19762 # to be unset--not just set to an empty or harmless value--now, to 19763 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 19764 # also avoids known problems related to "unset" and subshell syntax 19765 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 19766 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 19767 do eval test \${$as_var+y} \ 19768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19769 done 19770 19771 # Ensure that fds 0, 1, and 2 are open. 19772 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 19773 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 19774 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 19775 19776 # The user is always right. 19777 if ${PATH_SEPARATOR+false} :; then 19778 PATH_SEPARATOR=: 19779 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19781 PATH_SEPARATOR=';' 19782 } 19783 fi 19784 19785 19786 # Find who we are. Look in the path if we contain no directory separator. 19787 as_myself= 19788 case $0 in #(( 19789 *[\\/]* ) as_myself=$0 ;; 19790 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19791 for as_dir in $PATH 19792 do 19793 IFS=$as_save_IFS 19794 case $as_dir in #((( 19795 '') as_dir=./ ;; 19796 */) ;; 19797 *) as_dir=$as_dir/ ;; 19798 esac 19799 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 19800 done 19801 IFS=$as_save_IFS 19802 19803 ;; 19804 esac 19805 # We did not find ourselves, most probably we were run as `sh COMMAND' 19806 # in which case we are not to be found in the path. 19807 if test "x$as_myself" = x; then 19808 as_myself=$0 19809 fi 19810 if test ! -f "$as_myself"; then 19811 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19812 exit 1 19813 fi 19814 19815 19816 19817 # as_fn_error STATUS ERROR [LINENO LOG_FD] 19818 # ---------------------------------------- 19819 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19820 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19821 # script with STATUS, using 1 if that was 0. 19822 as_fn_error () 19823 { 19824 as_status=$1; test $as_status -eq 0 && as_status=1 19825 if test "$4"; then 19826 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19828 fi 19829 printf "%s\n" "$as_me: error: $2" >&2 19830 as_fn_exit $as_status 19831 } # as_fn_error 19832 19833 19834 19835 # as_fn_set_status STATUS 19836 # ----------------------- 19837 # Set $? to STATUS, without forking. 19838 as_fn_set_status () 19839 { 19840 return $1 19841 } # as_fn_set_status 19842 19843 # as_fn_exit STATUS 19844 # ----------------- 19845 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19846 as_fn_exit () 19847 { 19848 set +e 19849 as_fn_set_status $1 19850 exit $1 19851 } # as_fn_exit 19852 19853 # as_fn_unset VAR 19854 # --------------- 19855 # Portably unset VAR. 19856 as_fn_unset () 19857 { 19858 { eval $1=; unset $1;} 19859 } 19860 as_unset=as_fn_unset 19861 19862 # as_fn_append VAR VALUE 19863 # ---------------------- 19864 # Append the text in VALUE to the end of the definition contained in VAR. Take 19865 # advantage of any shell optimizations that allow amortized linear growth over 19866 # repeated appends, instead of the typical quadratic growth present in naive 19867 # implementations. 19868 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 19869 then : 19870 eval 'as_fn_append () 19871 { 19872 eval $1+=\$2 19873 }' 19874 else $as_nop 19875 as_fn_append () 19876 { 19877 eval $1=\$$1\$2 19878 } 19879 fi # as_fn_append 19880 19881 # as_fn_arith ARG... 19882 # ------------------ 19883 # Perform arithmetic evaluation on the ARGs, and store the result in the 19884 # global $as_val. Take advantage of shells that can avoid forks. The arguments 19885 # must be portable across $(()) and expr. 19886 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 19887 then : 19888 eval 'as_fn_arith () 19889 { 19890 as_val=$(( $* )) 19891 }' 19892 else $as_nop 19893 as_fn_arith () 19894 { 19895 as_val=`expr "$@" || test $? -eq 1` 19896 } 19897 fi # as_fn_arith 19898 19899 19900 if expr a : '\(a\)' >/dev/null 2>&1 && 19901 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19902 as_expr=expr 19903 else 19904 as_expr=false 19905 fi 19906 19907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19908 as_basename=basename 19909 else 19910 as_basename=false 19911 fi 19912 19913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19914 as_dirname=dirname 19915 else 19916 as_dirname=false 19917 fi 19918 19919 as_me=`$as_basename -- "$0" || 19920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19921 X"$0" : 'X\(//\)$' \| \ 19922 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19923 printf "%s\n" X/"$0" | 19924 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19925 s//\1/ 19926 q 19927 } 19928 /^X\/\(\/\/\)$/{ 19929 s//\1/ 19930 q 19931 } 19932 /^X\/\(\/\).*/{ 19933 s//\1/ 19934 q 19935 } 19936 s/.*/./; q'` 19937 19938 # Avoid depending upon Character Ranges. 19939 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19942 as_cr_digits='0123456789' 19943 as_cr_alnum=$as_cr_Letters$as_cr_digits 19944 19945 19946 # Determine whether it's possible to make 'echo' print without a newline. 19947 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 19948 # for compatibility with existing Makefiles. 19949 ECHO_C= ECHO_N= ECHO_T= 19950 case `echo -n x` in #((((( 19951 -n*) 19952 case `echo 'xy\c'` in 19953 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19954 xy) ECHO_C='\c';; 19955 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19956 ECHO_T=' ';; 19957 esac;; 19958 *) 19959 ECHO_N='-n';; 19960 esac 19961 19962 # For backward compatibility with old third-party macros, we provide 19963 # the shell variables $as_echo and $as_echo_n. New code should use 19964 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 19965 as_echo='printf %s\n' 19966 as_echo_n='printf %s' 19967 19968 rm -f conf$$ conf$$.exe conf$$.file 19969 if test -d conf$$.dir; then 19970 rm -f conf$$.dir/conf$$.file 19971 else 19972 rm -f conf$$.dir 19973 mkdir conf$$.dir 2>/dev/null 19974 fi 19975 if (echo >conf$$.file) 2>/dev/null; then 19976 if ln -s conf$$.file conf$$ 2>/dev/null; then 19977 as_ln_s='ln -s' 19978 # ... but there are two gotchas: 19979 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19980 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19981 # In both cases, we have to default to `cp -pR'. 19982 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19983 as_ln_s='cp -pR' 19984 elif ln conf$$.file conf$$ 2>/dev/null; then 19985 as_ln_s=ln 19986 else 19987 as_ln_s='cp -pR' 19988 fi 19989 else 19990 as_ln_s='cp -pR' 19991 fi 19992 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19993 rmdir conf$$.dir 2>/dev/null 19994 19995 19996 # as_fn_mkdir_p 19997 # ------------- 19998 # Create "$as_dir" as a directory, including parents if necessary. 19999 as_fn_mkdir_p () 20000 { 20001 20002 case $as_dir in #( 20003 -*) as_dir=./$as_dir;; 20004 esac 20005 test -d "$as_dir" || eval $as_mkdir_p || { 20006 as_dirs= 20007 while :; do 20008 case $as_dir in #( 20009 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20010 *) as_qdir=$as_dir;; 20011 esac 20012 as_dirs="'$as_qdir' $as_dirs" 20013 as_dir=`$as_dirname -- "$as_dir" || 20014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20015 X"$as_dir" : 'X\(//\)[^/]' \| \ 20016 X"$as_dir" : 'X\(//\)$' \| \ 20017 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20018 printf "%s\n" X"$as_dir" | 20019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20020 s//\1/ 20021 q 20022 } 20023 /^X\(\/\/\)[^/].*/{ 20024 s//\1/ 20025 q 20026 } 20027 /^X\(\/\/\)$/{ 20028 s//\1/ 20029 q 20030 } 20031 /^X\(\/\).*/{ 20032 s//\1/ 20033 q 20034 } 20035 s/.*/./; q'` 20036 test -d "$as_dir" && break 20037 done 20038 test -z "$as_dirs" || eval "mkdir $as_dirs" 20039 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20040 20041 20042 } # as_fn_mkdir_p 20043 if mkdir -p . 2>/dev/null; then 20044 as_mkdir_p='mkdir -p "$as_dir"' 20045 else 20046 test -d ./-p && rmdir ./-p 20047 as_mkdir_p=false 20048 fi 20049 20050 20051 # as_fn_executable_p FILE 20052 # ----------------------- 20053 # Test if FILE is an executable regular file. 20054 as_fn_executable_p () 20055 { 20056 test -f "$1" && test -x "$1" 20057 } # as_fn_executable_p 20058 as_test_x='test -x' 20059 as_executable_p=as_fn_executable_p 20060 20061 # Sed expression to map a string onto a valid CPP name. 20062 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20063 20064 # Sed expression to map a string onto a valid variable name. 20065 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20066 20067 20068 exec 6>&1 20069 ## ----------------------------------- ## 20070 ## Main body of $CONFIG_STATUS script. ## 20071 ## ----------------------------------- ## 20072 _ASEOF 20073 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20074 20075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20076 # Save the log message, to keep $0 and so on meaningful, and to 20077 # report actual input values of CONFIG_FILES etc. instead of their 20078 # values after options handling. 20079 ac_log=" 20080 This file was extended by libXft $as_me 2.3.9, which was 20081 generated by GNU Autoconf 2.71. Invocation command line was 20082 20083 CONFIG_FILES = $CONFIG_FILES 20084 CONFIG_HEADERS = $CONFIG_HEADERS 20085 CONFIG_LINKS = $CONFIG_LINKS 20086 CONFIG_COMMANDS = $CONFIG_COMMANDS 20087 $ $0 $@ 20088 20089 on `(hostname || uname -n) 2>/dev/null | sed 1q` 20090 " 20091 20092 _ACEOF 20093 20094 case $ac_config_files in *" 20095 "*) set x $ac_config_files; shift; ac_config_files=$*;; 20096 esac 20097 20098 case $ac_config_headers in *" 20099 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20100 esac 20101 20102 20103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20104 # Files that config.status was made for. 20105 config_files="$ac_config_files" 20106 config_headers="$ac_config_headers" 20107 config_commands="$ac_config_commands" 20108 20109 _ACEOF 20110 20111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20112 ac_cs_usage="\ 20113 \`$as_me' instantiates files and other configuration actions 20114 from templates according to the current configuration. Unless the files 20115 and actions are specified as TAGs, all are instantiated by default. 20116 20117 Usage: $0 [OPTION]... [TAG]... 20118 20119 -h, --help print this help, then exit 20120 -V, --version print version number and configuration settings, then exit 20121 --config print configuration, then exit 20122 -q, --quiet, --silent 20123 do not print progress messages 20124 -d, --debug don't remove temporary files 20125 --recheck update $as_me by reconfiguring in the same conditions 20126 --file=FILE[:TEMPLATE] 20127 instantiate the configuration file FILE 20128 --header=FILE[:TEMPLATE] 20129 instantiate the configuration header FILE 20130 20131 Configuration files: 20132 $config_files 20133 20134 Configuration headers: 20135 $config_headers 20136 20137 Configuration commands: 20138 $config_commands 20139 20140 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXft/issues>." 20141 20142 _ACEOF 20143 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 20144 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 20145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20146 ac_cs_config='$ac_cs_config_escaped' 20147 ac_cs_version="\\ 20148 libXft config.status 2.3.9 20149 configured by $0, generated by GNU Autoconf 2.71, 20150 with options \\"\$ac_cs_config\\" 20151 20152 Copyright (C) 2021 Free Software Foundation, Inc. 20153 This config.status script is free software; the Free Software Foundation 20154 gives unlimited permission to copy, distribute and modify it." 20155 20156 ac_pwd='$ac_pwd' 20157 srcdir='$srcdir' 20158 INSTALL='$INSTALL' 20159 MKDIR_P='$MKDIR_P' 20160 AWK='$AWK' 20161 test -n "\$AWK" || AWK=awk 20162 _ACEOF 20163 20164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20165 # The default lists apply if the user does not specify any file. 20166 ac_need_defaults=: 20167 while test $# != 0 20168 do 20169 case $1 in 20170 --*=?*) 20171 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20172 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20173 ac_shift=: 20174 ;; 20175 --*=) 20176 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20177 ac_optarg= 20178 ac_shift=: 20179 ;; 20180 *) 20181 ac_option=$1 20182 ac_optarg=$2 20183 ac_shift=shift 20184 ;; 20185 esac 20186 20187 case $ac_option in 20188 # Handling of the options. 20189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20190 ac_cs_recheck=: ;; 20191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20192 printf "%s\n" "$ac_cs_version"; exit ;; 20193 --config | --confi | --conf | --con | --co | --c ) 20194 printf "%s\n" "$ac_cs_config"; exit ;; 20195 --debug | --debu | --deb | --de | --d | -d ) 20196 debug=: ;; 20197 --file | --fil | --fi | --f ) 20198 $ac_shift 20199 case $ac_optarg in 20200 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20201 '') as_fn_error $? "missing file argument" ;; 20202 esac 20203 as_fn_append CONFIG_FILES " '$ac_optarg'" 20204 ac_need_defaults=false;; 20205 --header | --heade | --head | --hea ) 20206 $ac_shift 20207 case $ac_optarg in 20208 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20209 esac 20210 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20211 ac_need_defaults=false;; 20212 --he | --h) 20213 # Conflict between --help and --header 20214 as_fn_error $? "ambiguous option: \`$1' 20215 Try \`$0 --help' for more information.";; 20216 --help | --hel | -h ) 20217 printf "%s\n" "$ac_cs_usage"; exit ;; 20218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20219 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20220 ac_cs_silent=: ;; 20221 20222 # This is an error. 20223 -*) as_fn_error $? "unrecognized option: \`$1' 20224 Try \`$0 --help' for more information." ;; 20225 20226 *) as_fn_append ac_config_targets " $1" 20227 ac_need_defaults=false ;; 20228 20229 esac 20230 shift 20231 done 20232 20233 ac_configure_extra_args= 20234 20235 if $ac_cs_silent; then 20236 exec 6>/dev/null 20237 ac_configure_extra_args="$ac_configure_extra_args --silent" 20238 fi 20239 20240 _ACEOF 20241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20242 if \$ac_cs_recheck; then 20243 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20244 shift 20245 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 20246 CONFIG_SHELL='$SHELL' 20247 export CONFIG_SHELL 20248 exec "\$@" 20249 fi 20250 20251 _ACEOF 20252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20253 exec 5>>config.log 20254 { 20255 echo 20256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20257 ## Running $as_me. ## 20258 _ASBOX 20259 printf "%s\n" "$ac_log" 20260 } >&5 20261 20262 _ACEOF 20263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20264 # 20265 # INIT-COMMANDS 20266 # 20267 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 20268 20269 20270 # The HP-UX ksh and POSIX shell print the target directory to stdout 20271 # if CDPATH is set. 20272 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20273 20274 sed_quote_subst='$sed_quote_subst' 20275 double_quote_subst='$double_quote_subst' 20276 delay_variable_subst='$delay_variable_subst' 20277 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20278 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20279 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20280 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20281 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20282 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20283 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20284 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20285 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20286 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20287 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20288 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20289 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20290 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20291 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20292 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20293 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20294 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20295 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20296 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20297 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20298 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20299 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20300 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20301 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20302 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20303 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20304 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20305 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20306 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20307 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20308 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20309 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20310 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20311 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 20312 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20313 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20314 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20315 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20316 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20317 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20318 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20319 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20320 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 20321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20322 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20323 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20324 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20325 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20326 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20327 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20328 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20329 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20330 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20331 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20332 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20333 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20334 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20335 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20336 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20337 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"`' 20338 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20339 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20340 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20341 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20342 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20343 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20344 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20345 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20346 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20347 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20348 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20349 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20350 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20351 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20352 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20353 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20354 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20355 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20356 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20357 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20358 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20359 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20360 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20361 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20362 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20363 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20364 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20365 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20366 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20367 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20368 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20369 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20370 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20371 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20372 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20373 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20374 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20375 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20376 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20377 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20378 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20379 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20380 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20381 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20382 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20383 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20384 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20385 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20386 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20387 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20388 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20389 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20390 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20391 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20392 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20393 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20394 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20395 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20396 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20397 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20398 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20399 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20400 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20401 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20402 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20403 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20404 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20405 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20406 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20407 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20408 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20409 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20410 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20411 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20412 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20413 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20414 20415 LTCC='$LTCC' 20416 LTCFLAGS='$LTCFLAGS' 20417 compiler='$compiler_DEFAULT' 20418 20419 # A function that is used when there is no print builtin or printf. 20420 func_fallback_echo () 20421 { 20422 eval 'cat <<_LTECHO_EOF 20423 \$1 20424 _LTECHO_EOF' 20425 } 20426 20427 # Quote evaled strings. 20428 for var in SHELL \ 20429 ECHO \ 20430 PATH_SEPARATOR \ 20431 SED \ 20432 GREP \ 20433 EGREP \ 20434 FGREP \ 20435 LD \ 20436 NM \ 20437 LN_S \ 20438 lt_SP2NL \ 20439 lt_NL2SP \ 20440 reload_flag \ 20441 FILECMD \ 20442 OBJDUMP \ 20443 deplibs_check_method \ 20444 file_magic_cmd \ 20445 file_magic_glob \ 20446 want_nocaseglob \ 20447 DLLTOOL \ 20448 sharedlib_from_linklib_cmd \ 20449 AR \ 20450 archiver_list_spec \ 20451 STRIP \ 20452 RANLIB \ 20453 CC \ 20454 CFLAGS \ 20455 compiler \ 20456 lt_cv_sys_global_symbol_pipe \ 20457 lt_cv_sys_global_symbol_to_cdecl \ 20458 lt_cv_sys_global_symbol_to_import \ 20459 lt_cv_sys_global_symbol_to_c_name_address \ 20460 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20461 lt_cv_nm_interface \ 20462 nm_file_list_spec \ 20463 lt_cv_truncate_bin \ 20464 lt_prog_compiler_no_builtin_flag \ 20465 lt_prog_compiler_pic \ 20466 lt_prog_compiler_wl \ 20467 lt_prog_compiler_static \ 20468 lt_cv_prog_compiler_c_o \ 20469 need_locks \ 20470 MANIFEST_TOOL \ 20471 DSYMUTIL \ 20472 NMEDIT \ 20473 LIPO \ 20474 OTOOL \ 20475 OTOOL64 \ 20476 shrext_cmds \ 20477 export_dynamic_flag_spec \ 20478 whole_archive_flag_spec \ 20479 compiler_needs_object \ 20480 with_gnu_ld \ 20481 allow_undefined_flag \ 20482 no_undefined_flag \ 20483 hardcode_libdir_flag_spec \ 20484 hardcode_libdir_separator \ 20485 exclude_expsyms \ 20486 include_expsyms \ 20487 file_list_spec \ 20488 variables_saved_for_relink \ 20489 libname_spec \ 20490 library_names_spec \ 20491 soname_spec \ 20492 install_override_mode \ 20493 finish_eval \ 20494 old_striplib \ 20495 striplib; do 20496 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20497 *[\\\\\\\`\\"\\\$]*) 20498 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20499 ;; 20500 *) 20501 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20502 ;; 20503 esac 20504 done 20505 20506 # Double-quote double-evaled strings. 20507 for var in reload_cmds \ 20508 old_postinstall_cmds \ 20509 old_postuninstall_cmds \ 20510 old_archive_cmds \ 20511 extract_expsyms_cmds \ 20512 old_archive_from_new_cmds \ 20513 old_archive_from_expsyms_cmds \ 20514 archive_cmds \ 20515 archive_expsym_cmds \ 20516 module_cmds \ 20517 module_expsym_cmds \ 20518 export_symbols_cmds \ 20519 prelink_cmds \ 20520 postlink_cmds \ 20521 postinstall_cmds \ 20522 postuninstall_cmds \ 20523 finish_cmds \ 20524 sys_lib_search_path_spec \ 20525 configure_time_dlsearch_path \ 20526 configure_time_lt_sys_library_path; do 20527 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20528 *[\\\\\\\`\\"\\\$]*) 20529 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20530 ;; 20531 *) 20532 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20533 ;; 20534 esac 20535 done 20536 20537 ac_aux_dir='$ac_aux_dir' 20538 20539 # See if we are running on zsh, and set the options that allow our 20540 # commands through without removal of \ escapes INIT. 20541 if test -n "\${ZSH_VERSION+set}"; then 20542 setopt NO_GLOB_SUBST 20543 fi 20544 20545 20546 PACKAGE='$PACKAGE' 20547 VERSION='$VERSION' 20548 RM='$RM' 20549 ofile='$ofile' 20550 20551 20552 20553 20554 _ACEOF 20555 20556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20557 20558 # Handling of arguments. 20559 for ac_config_target in $ac_config_targets 20560 do 20561 case $ac_config_target in 20562 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20563 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20564 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20565 "include/X11/Xft/Xft.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/Xft/Xft.h" ;; 20566 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20567 "xft.pc") CONFIG_FILES="$CONFIG_FILES xft.pc" ;; 20568 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20569 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 20570 20571 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20572 esac 20573 done 20574 20575 20576 # If the user did not use the arguments to specify the items to instantiate, 20577 # then the envvar interface is used. Set only those that are not. 20578 # We use the long form for the default assignment because of an extremely 20579 # bizarre bug on SunOS 4.1.3. 20580 if $ac_need_defaults; then 20581 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 20582 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 20583 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 20584 fi 20585 20586 # Have a temporary directory for convenience. Make it in the build tree 20587 # simply because there is no reason against having it here, and in addition, 20588 # creating and moving files from /tmp can sometimes cause problems. 20589 # Hook for its removal unless debugging. 20590 # Note that there is a small window in which the directory will not be cleaned: 20591 # after its creation but before its name has been assigned to `$tmp'. 20592 $debug || 20593 { 20594 tmp= ac_tmp= 20595 trap 'exit_status=$? 20596 : "${ac_tmp:=$tmp}" 20597 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20598 ' 0 20599 trap 'as_fn_exit 1' 1 2 13 15 20600 } 20601 # Create a (secure) tmp directory for tmp files. 20602 20603 { 20604 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20605 test -d "$tmp" 20606 } || 20607 { 20608 tmp=./conf$$-$RANDOM 20609 (umask 077 && mkdir "$tmp") 20610 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20611 ac_tmp=$tmp 20612 20613 # Set up the scripts for CONFIG_FILES section. 20614 # No need to generate them if there are no CONFIG_FILES. 20615 # This happens for instance with `./config.status config.h'. 20616 if test -n "$CONFIG_FILES"; then 20617 20618 20619 ac_cr=`echo X | tr X '\015'` 20620 # On cygwin, bash can eat \r inside `` if the user requested igncr. 20621 # But we know of no other shell where ac_cr would be empty at this 20622 # point, so we can use a bashism as a fallback. 20623 if test "x$ac_cr" = x; then 20624 eval ac_cr=\$\'\\r\' 20625 fi 20626 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20627 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20628 ac_cs_awk_cr='\\r' 20629 else 20630 ac_cs_awk_cr=$ac_cr 20631 fi 20632 20633 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20634 _ACEOF 20635 20636 20637 { 20638 echo "cat >conf$$subs.awk <<_ACEOF" && 20639 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20640 echo "_ACEOF" 20641 } >conf$$subs.sh || 20642 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20643 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20644 ac_delim='%!_!# ' 20645 for ac_last_try in false false false false false :; do 20646 . ./conf$$subs.sh || 20647 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20648 20649 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20650 if test $ac_delim_n = $ac_delim_num; then 20651 break 20652 elif $ac_last_try; then 20653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20654 else 20655 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20656 fi 20657 done 20658 rm -f conf$$subs.sh 20659 20660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20661 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20662 _ACEOF 20663 sed -n ' 20664 h 20665 s/^/S["/; s/!.*/"]=/ 20666 p 20667 g 20668 s/^[^!]*!// 20669 :repl 20670 t repl 20671 s/'"$ac_delim"'$// 20672 t delim 20673 :nl 20674 h 20675 s/\(.\{148\}\)..*/\1/ 20676 t more1 20677 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20678 p 20679 n 20680 b repl 20681 :more1 20682 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20683 p 20684 g 20685 s/.\{148\}// 20686 t nl 20687 :delim 20688 h 20689 s/\(.\{148\}\)..*/\1/ 20690 t more2 20691 s/["\\]/\\&/g; s/^/"/; s/$/"/ 20692 p 20693 b 20694 :more2 20695 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20696 p 20697 g 20698 s/.\{148\}// 20699 t delim 20700 ' <conf$$subs.awk | sed ' 20701 /^[^""]/{ 20702 N 20703 s/\n// 20704 } 20705 ' >>$CONFIG_STATUS || ac_write_fail=1 20706 rm -f conf$$subs.awk 20707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20708 _ACAWK 20709 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20710 for (key in S) S_is_set[key] = 1 20711 FS = "" 20712 20713 } 20714 { 20715 line = $ 0 20716 nfields = split(line, field, "@") 20717 substed = 0 20718 len = length(field[1]) 20719 for (i = 2; i < nfields; i++) { 20720 key = field[i] 20721 keylen = length(key) 20722 if (S_is_set[key]) { 20723 value = S[key] 20724 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20725 len += length(value) + length(field[++i]) 20726 substed = 1 20727 } else 20728 len += 1 + keylen 20729 } 20730 20731 print line 20732 } 20733 20734 _ACAWK 20735 _ACEOF 20736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20737 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20738 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20739 else 20740 cat 20741 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20742 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20743 _ACEOF 20744 20745 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20746 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20747 # trailing colons and then remove the whole line if VPATH becomes empty 20748 # (actually we leave an empty line to preserve line numbers). 20749 if test "x$srcdir" = x.; then 20750 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20751 h 20752 s/// 20753 s/^/:/ 20754 s/[ ]*$/:/ 20755 s/:\$(srcdir):/:/g 20756 s/:\${srcdir}:/:/g 20757 s/:@srcdir@:/:/g 20758 s/^:*// 20759 s/:*$// 20760 x 20761 s/\(=[ ]*\).*/\1/ 20762 G 20763 s/\n// 20764 s/^[^=]*=[ ]*$// 20765 }' 20766 fi 20767 20768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20769 fi # test -n "$CONFIG_FILES" 20770 20771 # Set up the scripts for CONFIG_HEADERS section. 20772 # No need to generate them if there are no CONFIG_HEADERS. 20773 # This happens for instance with `./config.status Makefile'. 20774 if test -n "$CONFIG_HEADERS"; then 20775 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20776 BEGIN { 20777 _ACEOF 20778 20779 # Transform confdefs.h into an awk script `defines.awk', embedded as 20780 # here-document in config.status, that substitutes the proper values into 20781 # config.h.in to produce config.h. 20782 20783 # Create a delimiter string that does not exist in confdefs.h, to ease 20784 # handling of long lines. 20785 ac_delim='%!_!# ' 20786 for ac_last_try in false false :; do 20787 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20788 if test -z "$ac_tt"; then 20789 break 20790 elif $ac_last_try; then 20791 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20792 else 20793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20794 fi 20795 done 20796 20797 # For the awk script, D is an array of macro values keyed by name, 20798 # likewise P contains macro parameters if any. Preserve backslash 20799 # newline sequences. 20800 20801 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20802 sed -n ' 20803 s/.\{148\}/&'"$ac_delim"'/g 20804 t rset 20805 :rset 20806 s/^[ ]*#[ ]*define[ ][ ]*/ / 20807 t def 20808 d 20809 :def 20810 s/\\$// 20811 t bsnl 20812 s/["\\]/\\&/g 20813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20814 D["\1"]=" \3"/p 20815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20816 d 20817 :bsnl 20818 s/["\\]/\\&/g 20819 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20820 D["\1"]=" \3\\\\\\n"\\/p 20821 t cont 20822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20823 t cont 20824 d 20825 :cont 20826 n 20827 s/.\{148\}/&'"$ac_delim"'/g 20828 t clear 20829 :clear 20830 s/\\$// 20831 t bsnlc 20832 s/["\\]/\\&/g; s/^/"/; s/$/"/p 20833 d 20834 :bsnlc 20835 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20836 b cont 20837 ' <confdefs.h | sed ' 20838 s/'"$ac_delim"'/"\\\ 20839 "/g' >>$CONFIG_STATUS || ac_write_fail=1 20840 20841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20842 for (key in D) D_is_set[key] = 1 20843 FS = "" 20844 } 20845 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20846 line = \$ 0 20847 split(line, arg, " ") 20848 if (arg[1] == "#") { 20849 defundef = arg[2] 20850 mac1 = arg[3] 20851 } else { 20852 defundef = substr(arg[1], 2) 20853 mac1 = arg[2] 20854 } 20855 split(mac1, mac2, "(") #) 20856 macro = mac2[1] 20857 prefix = substr(line, 1, index(line, defundef) - 1) 20858 if (D_is_set[macro]) { 20859 # Preserve the white space surrounding the "#". 20860 print prefix "define", macro P[macro] D[macro] 20861 next 20862 } else { 20863 # Replace #undef with comments. This is necessary, for example, 20864 # in the case of _POSIX_SOURCE, which is predefined and required 20865 # on some systems where configure will not decide to define it. 20866 if (defundef == "undef") { 20867 print "/*", prefix defundef, macro, "*/" 20868 next 20869 } 20870 } 20871 } 20872 { print } 20873 _ACAWK 20874 _ACEOF 20875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20876 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20877 fi # test -n "$CONFIG_HEADERS" 20878 20879 20880 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20881 shift 20882 for ac_tag 20883 do 20884 case $ac_tag in 20885 :[FHLC]) ac_mode=$ac_tag; continue;; 20886 esac 20887 case $ac_mode$ac_tag in 20888 :[FHL]*:*);; 20889 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20890 :[FH]-) ac_tag=-:-;; 20891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20892 esac 20893 ac_save_IFS=$IFS 20894 IFS=: 20895 set x $ac_tag 20896 IFS=$ac_save_IFS 20897 shift 20898 ac_file=$1 20899 shift 20900 20901 case $ac_mode in 20902 :L) ac_source=$1;; 20903 :[FH]) 20904 ac_file_inputs= 20905 for ac_f 20906 do 20907 case $ac_f in 20908 -) ac_f="$ac_tmp/stdin";; 20909 *) # Look for the file first in the build tree, then in the source tree 20910 # (if the path is not absolute). The absolute path cannot be DOS-style, 20911 # because $ac_f cannot contain `:'. 20912 test -f "$ac_f" || 20913 case $ac_f in 20914 [\\/$]*) false;; 20915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20916 esac || 20917 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20918 esac 20919 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20920 as_fn_append ac_file_inputs " '$ac_f'" 20921 done 20922 20923 # Let's still pretend it is `configure' which instantiates (i.e., don't 20924 # use $as_me), people would be surprised to read: 20925 # /* config.h. Generated by config.status. */ 20926 configure_input='Generated from '` 20927 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20928 `' by configure.' 20929 if test x"$ac_file" != x-; then 20930 configure_input="$ac_file. $configure_input" 20931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20932 printf "%s\n" "$as_me: creating $ac_file" >&6;} 20933 fi 20934 # Neutralize special characters interpreted by sed in replacement strings. 20935 case $configure_input in #( 20936 *\&* | *\|* | *\\* ) 20937 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 20938 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20939 *) ac_sed_conf_input=$configure_input;; 20940 esac 20941 20942 case $ac_tag in 20943 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20944 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20945 esac 20946 ;; 20947 esac 20948 20949 ac_dir=`$as_dirname -- "$ac_file" || 20950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20951 X"$ac_file" : 'X\(//\)[^/]' \| \ 20952 X"$ac_file" : 'X\(//\)$' \| \ 20953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20954 printf "%s\n" X"$ac_file" | 20955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20956 s//\1/ 20957 q 20958 } 20959 /^X\(\/\/\)[^/].*/{ 20960 s//\1/ 20961 q 20962 } 20963 /^X\(\/\/\)$/{ 20964 s//\1/ 20965 q 20966 } 20967 /^X\(\/\).*/{ 20968 s//\1/ 20969 q 20970 } 20971 s/.*/./; q'` 20972 as_dir="$ac_dir"; as_fn_mkdir_p 20973 ac_builddir=. 20974 20975 case "$ac_dir" in 20976 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20977 *) 20978 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 20979 # A ".." for each directory in $ac_dir_suffix. 20980 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20981 case $ac_top_builddir_sub in 20982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20984 esac ;; 20985 esac 20986 ac_abs_top_builddir=$ac_pwd 20987 ac_abs_builddir=$ac_pwd$ac_dir_suffix 20988 # for backward compatibility: 20989 ac_top_builddir=$ac_top_build_prefix 20990 20991 case $srcdir in 20992 .) # We are building in place. 20993 ac_srcdir=. 20994 ac_top_srcdir=$ac_top_builddir_sub 20995 ac_abs_top_srcdir=$ac_pwd ;; 20996 [\\/]* | ?:[\\/]* ) # Absolute name. 20997 ac_srcdir=$srcdir$ac_dir_suffix; 20998 ac_top_srcdir=$srcdir 20999 ac_abs_top_srcdir=$srcdir ;; 21000 *) # Relative name. 21001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21002 ac_top_srcdir=$ac_top_build_prefix$srcdir 21003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21004 esac 21005 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21006 21007 21008 case $ac_mode in 21009 :F) 21010 # 21011 # CONFIG_FILE 21012 # 21013 21014 case $INSTALL in 21015 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21016 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21017 esac 21018 ac_MKDIR_P=$MKDIR_P 21019 case $MKDIR_P in 21020 [\\/$]* | ?:[\\/]* ) ;; 21021 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21022 esac 21023 _ACEOF 21024 21025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21026 # If the template does not know about datarootdir, expand it. 21027 # FIXME: This hack should be removed a few years after 2.60. 21028 ac_datarootdir_hack=; ac_datarootdir_seen= 21029 ac_sed_dataroot=' 21030 /datarootdir/ { 21031 p 21032 q 21033 } 21034 /@datadir@/p 21035 /@docdir@/p 21036 /@infodir@/p 21037 /@localedir@/p 21038 /@mandir@/p' 21039 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21040 *datarootdir*) ac_datarootdir_seen=yes;; 21041 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21043 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21044 _ACEOF 21045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21046 ac_datarootdir_hack=' 21047 s&@datadir@&$datadir&g 21048 s&@docdir@&$docdir&g 21049 s&@infodir@&$infodir&g 21050 s&@localedir@&$localedir&g 21051 s&@mandir@&$mandir&g 21052 s&\\\${datarootdir}&$datarootdir&g' ;; 21053 esac 21054 _ACEOF 21055 21056 # Neutralize VPATH when `$srcdir' = `.'. 21057 # Shell code in configure.ac might set extrasub. 21058 # FIXME: do we really want to maintain this feature? 21059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21060 ac_sed_extra="$ac_vpsub 21061 $extrasub 21062 _ACEOF 21063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21064 :t 21065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21066 s|@configure_input@|$ac_sed_conf_input|;t t 21067 s&@top_builddir@&$ac_top_builddir_sub&;t t 21068 s&@top_build_prefix@&$ac_top_build_prefix&;t t 21069 s&@srcdir@&$ac_srcdir&;t t 21070 s&@abs_srcdir@&$ac_abs_srcdir&;t t 21071 s&@top_srcdir@&$ac_top_srcdir&;t t 21072 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21073 s&@builddir@&$ac_builddir&;t t 21074 s&@abs_builddir@&$ac_abs_builddir&;t t 21075 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21076 s&@INSTALL@&$ac_INSTALL&;t t 21077 s&@MKDIR_P@&$ac_MKDIR_P&;t t 21078 $ac_datarootdir_hack 21079 " 21080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21081 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21082 21083 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21084 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21086 "$ac_tmp/out"`; test -z "$ac_out"; } && 21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21088 which seems to be undefined. Please make sure it is defined" >&5 21089 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21090 which seems to be undefined. Please make sure it is defined" >&2;} 21091 21092 rm -f "$ac_tmp/stdin" 21093 case $ac_file in 21094 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21095 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21096 esac \ 21097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21098 ;; 21099 :H) 21100 # 21101 # CONFIG_HEADER 21102 # 21103 if test x"$ac_file" != x-; then 21104 { 21105 printf "%s\n" "/* $configure_input */" >&1 \ 21106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21107 } >"$ac_tmp/config.h" \ 21108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21109 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21111 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 21112 else 21113 rm -f "$ac_file" 21114 mv "$ac_tmp/config.h" "$ac_file" \ 21115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21116 fi 21117 else 21118 printf "%s\n" "/* $configure_input */" >&1 \ 21119 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21120 || as_fn_error $? "could not create -" "$LINENO" 5 21121 fi 21122 # Compute "$ac_file"'s index in $config_headers. 21123 _am_arg="$ac_file" 21124 _am_stamp_count=1 21125 for _am_header in $config_headers :; do 21126 case $_am_header in 21127 $_am_arg | $_am_arg:* ) 21128 break ;; 21129 * ) 21130 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21131 esac 21132 done 21133 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21134 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21135 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21136 X"$_am_arg" : 'X\(//\)$' \| \ 21137 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21138 printf "%s\n" X"$_am_arg" | 21139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21140 s//\1/ 21141 q 21142 } 21143 /^X\(\/\/\)[^/].*/{ 21144 s//\1/ 21145 q 21146 } 21147 /^X\(\/\/\)$/{ 21148 s//\1/ 21149 q 21150 } 21151 /^X\(\/\).*/{ 21152 s//\1/ 21153 q 21154 } 21155 s/.*/./; q'`/stamp-h$_am_stamp_count 21156 ;; 21157 21158 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21159 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 21160 ;; 21161 esac 21162 21163 21164 case $ac_file$ac_mode in 21165 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21166 # Older Autoconf quotes --file arguments for eval, but not when files 21167 # are listed without --file. Let's play safe and only enable the eval 21168 # if we detect the quoting. 21169 # TODO: see whether this extra hack can be removed once we start 21170 # requiring Autoconf 2.70 or later. 21171 case $CONFIG_FILES in #( 21172 *\'*) : 21173 eval set x "$CONFIG_FILES" ;; #( 21174 *) : 21175 set x $CONFIG_FILES ;; #( 21176 *) : 21177 ;; 21178 esac 21179 shift 21180 # Used to flag and report bootstrapping failures. 21181 am_rc=0 21182 for am_mf 21183 do 21184 # Strip MF so we end up with the name of the file. 21185 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 21186 # Check whether this is an Automake generated Makefile which includes 21187 # dependency-tracking related rules and includes. 21188 # Grep'ing the whole file directly is not great: AIX grep has a line 21189 # limit of 2048, but all sed's we know have understand at least 4000. 21190 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 21191 || continue 21192 am_dirpart=`$as_dirname -- "$am_mf" || 21193 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21194 X"$am_mf" : 'X\(//\)[^/]' \| \ 21195 X"$am_mf" : 'X\(//\)$' \| \ 21196 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21197 printf "%s\n" X"$am_mf" | 21198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21199 s//\1/ 21200 q 21201 } 21202 /^X\(\/\/\)[^/].*/{ 21203 s//\1/ 21204 q 21205 } 21206 /^X\(\/\/\)$/{ 21207 s//\1/ 21208 q 21209 } 21210 /^X\(\/\).*/{ 21211 s//\1/ 21212 q 21213 } 21214 s/.*/./; q'` 21215 am_filepart=`$as_basename -- "$am_mf" || 21216 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 21217 X"$am_mf" : 'X\(//\)$' \| \ 21218 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 21219 printf "%s\n" X/"$am_mf" | 21220 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21221 s//\1/ 21222 q 21223 } 21224 /^X\/\(\/\/\)$/{ 21225 s//\1/ 21226 q 21227 } 21228 /^X\/\(\/\).*/{ 21229 s//\1/ 21230 q 21231 } 21232 s/.*/./; q'` 21233 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 21234 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21235 | $MAKE -f - am--depfiles" >&5 21236 (cd "$am_dirpart" \ 21237 && sed -e '/# am--include-marker/d' "$am_filepart" \ 21238 | $MAKE -f - am--depfiles) >&5 2>&5 21239 ac_status=$? 21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21241 (exit $ac_status); } || am_rc=$? 21242 done 21243 if test $am_rc -ne 0; then 21244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21245 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 21246 as_fn_error $? "Something went wrong bootstrapping makefile fragments 21247 for automatic dependency tracking. If GNU make was not used, consider 21248 re-running the configure script with MAKE=\"gmake\" (or whatever is 21249 necessary). You can also try re-running configure with the 21250 '--disable-dependency-tracking' option to at least be able to build 21251 the package (albeit without support for automatic dependency tracking). 21252 See \`config.log' for more details" "$LINENO" 5; } 21253 fi 21254 { am_dirpart=; unset am_dirpart;} 21255 { am_filepart=; unset am_filepart;} 21256 { am_mf=; unset am_mf;} 21257 { am_rc=; unset am_rc;} 21258 rm -f conftest-deps.mk 21259 } 21260 ;; 21261 "libtool":C) 21262 21263 # See if we are running on zsh, and set the options that allow our 21264 # commands through without removal of \ escapes. 21265 if test -n "${ZSH_VERSION+set}"; then 21266 setopt NO_GLOB_SUBST 21267 fi 21268 21269 cfgfile=${ofile}T 21270 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21271 $RM "$cfgfile" 21272 21273 cat <<_LT_EOF >> "$cfgfile" 21274 #! $SHELL 21275 # Generated automatically by $as_me ($PACKAGE) $VERSION 21276 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 21277 21278 # Provide generalized library-building support services. 21279 # Written by Gordon Matzigkeit, 1996 21280 21281 # Copyright (C) 2014 Free Software Foundation, Inc. 21282 # This is free software; see the source for copying conditions. There is NO 21283 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21284 21285 # GNU Libtool is free software; you can redistribute it and/or modify 21286 # it under the terms of the GNU General Public License as published by 21287 # the Free Software Foundation; either version 2 of of the License, or 21288 # (at your option) any later version. 21289 # 21290 # As a special exception to the GNU General Public License, if you 21291 # distribute this file as part of a program or library that is built 21292 # using GNU Libtool, you may include this file under the same 21293 # distribution terms that you use for the rest of that program. 21294 # 21295 # GNU Libtool is distributed in the hope that it will be useful, but 21296 # WITHOUT ANY WARRANTY; without even the implied warranty of 21297 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21298 # GNU General Public License for more details. 21299 # 21300 # You should have received a copy of the GNU General Public License 21301 # along with this program. If not, see <http://www.gnu.org/licenses/>. 21302 21303 21304 # The names of the tagged configurations supported by this script. 21305 available_tags='' 21306 21307 # Configured defaults for sys_lib_dlsearch_path munging. 21308 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21309 21310 # ### BEGIN LIBTOOL CONFIG 21311 21312 # Which release of libtool.m4 was used? 21313 macro_version=$macro_version 21314 macro_revision=$macro_revision 21315 21316 # Whether or not to build shared libraries. 21317 build_libtool_libs=$enable_shared 21318 21319 # Whether or not to build static libraries. 21320 build_old_libs=$enable_static 21321 21322 # What type of objects to build. 21323 pic_mode=$pic_mode 21324 21325 # Whether or not to optimize for fast installation. 21326 fast_install=$enable_fast_install 21327 21328 # Shared archive member basename,for filename based shared library versioning on AIX. 21329 shared_archive_member_spec=$shared_archive_member_spec 21330 21331 # Shell to use when invoking shell scripts. 21332 SHELL=$lt_SHELL 21333 21334 # An echo program that protects backslashes. 21335 ECHO=$lt_ECHO 21336 21337 # The PATH separator for the build system. 21338 PATH_SEPARATOR=$lt_PATH_SEPARATOR 21339 21340 # The host system. 21341 host_alias=$host_alias 21342 host=$host 21343 host_os=$host_os 21344 21345 # The build system. 21346 build_alias=$build_alias 21347 build=$build 21348 build_os=$build_os 21349 21350 # A sed program that does not truncate output. 21351 SED=$lt_SED 21352 21353 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 21354 Xsed="\$SED -e 1s/^X//" 21355 21356 # A grep program that handles long lines. 21357 GREP=$lt_GREP 21358 21359 # An ERE matcher. 21360 EGREP=$lt_EGREP 21361 21362 # A literal string matcher. 21363 FGREP=$lt_FGREP 21364 21365 # A BSD- or MS-compatible name lister. 21366 NM=$lt_NM 21367 21368 # Whether we need soft or hard links. 21369 LN_S=$lt_LN_S 21370 21371 # What is the maximum length of a command? 21372 max_cmd_len=$max_cmd_len 21373 21374 # Object file suffix (normally "o"). 21375 objext=$ac_objext 21376 21377 # Executable file suffix (normally ""). 21378 exeext=$exeext 21379 21380 # whether the shell understands "unset". 21381 lt_unset=$lt_unset 21382 21383 # turn spaces into newlines. 21384 SP2NL=$lt_lt_SP2NL 21385 21386 # turn newlines into spaces. 21387 NL2SP=$lt_lt_NL2SP 21388 21389 # convert \$build file names to \$host format. 21390 to_host_file_cmd=$lt_cv_to_host_file_cmd 21391 21392 # convert \$build files to toolchain format. 21393 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21394 21395 # A file(cmd) program that detects file types. 21396 FILECMD=$lt_FILECMD 21397 21398 # An object symbol dumper. 21399 OBJDUMP=$lt_OBJDUMP 21400 21401 # Method to check whether dependent libraries are shared objects. 21402 deplibs_check_method=$lt_deplibs_check_method 21403 21404 # Command to use when deplibs_check_method = "file_magic". 21405 file_magic_cmd=$lt_file_magic_cmd 21406 21407 # How to find potential files when deplibs_check_method = "file_magic". 21408 file_magic_glob=$lt_file_magic_glob 21409 21410 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21411 want_nocaseglob=$lt_want_nocaseglob 21412 21413 # DLL creation program. 21414 DLLTOOL=$lt_DLLTOOL 21415 21416 # Command to associate shared and link libraries. 21417 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21418 21419 # The archiver. 21420 AR=$lt_AR 21421 21422 # Flags to create an archive (by configure). 21423 lt_ar_flags=$lt_ar_flags 21424 21425 # Flags to create an archive. 21426 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 21427 21428 # How to feed a file listing to the archiver. 21429 archiver_list_spec=$lt_archiver_list_spec 21430 21431 # A symbol stripping program. 21432 STRIP=$lt_STRIP 21433 21434 # Commands used to install an old-style archive. 21435 RANLIB=$lt_RANLIB 21436 old_postinstall_cmds=$lt_old_postinstall_cmds 21437 old_postuninstall_cmds=$lt_old_postuninstall_cmds 21438 21439 # Whether to use a lock for old archive extraction. 21440 lock_old_archive_extraction=$lock_old_archive_extraction 21441 21442 # A C compiler. 21443 LTCC=$lt_CC 21444 21445 # LTCC compiler flags. 21446 LTCFLAGS=$lt_CFLAGS 21447 21448 # Take the output of nm and produce a listing of raw symbols and C names. 21449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21450 21451 # Transform the output of nm in a proper C declaration. 21452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21453 21454 # Transform the output of nm into a list of symbols to manually relocate. 21455 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21456 21457 # Transform the output of nm in a C name address pair. 21458 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21459 21460 # Transform the output of nm in a C name address pair when lib prefix is needed. 21461 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21462 21463 # The name lister interface. 21464 nm_interface=$lt_lt_cv_nm_interface 21465 21466 # Specify filename containing input files for \$NM. 21467 nm_file_list_spec=$lt_nm_file_list_spec 21468 21469 # The root where to search for dependent libraries,and where our libraries should be installed. 21470 lt_sysroot=$lt_sysroot 21471 21472 # Command to truncate a binary pipe. 21473 lt_truncate_bin=$lt_lt_cv_truncate_bin 21474 21475 # The name of the directory that contains temporary libtool files. 21476 objdir=$objdir 21477 21478 # Used to examine libraries when file_magic_cmd begins with "file". 21479 MAGIC_CMD=$MAGIC_CMD 21480 21481 # Must we lock files when doing compilation? 21482 need_locks=$lt_need_locks 21483 21484 # Manifest tool. 21485 MANIFEST_TOOL=$lt_MANIFEST_TOOL 21486 21487 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21488 DSYMUTIL=$lt_DSYMUTIL 21489 21490 # Tool to change global to local symbols on Mac OS X. 21491 NMEDIT=$lt_NMEDIT 21492 21493 # Tool to manipulate fat objects and archives on Mac OS X. 21494 LIPO=$lt_LIPO 21495 21496 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 21497 OTOOL=$lt_OTOOL 21498 21499 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21500 OTOOL64=$lt_OTOOL64 21501 21502 # Old archive suffix (normally "a"). 21503 libext=$libext 21504 21505 # Shared library suffix (normally ".so"). 21506 shrext_cmds=$lt_shrext_cmds 21507 21508 # The commands to extract the exported symbol list from a shared archive. 21509 extract_expsyms_cmds=$lt_extract_expsyms_cmds 21510 21511 # Variables whose values should be saved in libtool wrapper scripts and 21512 # restored at link time. 21513 variables_saved_for_relink=$lt_variables_saved_for_relink 21514 21515 # Do we need the "lib" prefix for modules? 21516 need_lib_prefix=$need_lib_prefix 21517 21518 # Do we need a version for libraries? 21519 need_version=$need_version 21520 21521 # Library versioning type. 21522 version_type=$version_type 21523 21524 # Shared library runtime path variable. 21525 runpath_var=$runpath_var 21526 21527 # Shared library path variable. 21528 shlibpath_var=$shlibpath_var 21529 21530 # Is shlibpath searched before the hard-coded library search path? 21531 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21532 21533 # Format of library name prefix. 21534 libname_spec=$lt_libname_spec 21535 21536 # List of archive names. First name is the real one, the rest are links. 21537 # The last name is the one that the linker finds with -lNAME 21538 library_names_spec=$lt_library_names_spec 21539 21540 # The coded name of the library, if different from the real name. 21541 soname_spec=$lt_soname_spec 21542 21543 # Permission mode override for installation of shared libraries. 21544 install_override_mode=$lt_install_override_mode 21545 21546 # Command to use after installation of a shared archive. 21547 postinstall_cmds=$lt_postinstall_cmds 21548 21549 # Command to use after uninstallation of a shared archive. 21550 postuninstall_cmds=$lt_postuninstall_cmds 21551 21552 # Commands used to finish a libtool library installation in a directory. 21553 finish_cmds=$lt_finish_cmds 21554 21555 # As "finish_cmds", except a single script fragment to be evaled but 21556 # not shown. 21557 finish_eval=$lt_finish_eval 21558 21559 # Whether we should hardcode library paths into libraries. 21560 hardcode_into_libs=$hardcode_into_libs 21561 21562 # Compile-time system search path for libraries. 21563 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21564 21565 # Detected run-time system search path for libraries. 21566 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21567 21568 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21569 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21570 21571 # Whether dlopen is supported. 21572 dlopen_support=$enable_dlopen 21573 21574 # Whether dlopen of programs is supported. 21575 dlopen_self=$enable_dlopen_self 21576 21577 # Whether dlopen of statically linked programs is supported. 21578 dlopen_self_static=$enable_dlopen_self_static 21579 21580 # Commands to strip libraries. 21581 old_striplib=$lt_old_striplib 21582 striplib=$lt_striplib 21583 21584 21585 # The linker used to build libraries. 21586 LD=$lt_LD 21587 21588 # How to create reloadable object files. 21589 reload_flag=$lt_reload_flag 21590 reload_cmds=$lt_reload_cmds 21591 21592 # Commands used to build an old-style archive. 21593 old_archive_cmds=$lt_old_archive_cmds 21594 21595 # A language specific compiler. 21596 CC=$lt_compiler 21597 21598 # Is the compiler the GNU compiler? 21599 with_gcc=$GCC 21600 21601 # Compiler flag to turn off builtin functions. 21602 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21603 21604 # Additional compiler flags for building library objects. 21605 pic_flag=$lt_lt_prog_compiler_pic 21606 21607 # How to pass a linker flag through the compiler. 21608 wl=$lt_lt_prog_compiler_wl 21609 21610 # Compiler flag to prevent dynamic linking. 21611 link_static_flag=$lt_lt_prog_compiler_static 21612 21613 # Does compiler simultaneously support -c and -o options? 21614 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21615 21616 # Whether or not to add -lc for building shared libraries. 21617 build_libtool_need_lc=$archive_cmds_need_lc 21618 21619 # Whether or not to disallow shared libs when runtime libs are static. 21620 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21621 21622 # Compiler flag to allow reflexive dlopens. 21623 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21624 21625 # Compiler flag to generate shared objects directly from archives. 21626 whole_archive_flag_spec=$lt_whole_archive_flag_spec 21627 21628 # Whether the compiler copes with passing no objects directly. 21629 compiler_needs_object=$lt_compiler_needs_object 21630 21631 # Create an old-style archive from a shared archive. 21632 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21633 21634 # Create a temporary old-style archive to link instead of a shared archive. 21635 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21636 21637 # Commands used to build a shared archive. 21638 archive_cmds=$lt_archive_cmds 21639 archive_expsym_cmds=$lt_archive_expsym_cmds 21640 21641 # Commands used to build a loadable module if different from building 21642 # a shared archive. 21643 module_cmds=$lt_module_cmds 21644 module_expsym_cmds=$lt_module_expsym_cmds 21645 21646 # Whether we are building with GNU ld or not. 21647 with_gnu_ld=$lt_with_gnu_ld 21648 21649 # Flag that allows shared libraries with undefined symbols to be built. 21650 allow_undefined_flag=$lt_allow_undefined_flag 21651 21652 # Flag that enforces no undefined symbols. 21653 no_undefined_flag=$lt_no_undefined_flag 21654 21655 # Flag to hardcode \$libdir into a binary during linking. 21656 # This must work even if \$libdir does not exist 21657 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21658 21659 # Whether we need a single "-rpath" flag with a separated argument. 21660 hardcode_libdir_separator=$lt_hardcode_libdir_separator 21661 21662 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21663 # DIR into the resulting binary. 21664 hardcode_direct=$hardcode_direct 21665 21666 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21667 # DIR into the resulting binary and the resulting library dependency is 21668 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 21669 # library is relocated. 21670 hardcode_direct_absolute=$hardcode_direct_absolute 21671 21672 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21673 # into the resulting binary. 21674 hardcode_minus_L=$hardcode_minus_L 21675 21676 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21677 # into the resulting binary. 21678 hardcode_shlibpath_var=$hardcode_shlibpath_var 21679 21680 # Set to "yes" if building a shared library automatically hardcodes DIR 21681 # into the library and all subsequent libraries and executables linked 21682 # against it. 21683 hardcode_automatic=$hardcode_automatic 21684 21685 # Set to yes if linker adds runtime paths of dependent libraries 21686 # to runtime path list. 21687 inherit_rpath=$inherit_rpath 21688 21689 # Whether libtool must link a program against all its dependency libraries. 21690 link_all_deplibs=$link_all_deplibs 21691 21692 # Set to "yes" if exported symbols are required. 21693 always_export_symbols=$always_export_symbols 21694 21695 # The commands to list exported symbols. 21696 export_symbols_cmds=$lt_export_symbols_cmds 21697 21698 # Symbols that should not be listed in the preloaded symbols. 21699 exclude_expsyms=$lt_exclude_expsyms 21700 21701 # Symbols that must always be exported. 21702 include_expsyms=$lt_include_expsyms 21703 21704 # Commands necessary for linking programs (against libraries) with templates. 21705 prelink_cmds=$lt_prelink_cmds 21706 21707 # Commands necessary for finishing linking programs. 21708 postlink_cmds=$lt_postlink_cmds 21709 21710 # Specify filename containing input files. 21711 file_list_spec=$lt_file_list_spec 21712 21713 # How to hardcode a shared library path into an executable. 21714 hardcode_action=$hardcode_action 21715 21716 # ### END LIBTOOL CONFIG 21717 21718 _LT_EOF 21719 21720 cat <<'_LT_EOF' >> "$cfgfile" 21721 21722 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21723 21724 # func_munge_path_list VARIABLE PATH 21725 # ----------------------------------- 21726 # VARIABLE is name of variable containing _space_ separated list of 21727 # directories to be munged by the contents of PATH, which is string 21728 # having a format: 21729 # "DIR[:DIR]:" 21730 # string "DIR[ DIR]" will be prepended to VARIABLE 21731 # ":DIR[:DIR]" 21732 # string "DIR[ DIR]" will be appended to VARIABLE 21733 # "DIRP[:DIRP]::[DIRA:]DIRA" 21734 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21735 # "DIRA[ DIRA]" will be appended to VARIABLE 21736 # "DIR[:DIR]" 21737 # VARIABLE will be replaced by "DIR[ DIR]" 21738 func_munge_path_list () 21739 { 21740 case x$2 in 21741 x) 21742 ;; 21743 *:) 21744 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21745 ;; 21746 x:*) 21747 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21748 ;; 21749 *::*) 21750 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21751 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21752 ;; 21753 *) 21754 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21755 ;; 21756 esac 21757 } 21758 21759 21760 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21761 func_cc_basename () 21762 { 21763 for cc_temp in $*""; do 21764 case $cc_temp in 21765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21767 \-*) ;; 21768 *) break;; 21769 esac 21770 done 21771 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21772 } 21773 21774 21775 # ### END FUNCTIONS SHARED WITH CONFIGURE 21776 21777 _LT_EOF 21778 21779 case $host_os in 21780 aix3*) 21781 cat <<\_LT_EOF >> "$cfgfile" 21782 # AIX sometimes has problems with the GCC collect2 program. For some 21783 # reason, if we set the COLLECT_NAMES environment variable, the problems 21784 # vanish in a puff of smoke. 21785 if test set != "${COLLECT_NAMES+set}"; then 21786 COLLECT_NAMES= 21787 export COLLECT_NAMES 21788 fi 21789 _LT_EOF 21790 ;; 21791 esac 21792 21793 21794 21795 ltmain=$ac_aux_dir/ltmain.sh 21796 21797 21798 # We use sed instead of cat because bash on DJGPP gets confused if 21799 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21800 # text mode, it properly converts lines to CR/LF. This bash problem 21801 # is reportedly fixed, but why not run on old versions too? 21802 $SED '$q' "$ltmain" >> "$cfgfile" \ 21803 || (rm -f "$cfgfile"; exit 1) 21804 21805 mv -f "$cfgfile" "$ofile" || 21806 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21807 chmod +x "$ofile" 21808 21809 ;; 21810 21811 esac 21812 done # for ac_tag 21813 21814 21815 as_fn_exit 0 21816 _ACEOF 21817 ac_clean_files=$ac_clean_files_save 21818 21819 test $ac_write_fail = 0 || 21820 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21821 21822 21823 # configure is writing to config.log, and then calls config.status. 21824 # config.status does its own redirection, appending to config.log. 21825 # Unfortunately, on DOS this fails, as config.log is still kept open 21826 # by configure, so config.status won't be able to write to it; its 21827 # output is simply discarded. So we exec the FD to /dev/null, 21828 # effectively closing config.log, so it can be properly (re)opened and 21829 # appended to by config.status. When coming back to configure, we 21830 # need to make the FD available again. 21831 if test "$no_create" != yes; then 21832 ac_cs_success=: 21833 ac_config_status_args= 21834 test "$silent" = yes && 21835 ac_config_status_args="$ac_config_status_args --quiet" 21836 exec 5>/dev/null 21837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21838 exec 5>>config.log 21839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21840 # would make configure fail if this is the last instruction. 21841 $ac_cs_success || as_fn_exit 1 21842 fi 21843 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21845 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21846 fi 21847 21848 21849