1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libFS 1.0.10. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195 test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197 then : 198 as_have_required=yes 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225 then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254 # neutralization value for shells without unset; and this also 255 # works around shells that cannot unset nonexistent variables. 256 # Preserve -v and -x to the replacement shell. 257 BASH_ENV=/dev/null 258 ENV=/dev/null 259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260 case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265 esac 266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267 # Admittedly, this is quite paranoid, since all the known shells bail 268 # out after a failed 'exec'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270 exit 255 271 fi 272 273 if test x$as_have_required = xno 274 then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 282 $0: https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues 283 $0: about your system, including any error possibly output 284 $0: before this message. Then install a modern shell, or 285 $0: manually run the script under such a shell if you do 286 $0: have one." 287 fi 288 exit 1 289 fi ;; 290 esac 291 fi 292 fi 293 SHELL=${CONFIG_SHELL-/bin/sh} 294 export SHELL 295 # Unset more variables known to interfere with behavior of common tools. 296 CLICOLOR_FORCE= GREP_OPTIONS= 297 unset CLICOLOR_FORCE GREP_OPTIONS 298 299 ## --------------------- ## 300 ## M4sh Shell Functions. ## 301 ## --------------------- ## 302 # as_fn_unset VAR 303 # --------------- 304 # Portably unset VAR. 305 as_fn_unset () 306 { 307 { eval $1=; unset $1;} 308 } 309 as_unset=as_fn_unset 310 311 312 # as_fn_set_status STATUS 313 # ----------------------- 314 # Set $? to STATUS, without forking. 315 as_fn_set_status () 316 { 317 return $1 318 } # as_fn_set_status 319 320 # as_fn_exit STATUS 321 # ----------------- 322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 323 as_fn_exit () 324 { 325 set +e 326 as_fn_set_status $1 327 exit $1 328 } # as_fn_exit 329 330 # as_fn_mkdir_p 331 # ------------- 332 # Create "$as_dir" as a directory, including parents if necessary. 333 as_fn_mkdir_p () 334 { 335 336 case $as_dir in #( 337 -*) as_dir=./$as_dir;; 338 esac 339 test -d "$as_dir" || eval $as_mkdir_p || { 340 as_dirs= 341 while :; do 342 case $as_dir in #( 343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 344 *) as_qdir=$as_dir;; 345 esac 346 as_dirs="'$as_qdir' $as_dirs" 347 as_dir=`$as_dirname -- "$as_dir" || 348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 349 X"$as_dir" : 'X\(//\)[^/]' \| \ 350 X"$as_dir" : 'X\(//\)$' \| \ 351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 352 printf "%s\n" X"$as_dir" | 353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)[^/].*/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\/\)$/{ 362 s//\1/ 363 q 364 } 365 /^X\(\/\).*/{ 366 s//\1/ 367 q 368 } 369 s/.*/./; q'` 370 test -d "$as_dir" && break 371 done 372 test -z "$as_dirs" || eval "mkdir $as_dirs" 373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 374 375 376 } # as_fn_mkdir_p 377 378 # as_fn_executable_p FILE 379 # ----------------------- 380 # Test if FILE is an executable regular file. 381 as_fn_executable_p () 382 { 383 test -f "$1" && test -x "$1" 384 } # as_fn_executable_p 385 # as_fn_append VAR VALUE 386 # ---------------------- 387 # Append the text in VALUE to the end of the definition contained in VAR. Take 388 # advantage of any shell optimizations that allow amortized linear growth over 389 # repeated appends, instead of the typical quadratic growth present in naive 390 # implementations. 391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 392 then : 393 eval 'as_fn_append () 394 { 395 eval $1+=\$2 396 }' 397 else case e in #( 398 e) as_fn_append () 399 { 400 eval $1=\$$1\$2 401 } ;; 402 esac 403 fi # as_fn_append 404 405 # as_fn_arith ARG... 406 # ------------------ 407 # Perform arithmetic evaluation on the ARGs, and store the result in the 408 # global $as_val. Take advantage of shells that can avoid forks. The arguments 409 # must be portable across $(()) and expr. 410 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 411 then : 412 eval 'as_fn_arith () 413 { 414 as_val=$(( $* )) 415 }' 416 else case e in #( 417 e) as_fn_arith () 418 { 419 as_val=`expr "$@" || test $? -eq 1` 420 } ;; 421 esac 422 fi # as_fn_arith 423 424 425 # as_fn_error STATUS ERROR [LINENO LOG_FD] 426 # ---------------------------------------- 427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 429 # script with STATUS, using 1 if that was 0. 430 as_fn_error () 431 { 432 as_status=$1; test $as_status -eq 0 && as_status=1 433 if test "$4"; then 434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 436 fi 437 printf "%s\n" "$as_me: error: $2" >&2 438 as_fn_exit $as_status 439 } # as_fn_error 440 441 if expr a : '\(a\)' >/dev/null 2>&1 && 442 test "X`expr 00001 : '.*\(...\)'`" = X001; then 443 as_expr=expr 444 else 445 as_expr=false 446 fi 447 448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 449 as_basename=basename 450 else 451 as_basename=false 452 fi 453 454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 455 as_dirname=dirname 456 else 457 as_dirname=false 458 fi 459 460 as_me=`$as_basename -- "$0" || 461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 462 X"$0" : 'X\(//\)$' \| \ 463 X"$0" : 'X\(/\)' \| . 2>/dev/null || 464 printf "%s\n" X/"$0" | 465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 466 s//\1/ 467 q 468 } 469 /^X\/\(\/\/\)$/{ 470 s//\1/ 471 q 472 } 473 /^X\/\(\/\).*/{ 474 s//\1/ 475 q 476 } 477 s/.*/./; q'` 478 479 # Avoid depending upon Character Ranges. 480 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 483 as_cr_digits='0123456789' 484 as_cr_alnum=$as_cr_Letters$as_cr_digits 485 486 487 as_lineno_1=$LINENO as_lineno_1a=$LINENO 488 as_lineno_2=$LINENO as_lineno_2a=$LINENO 489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 492 sed -n ' 493 p 494 /[$]LINENO/= 495 ' <$as_myself | 496 sed ' 497 t clear 498 :clear 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522 } 523 524 525 # Determine whether it's possible to make 'echo' print without a newline. 526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 # for compatibility with existing Makefiles. 528 ECHO_C= ECHO_N= ECHO_T= 529 case `echo -n x` in #((((( 530 -n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537 *) 538 ECHO_N='-n';; 539 esac 540 541 # For backward compatibility with old third-party macros, we provide 542 # the shell variables $as_echo and $as_echo_n. New code should use 543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 as_echo='printf %s\n' 545 as_echo_n='printf %s' 546 547 rm -f conf$$ conf$$.exe conf$$.file 548 if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550 else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553 fi 554 if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 560 # In both cases, we have to default to 'cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568 else 569 as_ln_s='cp -pR' 570 fi 571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572 rmdir conf$$.dir 2>/dev/null 573 574 if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576 else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579 fi 580 581 as_test_x='test -x' 582 as_executable_p=as_fn_executable_p 583 584 # Sed expression to map a string onto a valid CPP name. 585 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 586 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 587 588 # Sed expression to map a string onto a valid variable name. 589 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 590 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 591 592 SHELL=${CONFIG_SHELL-/bin/sh} 593 594 595 test -n "$DJDIR" || exec 7<&0 </dev/null 596 exec 6>&1 597 598 # Name of the host. 599 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 600 # so uname gets run too. 601 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 602 603 # 604 # Initializations. 605 # 606 ac_default_prefix=/usr/local 607 ac_clean_files= 608 ac_config_libobj_dir=. 609 LIBOBJS= 610 cross_compiling=no 611 subdirs= 612 MFLAGS= 613 MAKEFLAGS= 614 615 # Identity of this package. 616 PACKAGE_NAME='libFS' 617 PACKAGE_TARNAME='libFS' 618 PACKAGE_VERSION='1.0.10' 619 PACKAGE_STRING='libFS 1.0.10' 620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues' 621 PACKAGE_URL='' 622 623 ac_unique_file="Makefile.am" 624 # Factoring default headers for most tests. 625 ac_includes_default="\ 626 #include <stddef.h> 627 #ifdef HAVE_STDIO_H 628 # include <stdio.h> 629 #endif 630 #ifdef HAVE_STDLIB_H 631 # include <stdlib.h> 632 #endif 633 #ifdef HAVE_STRING_H 634 # include <string.h> 635 #endif 636 #ifdef HAVE_INTTYPES_H 637 # include <inttypes.h> 638 #endif 639 #ifdef HAVE_STDINT_H 640 # include <stdint.h> 641 #endif 642 #ifdef HAVE_STRINGS_H 643 # include <strings.h> 644 #endif 645 #ifdef HAVE_SYS_TYPES_H 646 # include <sys/types.h> 647 #endif 648 #ifdef HAVE_SYS_STAT_H 649 # include <sys/stat.h> 650 #endif 651 #ifdef HAVE_UNISTD_H 652 # include <unistd.h> 653 #endif" 654 655 ac_header_c_list= 656 ac_subst_vars='am__EXEEXT_FALSE 657 am__EXEEXT_TRUE 658 LTLIBOBJS 659 MAKE_LINT_LIB_FALSE 660 MAKE_LINT_LIB_TRUE 661 LINTLIB 662 LINT_FALSE 663 LINT_TRUE 664 LINT_FLAGS 665 LINT 666 LIBOBJS 667 FS_LIBS 668 FS_CFLAGS 669 XTMALLOC_ZERO_CFLAGS 670 XMALLOC_ZERO_CFLAGS 671 MALLOC_ZERO_CFLAGS 672 MAN_SUBSTS 673 XORG_MAN_PAGE 674 ADMIN_MAN_DIR 675 DRIVER_MAN_DIR 676 MISC_MAN_DIR 677 FILE_MAN_DIR 678 LIB_MAN_DIR 679 APP_MAN_DIR 680 ADMIN_MAN_SUFFIX 681 DRIVER_MAN_SUFFIX 682 MISC_MAN_SUFFIX 683 FILE_MAN_SUFFIX 684 LIB_MAN_SUFFIX 685 APP_MAN_SUFFIX 686 INSTALL_CMD 687 PKG_CONFIG_LIBDIR 688 PKG_CONFIG_PATH 689 PKG_CONFIG 690 CHANGELOG_CMD 691 STRICT_CFLAGS 692 CWARNFLAGS 693 BASE_CFLAGS 694 LT_SYS_LIBRARY_PATH 695 OTOOL64 696 OTOOL 697 LIPO 698 NMEDIT 699 DSYMUTIL 700 MANIFEST_TOOL 701 RANLIB 702 ac_ct_AR 703 AR 704 DLLTOOL 705 OBJDUMP 706 FILECMD 707 LN_S 708 NM 709 ac_ct_DUMPBIN 710 DUMPBIN 711 LD 712 FGREP 713 EGREP 714 GREP 715 SED 716 host_os 717 host_vendor 718 host_cpu 719 host 720 build_os 721 build_vendor 722 build_cpu 723 build 724 LIBTOOL 725 am__fastdepCC_FALSE 726 am__fastdepCC_TRUE 727 CCDEPMODE 728 am__nodep 729 AMDEPBACKSLASH 730 AMDEP_FALSE 731 AMDEP_TRUE 732 am__include 733 DEPDIR 734 OBJEXT 735 EXEEXT 736 ac_ct_CC 737 CPPFLAGS 738 LDFLAGS 739 CFLAGS 740 CC 741 am__xargs_n 742 am__rm_f_notfound 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_dependency_tracking 818 enable_shared 819 enable_static 820 with_pic 821 enable_fast_install 822 with_aix_soname 823 with_gnu_ld 824 with_sysroot 825 enable_libtool_lock 826 enable_selective_werror 827 enable_strict_compilation 828 enable_malloc0returnsnull 829 enable_unix_transport 830 enable_tcp_transport 831 enable_ipv6 832 enable_local_transport 833 with_lint 834 enable_lint_library 835 ' 836 ac_precious_vars='build_alias 837 host_alias 838 target_alias 839 CC 840 CFLAGS 841 LDFLAGS 842 LIBS 843 CPPFLAGS 844 LT_SYS_LIBRARY_PATH 845 PKG_CONFIG 846 PKG_CONFIG_PATH 847 PKG_CONFIG_LIBDIR 848 FS_CFLAGS 849 FS_LIBS 850 LINT 851 LINT_FLAGS' 852 853 854 # Initialize some variables set by options. 855 ac_init_help= 856 ac_init_version=false 857 ac_unrecognized_opts= 858 ac_unrecognized_sep= 859 # The variables have the same names as the options, with 860 # dashes changed to underlines. 861 cache_file=/dev/null 862 exec_prefix=NONE 863 no_create= 864 no_recursion= 865 prefix=NONE 866 program_prefix=NONE 867 program_suffix=NONE 868 program_transform_name=s,x,x, 869 silent= 870 site= 871 srcdir= 872 verbose= 873 x_includes=NONE 874 x_libraries=NONE 875 876 # Installation directory options. 877 # These are left unexpanded so users can "make install exec_prefix=/foo" 878 # and all the variables that are supposed to be based on exec_prefix 879 # by default will actually change. 880 # Use braces instead of parens because sh, perl, etc. also accept them. 881 # (The list follows the same order as the GNU Coding Standards.) 882 bindir='${exec_prefix}/bin' 883 sbindir='${exec_prefix}/sbin' 884 libexecdir='${exec_prefix}/libexec' 885 datarootdir='${prefix}/share' 886 datadir='${datarootdir}' 887 sysconfdir='${prefix}/etc' 888 sharedstatedir='${prefix}/com' 889 localstatedir='${prefix}/var' 890 runstatedir='${localstatedir}/run' 891 includedir='${prefix}/include' 892 oldincludedir='/usr/include' 893 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 894 infodir='${datarootdir}/info' 895 htmldir='${docdir}' 896 dvidir='${docdir}' 897 pdfdir='${docdir}' 898 psdir='${docdir}' 899 libdir='${exec_prefix}/lib' 900 localedir='${datarootdir}/locale' 901 mandir='${datarootdir}/man' 902 903 ac_prev= 904 ac_dashdash= 905 for ac_option 906 do 907 # If the previous option needs an argument, assign it. 908 if test -n "$ac_prev"; then 909 eval $ac_prev=\$ac_option 910 ac_prev= 911 continue 912 fi 913 914 case $ac_option in 915 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 916 *=) ac_optarg= ;; 917 *) ac_optarg=yes ;; 918 esac 919 920 case $ac_dashdash$ac_option in 921 --) 922 ac_dashdash=yes ;; 923 924 -bindir | --bindir | --bindi | --bind | --bin | --bi) 925 ac_prev=bindir ;; 926 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 927 bindir=$ac_optarg ;; 928 929 -build | --build | --buil | --bui | --bu) 930 ac_prev=build_alias ;; 931 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 932 build_alias=$ac_optarg ;; 933 934 -cache-file | --cache-file | --cache-fil | --cache-fi \ 935 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 936 ac_prev=cache_file ;; 937 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 938 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 939 cache_file=$ac_optarg ;; 940 941 --config-cache | -C) 942 cache_file=config.cache ;; 943 944 -datadir | --datadir | --datadi | --datad) 945 ac_prev=datadir ;; 946 -datadir=* | --datadir=* | --datadi=* | --datad=*) 947 datadir=$ac_optarg ;; 948 949 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 950 | --dataroo | --dataro | --datar) 951 ac_prev=datarootdir ;; 952 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 953 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 954 datarootdir=$ac_optarg ;; 955 956 -disable-* | --disable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: '$ac_useropt'" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965 "enable_$ac_useropt" 966 "*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=no ;; 971 972 -docdir | --docdir | --docdi | --doc | --do) 973 ac_prev=docdir ;; 974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 975 docdir=$ac_optarg ;; 976 977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 978 ac_prev=dvidir ;; 979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 980 dvidir=$ac_optarg ;; 981 982 -enable-* | --enable-*) 983 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 984 # Reject names that are not valid shell variable names. 985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 986 as_fn_error $? "invalid feature name: '$ac_useropt'" 987 ac_useropt_orig=$ac_useropt 988 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 989 case $ac_user_opts in 990 *" 991 "enable_$ac_useropt" 992 "*) ;; 993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 994 ac_unrecognized_sep=', ';; 995 esac 996 eval enable_$ac_useropt=\$ac_optarg ;; 997 998 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 999 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1000 | --exec | --exe | --ex) 1001 ac_prev=exec_prefix ;; 1002 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1003 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1004 | --exec=* | --exe=* | --ex=*) 1005 exec_prefix=$ac_optarg ;; 1006 1007 -gas | --gas | --ga | --g) 1008 # Obsolete; use --with-gas. 1009 with_gas=yes ;; 1010 1011 -help | --help | --hel | --he | -h) 1012 ac_init_help=long ;; 1013 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1014 ac_init_help=recursive ;; 1015 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1016 ac_init_help=short ;; 1017 1018 -host | --host | --hos | --ho) 1019 ac_prev=host_alias ;; 1020 -host=* | --host=* | --hos=* | --ho=*) 1021 host_alias=$ac_optarg ;; 1022 1023 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1024 ac_prev=htmldir ;; 1025 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1026 | --ht=*) 1027 htmldir=$ac_optarg ;; 1028 1029 -includedir | --includedir | --includedi | --included | --include \ 1030 | --includ | --inclu | --incl | --inc) 1031 ac_prev=includedir ;; 1032 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1033 | --includ=* | --inclu=* | --incl=* | --inc=*) 1034 includedir=$ac_optarg ;; 1035 1036 -infodir | --infodir | --infodi | --infod | --info | --inf) 1037 ac_prev=infodir ;; 1038 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1039 infodir=$ac_optarg ;; 1040 1041 -libdir | --libdir | --libdi | --libd) 1042 ac_prev=libdir ;; 1043 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1044 libdir=$ac_optarg ;; 1045 1046 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1047 | --libexe | --libex | --libe) 1048 ac_prev=libexecdir ;; 1049 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1050 | --libexe=* | --libex=* | --libe=*) 1051 libexecdir=$ac_optarg ;; 1052 1053 -localedir | --localedir | --localedi | --localed | --locale) 1054 ac_prev=localedir ;; 1055 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1056 localedir=$ac_optarg ;; 1057 1058 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1059 | --localstate | --localstat | --localsta | --localst | --locals) 1060 ac_prev=localstatedir ;; 1061 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1062 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1063 localstatedir=$ac_optarg ;; 1064 1065 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1066 ac_prev=mandir ;; 1067 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1068 mandir=$ac_optarg ;; 1069 1070 -nfp | --nfp | --nf) 1071 # Obsolete; use --without-fp. 1072 with_fp=no ;; 1073 1074 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1075 | --no-cr | --no-c | -n) 1076 no_create=yes ;; 1077 1078 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1079 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1080 no_recursion=yes ;; 1081 1082 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1083 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1084 | --oldin | --oldi | --old | --ol | --o) 1085 ac_prev=oldincludedir ;; 1086 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1087 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1088 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1089 oldincludedir=$ac_optarg ;; 1090 1091 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1092 ac_prev=prefix ;; 1093 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1094 prefix=$ac_optarg ;; 1095 1096 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1097 | --program-pre | --program-pr | --program-p) 1098 ac_prev=program_prefix ;; 1099 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1100 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1101 program_prefix=$ac_optarg ;; 1102 1103 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1104 | --program-suf | --program-su | --program-s) 1105 ac_prev=program_suffix ;; 1106 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1107 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1108 program_suffix=$ac_optarg ;; 1109 1110 -program-transform-name | --program-transform-name \ 1111 | --program-transform-nam | --program-transform-na \ 1112 | --program-transform-n | --program-transform- \ 1113 | --program-transform | --program-transfor \ 1114 | --program-transfo | --program-transf \ 1115 | --program-trans | --program-tran \ 1116 | --progr-tra | --program-tr | --program-t) 1117 ac_prev=program_transform_name ;; 1118 -program-transform-name=* | --program-transform-name=* \ 1119 | --program-transform-nam=* | --program-transform-na=* \ 1120 | --program-transform-n=* | --program-transform-=* \ 1121 | --program-transform=* | --program-transfor=* \ 1122 | --program-transfo=* | --program-transf=* \ 1123 | --program-trans=* | --program-tran=* \ 1124 | --progr-tra=* | --program-tr=* | --program-t=*) 1125 program_transform_name=$ac_optarg ;; 1126 1127 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1128 ac_prev=pdfdir ;; 1129 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1130 pdfdir=$ac_optarg ;; 1131 1132 -psdir | --psdir | --psdi | --psd | --ps) 1133 ac_prev=psdir ;; 1134 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1135 psdir=$ac_optarg ;; 1136 1137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1138 | -silent | --silent | --silen | --sile | --sil) 1139 silent=yes ;; 1140 1141 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1142 | --runstate | --runstat | --runsta | --runst | --runs \ 1143 | --run | --ru | --r) 1144 ac_prev=runstatedir ;; 1145 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1146 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1147 | --run=* | --ru=* | --r=*) 1148 runstatedir=$ac_optarg ;; 1149 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1151 ac_prev=sbindir ;; 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1153 | --sbi=* | --sb=*) 1154 sbindir=$ac_optarg ;; 1155 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1158 | --sharedst | --shareds | --shared | --share | --shar \ 1159 | --sha | --sh) 1160 ac_prev=sharedstatedir ;; 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1164 | --sha=* | --sh=*) 1165 sharedstatedir=$ac_optarg ;; 1166 1167 -site | --site | --sit) 1168 ac_prev=site ;; 1169 -site=* | --site=* | --sit=*) 1170 site=$ac_optarg ;; 1171 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1173 ac_prev=srcdir ;; 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1175 srcdir=$ac_optarg ;; 1176 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1178 | --syscon | --sysco | --sysc | --sys | --sy) 1179 ac_prev=sysconfdir ;; 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1182 sysconfdir=$ac_optarg ;; 1183 1184 -target | --target | --targe | --targ | --tar | --ta | --t) 1185 ac_prev=target_alias ;; 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1187 target_alias=$ac_optarg ;; 1188 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1190 verbose=yes ;; 1191 1192 -version | --version | --versio | --versi | --vers | -V) 1193 ac_init_version=: ;; 1194 1195 -with-* | --with-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: '$ac_useropt'" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204 "with_$ac_useropt" 1205 "*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=\$ac_optarg ;; 1210 1211 -without-* | --without-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: '$ac_useropt'" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220 "with_$ac_useropt" 1221 "*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=no ;; 1226 1227 --x) 1228 # Obsolete; use --with-x. 1229 with_x=yes ;; 1230 1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1232 | --x-incl | --x-inc | --x-in | --x-i) 1233 ac_prev=x_includes ;; 1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1236 x_includes=$ac_optarg ;; 1237 1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1240 ac_prev=x_libraries ;; 1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1243 x_libraries=$ac_optarg ;; 1244 1245 -*) as_fn_error $? "unrecognized option: '$ac_option' 1246 Try '$0 --help' for more information" 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 case $ac_envvar in #( 1253 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1254 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1255 esac 1256 eval $ac_envvar=\$ac_optarg 1257 export $ac_envvar ;; 1258 1259 *) 1260 # FIXME: should be removed in autoconf 3.0. 1261 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1265 ;; 1266 1267 esac 1268 done 1269 1270 if test -n "$ac_prev"; then 1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1272 as_fn_error $? "missing argument to $ac_option" 1273 fi 1274 1275 if test -n "$ac_unrecognized_opts"; then 1276 case $enable_option_checking in 1277 no) ;; 1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1279 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1280 esac 1281 fi 1282 1283 # Check all directory arguments for consistency. 1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir runstatedir 1288 do 1289 eval ac_val=\$$ac_var 1290 # Remove trailing slashes. 1291 case $ac_val in 1292 */ ) 1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1294 eval $ac_var=\$ac_val;; 1295 esac 1296 # Be sure to have absolute directory names. 1297 case $ac_val in 1298 [\\/$]* | ?:[\\/]* ) continue;; 1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1300 esac 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1302 done 1303 1304 # There might be people who depend on the old broken behavior: '$host' 1305 # used to hold the argument of --host etc. 1306 # FIXME: To remove some day. 1307 build=$build_alias 1308 host=$host_alias 1309 target=$target_alias 1310 1311 # FIXME: To remove some day. 1312 if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 elif test "x$build_alias" != "x$host_alias"; then 1316 cross_compiling=yes 1317 fi 1318 fi 1319 1320 ac_tool_prefix= 1321 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1322 1323 test "$silent" = yes && exec 6>/dev/null 1324 1325 1326 ac_pwd=`pwd` && test -n "$ac_pwd" && 1327 ac_ls_di=`ls -di .` && 1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1329 as_fn_error $? "working directory cannot be determined" 1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1331 as_fn_error $? "pwd does not report name of working directory" 1332 1333 1334 # Find the source files, if location was not specified. 1335 if test -z "$srcdir"; then 1336 ac_srcdir_defaulted=yes 1337 # Try the directory containing this script, then the parent directory. 1338 ac_confdir=`$as_dirname -- "$as_myself" || 1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1340 X"$as_myself" : 'X\(//\)[^/]' \| \ 1341 X"$as_myself" : 'X\(//\)$' \| \ 1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1343 printf "%s\n" X"$as_myself" | 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)[^/].*/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\).*/{ 1357 s//\1/ 1358 q 1359 } 1360 s/.*/./; q'` 1361 srcdir=$ac_confdir 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 srcdir=.. 1364 fi 1365 else 1366 ac_srcdir_defaulted=no 1367 fi 1368 if test ! -r "$srcdir/$ac_unique_file"; then 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1371 fi 1372 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1373 ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1375 pwd)` 1376 # When building in place, set srcdir=. 1377 if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379 fi 1380 # Remove unnecessary trailing slashes from srcdir. 1381 # Double slashes in file names in object file debugging info 1382 # mess up M-x gdb in Emacs. 1383 case $srcdir in 1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385 esac 1386 for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391 done 1392 1393 # 1394 # Report the --help message. 1395 # 1396 if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400 'configure' configures libFS 1.0.10 to adapt to many kinds of systems. 1401 1402 Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405 VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407 Defaults for the options are specified in brackets. 1408 1409 Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print 'checking ...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for '--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1419 1420 Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426 By default, 'make install' will install all the files in 1427 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1428 an installation prefix other than '$ac_default_prefix' using '--prefix', 1429 for instance '--prefix=\$HOME'. 1430 1431 For better control, use the options below. 1432 1433 Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1441 --libdir=DIR object code libraries [EPREFIX/lib] 1442 --includedir=DIR C header files [PREFIX/include] 1443 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1446 --infodir=DIR info documentation [DATAROOTDIR/info] 1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1448 --mandir=DIR man documentation [DATAROOTDIR/man] 1449 --docdir=DIR documentation root [DATAROOTDIR/doc/libFS] 1450 --htmldir=DIR html documentation [DOCDIR] 1451 --dvidir=DIR dvi documentation [DOCDIR] 1452 --pdfdir=DIR pdf documentation [DOCDIR] 1453 --psdir=DIR ps documentation [DOCDIR] 1454 _ACEOF 1455 1456 cat <<\_ACEOF 1457 1458 Program names: 1459 --program-prefix=PREFIX prepend PREFIX to installed program names 1460 --program-suffix=SUFFIX append SUFFIX to installed program names 1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1462 1463 System types: 1464 --build=BUILD configure for building on BUILD [guessed] 1465 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1466 _ACEOF 1467 fi 1468 1469 if test -n "$ac_init_help"; then 1470 case $ac_init_help in 1471 short | recursive ) echo "Configuration of libFS 1.0.10:";; 1472 esac 1473 cat <<\_ACEOF 1474 1475 Optional Features: 1476 --disable-option-checking ignore unrecognized --enable/--with options 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --enable-silent-rules less verbose build output (undo: "make V=1") 1480 --disable-silent-rules verbose build output (undo: "make V=0") 1481 --enable-dependency-tracking 1482 do not reject slow dependency extractors 1483 --disable-dependency-tracking 1484 speeds up one-time build 1485 --enable-shared[=PKGS] build shared libraries [default=yes] 1486 --enable-static[=PKGS] build static libraries [default=yes] 1487 --enable-fast-install[=PKGS] 1488 optimize for fast installation [default=yes] 1489 --disable-libtool-lock avoid locking (might break parallel builds) 1490 --disable-selective-werror 1491 Turn off selective compiler errors. (default: 1492 enabled) 1493 --enable-strict-compilation 1494 Enable all warnings from compiler and make them 1495 errors (default: disabled) 1496 --enable-malloc0returnsnull 1497 malloc(0) returns NULL (default: auto) 1498 --enable-unix-transport Enable UNIX domain socket transport 1499 --enable-tcp-transport Enable TCP socket transport 1500 --enable-ipv6 Enable IPv6 support 1501 --enable-local-transport 1502 Enable os-specific local transport 1503 --enable-lint-library Create lint library (default: disabled) 1504 1505 Optional Packages: 1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1508 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1509 both] 1510 --with-aix-soname=aix|svr4|both 1511 shared library versioning (aka "SONAME") variant to 1512 provide on AIX, [default=aix]. 1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1514 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1515 compiler's sysroot if not specified). 1516 --with-lint Use a lint-style source code checker (default: 1517 disabled) 1518 1519 Some influential environment variables: 1520 CC C compiler command 1521 CFLAGS C compiler flags 1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1523 nonstandard directory <lib dir> 1524 LIBS libraries to pass to the linker, e.g. -l<library> 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1526 you have headers in a nonstandard directory <include dir> 1527 LT_SYS_LIBRARY_PATH 1528 User-defined run-time library search path. 1529 PKG_CONFIG path to pkg-config utility 1530 PKG_CONFIG_PATH 1531 directories to add to pkg-config's search path 1532 PKG_CONFIG_LIBDIR 1533 path overriding pkg-config's built-in search path 1534 FS_CFLAGS C compiler flags for FS, overriding pkg-config 1535 FS_LIBS linker flags for FS, overriding pkg-config 1536 LINT Path to a lint-style command 1537 LINT_FLAGS Flags for the lint-style command 1538 1539 Use these variables to override the choices made by 'configure' or to help 1540 it to find libraries and programs with nonstandard names/locations. 1541 1542 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>. 1543 _ACEOF 1544 ac_status=$? 1545 fi 1546 1547 if test "$ac_init_help" = "recursive"; then 1548 # If there are subdirs, report their specific --help. 1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1550 test -d "$ac_dir" || 1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1552 continue 1553 ac_builddir=. 1554 1555 case "$ac_dir" in 1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557 *) 1558 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1559 # A ".." for each directory in $ac_dir_suffix. 1560 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1561 case $ac_top_builddir_sub in 1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1564 esac ;; 1565 esac 1566 ac_abs_top_builddir=$ac_pwd 1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1568 # for backward compatibility: 1569 ac_top_builddir=$ac_top_build_prefix 1570 1571 case $srcdir in 1572 .) # We are building in place. 1573 ac_srcdir=. 1574 ac_top_srcdir=$ac_top_builddir_sub 1575 ac_abs_top_srcdir=$ac_pwd ;; 1576 [\\/]* | ?:[\\/]* ) # Absolute name. 1577 ac_srcdir=$srcdir$ac_dir_suffix; 1578 ac_top_srcdir=$srcdir 1579 ac_abs_top_srcdir=$srcdir ;; 1580 *) # Relative name. 1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1582 ac_top_srcdir=$ac_top_build_prefix$srcdir 1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1584 esac 1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1586 1587 cd "$ac_dir" || { ac_status=$?; continue; } 1588 # Check for configure.gnu first; this name is used for a wrapper for 1589 # Metaconfig's "Configure" on case-insensitive file systems. 1590 if test -f "$ac_srcdir/configure.gnu"; then 1591 echo && 1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1593 elif test -f "$ac_srcdir/configure"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure" --help=recursive 1596 else 1597 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1598 fi || ac_status=$? 1599 cd "$ac_pwd" || { ac_status=$?; break; } 1600 done 1601 fi 1602 1603 test -n "$ac_init_help" && exit $ac_status 1604 if $ac_init_version; then 1605 cat <<\_ACEOF 1606 libFS configure 1.0.10 1607 generated by GNU Autoconf 2.72 1608 1609 Copyright (C) 2023 Free Software Foundation, Inc. 1610 This configure script is free software; the Free Software Foundation 1611 gives unlimited permission to copy, distribute and modify it. 1612 _ACEOF 1613 exit 1614 fi 1615 1616 ## ------------------------ ## 1617 ## Autoconf initialization. ## 1618 ## ------------------------ ## 1619 1620 # ac_fn_c_try_compile LINENO 1621 # -------------------------- 1622 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1623 ac_fn_c_try_compile () 1624 { 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 rm -f conftest.$ac_objext conftest.beam 1627 if { { ac_try="$ac_compile" 1628 case "(($ac_try" in 1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1630 *) ac_try_echo=$ac_try;; 1631 esac 1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1633 printf "%s\n" "$ac_try_echo"; } >&5 1634 (eval "$ac_compile") 2>conftest.err 1635 ac_status=$? 1636 if test -s conftest.err; then 1637 grep -v '^ *+' conftest.err >conftest.er1 1638 cat conftest.er1 >&5 1639 mv -f conftest.er1 conftest.err 1640 fi 1641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1642 test $ac_status = 0; } && { 1643 test -z "$ac_c_werror_flag" || 1644 test ! -s conftest.err 1645 } && test -s conftest.$ac_objext 1646 then : 1647 ac_retval=0 1648 else case e in #( 1649 e) printf "%s\n" "$as_me: failed program was:" >&5 1650 sed 's/^/| /' conftest.$ac_ext >&5 1651 1652 ac_retval=1 ;; 1653 esac 1654 fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658 } # ac_fn_c_try_compile 1659 1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1661 # ------------------------------------------------------- 1662 # Tests whether HEADER exists and can be compiled using the include files in 1663 # INCLUDES, setting the cache variable VAR accordingly. 1664 ac_fn_c_check_header_compile () 1665 { 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1668 printf %s "checking for $2... " >&6; } 1669 if eval test \${$3+y} 1670 then : 1671 printf %s "(cached) " >&6 1672 else case e in #( 1673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674 /* end confdefs.h. */ 1675 $4 1676 #include <$2> 1677 _ACEOF 1678 if ac_fn_c_try_compile "$LINENO" 1679 then : 1680 eval "$3=yes" 1681 else case e in #( 1682 e) eval "$3=no" ;; 1683 esac 1684 fi 1685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1686 esac 1687 fi 1688 eval ac_res=\$$3 1689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1690 printf "%s\n" "$ac_res" >&6; } 1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1692 1693 } # ac_fn_c_check_header_compile 1694 1695 # ac_fn_c_try_link LINENO 1696 # ----------------------- 1697 # Try to link conftest.$ac_ext, and return whether this succeeded. 1698 ac_fn_c_try_link () 1699 { 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1702 if { { ac_try="$ac_link" 1703 case "(($ac_try" in 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1705 *) ac_try_echo=$ac_try;; 1706 esac 1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1708 printf "%s\n" "$ac_try_echo"; } >&5 1709 (eval "$ac_link") 2>conftest.err 1710 ac_status=$? 1711 if test -s conftest.err; then 1712 grep -v '^ *+' conftest.err >conftest.er1 1713 cat conftest.er1 >&5 1714 mv -f conftest.er1 conftest.err 1715 fi 1716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; } && { 1718 test -z "$ac_c_werror_flag" || 1719 test ! -s conftest.err 1720 } && test -s conftest$ac_exeext && { 1721 test "$cross_compiling" = yes || 1722 test -x conftest$ac_exeext 1723 } 1724 then : 1725 ac_retval=0 1726 else case e in #( 1727 e) printf "%s\n" "$as_me: failed program was:" >&5 1728 sed 's/^/| /' conftest.$ac_ext >&5 1729 1730 ac_retval=1 ;; 1731 esac 1732 fi 1733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1735 # interfere with the next link command; also delete a directory that is 1736 # left behind by Apple's compiler. We do this before executing the actions. 1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741 } # ac_fn_c_try_link 1742 1743 # ac_fn_c_check_func LINENO FUNC VAR 1744 # ---------------------------------- 1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1746 ac_fn_c_check_func () 1747 { 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1750 printf %s "checking for $2... " >&6; } 1751 if eval test \${$3+y} 1752 then : 1753 printf %s "(cached) " >&6 1754 else case e in #( 1755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1756 /* end confdefs.h. */ 1757 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1758 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1759 #define $2 innocuous_$2 1760 1761 /* System header to define __stub macros and hopefully few prototypes, 1762 which can conflict with char $2 (void); below. */ 1763 1764 #include <limits.h> 1765 #undef $2 1766 1767 /* Override any GCC internal prototype to avoid an error. 1768 Use char because int might match the return type of a GCC 1769 builtin and then its argument prototype would still apply. */ 1770 #ifdef __cplusplus 1771 extern "C" 1772 #endif 1773 char $2 (void); 1774 /* The GNU C library defines this for functions which it implements 1775 to always fail with ENOSYS. Some functions are actually named 1776 something starting with __ and the normal name is an alias. */ 1777 #if defined __stub_$2 || defined __stub___$2 1778 choke me 1779 #endif 1780 1781 int 1782 main (void) 1783 { 1784 return $2 (); 1785 ; 1786 return 0; 1787 } 1788 _ACEOF 1789 if ac_fn_c_try_link "$LINENO" 1790 then : 1791 eval "$3=yes" 1792 else case e in #( 1793 e) eval "$3=no" ;; 1794 esac 1795 fi 1796 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1797 conftest$ac_exeext conftest.$ac_ext ;; 1798 esac 1799 fi 1800 eval ac_res=\$$3 1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1802 printf "%s\n" "$ac_res" >&6; } 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 1805 } # ac_fn_c_check_func 1806 1807 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1808 # ------------------------------------------------------------------ 1809 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1810 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1811 ac_fn_check_decl () 1812 { 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 as_decl_name=`echo $2|sed 's/ *(.*//'` 1815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1816 printf %s "checking whether $as_decl_name is declared... " >&6; } 1817 if eval test \${$3+y} 1818 then : 1819 printf %s "(cached) " >&6 1820 else case e in #( 1821 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1822 eval ac_save_FLAGS=\$$6 1823 as_fn_append $6 " $5" 1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825 /* end confdefs.h. */ 1826 $4 1827 int 1828 main (void) 1829 { 1830 #ifndef $as_decl_name 1831 #ifdef __cplusplus 1832 (void) $as_decl_use; 1833 #else 1834 (void) $as_decl_name; 1835 #endif 1836 #endif 1837 1838 ; 1839 return 0; 1840 } 1841 _ACEOF 1842 if ac_fn_c_try_compile "$LINENO" 1843 then : 1844 eval "$3=yes" 1845 else case e in #( 1846 e) eval "$3=no" ;; 1847 esac 1848 fi 1849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1850 eval $6=\$ac_save_FLAGS 1851 ;; 1852 esac 1853 fi 1854 eval ac_res=\$$3 1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1856 printf "%s\n" "$ac_res" >&6; } 1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1858 1859 } # ac_fn_check_decl 1860 1861 # ac_fn_c_try_run LINENO 1862 # ---------------------- 1863 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1864 # executables *can* be run. 1865 ac_fn_c_try_run () 1866 { 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 if { { ac_try="$ac_link" 1869 case "(($ac_try" in 1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1871 *) ac_try_echo=$ac_try;; 1872 esac 1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1874 printf "%s\n" "$ac_try_echo"; } >&5 1875 (eval "$ac_link") 2>&5 1876 ac_status=$? 1877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1878 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1879 { { case "(($ac_try" in 1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1881 *) ac_try_echo=$ac_try;; 1882 esac 1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1884 printf "%s\n" "$ac_try_echo"; } >&5 1885 (eval "$ac_try") 2>&5 1886 ac_status=$? 1887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1888 test $ac_status = 0; }; } 1889 then : 1890 ac_retval=0 1891 else case e in #( 1892 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1893 printf "%s\n" "$as_me: failed program was:" >&5 1894 sed 's/^/| /' conftest.$ac_ext >&5 1895 1896 ac_retval=$ac_status ;; 1897 esac 1898 fi 1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1901 as_fn_set_status $ac_retval 1902 1903 } # ac_fn_c_try_run 1904 1905 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1906 # ---------------------------------------------------- 1907 # Tries to find if the field MEMBER exists in type AGGR, after including 1908 # INCLUDES, setting cache variable VAR accordingly. 1909 ac_fn_c_check_member () 1910 { 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1913 printf %s "checking for $2.$3... " >&6; } 1914 if eval test \${$4+y} 1915 then : 1916 printf %s "(cached) " >&6 1917 else case e in #( 1918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919 /* end confdefs.h. */ 1920 $5 1921 int 1922 main (void) 1923 { 1924 static $2 ac_aggr; 1925 if (ac_aggr.$3) 1926 return 0; 1927 ; 1928 return 0; 1929 } 1930 _ACEOF 1931 if ac_fn_c_try_compile "$LINENO" 1932 then : 1933 eval "$4=yes" 1934 else case e in #( 1935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936 /* end confdefs.h. */ 1937 $5 1938 int 1939 main (void) 1940 { 1941 static $2 ac_aggr; 1942 if (sizeof ac_aggr.$3) 1943 return 0; 1944 ; 1945 return 0; 1946 } 1947 _ACEOF 1948 if ac_fn_c_try_compile "$LINENO" 1949 then : 1950 eval "$4=yes" 1951 else case e in #( 1952 e) eval "$4=no" ;; 1953 esac 1954 fi 1955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1956 esac 1957 fi 1958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1959 esac 1960 fi 1961 eval ac_res=\$$4 1962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1963 printf "%s\n" "$ac_res" >&6; } 1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1965 1966 } # ac_fn_c_check_member 1967 1968 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1969 # ------------------------------------------- 1970 # Tests whether TYPE exists after having included INCLUDES, setting cache 1971 # variable VAR accordingly. 1972 ac_fn_c_check_type () 1973 { 1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976 printf %s "checking for $2... " >&6; } 1977 if eval test \${$3+y} 1978 then : 1979 printf %s "(cached) " >&6 1980 else case e in #( 1981 e) eval "$3=no" 1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1983 /* end confdefs.h. */ 1984 $4 1985 int 1986 main (void) 1987 { 1988 if (sizeof ($2)) 1989 return 0; 1990 ; 1991 return 0; 1992 } 1993 _ACEOF 1994 if ac_fn_c_try_compile "$LINENO" 1995 then : 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997 /* end confdefs.h. */ 1998 $4 1999 int 2000 main (void) 2001 { 2002 if (sizeof (($2))) 2003 return 0; 2004 ; 2005 return 0; 2006 } 2007 _ACEOF 2008 if ac_fn_c_try_compile "$LINENO" 2009 then : 2010 2011 else case e in #( 2012 e) eval "$3=yes" ;; 2013 esac 2014 fi 2015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2016 fi 2017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2018 esac 2019 fi 2020 eval ac_res=\$$3 2021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2022 printf "%s\n" "$ac_res" >&6; } 2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2024 2025 } # ac_fn_c_check_type 2026 ac_configure_args_raw= 2027 for ac_arg 2028 do 2029 case $ac_arg in 2030 *\'*) 2031 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2032 esac 2033 as_fn_append ac_configure_args_raw " '$ac_arg'" 2034 done 2035 2036 case $ac_configure_args_raw in 2037 *$as_nl*) 2038 ac_safe_unquote= ;; 2039 *) 2040 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2041 ac_unsafe_a="$ac_unsafe_z#~" 2042 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2043 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2044 esac 2045 2046 cat >config.log <<_ACEOF 2047 This file contains any messages produced by compilers while 2048 running configure, to aid debugging if configure makes a mistake. 2049 2050 It was created by libFS $as_me 1.0.10, which was 2051 generated by GNU Autoconf 2.72. Invocation command line was 2052 2053 $ $0$ac_configure_args_raw 2054 2055 _ACEOF 2056 exec 5>>config.log 2057 { 2058 cat <<_ASUNAME 2059 ## --------- ## 2060 ## Platform. ## 2061 ## --------- ## 2062 2063 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2064 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2065 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2066 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2067 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2068 2069 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2070 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2071 2072 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2073 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2074 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2075 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2076 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2077 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2078 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2079 2080 _ASUNAME 2081 2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2083 for as_dir in $PATH 2084 do 2085 IFS=$as_save_IFS 2086 case $as_dir in #((( 2087 '') as_dir=./ ;; 2088 */) ;; 2089 *) as_dir=$as_dir/ ;; 2090 esac 2091 printf "%s\n" "PATH: $as_dir" 2092 done 2093 IFS=$as_save_IFS 2094 2095 } >&5 2096 2097 cat >&5 <<_ACEOF 2098 2099 2100 ## ----------- ## 2101 ## Core tests. ## 2102 ## ----------- ## 2103 2104 _ACEOF 2105 2106 2107 # Keep a trace of the command line. 2108 # Strip out --no-create and --no-recursion so they do not pile up. 2109 # Strip out --silent because we don't want to record it for future runs. 2110 # Also quote any args containing shell meta-characters. 2111 # Make two passes to allow for proper duplicate-argument suppression. 2112 ac_configure_args= 2113 ac_configure_args0= 2114 ac_configure_args1= 2115 ac_must_keep_next=false 2116 for ac_pass in 1 2 2117 do 2118 for ac_arg 2119 do 2120 case $ac_arg in 2121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2123 | -silent | --silent | --silen | --sile | --sil) 2124 continue ;; 2125 *\'*) 2126 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2127 esac 2128 case $ac_pass in 2129 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2130 2) 2131 as_fn_append ac_configure_args1 " '$ac_arg'" 2132 if test $ac_must_keep_next = true; then 2133 ac_must_keep_next=false # Got value, back to normal. 2134 else 2135 case $ac_arg in 2136 *=* | --config-cache | -C | -disable-* | --disable-* \ 2137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2139 | -with-* | --with-* | -without-* | --without-* | --x) 2140 case "$ac_configure_args0 " in 2141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2142 esac 2143 ;; 2144 -* ) ac_must_keep_next=true ;; 2145 esac 2146 fi 2147 as_fn_append ac_configure_args " '$ac_arg'" 2148 ;; 2149 esac 2150 done 2151 done 2152 { ac_configure_args0=; unset ac_configure_args0;} 2153 { ac_configure_args1=; unset ac_configure_args1;} 2154 2155 # When interrupted or exit'd, cleanup temporary files, and complete 2156 # config.log. We remove comments because anyway the quotes in there 2157 # would cause problems or look ugly. 2158 # WARNING: Use '\'' to represent an apostrophe within the trap. 2159 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2160 trap 'exit_status=$? 2161 # Sanitize IFS. 2162 IFS=" "" $as_nl" 2163 # Save into config.log some information that might help in debugging. 2164 { 2165 echo 2166 2167 printf "%s\n" "## ---------------- ## 2168 ## Cache variables. ## 2169 ## ---------------- ##" 2170 echo 2171 # The following way of writing the cache mishandles newlines in values, 2172 ( 2173 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2174 eval ac_val=\$$ac_var 2175 case $ac_val in #( 2176 *${as_nl}*) 2177 case $ac_var in #( 2178 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2179 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2180 esac 2181 case $ac_var in #( 2182 _ | IFS | as_nl) ;; #( 2183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2184 *) { eval $ac_var=; unset $ac_var;} ;; 2185 esac ;; 2186 esac 2187 done 2188 (set) 2>&1 | 2189 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2190 *${as_nl}ac_space=\ *) 2191 sed -n \ 2192 "s/'\''/'\''\\\\'\'''\''/g; 2193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2194 ;; #( 2195 *) 2196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2197 ;; 2198 esac | 2199 sort 2200 ) 2201 echo 2202 2203 printf "%s\n" "## ----------------- ## 2204 ## Output variables. ## 2205 ## ----------------- ##" 2206 echo 2207 for ac_var in $ac_subst_vars 2208 do 2209 eval ac_val=\$$ac_var 2210 case $ac_val in 2211 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2212 esac 2213 printf "%s\n" "$ac_var='\''$ac_val'\''" 2214 done | sort 2215 echo 2216 2217 if test -n "$ac_subst_files"; then 2218 printf "%s\n" "## ------------------- ## 2219 ## File substitutions. ## 2220 ## ------------------- ##" 2221 echo 2222 for ac_var in $ac_subst_files 2223 do 2224 eval ac_val=\$$ac_var 2225 case $ac_val in 2226 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2227 esac 2228 printf "%s\n" "$ac_var='\''$ac_val'\''" 2229 done | sort 2230 echo 2231 fi 2232 2233 if test -s confdefs.h; then 2234 printf "%s\n" "## ----------- ## 2235 ## confdefs.h. ## 2236 ## ----------- ##" 2237 echo 2238 cat confdefs.h 2239 echo 2240 fi 2241 test "$ac_signal" != 0 && 2242 printf "%s\n" "$as_me: caught signal $ac_signal" 2243 printf "%s\n" "$as_me: exit $exit_status" 2244 } >&5 2245 rm -f core *.core core.conftest.* && 2246 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2247 exit $exit_status 2248 ' 0 2249 for ac_signal in 1 2 13 15; do 2250 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2251 done 2252 ac_signal=0 2253 2254 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2255 rm -f -r conftest* confdefs.h 2256 2257 printf "%s\n" "/* confdefs.h */" > confdefs.h 2258 2259 # Predefined preprocessor variables. 2260 2261 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2262 2263 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2264 2265 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2266 2267 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2268 2269 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2270 2271 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2272 2273 2274 # Let the site file select an alternate cache file if it wants to. 2275 # Prefer an explicitly selected file to automatically selected ones. 2276 if test -n "$CONFIG_SITE"; then 2277 ac_site_files="$CONFIG_SITE" 2278 elif test "x$prefix" != xNONE; then 2279 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2280 else 2281 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2282 fi 2283 2284 for ac_site_file in $ac_site_files 2285 do 2286 case $ac_site_file in #( 2287 */*) : 2288 ;; #( 2289 *) : 2290 ac_site_file=./$ac_site_file ;; 2291 esac 2292 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2294 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2295 sed 's/^/| /' "$ac_site_file" >&5 2296 . "$ac_site_file" \ 2297 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2298 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2299 as_fn_error $? "failed to load site script $ac_site_file 2300 See 'config.log' for more details" "$LINENO" 5; } 2301 fi 2302 done 2303 2304 if test -r "$cache_file"; then 2305 # Some versions of bash will fail to source /dev/null (special files 2306 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2307 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2309 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2310 case $cache_file in 2311 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2312 *) . "./$cache_file";; 2313 esac 2314 fi 2315 else 2316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2317 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2318 >$cache_file 2319 fi 2320 2321 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2322 # Test code for whether the C compiler supports C89 (global declarations) 2323 ac_c_conftest_c89_globals=' 2324 /* Does the compiler advertise C89 conformance? 2325 Do not test the value of __STDC__, because some compilers set it to 0 2326 while being otherwise adequately conformant. */ 2327 #if !defined __STDC__ 2328 # error "Compiler does not advertise C89 conformance" 2329 #endif 2330 2331 #include <stddef.h> 2332 #include <stdarg.h> 2333 struct stat; 2334 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2335 struct buf { int x; }; 2336 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2337 static char *e (char **p, int i) 2338 { 2339 return p[i]; 2340 } 2341 static char *f (char * (*g) (char **, int), char **p, ...) 2342 { 2343 char *s; 2344 va_list v; 2345 va_start (v,p); 2346 s = g (p, va_arg (v,int)); 2347 va_end (v); 2348 return s; 2349 } 2350 2351 /* C89 style stringification. */ 2352 #define noexpand_stringify(a) #a 2353 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2354 2355 /* C89 style token pasting. Exercises some of the corner cases that 2356 e.g. old MSVC gets wrong, but not very hard. */ 2357 #define noexpand_concat(a,b) a##b 2358 #define expand_concat(a,b) noexpand_concat(a,b) 2359 extern int vA; 2360 extern int vbee; 2361 #define aye A 2362 #define bee B 2363 int *pvA = &expand_concat(v,aye); 2364 int *pvbee = &noexpand_concat(v,bee); 2365 2366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2367 function prototypes and stuff, but not \xHH hex character constants. 2368 These do not provoke an error unfortunately, instead are silently treated 2369 as an "x". The following induces an error, until -std is added to get 2370 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2371 array size at least. It is necessary to write \x00 == 0 to get something 2372 that is true only with -std. */ 2373 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2374 2375 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2376 inside strings and character constants. */ 2377 #define FOO(x) '\''x'\'' 2378 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2379 2380 int test (int i, double x); 2381 struct s1 {int (*f) (int a);}; 2382 struct s2 {int (*f) (double a);}; 2383 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2384 int, int);' 2385 2386 # Test code for whether the C compiler supports C89 (body of main). 2387 ac_c_conftest_c89_main=' 2388 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2389 ' 2390 2391 # Test code for whether the C compiler supports C99 (global declarations) 2392 ac_c_conftest_c99_globals=' 2393 /* Does the compiler advertise C99 conformance? */ 2394 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2395 # error "Compiler does not advertise C99 conformance" 2396 #endif 2397 2398 // See if C++-style comments work. 2399 2400 #include <stdbool.h> 2401 extern int puts (const char *); 2402 extern int printf (const char *, ...); 2403 extern int dprintf (int, const char *, ...); 2404 extern void *malloc (size_t); 2405 extern void free (void *); 2406 2407 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2408 // dprintf is used instead of fprintf to avoid needing to declare 2409 // FILE and stderr. 2410 #define debug(...) dprintf (2, __VA_ARGS__) 2411 #define showlist(...) puts (#__VA_ARGS__) 2412 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2413 static void 2414 test_varargs_macros (void) 2415 { 2416 int x = 1234; 2417 int y = 5678; 2418 debug ("Flag"); 2419 debug ("X = %d\n", x); 2420 showlist (The first, second, and third items.); 2421 report (x>y, "x is %d but y is %d", x, y); 2422 } 2423 2424 // Check long long types. 2425 #define BIG64 18446744073709551615ull 2426 #define BIG32 4294967295ul 2427 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2428 #if !BIG_OK 2429 #error "your preprocessor is broken" 2430 #endif 2431 #if BIG_OK 2432 #else 2433 #error "your preprocessor is broken" 2434 #endif 2435 static long long int bignum = -9223372036854775807LL; 2436 static unsigned long long int ubignum = BIG64; 2437 2438 struct incomplete_array 2439 { 2440 int datasize; 2441 double data[]; 2442 }; 2443 2444 struct named_init { 2445 int number; 2446 const wchar_t *name; 2447 double average; 2448 }; 2449 2450 typedef const char *ccp; 2451 2452 static inline int 2453 test_restrict (ccp restrict text) 2454 { 2455 // Iterate through items via the restricted pointer. 2456 // Also check for declarations in for loops. 2457 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2458 continue; 2459 return 0; 2460 } 2461 2462 // Check varargs and va_copy. 2463 static bool 2464 test_varargs (const char *format, ...) 2465 { 2466 va_list args; 2467 va_start (args, format); 2468 va_list args_copy; 2469 va_copy (args_copy, args); 2470 2471 const char *str = ""; 2472 int number = 0; 2473 float fnumber = 0; 2474 2475 while (*format) 2476 { 2477 switch (*format++) 2478 { 2479 case '\''s'\'': // string 2480 str = va_arg (args_copy, const char *); 2481 break; 2482 case '\''d'\'': // int 2483 number = va_arg (args_copy, int); 2484 break; 2485 case '\''f'\'': // float 2486 fnumber = va_arg (args_copy, double); 2487 break; 2488 default: 2489 break; 2490 } 2491 } 2492 va_end (args_copy); 2493 va_end (args); 2494 2495 return *str && number && fnumber; 2496 } 2497 ' 2498 2499 # Test code for whether the C compiler supports C99 (body of main). 2500 ac_c_conftest_c99_main=' 2501 // Check bool. 2502 _Bool success = false; 2503 success |= (argc != 0); 2504 2505 // Check restrict. 2506 if (test_restrict ("String literal") == 0) 2507 success = true; 2508 char *restrict newvar = "Another string"; 2509 2510 // Check varargs. 2511 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2512 test_varargs_macros (); 2513 2514 // Check flexible array members. 2515 struct incomplete_array *ia = 2516 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2517 ia->datasize = 10; 2518 for (int i = 0; i < ia->datasize; ++i) 2519 ia->data[i] = i * 1.234; 2520 // Work around memory leak warnings. 2521 free (ia); 2522 2523 // Check named initializers. 2524 struct named_init ni = { 2525 .number = 34, 2526 .name = L"Test wide string", 2527 .average = 543.34343, 2528 }; 2529 2530 ni.number = 58; 2531 2532 int dynamic_array[ni.number]; 2533 dynamic_array[0] = argv[0][0]; 2534 dynamic_array[ni.number - 1] = 543; 2535 2536 // work around unused variable warnings 2537 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2538 || dynamic_array[ni.number - 1] != 543); 2539 ' 2540 2541 # Test code for whether the C compiler supports C11 (global declarations) 2542 ac_c_conftest_c11_globals=' 2543 /* Does the compiler advertise C11 conformance? */ 2544 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2545 # error "Compiler does not advertise C11 conformance" 2546 #endif 2547 2548 // Check _Alignas. 2549 char _Alignas (double) aligned_as_double; 2550 char _Alignas (0) no_special_alignment; 2551 extern char aligned_as_int; 2552 char _Alignas (0) _Alignas (int) aligned_as_int; 2553 2554 // Check _Alignof. 2555 enum 2556 { 2557 int_alignment = _Alignof (int), 2558 int_array_alignment = _Alignof (int[100]), 2559 char_alignment = _Alignof (char) 2560 }; 2561 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2562 2563 // Check _Noreturn. 2564 int _Noreturn does_not_return (void) { for (;;) continue; } 2565 2566 // Check _Static_assert. 2567 struct test_static_assert 2568 { 2569 int x; 2570 _Static_assert (sizeof (int) <= sizeof (long int), 2571 "_Static_assert does not work in struct"); 2572 long int y; 2573 }; 2574 2575 // Check UTF-8 literals. 2576 #define u8 syntax error! 2577 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2578 2579 // Check duplicate typedefs. 2580 typedef long *long_ptr; 2581 typedef long int *long_ptr; 2582 typedef long_ptr long_ptr; 2583 2584 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2585 struct anonymous 2586 { 2587 union { 2588 struct { int i; int j; }; 2589 struct { int k; long int l; } w; 2590 }; 2591 int m; 2592 } v1; 2593 ' 2594 2595 # Test code for whether the C compiler supports C11 (body of main). 2596 ac_c_conftest_c11_main=' 2597 _Static_assert ((offsetof (struct anonymous, i) 2598 == offsetof (struct anonymous, w.k)), 2599 "Anonymous union alignment botch"); 2600 v1.i = 2; 2601 v1.w.k = 5; 2602 ok |= v1.i != 5; 2603 ' 2604 2605 # Test code for whether the C compiler supports C11 (complete). 2606 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2607 ${ac_c_conftest_c99_globals} 2608 ${ac_c_conftest_c11_globals} 2609 2610 int 2611 main (int argc, char **argv) 2612 { 2613 int ok = 0; 2614 ${ac_c_conftest_c89_main} 2615 ${ac_c_conftest_c99_main} 2616 ${ac_c_conftest_c11_main} 2617 return ok; 2618 } 2619 " 2620 2621 # Test code for whether the C compiler supports C99 (complete). 2622 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2623 ${ac_c_conftest_c99_globals} 2624 2625 int 2626 main (int argc, char **argv) 2627 { 2628 int ok = 0; 2629 ${ac_c_conftest_c89_main} 2630 ${ac_c_conftest_c99_main} 2631 return ok; 2632 } 2633 " 2634 2635 # Test code for whether the C compiler supports C89 (complete). 2636 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2637 2638 int 2639 main (int argc, char **argv) 2640 { 2641 int ok = 0; 2642 ${ac_c_conftest_c89_main} 2643 return ok; 2644 } 2645 " 2646 2647 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2648 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2649 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2650 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2651 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2652 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2653 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2654 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2655 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2656 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2657 2658 # Auxiliary files required by this configure script. 2659 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2660 2661 # Locations in which to look for auxiliary files. 2662 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2663 2664 # Search for a directory containing all of the required auxiliary files, 2665 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2666 # If we don't find one directory that contains all the files we need, 2667 # we report the set of missing files from the *first* directory in 2668 # $ac_aux_dir_candidates and give up. 2669 ac_missing_aux_files="" 2670 ac_first_candidate=: 2671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2673 as_found=false 2674 for as_dir in $ac_aux_dir_candidates 2675 do 2676 IFS=$as_save_IFS 2677 case $as_dir in #((( 2678 '') as_dir=./ ;; 2679 */) ;; 2680 *) as_dir=$as_dir/ ;; 2681 esac 2682 as_found=: 2683 2684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2685 ac_aux_dir_found=yes 2686 ac_install_sh= 2687 for ac_aux in $ac_aux_files 2688 do 2689 # As a special case, if "install-sh" is required, that requirement 2690 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2691 # and $ac_install_sh is set appropriately for whichever one is found. 2692 if test x"$ac_aux" = x"install-sh" 2693 then 2694 if test -f "${as_dir}install-sh"; then 2695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2696 ac_install_sh="${as_dir}install-sh -c" 2697 elif test -f "${as_dir}install.sh"; then 2698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2699 ac_install_sh="${as_dir}install.sh -c" 2700 elif test -f "${as_dir}shtool"; then 2701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2702 ac_install_sh="${as_dir}shtool install -c" 2703 else 2704 ac_aux_dir_found=no 2705 if $ac_first_candidate; then 2706 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2707 else 2708 break 2709 fi 2710 fi 2711 else 2712 if test -f "${as_dir}${ac_aux}"; then 2713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2714 else 2715 ac_aux_dir_found=no 2716 if $ac_first_candidate; then 2717 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2718 else 2719 break 2720 fi 2721 fi 2722 fi 2723 done 2724 if test "$ac_aux_dir_found" = yes; then 2725 ac_aux_dir="$as_dir" 2726 break 2727 fi 2728 ac_first_candidate=false 2729 2730 as_found=false 2731 done 2732 IFS=$as_save_IFS 2733 if $as_found 2734 then : 2735 2736 else case e in #( 2737 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2738 esac 2739 fi 2740 2741 2742 # These three variables are undocumented and unsupported, 2743 # and are intended to be withdrawn in a future Autoconf release. 2744 # They can cause serious problems if a builder's source tree is in a directory 2745 # whose full name contains unusual characters. 2746 if test -f "${ac_aux_dir}config.guess"; then 2747 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2748 fi 2749 if test -f "${ac_aux_dir}config.sub"; then 2750 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2751 fi 2752 if test -f "$ac_aux_dir/configure"; then 2753 ac_configure="$SHELL ${ac_aux_dir}configure" 2754 fi 2755 2756 # Check that the precious variables saved in the cache have kept the same 2757 # value. 2758 ac_cache_corrupted=false 2759 for ac_var in $ac_precious_vars; do 2760 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2761 eval ac_new_set=\$ac_env_${ac_var}_set 2762 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2763 eval ac_new_val=\$ac_env_${ac_var}_value 2764 case $ac_old_set,$ac_new_set in 2765 set,) 2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2767 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2768 ac_cache_corrupted=: ;; 2769 ,set) 2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2771 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2772 ac_cache_corrupted=: ;; 2773 ,);; 2774 *) 2775 if test "x$ac_old_val" != "x$ac_new_val"; then 2776 # differences in whitespace do not lead to failure. 2777 ac_old_val_w=`echo x $ac_old_val` 2778 ac_new_val_w=`echo x $ac_new_val` 2779 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2781 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2782 ac_cache_corrupted=: 2783 else 2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2785 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2786 eval $ac_var=\$ac_old_val 2787 fi 2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2789 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2791 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2792 fi;; 2793 esac 2794 # Pass precious variables to config.status. 2795 if test "$ac_new_set" = set; then 2796 case $ac_new_val in 2797 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2798 *) ac_arg=$ac_var=$ac_new_val ;; 2799 esac 2800 case " $ac_configure_args " in 2801 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2802 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2803 esac 2804 fi 2805 done 2806 if $ac_cache_corrupted; then 2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2808 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2810 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2811 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2812 and start over" "$LINENO" 5 2813 fi 2814 ## -------------------- ## 2815 ## Main body of script. ## 2816 ## -------------------- ## 2817 2818 ac_ext=c 2819 ac_cpp='$CPP $CPPFLAGS' 2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2823 2824 2825 2826 ac_config_headers="$ac_config_headers config.h" 2827 2828 2829 2830 # Initialize Automake 2831 am__api_version='1.17' 2832 2833 2834 2835 # Find a good install program. We prefer a C program (faster), 2836 # so one script is as good as another. But avoid the broken or 2837 # incompatible versions: 2838 # SysV /etc/install, /usr/sbin/install 2839 # SunOS /usr/etc/install 2840 # IRIX /sbin/install 2841 # AIX /bin/install 2842 # AmigaOS /C/install, which installs bootblocks on floppy discs 2843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2846 # OS/2's system install, which has a completely different semantic 2847 # ./install, which can be erroneously created by make from ./install.sh. 2848 # Reject install programs that cannot install multiple files. 2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2850 printf %s "checking for a BSD-compatible install... " >&6; } 2851 if test -z "$INSTALL"; then 2852 if test ${ac_cv_path_install+y} 2853 then : 2854 printf %s "(cached) " >&6 2855 else case e in #( 2856 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2857 for as_dir in $PATH 2858 do 2859 IFS=$as_save_IFS 2860 case $as_dir in #((( 2861 '') as_dir=./ ;; 2862 */) ;; 2863 *) as_dir=$as_dir/ ;; 2864 esac 2865 # Account for fact that we put trailing slashes in our PATH walk. 2866 case $as_dir in #(( 2867 ./ | /[cC]/* | \ 2868 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2869 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2870 /usr/ucb/* ) ;; 2871 *) 2872 # OSF1 and SCO ODT 3.0 have their own names for install. 2873 # Don't use installbsd from OSF since it installs stuff as root 2874 # by default. 2875 for ac_prog in ginstall scoinst install; do 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2878 if test $ac_prog = install && 2879 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2880 # AIX install. It has an incompatible calling convention. 2881 : 2882 elif test $ac_prog = install && 2883 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2884 # program-specific install script used by HP pwplus--don't use. 2885 : 2886 else 2887 rm -rf conftest.one conftest.two conftest.dir 2888 echo one > conftest.one 2889 echo two > conftest.two 2890 mkdir conftest.dir 2891 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2892 test -s conftest.one && test -s conftest.two && 2893 test -s conftest.dir/conftest.one && 2894 test -s conftest.dir/conftest.two 2895 then 2896 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2897 break 3 2898 fi 2899 fi 2900 fi 2901 done 2902 done 2903 ;; 2904 esac 2905 2906 done 2907 IFS=$as_save_IFS 2908 2909 rm -rf conftest.one conftest.two conftest.dir 2910 ;; 2911 esac 2912 fi 2913 if test ${ac_cv_path_install+y}; then 2914 INSTALL=$ac_cv_path_install 2915 else 2916 # As a last resort, use the slow shell script. Don't cache a 2917 # value for INSTALL within a source directory, because that will 2918 # break other packages using the cache if that directory is 2919 # removed, or if the value is a relative name. 2920 INSTALL=$ac_install_sh 2921 fi 2922 fi 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2924 printf "%s\n" "$INSTALL" >&6; } 2925 2926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2927 # It thinks the first close brace ends the variable substitution. 2928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2929 2930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2931 2932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2933 2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2935 printf %s "checking whether sleep supports fractional seconds... " >&6; } 2936 if test ${am_cv_sleep_fractional_seconds+y} 2937 then : 2938 printf %s "(cached) " >&6 2939 else case e in #( 2940 e) if sleep 0.001 2>/dev/null 2941 then : 2942 am_cv_sleep_fractional_seconds=yes 2943 else case e in #( 2944 e) am_cv_sleep_fractional_seconds=no ;; 2945 esac 2946 fi 2947 ;; 2948 esac 2949 fi 2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2951 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2952 2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2954 printf %s "checking filesystem timestamp resolution... " >&6; } 2955 if test ${am_cv_filesystem_timestamp_resolution+y} 2956 then : 2957 printf %s "(cached) " >&6 2958 else case e in #( 2959 e) # Default to the worst case. 2960 am_cv_filesystem_timestamp_resolution=2 2961 2962 # Only try to go finer than 1 sec if sleep can do it. 2963 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2964 # - 1 sec is not much of a win compared to 2 sec, and 2965 # - it takes 2 seconds to perform the test whether 1 sec works. 2966 # 2967 # Instead, just use the default 2s on platforms that have 1s resolution, 2968 # accept the extra 1s delay when using $sleep in the Automake tests, in 2969 # exchange for not incurring the 2s delay for running the test for all 2970 # packages. 2971 # 2972 am_try_resolutions= 2973 if test "$am_cv_sleep_fractional_seconds" = yes; then 2974 # Even a millisecond often causes a bunch of false positives, 2975 # so just try a hundredth of a second. The time saved between .001 and 2976 # .01 is not terribly consequential. 2977 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2978 fi 2979 2980 # In order to catch current-generation FAT out, we must *modify* files 2981 # that already exist; the *creation* timestamp is finer. Use names 2982 # that make ls -t sort them differently when they have equal 2983 # timestamps than when they have distinct timestamps, keeping 2984 # in mind that ls -t prints the *newest* file first. 2985 rm -f conftest.ts? 2986 : > conftest.ts1 2987 : > conftest.ts2 2988 : > conftest.ts3 2989 2990 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 2991 # clobber the current shell's arguments. (Outer-level square brackets 2992 # are removed by m4; they're present so that m4 does not expand 2993 # <dollar><star>; be careful, easy to get confused.) 2994 if ( 2995 set X `ls -t conftest.ts[12]` && 2996 { 2997 test "$*" != "X conftest.ts1 conftest.ts2" || 2998 test "$*" != "X conftest.ts2 conftest.ts1"; 2999 } 3000 ); then :; else 3001 # If neither matched, then we have a broken ls. This can happen 3002 # if, for instance, CONFIG_SHELL is bash and it inherits a 3003 # broken ls alias from the environment. This has actually 3004 # happened. Such a system could not be considered "sane". 3005 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 3006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3007 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3008 as_fn_error $? "ls -t produces unexpected output. 3009 Make sure there is not a broken ls alias in your environment. 3010 See 'config.log' for more details" "$LINENO" 5; } 3011 fi 3012 3013 for am_try_res in $am_try_resolutions; do 3014 # Any one fine-grained sleep might happen to cross the boundary 3015 # between two values of a coarser actual resolution, but if we do 3016 # two fine-grained sleeps in a row, at least one of them will fall 3017 # entirely within a coarse interval. 3018 echo alpha > conftest.ts1 3019 sleep $am_try_res 3020 echo beta > conftest.ts2 3021 sleep $am_try_res 3022 echo gamma > conftest.ts3 3023 3024 # We assume that 'ls -t' will make use of high-resolution 3025 # timestamps if the operating system supports them at all. 3026 if (set X `ls -t conftest.ts?` && 3027 test "$2" = conftest.ts3 && 3028 test "$3" = conftest.ts2 && 3029 test "$4" = conftest.ts1); then 3030 # 3031 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 3032 # because we don't need to test make. 3033 make_ok=true 3034 if test $am_try_res != 1; then 3035 # But if we've succeeded so far with a subsecond resolution, we 3036 # have one more thing to check: make. It can happen that 3037 # everything else supports the subsecond mtimes, but make doesn't; 3038 # notably on macOS, which ships make 3.81 from 2006 (the last one 3039 # released under GPLv2). https://bugs.gnu.org/68808 3040 # 3041 # We test $MAKE if it is defined in the environment, else "make". 3042 # It might get overridden later, but our hope is that in practice 3043 # it does not matter: it is the system "make" which is (by far) 3044 # the most likely to be broken, whereas if the user overrides it, 3045 # probably they did so with a better, or at least not worse, make. 3046 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 3047 # 3048 # Create a Makefile (real tab character here): 3049 rm -f conftest.mk 3050 echo 'conftest.ts1: conftest.ts2' >conftest.mk 3051 echo ' touch conftest.ts2' >>conftest.mk 3052 # 3053 # Now, running 3054 # touch conftest.ts1; touch conftest.ts2; make 3055 # should touch ts1 because ts2 is newer. This could happen by luck, 3056 # but most often, it will fail if make's support is insufficient. So 3057 # test for several consecutive successes. 3058 # 3059 # (We reuse conftest.ts[12] because we still want to modify existing 3060 # files, not create new ones, per above.) 3061 n=0 3062 make=${MAKE-make} 3063 until test $n -eq 3; do 3064 echo one > conftest.ts1 3065 sleep $am_try_res 3066 echo two > conftest.ts2 # ts2 should now be newer than ts1 3067 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 3068 make_ok=false 3069 break # out of $n loop 3070 fi 3071 n=`expr $n + 1` 3072 done 3073 fi 3074 # 3075 if $make_ok; then 3076 # Everything we know to check worked out, so call this resolution good. 3077 am_cv_filesystem_timestamp_resolution=$am_try_res 3078 break # out of $am_try_res loop 3079 fi 3080 # Otherwise, we'll go on to check the next resolution. 3081 fi 3082 done 3083 rm -f conftest.ts? 3084 # (end _am_filesystem_timestamp_resolution) 3085 ;; 3086 esac 3087 fi 3088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3089 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3090 3091 # This check should not be cached, as it may vary across builds of 3092 # different projects. 3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3094 printf %s "checking whether build environment is sane... " >&6; } 3095 # Reject unsafe characters in $srcdir or the absolute working directory 3096 # name. Accept space and tab only in the latter. 3097 am_lf=' 3098 ' 3099 case `pwd` in 3100 *[\\\"\#\$\&\'\`$am_lf]*) 3101 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3102 esac 3103 case $srcdir in 3104 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3105 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3106 esac 3107 3108 # Do 'set' in a subshell so we don't clobber the current shell's 3109 # arguments. Must try -L first in case configure is actually a 3110 # symlink; some systems play weird games with the mod time of symlinks 3111 # (eg FreeBSD returns the mod time of the symlink's containing 3112 # directory). 3113 am_build_env_is_sane=no 3114 am_has_slept=no 3115 rm -f conftest.file 3116 for am_try in 1 2; do 3117 echo "timestamp, slept: $am_has_slept" > conftest.file 3118 if ( 3119 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3120 if test "$*" = "X"; then 3121 # -L didn't work. 3122 set X `ls -t "$srcdir/configure" conftest.file` 3123 fi 3124 test "$2" = conftest.file 3125 ); then 3126 am_build_env_is_sane=yes 3127 break 3128 fi 3129 # Just in case. 3130 sleep "$am_cv_filesystem_timestamp_resolution" 3131 am_has_slept=yes 3132 done 3133 3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3135 printf "%s\n" "$am_build_env_is_sane" >&6; } 3136 if test "$am_build_env_is_sane" = no; then 3137 as_fn_error $? "newly created file is older than distributed files! 3138 Check your system clock" "$LINENO" 5 3139 fi 3140 3141 # If we didn't sleep, we still need to ensure time stamps of config.status and 3142 # generated files are strictly newer. 3143 am_sleep_pid= 3144 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3145 then : 3146 3147 else case e in #( 3148 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3149 am_sleep_pid=$! 3150 ;; 3151 esac 3152 fi 3153 3154 rm -f conftest.file 3155 3156 test "$program_prefix" != NONE && 3157 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3158 # Use a double $ so make ignores it. 3159 test "$program_suffix" != NONE && 3160 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3161 # Double any \ or $. 3162 # By default was 's,x,x', remove it if useless. 3163 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3164 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3165 3166 3167 # Expand $ac_aux_dir to an absolute path. 3168 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3169 3170 3171 if test x"${MISSING+set}" != xset; then 3172 MISSING="\${SHELL} '$am_aux_dir/missing'" 3173 fi 3174 # Use eval to expand $SHELL 3175 if eval "$MISSING --is-lightweight"; then 3176 am_missing_run="$MISSING " 3177 else 3178 am_missing_run= 3179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3180 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3181 fi 3182 3183 if test x"${install_sh+set}" != xset; then 3184 case $am_aux_dir in 3185 *\ * | *\ *) 3186 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3187 *) 3188 install_sh="\${SHELL} $am_aux_dir/install-sh" 3189 esac 3190 fi 3191 3192 # Installed binaries are usually stripped using 'strip' when the user 3193 # run "make install-strip". However 'strip' might not be the right 3194 # tool to use in cross-compilation environments, therefore Automake 3195 # will honor the 'STRIP' environment variable to overrule this program. 3196 if test "$cross_compiling" != no; then 3197 if test -n "$ac_tool_prefix"; then 3198 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3199 set dummy ${ac_tool_prefix}strip; ac_word=$2 3200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3201 printf %s "checking for $ac_word... " >&6; } 3202 if test ${ac_cv_prog_STRIP+y} 3203 then : 3204 printf %s "(cached) " >&6 3205 else case e in #( 3206 e) if test -n "$STRIP"; then 3207 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3208 else 3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210 for as_dir in $PATH 3211 do 3212 IFS=$as_save_IFS 3213 case $as_dir in #((( 3214 '') as_dir=./ ;; 3215 */) ;; 3216 *) as_dir=$as_dir/ ;; 3217 esac 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3220 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3222 break 2 3223 fi 3224 done 3225 done 3226 IFS=$as_save_IFS 3227 3228 fi ;; 3229 esac 3230 fi 3231 STRIP=$ac_cv_prog_STRIP 3232 if test -n "$STRIP"; then 3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3234 printf "%s\n" "$STRIP" >&6; } 3235 else 3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3237 printf "%s\n" "no" >&6; } 3238 fi 3239 3240 3241 fi 3242 if test -z "$ac_cv_prog_STRIP"; then 3243 ac_ct_STRIP=$STRIP 3244 # Extract the first word of "strip", so it can be a program name with args. 3245 set dummy strip; ac_word=$2 3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3247 printf %s "checking for $ac_word... " >&6; } 3248 if test ${ac_cv_prog_ac_ct_STRIP+y} 3249 then : 3250 printf %s "(cached) " >&6 3251 else case e in #( 3252 e) if test -n "$ac_ct_STRIP"; then 3253 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3254 else 3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3256 for as_dir in $PATH 3257 do 3258 IFS=$as_save_IFS 3259 case $as_dir in #((( 3260 '') as_dir=./ ;; 3261 */) ;; 3262 *) as_dir=$as_dir/ ;; 3263 esac 3264 for ac_exec_ext in '' $ac_executable_extensions; do 3265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3266 ac_cv_prog_ac_ct_STRIP="strip" 3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3268 break 2 3269 fi 3270 done 3271 done 3272 IFS=$as_save_IFS 3273 3274 fi ;; 3275 esac 3276 fi 3277 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3278 if test -n "$ac_ct_STRIP"; then 3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3280 printf "%s\n" "$ac_ct_STRIP" >&6; } 3281 else 3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3283 printf "%s\n" "no" >&6; } 3284 fi 3285 3286 if test "x$ac_ct_STRIP" = x; then 3287 STRIP=":" 3288 else 3289 case $cross_compiling:$ac_tool_warned in 3290 yes:) 3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3293 ac_tool_warned=yes ;; 3294 esac 3295 STRIP=$ac_ct_STRIP 3296 fi 3297 else 3298 STRIP="$ac_cv_prog_STRIP" 3299 fi 3300 3301 fi 3302 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3303 3304 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3306 printf %s "checking for a race-free mkdir -p... " >&6; } 3307 if test -z "$MKDIR_P"; then 3308 if test ${ac_cv_path_mkdir+y} 3309 then : 3310 printf %s "(cached) " >&6 3311 else case e in #( 3312 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3313 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3314 do 3315 IFS=$as_save_IFS 3316 case $as_dir in #((( 3317 '') as_dir=./ ;; 3318 */) ;; 3319 *) as_dir=$as_dir/ ;; 3320 esac 3321 for ac_prog in mkdir gmkdir; do 3322 for ac_exec_ext in '' $ac_executable_extensions; do 3323 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3324 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3325 'mkdir ('*'coreutils) '* | \ 3326 *'BusyBox '* | \ 3327 'mkdir (fileutils) '4.1*) 3328 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3329 break 3;; 3330 esac 3331 done 3332 done 3333 done 3334 IFS=$as_save_IFS 3335 ;; 3336 esac 3337 fi 3338 3339 test -d ./--version && rmdir ./--version 3340 if test ${ac_cv_path_mkdir+y}; then 3341 MKDIR_P="$ac_cv_path_mkdir -p" 3342 else 3343 # As a last resort, use plain mkdir -p, 3344 # in the hope it doesn't have the bugs of ancient mkdir. 3345 MKDIR_P='mkdir -p' 3346 fi 3347 fi 3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3349 printf "%s\n" "$MKDIR_P" >&6; } 3350 3351 for ac_prog in gawk mawk nawk awk 3352 do 3353 # Extract the first word of "$ac_prog", so it can be a program name with args. 3354 set dummy $ac_prog; ac_word=$2 3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3356 printf %s "checking for $ac_word... " >&6; } 3357 if test ${ac_cv_prog_AWK+y} 3358 then : 3359 printf %s "(cached) " >&6 3360 else case e in #( 3361 e) if test -n "$AWK"; then 3362 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3363 else 3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365 for as_dir in $PATH 3366 do 3367 IFS=$as_save_IFS 3368 case $as_dir in #((( 3369 '') as_dir=./ ;; 3370 */) ;; 3371 *) as_dir=$as_dir/ ;; 3372 esac 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3375 ac_cv_prog_AWK="$ac_prog" 3376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3377 break 2 3378 fi 3379 done 3380 done 3381 IFS=$as_save_IFS 3382 3383 fi ;; 3384 esac 3385 fi 3386 AWK=$ac_cv_prog_AWK 3387 if test -n "$AWK"; then 3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3389 printf "%s\n" "$AWK" >&6; } 3390 else 3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3392 printf "%s\n" "no" >&6; } 3393 fi 3394 3395 3396 test -n "$AWK" && break 3397 done 3398 3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3400 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3401 set x ${MAKE-make} 3402 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3403 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3404 then : 3405 printf %s "(cached) " >&6 3406 else case e in #( 3407 e) cat >conftest.make <<\_ACEOF 3408 SHELL = /bin/sh 3409 all: 3410 @echo '@@@%%%=$(MAKE)=@@@%%%' 3411 _ACEOF 3412 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3413 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3414 *@@@%%%=?*=@@@%%%*) 3415 eval ac_cv_prog_make_${ac_make}_set=yes;; 3416 *) 3417 eval ac_cv_prog_make_${ac_make}_set=no;; 3418 esac 3419 rm -f conftest.make ;; 3420 esac 3421 fi 3422 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3424 printf "%s\n" "yes" >&6; } 3425 SET_MAKE= 3426 else 3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3428 printf "%s\n" "no" >&6; } 3429 SET_MAKE="MAKE=${MAKE-make}" 3430 fi 3431 3432 rm -rf .tst 2>/dev/null 3433 mkdir .tst 2>/dev/null 3434 if test -d .tst; then 3435 am__leading_dot=. 3436 else 3437 am__leading_dot=_ 3438 fi 3439 rmdir .tst 2>/dev/null 3440 3441 AM_DEFAULT_VERBOSITY=1 3442 # Check whether --enable-silent-rules was given. 3443 if test ${enable_silent_rules+y} 3444 then : 3445 enableval=$enable_silent_rules; 3446 fi 3447 3448 am_make=${MAKE-make} 3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3450 printf %s "checking whether $am_make supports nested variables... " >&6; } 3451 if test ${am_cv_make_support_nested_variables+y} 3452 then : 3453 printf %s "(cached) " >&6 3454 else case e in #( 3455 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3456 BAR0=false 3457 BAR1=true 3458 V=1 3459 am__doit: 3460 @$(TRUE) 3461 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3462 am_cv_make_support_nested_variables=yes 3463 else 3464 am_cv_make_support_nested_variables=no 3465 fi ;; 3466 esac 3467 fi 3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3469 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3470 AM_BACKSLASH='\' 3471 3472 am__rm_f_notfound= 3473 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3474 then : 3475 3476 else case e in #( 3477 e) am__rm_f_notfound='""' ;; 3478 esac 3479 fi 3480 3481 3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3483 printf %s "checking xargs -n works... " >&6; } 3484 if test ${am_cv_xargs_n_works+y} 3485 then : 3486 printf %s "(cached) " >&6 3487 else case e in #( 3488 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3489 3" 3490 then : 3491 am_cv_xargs_n_works=yes 3492 else case e in #( 3493 e) am_cv_xargs_n_works=no ;; 3494 esac 3495 fi ;; 3496 esac 3497 fi 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3499 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3500 if test "$am_cv_xargs_n_works" = yes 3501 then : 3502 am__xargs_n='xargs -n' 3503 else case e in #( 3504 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3505 ;; 3506 esac 3507 fi 3508 3509 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3510 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3511 # is not polluted with repeated "-I." 3512 am__isrc=' -I$(srcdir)' 3513 # test to see if srcdir already configured 3514 if test -f $srcdir/config.status; then 3515 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3516 fi 3517 fi 3518 3519 # test whether we have cygpath 3520 if test -z "$CYGPATH_W"; then 3521 if (cygpath --version) >/dev/null 2>/dev/null; then 3522 CYGPATH_W='cygpath -w' 3523 else 3524 CYGPATH_W=echo 3525 fi 3526 fi 3527 3528 3529 # Define the identity of the package. 3530 PACKAGE='libFS' 3531 VERSION='1.0.10' 3532 3533 3534 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3535 3536 3537 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3538 3539 # Some tools Automake needs. 3540 3541 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3542 3543 3544 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3545 3546 3547 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3548 3549 3550 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3551 3552 3553 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3554 3555 # For better backward compatibility. To be removed once Automake 1.9.x 3556 # dies out for good. For more background, see: 3557 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3558 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3559 mkdir_p='$(MKDIR_P)' 3560 3561 # We need awk for the "check" target (and possibly the TAP driver). The 3562 # system "awk" is bad on some platforms. 3563 # Always define AMTAR for backward compatibility. Yes, it's still used 3564 # in the wild :-( We should find a proper way to deprecate it ... 3565 AMTAR='$${TAR-tar}' 3566 3567 3568 # We'll loop over all known methods to create a tar archive until one works. 3569 _am_tools='gnutar pax cpio none' 3570 3571 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3572 3573 3574 3575 3576 3577 # Variables for tags utilities; see am/tags.am 3578 if test -z "$CTAGS"; then 3579 CTAGS=ctags 3580 fi 3581 3582 if test -z "$ETAGS"; then 3583 ETAGS=etags 3584 fi 3585 3586 if test -z "$CSCOPE"; then 3587 CSCOPE=cscope 3588 fi 3589 3590 3591 3592 3593 3594 3595 3596 3597 # Set common system defines for POSIX extensions, such as _GNU_SOURCE 3598 # Must be called before any macros that run the compiler (like 3599 # LT_INIT) to avoid autoconf errors. 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 DEPDIR="${am__leading_dot}deps" 3610 3611 ac_config_commands="$ac_config_commands depfiles" 3612 3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3614 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3615 cat > confinc.mk << 'END' 3616 am__doit: 3617 @echo this is the am__doit target >confinc.out 3618 .PHONY: am__doit 3619 END 3620 am__include="#" 3621 am__quote= 3622 # BSD make does it like this. 3623 echo '.include "confinc.mk" # ignored' > confmf.BSD 3624 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3625 echo 'include confinc.mk # ignored' > confmf.GNU 3626 _am_result=no 3627 for s in GNU BSD; do 3628 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3629 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3630 ac_status=$? 3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3632 (exit $ac_status); } 3633 case $?:`cat confinc.out 2>/dev/null` in #( 3634 '0:this is the am__doit target') : 3635 case $s in #( 3636 BSD) : 3637 am__include='.include' am__quote='"' ;; #( 3638 *) : 3639 am__include='include' am__quote='' ;; 3640 esac ;; #( 3641 *) : 3642 ;; 3643 esac 3644 if test "$am__include" != "#"; then 3645 _am_result="yes ($s style)" 3646 break 3647 fi 3648 done 3649 rm -f confinc.* confmf.* 3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3651 printf "%s\n" "${_am_result}" >&6; } 3652 3653 # Check whether --enable-dependency-tracking was given. 3654 if test ${enable_dependency_tracking+y} 3655 then : 3656 enableval=$enable_dependency_tracking; 3657 fi 3658 3659 if test "x$enable_dependency_tracking" != xno; then 3660 am_depcomp="$ac_aux_dir/depcomp" 3661 AMDEPBACKSLASH='\' 3662 am__nodep='_no' 3663 fi 3664 if test "x$enable_dependency_tracking" != xno; then 3665 AMDEP_TRUE= 3666 AMDEP_FALSE='#' 3667 else 3668 AMDEP_TRUE='#' 3669 AMDEP_FALSE= 3670 fi 3671 3672 3673 ac_ext=c 3674 ac_cpp='$CPP $CPPFLAGS' 3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3678 if test -n "$ac_tool_prefix"; then 3679 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3680 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3682 printf %s "checking for $ac_word... " >&6; } 3683 if test ${ac_cv_prog_CC+y} 3684 then : 3685 printf %s "(cached) " >&6 3686 else case e in #( 3687 e) if test -n "$CC"; then 3688 ac_cv_prog_CC="$CC" # Let the user override the test. 3689 else 3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3691 for as_dir in $PATH 3692 do 3693 IFS=$as_save_IFS 3694 case $as_dir in #((( 3695 '') as_dir=./ ;; 3696 */) ;; 3697 *) as_dir=$as_dir/ ;; 3698 esac 3699 for ac_exec_ext in '' $ac_executable_extensions; do 3700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3701 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3703 break 2 3704 fi 3705 done 3706 done 3707 IFS=$as_save_IFS 3708 3709 fi ;; 3710 esac 3711 fi 3712 CC=$ac_cv_prog_CC 3713 if test -n "$CC"; then 3714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3715 printf "%s\n" "$CC" >&6; } 3716 else 3717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3718 printf "%s\n" "no" >&6; } 3719 fi 3720 3721 3722 fi 3723 if test -z "$ac_cv_prog_CC"; then 3724 ac_ct_CC=$CC 3725 # Extract the first word of "gcc", so it can be a program name with args. 3726 set dummy gcc; ac_word=$2 3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3728 printf %s "checking for $ac_word... " >&6; } 3729 if test ${ac_cv_prog_ac_ct_CC+y} 3730 then : 3731 printf %s "(cached) " >&6 3732 else case e in #( 3733 e) if test -n "$ac_ct_CC"; then 3734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3735 else 3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3737 for as_dir in $PATH 3738 do 3739 IFS=$as_save_IFS 3740 case $as_dir in #((( 3741 '') as_dir=./ ;; 3742 */) ;; 3743 *) as_dir=$as_dir/ ;; 3744 esac 3745 for ac_exec_ext in '' $ac_executable_extensions; do 3746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3747 ac_cv_prog_ac_ct_CC="gcc" 3748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3749 break 2 3750 fi 3751 done 3752 done 3753 IFS=$as_save_IFS 3754 3755 fi ;; 3756 esac 3757 fi 3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3759 if test -n "$ac_ct_CC"; then 3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3761 printf "%s\n" "$ac_ct_CC" >&6; } 3762 else 3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3764 printf "%s\n" "no" >&6; } 3765 fi 3766 3767 if test "x$ac_ct_CC" = x; then 3768 CC="" 3769 else 3770 case $cross_compiling:$ac_tool_warned in 3771 yes:) 3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3773 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3774 ac_tool_warned=yes ;; 3775 esac 3776 CC=$ac_ct_CC 3777 fi 3778 else 3779 CC="$ac_cv_prog_CC" 3780 fi 3781 3782 if test -z "$CC"; then 3783 if test -n "$ac_tool_prefix"; then 3784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3785 set dummy ${ac_tool_prefix}cc; ac_word=$2 3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3787 printf %s "checking for $ac_word... " >&6; } 3788 if test ${ac_cv_prog_CC+y} 3789 then : 3790 printf %s "(cached) " >&6 3791 else case e in #( 3792 e) if test -n "$CC"; then 3793 ac_cv_prog_CC="$CC" # Let the user override the test. 3794 else 3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3796 for as_dir in $PATH 3797 do 3798 IFS=$as_save_IFS 3799 case $as_dir in #((( 3800 '') as_dir=./ ;; 3801 */) ;; 3802 *) as_dir=$as_dir/ ;; 3803 esac 3804 for ac_exec_ext in '' $ac_executable_extensions; do 3805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3806 ac_cv_prog_CC="${ac_tool_prefix}cc" 3807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3808 break 2 3809 fi 3810 done 3811 done 3812 IFS=$as_save_IFS 3813 3814 fi ;; 3815 esac 3816 fi 3817 CC=$ac_cv_prog_CC 3818 if test -n "$CC"; then 3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3820 printf "%s\n" "$CC" >&6; } 3821 else 3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3823 printf "%s\n" "no" >&6; } 3824 fi 3825 3826 3827 fi 3828 fi 3829 if test -z "$CC"; then 3830 # Extract the first word of "cc", so it can be a program name with args. 3831 set dummy cc; ac_word=$2 3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3833 printf %s "checking for $ac_word... " >&6; } 3834 if test ${ac_cv_prog_CC+y} 3835 then : 3836 printf %s "(cached) " >&6 3837 else case e in #( 3838 e) if test -n "$CC"; then 3839 ac_cv_prog_CC="$CC" # Let the user override the test. 3840 else 3841 ac_prog_rejected=no 3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3843 for as_dir in $PATH 3844 do 3845 IFS=$as_save_IFS 3846 case $as_dir in #((( 3847 '') as_dir=./ ;; 3848 */) ;; 3849 *) as_dir=$as_dir/ ;; 3850 esac 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3853 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3854 ac_prog_rejected=yes 3855 continue 3856 fi 3857 ac_cv_prog_CC="cc" 3858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3859 break 2 3860 fi 3861 done 3862 done 3863 IFS=$as_save_IFS 3864 3865 if test $ac_prog_rejected = yes; then 3866 # We found a bogon in the path, so make sure we never use it. 3867 set dummy $ac_cv_prog_CC 3868 shift 3869 if test $# != 0; then 3870 # We chose a different compiler from the bogus one. 3871 # However, it has the same basename, so the bogon will be chosen 3872 # first if we set CC to just the basename; use the full file name. 3873 shift 3874 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3875 fi 3876 fi 3877 fi ;; 3878 esac 3879 fi 3880 CC=$ac_cv_prog_CC 3881 if test -n "$CC"; then 3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3883 printf "%s\n" "$CC" >&6; } 3884 else 3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3886 printf "%s\n" "no" >&6; } 3887 fi 3888 3889 3890 fi 3891 if test -z "$CC"; then 3892 if test -n "$ac_tool_prefix"; then 3893 for ac_prog in cl.exe 3894 do 3895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3898 printf %s "checking for $ac_word... " >&6; } 3899 if test ${ac_cv_prog_CC+y} 3900 then : 3901 printf %s "(cached) " >&6 3902 else case e in #( 3903 e) if test -n "$CC"; then 3904 ac_cv_prog_CC="$CC" # Let the user override the test. 3905 else 3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3907 for as_dir in $PATH 3908 do 3909 IFS=$as_save_IFS 3910 case $as_dir in #((( 3911 '') as_dir=./ ;; 3912 */) ;; 3913 *) as_dir=$as_dir/ ;; 3914 esac 3915 for ac_exec_ext in '' $ac_executable_extensions; do 3916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3917 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3919 break 2 3920 fi 3921 done 3922 done 3923 IFS=$as_save_IFS 3924 3925 fi ;; 3926 esac 3927 fi 3928 CC=$ac_cv_prog_CC 3929 if test -n "$CC"; then 3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3931 printf "%s\n" "$CC" >&6; } 3932 else 3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3934 printf "%s\n" "no" >&6; } 3935 fi 3936 3937 3938 test -n "$CC" && break 3939 done 3940 fi 3941 if test -z "$CC"; then 3942 ac_ct_CC=$CC 3943 for ac_prog in cl.exe 3944 do 3945 # Extract the first word of "$ac_prog", so it can be a program name with args. 3946 set dummy $ac_prog; ac_word=$2 3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3948 printf %s "checking for $ac_word... " >&6; } 3949 if test ${ac_cv_prog_ac_ct_CC+y} 3950 then : 3951 printf %s "(cached) " >&6 3952 else case e in #( 3953 e) if test -n "$ac_ct_CC"; then 3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3955 else 3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3957 for as_dir in $PATH 3958 do 3959 IFS=$as_save_IFS 3960 case $as_dir in #((( 3961 '') as_dir=./ ;; 3962 */) ;; 3963 *) as_dir=$as_dir/ ;; 3964 esac 3965 for ac_exec_ext in '' $ac_executable_extensions; do 3966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3967 ac_cv_prog_ac_ct_CC="$ac_prog" 3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3969 break 2 3970 fi 3971 done 3972 done 3973 IFS=$as_save_IFS 3974 3975 fi ;; 3976 esac 3977 fi 3978 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3979 if test -n "$ac_ct_CC"; then 3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3981 printf "%s\n" "$ac_ct_CC" >&6; } 3982 else 3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3984 printf "%s\n" "no" >&6; } 3985 fi 3986 3987 3988 test -n "$ac_ct_CC" && break 3989 done 3990 3991 if test "x$ac_ct_CC" = x; then 3992 CC="" 3993 else 3994 case $cross_compiling:$ac_tool_warned in 3995 yes:) 3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3998 ac_tool_warned=yes ;; 3999 esac 4000 CC=$ac_ct_CC 4001 fi 4002 fi 4003 4004 fi 4005 if test -z "$CC"; then 4006 if test -n "$ac_tool_prefix"; then 4007 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4008 set dummy ${ac_tool_prefix}clang; ac_word=$2 4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4010 printf %s "checking for $ac_word... " >&6; } 4011 if test ${ac_cv_prog_CC+y} 4012 then : 4013 printf %s "(cached) " >&6 4014 else case e in #( 4015 e) if test -n "$CC"; then 4016 ac_cv_prog_CC="$CC" # Let the user override the test. 4017 else 4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4019 for as_dir in $PATH 4020 do 4021 IFS=$as_save_IFS 4022 case $as_dir in #((( 4023 '') as_dir=./ ;; 4024 */) ;; 4025 *) as_dir=$as_dir/ ;; 4026 esac 4027 for ac_exec_ext in '' $ac_executable_extensions; do 4028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4029 ac_cv_prog_CC="${ac_tool_prefix}clang" 4030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4031 break 2 4032 fi 4033 done 4034 done 4035 IFS=$as_save_IFS 4036 4037 fi ;; 4038 esac 4039 fi 4040 CC=$ac_cv_prog_CC 4041 if test -n "$CC"; then 4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4043 printf "%s\n" "$CC" >&6; } 4044 else 4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4046 printf "%s\n" "no" >&6; } 4047 fi 4048 4049 4050 fi 4051 if test -z "$ac_cv_prog_CC"; then 4052 ac_ct_CC=$CC 4053 # Extract the first word of "clang", so it can be a program name with args. 4054 set dummy clang; ac_word=$2 4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4056 printf %s "checking for $ac_word... " >&6; } 4057 if test ${ac_cv_prog_ac_ct_CC+y} 4058 then : 4059 printf %s "(cached) " >&6 4060 else case e in #( 4061 e) if test -n "$ac_ct_CC"; then 4062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4063 else 4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4065 for as_dir in $PATH 4066 do 4067 IFS=$as_save_IFS 4068 case $as_dir in #((( 4069 '') as_dir=./ ;; 4070 */) ;; 4071 *) as_dir=$as_dir/ ;; 4072 esac 4073 for ac_exec_ext in '' $ac_executable_extensions; do 4074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4075 ac_cv_prog_ac_ct_CC="clang" 4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4077 break 2 4078 fi 4079 done 4080 done 4081 IFS=$as_save_IFS 4082 4083 fi ;; 4084 esac 4085 fi 4086 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4087 if test -n "$ac_ct_CC"; then 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4089 printf "%s\n" "$ac_ct_CC" >&6; } 4090 else 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4092 printf "%s\n" "no" >&6; } 4093 fi 4094 4095 if test "x$ac_ct_CC" = x; then 4096 CC="" 4097 else 4098 case $cross_compiling:$ac_tool_warned in 4099 yes:) 4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4102 ac_tool_warned=yes ;; 4103 esac 4104 CC=$ac_ct_CC 4105 fi 4106 else 4107 CC="$ac_cv_prog_CC" 4108 fi 4109 4110 fi 4111 4112 4113 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4114 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4115 as_fn_error $? "no acceptable C compiler found in \$PATH 4116 See 'config.log' for more details" "$LINENO" 5; } 4117 4118 # Provide some information about the compiler. 4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4120 set X $ac_compile 4121 ac_compiler=$2 4122 for ac_option in --version -v -V -qversion -version; do 4123 { { ac_try="$ac_compiler $ac_option >&5" 4124 case "(($ac_try" in 4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4126 *) ac_try_echo=$ac_try;; 4127 esac 4128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4129 printf "%s\n" "$ac_try_echo"; } >&5 4130 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4131 ac_status=$? 4132 if test -s conftest.err; then 4133 sed '10a\ 4134 ... rest of stderr output deleted ... 4135 10q' conftest.err >conftest.er1 4136 cat conftest.er1 >&5 4137 fi 4138 rm -f conftest.er1 conftest.err 4139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4140 test $ac_status = 0; } 4141 done 4142 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144 /* end confdefs.h. */ 4145 4146 int 4147 main (void) 4148 { 4149 4150 ; 4151 return 0; 4152 } 4153 _ACEOF 4154 ac_clean_files_save=$ac_clean_files 4155 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4156 # Try to create an executable without -o first, disregard a.out. 4157 # It will help us diagnose broken compilers, and finding out an intuition 4158 # of exeext. 4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4160 printf %s "checking whether the C compiler works... " >&6; } 4161 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4162 4163 # The possible output files: 4164 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4165 4166 ac_rmfiles= 4167 for ac_file in $ac_files 4168 do 4169 case $ac_file in 4170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4171 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4172 esac 4173 done 4174 rm -f $ac_rmfiles 4175 4176 if { { ac_try="$ac_link_default" 4177 case "(($ac_try" in 4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4179 *) ac_try_echo=$ac_try;; 4180 esac 4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4182 printf "%s\n" "$ac_try_echo"; } >&5 4183 (eval "$ac_link_default") 2>&5 4184 ac_status=$? 4185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4186 test $ac_status = 0; } 4187 then : 4188 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4189 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4190 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4191 # so that the user can short-circuit this test for compilers unknown to 4192 # Autoconf. 4193 for ac_file in $ac_files '' 4194 do 4195 test -f "$ac_file" || continue 4196 case $ac_file in 4197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4198 ;; 4199 [ab].out ) 4200 # We found the default executable, but exeext='' is most 4201 # certainly right. 4202 break;; 4203 *.* ) 4204 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4205 then :; else 4206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4207 fi 4208 # We set ac_cv_exeext here because the later test for it is not 4209 # safe: cross compilers may not add the suffix if given an '-o' 4210 # argument, so we may need to know it at that point already. 4211 # Even if this section looks crufty: it has the advantage of 4212 # actually working. 4213 break;; 4214 * ) 4215 break;; 4216 esac 4217 done 4218 test "$ac_cv_exeext" = no && ac_cv_exeext= 4219 4220 else case e in #( 4221 e) ac_file='' ;; 4222 esac 4223 fi 4224 if test -z "$ac_file" 4225 then : 4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4227 printf "%s\n" "no" >&6; } 4228 printf "%s\n" "$as_me: failed program was:" >&5 4229 sed 's/^/| /' conftest.$ac_ext >&5 4230 4231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4232 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4233 as_fn_error 77 "C compiler cannot create executables 4234 See 'config.log' for more details" "$LINENO" 5; } 4235 else case e in #( 4236 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4237 printf "%s\n" "yes" >&6; } ;; 4238 esac 4239 fi 4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4241 printf %s "checking for C compiler default output file name... " >&6; } 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4243 printf "%s\n" "$ac_file" >&6; } 4244 ac_exeext=$ac_cv_exeext 4245 4246 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4247 ac_clean_files=$ac_clean_files_save 4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4249 printf %s "checking for suffix of executables... " >&6; } 4250 if { { ac_try="$ac_link" 4251 case "(($ac_try" in 4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4253 *) ac_try_echo=$ac_try;; 4254 esac 4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4256 printf "%s\n" "$ac_try_echo"; } >&5 4257 (eval "$ac_link") 2>&5 4258 ac_status=$? 4259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4260 test $ac_status = 0; } 4261 then : 4262 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4263 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4264 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4265 # 'rm'. 4266 for ac_file in conftest.exe conftest conftest.*; do 4267 test -f "$ac_file" || continue 4268 case $ac_file in 4269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4270 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4271 break;; 4272 * ) break;; 4273 esac 4274 done 4275 else case e in #( 4276 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4277 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4278 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4279 See 'config.log' for more details" "$LINENO" 5; } ;; 4280 esac 4281 fi 4282 rm -f conftest conftest$ac_cv_exeext 4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4284 printf "%s\n" "$ac_cv_exeext" >&6; } 4285 4286 rm -f conftest.$ac_ext 4287 EXEEXT=$ac_cv_exeext 4288 ac_exeext=$EXEEXT 4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4290 /* end confdefs.h. */ 4291 #include <stdio.h> 4292 int 4293 main (void) 4294 { 4295 FILE *f = fopen ("conftest.out", "w"); 4296 if (!f) 4297 return 1; 4298 return ferror (f) || fclose (f) != 0; 4299 4300 ; 4301 return 0; 4302 } 4303 _ACEOF 4304 ac_clean_files="$ac_clean_files conftest.out" 4305 # Check that the compiler produces executables we can run. If not, either 4306 # the compiler is broken, or we cross compile. 4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4308 printf %s "checking whether we are cross compiling... " >&6; } 4309 if test "$cross_compiling" != yes; then 4310 { { ac_try="$ac_link" 4311 case "(($ac_try" in 4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4313 *) ac_try_echo=$ac_try;; 4314 esac 4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4316 printf "%s\n" "$ac_try_echo"; } >&5 4317 (eval "$ac_link") 2>&5 4318 ac_status=$? 4319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4320 test $ac_status = 0; } 4321 if { ac_try='./conftest$ac_cv_exeext' 4322 { { case "(($ac_try" in 4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4324 *) ac_try_echo=$ac_try;; 4325 esac 4326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4327 printf "%s\n" "$ac_try_echo"; } >&5 4328 (eval "$ac_try") 2>&5 4329 ac_status=$? 4330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4331 test $ac_status = 0; }; }; then 4332 cross_compiling=no 4333 else 4334 if test "$cross_compiling" = maybe; then 4335 cross_compiling=yes 4336 else 4337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4338 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4339 as_fn_error 77 "cannot run C compiled programs. 4340 If you meant to cross compile, use '--host'. 4341 See 'config.log' for more details" "$LINENO" 5; } 4342 fi 4343 fi 4344 fi 4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4346 printf "%s\n" "$cross_compiling" >&6; } 4347 4348 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4349 conftest.o conftest.obj conftest.out 4350 ac_clean_files=$ac_clean_files_save 4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4352 printf %s "checking for suffix of object files... " >&6; } 4353 if test ${ac_cv_objext+y} 4354 then : 4355 printf %s "(cached) " >&6 4356 else case e in #( 4357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4358 /* end confdefs.h. */ 4359 4360 int 4361 main (void) 4362 { 4363 4364 ; 4365 return 0; 4366 } 4367 _ACEOF 4368 rm -f conftest.o conftest.obj 4369 if { { ac_try="$ac_compile" 4370 case "(($ac_try" in 4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4372 *) ac_try_echo=$ac_try;; 4373 esac 4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4375 printf "%s\n" "$ac_try_echo"; } >&5 4376 (eval "$ac_compile") 2>&5 4377 ac_status=$? 4378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4379 test $ac_status = 0; } 4380 then : 4381 for ac_file in conftest.o conftest.obj conftest.*; do 4382 test -f "$ac_file" || continue; 4383 case $ac_file in 4384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4385 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4386 break;; 4387 esac 4388 done 4389 else case e in #( 4390 e) printf "%s\n" "$as_me: failed program was:" >&5 4391 sed 's/^/| /' conftest.$ac_ext >&5 4392 4393 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4394 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4395 as_fn_error $? "cannot compute suffix of object files: cannot compile 4396 See 'config.log' for more details" "$LINENO" 5; } ;; 4397 esac 4398 fi 4399 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4400 esac 4401 fi 4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4403 printf "%s\n" "$ac_cv_objext" >&6; } 4404 OBJEXT=$ac_cv_objext 4405 ac_objext=$OBJEXT 4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4407 printf %s "checking whether the compiler supports GNU C... " >&6; } 4408 if test ${ac_cv_c_compiler_gnu+y} 4409 then : 4410 printf %s "(cached) " >&6 4411 else case e in #( 4412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4413 /* end confdefs.h. */ 4414 4415 int 4416 main (void) 4417 { 4418 #ifndef __GNUC__ 4419 choke me 4420 #endif 4421 4422 ; 4423 return 0; 4424 } 4425 _ACEOF 4426 if ac_fn_c_try_compile "$LINENO" 4427 then : 4428 ac_compiler_gnu=yes 4429 else case e in #( 4430 e) ac_compiler_gnu=no ;; 4431 esac 4432 fi 4433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4434 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4435 ;; 4436 esac 4437 fi 4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4439 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4440 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4441 4442 if test $ac_compiler_gnu = yes; then 4443 GCC=yes 4444 else 4445 GCC= 4446 fi 4447 ac_test_CFLAGS=${CFLAGS+y} 4448 ac_save_CFLAGS=$CFLAGS 4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4450 printf %s "checking whether $CC accepts -g... " >&6; } 4451 if test ${ac_cv_prog_cc_g+y} 4452 then : 4453 printf %s "(cached) " >&6 4454 else case e in #( 4455 e) ac_save_c_werror_flag=$ac_c_werror_flag 4456 ac_c_werror_flag=yes 4457 ac_cv_prog_cc_g=no 4458 CFLAGS="-g" 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460 /* end confdefs.h. */ 4461 4462 int 4463 main (void) 4464 { 4465 4466 ; 4467 return 0; 4468 } 4469 _ACEOF 4470 if ac_fn_c_try_compile "$LINENO" 4471 then : 4472 ac_cv_prog_cc_g=yes 4473 else case e in #( 4474 e) CFLAGS="" 4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4476 /* end confdefs.h. */ 4477 4478 int 4479 main (void) 4480 { 4481 4482 ; 4483 return 0; 4484 } 4485 _ACEOF 4486 if ac_fn_c_try_compile "$LINENO" 4487 then : 4488 4489 else case e in #( 4490 e) ac_c_werror_flag=$ac_save_c_werror_flag 4491 CFLAGS="-g" 4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4493 /* end confdefs.h. */ 4494 4495 int 4496 main (void) 4497 { 4498 4499 ; 4500 return 0; 4501 } 4502 _ACEOF 4503 if ac_fn_c_try_compile "$LINENO" 4504 then : 4505 ac_cv_prog_cc_g=yes 4506 fi 4507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4508 esac 4509 fi 4510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4511 esac 4512 fi 4513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4514 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4515 esac 4516 fi 4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4518 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4519 if test $ac_test_CFLAGS; then 4520 CFLAGS=$ac_save_CFLAGS 4521 elif test $ac_cv_prog_cc_g = yes; then 4522 if test "$GCC" = yes; then 4523 CFLAGS="-g -O2" 4524 else 4525 CFLAGS="-g" 4526 fi 4527 else 4528 if test "$GCC" = yes; then 4529 CFLAGS="-O2" 4530 else 4531 CFLAGS= 4532 fi 4533 fi 4534 ac_prog_cc_stdc=no 4535 if test x$ac_prog_cc_stdc = xno 4536 then : 4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4538 printf %s "checking for $CC option to enable C11 features... " >&6; } 4539 if test ${ac_cv_prog_cc_c11+y} 4540 then : 4541 printf %s "(cached) " >&6 4542 else case e in #( 4543 e) ac_cv_prog_cc_c11=no 4544 ac_save_CC=$CC 4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4546 /* end confdefs.h. */ 4547 $ac_c_conftest_c11_program 4548 _ACEOF 4549 for ac_arg in '' -std=gnu11 4550 do 4551 CC="$ac_save_CC $ac_arg" 4552 if ac_fn_c_try_compile "$LINENO" 4553 then : 4554 ac_cv_prog_cc_c11=$ac_arg 4555 fi 4556 rm -f core conftest.err conftest.$ac_objext conftest.beam 4557 test "x$ac_cv_prog_cc_c11" != "xno" && break 4558 done 4559 rm -f conftest.$ac_ext 4560 CC=$ac_save_CC ;; 4561 esac 4562 fi 4563 4564 if test "x$ac_cv_prog_cc_c11" = xno 4565 then : 4566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4567 printf "%s\n" "unsupported" >&6; } 4568 else case e in #( 4569 e) if test "x$ac_cv_prog_cc_c11" = x 4570 then : 4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4572 printf "%s\n" "none needed" >&6; } 4573 else case e in #( 4574 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4575 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4576 CC="$CC $ac_cv_prog_cc_c11" ;; 4577 esac 4578 fi 4579 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4580 ac_prog_cc_stdc=c11 ;; 4581 esac 4582 fi 4583 fi 4584 if test x$ac_prog_cc_stdc = xno 4585 then : 4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4587 printf %s "checking for $CC option to enable C99 features... " >&6; } 4588 if test ${ac_cv_prog_cc_c99+y} 4589 then : 4590 printf %s "(cached) " >&6 4591 else case e in #( 4592 e) ac_cv_prog_cc_c99=no 4593 ac_save_CC=$CC 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595 /* end confdefs.h. */ 4596 $ac_c_conftest_c99_program 4597 _ACEOF 4598 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4599 do 4600 CC="$ac_save_CC $ac_arg" 4601 if ac_fn_c_try_compile "$LINENO" 4602 then : 4603 ac_cv_prog_cc_c99=$ac_arg 4604 fi 4605 rm -f core conftest.err conftest.$ac_objext conftest.beam 4606 test "x$ac_cv_prog_cc_c99" != "xno" && break 4607 done 4608 rm -f conftest.$ac_ext 4609 CC=$ac_save_CC ;; 4610 esac 4611 fi 4612 4613 if test "x$ac_cv_prog_cc_c99" = xno 4614 then : 4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4616 printf "%s\n" "unsupported" >&6; } 4617 else case e in #( 4618 e) if test "x$ac_cv_prog_cc_c99" = x 4619 then : 4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4621 printf "%s\n" "none needed" >&6; } 4622 else case e in #( 4623 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4624 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4625 CC="$CC $ac_cv_prog_cc_c99" ;; 4626 esac 4627 fi 4628 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4629 ac_prog_cc_stdc=c99 ;; 4630 esac 4631 fi 4632 fi 4633 if test x$ac_prog_cc_stdc = xno 4634 then : 4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4636 printf %s "checking for $CC option to enable C89 features... " >&6; } 4637 if test ${ac_cv_prog_cc_c89+y} 4638 then : 4639 printf %s "(cached) " >&6 4640 else case e in #( 4641 e) ac_cv_prog_cc_c89=no 4642 ac_save_CC=$CC 4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4644 /* end confdefs.h. */ 4645 $ac_c_conftest_c89_program 4646 _ACEOF 4647 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4648 do 4649 CC="$ac_save_CC $ac_arg" 4650 if ac_fn_c_try_compile "$LINENO" 4651 then : 4652 ac_cv_prog_cc_c89=$ac_arg 4653 fi 4654 rm -f core conftest.err conftest.$ac_objext conftest.beam 4655 test "x$ac_cv_prog_cc_c89" != "xno" && break 4656 done 4657 rm -f conftest.$ac_ext 4658 CC=$ac_save_CC ;; 4659 esac 4660 fi 4661 4662 if test "x$ac_cv_prog_cc_c89" = xno 4663 then : 4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4665 printf "%s\n" "unsupported" >&6; } 4666 else case e in #( 4667 e) if test "x$ac_cv_prog_cc_c89" = x 4668 then : 4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4670 printf "%s\n" "none needed" >&6; } 4671 else case e in #( 4672 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4673 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4674 CC="$CC $ac_cv_prog_cc_c89" ;; 4675 esac 4676 fi 4677 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4678 ac_prog_cc_stdc=c89 ;; 4679 esac 4680 fi 4681 fi 4682 4683 ac_ext=c 4684 ac_cpp='$CPP $CPPFLAGS' 4685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4687 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4688 4689 4690 ac_ext=c 4691 ac_cpp='$CPP $CPPFLAGS' 4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4696 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4697 if test ${am_cv_prog_cc_c_o+y} 4698 then : 4699 printf %s "(cached) " >&6 4700 else case e in #( 4701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4702 /* end confdefs.h. */ 4703 4704 int 4705 main (void) 4706 { 4707 4708 ; 4709 return 0; 4710 } 4711 _ACEOF 4712 # Make sure it works both with $CC and with simple cc. 4713 # Following AC_PROG_CC_C_O, we do the test twice because some 4714 # compilers refuse to overwrite an existing .o file with -o, 4715 # though they will create one. 4716 am_cv_prog_cc_c_o=yes 4717 for am_i in 1 2; do 4718 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4719 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4720 ac_status=$? 4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4722 (exit $ac_status); } \ 4723 && test -f conftest2.$ac_objext; then 4724 : OK 4725 else 4726 am_cv_prog_cc_c_o=no 4727 break 4728 fi 4729 done 4730 rm -f core conftest* 4731 unset am_i ;; 4732 esac 4733 fi 4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4735 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4736 if test "$am_cv_prog_cc_c_o" != yes; then 4737 # Losing compiler, so override with the script. 4738 # FIXME: It is wrong to rewrite CC. 4739 # But if we don't then we get into trouble of one sort or another. 4740 # A longer-term fix would be to have automake use am__CC in this case, 4741 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4742 CC="$am_aux_dir/compile $CC" 4743 fi 4744 ac_ext=c 4745 ac_cpp='$CPP $CPPFLAGS' 4746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4748 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4749 4750 4751 depcc="$CC" am_compiler_list= 4752 4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4754 printf %s "checking dependency style of $depcc... " >&6; } 4755 if test ${am_cv_CC_dependencies_compiler_type+y} 4756 then : 4757 printf %s "(cached) " >&6 4758 else case e in #( 4759 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4760 # We make a subdir and do the tests there. Otherwise we can end up 4761 # making bogus files that we don't know about and never remove. For 4762 # instance it was reported that on HP-UX the gcc test will end up 4763 # making a dummy file named 'D' -- because '-MD' means "put the output 4764 # in D". 4765 rm -rf conftest.dir 4766 mkdir conftest.dir 4767 # Copy depcomp to subdir because otherwise we won't find it if we're 4768 # using a relative directory. 4769 cp "$am_depcomp" conftest.dir 4770 cd conftest.dir 4771 # We will build objects and dependencies in a subdirectory because 4772 # it helps to detect inapplicable dependency modes. For instance 4773 # both Tru64's cc and ICC support -MD to output dependencies as a 4774 # side effect of compilation, but ICC will put the dependencies in 4775 # the current directory while Tru64 will put them in the object 4776 # directory. 4777 mkdir sub 4778 4779 am_cv_CC_dependencies_compiler_type=none 4780 if test "$am_compiler_list" = ""; then 4781 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4782 fi 4783 am__universal=false 4784 case " $depcc " in #( 4785 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4786 esac 4787 4788 for depmode in $am_compiler_list; do 4789 # Setup a source with many dependencies, because some compilers 4790 # like to wrap large dependency lists on column 80 (with \), and 4791 # we should not choose a depcomp mode which is confused by this. 4792 # 4793 # We need to recreate these files for each test, as the compiler may 4794 # overwrite some of them when testing with obscure command lines. 4795 # This happens at least with the AIX C compiler. 4796 : > sub/conftest.c 4797 for i in 1 2 3 4 5 6; do 4798 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4799 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4800 # Solaris 10 /bin/sh. 4801 echo '/* dummy */' > sub/conftst$i.h 4802 done 4803 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4804 4805 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4806 # mode. It turns out that the SunPro C++ compiler does not properly 4807 # handle '-M -o', and we need to detect this. Also, some Intel 4808 # versions had trouble with output in subdirs. 4809 am__obj=sub/conftest.${OBJEXT-o} 4810 am__minus_obj="-o $am__obj" 4811 case $depmode in 4812 gcc) 4813 # This depmode causes a compiler race in universal mode. 4814 test "$am__universal" = false || continue 4815 ;; 4816 nosideeffect) 4817 # After this tag, mechanisms are not by side-effect, so they'll 4818 # only be used when explicitly requested. 4819 if test "x$enable_dependency_tracking" = xyes; then 4820 continue 4821 else 4822 break 4823 fi 4824 ;; 4825 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4826 # This compiler won't grok '-c -o', but also, the minuso test has 4827 # not run yet. These depmodes are late enough in the game, and 4828 # so weak that their functioning should not be impacted. 4829 am__obj=conftest.${OBJEXT-o} 4830 am__minus_obj= 4831 ;; 4832 none) break ;; 4833 esac 4834 if depmode=$depmode \ 4835 source=sub/conftest.c object=$am__obj \ 4836 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4837 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4838 >/dev/null 2>conftest.err && 4839 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4840 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4841 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4842 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4843 # icc doesn't choke on unknown options, it will just issue warnings 4844 # or remarks (even with -Werror). So we grep stderr for any message 4845 # that says an option was ignored or not supported. 4846 # When given -MP, icc 7.0 and 7.1 complain thus: 4847 # icc: Command line warning: ignoring option '-M'; no argument required 4848 # The diagnosis changed in icc 8.0: 4849 # icc: Command line remark: option '-MP' not supported 4850 if (grep 'ignoring option' conftest.err || 4851 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4852 am_cv_CC_dependencies_compiler_type=$depmode 4853 break 4854 fi 4855 fi 4856 done 4857 4858 cd .. 4859 rm -rf conftest.dir 4860 else 4861 am_cv_CC_dependencies_compiler_type=none 4862 fi 4863 ;; 4864 esac 4865 fi 4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4867 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4868 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4869 4870 if 4871 test "x$enable_dependency_tracking" != xno \ 4872 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4873 am__fastdepCC_TRUE= 4874 am__fastdepCC_FALSE='#' 4875 else 4876 am__fastdepCC_TRUE='#' 4877 am__fastdepCC_FALSE= 4878 fi 4879 4880 4881 4882 ac_header= ac_cache= 4883 for ac_item in $ac_header_c_list 4884 do 4885 if test $ac_cache; then 4886 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4887 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4888 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4889 fi 4890 ac_header= ac_cache= 4891 elif test $ac_header; then 4892 ac_cache=$ac_item 4893 else 4894 ac_header=$ac_item 4895 fi 4896 done 4897 4898 4899 4900 4901 4902 4903 4904 4905 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4906 then : 4907 4908 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4909 4910 fi 4911 4912 4913 4914 4915 4916 4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4918 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4919 if test ${ac_cv_safe_to_define___extensions__+y} 4920 then : 4921 printf %s "(cached) " >&6 4922 else case e in #( 4923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4924 /* end confdefs.h. */ 4925 4926 # define __EXTENSIONS__ 1 4927 $ac_includes_default 4928 int 4929 main (void) 4930 { 4931 4932 ; 4933 return 0; 4934 } 4935 _ACEOF 4936 if ac_fn_c_try_compile "$LINENO" 4937 then : 4938 ac_cv_safe_to_define___extensions__=yes 4939 else case e in #( 4940 e) ac_cv_safe_to_define___extensions__=no ;; 4941 esac 4942 fi 4943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4944 esac 4945 fi 4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4947 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 4948 4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 4950 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 4951 if test ${ac_cv_should_define__xopen_source+y} 4952 then : 4953 printf %s "(cached) " >&6 4954 else case e in #( 4955 e) ac_cv_should_define__xopen_source=no 4956 if test $ac_cv_header_wchar_h = yes 4957 then : 4958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959 /* end confdefs.h. */ 4960 4961 #include <wchar.h> 4962 mbstate_t x; 4963 int 4964 main (void) 4965 { 4966 4967 ; 4968 return 0; 4969 } 4970 _ACEOF 4971 if ac_fn_c_try_compile "$LINENO" 4972 then : 4973 4974 else case e in #( 4975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4976 /* end confdefs.h. */ 4977 4978 #define _XOPEN_SOURCE 500 4979 #include <wchar.h> 4980 mbstate_t x; 4981 int 4982 main (void) 4983 { 4984 4985 ; 4986 return 0; 4987 } 4988 _ACEOF 4989 if ac_fn_c_try_compile "$LINENO" 4990 then : 4991 ac_cv_should_define__xopen_source=yes 4992 fi 4993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4994 esac 4995 fi 4996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4997 fi ;; 4998 esac 4999 fi 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5001 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5002 5003 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5004 5005 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5006 5007 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5008 5009 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5010 5011 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5012 5013 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5014 5015 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5016 5017 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5018 5019 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5020 5021 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5022 5023 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5024 5025 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5026 5027 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5028 5029 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5030 5031 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5032 5033 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5034 5035 if test $ac_cv_header_minix_config_h = yes 5036 then : 5037 MINIX=yes 5038 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5039 5040 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5041 5042 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5043 5044 else case e in #( 5045 e) MINIX= ;; 5046 esac 5047 fi 5048 if test $ac_cv_safe_to_define___extensions__ = yes 5049 then : 5050 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5051 5052 fi 5053 if test $ac_cv_should_define__xopen_source = yes 5054 then : 5055 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5056 5057 fi 5058 5059 5060 # Initialize libtool 5061 case `pwd` in 5062 *\ * | *\ *) 5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5064 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5065 esac 5066 5067 5068 5069 macro_version='2.4.7' 5070 macro_revision='2.4.7' 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 ltmain=$ac_aux_dir/ltmain.sh 5086 5087 5088 5089 # Make sure we can run config.sub. 5090 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5091 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5092 5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5094 printf %s "checking build system type... " >&6; } 5095 if test ${ac_cv_build+y} 5096 then : 5097 printf %s "(cached) " >&6 5098 else case e in #( 5099 e) ac_build_alias=$build_alias 5100 test "x$ac_build_alias" = x && 5101 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5102 test "x$ac_build_alias" = x && 5103 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5104 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5105 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5106 ;; 5107 esac 5108 fi 5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5110 printf "%s\n" "$ac_cv_build" >&6; } 5111 case $ac_cv_build in 5112 *-*-*) ;; 5113 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5114 esac 5115 build=$ac_cv_build 5116 ac_save_IFS=$IFS; IFS='-' 5117 set x $ac_cv_build 5118 shift 5119 build_cpu=$1 5120 build_vendor=$2 5121 shift; shift 5122 # Remember, the first character of IFS is used to create $*, 5123 # except with old shells: 5124 build_os=$* 5125 IFS=$ac_save_IFS 5126 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5127 5128 5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5130 printf %s "checking host system type... " >&6; } 5131 if test ${ac_cv_host+y} 5132 then : 5133 printf %s "(cached) " >&6 5134 else case e in #( 5135 e) if test "x$host_alias" = x; then 5136 ac_cv_host=$ac_cv_build 5137 else 5138 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5139 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5140 fi 5141 ;; 5142 esac 5143 fi 5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5145 printf "%s\n" "$ac_cv_host" >&6; } 5146 case $ac_cv_host in 5147 *-*-*) ;; 5148 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5149 esac 5150 host=$ac_cv_host 5151 ac_save_IFS=$IFS; IFS='-' 5152 set x $ac_cv_host 5153 shift 5154 host_cpu=$1 5155 host_vendor=$2 5156 shift; shift 5157 # Remember, the first character of IFS is used to create $*, 5158 # except with old shells: 5159 host_os=$* 5160 IFS=$ac_save_IFS 5161 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5162 5163 5164 # Backslashify metacharacters that are still active within 5165 # double-quoted strings. 5166 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5167 5168 # Same as above, but do not quote variable references. 5169 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5170 5171 # Sed substitution to delay expansion of an escaped shell variable in a 5172 # double_quote_subst'ed string. 5173 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5174 5175 # Sed substitution to delay expansion of an escaped single quote. 5176 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5177 5178 # Sed substitution to avoid accidental globbing in evaled expressions 5179 no_glob_subst='s/\*/\\\*/g' 5180 5181 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5182 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5184 5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5186 printf %s "checking how to print strings... " >&6; } 5187 # Test print first, because it will be a builtin if present. 5188 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5189 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5190 ECHO='print -r --' 5191 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5192 ECHO='printf %s\n' 5193 else 5194 # Use this function as a fallback that always works. 5195 func_fallback_echo () 5196 { 5197 eval 'cat <<_LTECHO_EOF 5198 $1 5199 _LTECHO_EOF' 5200 } 5201 ECHO='func_fallback_echo' 5202 fi 5203 5204 # func_echo_all arg... 5205 # Invoke $ECHO with all args, space-separated. 5206 func_echo_all () 5207 { 5208 $ECHO "" 5209 } 5210 5211 case $ECHO in 5212 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5213 printf "%s\n" "printf" >&6; } ;; 5214 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5215 printf "%s\n" "print -r" >&6; } ;; 5216 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5217 printf "%s\n" "cat" >&6; } ;; 5218 esac 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5234 printf %s "checking for a sed that does not truncate output... " >&6; } 5235 if test ${ac_cv_path_SED+y} 5236 then : 5237 printf %s "(cached) " >&6 5238 else case e in #( 5239 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5240 for ac_i in 1 2 3 4 5 6 7; do 5241 ac_script="$ac_script$as_nl$ac_script" 5242 done 5243 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5244 { ac_script=; unset ac_script;} 5245 if test -z "$SED"; then 5246 ac_path_SED_found=false 5247 # Loop through the user's path and test for each of PROGNAME-LIST 5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5249 for as_dir in $PATH 5250 do 5251 IFS=$as_save_IFS 5252 case $as_dir in #((( 5253 '') as_dir=./ ;; 5254 */) ;; 5255 *) as_dir=$as_dir/ ;; 5256 esac 5257 for ac_prog in sed gsed 5258 do 5259 for ac_exec_ext in '' $ac_executable_extensions; do 5260 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5261 as_fn_executable_p "$ac_path_SED" || continue 5262 # Check for GNU ac_path_SED and select it if it is found. 5263 # Check for GNU $ac_path_SED 5264 case `"$ac_path_SED" --version 2>&1` in #( 5265 *GNU*) 5266 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5267 #( 5268 *) 5269 ac_count=0 5270 printf %s 0123456789 >"conftest.in" 5271 while : 5272 do 5273 cat "conftest.in" "conftest.in" >"conftest.tmp" 5274 mv "conftest.tmp" "conftest.in" 5275 cp "conftest.in" "conftest.nl" 5276 printf "%s\n" '' >> "conftest.nl" 5277 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5278 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5279 as_fn_arith $ac_count + 1 && ac_count=$as_val 5280 if test $ac_count -gt ${ac_path_SED_max-0}; then 5281 # Best one so far, save it but keep looking for a better one 5282 ac_cv_path_SED="$ac_path_SED" 5283 ac_path_SED_max=$ac_count 5284 fi 5285 # 10*(2^10) chars as input seems more than enough 5286 test $ac_count -gt 10 && break 5287 done 5288 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5289 esac 5290 5291 $ac_path_SED_found && break 3 5292 done 5293 done 5294 done 5295 IFS=$as_save_IFS 5296 if test -z "$ac_cv_path_SED"; then 5297 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5298 fi 5299 else 5300 ac_cv_path_SED=$SED 5301 fi 5302 ;; 5303 esac 5304 fi 5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5306 printf "%s\n" "$ac_cv_path_SED" >&6; } 5307 SED="$ac_cv_path_SED" 5308 rm -f conftest.sed 5309 5310 test -z "$SED" && SED=sed 5311 Xsed="$SED -e 1s/^X//" 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5324 printf %s "checking for grep that handles long lines and -e... " >&6; } 5325 if test ${ac_cv_path_GREP+y} 5326 then : 5327 printf %s "(cached) " >&6 5328 else case e in #( 5329 e) if test -z "$GREP"; then 5330 ac_path_GREP_found=false 5331 # Loop through the user's path and test for each of PROGNAME-LIST 5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5334 do 5335 IFS=$as_save_IFS 5336 case $as_dir in #((( 5337 '') as_dir=./ ;; 5338 */) ;; 5339 *) as_dir=$as_dir/ ;; 5340 esac 5341 for ac_prog in grep ggrep 5342 do 5343 for ac_exec_ext in '' $ac_executable_extensions; do 5344 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5345 as_fn_executable_p "$ac_path_GREP" || continue 5346 # Check for GNU ac_path_GREP and select it if it is found. 5347 # Check for GNU $ac_path_GREP 5348 case `"$ac_path_GREP" --version 2>&1` in #( 5349 *GNU*) 5350 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5351 #( 5352 *) 5353 ac_count=0 5354 printf %s 0123456789 >"conftest.in" 5355 while : 5356 do 5357 cat "conftest.in" "conftest.in" >"conftest.tmp" 5358 mv "conftest.tmp" "conftest.in" 5359 cp "conftest.in" "conftest.nl" 5360 printf "%s\n" 'GREP' >> "conftest.nl" 5361 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5362 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5363 as_fn_arith $ac_count + 1 && ac_count=$as_val 5364 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5365 # Best one so far, save it but keep looking for a better one 5366 ac_cv_path_GREP="$ac_path_GREP" 5367 ac_path_GREP_max=$ac_count 5368 fi 5369 # 10*(2^10) chars as input seems more than enough 5370 test $ac_count -gt 10 && break 5371 done 5372 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5373 esac 5374 5375 $ac_path_GREP_found && break 3 5376 done 5377 done 5378 done 5379 IFS=$as_save_IFS 5380 if test -z "$ac_cv_path_GREP"; then 5381 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5382 fi 5383 else 5384 ac_cv_path_GREP=$GREP 5385 fi 5386 ;; 5387 esac 5388 fi 5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5390 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5391 GREP="$ac_cv_path_GREP" 5392 5393 5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5395 printf %s "checking for egrep... " >&6; } 5396 if test ${ac_cv_path_EGREP+y} 5397 then : 5398 printf %s "(cached) " >&6 5399 else case e in #( 5400 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5401 then ac_cv_path_EGREP="$GREP -E" 5402 else 5403 if test -z "$EGREP"; then 5404 ac_path_EGREP_found=false 5405 # Loop through the user's path and test for each of PROGNAME-LIST 5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5407 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5408 do 5409 IFS=$as_save_IFS 5410 case $as_dir in #((( 5411 '') as_dir=./ ;; 5412 */) ;; 5413 *) as_dir=$as_dir/ ;; 5414 esac 5415 for ac_prog in egrep 5416 do 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5419 as_fn_executable_p "$ac_path_EGREP" || continue 5420 # Check for GNU ac_path_EGREP and select it if it is found. 5421 # Check for GNU $ac_path_EGREP 5422 case `"$ac_path_EGREP" --version 2>&1` in #( 5423 *GNU*) 5424 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5425 #( 5426 *) 5427 ac_count=0 5428 printf %s 0123456789 >"conftest.in" 5429 while : 5430 do 5431 cat "conftest.in" "conftest.in" >"conftest.tmp" 5432 mv "conftest.tmp" "conftest.in" 5433 cp "conftest.in" "conftest.nl" 5434 printf "%s\n" 'EGREP' >> "conftest.nl" 5435 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5437 as_fn_arith $ac_count + 1 && ac_count=$as_val 5438 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5439 # Best one so far, save it but keep looking for a better one 5440 ac_cv_path_EGREP="$ac_path_EGREP" 5441 ac_path_EGREP_max=$ac_count 5442 fi 5443 # 10*(2^10) chars as input seems more than enough 5444 test $ac_count -gt 10 && break 5445 done 5446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5447 esac 5448 5449 $ac_path_EGREP_found && break 3 5450 done 5451 done 5452 done 5453 IFS=$as_save_IFS 5454 if test -z "$ac_cv_path_EGREP"; then 5455 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5456 fi 5457 else 5458 ac_cv_path_EGREP=$EGREP 5459 fi 5460 5461 fi ;; 5462 esac 5463 fi 5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5465 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5466 EGREP="$ac_cv_path_EGREP" 5467 5468 EGREP_TRADITIONAL=$EGREP 5469 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5470 5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5472 printf %s "checking for fgrep... " >&6; } 5473 if test ${ac_cv_path_FGREP+y} 5474 then : 5475 printf %s "(cached) " >&6 5476 else case e in #( 5477 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5478 then ac_cv_path_FGREP="$GREP -F" 5479 else 5480 if test -z "$FGREP"; then 5481 ac_path_FGREP_found=false 5482 # Loop through the user's path and test for each of PROGNAME-LIST 5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5484 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5485 do 5486 IFS=$as_save_IFS 5487 case $as_dir in #((( 5488 '') as_dir=./ ;; 5489 */) ;; 5490 *) as_dir=$as_dir/ ;; 5491 esac 5492 for ac_prog in fgrep 5493 do 5494 for ac_exec_ext in '' $ac_executable_extensions; do 5495 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5496 as_fn_executable_p "$ac_path_FGREP" || continue 5497 # Check for GNU ac_path_FGREP and select it if it is found. 5498 # Check for GNU $ac_path_FGREP 5499 case `"$ac_path_FGREP" --version 2>&1` in #( 5500 *GNU*) 5501 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5502 #( 5503 *) 5504 ac_count=0 5505 printf %s 0123456789 >"conftest.in" 5506 while : 5507 do 5508 cat "conftest.in" "conftest.in" >"conftest.tmp" 5509 mv "conftest.tmp" "conftest.in" 5510 cp "conftest.in" "conftest.nl" 5511 printf "%s\n" 'FGREP' >> "conftest.nl" 5512 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5513 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5514 as_fn_arith $ac_count + 1 && ac_count=$as_val 5515 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5516 # Best one so far, save it but keep looking for a better one 5517 ac_cv_path_FGREP="$ac_path_FGREP" 5518 ac_path_FGREP_max=$ac_count 5519 fi 5520 # 10*(2^10) chars as input seems more than enough 5521 test $ac_count -gt 10 && break 5522 done 5523 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5524 esac 5525 5526 $ac_path_FGREP_found && break 3 5527 done 5528 done 5529 done 5530 IFS=$as_save_IFS 5531 if test -z "$ac_cv_path_FGREP"; then 5532 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5533 fi 5534 else 5535 ac_cv_path_FGREP=$FGREP 5536 fi 5537 5538 fi ;; 5539 esac 5540 fi 5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5542 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5543 FGREP="$ac_cv_path_FGREP" 5544 5545 5546 test -z "$GREP" && GREP=grep 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 # Check whether --with-gnu-ld was given. 5567 if test ${with_gnu_ld+y} 5568 then : 5569 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5570 else case e in #( 5571 e) with_gnu_ld=no ;; 5572 esac 5573 fi 5574 5575 ac_prog=ld 5576 if test yes = "$GCC"; then 5577 # Check if gcc -print-prog-name=ld gives a path. 5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5579 printf %s "checking for ld used by $CC... " >&6; } 5580 case $host in 5581 *-*-mingw*) 5582 # gcc leaves a trailing carriage return, which upsets mingw 5583 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5584 *) 5585 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5586 esac 5587 case $ac_prog in 5588 # Accept absolute paths. 5589 [\\/]* | ?:[\\/]*) 5590 re_direlt='/[^/][^/]*/\.\./' 5591 # Canonicalize the pathname of ld 5592 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5593 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5594 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5595 done 5596 test -z "$LD" && LD=$ac_prog 5597 ;; 5598 "") 5599 # If it fails, then pretend we aren't using GCC. 5600 ac_prog=ld 5601 ;; 5602 *) 5603 # If it is relative, then search for the first ld in PATH. 5604 with_gnu_ld=unknown 5605 ;; 5606 esac 5607 elif test yes = "$with_gnu_ld"; then 5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5609 printf %s "checking for GNU ld... " >&6; } 5610 else 5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5612 printf %s "checking for non-GNU ld... " >&6; } 5613 fi 5614 if test ${lt_cv_path_LD+y} 5615 then : 5616 printf %s "(cached) " >&6 5617 else case e in #( 5618 e) if test -z "$LD"; then 5619 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5620 for ac_dir in $PATH; do 5621 IFS=$lt_save_ifs 5622 test -z "$ac_dir" && ac_dir=. 5623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5624 lt_cv_path_LD=$ac_dir/$ac_prog 5625 # Check to see if the program is GNU ld. I'd rather use --version, 5626 # but apparently some variants of GNU ld only accept -v. 5627 # Break only if it was the GNU/non-GNU ld that we prefer. 5628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5629 *GNU* | *'with BFD'*) 5630 test no != "$with_gnu_ld" && break 5631 ;; 5632 *) 5633 test yes != "$with_gnu_ld" && break 5634 ;; 5635 esac 5636 fi 5637 done 5638 IFS=$lt_save_ifs 5639 else 5640 lt_cv_path_LD=$LD # Let the user override the test with a path. 5641 fi ;; 5642 esac 5643 fi 5644 5645 LD=$lt_cv_path_LD 5646 if test -n "$LD"; then 5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5648 printf "%s\n" "$LD" >&6; } 5649 else 5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5651 printf "%s\n" "no" >&6; } 5652 fi 5653 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5655 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5656 if test ${lt_cv_prog_gnu_ld+y} 5657 then : 5658 printf %s "(cached) " >&6 5659 else case e in #( 5660 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5661 case `$LD -v 2>&1 </dev/null` in 5662 *GNU* | *'with BFD'*) 5663 lt_cv_prog_gnu_ld=yes 5664 ;; 5665 *) 5666 lt_cv_prog_gnu_ld=no 5667 ;; 5668 esac ;; 5669 esac 5670 fi 5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5672 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5673 with_gnu_ld=$lt_cv_prog_gnu_ld 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5684 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5685 if test ${lt_cv_path_NM+y} 5686 then : 5687 printf %s "(cached) " >&6 5688 else case e in #( 5689 e) if test -n "$NM"; then 5690 # Let the user override the test. 5691 lt_cv_path_NM=$NM 5692 else 5693 lt_nm_to_check=${ac_tool_prefix}nm 5694 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5695 lt_nm_to_check="$lt_nm_to_check nm" 5696 fi 5697 for lt_tmp_nm in $lt_nm_to_check; do 5698 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5699 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5700 IFS=$lt_save_ifs 5701 test -z "$ac_dir" && ac_dir=. 5702 tmp_nm=$ac_dir/$lt_tmp_nm 5703 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5704 # Check to see if the nm accepts a BSD-compat flag. 5705 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5706 # nm: unknown option "B" ignored 5707 # Tru64's nm complains that /dev/null is an invalid object file 5708 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5709 case $build_os in 5710 mingw*) lt_bad_file=conftest.nm/nofile ;; 5711 *) lt_bad_file=/dev/null ;; 5712 esac 5713 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5714 *$lt_bad_file* | *'Invalid file or object type'*) 5715 lt_cv_path_NM="$tmp_nm -B" 5716 break 2 5717 ;; 5718 *) 5719 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5720 */dev/null*) 5721 lt_cv_path_NM="$tmp_nm -p" 5722 break 2 5723 ;; 5724 *) 5725 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5726 continue # so that we can try to find one that supports BSD flags 5727 ;; 5728 esac 5729 ;; 5730 esac 5731 fi 5732 done 5733 IFS=$lt_save_ifs 5734 done 5735 : ${lt_cv_path_NM=no} 5736 fi ;; 5737 esac 5738 fi 5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5740 printf "%s\n" "$lt_cv_path_NM" >&6; } 5741 if test no != "$lt_cv_path_NM"; then 5742 NM=$lt_cv_path_NM 5743 else 5744 # Didn't find any BSD compatible name lister, look for dumpbin. 5745 if test -n "$DUMPBIN"; then : 5746 # Let the user override the test. 5747 else 5748 if test -n "$ac_tool_prefix"; then 5749 for ac_prog in dumpbin "link -dump" 5750 do 5751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5754 printf %s "checking for $ac_word... " >&6; } 5755 if test ${ac_cv_prog_DUMPBIN+y} 5756 then : 5757 printf %s "(cached) " >&6 5758 else case e in #( 5759 e) if test -n "$DUMPBIN"; then 5760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5761 else 5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5763 for as_dir in $PATH 5764 do 5765 IFS=$as_save_IFS 5766 case $as_dir in #((( 5767 '') as_dir=./ ;; 5768 */) ;; 5769 *) as_dir=$as_dir/ ;; 5770 esac 5771 for ac_exec_ext in '' $ac_executable_extensions; do 5772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5773 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5775 break 2 5776 fi 5777 done 5778 done 5779 IFS=$as_save_IFS 5780 5781 fi ;; 5782 esac 5783 fi 5784 DUMPBIN=$ac_cv_prog_DUMPBIN 5785 if test -n "$DUMPBIN"; then 5786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5787 printf "%s\n" "$DUMPBIN" >&6; } 5788 else 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5790 printf "%s\n" "no" >&6; } 5791 fi 5792 5793 5794 test -n "$DUMPBIN" && break 5795 done 5796 fi 5797 if test -z "$DUMPBIN"; then 5798 ac_ct_DUMPBIN=$DUMPBIN 5799 for ac_prog in dumpbin "link -dump" 5800 do 5801 # Extract the first word of "$ac_prog", so it can be a program name with args. 5802 set dummy $ac_prog; ac_word=$2 5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5804 printf %s "checking for $ac_word... " >&6; } 5805 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5806 then : 5807 printf %s "(cached) " >&6 5808 else case e in #( 5809 e) if test -n "$ac_ct_DUMPBIN"; then 5810 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5811 else 5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5813 for as_dir in $PATH 5814 do 5815 IFS=$as_save_IFS 5816 case $as_dir in #((( 5817 '') as_dir=./ ;; 5818 */) ;; 5819 *) as_dir=$as_dir/ ;; 5820 esac 5821 for ac_exec_ext in '' $ac_executable_extensions; do 5822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5823 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5825 break 2 5826 fi 5827 done 5828 done 5829 IFS=$as_save_IFS 5830 5831 fi ;; 5832 esac 5833 fi 5834 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5835 if test -n "$ac_ct_DUMPBIN"; then 5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5837 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5838 else 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5840 printf "%s\n" "no" >&6; } 5841 fi 5842 5843 5844 test -n "$ac_ct_DUMPBIN" && break 5845 done 5846 5847 if test "x$ac_ct_DUMPBIN" = x; then 5848 DUMPBIN=":" 5849 else 5850 case $cross_compiling:$ac_tool_warned in 5851 yes:) 5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5853 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5854 ac_tool_warned=yes ;; 5855 esac 5856 DUMPBIN=$ac_ct_DUMPBIN 5857 fi 5858 fi 5859 5860 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5861 *COFF*) 5862 DUMPBIN="$DUMPBIN -symbols -headers" 5863 ;; 5864 *) 5865 DUMPBIN=: 5866 ;; 5867 esac 5868 fi 5869 5870 if test : != "$DUMPBIN"; then 5871 NM=$DUMPBIN 5872 fi 5873 fi 5874 test -z "$NM" && NM=nm 5875 5876 5877 5878 5879 5880 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5882 printf %s "checking the name lister ($NM) interface... " >&6; } 5883 if test ${lt_cv_nm_interface+y} 5884 then : 5885 printf %s "(cached) " >&6 5886 else case e in #( 5887 e) lt_cv_nm_interface="BSD nm" 5888 echo "int some_variable = 0;" > conftest.$ac_ext 5889 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5890 (eval "$ac_compile" 2>conftest.err) 5891 cat conftest.err >&5 5892 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5893 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5894 cat conftest.err >&5 5895 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5896 cat conftest.out >&5 5897 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5898 lt_cv_nm_interface="MS dumpbin" 5899 fi 5900 rm -f conftest* ;; 5901 esac 5902 fi 5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5904 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5905 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5907 printf %s "checking whether ln -s works... " >&6; } 5908 LN_S=$as_ln_s 5909 if test "$LN_S" = "ln -s"; then 5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5911 printf "%s\n" "yes" >&6; } 5912 else 5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5914 printf "%s\n" "no, using $LN_S" >&6; } 5915 fi 5916 5917 # find the maximum length of command line arguments 5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5919 printf %s "checking the maximum length of command line arguments... " >&6; } 5920 if test ${lt_cv_sys_max_cmd_len+y} 5921 then : 5922 printf %s "(cached) " >&6 5923 else case e in #( 5924 e) i=0 5925 teststring=ABCD 5926 5927 case $build_os in 5928 msdosdjgpp*) 5929 # On DJGPP, this test can blow up pretty badly due to problems in libc 5930 # (any single argument exceeding 2000 bytes causes a buffer overrun 5931 # during glob expansion). Even if it were fixed, the result of this 5932 # check would be larger than it should be. 5933 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5934 ;; 5935 5936 gnu*) 5937 # Under GNU Hurd, this test is not required because there is 5938 # no limit to the length of command line arguments. 5939 # Libtool will interpret -1 as no limit whatsoever 5940 lt_cv_sys_max_cmd_len=-1; 5941 ;; 5942 5943 cygwin* | mingw* | cegcc*) 5944 # On Win9x/ME, this test blows up -- it succeeds, but takes 5945 # about 5 minutes as the teststring grows exponentially. 5946 # Worse, since 9x/ME are not pre-emptively multitasking, 5947 # you end up with a "frozen" computer, even though with patience 5948 # the test eventually succeeds (with a max line length of 256k). 5949 # Instead, let's just punt: use the minimum linelength reported by 5950 # all of the supported platforms: 8192 (on NT/2K/XP). 5951 lt_cv_sys_max_cmd_len=8192; 5952 ;; 5953 5954 mint*) 5955 # On MiNT this can take a long time and run out of memory. 5956 lt_cv_sys_max_cmd_len=8192; 5957 ;; 5958 5959 amigaos*) 5960 # On AmigaOS with pdksh, this test takes hours, literally. 5961 # So we just punt and use a minimum line length of 8192. 5962 lt_cv_sys_max_cmd_len=8192; 5963 ;; 5964 5965 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 5966 # This has been around since 386BSD, at least. Likely further. 5967 if test -x /sbin/sysctl; then 5968 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5969 elif test -x /usr/sbin/sysctl; then 5970 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5971 else 5972 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5973 fi 5974 # And add a safety zone 5975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5977 ;; 5978 5979 interix*) 5980 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5981 lt_cv_sys_max_cmd_len=196608 5982 ;; 5983 5984 os2*) 5985 # The test takes a long time on OS/2. 5986 lt_cv_sys_max_cmd_len=8192 5987 ;; 5988 5989 osf*) 5990 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5991 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5992 # nice to cause kernel panics so lets avoid the loop below. 5993 # First set a reasonable default. 5994 lt_cv_sys_max_cmd_len=16384 5995 # 5996 if test -x /sbin/sysconfig; then 5997 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5998 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5999 esac 6000 fi 6001 ;; 6002 sco3.2v5*) 6003 lt_cv_sys_max_cmd_len=102400 6004 ;; 6005 sysv5* | sco5v6* | sysv4.2uw2*) 6006 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6007 if test -n "$kargmax"; then 6008 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6009 else 6010 lt_cv_sys_max_cmd_len=32768 6011 fi 6012 ;; 6013 *) 6014 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6015 if test -n "$lt_cv_sys_max_cmd_len" && \ 6016 test undefined != "$lt_cv_sys_max_cmd_len"; then 6017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6019 else 6020 # Make teststring a little bigger before we do anything with it. 6021 # a 1K string should be a reasonable start. 6022 for i in 1 2 3 4 5 6 7 8; do 6023 teststring=$teststring$teststring 6024 done 6025 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6026 # If test is not a shell built-in, we'll probably end up computing a 6027 # maximum length that is only half of the actual maximum length, but 6028 # we can't tell. 6029 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6030 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6031 test 17 != "$i" # 1/2 MB should be enough 6032 do 6033 i=`expr $i + 1` 6034 teststring=$teststring$teststring 6035 done 6036 # Only check the string length outside the loop. 6037 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6038 teststring= 6039 # Add a significant safety factor because C++ compilers can tack on 6040 # massive amounts of additional arguments before passing them to the 6041 # linker. It appears as though 1/2 is a usable value. 6042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6043 fi 6044 ;; 6045 esac 6046 ;; 6047 esac 6048 fi 6049 6050 if test -n "$lt_cv_sys_max_cmd_len"; then 6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6052 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6053 else 6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6055 printf "%s\n" "none" >&6; } 6056 fi 6057 max_cmd_len=$lt_cv_sys_max_cmd_len 6058 6059 6060 6061 6062 6063 6064 : ${CP="cp -f"} 6065 : ${MV="mv -f"} 6066 : ${RM="rm -f"} 6067 6068 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6069 lt_unset=unset 6070 else 6071 lt_unset=false 6072 fi 6073 6074 6075 6076 6077 6078 # test EBCDIC or ASCII 6079 case `echo X|tr X '\101'` in 6080 A) # ASCII based system 6081 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6082 lt_SP2NL='tr \040 \012' 6083 lt_NL2SP='tr \015\012 \040\040' 6084 ;; 6085 *) # EBCDIC based system 6086 lt_SP2NL='tr \100 \n' 6087 lt_NL2SP='tr \r\n \100\100' 6088 ;; 6089 esac 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6100 printf %s "checking how to convert $build file names to $host format... " >&6; } 6101 if test ${lt_cv_to_host_file_cmd+y} 6102 then : 6103 printf %s "(cached) " >&6 6104 else case e in #( 6105 e) case $host in 6106 *-*-mingw* ) 6107 case $build in 6108 *-*-mingw* ) # actually msys 6109 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6110 ;; 6111 *-*-cygwin* ) 6112 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6113 ;; 6114 * ) # otherwise, assume *nix 6115 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6116 ;; 6117 esac 6118 ;; 6119 *-*-cygwin* ) 6120 case $build in 6121 *-*-mingw* ) # actually msys 6122 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6123 ;; 6124 *-*-cygwin* ) 6125 lt_cv_to_host_file_cmd=func_convert_file_noop 6126 ;; 6127 * ) # otherwise, assume *nix 6128 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6129 ;; 6130 esac 6131 ;; 6132 * ) # unhandled hosts (and "normal" native builds) 6133 lt_cv_to_host_file_cmd=func_convert_file_noop 6134 ;; 6135 esac 6136 ;; 6137 esac 6138 fi 6139 6140 to_host_file_cmd=$lt_cv_to_host_file_cmd 6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6142 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6143 6144 6145 6146 6147 6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6149 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6150 if test ${lt_cv_to_tool_file_cmd+y} 6151 then : 6152 printf %s "(cached) " >&6 6153 else case e in #( 6154 e) #assume ordinary cross tools, or native build. 6155 lt_cv_to_tool_file_cmd=func_convert_file_noop 6156 case $host in 6157 *-*-mingw* ) 6158 case $build in 6159 *-*-mingw* ) # actually msys 6160 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6161 ;; 6162 esac 6163 ;; 6164 esac 6165 ;; 6166 esac 6167 fi 6168 6169 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6171 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6172 6173 6174 6175 6176 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6178 printf %s "checking for $LD option to reload object files... " >&6; } 6179 if test ${lt_cv_ld_reload_flag+y} 6180 then : 6181 printf %s "(cached) " >&6 6182 else case e in #( 6183 e) lt_cv_ld_reload_flag='-r' ;; 6184 esac 6185 fi 6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6187 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6188 reload_flag=$lt_cv_ld_reload_flag 6189 case $reload_flag in 6190 "" | " "*) ;; 6191 *) reload_flag=" $reload_flag" ;; 6192 esac 6193 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6194 case $host_os in 6195 cygwin* | mingw* | pw32* | cegcc*) 6196 if test yes != "$GCC"; then 6197 reload_cmds=false 6198 fi 6199 ;; 6200 darwin*) 6201 if test yes = "$GCC"; then 6202 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6203 else 6204 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6205 fi 6206 ;; 6207 esac 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 if test -n "$ac_tool_prefix"; then 6218 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6219 set dummy ${ac_tool_prefix}file; ac_word=$2 6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6221 printf %s "checking for $ac_word... " >&6; } 6222 if test ${ac_cv_prog_FILECMD+y} 6223 then : 6224 printf %s "(cached) " >&6 6225 else case e in #( 6226 e) if test -n "$FILECMD"; then 6227 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6228 else 6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6230 for as_dir in $PATH 6231 do 6232 IFS=$as_save_IFS 6233 case $as_dir in #((( 6234 '') as_dir=./ ;; 6235 */) ;; 6236 *) as_dir=$as_dir/ ;; 6237 esac 6238 for ac_exec_ext in '' $ac_executable_extensions; do 6239 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6240 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6242 break 2 6243 fi 6244 done 6245 done 6246 IFS=$as_save_IFS 6247 6248 fi ;; 6249 esac 6250 fi 6251 FILECMD=$ac_cv_prog_FILECMD 6252 if test -n "$FILECMD"; then 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6254 printf "%s\n" "$FILECMD" >&6; } 6255 else 6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6257 printf "%s\n" "no" >&6; } 6258 fi 6259 6260 6261 fi 6262 if test -z "$ac_cv_prog_FILECMD"; then 6263 ac_ct_FILECMD=$FILECMD 6264 # Extract the first word of "file", so it can be a program name with args. 6265 set dummy file; ac_word=$2 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6267 printf %s "checking for $ac_word... " >&6; } 6268 if test ${ac_cv_prog_ac_ct_FILECMD+y} 6269 then : 6270 printf %s "(cached) " >&6 6271 else case e in #( 6272 e) if test -n "$ac_ct_FILECMD"; then 6273 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6274 else 6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6276 for as_dir in $PATH 6277 do 6278 IFS=$as_save_IFS 6279 case $as_dir in #((( 6280 '') as_dir=./ ;; 6281 */) ;; 6282 *) as_dir=$as_dir/ ;; 6283 esac 6284 for ac_exec_ext in '' $ac_executable_extensions; do 6285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6286 ac_cv_prog_ac_ct_FILECMD="file" 6287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6288 break 2 6289 fi 6290 done 6291 done 6292 IFS=$as_save_IFS 6293 6294 fi ;; 6295 esac 6296 fi 6297 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6298 if test -n "$ac_ct_FILECMD"; then 6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6300 printf "%s\n" "$ac_ct_FILECMD" >&6; } 6301 else 6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6303 printf "%s\n" "no" >&6; } 6304 fi 6305 6306 if test "x$ac_ct_FILECMD" = x; then 6307 FILECMD=":" 6308 else 6309 case $cross_compiling:$ac_tool_warned in 6310 yes:) 6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6312 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6313 ac_tool_warned=yes ;; 6314 esac 6315 FILECMD=$ac_ct_FILECMD 6316 fi 6317 else 6318 FILECMD="$ac_cv_prog_FILECMD" 6319 fi 6320 6321 6322 6323 6324 6325 6326 6327 if test -n "$ac_tool_prefix"; then 6328 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6329 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6331 printf %s "checking for $ac_word... " >&6; } 6332 if test ${ac_cv_prog_OBJDUMP+y} 6333 then : 6334 printf %s "(cached) " >&6 6335 else case e in #( 6336 e) if test -n "$OBJDUMP"; then 6337 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6338 else 6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340 for as_dir in $PATH 6341 do 6342 IFS=$as_save_IFS 6343 case $as_dir in #((( 6344 '') as_dir=./ ;; 6345 */) ;; 6346 *) as_dir=$as_dir/ ;; 6347 esac 6348 for ac_exec_ext in '' $ac_executable_extensions; do 6349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6350 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6352 break 2 6353 fi 6354 done 6355 done 6356 IFS=$as_save_IFS 6357 6358 fi ;; 6359 esac 6360 fi 6361 OBJDUMP=$ac_cv_prog_OBJDUMP 6362 if test -n "$OBJDUMP"; then 6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6364 printf "%s\n" "$OBJDUMP" >&6; } 6365 else 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367 printf "%s\n" "no" >&6; } 6368 fi 6369 6370 6371 fi 6372 if test -z "$ac_cv_prog_OBJDUMP"; then 6373 ac_ct_OBJDUMP=$OBJDUMP 6374 # Extract the first word of "objdump", so it can be a program name with args. 6375 set dummy objdump; ac_word=$2 6376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6377 printf %s "checking for $ac_word... " >&6; } 6378 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6379 then : 6380 printf %s "(cached) " >&6 6381 else case e in #( 6382 e) if test -n "$ac_ct_OBJDUMP"; then 6383 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6384 else 6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6386 for as_dir in $PATH 6387 do 6388 IFS=$as_save_IFS 6389 case $as_dir in #((( 6390 '') as_dir=./ ;; 6391 */) ;; 6392 *) as_dir=$as_dir/ ;; 6393 esac 6394 for ac_exec_ext in '' $ac_executable_extensions; do 6395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6396 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6398 break 2 6399 fi 6400 done 6401 done 6402 IFS=$as_save_IFS 6403 6404 fi ;; 6405 esac 6406 fi 6407 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6408 if test -n "$ac_ct_OBJDUMP"; then 6409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6410 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6411 else 6412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6413 printf "%s\n" "no" >&6; } 6414 fi 6415 6416 if test "x$ac_ct_OBJDUMP" = x; then 6417 OBJDUMP="false" 6418 else 6419 case $cross_compiling:$ac_tool_warned in 6420 yes:) 6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6422 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6423 ac_tool_warned=yes ;; 6424 esac 6425 OBJDUMP=$ac_ct_OBJDUMP 6426 fi 6427 else 6428 OBJDUMP="$ac_cv_prog_OBJDUMP" 6429 fi 6430 6431 test -z "$OBJDUMP" && OBJDUMP=objdump 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6442 printf %s "checking how to recognize dependent libraries... " >&6; } 6443 if test ${lt_cv_deplibs_check_method+y} 6444 then : 6445 printf %s "(cached) " >&6 6446 else case e in #( 6447 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6448 lt_cv_file_magic_test_file= 6449 lt_cv_deplibs_check_method='unknown' 6450 # Need to set the preceding variable on all platforms that support 6451 # interlibrary dependencies. 6452 # 'none' -- dependencies not supported. 6453 # 'unknown' -- same as none, but documents that we really don't know. 6454 # 'pass_all' -- all dependencies passed with no checks. 6455 # 'test_compile' -- check by making test program. 6456 # 'file_magic [[regex]]' -- check by looking for files in library path 6457 # that responds to the $file_magic_cmd with a given extended regex. 6458 # If you have 'file' or equivalent on your system and you're not sure 6459 # whether 'pass_all' will *always* work, you probably want this one. 6460 6461 case $host_os in 6462 aix[4-9]*) 6463 lt_cv_deplibs_check_method=pass_all 6464 ;; 6465 6466 beos*) 6467 lt_cv_deplibs_check_method=pass_all 6468 ;; 6469 6470 bsdi[45]*) 6471 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6472 lt_cv_file_magic_cmd='$FILECMD -L' 6473 lt_cv_file_magic_test_file=/shlib/libc.so 6474 ;; 6475 6476 cygwin*) 6477 # func_win32_libid is a shell function defined in ltmain.sh 6478 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6479 lt_cv_file_magic_cmd='func_win32_libid' 6480 ;; 6481 6482 mingw* | pw32*) 6483 # Base MSYS/MinGW do not provide the 'file' command needed by 6484 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6485 # unless we find 'file', for example because we are cross-compiling. 6486 if ( file / ) >/dev/null 2>&1; then 6487 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6488 lt_cv_file_magic_cmd='func_win32_libid' 6489 else 6490 # Keep this pattern in sync with the one in func_win32_libid. 6491 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6492 lt_cv_file_magic_cmd='$OBJDUMP -f' 6493 fi 6494 ;; 6495 6496 cegcc*) 6497 # use the weaker test based on 'objdump'. See mingw*. 6498 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6499 lt_cv_file_magic_cmd='$OBJDUMP -f' 6500 ;; 6501 6502 darwin* | rhapsody*) 6503 lt_cv_deplibs_check_method=pass_all 6504 ;; 6505 6506 freebsd* | dragonfly* | midnightbsd*) 6507 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6508 case $host_cpu in 6509 i*86 ) 6510 # Not sure whether the presence of OpenBSD here was a mistake. 6511 # Let's accept both of them until this is cleared up. 6512 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6513 lt_cv_file_magic_cmd=$FILECMD 6514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6515 ;; 6516 esac 6517 else 6518 lt_cv_deplibs_check_method=pass_all 6519 fi 6520 ;; 6521 6522 haiku*) 6523 lt_cv_deplibs_check_method=pass_all 6524 ;; 6525 6526 hpux10.20* | hpux11*) 6527 lt_cv_file_magic_cmd=$FILECMD 6528 case $host_cpu in 6529 ia64*) 6530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6531 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6532 ;; 6533 hppa*64*) 6534 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]' 6535 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6536 ;; 6537 *) 6538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6539 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6540 ;; 6541 esac 6542 ;; 6543 6544 interix[3-9]*) 6545 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6546 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6547 ;; 6548 6549 irix5* | irix6* | nonstopux*) 6550 case $LD in 6551 *-32|*"-32 ") libmagic=32-bit;; 6552 *-n32|*"-n32 ") libmagic=N32;; 6553 *-64|*"-64 ") libmagic=64-bit;; 6554 *) libmagic=never-match;; 6555 esac 6556 lt_cv_deplibs_check_method=pass_all 6557 ;; 6558 6559 # This must be glibc/ELF. 6560 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6561 lt_cv_deplibs_check_method=pass_all 6562 ;; 6563 6564 netbsd*) 6565 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6566 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6567 else 6568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6569 fi 6570 ;; 6571 6572 newos6*) 6573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6574 lt_cv_file_magic_cmd=$FILECMD 6575 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6576 ;; 6577 6578 *nto* | *qnx*) 6579 lt_cv_deplibs_check_method=pass_all 6580 ;; 6581 6582 openbsd* | bitrig*) 6583 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6585 else 6586 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6587 fi 6588 ;; 6589 6590 osf3* | osf4* | osf5*) 6591 lt_cv_deplibs_check_method=pass_all 6592 ;; 6593 6594 rdos*) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 6598 solaris*) 6599 lt_cv_deplibs_check_method=pass_all 6600 ;; 6601 6602 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6603 lt_cv_deplibs_check_method=pass_all 6604 ;; 6605 6606 sysv4 | sysv4.3*) 6607 case $host_vendor in 6608 motorola) 6609 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]' 6610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6611 ;; 6612 ncr) 6613 lt_cv_deplibs_check_method=pass_all 6614 ;; 6615 sequent) 6616 lt_cv_file_magic_cmd='/bin/file' 6617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6618 ;; 6619 sni) 6620 lt_cv_file_magic_cmd='/bin/file' 6621 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6622 lt_cv_file_magic_test_file=/lib/libc.so 6623 ;; 6624 siemens) 6625 lt_cv_deplibs_check_method=pass_all 6626 ;; 6627 pc) 6628 lt_cv_deplibs_check_method=pass_all 6629 ;; 6630 esac 6631 ;; 6632 6633 tpf*) 6634 lt_cv_deplibs_check_method=pass_all 6635 ;; 6636 os2*) 6637 lt_cv_deplibs_check_method=pass_all 6638 ;; 6639 esac 6640 ;; 6641 esac 6642 fi 6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6644 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6645 6646 file_magic_glob= 6647 want_nocaseglob=no 6648 if test "$build" = "$host"; then 6649 case $host_os in 6650 mingw* | pw32*) 6651 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6652 want_nocaseglob=yes 6653 else 6654 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6655 fi 6656 ;; 6657 esac 6658 fi 6659 6660 file_magic_cmd=$lt_cv_file_magic_cmd 6661 deplibs_check_method=$lt_cv_deplibs_check_method 6662 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 if test -n "$ac_tool_prefix"; then 6686 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6687 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6689 printf %s "checking for $ac_word... " >&6; } 6690 if test ${ac_cv_prog_DLLTOOL+y} 6691 then : 6692 printf %s "(cached) " >&6 6693 else case e in #( 6694 e) if test -n "$DLLTOOL"; then 6695 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6696 else 6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6698 for as_dir in $PATH 6699 do 6700 IFS=$as_save_IFS 6701 case $as_dir in #((( 6702 '') as_dir=./ ;; 6703 */) ;; 6704 *) as_dir=$as_dir/ ;; 6705 esac 6706 for ac_exec_ext in '' $ac_executable_extensions; do 6707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6708 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6710 break 2 6711 fi 6712 done 6713 done 6714 IFS=$as_save_IFS 6715 6716 fi ;; 6717 esac 6718 fi 6719 DLLTOOL=$ac_cv_prog_DLLTOOL 6720 if test -n "$DLLTOOL"; then 6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6722 printf "%s\n" "$DLLTOOL" >&6; } 6723 else 6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6725 printf "%s\n" "no" >&6; } 6726 fi 6727 6728 6729 fi 6730 if test -z "$ac_cv_prog_DLLTOOL"; then 6731 ac_ct_DLLTOOL=$DLLTOOL 6732 # Extract the first word of "dlltool", so it can be a program name with args. 6733 set dummy dlltool; ac_word=$2 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735 printf %s "checking for $ac_word... " >&6; } 6736 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6737 then : 6738 printf %s "(cached) " >&6 6739 else case e in #( 6740 e) if test -n "$ac_ct_DLLTOOL"; then 6741 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6742 else 6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6744 for as_dir in $PATH 6745 do 6746 IFS=$as_save_IFS 6747 case $as_dir in #((( 6748 '') as_dir=./ ;; 6749 */) ;; 6750 *) as_dir=$as_dir/ ;; 6751 esac 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6754 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758 done 6759 done 6760 IFS=$as_save_IFS 6761 6762 fi ;; 6763 esac 6764 fi 6765 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6766 if test -n "$ac_ct_DLLTOOL"; then 6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6768 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6769 else 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6771 printf "%s\n" "no" >&6; } 6772 fi 6773 6774 if test "x$ac_ct_DLLTOOL" = x; then 6775 DLLTOOL="false" 6776 else 6777 case $cross_compiling:$ac_tool_warned in 6778 yes:) 6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6780 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6781 ac_tool_warned=yes ;; 6782 esac 6783 DLLTOOL=$ac_ct_DLLTOOL 6784 fi 6785 else 6786 DLLTOOL="$ac_cv_prog_DLLTOOL" 6787 fi 6788 6789 test -z "$DLLTOOL" && DLLTOOL=dlltool 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6801 printf %s "checking how to associate runtime and link libraries... " >&6; } 6802 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6803 then : 6804 printf %s "(cached) " >&6 6805 else case e in #( 6806 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6807 6808 case $host_os in 6809 cygwin* | mingw* | pw32* | cegcc*) 6810 # two different shell functions defined in ltmain.sh; 6811 # decide which one to use based on capabilities of $DLLTOOL 6812 case `$DLLTOOL --help 2>&1` in 6813 *--identify-strict*) 6814 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6815 ;; 6816 *) 6817 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6818 ;; 6819 esac 6820 ;; 6821 *) 6822 # fallback: assume linklib IS sharedlib 6823 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6824 ;; 6825 esac 6826 ;; 6827 esac 6828 fi 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6830 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6831 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6832 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6833 6834 6835 6836 6837 6838 6839 6840 if test -n "$ac_tool_prefix"; then 6841 for ac_prog in ar 6842 do 6843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6844 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6846 printf %s "checking for $ac_word... " >&6; } 6847 if test ${ac_cv_prog_AR+y} 6848 then : 6849 printf %s "(cached) " >&6 6850 else case e in #( 6851 e) if test -n "$AR"; then 6852 ac_cv_prog_AR="$AR" # Let the user override the test. 6853 else 6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6855 for as_dir in $PATH 6856 do 6857 IFS=$as_save_IFS 6858 case $as_dir in #((( 6859 '') as_dir=./ ;; 6860 */) ;; 6861 *) as_dir=$as_dir/ ;; 6862 esac 6863 for ac_exec_ext in '' $ac_executable_extensions; do 6864 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6865 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6867 break 2 6868 fi 6869 done 6870 done 6871 IFS=$as_save_IFS 6872 6873 fi ;; 6874 esac 6875 fi 6876 AR=$ac_cv_prog_AR 6877 if test -n "$AR"; then 6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6879 printf "%s\n" "$AR" >&6; } 6880 else 6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6882 printf "%s\n" "no" >&6; } 6883 fi 6884 6885 6886 test -n "$AR" && break 6887 done 6888 fi 6889 if test -z "$AR"; then 6890 ac_ct_AR=$AR 6891 for ac_prog in ar 6892 do 6893 # Extract the first word of "$ac_prog", so it can be a program name with args. 6894 set dummy $ac_prog; ac_word=$2 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6896 printf %s "checking for $ac_word... " >&6; } 6897 if test ${ac_cv_prog_ac_ct_AR+y} 6898 then : 6899 printf %s "(cached) " >&6 6900 else case e in #( 6901 e) if test -n "$ac_ct_AR"; then 6902 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6903 else 6904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6905 for as_dir in $PATH 6906 do 6907 IFS=$as_save_IFS 6908 case $as_dir in #((( 6909 '') as_dir=./ ;; 6910 */) ;; 6911 *) as_dir=$as_dir/ ;; 6912 esac 6913 for ac_exec_ext in '' $ac_executable_extensions; do 6914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6915 ac_cv_prog_ac_ct_AR="$ac_prog" 6916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6917 break 2 6918 fi 6919 done 6920 done 6921 IFS=$as_save_IFS 6922 6923 fi ;; 6924 esac 6925 fi 6926 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6927 if test -n "$ac_ct_AR"; then 6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6929 printf "%s\n" "$ac_ct_AR" >&6; } 6930 else 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6932 printf "%s\n" "no" >&6; } 6933 fi 6934 6935 6936 test -n "$ac_ct_AR" && break 6937 done 6938 6939 if test "x$ac_ct_AR" = x; then 6940 AR="false" 6941 else 6942 case $cross_compiling:$ac_tool_warned in 6943 yes:) 6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6946 ac_tool_warned=yes ;; 6947 esac 6948 AR=$ac_ct_AR 6949 fi 6950 fi 6951 6952 : ${AR=ar} 6953 6954 6955 6956 6957 6958 6959 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 6960 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6961 # higher priority because thats what people were doing historically (setting 6962 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6963 # variable obsoleted/removed. 6964 6965 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6966 lt_ar_flags=$AR_FLAGS 6967 6968 6969 6970 6971 6972 6973 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6974 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6975 6976 6977 6978 6979 6980 6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6982 printf %s "checking for archiver @FILE support... " >&6; } 6983 if test ${lt_cv_ar_at_file+y} 6984 then : 6985 printf %s "(cached) " >&6 6986 else case e in #( 6987 e) lt_cv_ar_at_file=no 6988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6989 /* end confdefs.h. */ 6990 6991 int 6992 main (void) 6993 { 6994 6995 ; 6996 return 0; 6997 } 6998 _ACEOF 6999 if ac_fn_c_try_compile "$LINENO" 7000 then : 7001 echo conftest.$ac_objext > conftest.lst 7002 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7004 (eval $lt_ar_try) 2>&5 7005 ac_status=$? 7006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7007 test $ac_status = 0; } 7008 if test 0 -eq "$ac_status"; then 7009 # Ensure the archiver fails upon bogus file names. 7010 rm -f conftest.$ac_objext libconftest.a 7011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7012 (eval $lt_ar_try) 2>&5 7013 ac_status=$? 7014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7015 test $ac_status = 0; } 7016 if test 0 -ne "$ac_status"; then 7017 lt_cv_ar_at_file=@ 7018 fi 7019 fi 7020 rm -f conftest.* libconftest.a 7021 7022 fi 7023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7024 ;; 7025 esac 7026 fi 7027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7028 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7029 7030 if test no = "$lt_cv_ar_at_file"; then 7031 archiver_list_spec= 7032 else 7033 archiver_list_spec=$lt_cv_ar_at_file 7034 fi 7035 7036 7037 7038 7039 7040 7041 7042 if test -n "$ac_tool_prefix"; then 7043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7044 set dummy ${ac_tool_prefix}strip; ac_word=$2 7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7046 printf %s "checking for $ac_word... " >&6; } 7047 if test ${ac_cv_prog_STRIP+y} 7048 then : 7049 printf %s "(cached) " >&6 7050 else case e in #( 7051 e) if test -n "$STRIP"; then 7052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7053 else 7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7055 for as_dir in $PATH 7056 do 7057 IFS=$as_save_IFS 7058 case $as_dir in #((( 7059 '') as_dir=./ ;; 7060 */) ;; 7061 *) as_dir=$as_dir/ ;; 7062 esac 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7065 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069 done 7070 done 7071 IFS=$as_save_IFS 7072 7073 fi ;; 7074 esac 7075 fi 7076 STRIP=$ac_cv_prog_STRIP 7077 if test -n "$STRIP"; then 7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7079 printf "%s\n" "$STRIP" >&6; } 7080 else 7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082 printf "%s\n" "no" >&6; } 7083 fi 7084 7085 7086 fi 7087 if test -z "$ac_cv_prog_STRIP"; then 7088 ac_ct_STRIP=$STRIP 7089 # Extract the first word of "strip", so it can be a program name with args. 7090 set dummy strip; ac_word=$2 7091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7092 printf %s "checking for $ac_word... " >&6; } 7093 if test ${ac_cv_prog_ac_ct_STRIP+y} 7094 then : 7095 printf %s "(cached) " >&6 7096 else case e in #( 7097 e) if test -n "$ac_ct_STRIP"; then 7098 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7099 else 7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7101 for as_dir in $PATH 7102 do 7103 IFS=$as_save_IFS 7104 case $as_dir in #((( 7105 '') as_dir=./ ;; 7106 */) ;; 7107 *) as_dir=$as_dir/ ;; 7108 esac 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7111 ac_cv_prog_ac_ct_STRIP="strip" 7112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115 done 7116 done 7117 IFS=$as_save_IFS 7118 7119 fi ;; 7120 esac 7121 fi 7122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7123 if test -n "$ac_ct_STRIP"; then 7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7125 printf "%s\n" "$ac_ct_STRIP" >&6; } 7126 else 7127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7128 printf "%s\n" "no" >&6; } 7129 fi 7130 7131 if test "x$ac_ct_STRIP" = x; then 7132 STRIP=":" 7133 else 7134 case $cross_compiling:$ac_tool_warned in 7135 yes:) 7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7138 ac_tool_warned=yes ;; 7139 esac 7140 STRIP=$ac_ct_STRIP 7141 fi 7142 else 7143 STRIP="$ac_cv_prog_STRIP" 7144 fi 7145 7146 test -z "$STRIP" && STRIP=: 7147 7148 7149 7150 7151 7152 7153 if test -n "$ac_tool_prefix"; then 7154 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7155 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7157 printf %s "checking for $ac_word... " >&6; } 7158 if test ${ac_cv_prog_RANLIB+y} 7159 then : 7160 printf %s "(cached) " >&6 7161 else case e in #( 7162 e) if test -n "$RANLIB"; then 7163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7164 else 7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7166 for as_dir in $PATH 7167 do 7168 IFS=$as_save_IFS 7169 case $as_dir in #((( 7170 '') as_dir=./ ;; 7171 */) ;; 7172 *) as_dir=$as_dir/ ;; 7173 esac 7174 for ac_exec_ext in '' $ac_executable_extensions; do 7175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7176 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7178 break 2 7179 fi 7180 done 7181 done 7182 IFS=$as_save_IFS 7183 7184 fi ;; 7185 esac 7186 fi 7187 RANLIB=$ac_cv_prog_RANLIB 7188 if test -n "$RANLIB"; then 7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7190 printf "%s\n" "$RANLIB" >&6; } 7191 else 7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7193 printf "%s\n" "no" >&6; } 7194 fi 7195 7196 7197 fi 7198 if test -z "$ac_cv_prog_RANLIB"; then 7199 ac_ct_RANLIB=$RANLIB 7200 # Extract the first word of "ranlib", so it can be a program name with args. 7201 set dummy ranlib; ac_word=$2 7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7203 printf %s "checking for $ac_word... " >&6; } 7204 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7205 then : 7206 printf %s "(cached) " >&6 7207 else case e in #( 7208 e) if test -n "$ac_ct_RANLIB"; then 7209 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7210 else 7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212 for as_dir in $PATH 7213 do 7214 IFS=$as_save_IFS 7215 case $as_dir in #((( 7216 '') as_dir=./ ;; 7217 */) ;; 7218 *) as_dir=$as_dir/ ;; 7219 esac 7220 for ac_exec_ext in '' $ac_executable_extensions; do 7221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7222 ac_cv_prog_ac_ct_RANLIB="ranlib" 7223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7224 break 2 7225 fi 7226 done 7227 done 7228 IFS=$as_save_IFS 7229 7230 fi ;; 7231 esac 7232 fi 7233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7234 if test -n "$ac_ct_RANLIB"; then 7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7236 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7237 else 7238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7239 printf "%s\n" "no" >&6; } 7240 fi 7241 7242 if test "x$ac_ct_RANLIB" = x; then 7243 RANLIB=":" 7244 else 7245 case $cross_compiling:$ac_tool_warned in 7246 yes:) 7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7248 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7249 ac_tool_warned=yes ;; 7250 esac 7251 RANLIB=$ac_ct_RANLIB 7252 fi 7253 else 7254 RANLIB="$ac_cv_prog_RANLIB" 7255 fi 7256 7257 test -z "$RANLIB" && RANLIB=: 7258 7259 7260 7261 7262 7263 7264 # Determine commands to create old-style static archives. 7265 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7266 old_postinstall_cmds='chmod 644 $oldlib' 7267 old_postuninstall_cmds= 7268 7269 if test -n "$RANLIB"; then 7270 case $host_os in 7271 bitrig* | openbsd*) 7272 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7273 ;; 7274 *) 7275 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7276 ;; 7277 esac 7278 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7279 fi 7280 7281 case $host_os in 7282 darwin*) 7283 lock_old_archive_extraction=yes ;; 7284 *) 7285 lock_old_archive_extraction=no ;; 7286 esac 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 # If no C compiler was specified, use CC. 7327 LTCC=${LTCC-"$CC"} 7328 7329 # If no C compiler flags were specified, use CFLAGS. 7330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7331 7332 # Allow CC to be a program name with arguments. 7333 compiler=$CC 7334 7335 7336 # Check for command to grab the raw symbol name followed by C symbol from nm. 7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7338 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7339 if test ${lt_cv_sys_global_symbol_pipe+y} 7340 then : 7341 printf %s "(cached) " >&6 7342 else case e in #( 7343 e) 7344 # These are sane defaults that work on at least a few old systems. 7345 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7346 7347 # Character class describing NM global symbol codes. 7348 symcode='[BCDEGRST]' 7349 7350 # Regexp to match symbols that can be accessed directly from C. 7351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7352 7353 # Define system-specific variables. 7354 case $host_os in 7355 aix*) 7356 symcode='[BCDT]' 7357 ;; 7358 cygwin* | mingw* | pw32* | cegcc*) 7359 symcode='[ABCDGISTW]' 7360 ;; 7361 hpux*) 7362 if test ia64 = "$host_cpu"; then 7363 symcode='[ABCDEGRST]' 7364 fi 7365 ;; 7366 irix* | nonstopux*) 7367 symcode='[BCDEGRST]' 7368 ;; 7369 osf*) 7370 symcode='[BCDEGQRST]' 7371 ;; 7372 solaris*) 7373 symcode='[BDRT]' 7374 ;; 7375 sco3.2v5*) 7376 symcode='[DT]' 7377 ;; 7378 sysv4.2uw2*) 7379 symcode='[DT]' 7380 ;; 7381 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7382 symcode='[ABDT]' 7383 ;; 7384 sysv4) 7385 symcode='[DFNSTU]' 7386 ;; 7387 esac 7388 7389 # If we're using GNU nm, then use its standard symbol codes. 7390 case `$NM -V 2>&1` in 7391 *GNU* | *'with BFD'*) 7392 symcode='[ABCDGIRSTW]' ;; 7393 esac 7394 7395 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7396 # Gets list of data symbols to import. 7397 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7398 # Adjust the below global symbol transforms to fixup imported variables. 7399 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7400 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7401 lt_c_name_lib_hook="\ 7402 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7403 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7404 else 7405 # Disable hooks by default. 7406 lt_cv_sys_global_symbol_to_import= 7407 lt_cdecl_hook= 7408 lt_c_name_hook= 7409 lt_c_name_lib_hook= 7410 fi 7411 7412 # Transform an extracted symbol line into a proper C declaration. 7413 # Some systems (esp. on ia64) link data and code symbols differently, 7414 # so use this general approach. 7415 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7416 $lt_cdecl_hook\ 7417 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7418 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7419 7420 # Transform an extracted symbol line into symbol name and symbol address 7421 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7422 $lt_c_name_hook\ 7423 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7424 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7425 7426 # Transform an extracted symbol line into symbol name with lib prefix and 7427 # symbol address. 7428 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7429 $lt_c_name_lib_hook\ 7430 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7431 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7432 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7433 7434 # Handle CRLF in mingw tool chain 7435 opt_cr= 7436 case $build_os in 7437 mingw*) 7438 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7439 ;; 7440 esac 7441 7442 # Try without a prefix underscore, then with it. 7443 for ac_symprfx in "" "_"; do 7444 7445 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7446 symxfrm="\\1 $ac_symprfx\\2 \\2" 7447 7448 # Write the raw and C identifiers. 7449 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7450 # Fake it for dumpbin and say T for any non-static function, 7451 # D for any global variable and I for any imported variable. 7452 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7453 # which start with @ or ?. 7454 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7455 " {last_section=section; section=\$ 3};"\ 7456 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7457 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7458 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7459 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7460 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7461 " \$ 0!~/External *\|/{next};"\ 7462 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7463 " {if(hide[section]) next};"\ 7464 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7465 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7466 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7467 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7468 " ' prfx=^$ac_symprfx" 7469 else 7470 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7471 fi 7472 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7473 7474 # Check to see that the pipe works correctly. 7475 pipe_works=no 7476 7477 rm -f conftest* 7478 cat > conftest.$ac_ext <<_LT_EOF 7479 #ifdef __cplusplus 7480 extern "C" { 7481 #endif 7482 char nm_test_var; 7483 void nm_test_func(void); 7484 void nm_test_func(void){} 7485 #ifdef __cplusplus 7486 } 7487 #endif 7488 int main(){nm_test_var='a';nm_test_func();return(0);} 7489 _LT_EOF 7490 7491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7492 (eval $ac_compile) 2>&5 7493 ac_status=$? 7494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7495 test $ac_status = 0; }; then 7496 # Now try to grab the symbols. 7497 nlist=conftest.nm 7498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7499 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7500 ac_status=$? 7501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7502 test $ac_status = 0; } && test -s "$nlist"; then 7503 # Try sorting and uniquifying the output. 7504 if sort "$nlist" | uniq > "$nlist"T; then 7505 mv -f "$nlist"T "$nlist" 7506 else 7507 rm -f "$nlist"T 7508 fi 7509 7510 # Make sure that we snagged all the symbols we need. 7511 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7512 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7513 cat <<_LT_EOF > conftest.$ac_ext 7514 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7515 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7516 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7517 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7518 # define LT_DLSYM_CONST 7519 #elif defined __osf__ 7520 /* This system does not cope well with relocations in const data. */ 7521 # define LT_DLSYM_CONST 7522 #else 7523 # define LT_DLSYM_CONST const 7524 #endif 7525 7526 #ifdef __cplusplus 7527 extern "C" { 7528 #endif 7529 7530 _LT_EOF 7531 # Now generate the symbol file. 7532 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7533 7534 cat <<_LT_EOF >> conftest.$ac_ext 7535 7536 /* The mapping between symbol names and symbols. */ 7537 LT_DLSYM_CONST struct { 7538 const char *name; 7539 void *address; 7540 } 7541 lt__PROGRAM__LTX_preloaded_symbols[] = 7542 { 7543 { "@PROGRAM@", (void *) 0 }, 7544 _LT_EOF 7545 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7546 cat <<\_LT_EOF >> conftest.$ac_ext 7547 {0, (void *) 0} 7548 }; 7549 7550 /* This works around a problem in FreeBSD linker */ 7551 #ifdef FREEBSD_WORKAROUND 7552 static const void *lt_preloaded_setup() { 7553 return lt__PROGRAM__LTX_preloaded_symbols; 7554 } 7555 #endif 7556 7557 #ifdef __cplusplus 7558 } 7559 #endif 7560 _LT_EOF 7561 # Now try linking the two files. 7562 mv conftest.$ac_objext conftstm.$ac_objext 7563 lt_globsym_save_LIBS=$LIBS 7564 lt_globsym_save_CFLAGS=$CFLAGS 7565 LIBS=conftstm.$ac_objext 7566 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7568 (eval $ac_link) 2>&5 7569 ac_status=$? 7570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7571 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7572 pipe_works=yes 7573 fi 7574 LIBS=$lt_globsym_save_LIBS 7575 CFLAGS=$lt_globsym_save_CFLAGS 7576 else 7577 echo "cannot find nm_test_func in $nlist" >&5 7578 fi 7579 else 7580 echo "cannot find nm_test_var in $nlist" >&5 7581 fi 7582 else 7583 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7584 fi 7585 else 7586 echo "$progname: failed program was:" >&5 7587 cat conftest.$ac_ext >&5 7588 fi 7589 rm -rf conftest* conftst* 7590 7591 # Do not use the global_symbol_pipe unless it works. 7592 if test yes = "$pipe_works"; then 7593 break 7594 else 7595 lt_cv_sys_global_symbol_pipe= 7596 fi 7597 done 7598 ;; 7599 esac 7600 fi 7601 7602 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7603 lt_cv_sys_global_symbol_to_cdecl= 7604 fi 7605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7607 printf "%s\n" "failed" >&6; } 7608 else 7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7610 printf "%s\n" "ok" >&6; } 7611 fi 7612 7613 # Response file support. 7614 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7615 nm_file_list_spec='@' 7616 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7617 nm_file_list_spec='@' 7618 fi 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7657 printf %s "checking for sysroot... " >&6; } 7658 7659 # Check whether --with-sysroot was given. 7660 if test ${with_sysroot+y} 7661 then : 7662 withval=$with_sysroot; 7663 else case e in #( 7664 e) with_sysroot=no ;; 7665 esac 7666 fi 7667 7668 7669 lt_sysroot= 7670 case $with_sysroot in #( 7671 yes) 7672 if test yes = "$GCC"; then 7673 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7674 fi 7675 ;; #( 7676 /*) 7677 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7678 ;; #( 7679 no|'') 7680 ;; #( 7681 *) 7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7683 printf "%s\n" "$with_sysroot" >&6; } 7684 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7685 ;; 7686 esac 7687 7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7689 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7690 7691 7692 7693 7694 7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7696 printf %s "checking for a working dd... " >&6; } 7697 if test ${ac_cv_path_lt_DD+y} 7698 then : 7699 printf %s "(cached) " >&6 7700 else case e in #( 7701 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7702 cat conftest.i conftest.i >conftest2.i 7703 : ${lt_DD:=$DD} 7704 if test -z "$lt_DD"; then 7705 ac_path_lt_DD_found=false 7706 # Loop through the user's path and test for each of PROGNAME-LIST 7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7708 for as_dir in $PATH 7709 do 7710 IFS=$as_save_IFS 7711 case $as_dir in #((( 7712 '') as_dir=./ ;; 7713 */) ;; 7714 *) as_dir=$as_dir/ ;; 7715 esac 7716 for ac_prog in dd 7717 do 7718 for ac_exec_ext in '' $ac_executable_extensions; do 7719 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7720 as_fn_executable_p "$ac_path_lt_DD" || continue 7721 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7722 cmp -s conftest.i conftest.out \ 7723 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7724 fi 7725 $ac_path_lt_DD_found && break 3 7726 done 7727 done 7728 done 7729 IFS=$as_save_IFS 7730 if test -z "$ac_cv_path_lt_DD"; then 7731 : 7732 fi 7733 else 7734 ac_cv_path_lt_DD=$lt_DD 7735 fi 7736 7737 rm -f conftest.i conftest2.i conftest.out ;; 7738 esac 7739 fi 7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7741 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7742 7743 7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7745 printf %s "checking how to truncate binary pipes... " >&6; } 7746 if test ${lt_cv_truncate_bin+y} 7747 then : 7748 printf %s "(cached) " >&6 7749 else case e in #( 7750 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7751 cat conftest.i conftest.i >conftest2.i 7752 lt_cv_truncate_bin= 7753 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7754 cmp -s conftest.i conftest.out \ 7755 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7756 fi 7757 rm -f conftest.i conftest2.i conftest.out 7758 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7759 esac 7760 fi 7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7762 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7763 7764 7765 7766 7767 7768 7769 7770 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7771 func_cc_basename () 7772 { 7773 for cc_temp in $*""; do 7774 case $cc_temp in 7775 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7776 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7777 \-*) ;; 7778 *) break;; 7779 esac 7780 done 7781 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7782 } 7783 7784 # Check whether --enable-libtool-lock was given. 7785 if test ${enable_libtool_lock+y} 7786 then : 7787 enableval=$enable_libtool_lock; 7788 fi 7789 7790 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7791 7792 # Some flags need to be propagated to the compiler or linker for good 7793 # libtool support. 7794 case $host in 7795 ia64-*-hpux*) 7796 # Find out what ABI is being produced by ac_compile, and set mode 7797 # options accordingly. 7798 echo 'int i;' > conftest.$ac_ext 7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7800 (eval $ac_compile) 2>&5 7801 ac_status=$? 7802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7803 test $ac_status = 0; }; then 7804 case `$FILECMD conftest.$ac_objext` in 7805 *ELF-32*) 7806 HPUX_IA64_MODE=32 7807 ;; 7808 *ELF-64*) 7809 HPUX_IA64_MODE=64 7810 ;; 7811 esac 7812 fi 7813 rm -rf conftest* 7814 ;; 7815 *-*-irix6*) 7816 # Find out what ABI is being produced by ac_compile, and set linker 7817 # options accordingly. 7818 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7820 (eval $ac_compile) 2>&5 7821 ac_status=$? 7822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7823 test $ac_status = 0; }; then 7824 if test yes = "$lt_cv_prog_gnu_ld"; then 7825 case `$FILECMD conftest.$ac_objext` in 7826 *32-bit*) 7827 LD="${LD-ld} -melf32bsmip" 7828 ;; 7829 *N32*) 7830 LD="${LD-ld} -melf32bmipn32" 7831 ;; 7832 *64-bit*) 7833 LD="${LD-ld} -melf64bmip" 7834 ;; 7835 esac 7836 else 7837 case `$FILECMD conftest.$ac_objext` in 7838 *32-bit*) 7839 LD="${LD-ld} -32" 7840 ;; 7841 *N32*) 7842 LD="${LD-ld} -n32" 7843 ;; 7844 *64-bit*) 7845 LD="${LD-ld} -64" 7846 ;; 7847 esac 7848 fi 7849 fi 7850 rm -rf conftest* 7851 ;; 7852 7853 mips64*-*linux*) 7854 # Find out what ABI is being produced by ac_compile, and set linker 7855 # options accordingly. 7856 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7858 (eval $ac_compile) 2>&5 7859 ac_status=$? 7860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7861 test $ac_status = 0; }; then 7862 emul=elf 7863 case `$FILECMD conftest.$ac_objext` in 7864 *32-bit*) 7865 emul="${emul}32" 7866 ;; 7867 *64-bit*) 7868 emul="${emul}64" 7869 ;; 7870 esac 7871 case `$FILECMD conftest.$ac_objext` in 7872 *MSB*) 7873 emul="${emul}btsmip" 7874 ;; 7875 *LSB*) 7876 emul="${emul}ltsmip" 7877 ;; 7878 esac 7879 case `$FILECMD conftest.$ac_objext` in 7880 *N32*) 7881 emul="${emul}n32" 7882 ;; 7883 esac 7884 LD="${LD-ld} -m $emul" 7885 fi 7886 rm -rf conftest* 7887 ;; 7888 7889 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7890 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7891 # Find out what ABI is being produced by ac_compile, and set linker 7892 # options accordingly. Note that the listed cases only cover the 7893 # situations where additional linker options are needed (such as when 7894 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7895 # vice versa); the common cases where no linker options are needed do 7896 # not appear in the list. 7897 echo 'int i;' > conftest.$ac_ext 7898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7899 (eval $ac_compile) 2>&5 7900 ac_status=$? 7901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7902 test $ac_status = 0; }; then 7903 case `$FILECMD conftest.o` in 7904 *32-bit*) 7905 case $host in 7906 x86_64-*kfreebsd*-gnu) 7907 LD="${LD-ld} -m elf_i386_fbsd" 7908 ;; 7909 x86_64-*linux*) 7910 case `$FILECMD conftest.o` in 7911 *x86-64*) 7912 LD="${LD-ld} -m elf32_x86_64" 7913 ;; 7914 *) 7915 LD="${LD-ld} -m elf_i386" 7916 ;; 7917 esac 7918 ;; 7919 powerpc64le-*linux*) 7920 LD="${LD-ld} -m elf32lppclinux" 7921 ;; 7922 powerpc64-*linux*) 7923 LD="${LD-ld} -m elf32ppclinux" 7924 ;; 7925 s390x-*linux*) 7926 LD="${LD-ld} -m elf_s390" 7927 ;; 7928 sparc64-*linux*) 7929 LD="${LD-ld} -m elf32_sparc" 7930 ;; 7931 esac 7932 ;; 7933 *64-bit*) 7934 case $host in 7935 x86_64-*kfreebsd*-gnu) 7936 LD="${LD-ld} -m elf_x86_64_fbsd" 7937 ;; 7938 x86_64-*linux*) 7939 LD="${LD-ld} -m elf_x86_64" 7940 ;; 7941 powerpcle-*linux*) 7942 LD="${LD-ld} -m elf64lppc" 7943 ;; 7944 powerpc-*linux*) 7945 LD="${LD-ld} -m elf64ppc" 7946 ;; 7947 s390*-*linux*|s390*-*tpf*) 7948 LD="${LD-ld} -m elf64_s390" 7949 ;; 7950 sparc*-*linux*) 7951 LD="${LD-ld} -m elf64_sparc" 7952 ;; 7953 esac 7954 ;; 7955 esac 7956 fi 7957 rm -rf conftest* 7958 ;; 7959 7960 *-*-sco3.2v5*) 7961 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7962 SAVE_CFLAGS=$CFLAGS 7963 CFLAGS="$CFLAGS -belf" 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7965 printf %s "checking whether the C compiler needs -belf... " >&6; } 7966 if test ${lt_cv_cc_needs_belf+y} 7967 then : 7968 printf %s "(cached) " >&6 7969 else case e in #( 7970 e) ac_ext=c 7971 ac_cpp='$CPP $CPPFLAGS' 7972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7974 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7975 7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7977 /* end confdefs.h. */ 7978 7979 int 7980 main (void) 7981 { 7982 7983 ; 7984 return 0; 7985 } 7986 _ACEOF 7987 if ac_fn_c_try_link "$LINENO" 7988 then : 7989 lt_cv_cc_needs_belf=yes 7990 else case e in #( 7991 e) lt_cv_cc_needs_belf=no ;; 7992 esac 7993 fi 7994 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7995 conftest$ac_exeext conftest.$ac_ext 7996 ac_ext=c 7997 ac_cpp='$CPP $CPPFLAGS' 7998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8000 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8001 ;; 8002 esac 8003 fi 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8005 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8006 if test yes != "$lt_cv_cc_needs_belf"; then 8007 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8008 CFLAGS=$SAVE_CFLAGS 8009 fi 8010 ;; 8011 *-*solaris*) 8012 # Find out what ABI is being produced by ac_compile, and set linker 8013 # options accordingly. 8014 echo 'int i;' > conftest.$ac_ext 8015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8016 (eval $ac_compile) 2>&5 8017 ac_status=$? 8018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8019 test $ac_status = 0; }; then 8020 case `$FILECMD conftest.o` in 8021 *64-bit*) 8022 case $lt_cv_prog_gnu_ld in 8023 yes*) 8024 case $host in 8025 i?86-*-solaris*|x86_64-*-solaris*) 8026 LD="${LD-ld} -m elf_x86_64" 8027 ;; 8028 sparc*-*-solaris*) 8029 LD="${LD-ld} -m elf64_sparc" 8030 ;; 8031 esac 8032 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8033 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8034 LD=${LD-ld}_sol2 8035 fi 8036 ;; 8037 *) 8038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8039 LD="${LD-ld} -64" 8040 fi 8041 ;; 8042 esac 8043 ;; 8044 esac 8045 fi 8046 rm -rf conftest* 8047 ;; 8048 esac 8049 8050 need_locks=$enable_libtool_lock 8051 8052 if test -n "$ac_tool_prefix"; then 8053 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8054 set dummy ${ac_tool_prefix}mt; ac_word=$2 8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8056 printf %s "checking for $ac_word... " >&6; } 8057 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8058 then : 8059 printf %s "(cached) " >&6 8060 else case e in #( 8061 e) if test -n "$MANIFEST_TOOL"; then 8062 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8063 else 8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8065 for as_dir in $PATH 8066 do 8067 IFS=$as_save_IFS 8068 case $as_dir in #((( 8069 '') as_dir=./ ;; 8070 */) ;; 8071 *) as_dir=$as_dir/ ;; 8072 esac 8073 for ac_exec_ext in '' $ac_executable_extensions; do 8074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8075 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8077 break 2 8078 fi 8079 done 8080 done 8081 IFS=$as_save_IFS 8082 8083 fi ;; 8084 esac 8085 fi 8086 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8087 if test -n "$MANIFEST_TOOL"; then 8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8089 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8090 else 8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8092 printf "%s\n" "no" >&6; } 8093 fi 8094 8095 8096 fi 8097 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8098 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8099 # Extract the first word of "mt", so it can be a program name with args. 8100 set dummy mt; ac_word=$2 8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8102 printf %s "checking for $ac_word... " >&6; } 8103 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8104 then : 8105 printf %s "(cached) " >&6 8106 else case e in #( 8107 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8108 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8109 else 8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8111 for as_dir in $PATH 8112 do 8113 IFS=$as_save_IFS 8114 case $as_dir in #((( 8115 '') as_dir=./ ;; 8116 */) ;; 8117 *) as_dir=$as_dir/ ;; 8118 esac 8119 for ac_exec_ext in '' $ac_executable_extensions; do 8120 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8121 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8123 break 2 8124 fi 8125 done 8126 done 8127 IFS=$as_save_IFS 8128 8129 fi ;; 8130 esac 8131 fi 8132 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8133 if test -n "$ac_ct_MANIFEST_TOOL"; then 8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8135 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8136 else 8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8138 printf "%s\n" "no" >&6; } 8139 fi 8140 8141 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8142 MANIFEST_TOOL=":" 8143 else 8144 case $cross_compiling:$ac_tool_warned in 8145 yes:) 8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8147 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8148 ac_tool_warned=yes ;; 8149 esac 8150 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8151 fi 8152 else 8153 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8154 fi 8155 8156 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8158 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8159 if test ${lt_cv_path_mainfest_tool+y} 8160 then : 8161 printf %s "(cached) " >&6 8162 else case e in #( 8163 e) lt_cv_path_mainfest_tool=no 8164 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8165 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8166 cat conftest.err >&5 8167 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8168 lt_cv_path_mainfest_tool=yes 8169 fi 8170 rm -f conftest* ;; 8171 esac 8172 fi 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8174 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8175 if test yes != "$lt_cv_path_mainfest_tool"; then 8176 MANIFEST_TOOL=: 8177 fi 8178 8179 8180 8181 8182 8183 8184 case $host_os in 8185 rhapsody* | darwin*) 8186 if test -n "$ac_tool_prefix"; then 8187 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8188 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8190 printf %s "checking for $ac_word... " >&6; } 8191 if test ${ac_cv_prog_DSYMUTIL+y} 8192 then : 8193 printf %s "(cached) " >&6 8194 else case e in #( 8195 e) if test -n "$DSYMUTIL"; then 8196 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8197 else 8198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8199 for as_dir in $PATH 8200 do 8201 IFS=$as_save_IFS 8202 case $as_dir in #((( 8203 '') as_dir=./ ;; 8204 */) ;; 8205 *) as_dir=$as_dir/ ;; 8206 esac 8207 for ac_exec_ext in '' $ac_executable_extensions; do 8208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8209 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8211 break 2 8212 fi 8213 done 8214 done 8215 IFS=$as_save_IFS 8216 8217 fi ;; 8218 esac 8219 fi 8220 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8221 if test -n "$DSYMUTIL"; then 8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8223 printf "%s\n" "$DSYMUTIL" >&6; } 8224 else 8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8226 printf "%s\n" "no" >&6; } 8227 fi 8228 8229 8230 fi 8231 if test -z "$ac_cv_prog_DSYMUTIL"; then 8232 ac_ct_DSYMUTIL=$DSYMUTIL 8233 # Extract the first word of "dsymutil", so it can be a program name with args. 8234 set dummy dsymutil; ac_word=$2 8235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8236 printf %s "checking for $ac_word... " >&6; } 8237 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8238 then : 8239 printf %s "(cached) " >&6 8240 else case e in #( 8241 e) if test -n "$ac_ct_DSYMUTIL"; then 8242 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8243 else 8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8245 for as_dir in $PATH 8246 do 8247 IFS=$as_save_IFS 8248 case $as_dir in #((( 8249 '') as_dir=./ ;; 8250 */) ;; 8251 *) as_dir=$as_dir/ ;; 8252 esac 8253 for ac_exec_ext in '' $ac_executable_extensions; do 8254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8255 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8257 break 2 8258 fi 8259 done 8260 done 8261 IFS=$as_save_IFS 8262 8263 fi ;; 8264 esac 8265 fi 8266 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8267 if test -n "$ac_ct_DSYMUTIL"; then 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8269 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8270 else 8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8272 printf "%s\n" "no" >&6; } 8273 fi 8274 8275 if test "x$ac_ct_DSYMUTIL" = x; then 8276 DSYMUTIL=":" 8277 else 8278 case $cross_compiling:$ac_tool_warned in 8279 yes:) 8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8281 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8282 ac_tool_warned=yes ;; 8283 esac 8284 DSYMUTIL=$ac_ct_DSYMUTIL 8285 fi 8286 else 8287 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8288 fi 8289 8290 if test -n "$ac_tool_prefix"; then 8291 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8292 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8294 printf %s "checking for $ac_word... " >&6; } 8295 if test ${ac_cv_prog_NMEDIT+y} 8296 then : 8297 printf %s "(cached) " >&6 8298 else case e in #( 8299 e) if test -n "$NMEDIT"; then 8300 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8301 else 8302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8303 for as_dir in $PATH 8304 do 8305 IFS=$as_save_IFS 8306 case $as_dir in #((( 8307 '') as_dir=./ ;; 8308 */) ;; 8309 *) as_dir=$as_dir/ ;; 8310 esac 8311 for ac_exec_ext in '' $ac_executable_extensions; do 8312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8313 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8315 break 2 8316 fi 8317 done 8318 done 8319 IFS=$as_save_IFS 8320 8321 fi ;; 8322 esac 8323 fi 8324 NMEDIT=$ac_cv_prog_NMEDIT 8325 if test -n "$NMEDIT"; then 8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8327 printf "%s\n" "$NMEDIT" >&6; } 8328 else 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8330 printf "%s\n" "no" >&6; } 8331 fi 8332 8333 8334 fi 8335 if test -z "$ac_cv_prog_NMEDIT"; then 8336 ac_ct_NMEDIT=$NMEDIT 8337 # Extract the first word of "nmedit", so it can be a program name with args. 8338 set dummy nmedit; ac_word=$2 8339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8340 printf %s "checking for $ac_word... " >&6; } 8341 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8342 then : 8343 printf %s "(cached) " >&6 8344 else case e in #( 8345 e) if test -n "$ac_ct_NMEDIT"; then 8346 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8347 else 8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8349 for as_dir in $PATH 8350 do 8351 IFS=$as_save_IFS 8352 case $as_dir in #((( 8353 '') as_dir=./ ;; 8354 */) ;; 8355 *) as_dir=$as_dir/ ;; 8356 esac 8357 for ac_exec_ext in '' $ac_executable_extensions; do 8358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8359 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8361 break 2 8362 fi 8363 done 8364 done 8365 IFS=$as_save_IFS 8366 8367 fi ;; 8368 esac 8369 fi 8370 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8371 if test -n "$ac_ct_NMEDIT"; then 8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8373 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8374 else 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8376 printf "%s\n" "no" >&6; } 8377 fi 8378 8379 if test "x$ac_ct_NMEDIT" = x; then 8380 NMEDIT=":" 8381 else 8382 case $cross_compiling:$ac_tool_warned in 8383 yes:) 8384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8385 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8386 ac_tool_warned=yes ;; 8387 esac 8388 NMEDIT=$ac_ct_NMEDIT 8389 fi 8390 else 8391 NMEDIT="$ac_cv_prog_NMEDIT" 8392 fi 8393 8394 if test -n "$ac_tool_prefix"; then 8395 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8396 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8398 printf %s "checking for $ac_word... " >&6; } 8399 if test ${ac_cv_prog_LIPO+y} 8400 then : 8401 printf %s "(cached) " >&6 8402 else case e in #( 8403 e) if test -n "$LIPO"; then 8404 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8405 else 8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8407 for as_dir in $PATH 8408 do 8409 IFS=$as_save_IFS 8410 case $as_dir in #((( 8411 '') as_dir=./ ;; 8412 */) ;; 8413 *) as_dir=$as_dir/ ;; 8414 esac 8415 for ac_exec_ext in '' $ac_executable_extensions; do 8416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8417 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8419 break 2 8420 fi 8421 done 8422 done 8423 IFS=$as_save_IFS 8424 8425 fi ;; 8426 esac 8427 fi 8428 LIPO=$ac_cv_prog_LIPO 8429 if test -n "$LIPO"; then 8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8431 printf "%s\n" "$LIPO" >&6; } 8432 else 8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8434 printf "%s\n" "no" >&6; } 8435 fi 8436 8437 8438 fi 8439 if test -z "$ac_cv_prog_LIPO"; then 8440 ac_ct_LIPO=$LIPO 8441 # Extract the first word of "lipo", so it can be a program name with args. 8442 set dummy lipo; ac_word=$2 8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8444 printf %s "checking for $ac_word... " >&6; } 8445 if test ${ac_cv_prog_ac_ct_LIPO+y} 8446 then : 8447 printf %s "(cached) " >&6 8448 else case e in #( 8449 e) if test -n "$ac_ct_LIPO"; then 8450 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8451 else 8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8453 for as_dir in $PATH 8454 do 8455 IFS=$as_save_IFS 8456 case $as_dir in #((( 8457 '') as_dir=./ ;; 8458 */) ;; 8459 *) as_dir=$as_dir/ ;; 8460 esac 8461 for ac_exec_ext in '' $ac_executable_extensions; do 8462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8463 ac_cv_prog_ac_ct_LIPO="lipo" 8464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8465 break 2 8466 fi 8467 done 8468 done 8469 IFS=$as_save_IFS 8470 8471 fi ;; 8472 esac 8473 fi 8474 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8475 if test -n "$ac_ct_LIPO"; then 8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8477 printf "%s\n" "$ac_ct_LIPO" >&6; } 8478 else 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8480 printf "%s\n" "no" >&6; } 8481 fi 8482 8483 if test "x$ac_ct_LIPO" = x; then 8484 LIPO=":" 8485 else 8486 case $cross_compiling:$ac_tool_warned in 8487 yes:) 8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8489 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8490 ac_tool_warned=yes ;; 8491 esac 8492 LIPO=$ac_ct_LIPO 8493 fi 8494 else 8495 LIPO="$ac_cv_prog_LIPO" 8496 fi 8497 8498 if test -n "$ac_tool_prefix"; then 8499 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8500 set dummy ${ac_tool_prefix}otool; ac_word=$2 8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8502 printf %s "checking for $ac_word... " >&6; } 8503 if test ${ac_cv_prog_OTOOL+y} 8504 then : 8505 printf %s "(cached) " >&6 8506 else case e in #( 8507 e) if test -n "$OTOOL"; then 8508 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8509 else 8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8511 for as_dir in $PATH 8512 do 8513 IFS=$as_save_IFS 8514 case $as_dir in #((( 8515 '') as_dir=./ ;; 8516 */) ;; 8517 *) as_dir=$as_dir/ ;; 8518 esac 8519 for ac_exec_ext in '' $ac_executable_extensions; do 8520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8521 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8523 break 2 8524 fi 8525 done 8526 done 8527 IFS=$as_save_IFS 8528 8529 fi ;; 8530 esac 8531 fi 8532 OTOOL=$ac_cv_prog_OTOOL 8533 if test -n "$OTOOL"; then 8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8535 printf "%s\n" "$OTOOL" >&6; } 8536 else 8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8538 printf "%s\n" "no" >&6; } 8539 fi 8540 8541 8542 fi 8543 if test -z "$ac_cv_prog_OTOOL"; then 8544 ac_ct_OTOOL=$OTOOL 8545 # Extract the first word of "otool", so it can be a program name with args. 8546 set dummy otool; ac_word=$2 8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8548 printf %s "checking for $ac_word... " >&6; } 8549 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8550 then : 8551 printf %s "(cached) " >&6 8552 else case e in #( 8553 e) if test -n "$ac_ct_OTOOL"; then 8554 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8555 else 8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8557 for as_dir in $PATH 8558 do 8559 IFS=$as_save_IFS 8560 case $as_dir in #((( 8561 '') as_dir=./ ;; 8562 */) ;; 8563 *) as_dir=$as_dir/ ;; 8564 esac 8565 for ac_exec_ext in '' $ac_executable_extensions; do 8566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8567 ac_cv_prog_ac_ct_OTOOL="otool" 8568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8569 break 2 8570 fi 8571 done 8572 done 8573 IFS=$as_save_IFS 8574 8575 fi ;; 8576 esac 8577 fi 8578 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8579 if test -n "$ac_ct_OTOOL"; then 8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8581 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8582 else 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8584 printf "%s\n" "no" >&6; } 8585 fi 8586 8587 if test "x$ac_ct_OTOOL" = x; then 8588 OTOOL=":" 8589 else 8590 case $cross_compiling:$ac_tool_warned in 8591 yes:) 8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8593 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8594 ac_tool_warned=yes ;; 8595 esac 8596 OTOOL=$ac_ct_OTOOL 8597 fi 8598 else 8599 OTOOL="$ac_cv_prog_OTOOL" 8600 fi 8601 8602 if test -n "$ac_tool_prefix"; then 8603 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8604 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8606 printf %s "checking for $ac_word... " >&6; } 8607 if test ${ac_cv_prog_OTOOL64+y} 8608 then : 8609 printf %s "(cached) " >&6 8610 else case e in #( 8611 e) if test -n "$OTOOL64"; then 8612 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8613 else 8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8615 for as_dir in $PATH 8616 do 8617 IFS=$as_save_IFS 8618 case $as_dir in #((( 8619 '') as_dir=./ ;; 8620 */) ;; 8621 *) as_dir=$as_dir/ ;; 8622 esac 8623 for ac_exec_ext in '' $ac_executable_extensions; do 8624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8625 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8627 break 2 8628 fi 8629 done 8630 done 8631 IFS=$as_save_IFS 8632 8633 fi ;; 8634 esac 8635 fi 8636 OTOOL64=$ac_cv_prog_OTOOL64 8637 if test -n "$OTOOL64"; then 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8639 printf "%s\n" "$OTOOL64" >&6; } 8640 else 8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8642 printf "%s\n" "no" >&6; } 8643 fi 8644 8645 8646 fi 8647 if test -z "$ac_cv_prog_OTOOL64"; then 8648 ac_ct_OTOOL64=$OTOOL64 8649 # Extract the first word of "otool64", so it can be a program name with args. 8650 set dummy otool64; ac_word=$2 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8652 printf %s "checking for $ac_word... " >&6; } 8653 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8654 then : 8655 printf %s "(cached) " >&6 8656 else case e in #( 8657 e) if test -n "$ac_ct_OTOOL64"; then 8658 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8659 else 8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8661 for as_dir in $PATH 8662 do 8663 IFS=$as_save_IFS 8664 case $as_dir in #((( 8665 '') as_dir=./ ;; 8666 */) ;; 8667 *) as_dir=$as_dir/ ;; 8668 esac 8669 for ac_exec_ext in '' $ac_executable_extensions; do 8670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8671 ac_cv_prog_ac_ct_OTOOL64="otool64" 8672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8673 break 2 8674 fi 8675 done 8676 done 8677 IFS=$as_save_IFS 8678 8679 fi ;; 8680 esac 8681 fi 8682 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8683 if test -n "$ac_ct_OTOOL64"; then 8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8685 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8686 else 8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8688 printf "%s\n" "no" >&6; } 8689 fi 8690 8691 if test "x$ac_ct_OTOOL64" = x; then 8692 OTOOL64=":" 8693 else 8694 case $cross_compiling:$ac_tool_warned in 8695 yes:) 8696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8698 ac_tool_warned=yes ;; 8699 esac 8700 OTOOL64=$ac_ct_OTOOL64 8701 fi 8702 else 8703 OTOOL64="$ac_cv_prog_OTOOL64" 8704 fi 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8733 printf %s "checking for -single_module linker flag... " >&6; } 8734 if test ${lt_cv_apple_cc_single_mod+y} 8735 then : 8736 printf %s "(cached) " >&6 8737 else case e in #( 8738 e) lt_cv_apple_cc_single_mod=no 8739 if test -z "$LT_MULTI_MODULE"; then 8740 # By default we will add the -single_module flag. You can override 8741 # by either setting the environment variable LT_MULTI_MODULE 8742 # non-empty at configure time, or by adding -multi_module to the 8743 # link flags. 8744 rm -rf libconftest.dylib* 8745 echo "int foo(void){return 1;}" > conftest.c 8746 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8747 -dynamiclib -Wl,-single_module conftest.c" >&5 8748 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8749 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8750 _lt_result=$? 8751 # If there is a non-empty error log, and "single_module" 8752 # appears in it, assume the flag caused a linker warning 8753 if test -s conftest.err && $GREP single_module conftest.err; then 8754 cat conftest.err >&5 8755 # Otherwise, if the output was created with a 0 exit code from 8756 # the compiler, it worked. 8757 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8758 lt_cv_apple_cc_single_mod=yes 8759 else 8760 cat conftest.err >&5 8761 fi 8762 rm -rf libconftest.dylib* 8763 rm -f conftest.* 8764 fi ;; 8765 esac 8766 fi 8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8768 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8769 8770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8771 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8772 if test ${lt_cv_ld_exported_symbols_list+y} 8773 then : 8774 printf %s "(cached) " >&6 8775 else case e in #( 8776 e) lt_cv_ld_exported_symbols_list=no 8777 save_LDFLAGS=$LDFLAGS 8778 echo "_main" > conftest.sym 8779 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8781 /* end confdefs.h. */ 8782 8783 int 8784 main (void) 8785 { 8786 8787 ; 8788 return 0; 8789 } 8790 _ACEOF 8791 if ac_fn_c_try_link "$LINENO" 8792 then : 8793 lt_cv_ld_exported_symbols_list=yes 8794 else case e in #( 8795 e) lt_cv_ld_exported_symbols_list=no ;; 8796 esac 8797 fi 8798 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8799 conftest$ac_exeext conftest.$ac_ext 8800 LDFLAGS=$save_LDFLAGS 8801 ;; 8802 esac 8803 fi 8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8805 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8806 8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8808 printf %s "checking for -force_load linker flag... " >&6; } 8809 if test ${lt_cv_ld_force_load+y} 8810 then : 8811 printf %s "(cached) " >&6 8812 else case e in #( 8813 e) lt_cv_ld_force_load=no 8814 cat > conftest.c << _LT_EOF 8815 int forced_loaded() { return 2;} 8816 _LT_EOF 8817 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8818 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8819 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8820 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8821 echo "$RANLIB libconftest.a" >&5 8822 $RANLIB libconftest.a 2>&5 8823 cat > conftest.c << _LT_EOF 8824 int main() { return 0;} 8825 _LT_EOF 8826 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8827 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8828 _lt_result=$? 8829 if test -s conftest.err && $GREP force_load conftest.err; then 8830 cat conftest.err >&5 8831 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8832 lt_cv_ld_force_load=yes 8833 else 8834 cat conftest.err >&5 8835 fi 8836 rm -f conftest.err libconftest.a conftest conftest.c 8837 rm -rf conftest.dSYM 8838 ;; 8839 esac 8840 fi 8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8842 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8843 case $host_os in 8844 rhapsody* | darwin1.[012]) 8845 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8846 darwin1.*) 8847 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8848 darwin*) 8849 case $MACOSX_DEPLOYMENT_TARGET,$host in 8850 10.[012],*|,*powerpc*-darwin[5-8]*) 8851 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8852 *) 8853 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8854 esac 8855 ;; 8856 esac 8857 if test yes = "$lt_cv_apple_cc_single_mod"; then 8858 _lt_dar_single_mod='$single_module' 8859 fi 8860 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8861 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8862 else 8863 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8864 fi 8865 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8866 _lt_dsymutil='~$DSYMUTIL $lib || :' 8867 else 8868 _lt_dsymutil= 8869 fi 8870 ;; 8871 esac 8872 8873 # func_munge_path_list VARIABLE PATH 8874 # ----------------------------------- 8875 # VARIABLE is name of variable containing _space_ separated list of 8876 # directories to be munged by the contents of PATH, which is string 8877 # having a format: 8878 # "DIR[:DIR]:" 8879 # string "DIR[ DIR]" will be prepended to VARIABLE 8880 # ":DIR[:DIR]" 8881 # string "DIR[ DIR]" will be appended to VARIABLE 8882 # "DIRP[:DIRP]::[DIRA:]DIRA" 8883 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8884 # "DIRA[ DIRA]" will be appended to VARIABLE 8885 # "DIR[:DIR]" 8886 # VARIABLE will be replaced by "DIR[ DIR]" 8887 func_munge_path_list () 8888 { 8889 case x$2 in 8890 x) 8891 ;; 8892 *:) 8893 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8894 ;; 8895 x:*) 8896 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8897 ;; 8898 *::*) 8899 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8900 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8901 ;; 8902 *) 8903 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8904 ;; 8905 esac 8906 } 8907 8908 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8909 " 8910 if test "x$ac_cv_header_dlfcn_h" = xyes 8911 then : 8912 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8913 8914 fi 8915 8916 8917 8918 8919 8920 # Set options 8921 8922 8923 8924 enable_dlopen=no 8925 8926 8927 enable_win32_dll=no 8928 8929 8930 # Check whether --enable-shared was given. 8931 if test ${enable_shared+y} 8932 then : 8933 enableval=$enable_shared; p=${PACKAGE-default} 8934 case $enableval in 8935 yes) enable_shared=yes ;; 8936 no) enable_shared=no ;; 8937 *) 8938 enable_shared=no 8939 # Look at the argument we got. We use all the common list separators. 8940 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8941 for pkg in $enableval; do 8942 IFS=$lt_save_ifs 8943 if test "X$pkg" = "X$p"; then 8944 enable_shared=yes 8945 fi 8946 done 8947 IFS=$lt_save_ifs 8948 ;; 8949 esac 8950 else case e in #( 8951 e) enable_shared=yes ;; 8952 esac 8953 fi 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 # Check whether --enable-static was given. 8964 if test ${enable_static+y} 8965 then : 8966 enableval=$enable_static; p=${PACKAGE-default} 8967 case $enableval in 8968 yes) enable_static=yes ;; 8969 no) enable_static=no ;; 8970 *) 8971 enable_static=no 8972 # Look at the argument we got. We use all the common list separators. 8973 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8974 for pkg in $enableval; do 8975 IFS=$lt_save_ifs 8976 if test "X$pkg" = "X$p"; then 8977 enable_static=yes 8978 fi 8979 done 8980 IFS=$lt_save_ifs 8981 ;; 8982 esac 8983 else case e in #( 8984 e) enable_static=yes ;; 8985 esac 8986 fi 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 # Check whether --with-pic was given. 8998 if test ${with_pic+y} 8999 then : 9000 withval=$with_pic; lt_p=${PACKAGE-default} 9001 case $withval in 9002 yes|no) pic_mode=$withval ;; 9003 *) 9004 pic_mode=default 9005 # Look at the argument we got. We use all the common list separators. 9006 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9007 for lt_pkg in $withval; do 9008 IFS=$lt_save_ifs 9009 if test "X$lt_pkg" = "X$lt_p"; then 9010 pic_mode=yes 9011 fi 9012 done 9013 IFS=$lt_save_ifs 9014 ;; 9015 esac 9016 else case e in #( 9017 e) pic_mode=default ;; 9018 esac 9019 fi 9020 9021 9022 9023 9024 9025 9026 9027 9028 # Check whether --enable-fast-install was given. 9029 if test ${enable_fast_install+y} 9030 then : 9031 enableval=$enable_fast_install; p=${PACKAGE-default} 9032 case $enableval in 9033 yes) enable_fast_install=yes ;; 9034 no) enable_fast_install=no ;; 9035 *) 9036 enable_fast_install=no 9037 # Look at the argument we got. We use all the common list separators. 9038 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9039 for pkg in $enableval; do 9040 IFS=$lt_save_ifs 9041 if test "X$pkg" = "X$p"; then 9042 enable_fast_install=yes 9043 fi 9044 done 9045 IFS=$lt_save_ifs 9046 ;; 9047 esac 9048 else case e in #( 9049 e) enable_fast_install=yes ;; 9050 esac 9051 fi 9052 9053 9054 9055 9056 9057 9058 9059 9060 shared_archive_member_spec= 9061 case $host,$enable_shared in 9062 power*-*-aix[5-9]*,yes) 9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9064 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9065 9066 # Check whether --with-aix-soname was given. 9067 if test ${with_aix_soname+y} 9068 then : 9069 withval=$with_aix_soname; case $withval in 9070 aix|svr4|both) 9071 ;; 9072 *) 9073 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9074 ;; 9075 esac 9076 lt_cv_with_aix_soname=$with_aix_soname 9077 else case e in #( 9078 e) if test ${lt_cv_with_aix_soname+y} 9079 then : 9080 printf %s "(cached) " >&6 9081 else case e in #( 9082 e) lt_cv_with_aix_soname=aix ;; 9083 esac 9084 fi 9085 9086 with_aix_soname=$lt_cv_with_aix_soname ;; 9087 esac 9088 fi 9089 9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9091 printf "%s\n" "$with_aix_soname" >&6; } 9092 if test aix != "$with_aix_soname"; then 9093 # For the AIX way of multilib, we name the shared archive member 9094 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9095 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9096 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9097 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9098 if test 64 = "${OBJECT_MODE-32}"; then 9099 shared_archive_member_spec=shr_64 9100 else 9101 shared_archive_member_spec=shr 9102 fi 9103 fi 9104 ;; 9105 *) 9106 with_aix_soname=aix 9107 ;; 9108 esac 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 # This can be used to rebuild libtool when needed 9120 LIBTOOL_DEPS=$ltmain 9121 9122 # Always use our own libtool. 9123 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 test -z "$LN_S" && LN_S="ln -s" 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 if test -n "${ZSH_VERSION+set}"; then 9170 setopt NO_GLOB_SUBST 9171 fi 9172 9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9174 printf %s "checking for objdir... " >&6; } 9175 if test ${lt_cv_objdir+y} 9176 then : 9177 printf %s "(cached) " >&6 9178 else case e in #( 9179 e) rm -f .libs 2>/dev/null 9180 mkdir .libs 2>/dev/null 9181 if test -d .libs; then 9182 lt_cv_objdir=.libs 9183 else 9184 # MS-DOS does not allow filenames that begin with a dot. 9185 lt_cv_objdir=_libs 9186 fi 9187 rmdir .libs 2>/dev/null ;; 9188 esac 9189 fi 9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9191 printf "%s\n" "$lt_cv_objdir" >&6; } 9192 objdir=$lt_cv_objdir 9193 9194 9195 9196 9197 9198 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9199 9200 9201 9202 9203 case $host_os in 9204 aix3*) 9205 # AIX sometimes has problems with the GCC collect2 program. For some 9206 # reason, if we set the COLLECT_NAMES environment variable, the problems 9207 # vanish in a puff of smoke. 9208 if test set != "${COLLECT_NAMES+set}"; then 9209 COLLECT_NAMES= 9210 export COLLECT_NAMES 9211 fi 9212 ;; 9213 esac 9214 9215 # Global variables: 9216 ofile=libtool 9217 can_build_shared=yes 9218 9219 # All known linkers require a '.a' archive for static linking (except MSVC and 9220 # ICC, which need '.lib'). 9221 libext=a 9222 9223 with_gnu_ld=$lt_cv_prog_gnu_ld 9224 9225 old_CC=$CC 9226 old_CFLAGS=$CFLAGS 9227 9228 # Set sane defaults for various variables 9229 test -z "$CC" && CC=cc 9230 test -z "$LTCC" && LTCC=$CC 9231 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9232 test -z "$LD" && LD=ld 9233 test -z "$ac_objext" && ac_objext=o 9234 9235 func_cc_basename $compiler 9236 cc_basename=$func_cc_basename_result 9237 9238 9239 # Only perform the check for file, if the check method requires it 9240 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9241 case $deplibs_check_method in 9242 file_magic*) 9243 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9245 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9246 if test ${lt_cv_path_MAGIC_CMD+y} 9247 then : 9248 printf %s "(cached) " >&6 9249 else case e in #( 9250 e) case $MAGIC_CMD in 9251 [\\/*] | ?:[\\/]*) 9252 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9253 ;; 9254 *) 9255 lt_save_MAGIC_CMD=$MAGIC_CMD 9256 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9257 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9258 for ac_dir in $ac_dummy; do 9259 IFS=$lt_save_ifs 9260 test -z "$ac_dir" && ac_dir=. 9261 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9262 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9263 if test -n "$file_magic_test_file"; then 9264 case $deplibs_check_method in 9265 "file_magic "*) 9266 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9267 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9268 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9269 $EGREP "$file_magic_regex" > /dev/null; then 9270 : 9271 else 9272 cat <<_LT_EOF 1>&2 9273 9274 *** Warning: the command libtool uses to detect shared libraries, 9275 *** $file_magic_cmd, produces output that libtool cannot recognize. 9276 *** The result is that libtool may fail to recognize shared libraries 9277 *** as such. This will affect the creation of libtool libraries that 9278 *** depend on shared libraries, but programs linked with such libtool 9279 *** libraries will work regardless of this problem. Nevertheless, you 9280 *** may want to report the problem to your system manager and/or to 9281 *** bug-libtool@gnu.org 9282 9283 _LT_EOF 9284 fi ;; 9285 esac 9286 fi 9287 break 9288 fi 9289 done 9290 IFS=$lt_save_ifs 9291 MAGIC_CMD=$lt_save_MAGIC_CMD 9292 ;; 9293 esac ;; 9294 esac 9295 fi 9296 9297 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9298 if test -n "$MAGIC_CMD"; then 9299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9300 printf "%s\n" "$MAGIC_CMD" >&6; } 9301 else 9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9303 printf "%s\n" "no" >&6; } 9304 fi 9305 9306 9307 9308 9309 9310 if test -z "$lt_cv_path_MAGIC_CMD"; then 9311 if test -n "$ac_tool_prefix"; then 9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9313 printf %s "checking for file... " >&6; } 9314 if test ${lt_cv_path_MAGIC_CMD+y} 9315 then : 9316 printf %s "(cached) " >&6 9317 else case e in #( 9318 e) case $MAGIC_CMD in 9319 [\\/*] | ?:[\\/]*) 9320 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9321 ;; 9322 *) 9323 lt_save_MAGIC_CMD=$MAGIC_CMD 9324 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9325 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9326 for ac_dir in $ac_dummy; do 9327 IFS=$lt_save_ifs 9328 test -z "$ac_dir" && ac_dir=. 9329 if test -f "$ac_dir/file"; then 9330 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9331 if test -n "$file_magic_test_file"; then 9332 case $deplibs_check_method in 9333 "file_magic "*) 9334 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9335 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9336 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9337 $EGREP "$file_magic_regex" > /dev/null; then 9338 : 9339 else 9340 cat <<_LT_EOF 1>&2 9341 9342 *** Warning: the command libtool uses to detect shared libraries, 9343 *** $file_magic_cmd, produces output that libtool cannot recognize. 9344 *** The result is that libtool may fail to recognize shared libraries 9345 *** as such. This will affect the creation of libtool libraries that 9346 *** depend on shared libraries, but programs linked with such libtool 9347 *** libraries will work regardless of this problem. Nevertheless, you 9348 *** may want to report the problem to your system manager and/or to 9349 *** bug-libtool@gnu.org 9350 9351 _LT_EOF 9352 fi ;; 9353 esac 9354 fi 9355 break 9356 fi 9357 done 9358 IFS=$lt_save_ifs 9359 MAGIC_CMD=$lt_save_MAGIC_CMD 9360 ;; 9361 esac ;; 9362 esac 9363 fi 9364 9365 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9366 if test -n "$MAGIC_CMD"; then 9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9368 printf "%s\n" "$MAGIC_CMD" >&6; } 9369 else 9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9371 printf "%s\n" "no" >&6; } 9372 fi 9373 9374 9375 else 9376 MAGIC_CMD=: 9377 fi 9378 fi 9379 9380 fi 9381 ;; 9382 esac 9383 9384 # Use C for the default configuration in the libtool script 9385 9386 lt_save_CC=$CC 9387 ac_ext=c 9388 ac_cpp='$CPP $CPPFLAGS' 9389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9391 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9392 9393 9394 # Source file extension for C test sources. 9395 ac_ext=c 9396 9397 # Object file extension for compiled C test sources. 9398 objext=o 9399 objext=$objext 9400 9401 # Code to be used in simple compile tests 9402 lt_simple_compile_test_code="int some_variable = 0;" 9403 9404 # Code to be used in simple link tests 9405 lt_simple_link_test_code='int main(){return(0);}' 9406 9407 9408 9409 9410 9411 9412 9413 # If no C compiler was specified, use CC. 9414 LTCC=${LTCC-"$CC"} 9415 9416 # If no C compiler flags were specified, use CFLAGS. 9417 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9418 9419 # Allow CC to be a program name with arguments. 9420 compiler=$CC 9421 9422 # Save the default compiler, since it gets overwritten when the other 9423 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9424 compiler_DEFAULT=$CC 9425 9426 # save warnings/boilerplate of simple test code 9427 ac_outfile=conftest.$ac_objext 9428 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9429 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9430 _lt_compiler_boilerplate=`cat conftest.err` 9431 $RM conftest* 9432 9433 ac_outfile=conftest.$ac_objext 9434 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9435 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9436 _lt_linker_boilerplate=`cat conftest.err` 9437 $RM -r conftest* 9438 9439 9440 ## CAVEAT EMPTOR: 9441 ## There is no encapsulation within the following macros, do not change 9442 ## the running order or otherwise move them around unless you know exactly 9443 ## what you are doing... 9444 if test -n "$compiler"; then 9445 9446 lt_prog_compiler_no_builtin_flag= 9447 9448 if test yes = "$GCC"; then 9449 case $cc_basename in 9450 nvcc*) 9451 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9452 *) 9453 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9454 esac 9455 9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9457 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9458 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9459 then : 9460 printf %s "(cached) " >&6 9461 else case e in #( 9462 e) lt_cv_prog_compiler_rtti_exceptions=no 9463 ac_outfile=conftest.$ac_objext 9464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9465 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9466 # Insert the option either (1) after the last *FLAGS variable, or 9467 # (2) before a word containing "conftest.", or (3) at the end. 9468 # Note that $ac_compile itself does not contain backslashes and begins 9469 # with a dollar sign (not a hyphen), so the echo should work correctly. 9470 # The option is referenced via a variable to avoid confusing sed. 9471 lt_compile=`echo "$ac_compile" | $SED \ 9472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9474 -e 's:$: $lt_compiler_flag:'` 9475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9476 (eval "$lt_compile" 2>conftest.err) 9477 ac_status=$? 9478 cat conftest.err >&5 9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9480 if (exit $ac_status) && test -s "$ac_outfile"; then 9481 # The compiler can only warn and ignore the option if not recognized 9482 # So say no if there are warnings other than the usual output. 9483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9485 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9486 lt_cv_prog_compiler_rtti_exceptions=yes 9487 fi 9488 fi 9489 $RM conftest* 9490 ;; 9491 esac 9492 fi 9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9494 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9495 9496 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9497 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9498 else 9499 : 9500 fi 9501 9502 fi 9503 9504 9505 9506 9507 9508 9509 lt_prog_compiler_wl= 9510 lt_prog_compiler_pic= 9511 lt_prog_compiler_static= 9512 9513 9514 if test yes = "$GCC"; then 9515 lt_prog_compiler_wl='-Wl,' 9516 lt_prog_compiler_static='-static' 9517 9518 case $host_os in 9519 aix*) 9520 # All AIX code is PIC. 9521 if test ia64 = "$host_cpu"; then 9522 # AIX 5 now supports IA64 processor 9523 lt_prog_compiler_static='-Bstatic' 9524 fi 9525 lt_prog_compiler_pic='-fPIC' 9526 ;; 9527 9528 amigaos*) 9529 case $host_cpu in 9530 powerpc) 9531 # see comment about AmigaOS4 .so support 9532 lt_prog_compiler_pic='-fPIC' 9533 ;; 9534 m68k) 9535 # FIXME: we need at least 68020 code to build shared libraries, but 9536 # adding the '-m68020' flag to GCC prevents building anything better, 9537 # like '-m68040'. 9538 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9539 ;; 9540 esac 9541 ;; 9542 9543 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9544 # PIC is the default for these OSes. 9545 ;; 9546 9547 mingw* | cygwin* | pw32* | os2* | cegcc*) 9548 # This hack is so that the source file can tell whether it is being 9549 # built for inclusion in a dll (and should export symbols for example). 9550 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9551 # (--disable-auto-import) libraries 9552 lt_prog_compiler_pic='-DDLL_EXPORT' 9553 case $host_os in 9554 os2*) 9555 lt_prog_compiler_static='$wl-static' 9556 ;; 9557 esac 9558 ;; 9559 9560 darwin* | rhapsody*) 9561 # PIC is the default on this platform 9562 # Common symbols not allowed in MH_DYLIB files 9563 lt_prog_compiler_pic='-fno-common' 9564 ;; 9565 9566 haiku*) 9567 # PIC is the default for Haiku. 9568 # The "-static" flag exists, but is broken. 9569 lt_prog_compiler_static= 9570 ;; 9571 9572 hpux*) 9573 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9574 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9575 # sets the default TLS model and affects inlining. 9576 case $host_cpu in 9577 hppa*64*) 9578 # +Z the default 9579 ;; 9580 *) 9581 lt_prog_compiler_pic='-fPIC' 9582 ;; 9583 esac 9584 ;; 9585 9586 interix[3-9]*) 9587 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9588 # Instead, we relocate shared libraries at runtime. 9589 ;; 9590 9591 msdosdjgpp*) 9592 # Just because we use GCC doesn't mean we suddenly get shared libraries 9593 # on systems that don't support them. 9594 lt_prog_compiler_can_build_shared=no 9595 enable_shared=no 9596 ;; 9597 9598 *nto* | *qnx*) 9599 # QNX uses GNU C++, but need to define -shared option too, otherwise 9600 # it will coredump. 9601 lt_prog_compiler_pic='-fPIC -shared' 9602 ;; 9603 9604 sysv4*MP*) 9605 if test -d /usr/nec; then 9606 lt_prog_compiler_pic=-Kconform_pic 9607 fi 9608 ;; 9609 9610 *) 9611 lt_prog_compiler_pic='-fPIC' 9612 ;; 9613 esac 9614 9615 case $cc_basename in 9616 nvcc*) # Cuda Compiler Driver 2.2 9617 lt_prog_compiler_wl='-Xlinker ' 9618 if test -n "$lt_prog_compiler_pic"; then 9619 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9620 fi 9621 ;; 9622 esac 9623 else 9624 # PORTME Check for flag to pass linker flags through the system compiler. 9625 case $host_os in 9626 aix*) 9627 lt_prog_compiler_wl='-Wl,' 9628 if test ia64 = "$host_cpu"; then 9629 # AIX 5 now supports IA64 processor 9630 lt_prog_compiler_static='-Bstatic' 9631 else 9632 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9633 fi 9634 ;; 9635 9636 darwin* | rhapsody*) 9637 # PIC is the default on this platform 9638 # Common symbols not allowed in MH_DYLIB files 9639 lt_prog_compiler_pic='-fno-common' 9640 case $cc_basename in 9641 nagfor*) 9642 # NAG Fortran compiler 9643 lt_prog_compiler_wl='-Wl,-Wl,,' 9644 lt_prog_compiler_pic='-PIC' 9645 lt_prog_compiler_static='-Bstatic' 9646 ;; 9647 esac 9648 ;; 9649 9650 mingw* | cygwin* | pw32* | os2* | cegcc*) 9651 # This hack is so that the source file can tell whether it is being 9652 # built for inclusion in a dll (and should export symbols for example). 9653 lt_prog_compiler_pic='-DDLL_EXPORT' 9654 case $host_os in 9655 os2*) 9656 lt_prog_compiler_static='$wl-static' 9657 ;; 9658 esac 9659 ;; 9660 9661 hpux9* | hpux10* | hpux11*) 9662 lt_prog_compiler_wl='-Wl,' 9663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9664 # not for PA HP-UX. 9665 case $host_cpu in 9666 hppa*64*|ia64*) 9667 # +Z the default 9668 ;; 9669 *) 9670 lt_prog_compiler_pic='+Z' 9671 ;; 9672 esac 9673 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9674 lt_prog_compiler_static='$wl-a ${wl}archive' 9675 ;; 9676 9677 irix5* | irix6* | nonstopux*) 9678 lt_prog_compiler_wl='-Wl,' 9679 # PIC (with -KPIC) is the default. 9680 lt_prog_compiler_static='-non_shared' 9681 ;; 9682 9683 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9684 case $cc_basename in 9685 # old Intel for x86_64, which still supported -KPIC. 9686 ecc*) 9687 lt_prog_compiler_wl='-Wl,' 9688 lt_prog_compiler_pic='-KPIC' 9689 lt_prog_compiler_static='-static' 9690 ;; 9691 # icc used to be incompatible with GCC. 9692 # ICC 10 doesn't accept -KPIC any more. 9693 icc* | ifort*) 9694 lt_prog_compiler_wl='-Wl,' 9695 lt_prog_compiler_pic='-fPIC' 9696 lt_prog_compiler_static='-static' 9697 ;; 9698 # Lahey Fortran 8.1. 9699 lf95*) 9700 lt_prog_compiler_wl='-Wl,' 9701 lt_prog_compiler_pic='--shared' 9702 lt_prog_compiler_static='--static' 9703 ;; 9704 nagfor*) 9705 # NAG Fortran compiler 9706 lt_prog_compiler_wl='-Wl,-Wl,,' 9707 lt_prog_compiler_pic='-PIC' 9708 lt_prog_compiler_static='-Bstatic' 9709 ;; 9710 tcc*) 9711 # Fabrice Bellard et al's Tiny C Compiler 9712 lt_prog_compiler_wl='-Wl,' 9713 lt_prog_compiler_pic='-fPIC' 9714 lt_prog_compiler_static='-static' 9715 ;; 9716 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9717 # Portland Group compilers (*not* the Pentium gcc compiler, 9718 # which looks to be a dead project) 9719 lt_prog_compiler_wl='-Wl,' 9720 lt_prog_compiler_pic='-fpic' 9721 lt_prog_compiler_static='-Bstatic' 9722 ;; 9723 ccc*) 9724 lt_prog_compiler_wl='-Wl,' 9725 # All Alpha code is PIC. 9726 lt_prog_compiler_static='-non_shared' 9727 ;; 9728 xl* | bgxl* | bgf* | mpixl*) 9729 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9730 lt_prog_compiler_wl='-Wl,' 9731 lt_prog_compiler_pic='-qpic' 9732 lt_prog_compiler_static='-qstaticlink' 9733 ;; 9734 *) 9735 case `$CC -V 2>&1 | $SED 5q` in 9736 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9737 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9738 lt_prog_compiler_pic='-KPIC' 9739 lt_prog_compiler_static='-Bstatic' 9740 lt_prog_compiler_wl='' 9741 ;; 9742 *Sun\ F* | *Sun*Fortran*) 9743 lt_prog_compiler_pic='-KPIC' 9744 lt_prog_compiler_static='-Bstatic' 9745 lt_prog_compiler_wl='-Qoption ld ' 9746 ;; 9747 *Sun\ C*) 9748 # Sun C 5.9 9749 lt_prog_compiler_pic='-KPIC' 9750 lt_prog_compiler_static='-Bstatic' 9751 lt_prog_compiler_wl='-Wl,' 9752 ;; 9753 *Intel*\ [CF]*Compiler*) 9754 lt_prog_compiler_wl='-Wl,' 9755 lt_prog_compiler_pic='-fPIC' 9756 lt_prog_compiler_static='-static' 9757 ;; 9758 *Portland\ Group*) 9759 lt_prog_compiler_wl='-Wl,' 9760 lt_prog_compiler_pic='-fpic' 9761 lt_prog_compiler_static='-Bstatic' 9762 ;; 9763 esac 9764 ;; 9765 esac 9766 ;; 9767 9768 newsos6) 9769 lt_prog_compiler_pic='-KPIC' 9770 lt_prog_compiler_static='-Bstatic' 9771 ;; 9772 9773 *nto* | *qnx*) 9774 # QNX uses GNU C++, but need to define -shared option too, otherwise 9775 # it will coredump. 9776 lt_prog_compiler_pic='-fPIC -shared' 9777 ;; 9778 9779 osf3* | osf4* | osf5*) 9780 lt_prog_compiler_wl='-Wl,' 9781 # All OSF/1 code is PIC. 9782 lt_prog_compiler_static='-non_shared' 9783 ;; 9784 9785 rdos*) 9786 lt_prog_compiler_static='-non_shared' 9787 ;; 9788 9789 solaris*) 9790 lt_prog_compiler_pic='-KPIC' 9791 lt_prog_compiler_static='-Bstatic' 9792 case $cc_basename in 9793 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9794 lt_prog_compiler_wl='-Qoption ld ';; 9795 *) 9796 lt_prog_compiler_wl='-Wl,';; 9797 esac 9798 ;; 9799 9800 sunos4*) 9801 lt_prog_compiler_wl='-Qoption ld ' 9802 lt_prog_compiler_pic='-PIC' 9803 lt_prog_compiler_static='-Bstatic' 9804 ;; 9805 9806 sysv4 | sysv4.2uw2* | sysv4.3*) 9807 lt_prog_compiler_wl='-Wl,' 9808 lt_prog_compiler_pic='-KPIC' 9809 lt_prog_compiler_static='-Bstatic' 9810 ;; 9811 9812 sysv4*MP*) 9813 if test -d /usr/nec; then 9814 lt_prog_compiler_pic='-Kconform_pic' 9815 lt_prog_compiler_static='-Bstatic' 9816 fi 9817 ;; 9818 9819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9820 lt_prog_compiler_wl='-Wl,' 9821 lt_prog_compiler_pic='-KPIC' 9822 lt_prog_compiler_static='-Bstatic' 9823 ;; 9824 9825 unicos*) 9826 lt_prog_compiler_wl='-Wl,' 9827 lt_prog_compiler_can_build_shared=no 9828 ;; 9829 9830 uts4*) 9831 lt_prog_compiler_pic='-pic' 9832 lt_prog_compiler_static='-Bstatic' 9833 ;; 9834 9835 *) 9836 lt_prog_compiler_can_build_shared=no 9837 ;; 9838 esac 9839 fi 9840 9841 case $host_os in 9842 # For platforms that do not support PIC, -DPIC is meaningless: 9843 *djgpp*) 9844 lt_prog_compiler_pic= 9845 ;; 9846 *) 9847 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9848 ;; 9849 esac 9850 9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9852 printf %s "checking for $compiler option to produce PIC... " >&6; } 9853 if test ${lt_cv_prog_compiler_pic+y} 9854 then : 9855 printf %s "(cached) " >&6 9856 else case e in #( 9857 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9858 esac 9859 fi 9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9861 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9862 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9863 9864 # 9865 # Check to make sure the PIC flag actually works. 9866 # 9867 if test -n "$lt_prog_compiler_pic"; then 9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9869 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9870 if test ${lt_cv_prog_compiler_pic_works+y} 9871 then : 9872 printf %s "(cached) " >&6 9873 else case e in #( 9874 e) lt_cv_prog_compiler_pic_works=no 9875 ac_outfile=conftest.$ac_objext 9876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9877 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9878 # Insert the option either (1) after the last *FLAGS variable, or 9879 # (2) before a word containing "conftest.", or (3) at the end. 9880 # Note that $ac_compile itself does not contain backslashes and begins 9881 # with a dollar sign (not a hyphen), so the echo should work correctly. 9882 # The option is referenced via a variable to avoid confusing sed. 9883 lt_compile=`echo "$ac_compile" | $SED \ 9884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9886 -e 's:$: $lt_compiler_flag:'` 9887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9888 (eval "$lt_compile" 2>conftest.err) 9889 ac_status=$? 9890 cat conftest.err >&5 9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9892 if (exit $ac_status) && test -s "$ac_outfile"; then 9893 # The compiler can only warn and ignore the option if not recognized 9894 # So say no if there are warnings other than the usual output. 9895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9898 lt_cv_prog_compiler_pic_works=yes 9899 fi 9900 fi 9901 $RM conftest* 9902 ;; 9903 esac 9904 fi 9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9906 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 9907 9908 if test yes = "$lt_cv_prog_compiler_pic_works"; then 9909 case $lt_prog_compiler_pic in 9910 "" | " "*) ;; 9911 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9912 esac 9913 else 9914 lt_prog_compiler_pic= 9915 lt_prog_compiler_can_build_shared=no 9916 fi 9917 9918 fi 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 # 9931 # Check to make sure the static flag actually works. 9932 # 9933 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9935 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9936 if test ${lt_cv_prog_compiler_static_works+y} 9937 then : 9938 printf %s "(cached) " >&6 9939 else case e in #( 9940 e) lt_cv_prog_compiler_static_works=no 9941 save_LDFLAGS=$LDFLAGS 9942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9943 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9945 # The linker can only warn and ignore the option if not recognized 9946 # So say no if there are warnings 9947 if test -s conftest.err; then 9948 # Append any errors to the config.log. 9949 cat conftest.err 1>&5 9950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9952 if diff conftest.exp conftest.er2 >/dev/null; then 9953 lt_cv_prog_compiler_static_works=yes 9954 fi 9955 else 9956 lt_cv_prog_compiler_static_works=yes 9957 fi 9958 fi 9959 $RM -r conftest* 9960 LDFLAGS=$save_LDFLAGS 9961 ;; 9962 esac 9963 fi 9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9965 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 9966 9967 if test yes = "$lt_cv_prog_compiler_static_works"; then 9968 : 9969 else 9970 lt_prog_compiler_static= 9971 fi 9972 9973 9974 9975 9976 9977 9978 9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9980 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9981 if test ${lt_cv_prog_compiler_c_o+y} 9982 then : 9983 printf %s "(cached) " >&6 9984 else case e in #( 9985 e) lt_cv_prog_compiler_c_o=no 9986 $RM -r conftest 2>/dev/null 9987 mkdir conftest 9988 cd conftest 9989 mkdir out 9990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9991 9992 lt_compiler_flag="-o out/conftest2.$ac_objext" 9993 # Insert the option either (1) after the last *FLAGS variable, or 9994 # (2) before a word containing "conftest.", or (3) at the end. 9995 # Note that $ac_compile itself does not contain backslashes and begins 9996 # with a dollar sign (not a hyphen), so the echo should work correctly. 9997 lt_compile=`echo "$ac_compile" | $SED \ 9998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10000 -e 's:$: $lt_compiler_flag:'` 10001 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10002 (eval "$lt_compile" 2>out/conftest.err) 10003 ac_status=$? 10004 cat out/conftest.err >&5 10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10007 then 10008 # The compiler can only warn and ignore the option if not recognized 10009 # So say no if there are warnings 10010 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10011 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10012 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10013 lt_cv_prog_compiler_c_o=yes 10014 fi 10015 fi 10016 chmod u+w . 2>&5 10017 $RM conftest* 10018 # SGI C++ compiler will create directory out/ii_files/ for 10019 # template instantiation 10020 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10021 $RM out/* && rmdir out 10022 cd .. 10023 $RM -r conftest 10024 $RM conftest* 10025 ;; 10026 esac 10027 fi 10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10029 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10030 10031 10032 10033 10034 10035 10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10037 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10038 if test ${lt_cv_prog_compiler_c_o+y} 10039 then : 10040 printf %s "(cached) " >&6 10041 else case e in #( 10042 e) lt_cv_prog_compiler_c_o=no 10043 $RM -r conftest 2>/dev/null 10044 mkdir conftest 10045 cd conftest 10046 mkdir out 10047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10048 10049 lt_compiler_flag="-o out/conftest2.$ac_objext" 10050 # Insert the option either (1) after the last *FLAGS variable, or 10051 # (2) before a word containing "conftest.", or (3) at the end. 10052 # Note that $ac_compile itself does not contain backslashes and begins 10053 # with a dollar sign (not a hyphen), so the echo should work correctly. 10054 lt_compile=`echo "$ac_compile" | $SED \ 10055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10057 -e 's:$: $lt_compiler_flag:'` 10058 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10059 (eval "$lt_compile" 2>out/conftest.err) 10060 ac_status=$? 10061 cat out/conftest.err >&5 10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10063 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10064 then 10065 # The compiler can only warn and ignore the option if not recognized 10066 # So say no if there are warnings 10067 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10068 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10069 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10070 lt_cv_prog_compiler_c_o=yes 10071 fi 10072 fi 10073 chmod u+w . 2>&5 10074 $RM conftest* 10075 # SGI C++ compiler will create directory out/ii_files/ for 10076 # template instantiation 10077 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10078 $RM out/* && rmdir out 10079 cd .. 10080 $RM -r conftest 10081 $RM conftest* 10082 ;; 10083 esac 10084 fi 10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10086 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10087 10088 10089 10090 10091 hard_links=nottested 10092 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10093 # do not overwrite the value of need_locks provided by the user 10094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10095 printf %s "checking if we can lock with hard links... " >&6; } 10096 hard_links=yes 10097 $RM conftest* 10098 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10099 touch conftest.a 10100 ln conftest.a conftest.b 2>&5 || hard_links=no 10101 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10103 printf "%s\n" "$hard_links" >&6; } 10104 if test no = "$hard_links"; then 10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10106 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10107 need_locks=warn 10108 fi 10109 else 10110 need_locks=no 10111 fi 10112 10113 10114 10115 10116 10117 10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10119 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10120 10121 runpath_var= 10122 allow_undefined_flag= 10123 always_export_symbols=no 10124 archive_cmds= 10125 archive_expsym_cmds= 10126 compiler_needs_object=no 10127 enable_shared_with_static_runtimes=no 10128 export_dynamic_flag_spec= 10129 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10130 hardcode_automatic=no 10131 hardcode_direct=no 10132 hardcode_direct_absolute=no 10133 hardcode_libdir_flag_spec= 10134 hardcode_libdir_separator= 10135 hardcode_minus_L=no 10136 hardcode_shlibpath_var=unsupported 10137 inherit_rpath=no 10138 link_all_deplibs=unknown 10139 module_cmds= 10140 module_expsym_cmds= 10141 old_archive_from_new_cmds= 10142 old_archive_from_expsyms_cmds= 10143 thread_safe_flag_spec= 10144 whole_archive_flag_spec= 10145 # include_expsyms should be a list of space-separated symbols to be *always* 10146 # included in the symbol list 10147 include_expsyms= 10148 # exclude_expsyms can be an extended regexp of symbols to exclude 10149 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10150 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10151 # as well as any symbol that contains 'd'. 10152 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10153 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10154 # platforms (ab)use it in PIC code, but their linkers get confused if 10155 # the symbol is explicitly referenced. Since portable code cannot 10156 # rely on this symbol name, it's probably fine to never include it in 10157 # preloaded symbol tables. 10158 # Exclude shared library initialization/finalization symbols. 10159 extract_expsyms_cmds= 10160 10161 case $host_os in 10162 cygwin* | mingw* | pw32* | cegcc*) 10163 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10164 # When not using gcc, we currently assume that we are using 10165 # Microsoft Visual C++ or Intel C++ Compiler. 10166 if test yes != "$GCC"; then 10167 with_gnu_ld=no 10168 fi 10169 ;; 10170 interix*) 10171 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10172 with_gnu_ld=yes 10173 ;; 10174 openbsd* | bitrig*) 10175 with_gnu_ld=no 10176 ;; 10177 esac 10178 10179 ld_shlibs=yes 10180 10181 # On some targets, GNU ld is compatible enough with the native linker 10182 # that we're better off using the native interface for both. 10183 lt_use_gnu_ld_interface=no 10184 if test yes = "$with_gnu_ld"; then 10185 case $host_os in 10186 aix*) 10187 # The AIX port of GNU ld has always aspired to compatibility 10188 # with the native linker. However, as the warning in the GNU ld 10189 # block says, versions before 2.19.5* couldn't really create working 10190 # shared libraries, regardless of the interface used. 10191 case `$LD -v 2>&1` in 10192 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10193 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10194 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10195 *) 10196 lt_use_gnu_ld_interface=yes 10197 ;; 10198 esac 10199 ;; 10200 *) 10201 lt_use_gnu_ld_interface=yes 10202 ;; 10203 esac 10204 fi 10205 10206 if test yes = "$lt_use_gnu_ld_interface"; then 10207 # If archive_cmds runs LD, not CC, wlarc should be empty 10208 wlarc='$wl' 10209 10210 # Set some defaults for GNU ld with shared library support. These 10211 # are reset later if shared libraries are not supported. Putting them 10212 # here allows them to be overridden if necessary. 10213 runpath_var=LD_RUN_PATH 10214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10215 export_dynamic_flag_spec='$wl--export-dynamic' 10216 # ancient GNU ld didn't support --whole-archive et. al. 10217 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10218 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10219 else 10220 whole_archive_flag_spec= 10221 fi 10222 supports_anon_versioning=no 10223 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10224 *GNU\ gold*) supports_anon_versioning=yes ;; 10225 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10226 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10227 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10228 *\ 2.11.*) ;; # other 2.11 versions 10229 *) supports_anon_versioning=yes ;; 10230 esac 10231 10232 # See if GNU ld supports shared libraries. 10233 case $host_os in 10234 aix[3-9]*) 10235 # On AIX/PPC, the GNU linker is very broken 10236 if test ia64 != "$host_cpu"; then 10237 ld_shlibs=no 10238 cat <<_LT_EOF 1>&2 10239 10240 *** Warning: the GNU linker, at least up to release 2.19, is reported 10241 *** to be unable to reliably create shared libraries on AIX. 10242 *** Therefore, libtool is disabling shared libraries support. If you 10243 *** really care for shared libraries, you may want to install binutils 10244 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10245 *** You will then need to restart the configuration process. 10246 10247 _LT_EOF 10248 fi 10249 ;; 10250 10251 amigaos*) 10252 case $host_cpu in 10253 powerpc) 10254 # see comment about AmigaOS4 .so support 10255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10256 archive_expsym_cmds='' 10257 ;; 10258 m68k) 10259 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)' 10260 hardcode_libdir_flag_spec='-L$libdir' 10261 hardcode_minus_L=yes 10262 ;; 10263 esac 10264 ;; 10265 10266 beos*) 10267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10268 allow_undefined_flag=unsupported 10269 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10270 # support --undefined. This deserves some investigation. FIXME 10271 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10272 else 10273 ld_shlibs=no 10274 fi 10275 ;; 10276 10277 cygwin* | mingw* | pw32* | cegcc*) 10278 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10279 # as there is no search path for DLLs. 10280 hardcode_libdir_flag_spec='-L$libdir' 10281 export_dynamic_flag_spec='$wl--export-all-symbols' 10282 allow_undefined_flag=unsupported 10283 always_export_symbols=no 10284 enable_shared_with_static_runtimes=yes 10285 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' 10286 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10287 10288 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10290 # If the export-symbols file already is a .def file, use it as 10291 # is; otherwise, prepend EXPORTS... 10292 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10293 cp $export_symbols $output_objdir/$soname.def; 10294 else 10295 echo EXPORTS > $output_objdir/$soname.def; 10296 cat $export_symbols >> $output_objdir/$soname.def; 10297 fi~ 10298 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10299 else 10300 ld_shlibs=no 10301 fi 10302 ;; 10303 10304 haiku*) 10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10306 link_all_deplibs=yes 10307 ;; 10308 10309 os2*) 10310 hardcode_libdir_flag_spec='-L$libdir' 10311 hardcode_minus_L=yes 10312 allow_undefined_flag=unsupported 10313 shrext_cmds=.dll 10314 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10315 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10316 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10317 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10318 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10319 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10320 emximp -o $lib $output_objdir/$libname.def' 10321 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10322 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10323 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10324 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10325 prefix_cmds="$SED"~ 10326 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10327 prefix_cmds="$prefix_cmds -e 1d"; 10328 fi~ 10329 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10330 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10331 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10332 emximp -o $lib $output_objdir/$libname.def' 10333 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10334 enable_shared_with_static_runtimes=yes 10335 file_list_spec='@' 10336 ;; 10337 10338 interix[3-9]*) 10339 hardcode_direct=no 10340 hardcode_shlibpath_var=no 10341 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10342 export_dynamic_flag_spec='$wl-E' 10343 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10344 # Instead, shared libraries are loaded at an image base (0x10000000 by 10345 # default) and relocated if they conflict, which is a slow very memory 10346 # consuming and fragmenting process. To avoid this, we pick a random, 10347 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10348 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10349 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10350 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' 10351 ;; 10352 10353 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10354 tmp_diet=no 10355 if test linux-dietlibc = "$host_os"; then 10356 case $cc_basename in 10357 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10358 esac 10359 fi 10360 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10361 && test no = "$tmp_diet" 10362 then 10363 tmp_addflag=' $pic_flag' 10364 tmp_sharedflag='-shared' 10365 case $cc_basename,$host_cpu in 10366 pgcc*) # Portland Group C compiler 10367 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' 10368 tmp_addflag=' $pic_flag' 10369 ;; 10370 pgf77* | pgf90* | pgf95* | pgfortran*) 10371 # Portland Group f77 and f90 compilers 10372 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' 10373 tmp_addflag=' $pic_flag -Mnomain' ;; 10374 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10375 tmp_addflag=' -i_dynamic' ;; 10376 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10377 tmp_addflag=' -i_dynamic -nofor_main' ;; 10378 ifc* | ifort*) # Intel Fortran compiler 10379 tmp_addflag=' -nofor_main' ;; 10380 lf95*) # Lahey Fortran 8.1 10381 whole_archive_flag_spec= 10382 tmp_sharedflag='--shared' ;; 10383 nagfor*) # NAGFOR 5.3 10384 tmp_sharedflag='-Wl,-shared' ;; 10385 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10386 tmp_sharedflag='-qmkshrobj' 10387 tmp_addflag= ;; 10388 nvcc*) # Cuda Compiler Driver 2.2 10389 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' 10390 compiler_needs_object=yes 10391 ;; 10392 esac 10393 case `$CC -V 2>&1 | $SED 5q` in 10394 *Sun\ C*) # Sun C 5.9 10395 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' 10396 compiler_needs_object=yes 10397 tmp_sharedflag='-G' ;; 10398 *Sun\ F*) # Sun Fortran 8.3 10399 tmp_sharedflag='-G' ;; 10400 esac 10401 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10402 10403 if test yes = "$supports_anon_versioning"; then 10404 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10405 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10406 echo "local: *; };" >> $output_objdir/$libname.ver~ 10407 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10408 fi 10409 10410 case $cc_basename in 10411 tcc*) 10412 export_dynamic_flag_spec='-rdynamic' 10413 ;; 10414 xlf* | bgf* | bgxlf* | mpixlf*) 10415 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10416 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10418 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10419 if test yes = "$supports_anon_versioning"; then 10420 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10421 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10422 echo "local: *; };" >> $output_objdir/$libname.ver~ 10423 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10424 fi 10425 ;; 10426 esac 10427 else 10428 ld_shlibs=no 10429 fi 10430 ;; 10431 10432 netbsd*) 10433 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10434 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10435 wlarc= 10436 else 10437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10438 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10439 fi 10440 ;; 10441 10442 solaris*) 10443 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10444 ld_shlibs=no 10445 cat <<_LT_EOF 1>&2 10446 10447 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10448 *** create shared libraries on Solaris systems. Therefore, libtool 10449 *** is disabling shared libraries support. We urge you to upgrade GNU 10450 *** binutils to release 2.9.1 or newer. Another option is to modify 10451 *** your PATH or compiler configuration so that the native linker is 10452 *** used, and then restart. 10453 10454 _LT_EOF 10455 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10457 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10458 else 10459 ld_shlibs=no 10460 fi 10461 ;; 10462 10463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10464 case `$LD -v 2>&1` in 10465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10466 ld_shlibs=no 10467 cat <<_LT_EOF 1>&2 10468 10469 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10470 *** reliably create shared libraries on SCO systems. Therefore, libtool 10471 *** is disabling shared libraries support. We urge you to upgrade GNU 10472 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10473 *** your PATH or compiler configuration so that the native linker is 10474 *** used, and then restart. 10475 10476 _LT_EOF 10477 ;; 10478 *) 10479 # For security reasons, it is highly recommended that you always 10480 # use absolute paths for naming shared libraries, and exclude the 10481 # DT_RUNPATH tag from executables and libraries. But doing so 10482 # requires that you compile everything twice, which is a pain. 10483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10484 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10487 else 10488 ld_shlibs=no 10489 fi 10490 ;; 10491 esac 10492 ;; 10493 10494 sunos4*) 10495 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10496 wlarc= 10497 hardcode_direct=yes 10498 hardcode_shlibpath_var=no 10499 ;; 10500 10501 *) 10502 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10504 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10505 else 10506 ld_shlibs=no 10507 fi 10508 ;; 10509 esac 10510 10511 if test no = "$ld_shlibs"; then 10512 runpath_var= 10513 hardcode_libdir_flag_spec= 10514 export_dynamic_flag_spec= 10515 whole_archive_flag_spec= 10516 fi 10517 else 10518 # PORTME fill in a description of your system's linker (not GNU ld) 10519 case $host_os in 10520 aix3*) 10521 allow_undefined_flag=unsupported 10522 always_export_symbols=yes 10523 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' 10524 # Note: this linker hardcodes the directories in LIBPATH if there 10525 # are no directories specified by -L. 10526 hardcode_minus_L=yes 10527 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10528 # Neither direct hardcoding nor static linking is supported with a 10529 # broken collect2. 10530 hardcode_direct=unsupported 10531 fi 10532 ;; 10533 10534 aix[4-9]*) 10535 if test ia64 = "$host_cpu"; then 10536 # On IA64, the linker does run time linking by default, so we don't 10537 # have to do anything special. 10538 aix_use_runtimelinking=no 10539 exp_sym_flag='-Bexport' 10540 no_entry_flag= 10541 else 10542 # If we're using GNU nm, then we don't want the "-C" option. 10543 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10544 # Without the "-l" option, or with the "-B" option, AIX nm treats 10545 # weak defined symbols like other global defined symbols, whereas 10546 # GNU nm marks them as "W". 10547 # While the 'weak' keyword is ignored in the Export File, we need 10548 # it in the Import File for the 'aix-soname' feature, so we have 10549 # to replace the "-B" option with "-P" for AIX nm. 10550 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10551 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' 10552 else 10553 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' 10554 fi 10555 aix_use_runtimelinking=no 10556 10557 # Test if we are trying to use run time linking or normal 10558 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10559 # have runtime linking enabled, and use it for executables. 10560 # For shared libraries, we enable/disable runtime linking 10561 # depending on the kind of the shared library created - 10562 # when "with_aix_soname,aix_use_runtimelinking" is: 10563 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10564 # "aix,yes" lib.so shared, rtl:yes, for executables 10565 # lib.a static archive 10566 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10567 # lib.a(lib.so.V) shared, rtl:no, for executables 10568 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10569 # lib.a(lib.so.V) shared, rtl:no 10570 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10571 # lib.a static archive 10572 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10573 for ld_flag in $LDFLAGS; do 10574 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10575 aix_use_runtimelinking=yes 10576 break 10577 fi 10578 done 10579 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10580 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10581 # so we don't have lib.a shared libs to link our executables. 10582 # We have to force runtime linking in this case. 10583 aix_use_runtimelinking=yes 10584 LDFLAGS="$LDFLAGS -Wl,-brtl" 10585 fi 10586 ;; 10587 esac 10588 10589 exp_sym_flag='-bexport' 10590 no_entry_flag='-bnoentry' 10591 fi 10592 10593 # When large executables or shared objects are built, AIX ld can 10594 # have problems creating the table of contents. If linking a library 10595 # or program results in "error TOC overflow" add -mminimal-toc to 10596 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10597 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10598 10599 archive_cmds='' 10600 hardcode_direct=yes 10601 hardcode_direct_absolute=yes 10602 hardcode_libdir_separator=':' 10603 link_all_deplibs=yes 10604 file_list_spec='$wl-f,' 10605 case $with_aix_soname,$aix_use_runtimelinking in 10606 aix,*) ;; # traditional, no import file 10607 svr4,* | *,yes) # use import file 10608 # The Import File defines what to hardcode. 10609 hardcode_direct=no 10610 hardcode_direct_absolute=no 10611 ;; 10612 esac 10613 10614 if test yes = "$GCC"; then 10615 case $host_os in aix4.[012]|aix4.[012].*) 10616 # We only want to do this on AIX 4.2 and lower, the check 10617 # below for broken collect2 doesn't work under 4.3+ 10618 collect2name=`$CC -print-prog-name=collect2` 10619 if test -f "$collect2name" && 10620 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10621 then 10622 # We have reworked collect2 10623 : 10624 else 10625 # We have old collect2 10626 hardcode_direct=unsupported 10627 # It fails to find uninstalled libraries when the uninstalled 10628 # path is not listed in the libpath. Setting hardcode_minus_L 10629 # to unsupported forces relinking 10630 hardcode_minus_L=yes 10631 hardcode_libdir_flag_spec='-L$libdir' 10632 hardcode_libdir_separator= 10633 fi 10634 ;; 10635 esac 10636 shared_flag='-shared' 10637 if test yes = "$aix_use_runtimelinking"; then 10638 shared_flag="$shared_flag "'$wl-G' 10639 fi 10640 # Need to ensure runtime linking is disabled for the traditional 10641 # shared library, or the linker may eventually find shared libraries 10642 # /with/ Import File - we do not want to mix them. 10643 shared_flag_aix='-shared' 10644 shared_flag_svr4='-shared $wl-G' 10645 else 10646 # not using gcc 10647 if test ia64 = "$host_cpu"; then 10648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10649 # chokes on -Wl,-G. The following line is correct: 10650 shared_flag='-G' 10651 else 10652 if test yes = "$aix_use_runtimelinking"; then 10653 shared_flag='$wl-G' 10654 else 10655 shared_flag='$wl-bM:SRE' 10656 fi 10657 shared_flag_aix='$wl-bM:SRE' 10658 shared_flag_svr4='$wl-G' 10659 fi 10660 fi 10661 10662 export_dynamic_flag_spec='$wl-bexpall' 10663 # It seems that -bexpall does not export symbols beginning with 10664 # underscore (_), so it is better to generate a list of symbols to export. 10665 always_export_symbols=yes 10666 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10667 # Warning - without using the other runtime loading flags (-brtl), 10668 # -berok will link without error, but may produce a broken library. 10669 allow_undefined_flag='-berok' 10670 # Determine the default libpath from the value encoded in an 10671 # empty executable. 10672 if test set = "${lt_cv_aix_libpath+set}"; then 10673 aix_libpath=$lt_cv_aix_libpath 10674 else 10675 if test ${lt_cv_aix_libpath_+y} 10676 then : 10677 printf %s "(cached) " >&6 10678 else case e in #( 10679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10680 /* end confdefs.h. */ 10681 10682 int 10683 main (void) 10684 { 10685 10686 ; 10687 return 0; 10688 } 10689 _ACEOF 10690 if ac_fn_c_try_link "$LINENO" 10691 then : 10692 10693 lt_aix_libpath_sed=' 10694 /Import File Strings/,/^$/ { 10695 /^0/ { 10696 s/^0 *\([^ ]*\) *$/\1/ 10697 p 10698 } 10699 }' 10700 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10701 # Check for a 64-bit object if we didn't find anything. 10702 if test -z "$lt_cv_aix_libpath_"; then 10703 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10704 fi 10705 fi 10706 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10707 conftest$ac_exeext conftest.$ac_ext 10708 if test -z "$lt_cv_aix_libpath_"; then 10709 lt_cv_aix_libpath_=/usr/lib:/lib 10710 fi 10711 ;; 10712 esac 10713 fi 10714 10715 aix_libpath=$lt_cv_aix_libpath_ 10716 fi 10717 10718 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10719 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 10720 else 10721 if test ia64 = "$host_cpu"; then 10722 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10723 allow_undefined_flag="-z nodefs" 10724 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" 10725 else 10726 # Determine the default libpath from the value encoded in an 10727 # empty executable. 10728 if test set = "${lt_cv_aix_libpath+set}"; then 10729 aix_libpath=$lt_cv_aix_libpath 10730 else 10731 if test ${lt_cv_aix_libpath_+y} 10732 then : 10733 printf %s "(cached) " >&6 10734 else case e in #( 10735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10736 /* end confdefs.h. */ 10737 10738 int 10739 main (void) 10740 { 10741 10742 ; 10743 return 0; 10744 } 10745 _ACEOF 10746 if ac_fn_c_try_link "$LINENO" 10747 then : 10748 10749 lt_aix_libpath_sed=' 10750 /Import File Strings/,/^$/ { 10751 /^0/ { 10752 s/^0 *\([^ ]*\) *$/\1/ 10753 p 10754 } 10755 }' 10756 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10757 # Check for a 64-bit object if we didn't find anything. 10758 if test -z "$lt_cv_aix_libpath_"; then 10759 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10760 fi 10761 fi 10762 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10763 conftest$ac_exeext conftest.$ac_ext 10764 if test -z "$lt_cv_aix_libpath_"; then 10765 lt_cv_aix_libpath_=/usr/lib:/lib 10766 fi 10767 ;; 10768 esac 10769 fi 10770 10771 aix_libpath=$lt_cv_aix_libpath_ 10772 fi 10773 10774 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10775 # Warning - without using the other run time loading flags, 10776 # -berok will link without error, but may produce a broken library. 10777 no_undefined_flag=' $wl-bernotok' 10778 allow_undefined_flag=' $wl-berok' 10779 if test yes = "$with_gnu_ld"; then 10780 # We only use this code for GNU lds that support --whole-archive. 10781 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10782 else 10783 # Exported symbols can be pulled into shared objects from archives 10784 whole_archive_flag_spec='$convenience' 10785 fi 10786 archive_cmds_need_lc=yes 10787 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10788 # -brtl affects multiple linker settings, -berok does not and is overridden later 10789 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10790 if test svr4 != "$with_aix_soname"; then 10791 # This is similar to how AIX traditionally builds its shared libraries. 10792 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' 10793 fi 10794 if test aix != "$with_aix_soname"; then 10795 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' 10796 else 10797 # used by -dlpreopen to get the symbols 10798 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10799 fi 10800 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10801 fi 10802 fi 10803 ;; 10804 10805 amigaos*) 10806 case $host_cpu in 10807 powerpc) 10808 # see comment about AmigaOS4 .so support 10809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10810 archive_expsym_cmds='' 10811 ;; 10812 m68k) 10813 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)' 10814 hardcode_libdir_flag_spec='-L$libdir' 10815 hardcode_minus_L=yes 10816 ;; 10817 esac 10818 ;; 10819 10820 bsdi[45]*) 10821 export_dynamic_flag_spec=-rdynamic 10822 ;; 10823 10824 cygwin* | mingw* | pw32* | cegcc*) 10825 # When not using gcc, we currently assume that we are using 10826 # Microsoft Visual C++ or Intel C++ Compiler. 10827 # hardcode_libdir_flag_spec is actually meaningless, as there is 10828 # no search path for DLLs. 10829 case $cc_basename in 10830 cl* | icl*) 10831 # Native MSVC or ICC 10832 hardcode_libdir_flag_spec=' ' 10833 allow_undefined_flag=unsupported 10834 always_export_symbols=yes 10835 file_list_spec='@' 10836 # Tell ltmain to make .lib files, not .a files. 10837 libext=lib 10838 # Tell ltmain to make .dll files, not .so files. 10839 shrext_cmds=.dll 10840 # FIXME: Setting linknames here is a bad hack. 10841 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10842 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10843 cp "$export_symbols" "$output_objdir/$soname.def"; 10844 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10845 else 10846 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10847 fi~ 10848 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10849 linknames=' 10850 # The linker will not automatically build a static lib if we build a DLL. 10851 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10852 enable_shared_with_static_runtimes=yes 10853 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10854 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10855 # Don't use ranlib 10856 old_postinstall_cmds='chmod 644 $oldlib' 10857 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10858 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10859 case $lt_outputfile in 10860 *.exe|*.EXE) ;; 10861 *) 10862 lt_outputfile=$lt_outputfile.exe 10863 lt_tool_outputfile=$lt_tool_outputfile.exe 10864 ;; 10865 esac~ 10866 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10867 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10868 $RM "$lt_outputfile.manifest"; 10869 fi' 10870 ;; 10871 *) 10872 # Assume MSVC and ICC wrapper 10873 hardcode_libdir_flag_spec=' ' 10874 allow_undefined_flag=unsupported 10875 # Tell ltmain to make .lib files, not .a files. 10876 libext=lib 10877 # Tell ltmain to make .dll files, not .so files. 10878 shrext_cmds=.dll 10879 # FIXME: Setting linknames here is a bad hack. 10880 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10881 # The linker will automatically build a .lib file if we build a DLL. 10882 old_archive_from_new_cmds='true' 10883 # FIXME: Should let the user specify the lib program. 10884 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10885 enable_shared_with_static_runtimes=yes 10886 ;; 10887 esac 10888 ;; 10889 10890 darwin* | rhapsody*) 10891 10892 10893 archive_cmds_need_lc=no 10894 hardcode_direct=no 10895 hardcode_automatic=yes 10896 hardcode_shlibpath_var=unsupported 10897 if test yes = "$lt_cv_ld_force_load"; then 10898 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\"`' 10899 10900 else 10901 whole_archive_flag_spec='' 10902 fi 10903 link_all_deplibs=yes 10904 allow_undefined_flag=$_lt_dar_allow_undefined 10905 case $cc_basename in 10906 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10907 *) _lt_dar_can_shared=$GCC ;; 10908 esac 10909 if test yes = "$_lt_dar_can_shared"; then 10910 output_verbose_link_cmd=func_echo_all 10911 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10912 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10913 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" 10914 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" 10915 10916 else 10917 ld_shlibs=no 10918 fi 10919 10920 ;; 10921 10922 dgux*) 10923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10924 hardcode_libdir_flag_spec='-L$libdir' 10925 hardcode_shlibpath_var=no 10926 ;; 10927 10928 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10929 # support. Future versions do this automatically, but an explicit c++rt0.o 10930 # does not break anything, and helps significantly (at the cost of a little 10931 # extra space). 10932 freebsd2.2*) 10933 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10934 hardcode_libdir_flag_spec='-R$libdir' 10935 hardcode_direct=yes 10936 hardcode_shlibpath_var=no 10937 ;; 10938 10939 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10940 freebsd2.*) 10941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10942 hardcode_direct=yes 10943 hardcode_minus_L=yes 10944 hardcode_shlibpath_var=no 10945 ;; 10946 10947 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10948 freebsd* | dragonfly* | midnightbsd*) 10949 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10950 hardcode_libdir_flag_spec='-R$libdir' 10951 hardcode_direct=yes 10952 hardcode_shlibpath_var=no 10953 ;; 10954 10955 hpux9*) 10956 if test yes = "$GCC"; then 10957 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' 10958 else 10959 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' 10960 fi 10961 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10962 hardcode_libdir_separator=: 10963 hardcode_direct=yes 10964 10965 # hardcode_minus_L: Not really in the search PATH, 10966 # but as the default location of the library. 10967 hardcode_minus_L=yes 10968 export_dynamic_flag_spec='$wl-E' 10969 ;; 10970 10971 hpux10*) 10972 if test yes,no = "$GCC,$with_gnu_ld"; then 10973 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10974 else 10975 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10976 fi 10977 if test no = "$with_gnu_ld"; then 10978 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10979 hardcode_libdir_separator=: 10980 hardcode_direct=yes 10981 hardcode_direct_absolute=yes 10982 export_dynamic_flag_spec='$wl-E' 10983 # hardcode_minus_L: Not really in the search PATH, 10984 # but as the default location of the library. 10985 hardcode_minus_L=yes 10986 fi 10987 ;; 10988 10989 hpux11*) 10990 if test yes,no = "$GCC,$with_gnu_ld"; then 10991 case $host_cpu in 10992 hppa*64*) 10993 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10994 ;; 10995 ia64*) 10996 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10997 ;; 10998 *) 10999 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11000 ;; 11001 esac 11002 else 11003 case $host_cpu in 11004 hppa*64*) 11005 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11006 ;; 11007 ia64*) 11008 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11009 ;; 11010 *) 11011 11012 # Older versions of the 11.00 compiler do not understand -b yet 11013 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11015 printf %s "checking if $CC understands -b... " >&6; } 11016 if test ${lt_cv_prog_compiler__b+y} 11017 then : 11018 printf %s "(cached) " >&6 11019 else case e in #( 11020 e) lt_cv_prog_compiler__b=no 11021 save_LDFLAGS=$LDFLAGS 11022 LDFLAGS="$LDFLAGS -b" 11023 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11024 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11025 # The linker can only warn and ignore the option if not recognized 11026 # So say no if there are warnings 11027 if test -s conftest.err; then 11028 # Append any errors to the config.log. 11029 cat conftest.err 1>&5 11030 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11032 if diff conftest.exp conftest.er2 >/dev/null; then 11033 lt_cv_prog_compiler__b=yes 11034 fi 11035 else 11036 lt_cv_prog_compiler__b=yes 11037 fi 11038 fi 11039 $RM -r conftest* 11040 LDFLAGS=$save_LDFLAGS 11041 ;; 11042 esac 11043 fi 11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11045 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11046 11047 if test yes = "$lt_cv_prog_compiler__b"; then 11048 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11049 else 11050 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11051 fi 11052 11053 ;; 11054 esac 11055 fi 11056 if test no = "$with_gnu_ld"; then 11057 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11058 hardcode_libdir_separator=: 11059 11060 case $host_cpu in 11061 hppa*64*|ia64*) 11062 hardcode_direct=no 11063 hardcode_shlibpath_var=no 11064 ;; 11065 *) 11066 hardcode_direct=yes 11067 hardcode_direct_absolute=yes 11068 export_dynamic_flag_spec='$wl-E' 11069 11070 # hardcode_minus_L: Not really in the search PATH, 11071 # but as the default location of the library. 11072 hardcode_minus_L=yes 11073 ;; 11074 esac 11075 fi 11076 ;; 11077 11078 irix5* | irix6* | nonstopux*) 11079 if test yes = "$GCC"; then 11080 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' 11081 # Try to use the -exported_symbol ld option, if it does not 11082 # work, assume that -exports_file does not work either and 11083 # implicitly export all symbols. 11084 # This should be the same for all languages, so no per-tag cache variable. 11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11086 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11087 if test ${lt_cv_irix_exported_symbol+y} 11088 then : 11089 printf %s "(cached) " >&6 11090 else case e in #( 11091 e) save_LDFLAGS=$LDFLAGS 11092 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11094 /* end confdefs.h. */ 11095 int foo (void) { return 0; } 11096 _ACEOF 11097 if ac_fn_c_try_link "$LINENO" 11098 then : 11099 lt_cv_irix_exported_symbol=yes 11100 else case e in #( 11101 e) lt_cv_irix_exported_symbol=no ;; 11102 esac 11103 fi 11104 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11105 conftest$ac_exeext conftest.$ac_ext 11106 LDFLAGS=$save_LDFLAGS ;; 11107 esac 11108 fi 11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11110 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11111 if test yes = "$lt_cv_irix_exported_symbol"; then 11112 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' 11113 fi 11114 else 11115 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' 11116 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' 11117 fi 11118 archive_cmds_need_lc='no' 11119 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11120 hardcode_libdir_separator=: 11121 inherit_rpath=yes 11122 link_all_deplibs=yes 11123 ;; 11124 11125 linux*) 11126 case $cc_basename in 11127 tcc*) 11128 # Fabrice Bellard et al's Tiny C Compiler 11129 ld_shlibs=yes 11130 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11131 ;; 11132 esac 11133 ;; 11134 11135 netbsd*) 11136 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11137 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11138 else 11139 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11140 fi 11141 hardcode_libdir_flag_spec='-R$libdir' 11142 hardcode_direct=yes 11143 hardcode_shlibpath_var=no 11144 ;; 11145 11146 newsos6) 11147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11148 hardcode_direct=yes 11149 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11150 hardcode_libdir_separator=: 11151 hardcode_shlibpath_var=no 11152 ;; 11153 11154 *nto* | *qnx*) 11155 ;; 11156 11157 openbsd* | bitrig*) 11158 if test -f /usr/libexec/ld.so; then 11159 hardcode_direct=yes 11160 hardcode_shlibpath_var=no 11161 hardcode_direct_absolute=yes 11162 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11163 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11164 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11165 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11166 export_dynamic_flag_spec='$wl-E' 11167 else 11168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11169 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11170 fi 11171 else 11172 ld_shlibs=no 11173 fi 11174 ;; 11175 11176 os2*) 11177 hardcode_libdir_flag_spec='-L$libdir' 11178 hardcode_minus_L=yes 11179 allow_undefined_flag=unsupported 11180 shrext_cmds=.dll 11181 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11184 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11185 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11187 emximp -o $lib $output_objdir/$libname.def' 11188 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11189 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11190 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11191 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11192 prefix_cmds="$SED"~ 11193 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11194 prefix_cmds="$prefix_cmds -e 1d"; 11195 fi~ 11196 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11197 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11199 emximp -o $lib $output_objdir/$libname.def' 11200 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11201 enable_shared_with_static_runtimes=yes 11202 file_list_spec='@' 11203 ;; 11204 11205 osf3*) 11206 if test yes = "$GCC"; then 11207 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11208 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' 11209 else 11210 allow_undefined_flag=' -expect_unresolved \*' 11211 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' 11212 fi 11213 archive_cmds_need_lc='no' 11214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11215 hardcode_libdir_separator=: 11216 ;; 11217 11218 osf4* | osf5*) # as osf3* with the addition of -msym flag 11219 if test yes = "$GCC"; then 11220 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11221 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' 11222 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11223 else 11224 allow_undefined_flag=' -expect_unresolved \*' 11225 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' 11226 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~ 11227 $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' 11228 11229 # Both c and cxx compiler support -rpath directly 11230 hardcode_libdir_flag_spec='-rpath $libdir' 11231 fi 11232 archive_cmds_need_lc='no' 11233 hardcode_libdir_separator=: 11234 ;; 11235 11236 solaris*) 11237 no_undefined_flag=' -z defs' 11238 if test yes = "$GCC"; then 11239 wlarc='$wl' 11240 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11241 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11242 $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' 11243 else 11244 case `$CC -V 2>&1` in 11245 *"Compilers 5.0"*) 11246 wlarc='' 11247 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11248 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11249 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11250 ;; 11251 *) 11252 wlarc='$wl' 11253 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11254 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11255 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11256 ;; 11257 esac 11258 fi 11259 hardcode_libdir_flag_spec='-R$libdir' 11260 hardcode_shlibpath_var=no 11261 case $host_os in 11262 solaris2.[0-5] | solaris2.[0-5].*) ;; 11263 *) 11264 # The compiler driver will combine and reorder linker options, 11265 # but understands '-z linker_flag'. GCC discards it without '$wl', 11266 # but is careful enough not to reorder. 11267 # Supported since Solaris 2.6 (maybe 2.5.1?) 11268 if test yes = "$GCC"; then 11269 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11270 else 11271 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11272 fi 11273 ;; 11274 esac 11275 link_all_deplibs=yes 11276 ;; 11277 11278 sunos4*) 11279 if test sequent = "$host_vendor"; then 11280 # Use $CC to link under sequent, because it throws in some extra .o 11281 # files that make .init and .fini sections work. 11282 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11283 else 11284 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11285 fi 11286 hardcode_libdir_flag_spec='-L$libdir' 11287 hardcode_direct=yes 11288 hardcode_minus_L=yes 11289 hardcode_shlibpath_var=no 11290 ;; 11291 11292 sysv4) 11293 case $host_vendor in 11294 sni) 11295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11296 hardcode_direct=yes # is this really true??? 11297 ;; 11298 siemens) 11299 ## LD is ld it makes a PLAMLIB 11300 ## CC just makes a GrossModule. 11301 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11302 reload_cmds='$CC -r -o $output$reload_objs' 11303 hardcode_direct=no 11304 ;; 11305 motorola) 11306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11307 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11308 ;; 11309 esac 11310 runpath_var='LD_RUN_PATH' 11311 hardcode_shlibpath_var=no 11312 ;; 11313 11314 sysv4.3*) 11315 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11316 hardcode_shlibpath_var=no 11317 export_dynamic_flag_spec='-Bexport' 11318 ;; 11319 11320 sysv4*MP*) 11321 if test -d /usr/nec; then 11322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11323 hardcode_shlibpath_var=no 11324 runpath_var=LD_RUN_PATH 11325 hardcode_runpath_var=yes 11326 ld_shlibs=yes 11327 fi 11328 ;; 11329 11330 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11331 no_undefined_flag='$wl-z,text' 11332 archive_cmds_need_lc=no 11333 hardcode_shlibpath_var=no 11334 runpath_var='LD_RUN_PATH' 11335 11336 if test yes = "$GCC"; then 11337 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11338 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11339 else 11340 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11341 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11342 fi 11343 ;; 11344 11345 sysv5* | sco3.2v5* | sco5v6*) 11346 # Note: We CANNOT use -z defs as we might desire, because we do not 11347 # link with -lc, and that would cause any symbols used from libc to 11348 # always be unresolved, which means just about no library would 11349 # ever link correctly. If we're not using GNU ld we use -z text 11350 # though, which does catch some bad symbols but isn't as heavy-handed 11351 # as -z defs. 11352 no_undefined_flag='$wl-z,text' 11353 allow_undefined_flag='$wl-z,nodefs' 11354 archive_cmds_need_lc=no 11355 hardcode_shlibpath_var=no 11356 hardcode_libdir_flag_spec='$wl-R,$libdir' 11357 hardcode_libdir_separator=':' 11358 link_all_deplibs=yes 11359 export_dynamic_flag_spec='$wl-Bexport' 11360 runpath_var='LD_RUN_PATH' 11361 11362 if test yes = "$GCC"; then 11363 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11364 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11365 else 11366 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11367 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11368 fi 11369 ;; 11370 11371 uts4*) 11372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11373 hardcode_libdir_flag_spec='-L$libdir' 11374 hardcode_shlibpath_var=no 11375 ;; 11376 11377 *) 11378 ld_shlibs=no 11379 ;; 11380 esac 11381 11382 if test sni = "$host_vendor"; then 11383 case $host in 11384 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11385 export_dynamic_flag_spec='$wl-Blargedynsym' 11386 ;; 11387 esac 11388 fi 11389 fi 11390 11391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11392 printf "%s\n" "$ld_shlibs" >&6; } 11393 test no = "$ld_shlibs" && can_build_shared=no 11394 11395 with_gnu_ld=$with_gnu_ld 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 # 11412 # Do we need to explicitly link libc? 11413 # 11414 case "x$archive_cmds_need_lc" in 11415 x|xyes) 11416 # Assume -lc should be added 11417 archive_cmds_need_lc=yes 11418 11419 if test yes,yes = "$GCC,$enable_shared"; then 11420 case $archive_cmds in 11421 *'~'*) 11422 # FIXME: we may have to deal with multi-command sequences. 11423 ;; 11424 '$CC '*) 11425 # Test whether the compiler implicitly links with -lc since on some 11426 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11427 # to ld, don't add -lc before -lgcc. 11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11429 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11430 if test ${lt_cv_archive_cmds_need_lc+y} 11431 then : 11432 printf %s "(cached) " >&6 11433 else case e in #( 11434 e) $RM conftest* 11435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11436 11437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11438 (eval $ac_compile) 2>&5 11439 ac_status=$? 11440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11441 test $ac_status = 0; } 2>conftest.err; then 11442 soname=conftest 11443 lib=conftest 11444 libobjs=conftest.$ac_objext 11445 deplibs= 11446 wl=$lt_prog_compiler_wl 11447 pic_flag=$lt_prog_compiler_pic 11448 compiler_flags=-v 11449 linker_flags=-v 11450 verstring= 11451 output_objdir=. 11452 libname=conftest 11453 lt_save_allow_undefined_flag=$allow_undefined_flag 11454 allow_undefined_flag= 11455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11456 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11457 ac_status=$? 11458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11459 test $ac_status = 0; } 11460 then 11461 lt_cv_archive_cmds_need_lc=no 11462 else 11463 lt_cv_archive_cmds_need_lc=yes 11464 fi 11465 allow_undefined_flag=$lt_save_allow_undefined_flag 11466 else 11467 cat conftest.err 1>&5 11468 fi 11469 $RM conftest* 11470 ;; 11471 esac 11472 fi 11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11474 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11475 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11476 ;; 11477 esac 11478 fi 11479 ;; 11480 esac 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11634 printf %s "checking dynamic linker characteristics... " >&6; } 11635 11636 if test yes = "$GCC"; then 11637 case $host_os in 11638 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11639 *) lt_awk_arg='/^libraries:/' ;; 11640 esac 11641 case $host_os in 11642 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11643 *) lt_sed_strip_eq='s|=/|/|g' ;; 11644 esac 11645 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11646 case $lt_search_path_spec in 11647 *\;*) 11648 # if the path contains ";" then we assume it to be the separator 11649 # otherwise default to the standard path separator (i.e. ":") - it is 11650 # assumed that no part of a normal pathname contains ";" but that should 11651 # okay in the real world where ";" in dirpaths is itself problematic. 11652 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11653 ;; 11654 *) 11655 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11656 ;; 11657 esac 11658 # Ok, now we have the path, separated by spaces, we can step through it 11659 # and add multilib dir if necessary... 11660 lt_tmp_lt_search_path_spec= 11661 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11662 # ...but if some path component already ends with the multilib dir we assume 11663 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11664 case "$lt_multi_os_dir; $lt_search_path_spec " in 11665 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11666 lt_multi_os_dir= 11667 ;; 11668 esac 11669 for lt_sys_path in $lt_search_path_spec; do 11670 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11671 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11672 elif test -n "$lt_multi_os_dir"; then 11673 test -d "$lt_sys_path" && \ 11674 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11675 fi 11676 done 11677 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11678 BEGIN {RS = " "; FS = "/|\n";} { 11679 lt_foo = ""; 11680 lt_count = 0; 11681 for (lt_i = NF; lt_i > 0; lt_i--) { 11682 if ($lt_i != "" && $lt_i != ".") { 11683 if ($lt_i == "..") { 11684 lt_count++; 11685 } else { 11686 if (lt_count == 0) { 11687 lt_foo = "/" $lt_i lt_foo; 11688 } else { 11689 lt_count--; 11690 } 11691 } 11692 } 11693 } 11694 if (lt_foo != "") { lt_freq[lt_foo]++; } 11695 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11696 }'` 11697 # AWK program above erroneously prepends '/' to C:/dos/paths 11698 # for these hosts. 11699 case $host_os in 11700 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11701 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11702 esac 11703 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11704 else 11705 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11706 fi 11707 library_names_spec= 11708 libname_spec='lib$name' 11709 soname_spec= 11710 shrext_cmds=.so 11711 postinstall_cmds= 11712 postuninstall_cmds= 11713 finish_cmds= 11714 finish_eval= 11715 shlibpath_var= 11716 shlibpath_overrides_runpath=unknown 11717 version_type=none 11718 dynamic_linker="$host_os ld.so" 11719 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11720 need_lib_prefix=unknown 11721 hardcode_into_libs=no 11722 11723 # when you set need_version to no, make sure it does not cause -set_version 11724 # flags to be left without arguments 11725 need_version=unknown 11726 11727 11728 11729 case $host_os in 11730 aix3*) 11731 version_type=linux # correct to gnu/linux during the next big refactor 11732 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11733 shlibpath_var=LIBPATH 11734 11735 # AIX 3 has no versioning support, so we append a major version to the name. 11736 soname_spec='$libname$release$shared_ext$major' 11737 ;; 11738 11739 aix[4-9]*) 11740 version_type=linux # correct to gnu/linux during the next big refactor 11741 need_lib_prefix=no 11742 need_version=no 11743 hardcode_into_libs=yes 11744 if test ia64 = "$host_cpu"; then 11745 # AIX 5 supports IA64 11746 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11747 shlibpath_var=LD_LIBRARY_PATH 11748 else 11749 # With GCC up to 2.95.x, collect2 would create an import file 11750 # for dependence libraries. The import file would start with 11751 # the line '#! .'. This would cause the generated library to 11752 # depend on '.', always an invalid library. This was fixed in 11753 # development snapshots of GCC prior to 3.0. 11754 case $host_os in 11755 aix4 | aix4.[01] | aix4.[01].*) 11756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11757 echo ' yes ' 11758 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11759 : 11760 else 11761 can_build_shared=no 11762 fi 11763 ;; 11764 esac 11765 # Using Import Files as archive members, it is possible to support 11766 # filename-based versioning of shared library archives on AIX. While 11767 # this would work for both with and without runtime linking, it will 11768 # prevent static linking of such archives. So we do filename-based 11769 # shared library versioning with .so extension only, which is used 11770 # when both runtime linking and shared linking is enabled. 11771 # Unfortunately, runtime linking may impact performance, so we do 11772 # not want this to be the default eventually. Also, we use the 11773 # versioned .so libs for executables only if there is the -brtl 11774 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11775 # To allow for filename-based versioning support, we need to create 11776 # libNAME.so.V as an archive file, containing: 11777 # *) an Import File, referring to the versioned filename of the 11778 # archive as well as the shared archive member, telling the 11779 # bitwidth (32 or 64) of that shared object, and providing the 11780 # list of exported symbols of that shared object, eventually 11781 # decorated with the 'weak' keyword 11782 # *) the shared object with the F_LOADONLY flag set, to really avoid 11783 # it being seen by the linker. 11784 # At run time we better use the real file rather than another symlink, 11785 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11786 11787 case $with_aix_soname,$aix_use_runtimelinking in 11788 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11789 # soname into executable. Probably we can add versioning support to 11790 # collect2, so additional links can be useful in future. 11791 aix,yes) # traditional libtool 11792 dynamic_linker='AIX unversionable lib.so' 11793 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11794 # instead of lib<name>.a to let people know that these are not 11795 # typical AIX shared libraries. 11796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11797 ;; 11798 aix,no) # traditional AIX only 11799 dynamic_linker='AIX lib.a(lib.so.V)' 11800 # We preserve .a as extension for shared libraries through AIX4.2 11801 # and later when we are not doing run time linking. 11802 library_names_spec='$libname$release.a $libname.a' 11803 soname_spec='$libname$release$shared_ext$major' 11804 ;; 11805 svr4,*) # full svr4 only 11806 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11807 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11808 # We do not specify a path in Import Files, so LIBPATH fires. 11809 shlibpath_overrides_runpath=yes 11810 ;; 11811 *,yes) # both, prefer svr4 11812 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11813 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11814 # unpreferred sharedlib libNAME.a needs extra handling 11815 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"' 11816 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"' 11817 # We do not specify a path in Import Files, so LIBPATH fires. 11818 shlibpath_overrides_runpath=yes 11819 ;; 11820 *,no) # both, prefer aix 11821 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11822 library_names_spec='$libname$release.a $libname.a' 11823 soname_spec='$libname$release$shared_ext$major' 11824 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11825 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)' 11826 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"' 11827 ;; 11828 esac 11829 shlibpath_var=LIBPATH 11830 fi 11831 ;; 11832 11833 amigaos*) 11834 case $host_cpu in 11835 powerpc) 11836 # Since July 2007 AmigaOS4 officially supports .so libraries. 11837 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11838 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11839 ;; 11840 m68k) 11841 library_names_spec='$libname.ixlibrary $libname.a' 11842 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11843 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' 11844 ;; 11845 esac 11846 ;; 11847 11848 beos*) 11849 library_names_spec='$libname$shared_ext' 11850 dynamic_linker="$host_os ld.so" 11851 shlibpath_var=LIBRARY_PATH 11852 ;; 11853 11854 bsdi[45]*) 11855 version_type=linux # correct to gnu/linux during the next big refactor 11856 need_version=no 11857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11858 soname_spec='$libname$release$shared_ext$major' 11859 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11860 shlibpath_var=LD_LIBRARY_PATH 11861 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11862 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11863 # the default ld.so.conf also contains /usr/contrib/lib and 11864 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11865 # libtool to hard-code these into programs 11866 ;; 11867 11868 cygwin* | mingw* | pw32* | cegcc*) 11869 version_type=windows 11870 shrext_cmds=.dll 11871 need_version=no 11872 need_lib_prefix=no 11873 11874 case $GCC,$cc_basename in 11875 yes,*) 11876 # gcc 11877 library_names_spec='$libname.dll.a' 11878 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11879 postinstall_cmds='base_file=`basename \$file`~ 11880 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11881 dldir=$destdir/`dirname \$dlpath`~ 11882 test -d \$dldir || mkdir -p \$dldir~ 11883 $install_prog $dir/$dlname \$dldir/$dlname~ 11884 chmod a+x \$dldir/$dlname~ 11885 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11886 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11887 fi' 11888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11889 dlpath=$dir/\$dldll~ 11890 $RM \$dlpath' 11891 shlibpath_overrides_runpath=yes 11892 11893 case $host_os in 11894 cygwin*) 11895 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11896 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11897 11898 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11899 ;; 11900 mingw* | cegcc*) 11901 # MinGW DLLs use traditional 'lib' prefix 11902 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11903 ;; 11904 pw32*) 11905 # pw32 DLLs use 'pw' prefix rather than 'lib' 11906 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11907 ;; 11908 esac 11909 dynamic_linker='Win32 ld.exe' 11910 ;; 11911 11912 *,cl* | *,icl*) 11913 # Native MSVC or ICC 11914 libname_spec='$name' 11915 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11916 library_names_spec='$libname.dll.lib' 11917 11918 case $build_os in 11919 mingw*) 11920 sys_lib_search_path_spec= 11921 lt_save_ifs=$IFS 11922 IFS=';' 11923 for lt_path in $LIB 11924 do 11925 IFS=$lt_save_ifs 11926 # Let DOS variable expansion print the short 8.3 style file name. 11927 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11928 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11929 done 11930 IFS=$lt_save_ifs 11931 # Convert to MSYS style. 11932 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11933 ;; 11934 cygwin*) 11935 # Convert to unix form, then to dos form, then back to unix form 11936 # but this time dos style (no spaces!) so that the unix form looks 11937 # like /cygdrive/c/PROGRA~1:/cygdr... 11938 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11939 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11940 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11941 ;; 11942 *) 11943 sys_lib_search_path_spec=$LIB 11944 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11945 # It is most probably a Windows format PATH. 11946 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11947 else 11948 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11949 fi 11950 # FIXME: find the short name or the path components, as spaces are 11951 # common. (e.g. "Program Files" -> "PROGRA~1") 11952 ;; 11953 esac 11954 11955 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11956 postinstall_cmds='base_file=`basename \$file`~ 11957 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11958 dldir=$destdir/`dirname \$dlpath`~ 11959 test -d \$dldir || mkdir -p \$dldir~ 11960 $install_prog $dir/$dlname \$dldir/$dlname' 11961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11962 dlpath=$dir/\$dldll~ 11963 $RM \$dlpath' 11964 shlibpath_overrides_runpath=yes 11965 dynamic_linker='Win32 link.exe' 11966 ;; 11967 11968 *) 11969 # Assume MSVC and ICC wrapper 11970 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11971 dynamic_linker='Win32 ld.exe' 11972 ;; 11973 esac 11974 # FIXME: first we should search . and the directory the executable is in 11975 shlibpath_var=PATH 11976 ;; 11977 11978 darwin* | rhapsody*) 11979 dynamic_linker="$host_os dyld" 11980 version_type=darwin 11981 need_lib_prefix=no 11982 need_version=no 11983 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11984 soname_spec='$libname$release$major$shared_ext' 11985 shlibpath_overrides_runpath=yes 11986 shlibpath_var=DYLD_LIBRARY_PATH 11987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11988 11989 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11990 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11991 ;; 11992 11993 dgux*) 11994 version_type=linux # correct to gnu/linux during the next big refactor 11995 need_lib_prefix=no 11996 need_version=no 11997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11998 soname_spec='$libname$release$shared_ext$major' 11999 shlibpath_var=LD_LIBRARY_PATH 12000 ;; 12001 12002 freebsd* | dragonfly* | midnightbsd*) 12003 # DragonFly does not have aout. When/if they implement a new 12004 # versioning mechanism, adjust this. 12005 if test -x /usr/bin/objformat; then 12006 objformat=`/usr/bin/objformat` 12007 else 12008 case $host_os in 12009 freebsd[23].*) objformat=aout ;; 12010 *) objformat=elf ;; 12011 esac 12012 fi 12013 version_type=freebsd-$objformat 12014 case $version_type in 12015 freebsd-elf*) 12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12017 soname_spec='$libname$release$shared_ext$major' 12018 need_version=no 12019 need_lib_prefix=no 12020 ;; 12021 freebsd-*) 12022 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12023 need_version=yes 12024 ;; 12025 esac 12026 shlibpath_var=LD_LIBRARY_PATH 12027 case $host_os in 12028 freebsd2.*) 12029 shlibpath_overrides_runpath=yes 12030 ;; 12031 freebsd3.[01]* | freebsdelf3.[01]*) 12032 shlibpath_overrides_runpath=yes 12033 hardcode_into_libs=yes 12034 ;; 12035 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12036 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12037 shlibpath_overrides_runpath=no 12038 hardcode_into_libs=yes 12039 ;; 12040 *) # from 4.6 on, and DragonFly 12041 shlibpath_overrides_runpath=yes 12042 hardcode_into_libs=yes 12043 ;; 12044 esac 12045 ;; 12046 12047 haiku*) 12048 version_type=linux # correct to gnu/linux during the next big refactor 12049 need_lib_prefix=no 12050 need_version=no 12051 dynamic_linker="$host_os runtime_loader" 12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12053 soname_spec='$libname$release$shared_ext$major' 12054 shlibpath_var=LIBRARY_PATH 12055 shlibpath_overrides_runpath=no 12056 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12057 hardcode_into_libs=yes 12058 ;; 12059 12060 hpux9* | hpux10* | hpux11*) 12061 # Give a soname corresponding to the major version so that dld.sl refuses to 12062 # link against other versions. 12063 version_type=sunos 12064 need_lib_prefix=no 12065 need_version=no 12066 case $host_cpu in 12067 ia64*) 12068 shrext_cmds='.so' 12069 hardcode_into_libs=yes 12070 dynamic_linker="$host_os dld.so" 12071 shlibpath_var=LD_LIBRARY_PATH 12072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12074 soname_spec='$libname$release$shared_ext$major' 12075 if test 32 = "$HPUX_IA64_MODE"; then 12076 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12077 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12078 else 12079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12080 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12081 fi 12082 ;; 12083 hppa*64*) 12084 shrext_cmds='.sl' 12085 hardcode_into_libs=yes 12086 dynamic_linker="$host_os dld.sl" 12087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12090 soname_spec='$libname$release$shared_ext$major' 12091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12093 ;; 12094 *) 12095 shrext_cmds='.sl' 12096 dynamic_linker="$host_os dld.sl" 12097 shlibpath_var=SHLIB_PATH 12098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12100 soname_spec='$libname$release$shared_ext$major' 12101 ;; 12102 esac 12103 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12104 postinstall_cmds='chmod 555 $lib' 12105 # or fails outright, so override atomically: 12106 install_override_mode=555 12107 ;; 12108 12109 interix[3-9]*) 12110 version_type=linux # correct to gnu/linux during the next big refactor 12111 need_lib_prefix=no 12112 need_version=no 12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12114 soname_spec='$libname$release$shared_ext$major' 12115 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12116 shlibpath_var=LD_LIBRARY_PATH 12117 shlibpath_overrides_runpath=no 12118 hardcode_into_libs=yes 12119 ;; 12120 12121 irix5* | irix6* | nonstopux*) 12122 case $host_os in 12123 nonstopux*) version_type=nonstopux ;; 12124 *) 12125 if test yes = "$lt_cv_prog_gnu_ld"; then 12126 version_type=linux # correct to gnu/linux during the next big refactor 12127 else 12128 version_type=irix 12129 fi ;; 12130 esac 12131 need_lib_prefix=no 12132 need_version=no 12133 soname_spec='$libname$release$shared_ext$major' 12134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12135 case $host_os in 12136 irix5* | nonstopux*) 12137 libsuff= shlibsuff= 12138 ;; 12139 *) 12140 case $LD in # libtool.m4 will add one of these switches to LD 12141 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12142 libsuff= shlibsuff= libmagic=32-bit;; 12143 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12144 libsuff=32 shlibsuff=N32 libmagic=N32;; 12145 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12146 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12147 *) libsuff= shlibsuff= libmagic=never-match;; 12148 esac 12149 ;; 12150 esac 12151 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12152 shlibpath_overrides_runpath=no 12153 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12154 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12155 hardcode_into_libs=yes 12156 ;; 12157 12158 # No shared lib support for Linux oldld, aout, or coff. 12159 linux*oldld* | linux*aout* | linux*coff*) 12160 dynamic_linker=no 12161 ;; 12162 12163 linux*android*) 12164 version_type=none # Android doesn't support versioned libraries. 12165 need_lib_prefix=no 12166 need_version=no 12167 library_names_spec='$libname$release$shared_ext' 12168 soname_spec='$libname$release$shared_ext' 12169 finish_cmds= 12170 shlibpath_var=LD_LIBRARY_PATH 12171 shlibpath_overrides_runpath=yes 12172 12173 # This implies no fast_install, which is unacceptable. 12174 # Some rework will be needed to allow for fast_install 12175 # before this can be enabled. 12176 hardcode_into_libs=yes 12177 12178 dynamic_linker='Android linker' 12179 # Don't embed -rpath directories since the linker doesn't support them. 12180 hardcode_libdir_flag_spec='-L$libdir' 12181 ;; 12182 12183 # This must be glibc/ELF. 12184 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12185 version_type=linux # correct to gnu/linux during the next big refactor 12186 need_lib_prefix=no 12187 need_version=no 12188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12189 soname_spec='$libname$release$shared_ext$major' 12190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12191 shlibpath_var=LD_LIBRARY_PATH 12192 shlibpath_overrides_runpath=no 12193 12194 # Some binutils ld are patched to set DT_RUNPATH 12195 if test ${lt_cv_shlibpath_overrides_runpath+y} 12196 then : 12197 printf %s "(cached) " >&6 12198 else case e in #( 12199 e) lt_cv_shlibpath_overrides_runpath=no 12200 save_LDFLAGS=$LDFLAGS 12201 save_libdir=$libdir 12202 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12203 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12205 /* end confdefs.h. */ 12206 12207 int 12208 main (void) 12209 { 12210 12211 ; 12212 return 0; 12213 } 12214 _ACEOF 12215 if ac_fn_c_try_link "$LINENO" 12216 then : 12217 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12218 then : 12219 lt_cv_shlibpath_overrides_runpath=yes 12220 fi 12221 fi 12222 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12223 conftest$ac_exeext conftest.$ac_ext 12224 LDFLAGS=$save_LDFLAGS 12225 libdir=$save_libdir 12226 ;; 12227 esac 12228 fi 12229 12230 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12231 12232 # This implies no fast_install, which is unacceptable. 12233 # Some rework will be needed to allow for fast_install 12234 # before this can be enabled. 12235 hardcode_into_libs=yes 12236 12237 # Ideally, we could use ldconfig to report *all* directores which are 12238 # searched for libraries, however this is still not possible. Aside from not 12239 # being certain /sbin/ldconfig is available, command 12240 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12241 # even though it is searched at run-time. Try to do the best guess by 12242 # appending ld.so.conf contents (and includes) to the search path. 12243 if test -f /etc/ld.so.conf; then 12244 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' ' '` 12245 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12246 fi 12247 12248 # We used to test for /lib/ld.so.1 and disable shared libraries on 12249 # powerpc, because MkLinux only supported shared libraries with the 12250 # GNU dynamic linker. Since this was broken with cross compilers, 12251 # most powerpc-linux boxes support dynamic linking these days and 12252 # people can always --disable-shared, the test was removed, and we 12253 # assume the GNU/Linux dynamic linker is in use. 12254 dynamic_linker='GNU/Linux ld.so' 12255 ;; 12256 12257 netbsd*) 12258 version_type=sunos 12259 need_lib_prefix=no 12260 need_version=no 12261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12262 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12264 dynamic_linker='NetBSD (a.out) ld.so' 12265 else 12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12267 soname_spec='$libname$release$shared_ext$major' 12268 dynamic_linker='NetBSD ld.elf_so' 12269 fi 12270 shlibpath_var=LD_LIBRARY_PATH 12271 shlibpath_overrides_runpath=yes 12272 hardcode_into_libs=yes 12273 ;; 12274 12275 newsos6) 12276 version_type=linux # correct to gnu/linux during the next big refactor 12277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12278 shlibpath_var=LD_LIBRARY_PATH 12279 shlibpath_overrides_runpath=yes 12280 ;; 12281 12282 *nto* | *qnx*) 12283 version_type=qnx 12284 need_lib_prefix=no 12285 need_version=no 12286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12287 soname_spec='$libname$release$shared_ext$major' 12288 shlibpath_var=LD_LIBRARY_PATH 12289 shlibpath_overrides_runpath=no 12290 hardcode_into_libs=yes 12291 dynamic_linker='ldqnx.so' 12292 ;; 12293 12294 openbsd* | bitrig*) 12295 version_type=sunos 12296 sys_lib_dlsearch_path_spec=/usr/lib 12297 need_lib_prefix=no 12298 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12299 need_version=no 12300 else 12301 need_version=yes 12302 fi 12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12305 shlibpath_var=LD_LIBRARY_PATH 12306 shlibpath_overrides_runpath=yes 12307 ;; 12308 12309 os2*) 12310 libname_spec='$name' 12311 version_type=windows 12312 shrext_cmds=.dll 12313 need_version=no 12314 need_lib_prefix=no 12315 # OS/2 can only load a DLL with a base name of 8 characters or less. 12316 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12317 v=$($ECHO $release$versuffix | tr -d .-); 12318 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12319 $ECHO $n$v`$shared_ext' 12320 library_names_spec='${libname}_dll.$libext' 12321 dynamic_linker='OS/2 ld.exe' 12322 shlibpath_var=BEGINLIBPATH 12323 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12324 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12325 postinstall_cmds='base_file=`basename \$file`~ 12326 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12327 dldir=$destdir/`dirname \$dlpath`~ 12328 test -d \$dldir || mkdir -p \$dldir~ 12329 $install_prog $dir/$dlname \$dldir/$dlname~ 12330 chmod a+x \$dldir/$dlname~ 12331 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12332 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12333 fi' 12334 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12335 dlpath=$dir/\$dldll~ 12336 $RM \$dlpath' 12337 ;; 12338 12339 osf3* | osf4* | osf5*) 12340 version_type=osf 12341 need_lib_prefix=no 12342 need_version=no 12343 soname_spec='$libname$release$shared_ext$major' 12344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12345 shlibpath_var=LD_LIBRARY_PATH 12346 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12348 ;; 12349 12350 rdos*) 12351 dynamic_linker=no 12352 ;; 12353 12354 solaris*) 12355 version_type=linux # correct to gnu/linux during the next big refactor 12356 need_lib_prefix=no 12357 need_version=no 12358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12359 soname_spec='$libname$release$shared_ext$major' 12360 shlibpath_var=LD_LIBRARY_PATH 12361 shlibpath_overrides_runpath=yes 12362 hardcode_into_libs=yes 12363 # ldd complains unless libraries are executable 12364 postinstall_cmds='chmod +x $lib' 12365 ;; 12366 12367 sunos4*) 12368 version_type=sunos 12369 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12370 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12371 shlibpath_var=LD_LIBRARY_PATH 12372 shlibpath_overrides_runpath=yes 12373 if test yes = "$with_gnu_ld"; then 12374 need_lib_prefix=no 12375 fi 12376 need_version=yes 12377 ;; 12378 12379 sysv4 | sysv4.3*) 12380 version_type=linux # correct to gnu/linux during the next big refactor 12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12382 soname_spec='$libname$release$shared_ext$major' 12383 shlibpath_var=LD_LIBRARY_PATH 12384 case $host_vendor in 12385 sni) 12386 shlibpath_overrides_runpath=no 12387 need_lib_prefix=no 12388 runpath_var=LD_RUN_PATH 12389 ;; 12390 siemens) 12391 need_lib_prefix=no 12392 ;; 12393 motorola) 12394 need_lib_prefix=no 12395 need_version=no 12396 shlibpath_overrides_runpath=no 12397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12398 ;; 12399 esac 12400 ;; 12401 12402 sysv4*MP*) 12403 if test -d /usr/nec; then 12404 version_type=linux # correct to gnu/linux during the next big refactor 12405 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12406 soname_spec='$libname$shared_ext.$major' 12407 shlibpath_var=LD_LIBRARY_PATH 12408 fi 12409 ;; 12410 12411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12412 version_type=sco 12413 need_lib_prefix=no 12414 need_version=no 12415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12416 soname_spec='$libname$release$shared_ext$major' 12417 shlibpath_var=LD_LIBRARY_PATH 12418 shlibpath_overrides_runpath=yes 12419 hardcode_into_libs=yes 12420 if test yes = "$with_gnu_ld"; then 12421 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12422 else 12423 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12424 case $host_os in 12425 sco3.2v5*) 12426 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12427 ;; 12428 esac 12429 fi 12430 sys_lib_dlsearch_path_spec='/usr/lib' 12431 ;; 12432 12433 tpf*) 12434 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12435 version_type=linux # correct to gnu/linux during the next big refactor 12436 need_lib_prefix=no 12437 need_version=no 12438 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12439 shlibpath_var=LD_LIBRARY_PATH 12440 shlibpath_overrides_runpath=no 12441 hardcode_into_libs=yes 12442 ;; 12443 12444 uts4*) 12445 version_type=linux # correct to gnu/linux during the next big refactor 12446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12447 soname_spec='$libname$release$shared_ext$major' 12448 shlibpath_var=LD_LIBRARY_PATH 12449 ;; 12450 12451 *) 12452 dynamic_linker=no 12453 ;; 12454 esac 12455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12456 printf "%s\n" "$dynamic_linker" >&6; } 12457 test no = "$dynamic_linker" && can_build_shared=no 12458 12459 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12460 if test yes = "$GCC"; then 12461 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12462 fi 12463 12464 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12465 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12466 fi 12467 12468 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12469 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12470 fi 12471 12472 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12473 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12474 12475 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12476 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12477 12478 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12479 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12578 printf %s "checking how to hardcode library paths into programs... " >&6; } 12579 hardcode_action= 12580 if test -n "$hardcode_libdir_flag_spec" || 12581 test -n "$runpath_var" || 12582 test yes = "$hardcode_automatic"; then 12583 12584 # We can hardcode non-existent directories. 12585 if test no != "$hardcode_direct" && 12586 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12587 # have to relink, otherwise we might link with an installed library 12588 # when we should be linking with a yet-to-be-installed one 12589 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12590 test no != "$hardcode_minus_L"; then 12591 # Linking always hardcodes the temporary library directory. 12592 hardcode_action=relink 12593 else 12594 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12595 hardcode_action=immediate 12596 fi 12597 else 12598 # We cannot hardcode anything, or else we can only hardcode existing 12599 # directories. 12600 hardcode_action=unsupported 12601 fi 12602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12603 printf "%s\n" "$hardcode_action" >&6; } 12604 12605 if test relink = "$hardcode_action" || 12606 test yes = "$inherit_rpath"; then 12607 # Fast installation is not supported 12608 enable_fast_install=no 12609 elif test yes = "$shlibpath_overrides_runpath" || 12610 test no = "$enable_shared"; then 12611 # Fast installation is not necessary 12612 enable_fast_install=needless 12613 fi 12614 12615 12616 12617 12618 12619 12620 if test yes != "$enable_dlopen"; then 12621 enable_dlopen=unknown 12622 enable_dlopen_self=unknown 12623 enable_dlopen_self_static=unknown 12624 else 12625 lt_cv_dlopen=no 12626 lt_cv_dlopen_libs= 12627 12628 case $host_os in 12629 beos*) 12630 lt_cv_dlopen=load_add_on 12631 lt_cv_dlopen_libs= 12632 lt_cv_dlopen_self=yes 12633 ;; 12634 12635 mingw* | pw32* | cegcc*) 12636 lt_cv_dlopen=LoadLibrary 12637 lt_cv_dlopen_libs= 12638 ;; 12639 12640 cygwin*) 12641 lt_cv_dlopen=dlopen 12642 lt_cv_dlopen_libs= 12643 ;; 12644 12645 darwin*) 12646 # if libdl is installed we need to link against it 12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12648 printf %s "checking for dlopen in -ldl... " >&6; } 12649 if test ${ac_cv_lib_dl_dlopen+y} 12650 then : 12651 printf %s "(cached) " >&6 12652 else case e in #( 12653 e) ac_check_lib_save_LIBS=$LIBS 12654 LIBS="-ldl $LIBS" 12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12656 /* end confdefs.h. */ 12657 12658 /* Override any GCC internal prototype to avoid an error. 12659 Use char because int might match the return type of a GCC 12660 builtin and then its argument prototype would still apply. 12661 The 'extern "C"' is for builds by C++ compilers; 12662 although this is not generally supported in C code supporting it here 12663 has little cost and some practical benefit (sr 110532). */ 12664 #ifdef __cplusplus 12665 extern "C" 12666 #endif 12667 char dlopen (void); 12668 int 12669 main (void) 12670 { 12671 return dlopen (); 12672 ; 12673 return 0; 12674 } 12675 _ACEOF 12676 if ac_fn_c_try_link "$LINENO" 12677 then : 12678 ac_cv_lib_dl_dlopen=yes 12679 else case e in #( 12680 e) ac_cv_lib_dl_dlopen=no ;; 12681 esac 12682 fi 12683 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12684 conftest$ac_exeext conftest.$ac_ext 12685 LIBS=$ac_check_lib_save_LIBS ;; 12686 esac 12687 fi 12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12689 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12690 if test "x$ac_cv_lib_dl_dlopen" = xyes 12691 then : 12692 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12693 else case e in #( 12694 e) 12695 lt_cv_dlopen=dyld 12696 lt_cv_dlopen_libs= 12697 lt_cv_dlopen_self=yes 12698 ;; 12699 esac 12700 fi 12701 12702 ;; 12703 12704 tpf*) 12705 # Don't try to run any link tests for TPF. We know it's impossible 12706 # because TPF is a cross-compiler, and we know how we open DSOs. 12707 lt_cv_dlopen=dlopen 12708 lt_cv_dlopen_libs= 12709 lt_cv_dlopen_self=no 12710 ;; 12711 12712 *) 12713 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12714 if test "x$ac_cv_func_shl_load" = xyes 12715 then : 12716 lt_cv_dlopen=shl_load 12717 else case e in #( 12718 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12719 printf %s "checking for shl_load in -ldld... " >&6; } 12720 if test ${ac_cv_lib_dld_shl_load+y} 12721 then : 12722 printf %s "(cached) " >&6 12723 else case e in #( 12724 e) ac_check_lib_save_LIBS=$LIBS 12725 LIBS="-ldld $LIBS" 12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12727 /* end confdefs.h. */ 12728 12729 /* Override any GCC internal prototype to avoid an error. 12730 Use char because int might match the return type of a GCC 12731 builtin and then its argument prototype would still apply. 12732 The 'extern "C"' is for builds by C++ compilers; 12733 although this is not generally supported in C code supporting it here 12734 has little cost and some practical benefit (sr 110532). */ 12735 #ifdef __cplusplus 12736 extern "C" 12737 #endif 12738 char shl_load (void); 12739 int 12740 main (void) 12741 { 12742 return shl_load (); 12743 ; 12744 return 0; 12745 } 12746 _ACEOF 12747 if ac_fn_c_try_link "$LINENO" 12748 then : 12749 ac_cv_lib_dld_shl_load=yes 12750 else case e in #( 12751 e) ac_cv_lib_dld_shl_load=no ;; 12752 esac 12753 fi 12754 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12755 conftest$ac_exeext conftest.$ac_ext 12756 LIBS=$ac_check_lib_save_LIBS ;; 12757 esac 12758 fi 12759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12760 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12761 if test "x$ac_cv_lib_dld_shl_load" = xyes 12762 then : 12763 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12764 else case e in #( 12765 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12766 if test "x$ac_cv_func_dlopen" = xyes 12767 then : 12768 lt_cv_dlopen=dlopen 12769 else case e in #( 12770 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12771 printf %s "checking for dlopen in -ldl... " >&6; } 12772 if test ${ac_cv_lib_dl_dlopen+y} 12773 then : 12774 printf %s "(cached) " >&6 12775 else case e in #( 12776 e) ac_check_lib_save_LIBS=$LIBS 12777 LIBS="-ldl $LIBS" 12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12779 /* end confdefs.h. */ 12780 12781 /* Override any GCC internal prototype to avoid an error. 12782 Use char because int might match the return type of a GCC 12783 builtin and then its argument prototype would still apply. 12784 The 'extern "C"' is for builds by C++ compilers; 12785 although this is not generally supported in C code supporting it here 12786 has little cost and some practical benefit (sr 110532). */ 12787 #ifdef __cplusplus 12788 extern "C" 12789 #endif 12790 char dlopen (void); 12791 int 12792 main (void) 12793 { 12794 return dlopen (); 12795 ; 12796 return 0; 12797 } 12798 _ACEOF 12799 if ac_fn_c_try_link "$LINENO" 12800 then : 12801 ac_cv_lib_dl_dlopen=yes 12802 else case e in #( 12803 e) ac_cv_lib_dl_dlopen=no ;; 12804 esac 12805 fi 12806 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12807 conftest$ac_exeext conftest.$ac_ext 12808 LIBS=$ac_check_lib_save_LIBS ;; 12809 esac 12810 fi 12811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12812 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12813 if test "x$ac_cv_lib_dl_dlopen" = xyes 12814 then : 12815 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12816 else case e in #( 12817 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12818 printf %s "checking for dlopen in -lsvld... " >&6; } 12819 if test ${ac_cv_lib_svld_dlopen+y} 12820 then : 12821 printf %s "(cached) " >&6 12822 else case e in #( 12823 e) ac_check_lib_save_LIBS=$LIBS 12824 LIBS="-lsvld $LIBS" 12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12826 /* end confdefs.h. */ 12827 12828 /* Override any GCC internal prototype to avoid an error. 12829 Use char because int might match the return type of a GCC 12830 builtin and then its argument prototype would still apply. 12831 The 'extern "C"' is for builds by C++ compilers; 12832 although this is not generally supported in C code supporting it here 12833 has little cost and some practical benefit (sr 110532). */ 12834 #ifdef __cplusplus 12835 extern "C" 12836 #endif 12837 char dlopen (void); 12838 int 12839 main (void) 12840 { 12841 return dlopen (); 12842 ; 12843 return 0; 12844 } 12845 _ACEOF 12846 if ac_fn_c_try_link "$LINENO" 12847 then : 12848 ac_cv_lib_svld_dlopen=yes 12849 else case e in #( 12850 e) ac_cv_lib_svld_dlopen=no ;; 12851 esac 12852 fi 12853 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12854 conftest$ac_exeext conftest.$ac_ext 12855 LIBS=$ac_check_lib_save_LIBS ;; 12856 esac 12857 fi 12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12859 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12860 if test "x$ac_cv_lib_svld_dlopen" = xyes 12861 then : 12862 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12863 else case e in #( 12864 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12865 printf %s "checking for dld_link in -ldld... " >&6; } 12866 if test ${ac_cv_lib_dld_dld_link+y} 12867 then : 12868 printf %s "(cached) " >&6 12869 else case e in #( 12870 e) ac_check_lib_save_LIBS=$LIBS 12871 LIBS="-ldld $LIBS" 12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12873 /* end confdefs.h. */ 12874 12875 /* Override any GCC internal prototype to avoid an error. 12876 Use char because int might match the return type of a GCC 12877 builtin and then its argument prototype would still apply. 12878 The 'extern "C"' is for builds by C++ compilers; 12879 although this is not generally supported in C code supporting it here 12880 has little cost and some practical benefit (sr 110532). */ 12881 #ifdef __cplusplus 12882 extern "C" 12883 #endif 12884 char dld_link (void); 12885 int 12886 main (void) 12887 { 12888 return dld_link (); 12889 ; 12890 return 0; 12891 } 12892 _ACEOF 12893 if ac_fn_c_try_link "$LINENO" 12894 then : 12895 ac_cv_lib_dld_dld_link=yes 12896 else case e in #( 12897 e) ac_cv_lib_dld_dld_link=no ;; 12898 esac 12899 fi 12900 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12901 conftest$ac_exeext conftest.$ac_ext 12902 LIBS=$ac_check_lib_save_LIBS ;; 12903 esac 12904 fi 12905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12906 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 12907 if test "x$ac_cv_lib_dld_dld_link" = xyes 12908 then : 12909 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12910 fi 12911 12912 ;; 12913 esac 12914 fi 12915 12916 ;; 12917 esac 12918 fi 12919 12920 ;; 12921 esac 12922 fi 12923 12924 ;; 12925 esac 12926 fi 12927 12928 ;; 12929 esac 12930 fi 12931 12932 ;; 12933 esac 12934 12935 if test no = "$lt_cv_dlopen"; then 12936 enable_dlopen=no 12937 else 12938 enable_dlopen=yes 12939 fi 12940 12941 case $lt_cv_dlopen in 12942 dlopen) 12943 save_CPPFLAGS=$CPPFLAGS 12944 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12945 12946 save_LDFLAGS=$LDFLAGS 12947 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12948 12949 save_LIBS=$LIBS 12950 LIBS="$lt_cv_dlopen_libs $LIBS" 12951 12952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12953 printf %s "checking whether a program can dlopen itself... " >&6; } 12954 if test ${lt_cv_dlopen_self+y} 12955 then : 12956 printf %s "(cached) " >&6 12957 else case e in #( 12958 e) if test yes = "$cross_compiling"; then : 12959 lt_cv_dlopen_self=cross 12960 else 12961 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12962 lt_status=$lt_dlunknown 12963 cat > conftest.$ac_ext <<_LT_EOF 12964 #line $LINENO "configure" 12965 #include "confdefs.h" 12966 12967 #if HAVE_DLFCN_H 12968 #include <dlfcn.h> 12969 #endif 12970 12971 #include <stdio.h> 12972 12973 #ifdef RTLD_GLOBAL 12974 # define LT_DLGLOBAL RTLD_GLOBAL 12975 #else 12976 # ifdef DL_GLOBAL 12977 # define LT_DLGLOBAL DL_GLOBAL 12978 # else 12979 # define LT_DLGLOBAL 0 12980 # endif 12981 #endif 12982 12983 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12984 find out it does not work in some platform. */ 12985 #ifndef LT_DLLAZY_OR_NOW 12986 # ifdef RTLD_LAZY 12987 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12988 # else 12989 # ifdef DL_LAZY 12990 # define LT_DLLAZY_OR_NOW DL_LAZY 12991 # else 12992 # ifdef RTLD_NOW 12993 # define LT_DLLAZY_OR_NOW RTLD_NOW 12994 # else 12995 # ifdef DL_NOW 12996 # define LT_DLLAZY_OR_NOW DL_NOW 12997 # else 12998 # define LT_DLLAZY_OR_NOW 0 12999 # endif 13000 # endif 13001 # endif 13002 # endif 13003 #endif 13004 13005 /* When -fvisibility=hidden is used, assume the code has been annotated 13006 correspondingly for the symbols needed. */ 13007 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13008 int fnord () __attribute__((visibility("default"))); 13009 #endif 13010 13011 int fnord () { return 42; } 13012 int main () 13013 { 13014 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13015 int status = $lt_dlunknown; 13016 13017 if (self) 13018 { 13019 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13020 else 13021 { 13022 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13023 else puts (dlerror ()); 13024 } 13025 /* dlclose (self); */ 13026 } 13027 else 13028 puts (dlerror ()); 13029 13030 return status; 13031 } 13032 _LT_EOF 13033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13034 (eval $ac_link) 2>&5 13035 ac_status=$? 13036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13037 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13038 (./conftest; exit; ) >&5 2>/dev/null 13039 lt_status=$? 13040 case x$lt_status in 13041 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13042 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13043 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13044 esac 13045 else : 13046 # compilation failed 13047 lt_cv_dlopen_self=no 13048 fi 13049 fi 13050 rm -fr conftest* 13051 13052 ;; 13053 esac 13054 fi 13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13056 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13057 13058 if test yes = "$lt_cv_dlopen_self"; then 13059 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13061 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13062 if test ${lt_cv_dlopen_self_static+y} 13063 then : 13064 printf %s "(cached) " >&6 13065 else case e in #( 13066 e) if test yes = "$cross_compiling"; then : 13067 lt_cv_dlopen_self_static=cross 13068 else 13069 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13070 lt_status=$lt_dlunknown 13071 cat > conftest.$ac_ext <<_LT_EOF 13072 #line $LINENO "configure" 13073 #include "confdefs.h" 13074 13075 #if HAVE_DLFCN_H 13076 #include <dlfcn.h> 13077 #endif 13078 13079 #include <stdio.h> 13080 13081 #ifdef RTLD_GLOBAL 13082 # define LT_DLGLOBAL RTLD_GLOBAL 13083 #else 13084 # ifdef DL_GLOBAL 13085 # define LT_DLGLOBAL DL_GLOBAL 13086 # else 13087 # define LT_DLGLOBAL 0 13088 # endif 13089 #endif 13090 13091 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13092 find out it does not work in some platform. */ 13093 #ifndef LT_DLLAZY_OR_NOW 13094 # ifdef RTLD_LAZY 13095 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13096 # else 13097 # ifdef DL_LAZY 13098 # define LT_DLLAZY_OR_NOW DL_LAZY 13099 # else 13100 # ifdef RTLD_NOW 13101 # define LT_DLLAZY_OR_NOW RTLD_NOW 13102 # else 13103 # ifdef DL_NOW 13104 # define LT_DLLAZY_OR_NOW DL_NOW 13105 # else 13106 # define LT_DLLAZY_OR_NOW 0 13107 # endif 13108 # endif 13109 # endif 13110 # endif 13111 #endif 13112 13113 /* When -fvisibility=hidden is used, assume the code has been annotated 13114 correspondingly for the symbols needed. */ 13115 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13116 int fnord () __attribute__((visibility("default"))); 13117 #endif 13118 13119 int fnord () { return 42; } 13120 int main () 13121 { 13122 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13123 int status = $lt_dlunknown; 13124 13125 if (self) 13126 { 13127 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13128 else 13129 { 13130 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13131 else puts (dlerror ()); 13132 } 13133 /* dlclose (self); */ 13134 } 13135 else 13136 puts (dlerror ()); 13137 13138 return status; 13139 } 13140 _LT_EOF 13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13142 (eval $ac_link) 2>&5 13143 ac_status=$? 13144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13145 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13146 (./conftest; exit; ) >&5 2>/dev/null 13147 lt_status=$? 13148 case x$lt_status in 13149 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13150 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13151 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13152 esac 13153 else : 13154 # compilation failed 13155 lt_cv_dlopen_self_static=no 13156 fi 13157 fi 13158 rm -fr conftest* 13159 13160 ;; 13161 esac 13162 fi 13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13164 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13165 fi 13166 13167 CPPFLAGS=$save_CPPFLAGS 13168 LDFLAGS=$save_LDFLAGS 13169 LIBS=$save_LIBS 13170 ;; 13171 esac 13172 13173 case $lt_cv_dlopen_self in 13174 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13175 *) enable_dlopen_self=unknown ;; 13176 esac 13177 13178 case $lt_cv_dlopen_self_static in 13179 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13180 *) enable_dlopen_self_static=unknown ;; 13181 esac 13182 fi 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 striplib= 13201 old_striplib= 13202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13203 printf %s "checking whether stripping libraries is possible... " >&6; } 13204 if test -z "$STRIP"; then 13205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13206 printf "%s\n" "no" >&6; } 13207 else 13208 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13209 old_striplib="$STRIP --strip-debug" 13210 striplib="$STRIP --strip-unneeded" 13211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13212 printf "%s\n" "yes" >&6; } 13213 else 13214 case $host_os in 13215 darwin*) 13216 # FIXME - insert some real tests, host_os isn't really good enough 13217 striplib="$STRIP -x" 13218 old_striplib="$STRIP -S" 13219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13220 printf "%s\n" "yes" >&6; } 13221 ;; 13222 freebsd*) 13223 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13224 old_striplib="$STRIP --strip-debug" 13225 striplib="$STRIP --strip-unneeded" 13226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13227 printf "%s\n" "yes" >&6; } 13228 else 13229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13230 printf "%s\n" "no" >&6; } 13231 fi 13232 ;; 13233 *) 13234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13235 printf "%s\n" "no" >&6; } 13236 ;; 13237 esac 13238 fi 13239 fi 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 # Report what library types will actually be built 13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13254 printf %s "checking if libtool supports shared libraries... " >&6; } 13255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13256 printf "%s\n" "$can_build_shared" >&6; } 13257 13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13259 printf %s "checking whether to build shared libraries... " >&6; } 13260 test no = "$can_build_shared" && enable_shared=no 13261 13262 # On AIX, shared libraries and static libraries use the same namespace, and 13263 # are all built from PIC. 13264 case $host_os in 13265 aix3*) 13266 test yes = "$enable_shared" && enable_static=no 13267 if test -n "$RANLIB"; then 13268 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13269 postinstall_cmds='$RANLIB $lib' 13270 fi 13271 ;; 13272 13273 aix[4-9]*) 13274 if test ia64 != "$host_cpu"; then 13275 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13276 yes,aix,yes) ;; # shared object as lib.so file only 13277 yes,svr4,*) ;; # shared object as lib.so archive member only 13278 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13279 esac 13280 fi 13281 ;; 13282 esac 13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13284 printf "%s\n" "$enable_shared" >&6; } 13285 13286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13287 printf %s "checking whether to build static libraries... " >&6; } 13288 # Make sure either enable_shared or enable_static is yes. 13289 test yes = "$enable_shared" || enable_static=yes 13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13291 printf "%s\n" "$enable_static" >&6; } 13292 13293 13294 13295 13296 fi 13297 ac_ext=c 13298 ac_cpp='$CPP $CPPFLAGS' 13299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13301 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13302 13303 CC=$lt_save_CC 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 ac_config_commands="$ac_config_commands libtool" 13320 13321 13322 13323 13324 # Only expand once: 13325 13326 13327 13328 # Require X.Org macros 1.8 or later 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13341 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13342 if test ${ac_cv_c_undeclared_builtin_options+y} 13343 then : 13344 printf %s "(cached) " >&6 13345 else case e in #( 13346 e) ac_save_CFLAGS=$CFLAGS 13347 ac_cv_c_undeclared_builtin_options='cannot detect' 13348 for ac_arg in '' -fno-builtin; do 13349 CFLAGS="$ac_save_CFLAGS $ac_arg" 13350 # This test program should *not* compile successfully. 13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13352 /* end confdefs.h. */ 13353 13354 int 13355 main (void) 13356 { 13357 (void) strchr; 13358 ; 13359 return 0; 13360 } 13361 _ACEOF 13362 if ac_fn_c_try_compile "$LINENO" 13363 then : 13364 13365 else case e in #( 13366 e) # This test program should compile successfully. 13367 # No library function is consistently available on 13368 # freestanding implementations, so test against a dummy 13369 # declaration. Include always-available headers on the 13370 # off chance that they somehow elicit warnings. 13371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13372 /* end confdefs.h. */ 13373 #include <float.h> 13374 #include <limits.h> 13375 #include <stdarg.h> 13376 #include <stddef.h> 13377 extern void ac_decl (int, char *); 13378 13379 int 13380 main (void) 13381 { 13382 (void) ac_decl (0, (char *) 0); 13383 (void) ac_decl; 13384 13385 ; 13386 return 0; 13387 } 13388 _ACEOF 13389 if ac_fn_c_try_compile "$LINENO" 13390 then : 13391 if test x"$ac_arg" = x 13392 then : 13393 ac_cv_c_undeclared_builtin_options='none needed' 13394 else case e in #( 13395 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13396 esac 13397 fi 13398 break 13399 fi 13400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13401 esac 13402 fi 13403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13404 done 13405 CFLAGS=$ac_save_CFLAGS 13406 ;; 13407 esac 13408 fi 13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13410 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13411 case $ac_cv_c_undeclared_builtin_options in #( 13412 'cannot detect') : 13413 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13414 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13415 as_fn_error $? "cannot make $CC report undeclared builtins 13416 See 'config.log' for more details" "$LINENO" 5; } ;; #( 13417 'none needed') : 13418 ac_c_undeclared_builtin_options='' ;; #( 13419 *) : 13420 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13421 esac 13422 13423 13424 13425 13426 13427 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13428 if test "x$ac_cv_have_decl___clang__" = xyes 13429 then : 13430 CLANGCC="yes" 13431 else case e in #( 13432 e) CLANGCC="no" ;; 13433 esac 13434 fi 13435 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13436 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13437 then : 13438 INTELCC="yes" 13439 else case e in #( 13440 e) INTELCC="no" ;; 13441 esac 13442 fi 13443 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13444 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13445 then : 13446 SUNCC="yes" 13447 else case e in #( 13448 e) SUNCC="no" ;; 13449 esac 13450 fi 13451 13452 13453 13454 13455 13456 13457 13458 13459 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13460 if test -n "$ac_tool_prefix"; then 13461 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13462 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13464 printf %s "checking for $ac_word... " >&6; } 13465 if test ${ac_cv_path_PKG_CONFIG+y} 13466 then : 13467 printf %s "(cached) " >&6 13468 else case e in #( 13469 e) case $PKG_CONFIG in 13470 [\\/]* | ?:[\\/]*) 13471 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13472 ;; 13473 *) 13474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13475 for as_dir in $PATH 13476 do 13477 IFS=$as_save_IFS 13478 case $as_dir in #((( 13479 '') as_dir=./ ;; 13480 */) ;; 13481 *) as_dir=$as_dir/ ;; 13482 esac 13483 for ac_exec_ext in '' $ac_executable_extensions; do 13484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13485 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13487 break 2 13488 fi 13489 done 13490 done 13491 IFS=$as_save_IFS 13492 13493 ;; 13494 esac ;; 13495 esac 13496 fi 13497 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13498 if test -n "$PKG_CONFIG"; then 13499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13500 printf "%s\n" "$PKG_CONFIG" >&6; } 13501 else 13502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13503 printf "%s\n" "no" >&6; } 13504 fi 13505 13506 13507 fi 13508 if test -z "$ac_cv_path_PKG_CONFIG"; then 13509 ac_pt_PKG_CONFIG=$PKG_CONFIG 13510 # Extract the first word of "pkg-config", so it can be a program name with args. 13511 set dummy pkg-config; ac_word=$2 13512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13513 printf %s "checking for $ac_word... " >&6; } 13514 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13515 then : 13516 printf %s "(cached) " >&6 13517 else case e in #( 13518 e) case $ac_pt_PKG_CONFIG in 13519 [\\/]* | ?:[\\/]*) 13520 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13521 ;; 13522 *) 13523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13524 for as_dir in $PATH 13525 do 13526 IFS=$as_save_IFS 13527 case $as_dir in #((( 13528 '') as_dir=./ ;; 13529 */) ;; 13530 *) as_dir=$as_dir/ ;; 13531 esac 13532 for ac_exec_ext in '' $ac_executable_extensions; do 13533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13534 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13536 break 2 13537 fi 13538 done 13539 done 13540 IFS=$as_save_IFS 13541 13542 ;; 13543 esac ;; 13544 esac 13545 fi 13546 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13547 if test -n "$ac_pt_PKG_CONFIG"; then 13548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13549 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13550 else 13551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13552 printf "%s\n" "no" >&6; } 13553 fi 13554 13555 if test "x$ac_pt_PKG_CONFIG" = x; then 13556 PKG_CONFIG="" 13557 else 13558 case $cross_compiling:$ac_tool_warned in 13559 yes:) 13560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13561 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13562 ac_tool_warned=yes ;; 13563 esac 13564 PKG_CONFIG=$ac_pt_PKG_CONFIG 13565 fi 13566 else 13567 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13568 fi 13569 13570 fi 13571 if test -n "$PKG_CONFIG"; then 13572 _pkg_min_version=0.9.0 13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13574 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13575 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13577 printf "%s\n" "yes" >&6; } 13578 else 13579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13580 printf "%s\n" "no" >&6; } 13581 PKG_CONFIG="" 13582 fi 13583 fi 13584 13585 13586 13587 13588 13589 # Check whether --enable-selective-werror was given. 13590 if test ${enable_selective_werror+y} 13591 then : 13592 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13593 else case e in #( 13594 e) SELECTIVE_WERROR=yes ;; 13595 esac 13596 fi 13597 13598 13599 13600 13601 13602 # -v is too short to test reliably with XORG_TESTSET_CFLAG 13603 if test "x$SUNCC" = "xyes"; then 13604 BASE_CFLAGS="-v" 13605 else 13606 BASE_CFLAGS="" 13607 fi 13608 13609 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 xorg_testset_save_CFLAGS="$CFLAGS" 13624 13625 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13628 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13629 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13630 then : 13631 printf %s "(cached) " >&6 13632 else case e in #( 13633 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13634 /* end confdefs.h. */ 13635 int i; 13636 _ACEOF 13637 if ac_fn_c_try_compile "$LINENO" 13638 then : 13639 xorg_cv_cc_flag_unknown_warning_option=yes 13640 else case e in #( 13641 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13642 esac 13643 fi 13644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13645 esac 13646 fi 13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13648 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13650 CFLAGS="$xorg_testset_save_CFLAGS" 13651 fi 13652 13653 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13656 fi 13657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13659 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13660 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13661 then : 13662 printf %s "(cached) " >&6 13663 else case e in #( 13664 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13665 /* end confdefs.h. */ 13666 int i; 13667 _ACEOF 13668 if ac_fn_c_try_compile "$LINENO" 13669 then : 13670 xorg_cv_cc_flag_unused_command_line_argument=yes 13671 else case e in #( 13672 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13673 esac 13674 fi 13675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13676 esac 13677 fi 13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13679 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13680 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13681 CFLAGS="$xorg_testset_save_CFLAGS" 13682 fi 13683 13684 found="no" 13685 13686 if test $found = "no" ; then 13687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13689 fi 13690 13691 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13693 fi 13694 13695 CFLAGS="$CFLAGS -Wall" 13696 13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13698 printf %s "checking if $CC supports -Wall... " >&6; } 13699 cacheid=xorg_cv_cc_flag__Wall 13700 if eval test \${$cacheid+y} 13701 then : 13702 printf %s "(cached) " >&6 13703 else case e in #( 13704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13705 /* end confdefs.h. */ 13706 int i; 13707 int 13708 main (void) 13709 { 13710 13711 ; 13712 return 0; 13713 } 13714 _ACEOF 13715 if ac_fn_c_try_link "$LINENO" 13716 then : 13717 eval $cacheid=yes 13718 else case e in #( 13719 e) eval $cacheid=no ;; 13720 esac 13721 fi 13722 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13723 conftest$ac_exeext conftest.$ac_ext ;; 13724 esac 13725 fi 13726 13727 13728 CFLAGS="$xorg_testset_save_CFLAGS" 13729 13730 eval supported=\$$cacheid 13731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13732 printf "%s\n" "$supported" >&6; } 13733 if test "$supported" = "yes" ; then 13734 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13735 found="yes" 13736 fi 13737 fi 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 xorg_testset_save_CFLAGS="$CFLAGS" 13754 13755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13759 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13760 then : 13761 printf %s "(cached) " >&6 13762 else case e in #( 13763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13764 /* end confdefs.h. */ 13765 int i; 13766 _ACEOF 13767 if ac_fn_c_try_compile "$LINENO" 13768 then : 13769 xorg_cv_cc_flag_unknown_warning_option=yes 13770 else case e in #( 13771 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13772 esac 13773 fi 13774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13775 esac 13776 fi 13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13778 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13780 CFLAGS="$xorg_testset_save_CFLAGS" 13781 fi 13782 13783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13786 fi 13787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13791 then : 13792 printf %s "(cached) " >&6 13793 else case e in #( 13794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13795 /* end confdefs.h. */ 13796 int i; 13797 _ACEOF 13798 if ac_fn_c_try_compile "$LINENO" 13799 then : 13800 xorg_cv_cc_flag_unused_command_line_argument=yes 13801 else case e in #( 13802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13803 esac 13804 fi 13805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13806 esac 13807 fi 13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13811 CFLAGS="$xorg_testset_save_CFLAGS" 13812 fi 13813 13814 found="no" 13815 13816 if test $found = "no" ; then 13817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13819 fi 13820 13821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13823 fi 13824 13825 CFLAGS="$CFLAGS -Wpointer-arith" 13826 13827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13828 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13829 cacheid=xorg_cv_cc_flag__Wpointer_arith 13830 if eval test \${$cacheid+y} 13831 then : 13832 printf %s "(cached) " >&6 13833 else case e in #( 13834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13835 /* end confdefs.h. */ 13836 int i; 13837 int 13838 main (void) 13839 { 13840 13841 ; 13842 return 0; 13843 } 13844 _ACEOF 13845 if ac_fn_c_try_link "$LINENO" 13846 then : 13847 eval $cacheid=yes 13848 else case e in #( 13849 e) eval $cacheid=no ;; 13850 esac 13851 fi 13852 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13853 conftest$ac_exeext conftest.$ac_ext ;; 13854 esac 13855 fi 13856 13857 13858 CFLAGS="$xorg_testset_save_CFLAGS" 13859 13860 eval supported=\$$cacheid 13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13862 printf "%s\n" "$supported" >&6; } 13863 if test "$supported" = "yes" ; then 13864 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13865 found="yes" 13866 fi 13867 fi 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 xorg_testset_save_CFLAGS="$CFLAGS" 13884 13885 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13886 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13888 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13889 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13890 then : 13891 printf %s "(cached) " >&6 13892 else case e in #( 13893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13894 /* end confdefs.h. */ 13895 int i; 13896 _ACEOF 13897 if ac_fn_c_try_compile "$LINENO" 13898 then : 13899 xorg_cv_cc_flag_unknown_warning_option=yes 13900 else case e in #( 13901 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13902 esac 13903 fi 13904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13905 esac 13906 fi 13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13908 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13909 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13910 CFLAGS="$xorg_testset_save_CFLAGS" 13911 fi 13912 13913 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13916 fi 13917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13919 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13920 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13921 then : 13922 printf %s "(cached) " >&6 13923 else case e in #( 13924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13925 /* end confdefs.h. */ 13926 int i; 13927 _ACEOF 13928 if ac_fn_c_try_compile "$LINENO" 13929 then : 13930 xorg_cv_cc_flag_unused_command_line_argument=yes 13931 else case e in #( 13932 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13933 esac 13934 fi 13935 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13936 esac 13937 fi 13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13939 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13940 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13941 CFLAGS="$xorg_testset_save_CFLAGS" 13942 fi 13943 13944 found="no" 13945 13946 if test $found = "no" ; then 13947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13949 fi 13950 13951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13953 fi 13954 13955 CFLAGS="$CFLAGS -Wmissing-declarations" 13956 13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13958 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 13959 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13960 if eval test \${$cacheid+y} 13961 then : 13962 printf %s "(cached) " >&6 13963 else case e in #( 13964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13965 /* end confdefs.h. */ 13966 int i; 13967 int 13968 main (void) 13969 { 13970 13971 ; 13972 return 0; 13973 } 13974 _ACEOF 13975 if ac_fn_c_try_link "$LINENO" 13976 then : 13977 eval $cacheid=yes 13978 else case e in #( 13979 e) eval $cacheid=no ;; 13980 esac 13981 fi 13982 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13983 conftest$ac_exeext conftest.$ac_ext ;; 13984 esac 13985 fi 13986 13987 13988 CFLAGS="$xorg_testset_save_CFLAGS" 13989 13990 eval supported=\$$cacheid 13991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13992 printf "%s\n" "$supported" >&6; } 13993 if test "$supported" = "yes" ; then 13994 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13995 found="yes" 13996 fi 13997 fi 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 xorg_testset_save_CFLAGS="$CFLAGS" 14014 14015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14018 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14019 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14020 then : 14021 printf %s "(cached) " >&6 14022 else case e in #( 14023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14024 /* end confdefs.h. */ 14025 int i; 14026 _ACEOF 14027 if ac_fn_c_try_compile "$LINENO" 14028 then : 14029 xorg_cv_cc_flag_unknown_warning_option=yes 14030 else case e in #( 14031 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14032 esac 14033 fi 14034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14035 esac 14036 fi 14037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14038 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14040 CFLAGS="$xorg_testset_save_CFLAGS" 14041 fi 14042 14043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14046 fi 14047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14049 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14050 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14051 then : 14052 printf %s "(cached) " >&6 14053 else case e in #( 14054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14055 /* end confdefs.h. */ 14056 int i; 14057 _ACEOF 14058 if ac_fn_c_try_compile "$LINENO" 14059 then : 14060 xorg_cv_cc_flag_unused_command_line_argument=yes 14061 else case e in #( 14062 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14063 esac 14064 fi 14065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14066 esac 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 -Wformat=2" 14086 14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14088 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14089 cacheid=xorg_cv_cc_flag__Wformat_2 14090 if eval test \${$cacheid+y} 14091 then : 14092 printf %s "(cached) " >&6 14093 else case e in #( 14094 e) 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 case e in #( 14109 e) eval $cacheid=no ;; 14110 esac 14111 fi 14112 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14113 conftest$ac_exeext conftest.$ac_ext ;; 14114 esac 14115 fi 14116 14117 14118 CFLAGS="$xorg_testset_save_CFLAGS" 14119 14120 eval supported=\$$cacheid 14121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14122 printf "%s\n" "$supported" >&6; } 14123 if test "$supported" = "yes" ; then 14124 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14125 found="yes" 14126 fi 14127 fi 14128 14129 if test $found = "no" ; then 14130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14132 fi 14133 14134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14136 fi 14137 14138 CFLAGS="$CFLAGS -Wformat" 14139 14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14141 printf %s "checking if $CC supports -Wformat... " >&6; } 14142 cacheid=xorg_cv_cc_flag__Wformat 14143 if eval test \${$cacheid+y} 14144 then : 14145 printf %s "(cached) " >&6 14146 else case e in #( 14147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14148 /* end confdefs.h. */ 14149 int i; 14150 int 14151 main (void) 14152 { 14153 14154 ; 14155 return 0; 14156 } 14157 _ACEOF 14158 if ac_fn_c_try_link "$LINENO" 14159 then : 14160 eval $cacheid=yes 14161 else case e in #( 14162 e) eval $cacheid=no ;; 14163 esac 14164 fi 14165 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14166 conftest$ac_exeext conftest.$ac_ext ;; 14167 esac 14168 fi 14169 14170 14171 CFLAGS="$xorg_testset_save_CFLAGS" 14172 14173 eval supported=\$$cacheid 14174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14175 printf "%s\n" "$supported" >&6; } 14176 if test "$supported" = "yes" ; then 14177 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14178 found="yes" 14179 fi 14180 fi 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 xorg_testset_save_CFLAGS="$CFLAGS" 14199 14200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14203 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14204 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14205 then : 14206 printf %s "(cached) " >&6 14207 else case e in #( 14208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14209 /* end confdefs.h. */ 14210 int i; 14211 _ACEOF 14212 if ac_fn_c_try_compile "$LINENO" 14213 then : 14214 xorg_cv_cc_flag_unknown_warning_option=yes 14215 else case e in #( 14216 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14217 esac 14218 fi 14219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14220 esac 14221 fi 14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14225 CFLAGS="$xorg_testset_save_CFLAGS" 14226 fi 14227 14228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14231 fi 14232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14236 then : 14237 printf %s "(cached) " >&6 14238 else case e in #( 14239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14240 /* end confdefs.h. */ 14241 int i; 14242 _ACEOF 14243 if ac_fn_c_try_compile "$LINENO" 14244 then : 14245 xorg_cv_cc_flag_unused_command_line_argument=yes 14246 else case e in #( 14247 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14248 esac 14249 fi 14250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14251 esac 14252 fi 14253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14256 CFLAGS="$xorg_testset_save_CFLAGS" 14257 fi 14258 14259 found="no" 14260 14261 if test $found = "no" ; then 14262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14264 fi 14265 14266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14268 fi 14269 14270 CFLAGS="$CFLAGS -Wstrict-prototypes" 14271 14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14273 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14274 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14275 if eval test \${$cacheid+y} 14276 then : 14277 printf %s "(cached) " >&6 14278 else case e in #( 14279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14280 /* end confdefs.h. */ 14281 int i; 14282 int 14283 main (void) 14284 { 14285 14286 ; 14287 return 0; 14288 } 14289 _ACEOF 14290 if ac_fn_c_try_link "$LINENO" 14291 then : 14292 eval $cacheid=yes 14293 else case e in #( 14294 e) eval $cacheid=no ;; 14295 esac 14296 fi 14297 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14298 conftest$ac_exeext conftest.$ac_ext ;; 14299 esac 14300 fi 14301 14302 14303 CFLAGS="$xorg_testset_save_CFLAGS" 14304 14305 eval supported=\$$cacheid 14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14307 printf "%s\n" "$supported" >&6; } 14308 if test "$supported" = "yes" ; then 14309 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14310 found="yes" 14311 fi 14312 fi 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 xorg_testset_save_CFLAGS="$CFLAGS" 14329 14330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14333 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14334 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14335 then : 14336 printf %s "(cached) " >&6 14337 else case e in #( 14338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14339 /* end confdefs.h. */ 14340 int i; 14341 _ACEOF 14342 if ac_fn_c_try_compile "$LINENO" 14343 then : 14344 xorg_cv_cc_flag_unknown_warning_option=yes 14345 else case e in #( 14346 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14347 esac 14348 fi 14349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14350 esac 14351 fi 14352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14353 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14355 CFLAGS="$xorg_testset_save_CFLAGS" 14356 fi 14357 14358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14361 fi 14362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14364 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14365 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14366 then : 14367 printf %s "(cached) " >&6 14368 else case e in #( 14369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14370 /* end confdefs.h. */ 14371 int i; 14372 _ACEOF 14373 if ac_fn_c_try_compile "$LINENO" 14374 then : 14375 xorg_cv_cc_flag_unused_command_line_argument=yes 14376 else case e in #( 14377 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14378 esac 14379 fi 14380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14381 esac 14382 fi 14383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14386 CFLAGS="$xorg_testset_save_CFLAGS" 14387 fi 14388 14389 found="no" 14390 14391 if test $found = "no" ; then 14392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14394 fi 14395 14396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14398 fi 14399 14400 CFLAGS="$CFLAGS -Wmissing-prototypes" 14401 14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14403 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14404 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14405 if eval test \${$cacheid+y} 14406 then : 14407 printf %s "(cached) " >&6 14408 else case e in #( 14409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14410 /* end confdefs.h. */ 14411 int i; 14412 int 14413 main (void) 14414 { 14415 14416 ; 14417 return 0; 14418 } 14419 _ACEOF 14420 if ac_fn_c_try_link "$LINENO" 14421 then : 14422 eval $cacheid=yes 14423 else case e in #( 14424 e) eval $cacheid=no ;; 14425 esac 14426 fi 14427 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14428 conftest$ac_exeext conftest.$ac_ext ;; 14429 esac 14430 fi 14431 14432 14433 CFLAGS="$xorg_testset_save_CFLAGS" 14434 14435 eval supported=\$$cacheid 14436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14437 printf "%s\n" "$supported" >&6; } 14438 if test "$supported" = "yes" ; then 14439 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14440 found="yes" 14441 fi 14442 fi 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 xorg_testset_save_CFLAGS="$CFLAGS" 14459 14460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14463 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14464 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14465 then : 14466 printf %s "(cached) " >&6 14467 else case e in #( 14468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14469 /* end confdefs.h. */ 14470 int i; 14471 _ACEOF 14472 if ac_fn_c_try_compile "$LINENO" 14473 then : 14474 xorg_cv_cc_flag_unknown_warning_option=yes 14475 else case e in #( 14476 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14477 esac 14478 fi 14479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14480 esac 14481 fi 14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14483 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14485 CFLAGS="$xorg_testset_save_CFLAGS" 14486 fi 14487 14488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14491 fi 14492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14494 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14495 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14496 then : 14497 printf %s "(cached) " >&6 14498 else case e in #( 14499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14500 /* end confdefs.h. */ 14501 int i; 14502 _ACEOF 14503 if ac_fn_c_try_compile "$LINENO" 14504 then : 14505 xorg_cv_cc_flag_unused_command_line_argument=yes 14506 else case e in #( 14507 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14508 esac 14509 fi 14510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14511 esac 14512 fi 14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14516 CFLAGS="$xorg_testset_save_CFLAGS" 14517 fi 14518 14519 found="no" 14520 14521 if test $found = "no" ; then 14522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14524 fi 14525 14526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14528 fi 14529 14530 CFLAGS="$CFLAGS -Wnested-externs" 14531 14532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14533 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14534 cacheid=xorg_cv_cc_flag__Wnested_externs 14535 if eval test \${$cacheid+y} 14536 then : 14537 printf %s "(cached) " >&6 14538 else case e in #( 14539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14540 /* end confdefs.h. */ 14541 int i; 14542 int 14543 main (void) 14544 { 14545 14546 ; 14547 return 0; 14548 } 14549 _ACEOF 14550 if ac_fn_c_try_link "$LINENO" 14551 then : 14552 eval $cacheid=yes 14553 else case e in #( 14554 e) eval $cacheid=no ;; 14555 esac 14556 fi 14557 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14558 conftest$ac_exeext conftest.$ac_ext ;; 14559 esac 14560 fi 14561 14562 14563 CFLAGS="$xorg_testset_save_CFLAGS" 14564 14565 eval supported=\$$cacheid 14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14567 printf "%s\n" "$supported" >&6; } 14568 if test "$supported" = "yes" ; then 14569 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14570 found="yes" 14571 fi 14572 fi 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 xorg_testset_save_CFLAGS="$CFLAGS" 14589 14590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14594 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14595 then : 14596 printf %s "(cached) " >&6 14597 else case e in #( 14598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14599 /* end confdefs.h. */ 14600 int i; 14601 _ACEOF 14602 if ac_fn_c_try_compile "$LINENO" 14603 then : 14604 xorg_cv_cc_flag_unknown_warning_option=yes 14605 else case e in #( 14606 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14607 esac 14608 fi 14609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14610 esac 14611 fi 14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14615 CFLAGS="$xorg_testset_save_CFLAGS" 14616 fi 14617 14618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14621 fi 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14626 then : 14627 printf %s "(cached) " >&6 14628 else case e in #( 14629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14630 /* end confdefs.h. */ 14631 int i; 14632 _ACEOF 14633 if ac_fn_c_try_compile "$LINENO" 14634 then : 14635 xorg_cv_cc_flag_unused_command_line_argument=yes 14636 else case e in #( 14637 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14638 esac 14639 fi 14640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14641 esac 14642 fi 14643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14644 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14646 CFLAGS="$xorg_testset_save_CFLAGS" 14647 fi 14648 14649 found="no" 14650 14651 if test $found = "no" ; then 14652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14654 fi 14655 14656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14658 fi 14659 14660 CFLAGS="$CFLAGS -Wbad-function-cast" 14661 14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14663 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14664 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14665 if eval test \${$cacheid+y} 14666 then : 14667 printf %s "(cached) " >&6 14668 else case e in #( 14669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14670 /* end confdefs.h. */ 14671 int i; 14672 int 14673 main (void) 14674 { 14675 14676 ; 14677 return 0; 14678 } 14679 _ACEOF 14680 if ac_fn_c_try_link "$LINENO" 14681 then : 14682 eval $cacheid=yes 14683 else case e in #( 14684 e) eval $cacheid=no ;; 14685 esac 14686 fi 14687 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14688 conftest$ac_exeext conftest.$ac_ext ;; 14689 esac 14690 fi 14691 14692 14693 CFLAGS="$xorg_testset_save_CFLAGS" 14694 14695 eval supported=\$$cacheid 14696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14697 printf "%s\n" "$supported" >&6; } 14698 if test "$supported" = "yes" ; then 14699 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14700 found="yes" 14701 fi 14702 fi 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 xorg_testset_save_CFLAGS="$CFLAGS" 14719 14720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14724 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14725 then : 14726 printf %s "(cached) " >&6 14727 else case e in #( 14728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14729 /* end confdefs.h. */ 14730 int i; 14731 _ACEOF 14732 if ac_fn_c_try_compile "$LINENO" 14733 then : 14734 xorg_cv_cc_flag_unknown_warning_option=yes 14735 else case e in #( 14736 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14737 esac 14738 fi 14739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14740 esac 14741 fi 14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14743 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14745 CFLAGS="$xorg_testset_save_CFLAGS" 14746 fi 14747 14748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14751 fi 14752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14754 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14755 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14756 then : 14757 printf %s "(cached) " >&6 14758 else case e in #( 14759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14760 /* end confdefs.h. */ 14761 int i; 14762 _ACEOF 14763 if ac_fn_c_try_compile "$LINENO" 14764 then : 14765 xorg_cv_cc_flag_unused_command_line_argument=yes 14766 else case e in #( 14767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14768 esac 14769 fi 14770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14771 esac 14772 fi 14773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14774 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14776 CFLAGS="$xorg_testset_save_CFLAGS" 14777 fi 14778 14779 found="no" 14780 14781 if test $found = "no" ; then 14782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14784 fi 14785 14786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14788 fi 14789 14790 CFLAGS="$CFLAGS -Wold-style-definition" 14791 14792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14793 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14794 cacheid=xorg_cv_cc_flag__Wold_style_definition 14795 if eval test \${$cacheid+y} 14796 then : 14797 printf %s "(cached) " >&6 14798 else case e in #( 14799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800 /* end confdefs.h. */ 14801 int i; 14802 int 14803 main (void) 14804 { 14805 14806 ; 14807 return 0; 14808 } 14809 _ACEOF 14810 if ac_fn_c_try_link "$LINENO" 14811 then : 14812 eval $cacheid=yes 14813 else case e in #( 14814 e) eval $cacheid=no ;; 14815 esac 14816 fi 14817 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14818 conftest$ac_exeext conftest.$ac_ext ;; 14819 esac 14820 fi 14821 14822 14823 CFLAGS="$xorg_testset_save_CFLAGS" 14824 14825 eval supported=\$$cacheid 14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14827 printf "%s\n" "$supported" >&6; } 14828 if test "$supported" = "yes" ; then 14829 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14830 found="yes" 14831 fi 14832 fi 14833 14834 if test $found = "no" ; then 14835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14837 fi 14838 14839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14841 fi 14842 14843 CFLAGS="$CFLAGS -fd" 14844 14845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14846 printf %s "checking if $CC supports -fd... " >&6; } 14847 cacheid=xorg_cv_cc_flag__fd 14848 if eval test \${$cacheid+y} 14849 then : 14850 printf %s "(cached) " >&6 14851 else case e in #( 14852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14853 /* end confdefs.h. */ 14854 int i; 14855 int 14856 main (void) 14857 { 14858 14859 ; 14860 return 0; 14861 } 14862 _ACEOF 14863 if ac_fn_c_try_link "$LINENO" 14864 then : 14865 eval $cacheid=yes 14866 else case e in #( 14867 e) eval $cacheid=no ;; 14868 esac 14869 fi 14870 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14871 conftest$ac_exeext conftest.$ac_ext ;; 14872 esac 14873 fi 14874 14875 14876 CFLAGS="$xorg_testset_save_CFLAGS" 14877 14878 eval supported=\$$cacheid 14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14880 printf "%s\n" "$supported" >&6; } 14881 if test "$supported" = "yes" ; then 14882 BASE_CFLAGS="$BASE_CFLAGS -fd" 14883 found="yes" 14884 fi 14885 fi 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 xorg_testset_save_CFLAGS="$CFLAGS" 14902 14903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14906 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14907 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14908 then : 14909 printf %s "(cached) " >&6 14910 else case e in #( 14911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14912 /* end confdefs.h. */ 14913 int i; 14914 _ACEOF 14915 if ac_fn_c_try_compile "$LINENO" 14916 then : 14917 xorg_cv_cc_flag_unknown_warning_option=yes 14918 else case e in #( 14919 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14920 esac 14921 fi 14922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14923 esac 14924 fi 14925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14926 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14927 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14928 CFLAGS="$xorg_testset_save_CFLAGS" 14929 fi 14930 14931 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14932 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14933 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14934 fi 14935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14937 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14938 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14939 then : 14940 printf %s "(cached) " >&6 14941 else case e in #( 14942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943 /* end confdefs.h. */ 14944 int i; 14945 _ACEOF 14946 if ac_fn_c_try_compile "$LINENO" 14947 then : 14948 xorg_cv_cc_flag_unused_command_line_argument=yes 14949 else case e in #( 14950 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14951 esac 14952 fi 14953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14954 esac 14955 fi 14956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14957 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14959 CFLAGS="$xorg_testset_save_CFLAGS" 14960 fi 14961 14962 found="no" 14963 14964 if test $found = "no" ; then 14965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14967 fi 14968 14969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14971 fi 14972 14973 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14974 14975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14976 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14977 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14978 if eval test \${$cacheid+y} 14979 then : 14980 printf %s "(cached) " >&6 14981 else case e in #( 14982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14983 /* end confdefs.h. */ 14984 int i; 14985 int 14986 main (void) 14987 { 14988 14989 ; 14990 return 0; 14991 } 14992 _ACEOF 14993 if ac_fn_c_try_link "$LINENO" 14994 then : 14995 eval $cacheid=yes 14996 else case e in #( 14997 e) eval $cacheid=no ;; 14998 esac 14999 fi 15000 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15001 conftest$ac_exeext conftest.$ac_ext ;; 15002 esac 15003 fi 15004 15005 15006 CFLAGS="$xorg_testset_save_CFLAGS" 15007 15008 eval supported=\$$cacheid 15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15010 printf "%s\n" "$supported" >&6; } 15011 if test "$supported" = "yes" ; then 15012 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15013 found="yes" 15014 fi 15015 fi 15016 15017 15018 15019 15020 15021 # This chunk adds additional warnings that could catch undesired effects. 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 xorg_testset_save_CFLAGS="$CFLAGS" 15036 15037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15040 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15041 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15042 then : 15043 printf %s "(cached) " >&6 15044 else case e in #( 15045 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15046 /* end confdefs.h. */ 15047 int i; 15048 _ACEOF 15049 if ac_fn_c_try_compile "$LINENO" 15050 then : 15051 xorg_cv_cc_flag_unknown_warning_option=yes 15052 else case e in #( 15053 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15054 esac 15055 fi 15056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15057 esac 15058 fi 15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15060 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15061 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15062 CFLAGS="$xorg_testset_save_CFLAGS" 15063 fi 15064 15065 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15068 fi 15069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15071 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15072 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15073 then : 15074 printf %s "(cached) " >&6 15075 else case e in #( 15076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15077 /* end confdefs.h. */ 15078 int i; 15079 _ACEOF 15080 if ac_fn_c_try_compile "$LINENO" 15081 then : 15082 xorg_cv_cc_flag_unused_command_line_argument=yes 15083 else case e in #( 15084 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15085 esac 15086 fi 15087 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15088 esac 15089 fi 15090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15091 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15093 CFLAGS="$xorg_testset_save_CFLAGS" 15094 fi 15095 15096 found="no" 15097 15098 if test $found = "no" ; then 15099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15101 fi 15102 15103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15105 fi 15106 15107 CFLAGS="$CFLAGS -Wunused" 15108 15109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15110 printf %s "checking if $CC supports -Wunused... " >&6; } 15111 cacheid=xorg_cv_cc_flag__Wunused 15112 if eval test \${$cacheid+y} 15113 then : 15114 printf %s "(cached) " >&6 15115 else case e in #( 15116 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15117 /* end confdefs.h. */ 15118 int i; 15119 int 15120 main (void) 15121 { 15122 15123 ; 15124 return 0; 15125 } 15126 _ACEOF 15127 if ac_fn_c_try_link "$LINENO" 15128 then : 15129 eval $cacheid=yes 15130 else case e in #( 15131 e) eval $cacheid=no ;; 15132 esac 15133 fi 15134 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15135 conftest$ac_exeext conftest.$ac_ext ;; 15136 esac 15137 fi 15138 15139 15140 CFLAGS="$xorg_testset_save_CFLAGS" 15141 15142 eval supported=\$$cacheid 15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15144 printf "%s\n" "$supported" >&6; } 15145 if test "$supported" = "yes" ; then 15146 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15147 found="yes" 15148 fi 15149 fi 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 xorg_testset_save_CFLAGS="$CFLAGS" 15166 15167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15171 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15172 then : 15173 printf %s "(cached) " >&6 15174 else case e in #( 15175 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15176 /* end confdefs.h. */ 15177 int i; 15178 _ACEOF 15179 if ac_fn_c_try_compile "$LINENO" 15180 then : 15181 xorg_cv_cc_flag_unknown_warning_option=yes 15182 else case e in #( 15183 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15184 esac 15185 fi 15186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15187 esac 15188 fi 15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15190 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15192 CFLAGS="$xorg_testset_save_CFLAGS" 15193 fi 15194 15195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15198 fi 15199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15201 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15202 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15203 then : 15204 printf %s "(cached) " >&6 15205 else case e in #( 15206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15207 /* end confdefs.h. */ 15208 int i; 15209 _ACEOF 15210 if ac_fn_c_try_compile "$LINENO" 15211 then : 15212 xorg_cv_cc_flag_unused_command_line_argument=yes 15213 else case e in #( 15214 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15215 esac 15216 fi 15217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15218 esac 15219 fi 15220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15221 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15223 CFLAGS="$xorg_testset_save_CFLAGS" 15224 fi 15225 15226 found="no" 15227 15228 if test $found = "no" ; then 15229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15231 fi 15232 15233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15235 fi 15236 15237 CFLAGS="$CFLAGS -Wuninitialized" 15238 15239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15240 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15241 cacheid=xorg_cv_cc_flag__Wuninitialized 15242 if eval test \${$cacheid+y} 15243 then : 15244 printf %s "(cached) " >&6 15245 else case e in #( 15246 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15247 /* end confdefs.h. */ 15248 int i; 15249 int 15250 main (void) 15251 { 15252 15253 ; 15254 return 0; 15255 } 15256 _ACEOF 15257 if ac_fn_c_try_link "$LINENO" 15258 then : 15259 eval $cacheid=yes 15260 else case e in #( 15261 e) eval $cacheid=no ;; 15262 esac 15263 fi 15264 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15265 conftest$ac_exeext conftest.$ac_ext ;; 15266 esac 15267 fi 15268 15269 15270 CFLAGS="$xorg_testset_save_CFLAGS" 15271 15272 eval supported=\$$cacheid 15273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15274 printf "%s\n" "$supported" >&6; } 15275 if test "$supported" = "yes" ; then 15276 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15277 found="yes" 15278 fi 15279 fi 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 xorg_testset_save_CFLAGS="$CFLAGS" 15296 15297 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15300 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15301 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15302 then : 15303 printf %s "(cached) " >&6 15304 else case e in #( 15305 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15306 /* end confdefs.h. */ 15307 int i; 15308 _ACEOF 15309 if ac_fn_c_try_compile "$LINENO" 15310 then : 15311 xorg_cv_cc_flag_unknown_warning_option=yes 15312 else case e in #( 15313 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15314 esac 15315 fi 15316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15317 esac 15318 fi 15319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15322 CFLAGS="$xorg_testset_save_CFLAGS" 15323 fi 15324 15325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15328 fi 15329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15333 then : 15334 printf %s "(cached) " >&6 15335 else case e in #( 15336 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337 /* end confdefs.h. */ 15338 int i; 15339 _ACEOF 15340 if ac_fn_c_try_compile "$LINENO" 15341 then : 15342 xorg_cv_cc_flag_unused_command_line_argument=yes 15343 else case e in #( 15344 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15345 esac 15346 fi 15347 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15348 esac 15349 fi 15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15351 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354 fi 15355 15356 found="no" 15357 15358 if test $found = "no" ; then 15359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15361 fi 15362 15363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15365 fi 15366 15367 CFLAGS="$CFLAGS -Wshadow" 15368 15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15370 printf %s "checking if $CC supports -Wshadow... " >&6; } 15371 cacheid=xorg_cv_cc_flag__Wshadow 15372 if eval test \${$cacheid+y} 15373 then : 15374 printf %s "(cached) " >&6 15375 else case e in #( 15376 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15377 /* end confdefs.h. */ 15378 int i; 15379 int 15380 main (void) 15381 { 15382 15383 ; 15384 return 0; 15385 } 15386 _ACEOF 15387 if ac_fn_c_try_link "$LINENO" 15388 then : 15389 eval $cacheid=yes 15390 else case e in #( 15391 e) eval $cacheid=no ;; 15392 esac 15393 fi 15394 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15395 conftest$ac_exeext conftest.$ac_ext ;; 15396 esac 15397 fi 15398 15399 15400 CFLAGS="$xorg_testset_save_CFLAGS" 15401 15402 eval supported=\$$cacheid 15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15404 printf "%s\n" "$supported" >&6; } 15405 if test "$supported" = "yes" ; then 15406 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15407 found="yes" 15408 fi 15409 fi 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 xorg_testset_save_CFLAGS="$CFLAGS" 15426 15427 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15430 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15431 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15432 then : 15433 printf %s "(cached) " >&6 15434 else case e in #( 15435 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15436 /* end confdefs.h. */ 15437 int i; 15438 _ACEOF 15439 if ac_fn_c_try_compile "$LINENO" 15440 then : 15441 xorg_cv_cc_flag_unknown_warning_option=yes 15442 else case e in #( 15443 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15444 esac 15445 fi 15446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15447 esac 15448 fi 15449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15450 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15452 CFLAGS="$xorg_testset_save_CFLAGS" 15453 fi 15454 15455 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15458 fi 15459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15461 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15462 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15463 then : 15464 printf %s "(cached) " >&6 15465 else case e in #( 15466 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15467 /* end confdefs.h. */ 15468 int i; 15469 _ACEOF 15470 if ac_fn_c_try_compile "$LINENO" 15471 then : 15472 xorg_cv_cc_flag_unused_command_line_argument=yes 15473 else case e in #( 15474 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15475 esac 15476 fi 15477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15478 esac 15479 fi 15480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15483 CFLAGS="$xorg_testset_save_CFLAGS" 15484 fi 15485 15486 found="no" 15487 15488 if test $found = "no" ; then 15489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15491 fi 15492 15493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15495 fi 15496 15497 CFLAGS="$CFLAGS -Wmissing-noreturn" 15498 15499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15500 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15501 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15502 if eval test \${$cacheid+y} 15503 then : 15504 printf %s "(cached) " >&6 15505 else case e in #( 15506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15507 /* end confdefs.h. */ 15508 int i; 15509 int 15510 main (void) 15511 { 15512 15513 ; 15514 return 0; 15515 } 15516 _ACEOF 15517 if ac_fn_c_try_link "$LINENO" 15518 then : 15519 eval $cacheid=yes 15520 else case e in #( 15521 e) eval $cacheid=no ;; 15522 esac 15523 fi 15524 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15525 conftest$ac_exeext conftest.$ac_ext ;; 15526 esac 15527 fi 15528 15529 15530 CFLAGS="$xorg_testset_save_CFLAGS" 15531 15532 eval supported=\$$cacheid 15533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15534 printf "%s\n" "$supported" >&6; } 15535 if test "$supported" = "yes" ; then 15536 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15537 found="yes" 15538 fi 15539 fi 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 xorg_testset_save_CFLAGS="$CFLAGS" 15556 15557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15560 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15561 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15562 then : 15563 printf %s "(cached) " >&6 15564 else case e in #( 15565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15566 /* end confdefs.h. */ 15567 int i; 15568 _ACEOF 15569 if ac_fn_c_try_compile "$LINENO" 15570 then : 15571 xorg_cv_cc_flag_unknown_warning_option=yes 15572 else case e in #( 15573 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15574 esac 15575 fi 15576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15577 esac 15578 fi 15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15580 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15582 CFLAGS="$xorg_testset_save_CFLAGS" 15583 fi 15584 15585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15588 fi 15589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15591 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15592 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15593 then : 15594 printf %s "(cached) " >&6 15595 else case e in #( 15596 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15597 /* end confdefs.h. */ 15598 int i; 15599 _ACEOF 15600 if ac_fn_c_try_compile "$LINENO" 15601 then : 15602 xorg_cv_cc_flag_unused_command_line_argument=yes 15603 else case e in #( 15604 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15605 esac 15606 fi 15607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15608 esac 15609 fi 15610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15611 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15612 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15613 CFLAGS="$xorg_testset_save_CFLAGS" 15614 fi 15615 15616 found="no" 15617 15618 if test $found = "no" ; then 15619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15621 fi 15622 15623 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15625 fi 15626 15627 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15628 15629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15630 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15631 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15632 if eval test \${$cacheid+y} 15633 then : 15634 printf %s "(cached) " >&6 15635 else case e in #( 15636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15637 /* end confdefs.h. */ 15638 int i; 15639 int 15640 main (void) 15641 { 15642 15643 ; 15644 return 0; 15645 } 15646 _ACEOF 15647 if ac_fn_c_try_link "$LINENO" 15648 then : 15649 eval $cacheid=yes 15650 else case e in #( 15651 e) eval $cacheid=no ;; 15652 esac 15653 fi 15654 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15655 conftest$ac_exeext conftest.$ac_ext ;; 15656 esac 15657 fi 15658 15659 15660 CFLAGS="$xorg_testset_save_CFLAGS" 15661 15662 eval supported=\$$cacheid 15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15664 printf "%s\n" "$supported" >&6; } 15665 if test "$supported" = "yes" ; then 15666 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15667 found="yes" 15668 fi 15669 fi 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 xorg_testset_save_CFLAGS="$CFLAGS" 15686 15687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15690 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15691 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15692 then : 15693 printf %s "(cached) " >&6 15694 else case e in #( 15695 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15696 /* end confdefs.h. */ 15697 int i; 15698 _ACEOF 15699 if ac_fn_c_try_compile "$LINENO" 15700 then : 15701 xorg_cv_cc_flag_unknown_warning_option=yes 15702 else case e in #( 15703 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15704 esac 15705 fi 15706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15707 esac 15708 fi 15709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15710 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15712 CFLAGS="$xorg_testset_save_CFLAGS" 15713 fi 15714 15715 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15718 fi 15719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15721 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15722 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15723 then : 15724 printf %s "(cached) " >&6 15725 else case e in #( 15726 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727 /* end confdefs.h. */ 15728 int i; 15729 _ACEOF 15730 if ac_fn_c_try_compile "$LINENO" 15731 then : 15732 xorg_cv_cc_flag_unused_command_line_argument=yes 15733 else case e in #( 15734 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15735 esac 15736 fi 15737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15738 esac 15739 fi 15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15741 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15742 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15743 CFLAGS="$xorg_testset_save_CFLAGS" 15744 fi 15745 15746 found="no" 15747 15748 if test $found = "no" ; then 15749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15751 fi 15752 15753 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15755 fi 15756 15757 CFLAGS="$CFLAGS -Wredundant-decls" 15758 15759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15760 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15761 cacheid=xorg_cv_cc_flag__Wredundant_decls 15762 if eval test \${$cacheid+y} 15763 then : 15764 printf %s "(cached) " >&6 15765 else case e in #( 15766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15767 /* end confdefs.h. */ 15768 int i; 15769 int 15770 main (void) 15771 { 15772 15773 ; 15774 return 0; 15775 } 15776 _ACEOF 15777 if ac_fn_c_try_link "$LINENO" 15778 then : 15779 eval $cacheid=yes 15780 else case e in #( 15781 e) eval $cacheid=no ;; 15782 esac 15783 fi 15784 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15785 conftest$ac_exeext conftest.$ac_ext ;; 15786 esac 15787 fi 15788 15789 15790 CFLAGS="$xorg_testset_save_CFLAGS" 15791 15792 eval supported=\$$cacheid 15793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15794 printf "%s\n" "$supported" >&6; } 15795 if test "$supported" = "yes" ; then 15796 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15797 found="yes" 15798 fi 15799 fi 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 xorg_testset_save_CFLAGS="$CFLAGS" 15816 15817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15821 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15822 then : 15823 printf %s "(cached) " >&6 15824 else case e in #( 15825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15826 /* end confdefs.h. */ 15827 int i; 15828 _ACEOF 15829 if ac_fn_c_try_compile "$LINENO" 15830 then : 15831 xorg_cv_cc_flag_unknown_warning_option=yes 15832 else case e in #( 15833 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15834 esac 15835 fi 15836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15837 esac 15838 fi 15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15840 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15842 CFLAGS="$xorg_testset_save_CFLAGS" 15843 fi 15844 15845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15848 fi 15849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15851 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15852 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15853 then : 15854 printf %s "(cached) " >&6 15855 else case e in #( 15856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15857 /* end confdefs.h. */ 15858 int i; 15859 _ACEOF 15860 if ac_fn_c_try_compile "$LINENO" 15861 then : 15862 xorg_cv_cc_flag_unused_command_line_argument=yes 15863 else case e in #( 15864 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15865 esac 15866 fi 15867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15868 esac 15869 fi 15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15871 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15873 CFLAGS="$xorg_testset_save_CFLAGS" 15874 fi 15875 15876 found="no" 15877 15878 if test $found = "no" ; then 15879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15881 fi 15882 15883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15885 fi 15886 15887 CFLAGS="$CFLAGS -Wlogical-op" 15888 15889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15890 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15891 cacheid=xorg_cv_cc_flag__Wlogical_op 15892 if eval test \${$cacheid+y} 15893 then : 15894 printf %s "(cached) " >&6 15895 else case e in #( 15896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15897 /* end confdefs.h. */ 15898 int i; 15899 int 15900 main (void) 15901 { 15902 15903 ; 15904 return 0; 15905 } 15906 _ACEOF 15907 if ac_fn_c_try_link "$LINENO" 15908 then : 15909 eval $cacheid=yes 15910 else case e in #( 15911 e) eval $cacheid=no ;; 15912 esac 15913 fi 15914 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15915 conftest$ac_exeext conftest.$ac_ext ;; 15916 esac 15917 fi 15918 15919 15920 CFLAGS="$xorg_testset_save_CFLAGS" 15921 15922 eval supported=\$$cacheid 15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15924 printf "%s\n" "$supported" >&6; } 15925 if test "$supported" = "yes" ; then 15926 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15927 found="yes" 15928 fi 15929 fi 15930 15931 15932 15933 # These are currently disabled because they are noisy. They will be enabled 15934 # in the future once the codebase is sufficiently modernized to silence 15935 # them. For now, I don't want them to drown out the other warnings. 15936 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15937 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15938 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15939 15940 # Turn some warnings into errors, so we don't accidentally get successful builds 15941 # when there are problems that should be fixed. 15942 15943 if test "x$SELECTIVE_WERROR" = "xyes" ; then 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 xorg_testset_save_CFLAGS="$CFLAGS" 15958 15959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15963 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15964 then : 15965 printf %s "(cached) " >&6 15966 else case e in #( 15967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15968 /* end confdefs.h. */ 15969 int i; 15970 _ACEOF 15971 if ac_fn_c_try_compile "$LINENO" 15972 then : 15973 xorg_cv_cc_flag_unknown_warning_option=yes 15974 else case e in #( 15975 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15976 esac 15977 fi 15978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15979 esac 15980 fi 15981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15984 CFLAGS="$xorg_testset_save_CFLAGS" 15985 fi 15986 15987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15990 fi 15991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15995 then : 15996 printf %s "(cached) " >&6 15997 else case e in #( 15998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15999 /* end confdefs.h. */ 16000 int i; 16001 _ACEOF 16002 if ac_fn_c_try_compile "$LINENO" 16003 then : 16004 xorg_cv_cc_flag_unused_command_line_argument=yes 16005 else case e in #( 16006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16007 esac 16008 fi 16009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16010 esac 16011 fi 16012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16015 CFLAGS="$xorg_testset_save_CFLAGS" 16016 fi 16017 16018 found="no" 16019 16020 if test $found = "no" ; then 16021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16023 fi 16024 16025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16027 fi 16028 16029 CFLAGS="$CFLAGS -Werror=implicit" 16030 16031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16032 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16033 cacheid=xorg_cv_cc_flag__Werror_implicit 16034 if eval test \${$cacheid+y} 16035 then : 16036 printf %s "(cached) " >&6 16037 else case e in #( 16038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16039 /* end confdefs.h. */ 16040 int i; 16041 int 16042 main (void) 16043 { 16044 16045 ; 16046 return 0; 16047 } 16048 _ACEOF 16049 if ac_fn_c_try_link "$LINENO" 16050 then : 16051 eval $cacheid=yes 16052 else case e in #( 16053 e) eval $cacheid=no ;; 16054 esac 16055 fi 16056 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16057 conftest$ac_exeext conftest.$ac_ext ;; 16058 esac 16059 fi 16060 16061 16062 CFLAGS="$xorg_testset_save_CFLAGS" 16063 16064 eval supported=\$$cacheid 16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16066 printf "%s\n" "$supported" >&6; } 16067 if test "$supported" = "yes" ; then 16068 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16069 found="yes" 16070 fi 16071 fi 16072 16073 if test $found = "no" ; then 16074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16076 fi 16077 16078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16080 fi 16081 16082 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16083 16084 { 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 16085 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16086 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16087 if eval test \${$cacheid+y} 16088 then : 16089 printf %s "(cached) " >&6 16090 else case e in #( 16091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16092 /* end confdefs.h. */ 16093 int i; 16094 int 16095 main (void) 16096 { 16097 16098 ; 16099 return 0; 16100 } 16101 _ACEOF 16102 if ac_fn_c_try_link "$LINENO" 16103 then : 16104 eval $cacheid=yes 16105 else case e in #( 16106 e) eval $cacheid=no ;; 16107 esac 16108 fi 16109 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16110 conftest$ac_exeext conftest.$ac_ext ;; 16111 esac 16112 fi 16113 16114 16115 CFLAGS="$xorg_testset_save_CFLAGS" 16116 16117 eval supported=\$$cacheid 16118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16119 printf "%s\n" "$supported" >&6; } 16120 if test "$supported" = "yes" ; then 16121 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16122 found="yes" 16123 fi 16124 fi 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 xorg_testset_save_CFLAGS="$CFLAGS" 16141 16142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16145 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16146 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16147 then : 16148 printf %s "(cached) " >&6 16149 else case e in #( 16150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16151 /* end confdefs.h. */ 16152 int i; 16153 _ACEOF 16154 if ac_fn_c_try_compile "$LINENO" 16155 then : 16156 xorg_cv_cc_flag_unknown_warning_option=yes 16157 else case e in #( 16158 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16159 esac 16160 fi 16161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16162 esac 16163 fi 16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16165 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16167 CFLAGS="$xorg_testset_save_CFLAGS" 16168 fi 16169 16170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16173 fi 16174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16176 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16177 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16178 then : 16179 printf %s "(cached) " >&6 16180 else case e in #( 16181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16182 /* end confdefs.h. */ 16183 int i; 16184 _ACEOF 16185 if ac_fn_c_try_compile "$LINENO" 16186 then : 16187 xorg_cv_cc_flag_unused_command_line_argument=yes 16188 else case e in #( 16189 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16190 esac 16191 fi 16192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16193 esac 16194 fi 16195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16196 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16198 CFLAGS="$xorg_testset_save_CFLAGS" 16199 fi 16200 16201 found="no" 16202 16203 if test $found = "no" ; then 16204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16206 fi 16207 16208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16210 fi 16211 16212 CFLAGS="$CFLAGS -Werror=nonnull" 16213 16214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16215 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16216 cacheid=xorg_cv_cc_flag__Werror_nonnull 16217 if eval test \${$cacheid+y} 16218 then : 16219 printf %s "(cached) " >&6 16220 else case e in #( 16221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16222 /* end confdefs.h. */ 16223 int i; 16224 int 16225 main (void) 16226 { 16227 16228 ; 16229 return 0; 16230 } 16231 _ACEOF 16232 if ac_fn_c_try_link "$LINENO" 16233 then : 16234 eval $cacheid=yes 16235 else case e in #( 16236 e) eval $cacheid=no ;; 16237 esac 16238 fi 16239 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16240 conftest$ac_exeext conftest.$ac_ext ;; 16241 esac 16242 fi 16243 16244 16245 CFLAGS="$xorg_testset_save_CFLAGS" 16246 16247 eval supported=\$$cacheid 16248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16249 printf "%s\n" "$supported" >&6; } 16250 if test "$supported" = "yes" ; then 16251 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16252 found="yes" 16253 fi 16254 fi 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 xorg_testset_save_CFLAGS="$CFLAGS" 16271 16272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16276 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16277 then : 16278 printf %s "(cached) " >&6 16279 else case e in #( 16280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16281 /* end confdefs.h. */ 16282 int i; 16283 _ACEOF 16284 if ac_fn_c_try_compile "$LINENO" 16285 then : 16286 xorg_cv_cc_flag_unknown_warning_option=yes 16287 else case e in #( 16288 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16289 esac 16290 fi 16291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16292 esac 16293 fi 16294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16295 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16297 CFLAGS="$xorg_testset_save_CFLAGS" 16298 fi 16299 16300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16303 fi 16304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16306 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16307 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16308 then : 16309 printf %s "(cached) " >&6 16310 else case e in #( 16311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16312 /* end confdefs.h. */ 16313 int i; 16314 _ACEOF 16315 if ac_fn_c_try_compile "$LINENO" 16316 then : 16317 xorg_cv_cc_flag_unused_command_line_argument=yes 16318 else case e in #( 16319 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16320 esac 16321 fi 16322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16323 esac 16324 fi 16325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16326 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16328 CFLAGS="$xorg_testset_save_CFLAGS" 16329 fi 16330 16331 found="no" 16332 16333 if test $found = "no" ; then 16334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16336 fi 16337 16338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16340 fi 16341 16342 CFLAGS="$CFLAGS -Werror=init-self" 16343 16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16345 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16346 cacheid=xorg_cv_cc_flag__Werror_init_self 16347 if eval test \${$cacheid+y} 16348 then : 16349 printf %s "(cached) " >&6 16350 else case e in #( 16351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16352 /* end confdefs.h. */ 16353 int i; 16354 int 16355 main (void) 16356 { 16357 16358 ; 16359 return 0; 16360 } 16361 _ACEOF 16362 if ac_fn_c_try_link "$LINENO" 16363 then : 16364 eval $cacheid=yes 16365 else case e in #( 16366 e) eval $cacheid=no ;; 16367 esac 16368 fi 16369 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16370 conftest$ac_exeext conftest.$ac_ext ;; 16371 esac 16372 fi 16373 16374 16375 CFLAGS="$xorg_testset_save_CFLAGS" 16376 16377 eval supported=\$$cacheid 16378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16379 printf "%s\n" "$supported" >&6; } 16380 if test "$supported" = "yes" ; then 16381 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16382 found="yes" 16383 fi 16384 fi 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 xorg_testset_save_CFLAGS="$CFLAGS" 16401 16402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16405 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16406 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16407 then : 16408 printf %s "(cached) " >&6 16409 else case e in #( 16410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16411 /* end confdefs.h. */ 16412 int i; 16413 _ACEOF 16414 if ac_fn_c_try_compile "$LINENO" 16415 then : 16416 xorg_cv_cc_flag_unknown_warning_option=yes 16417 else case e in #( 16418 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16419 esac 16420 fi 16421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16422 esac 16423 fi 16424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16427 CFLAGS="$xorg_testset_save_CFLAGS" 16428 fi 16429 16430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16433 fi 16434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16438 then : 16439 printf %s "(cached) " >&6 16440 else case e in #( 16441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16442 /* end confdefs.h. */ 16443 int i; 16444 _ACEOF 16445 if ac_fn_c_try_compile "$LINENO" 16446 then : 16447 xorg_cv_cc_flag_unused_command_line_argument=yes 16448 else case e in #( 16449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16450 esac 16451 fi 16452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16453 esac 16454 fi 16455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16456 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16458 CFLAGS="$xorg_testset_save_CFLAGS" 16459 fi 16460 16461 found="no" 16462 16463 if test $found = "no" ; then 16464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16466 fi 16467 16468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16470 fi 16471 16472 CFLAGS="$CFLAGS -Werror=main" 16473 16474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16475 printf %s "checking if $CC supports -Werror=main... " >&6; } 16476 cacheid=xorg_cv_cc_flag__Werror_main 16477 if eval test \${$cacheid+y} 16478 then : 16479 printf %s "(cached) " >&6 16480 else case e in #( 16481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16482 /* end confdefs.h. */ 16483 int i; 16484 int 16485 main (void) 16486 { 16487 16488 ; 16489 return 0; 16490 } 16491 _ACEOF 16492 if ac_fn_c_try_link "$LINENO" 16493 then : 16494 eval $cacheid=yes 16495 else case e in #( 16496 e) eval $cacheid=no ;; 16497 esac 16498 fi 16499 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16500 conftest$ac_exeext conftest.$ac_ext ;; 16501 esac 16502 fi 16503 16504 16505 CFLAGS="$xorg_testset_save_CFLAGS" 16506 16507 eval supported=\$$cacheid 16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16509 printf "%s\n" "$supported" >&6; } 16510 if test "$supported" = "yes" ; then 16511 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16512 found="yes" 16513 fi 16514 fi 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 xorg_testset_save_CFLAGS="$CFLAGS" 16531 16532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16536 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16537 then : 16538 printf %s "(cached) " >&6 16539 else case e in #( 16540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16541 /* end confdefs.h. */ 16542 int i; 16543 _ACEOF 16544 if ac_fn_c_try_compile "$LINENO" 16545 then : 16546 xorg_cv_cc_flag_unknown_warning_option=yes 16547 else case e in #( 16548 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16549 esac 16550 fi 16551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16552 esac 16553 fi 16554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16557 CFLAGS="$xorg_testset_save_CFLAGS" 16558 fi 16559 16560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16563 fi 16564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16568 then : 16569 printf %s "(cached) " >&6 16570 else case e in #( 16571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16572 /* end confdefs.h. */ 16573 int i; 16574 _ACEOF 16575 if ac_fn_c_try_compile "$LINENO" 16576 then : 16577 xorg_cv_cc_flag_unused_command_line_argument=yes 16578 else case e in #( 16579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16580 esac 16581 fi 16582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16583 esac 16584 fi 16585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16586 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16588 CFLAGS="$xorg_testset_save_CFLAGS" 16589 fi 16590 16591 found="no" 16592 16593 if test $found = "no" ; then 16594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16596 fi 16597 16598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16600 fi 16601 16602 CFLAGS="$CFLAGS -Werror=missing-braces" 16603 16604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16605 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16606 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16607 if eval test \${$cacheid+y} 16608 then : 16609 printf %s "(cached) " >&6 16610 else case e in #( 16611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16612 /* end confdefs.h. */ 16613 int i; 16614 int 16615 main (void) 16616 { 16617 16618 ; 16619 return 0; 16620 } 16621 _ACEOF 16622 if ac_fn_c_try_link "$LINENO" 16623 then : 16624 eval $cacheid=yes 16625 else case e in #( 16626 e) eval $cacheid=no ;; 16627 esac 16628 fi 16629 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16630 conftest$ac_exeext conftest.$ac_ext ;; 16631 esac 16632 fi 16633 16634 16635 CFLAGS="$xorg_testset_save_CFLAGS" 16636 16637 eval supported=\$$cacheid 16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16639 printf "%s\n" "$supported" >&6; } 16640 if test "$supported" = "yes" ; then 16641 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16642 found="yes" 16643 fi 16644 fi 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 xorg_testset_save_CFLAGS="$CFLAGS" 16661 16662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16666 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16667 then : 16668 printf %s "(cached) " >&6 16669 else case e in #( 16670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16671 /* end confdefs.h. */ 16672 int i; 16673 _ACEOF 16674 if ac_fn_c_try_compile "$LINENO" 16675 then : 16676 xorg_cv_cc_flag_unknown_warning_option=yes 16677 else case e in #( 16678 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16679 esac 16680 fi 16681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16682 esac 16683 fi 16684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16687 CFLAGS="$xorg_testset_save_CFLAGS" 16688 fi 16689 16690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16693 fi 16694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16698 then : 16699 printf %s "(cached) " >&6 16700 else case e in #( 16701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16702 /* end confdefs.h. */ 16703 int i; 16704 _ACEOF 16705 if ac_fn_c_try_compile "$LINENO" 16706 then : 16707 xorg_cv_cc_flag_unused_command_line_argument=yes 16708 else case e in #( 16709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16710 esac 16711 fi 16712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16713 esac 16714 fi 16715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16718 CFLAGS="$xorg_testset_save_CFLAGS" 16719 fi 16720 16721 found="no" 16722 16723 if test $found = "no" ; then 16724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16726 fi 16727 16728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16730 fi 16731 16732 CFLAGS="$CFLAGS -Werror=sequence-point" 16733 16734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16735 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16736 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16737 if eval test \${$cacheid+y} 16738 then : 16739 printf %s "(cached) " >&6 16740 else case e in #( 16741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16742 /* end confdefs.h. */ 16743 int i; 16744 int 16745 main (void) 16746 { 16747 16748 ; 16749 return 0; 16750 } 16751 _ACEOF 16752 if ac_fn_c_try_link "$LINENO" 16753 then : 16754 eval $cacheid=yes 16755 else case e in #( 16756 e) eval $cacheid=no ;; 16757 esac 16758 fi 16759 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16760 conftest$ac_exeext conftest.$ac_ext ;; 16761 esac 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=sequence-point" 16772 found="yes" 16773 fi 16774 fi 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 xorg_testset_save_CFLAGS="$CFLAGS" 16791 16792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16795 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16796 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16797 then : 16798 printf %s "(cached) " >&6 16799 else case e in #( 16800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16801 /* end confdefs.h. */ 16802 int i; 16803 _ACEOF 16804 if ac_fn_c_try_compile "$LINENO" 16805 then : 16806 xorg_cv_cc_flag_unknown_warning_option=yes 16807 else case e in #( 16808 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16809 esac 16810 fi 16811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16812 esac 16813 fi 16814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16817 CFLAGS="$xorg_testset_save_CFLAGS" 16818 fi 16819 16820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16823 fi 16824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16828 then : 16829 printf %s "(cached) " >&6 16830 else case e in #( 16831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16832 /* end confdefs.h. */ 16833 int i; 16834 _ACEOF 16835 if ac_fn_c_try_compile "$LINENO" 16836 then : 16837 xorg_cv_cc_flag_unused_command_line_argument=yes 16838 else case e in #( 16839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16840 esac 16841 fi 16842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16843 esac 16844 fi 16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16846 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16848 CFLAGS="$xorg_testset_save_CFLAGS" 16849 fi 16850 16851 found="no" 16852 16853 if test $found = "no" ; then 16854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16856 fi 16857 16858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16860 fi 16861 16862 CFLAGS="$CFLAGS -Werror=return-type" 16863 16864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16865 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16866 cacheid=xorg_cv_cc_flag__Werror_return_type 16867 if eval test \${$cacheid+y} 16868 then : 16869 printf %s "(cached) " >&6 16870 else case e in #( 16871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16872 /* end confdefs.h. */ 16873 int i; 16874 int 16875 main (void) 16876 { 16877 16878 ; 16879 return 0; 16880 } 16881 _ACEOF 16882 if ac_fn_c_try_link "$LINENO" 16883 then : 16884 eval $cacheid=yes 16885 else case e in #( 16886 e) eval $cacheid=no ;; 16887 esac 16888 fi 16889 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16890 conftest$ac_exeext conftest.$ac_ext ;; 16891 esac 16892 fi 16893 16894 16895 CFLAGS="$xorg_testset_save_CFLAGS" 16896 16897 eval supported=\$$cacheid 16898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16899 printf "%s\n" "$supported" >&6; } 16900 if test "$supported" = "yes" ; then 16901 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16902 found="yes" 16903 fi 16904 fi 16905 16906 if test $found = "no" ; then 16907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16909 fi 16910 16911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16913 fi 16914 16915 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16916 16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16918 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16919 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16920 if eval test \${$cacheid+y} 16921 then : 16922 printf %s "(cached) " >&6 16923 else case e in #( 16924 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16925 /* end confdefs.h. */ 16926 int i; 16927 int 16928 main (void) 16929 { 16930 16931 ; 16932 return 0; 16933 } 16934 _ACEOF 16935 if ac_fn_c_try_link "$LINENO" 16936 then : 16937 eval $cacheid=yes 16938 else case e in #( 16939 e) eval $cacheid=no ;; 16940 esac 16941 fi 16942 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16943 conftest$ac_exeext conftest.$ac_ext ;; 16944 esac 16945 fi 16946 16947 16948 CFLAGS="$xorg_testset_save_CFLAGS" 16949 16950 eval supported=\$$cacheid 16951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16952 printf "%s\n" "$supported" >&6; } 16953 if test "$supported" = "yes" ; then 16954 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16955 found="yes" 16956 fi 16957 fi 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 xorg_testset_save_CFLAGS="$CFLAGS" 16974 16975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16978 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16979 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16980 then : 16981 printf %s "(cached) " >&6 16982 else case e in #( 16983 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16984 /* end confdefs.h. */ 16985 int i; 16986 _ACEOF 16987 if ac_fn_c_try_compile "$LINENO" 16988 then : 16989 xorg_cv_cc_flag_unknown_warning_option=yes 16990 else case e in #( 16991 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16992 esac 16993 fi 16994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16995 esac 16996 fi 16997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16998 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17000 CFLAGS="$xorg_testset_save_CFLAGS" 17001 fi 17002 17003 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17006 fi 17007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17009 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17010 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17011 then : 17012 printf %s "(cached) " >&6 17013 else case e in #( 17014 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17015 /* end confdefs.h. */ 17016 int i; 17017 _ACEOF 17018 if ac_fn_c_try_compile "$LINENO" 17019 then : 17020 xorg_cv_cc_flag_unused_command_line_argument=yes 17021 else case e in #( 17022 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17023 esac 17024 fi 17025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17026 esac 17027 fi 17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17029 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17030 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17031 CFLAGS="$xorg_testset_save_CFLAGS" 17032 fi 17033 17034 found="no" 17035 17036 if test $found = "no" ; then 17037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17039 fi 17040 17041 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17043 fi 17044 17045 CFLAGS="$CFLAGS -Werror=trigraphs" 17046 17047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17048 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17049 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17050 if eval test \${$cacheid+y} 17051 then : 17052 printf %s "(cached) " >&6 17053 else case e in #( 17054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17055 /* end confdefs.h. */ 17056 int i; 17057 int 17058 main (void) 17059 { 17060 17061 ; 17062 return 0; 17063 } 17064 _ACEOF 17065 if ac_fn_c_try_link "$LINENO" 17066 then : 17067 eval $cacheid=yes 17068 else case e in #( 17069 e) eval $cacheid=no ;; 17070 esac 17071 fi 17072 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17073 conftest$ac_exeext conftest.$ac_ext ;; 17074 esac 17075 fi 17076 17077 17078 CFLAGS="$xorg_testset_save_CFLAGS" 17079 17080 eval supported=\$$cacheid 17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17082 printf "%s\n" "$supported" >&6; } 17083 if test "$supported" = "yes" ; then 17084 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17085 found="yes" 17086 fi 17087 fi 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 xorg_testset_save_CFLAGS="$CFLAGS" 17104 17105 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17108 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17109 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17110 then : 17111 printf %s "(cached) " >&6 17112 else case e in #( 17113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17114 /* end confdefs.h. */ 17115 int i; 17116 _ACEOF 17117 if ac_fn_c_try_compile "$LINENO" 17118 then : 17119 xorg_cv_cc_flag_unknown_warning_option=yes 17120 else case e in #( 17121 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17122 esac 17123 fi 17124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17125 esac 17126 fi 17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17128 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17130 CFLAGS="$xorg_testset_save_CFLAGS" 17131 fi 17132 17133 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17136 fi 17137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17139 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17140 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17141 then : 17142 printf %s "(cached) " >&6 17143 else case e in #( 17144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17145 /* end confdefs.h. */ 17146 int i; 17147 _ACEOF 17148 if ac_fn_c_try_compile "$LINENO" 17149 then : 17150 xorg_cv_cc_flag_unused_command_line_argument=yes 17151 else case e in #( 17152 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17153 esac 17154 fi 17155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17156 esac 17157 fi 17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17159 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17161 CFLAGS="$xorg_testset_save_CFLAGS" 17162 fi 17163 17164 found="no" 17165 17166 if test $found = "no" ; then 17167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17169 fi 17170 17171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17173 fi 17174 17175 CFLAGS="$CFLAGS -Werror=array-bounds" 17176 17177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17178 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17179 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17180 if eval test \${$cacheid+y} 17181 then : 17182 printf %s "(cached) " >&6 17183 else case e in #( 17184 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17185 /* end confdefs.h. */ 17186 int i; 17187 int 17188 main (void) 17189 { 17190 17191 ; 17192 return 0; 17193 } 17194 _ACEOF 17195 if ac_fn_c_try_link "$LINENO" 17196 then : 17197 eval $cacheid=yes 17198 else case e in #( 17199 e) eval $cacheid=no ;; 17200 esac 17201 fi 17202 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17203 conftest$ac_exeext conftest.$ac_ext ;; 17204 esac 17205 fi 17206 17207 17208 CFLAGS="$xorg_testset_save_CFLAGS" 17209 17210 eval supported=\$$cacheid 17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17212 printf "%s\n" "$supported" >&6; } 17213 if test "$supported" = "yes" ; then 17214 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17215 found="yes" 17216 fi 17217 fi 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 xorg_testset_save_CFLAGS="$CFLAGS" 17234 17235 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17238 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17239 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17240 then : 17241 printf %s "(cached) " >&6 17242 else case e in #( 17243 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244 /* end confdefs.h. */ 17245 int i; 17246 _ACEOF 17247 if ac_fn_c_try_compile "$LINENO" 17248 then : 17249 xorg_cv_cc_flag_unknown_warning_option=yes 17250 else case e in #( 17251 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17252 esac 17253 fi 17254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17255 esac 17256 fi 17257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17258 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17259 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17260 CFLAGS="$xorg_testset_save_CFLAGS" 17261 fi 17262 17263 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17266 fi 17267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17269 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17270 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17271 then : 17272 printf %s "(cached) " >&6 17273 else case e in #( 17274 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17275 /* end confdefs.h. */ 17276 int i; 17277 _ACEOF 17278 if ac_fn_c_try_compile "$LINENO" 17279 then : 17280 xorg_cv_cc_flag_unused_command_line_argument=yes 17281 else case e in #( 17282 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17283 esac 17284 fi 17285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17286 esac 17287 fi 17288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17289 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17290 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17291 CFLAGS="$xorg_testset_save_CFLAGS" 17292 fi 17293 17294 found="no" 17295 17296 if test $found = "no" ; then 17297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17298 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17299 fi 17300 17301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17303 fi 17304 17305 CFLAGS="$CFLAGS -Werror=write-strings" 17306 17307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17308 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17309 cacheid=xorg_cv_cc_flag__Werror_write_strings 17310 if eval test \${$cacheid+y} 17311 then : 17312 printf %s "(cached) " >&6 17313 else case e in #( 17314 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17315 /* end confdefs.h. */ 17316 int i; 17317 int 17318 main (void) 17319 { 17320 17321 ; 17322 return 0; 17323 } 17324 _ACEOF 17325 if ac_fn_c_try_link "$LINENO" 17326 then : 17327 eval $cacheid=yes 17328 else case e in #( 17329 e) eval $cacheid=no ;; 17330 esac 17331 fi 17332 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17333 conftest$ac_exeext conftest.$ac_ext ;; 17334 esac 17335 fi 17336 17337 17338 CFLAGS="$xorg_testset_save_CFLAGS" 17339 17340 eval supported=\$$cacheid 17341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17342 printf "%s\n" "$supported" >&6; } 17343 if test "$supported" = "yes" ; then 17344 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17345 found="yes" 17346 fi 17347 fi 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 xorg_testset_save_CFLAGS="$CFLAGS" 17364 17365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17368 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17369 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17370 then : 17371 printf %s "(cached) " >&6 17372 else case e in #( 17373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17374 /* end confdefs.h. */ 17375 int i; 17376 _ACEOF 17377 if ac_fn_c_try_compile "$LINENO" 17378 then : 17379 xorg_cv_cc_flag_unknown_warning_option=yes 17380 else case e in #( 17381 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17382 esac 17383 fi 17384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17385 esac 17386 fi 17387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17388 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17390 CFLAGS="$xorg_testset_save_CFLAGS" 17391 fi 17392 17393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17396 fi 17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17401 then : 17402 printf %s "(cached) " >&6 17403 else case e in #( 17404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17405 /* end confdefs.h. */ 17406 int i; 17407 _ACEOF 17408 if ac_fn_c_try_compile "$LINENO" 17409 then : 17410 xorg_cv_cc_flag_unused_command_line_argument=yes 17411 else case e in #( 17412 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17413 esac 17414 fi 17415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17416 esac 17417 fi 17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17419 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17421 CFLAGS="$xorg_testset_save_CFLAGS" 17422 fi 17423 17424 found="no" 17425 17426 if test $found = "no" ; then 17427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17429 fi 17430 17431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17433 fi 17434 17435 CFLAGS="$CFLAGS -Werror=address" 17436 17437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17438 printf %s "checking if $CC supports -Werror=address... " >&6; } 17439 cacheid=xorg_cv_cc_flag__Werror_address 17440 if eval test \${$cacheid+y} 17441 then : 17442 printf %s "(cached) " >&6 17443 else case e in #( 17444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17445 /* end confdefs.h. */ 17446 int i; 17447 int 17448 main (void) 17449 { 17450 17451 ; 17452 return 0; 17453 } 17454 _ACEOF 17455 if ac_fn_c_try_link "$LINENO" 17456 then : 17457 eval $cacheid=yes 17458 else case e in #( 17459 e) eval $cacheid=no ;; 17460 esac 17461 fi 17462 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17463 conftest$ac_exeext conftest.$ac_ext ;; 17464 esac 17465 fi 17466 17467 17468 CFLAGS="$xorg_testset_save_CFLAGS" 17469 17470 eval supported=\$$cacheid 17471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17472 printf "%s\n" "$supported" >&6; } 17473 if test "$supported" = "yes" ; then 17474 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17475 found="yes" 17476 fi 17477 fi 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 xorg_testset_save_CFLAGS="$CFLAGS" 17494 17495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17498 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17499 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17500 then : 17501 printf %s "(cached) " >&6 17502 else case e in #( 17503 e) 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_unknown_warning_option=yes 17510 else case e in #( 17511 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17512 esac 17513 fi 17514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17515 esac 17516 fi 17517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17518 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17520 CFLAGS="$xorg_testset_save_CFLAGS" 17521 fi 17522 17523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17526 fi 17527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17529 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17530 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17531 then : 17532 printf %s "(cached) " >&6 17533 else case e in #( 17534 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17535 /* end confdefs.h. */ 17536 int i; 17537 _ACEOF 17538 if ac_fn_c_try_compile "$LINENO" 17539 then : 17540 xorg_cv_cc_flag_unused_command_line_argument=yes 17541 else case e in #( 17542 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17543 esac 17544 fi 17545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17546 esac 17547 fi 17548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17549 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17551 CFLAGS="$xorg_testset_save_CFLAGS" 17552 fi 17553 17554 found="no" 17555 17556 if test $found = "no" ; then 17557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17559 fi 17560 17561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17563 fi 17564 17565 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17566 17567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17568 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17569 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17570 if eval test \${$cacheid+y} 17571 then : 17572 printf %s "(cached) " >&6 17573 else case e in #( 17574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17575 /* end confdefs.h. */ 17576 int i; 17577 int 17578 main (void) 17579 { 17580 17581 ; 17582 return 0; 17583 } 17584 _ACEOF 17585 if ac_fn_c_try_link "$LINENO" 17586 then : 17587 eval $cacheid=yes 17588 else case e in #( 17589 e) eval $cacheid=no ;; 17590 esac 17591 fi 17592 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17593 conftest$ac_exeext conftest.$ac_ext ;; 17594 esac 17595 fi 17596 17597 17598 CFLAGS="$xorg_testset_save_CFLAGS" 17599 17600 eval supported=\$$cacheid 17601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17602 printf "%s\n" "$supported" >&6; } 17603 if test "$supported" = "yes" ; then 17604 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17605 found="yes" 17606 fi 17607 fi 17608 17609 if test $found = "no" ; then 17610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17612 fi 17613 17614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17616 fi 17617 17618 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17619 17620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17621 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17622 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17623 if eval test \${$cacheid+y} 17624 then : 17625 printf %s "(cached) " >&6 17626 else case e in #( 17627 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17628 /* end confdefs.h. */ 17629 int i; 17630 int 17631 main (void) 17632 { 17633 17634 ; 17635 return 0; 17636 } 17637 _ACEOF 17638 if ac_fn_c_try_link "$LINENO" 17639 then : 17640 eval $cacheid=yes 17641 else case e in #( 17642 e) eval $cacheid=no ;; 17643 esac 17644 fi 17645 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17646 conftest$ac_exeext conftest.$ac_ext ;; 17647 esac 17648 fi 17649 17650 17651 CFLAGS="$xorg_testset_save_CFLAGS" 17652 17653 eval supported=\$$cacheid 17654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17655 printf "%s\n" "$supported" >&6; } 17656 if test "$supported" = "yes" ; then 17657 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17658 found="yes" 17659 fi 17660 fi 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 xorg_testset_save_CFLAGS="$CFLAGS" 17677 17678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17681 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17682 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17683 then : 17684 printf %s "(cached) " >&6 17685 else case e in #( 17686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17687 /* end confdefs.h. */ 17688 int i; 17689 _ACEOF 17690 if ac_fn_c_try_compile "$LINENO" 17691 then : 17692 xorg_cv_cc_flag_unknown_warning_option=yes 17693 else case e in #( 17694 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17695 esac 17696 fi 17697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17698 esac 17699 fi 17700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17701 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17703 CFLAGS="$xorg_testset_save_CFLAGS" 17704 fi 17705 17706 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17709 fi 17710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17712 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17713 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17714 then : 17715 printf %s "(cached) " >&6 17716 else case e in #( 17717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17718 /* end confdefs.h. */ 17719 int i; 17720 _ACEOF 17721 if ac_fn_c_try_compile "$LINENO" 17722 then : 17723 xorg_cv_cc_flag_unused_command_line_argument=yes 17724 else case e in #( 17725 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17726 esac 17727 fi 17728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17729 esac 17730 fi 17731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17732 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17734 CFLAGS="$xorg_testset_save_CFLAGS" 17735 fi 17736 17737 found="no" 17738 17739 if test $found = "no" ; then 17740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17742 fi 17743 17744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17746 fi 17747 17748 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17749 17750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17751 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17752 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17753 if eval test \${$cacheid+y} 17754 then : 17755 printf %s "(cached) " >&6 17756 else case e in #( 17757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17758 /* end confdefs.h. */ 17759 int i; 17760 int 17761 main (void) 17762 { 17763 17764 ; 17765 return 0; 17766 } 17767 _ACEOF 17768 if ac_fn_c_try_link "$LINENO" 17769 then : 17770 eval $cacheid=yes 17771 else case e in #( 17772 e) eval $cacheid=no ;; 17773 esac 17774 fi 17775 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17776 conftest$ac_exeext conftest.$ac_ext ;; 17777 esac 17778 fi 17779 17780 17781 CFLAGS="$xorg_testset_save_CFLAGS" 17782 17783 eval supported=\$$cacheid 17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17785 printf "%s\n" "$supported" >&6; } 17786 if test "$supported" = "yes" ; then 17787 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17788 found="yes" 17789 fi 17790 fi 17791 17792 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17793 else 17794 { 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 17795 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;} 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 xorg_testset_save_CFLAGS="$CFLAGS" 17810 17811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17814 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17815 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17816 then : 17817 printf %s "(cached) " >&6 17818 else case e in #( 17819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17820 /* end confdefs.h. */ 17821 int i; 17822 _ACEOF 17823 if ac_fn_c_try_compile "$LINENO" 17824 then : 17825 xorg_cv_cc_flag_unknown_warning_option=yes 17826 else case e in #( 17827 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17828 esac 17829 fi 17830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17831 esac 17832 fi 17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17834 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17836 CFLAGS="$xorg_testset_save_CFLAGS" 17837 fi 17838 17839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17842 fi 17843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17845 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17846 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17847 then : 17848 printf %s "(cached) " >&6 17849 else case e in #( 17850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17851 /* end confdefs.h. */ 17852 int i; 17853 _ACEOF 17854 if ac_fn_c_try_compile "$LINENO" 17855 then : 17856 xorg_cv_cc_flag_unused_command_line_argument=yes 17857 else case e in #( 17858 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17859 esac 17860 fi 17861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17862 esac 17863 fi 17864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17865 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17867 CFLAGS="$xorg_testset_save_CFLAGS" 17868 fi 17869 17870 found="no" 17871 17872 if test $found = "no" ; then 17873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17875 fi 17876 17877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17879 fi 17880 17881 CFLAGS="$CFLAGS -Wimplicit" 17882 17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17884 printf %s "checking if $CC supports -Wimplicit... " >&6; } 17885 cacheid=xorg_cv_cc_flag__Wimplicit 17886 if eval test \${$cacheid+y} 17887 then : 17888 printf %s "(cached) " >&6 17889 else case e in #( 17890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17891 /* end confdefs.h. */ 17892 int i; 17893 int 17894 main (void) 17895 { 17896 17897 ; 17898 return 0; 17899 } 17900 _ACEOF 17901 if ac_fn_c_try_link "$LINENO" 17902 then : 17903 eval $cacheid=yes 17904 else case e in #( 17905 e) eval $cacheid=no ;; 17906 esac 17907 fi 17908 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17909 conftest$ac_exeext conftest.$ac_ext ;; 17910 esac 17911 fi 17912 17913 17914 CFLAGS="$xorg_testset_save_CFLAGS" 17915 17916 eval supported=\$$cacheid 17917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17918 printf "%s\n" "$supported" >&6; } 17919 if test "$supported" = "yes" ; then 17920 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17921 found="yes" 17922 fi 17923 fi 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 xorg_testset_save_CFLAGS="$CFLAGS" 17940 17941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17945 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17946 then : 17947 printf %s "(cached) " >&6 17948 else case e in #( 17949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17950 /* end confdefs.h. */ 17951 int i; 17952 _ACEOF 17953 if ac_fn_c_try_compile "$LINENO" 17954 then : 17955 xorg_cv_cc_flag_unknown_warning_option=yes 17956 else case e in #( 17957 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17958 esac 17959 fi 17960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17961 esac 17962 fi 17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17964 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17966 CFLAGS="$xorg_testset_save_CFLAGS" 17967 fi 17968 17969 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17972 fi 17973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17975 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17976 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17977 then : 17978 printf %s "(cached) " >&6 17979 else case e in #( 17980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17981 /* end confdefs.h. */ 17982 int i; 17983 _ACEOF 17984 if ac_fn_c_try_compile "$LINENO" 17985 then : 17986 xorg_cv_cc_flag_unused_command_line_argument=yes 17987 else case e in #( 17988 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17989 esac 17990 fi 17991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17992 esac 17993 fi 17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17995 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17997 CFLAGS="$xorg_testset_save_CFLAGS" 17998 fi 17999 18000 found="no" 18001 18002 if test $found = "no" ; then 18003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18005 fi 18006 18007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18009 fi 18010 18011 CFLAGS="$CFLAGS -Wnonnull" 18012 18013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18014 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18015 cacheid=xorg_cv_cc_flag__Wnonnull 18016 if eval test \${$cacheid+y} 18017 then : 18018 printf %s "(cached) " >&6 18019 else case e in #( 18020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18021 /* end confdefs.h. */ 18022 int i; 18023 int 18024 main (void) 18025 { 18026 18027 ; 18028 return 0; 18029 } 18030 _ACEOF 18031 if ac_fn_c_try_link "$LINENO" 18032 then : 18033 eval $cacheid=yes 18034 else case e in #( 18035 e) eval $cacheid=no ;; 18036 esac 18037 fi 18038 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18039 conftest$ac_exeext conftest.$ac_ext ;; 18040 esac 18041 fi 18042 18043 18044 CFLAGS="$xorg_testset_save_CFLAGS" 18045 18046 eval supported=\$$cacheid 18047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18048 printf "%s\n" "$supported" >&6; } 18049 if test "$supported" = "yes" ; then 18050 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18051 found="yes" 18052 fi 18053 fi 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 xorg_testset_save_CFLAGS="$CFLAGS" 18070 18071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18074 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18075 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18076 then : 18077 printf %s "(cached) " >&6 18078 else case e in #( 18079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18080 /* end confdefs.h. */ 18081 int i; 18082 _ACEOF 18083 if ac_fn_c_try_compile "$LINENO" 18084 then : 18085 xorg_cv_cc_flag_unknown_warning_option=yes 18086 else case e in #( 18087 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18088 esac 18089 fi 18090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18091 esac 18092 fi 18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18094 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18096 CFLAGS="$xorg_testset_save_CFLAGS" 18097 fi 18098 18099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18102 fi 18103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18105 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18106 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18107 then : 18108 printf %s "(cached) " >&6 18109 else case e in #( 18110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18111 /* end confdefs.h. */ 18112 int i; 18113 _ACEOF 18114 if ac_fn_c_try_compile "$LINENO" 18115 then : 18116 xorg_cv_cc_flag_unused_command_line_argument=yes 18117 else case e in #( 18118 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18119 esac 18120 fi 18121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18122 esac 18123 fi 18124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18125 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18127 CFLAGS="$xorg_testset_save_CFLAGS" 18128 fi 18129 18130 found="no" 18131 18132 if test $found = "no" ; then 18133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18135 fi 18136 18137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18139 fi 18140 18141 CFLAGS="$CFLAGS -Winit-self" 18142 18143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18144 printf %s "checking if $CC supports -Winit-self... " >&6; } 18145 cacheid=xorg_cv_cc_flag__Winit_self 18146 if eval test \${$cacheid+y} 18147 then : 18148 printf %s "(cached) " >&6 18149 else case e in #( 18150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18151 /* end confdefs.h. */ 18152 int i; 18153 int 18154 main (void) 18155 { 18156 18157 ; 18158 return 0; 18159 } 18160 _ACEOF 18161 if ac_fn_c_try_link "$LINENO" 18162 then : 18163 eval $cacheid=yes 18164 else case e in #( 18165 e) eval $cacheid=no ;; 18166 esac 18167 fi 18168 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18169 conftest$ac_exeext conftest.$ac_ext ;; 18170 esac 18171 fi 18172 18173 18174 CFLAGS="$xorg_testset_save_CFLAGS" 18175 18176 eval supported=\$$cacheid 18177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18178 printf "%s\n" "$supported" >&6; } 18179 if test "$supported" = "yes" ; then 18180 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18181 found="yes" 18182 fi 18183 fi 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 xorg_testset_save_CFLAGS="$CFLAGS" 18200 18201 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18204 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18205 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18206 then : 18207 printf %s "(cached) " >&6 18208 else case e in #( 18209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18210 /* end confdefs.h. */ 18211 int i; 18212 _ACEOF 18213 if ac_fn_c_try_compile "$LINENO" 18214 then : 18215 xorg_cv_cc_flag_unknown_warning_option=yes 18216 else case e in #( 18217 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18218 esac 18219 fi 18220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18221 esac 18222 fi 18223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18224 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18226 CFLAGS="$xorg_testset_save_CFLAGS" 18227 fi 18228 18229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18232 fi 18233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18235 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18236 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18237 then : 18238 printf %s "(cached) " >&6 18239 else case e in #( 18240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18241 /* end confdefs.h. */ 18242 int i; 18243 _ACEOF 18244 if ac_fn_c_try_compile "$LINENO" 18245 then : 18246 xorg_cv_cc_flag_unused_command_line_argument=yes 18247 else case e in #( 18248 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18249 esac 18250 fi 18251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18252 esac 18253 fi 18254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18255 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18257 CFLAGS="$xorg_testset_save_CFLAGS" 18258 fi 18259 18260 found="no" 18261 18262 if test $found = "no" ; then 18263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18265 fi 18266 18267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18269 fi 18270 18271 CFLAGS="$CFLAGS -Wmain" 18272 18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18274 printf %s "checking if $CC supports -Wmain... " >&6; } 18275 cacheid=xorg_cv_cc_flag__Wmain 18276 if eval test \${$cacheid+y} 18277 then : 18278 printf %s "(cached) " >&6 18279 else case e in #( 18280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18281 /* end confdefs.h. */ 18282 int i; 18283 int 18284 main (void) 18285 { 18286 18287 ; 18288 return 0; 18289 } 18290 _ACEOF 18291 if ac_fn_c_try_link "$LINENO" 18292 then : 18293 eval $cacheid=yes 18294 else case e in #( 18295 e) eval $cacheid=no ;; 18296 esac 18297 fi 18298 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18299 conftest$ac_exeext conftest.$ac_ext ;; 18300 esac 18301 fi 18302 18303 18304 CFLAGS="$xorg_testset_save_CFLAGS" 18305 18306 eval supported=\$$cacheid 18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18308 printf "%s\n" "$supported" >&6; } 18309 if test "$supported" = "yes" ; then 18310 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18311 found="yes" 18312 fi 18313 fi 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 xorg_testset_save_CFLAGS="$CFLAGS" 18330 18331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18334 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18335 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18336 then : 18337 printf %s "(cached) " >&6 18338 else case e in #( 18339 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18340 /* end confdefs.h. */ 18341 int i; 18342 _ACEOF 18343 if ac_fn_c_try_compile "$LINENO" 18344 then : 18345 xorg_cv_cc_flag_unknown_warning_option=yes 18346 else case e in #( 18347 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18348 esac 18349 fi 18350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18351 esac 18352 fi 18353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18354 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18356 CFLAGS="$xorg_testset_save_CFLAGS" 18357 fi 18358 18359 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18362 fi 18363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18365 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18366 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18367 then : 18368 printf %s "(cached) " >&6 18369 else case e in #( 18370 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18371 /* end confdefs.h. */ 18372 int i; 18373 _ACEOF 18374 if ac_fn_c_try_compile "$LINENO" 18375 then : 18376 xorg_cv_cc_flag_unused_command_line_argument=yes 18377 else case e in #( 18378 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18379 esac 18380 fi 18381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18382 esac 18383 fi 18384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18385 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18387 CFLAGS="$xorg_testset_save_CFLAGS" 18388 fi 18389 18390 found="no" 18391 18392 if test $found = "no" ; then 18393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18395 fi 18396 18397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18399 fi 18400 18401 CFLAGS="$CFLAGS -Wmissing-braces" 18402 18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18404 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18405 cacheid=xorg_cv_cc_flag__Wmissing_braces 18406 if eval test \${$cacheid+y} 18407 then : 18408 printf %s "(cached) " >&6 18409 else case e in #( 18410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18411 /* end confdefs.h. */ 18412 int i; 18413 int 18414 main (void) 18415 { 18416 18417 ; 18418 return 0; 18419 } 18420 _ACEOF 18421 if ac_fn_c_try_link "$LINENO" 18422 then : 18423 eval $cacheid=yes 18424 else case e in #( 18425 e) eval $cacheid=no ;; 18426 esac 18427 fi 18428 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18429 conftest$ac_exeext conftest.$ac_ext ;; 18430 esac 18431 fi 18432 18433 18434 CFLAGS="$xorg_testset_save_CFLAGS" 18435 18436 eval supported=\$$cacheid 18437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18438 printf "%s\n" "$supported" >&6; } 18439 if test "$supported" = "yes" ; then 18440 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18441 found="yes" 18442 fi 18443 fi 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 xorg_testset_save_CFLAGS="$CFLAGS" 18460 18461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18465 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18466 then : 18467 printf %s "(cached) " >&6 18468 else case e in #( 18469 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18470 /* end confdefs.h. */ 18471 int i; 18472 _ACEOF 18473 if ac_fn_c_try_compile "$LINENO" 18474 then : 18475 xorg_cv_cc_flag_unknown_warning_option=yes 18476 else case e in #( 18477 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18478 esac 18479 fi 18480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18481 esac 18482 fi 18483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18486 CFLAGS="$xorg_testset_save_CFLAGS" 18487 fi 18488 18489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18492 fi 18493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18497 then : 18498 printf %s "(cached) " >&6 18499 else case e in #( 18500 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18501 /* end confdefs.h. */ 18502 int i; 18503 _ACEOF 18504 if ac_fn_c_try_compile "$LINENO" 18505 then : 18506 xorg_cv_cc_flag_unused_command_line_argument=yes 18507 else case e in #( 18508 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18509 esac 18510 fi 18511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18512 esac 18513 fi 18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18517 CFLAGS="$xorg_testset_save_CFLAGS" 18518 fi 18519 18520 found="no" 18521 18522 if test $found = "no" ; then 18523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18525 fi 18526 18527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18529 fi 18530 18531 CFLAGS="$CFLAGS -Wsequence-point" 18532 18533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18534 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18535 cacheid=xorg_cv_cc_flag__Wsequence_point 18536 if eval test \${$cacheid+y} 18537 then : 18538 printf %s "(cached) " >&6 18539 else case e in #( 18540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18541 /* end confdefs.h. */ 18542 int i; 18543 int 18544 main (void) 18545 { 18546 18547 ; 18548 return 0; 18549 } 18550 _ACEOF 18551 if ac_fn_c_try_link "$LINENO" 18552 then : 18553 eval $cacheid=yes 18554 else case e in #( 18555 e) eval $cacheid=no ;; 18556 esac 18557 fi 18558 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18559 conftest$ac_exeext conftest.$ac_ext ;; 18560 esac 18561 fi 18562 18563 18564 CFLAGS="$xorg_testset_save_CFLAGS" 18565 18566 eval supported=\$$cacheid 18567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18568 printf "%s\n" "$supported" >&6; } 18569 if test "$supported" = "yes" ; then 18570 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18571 found="yes" 18572 fi 18573 fi 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 xorg_testset_save_CFLAGS="$CFLAGS" 18590 18591 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18594 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18595 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18596 then : 18597 printf %s "(cached) " >&6 18598 else case e in #( 18599 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18600 /* end confdefs.h. */ 18601 int i; 18602 _ACEOF 18603 if ac_fn_c_try_compile "$LINENO" 18604 then : 18605 xorg_cv_cc_flag_unknown_warning_option=yes 18606 else case e in #( 18607 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18608 esac 18609 fi 18610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18611 esac 18612 fi 18613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18614 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18616 CFLAGS="$xorg_testset_save_CFLAGS" 18617 fi 18618 18619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18622 fi 18623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18625 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18626 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18627 then : 18628 printf %s "(cached) " >&6 18629 else case e in #( 18630 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18631 /* end confdefs.h. */ 18632 int i; 18633 _ACEOF 18634 if ac_fn_c_try_compile "$LINENO" 18635 then : 18636 xorg_cv_cc_flag_unused_command_line_argument=yes 18637 else case e in #( 18638 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18639 esac 18640 fi 18641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18642 esac 18643 fi 18644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18645 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18647 CFLAGS="$xorg_testset_save_CFLAGS" 18648 fi 18649 18650 found="no" 18651 18652 if test $found = "no" ; then 18653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18655 fi 18656 18657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18659 fi 18660 18661 CFLAGS="$CFLAGS -Wreturn-type" 18662 18663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18664 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18665 cacheid=xorg_cv_cc_flag__Wreturn_type 18666 if eval test \${$cacheid+y} 18667 then : 18668 printf %s "(cached) " >&6 18669 else case e in #( 18670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18671 /* end confdefs.h. */ 18672 int i; 18673 int 18674 main (void) 18675 { 18676 18677 ; 18678 return 0; 18679 } 18680 _ACEOF 18681 if ac_fn_c_try_link "$LINENO" 18682 then : 18683 eval $cacheid=yes 18684 else case e in #( 18685 e) eval $cacheid=no ;; 18686 esac 18687 fi 18688 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18689 conftest$ac_exeext conftest.$ac_ext ;; 18690 esac 18691 fi 18692 18693 18694 CFLAGS="$xorg_testset_save_CFLAGS" 18695 18696 eval supported=\$$cacheid 18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18698 printf "%s\n" "$supported" >&6; } 18699 if test "$supported" = "yes" ; then 18700 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18701 found="yes" 18702 fi 18703 fi 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 xorg_testset_save_CFLAGS="$CFLAGS" 18720 18721 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18724 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18725 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18726 then : 18727 printf %s "(cached) " >&6 18728 else case e in #( 18729 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18730 /* end confdefs.h. */ 18731 int i; 18732 _ACEOF 18733 if ac_fn_c_try_compile "$LINENO" 18734 then : 18735 xorg_cv_cc_flag_unknown_warning_option=yes 18736 else case e in #( 18737 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18738 esac 18739 fi 18740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18741 esac 18742 fi 18743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18744 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18746 CFLAGS="$xorg_testset_save_CFLAGS" 18747 fi 18748 18749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18752 fi 18753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18755 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18756 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18757 then : 18758 printf %s "(cached) " >&6 18759 else case e in #( 18760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18761 /* end confdefs.h. */ 18762 int i; 18763 _ACEOF 18764 if ac_fn_c_try_compile "$LINENO" 18765 then : 18766 xorg_cv_cc_flag_unused_command_line_argument=yes 18767 else case e in #( 18768 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18769 esac 18770 fi 18771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18772 esac 18773 fi 18774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18775 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18777 CFLAGS="$xorg_testset_save_CFLAGS" 18778 fi 18779 18780 found="no" 18781 18782 if test $found = "no" ; then 18783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18785 fi 18786 18787 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18789 fi 18790 18791 CFLAGS="$CFLAGS -Wtrigraphs" 18792 18793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18794 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18795 cacheid=xorg_cv_cc_flag__Wtrigraphs 18796 if eval test \${$cacheid+y} 18797 then : 18798 printf %s "(cached) " >&6 18799 else case e in #( 18800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18801 /* end confdefs.h. */ 18802 int i; 18803 int 18804 main (void) 18805 { 18806 18807 ; 18808 return 0; 18809 } 18810 _ACEOF 18811 if ac_fn_c_try_link "$LINENO" 18812 then : 18813 eval $cacheid=yes 18814 else case e in #( 18815 e) eval $cacheid=no ;; 18816 esac 18817 fi 18818 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18819 conftest$ac_exeext conftest.$ac_ext ;; 18820 esac 18821 fi 18822 18823 18824 CFLAGS="$xorg_testset_save_CFLAGS" 18825 18826 eval supported=\$$cacheid 18827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18828 printf "%s\n" "$supported" >&6; } 18829 if test "$supported" = "yes" ; then 18830 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18831 found="yes" 18832 fi 18833 fi 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 xorg_testset_save_CFLAGS="$CFLAGS" 18850 18851 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18854 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18855 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18856 then : 18857 printf %s "(cached) " >&6 18858 else case e in #( 18859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18860 /* end confdefs.h. */ 18861 int i; 18862 _ACEOF 18863 if ac_fn_c_try_compile "$LINENO" 18864 then : 18865 xorg_cv_cc_flag_unknown_warning_option=yes 18866 else case e in #( 18867 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18868 esac 18869 fi 18870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18871 esac 18872 fi 18873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18874 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18876 CFLAGS="$xorg_testset_save_CFLAGS" 18877 fi 18878 18879 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18882 fi 18883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18885 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18886 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18887 then : 18888 printf %s "(cached) " >&6 18889 else case e in #( 18890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18891 /* end confdefs.h. */ 18892 int i; 18893 _ACEOF 18894 if ac_fn_c_try_compile "$LINENO" 18895 then : 18896 xorg_cv_cc_flag_unused_command_line_argument=yes 18897 else case e in #( 18898 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18899 esac 18900 fi 18901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18902 esac 18903 fi 18904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18905 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18906 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18907 CFLAGS="$xorg_testset_save_CFLAGS" 18908 fi 18909 18910 found="no" 18911 18912 if test $found = "no" ; then 18913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18915 fi 18916 18917 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18919 fi 18920 18921 CFLAGS="$CFLAGS -Warray-bounds" 18922 18923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18924 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 18925 cacheid=xorg_cv_cc_flag__Warray_bounds 18926 if eval test \${$cacheid+y} 18927 then : 18928 printf %s "(cached) " >&6 18929 else case e in #( 18930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18931 /* end confdefs.h. */ 18932 int i; 18933 int 18934 main (void) 18935 { 18936 18937 ; 18938 return 0; 18939 } 18940 _ACEOF 18941 if ac_fn_c_try_link "$LINENO" 18942 then : 18943 eval $cacheid=yes 18944 else case e in #( 18945 e) eval $cacheid=no ;; 18946 esac 18947 fi 18948 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18949 conftest$ac_exeext conftest.$ac_ext ;; 18950 esac 18951 fi 18952 18953 18954 CFLAGS="$xorg_testset_save_CFLAGS" 18955 18956 eval supported=\$$cacheid 18957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18958 printf "%s\n" "$supported" >&6; } 18959 if test "$supported" = "yes" ; then 18960 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18961 found="yes" 18962 fi 18963 fi 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 xorg_testset_save_CFLAGS="$CFLAGS" 18980 18981 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18984 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18985 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18986 then : 18987 printf %s "(cached) " >&6 18988 else case e in #( 18989 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18990 /* end confdefs.h. */ 18991 int i; 18992 _ACEOF 18993 if ac_fn_c_try_compile "$LINENO" 18994 then : 18995 xorg_cv_cc_flag_unknown_warning_option=yes 18996 else case e in #( 18997 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18998 esac 18999 fi 19000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19001 esac 19002 fi 19003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19004 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19006 CFLAGS="$xorg_testset_save_CFLAGS" 19007 fi 19008 19009 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19012 fi 19013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19015 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19016 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19017 then : 19018 printf %s "(cached) " >&6 19019 else case e in #( 19020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19021 /* end confdefs.h. */ 19022 int i; 19023 _ACEOF 19024 if ac_fn_c_try_compile "$LINENO" 19025 then : 19026 xorg_cv_cc_flag_unused_command_line_argument=yes 19027 else case e in #( 19028 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19029 esac 19030 fi 19031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19032 esac 19033 fi 19034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19035 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19036 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19037 CFLAGS="$xorg_testset_save_CFLAGS" 19038 fi 19039 19040 found="no" 19041 19042 if test $found = "no" ; then 19043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19045 fi 19046 19047 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19049 fi 19050 19051 CFLAGS="$CFLAGS -Wwrite-strings" 19052 19053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19054 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19055 cacheid=xorg_cv_cc_flag__Wwrite_strings 19056 if eval test \${$cacheid+y} 19057 then : 19058 printf %s "(cached) " >&6 19059 else case e in #( 19060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19061 /* end confdefs.h. */ 19062 int i; 19063 int 19064 main (void) 19065 { 19066 19067 ; 19068 return 0; 19069 } 19070 _ACEOF 19071 if ac_fn_c_try_link "$LINENO" 19072 then : 19073 eval $cacheid=yes 19074 else case e in #( 19075 e) eval $cacheid=no ;; 19076 esac 19077 fi 19078 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19079 conftest$ac_exeext conftest.$ac_ext ;; 19080 esac 19081 fi 19082 19083 19084 CFLAGS="$xorg_testset_save_CFLAGS" 19085 19086 eval supported=\$$cacheid 19087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19088 printf "%s\n" "$supported" >&6; } 19089 if test "$supported" = "yes" ; then 19090 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19091 found="yes" 19092 fi 19093 fi 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 xorg_testset_save_CFLAGS="$CFLAGS" 19110 19111 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19114 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19115 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19116 then : 19117 printf %s "(cached) " >&6 19118 else case e in #( 19119 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19120 /* end confdefs.h. */ 19121 int i; 19122 _ACEOF 19123 if ac_fn_c_try_compile "$LINENO" 19124 then : 19125 xorg_cv_cc_flag_unknown_warning_option=yes 19126 else case e in #( 19127 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19128 esac 19129 fi 19130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19131 esac 19132 fi 19133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19134 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19135 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19136 CFLAGS="$xorg_testset_save_CFLAGS" 19137 fi 19138 19139 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19142 fi 19143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19145 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19146 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19147 then : 19148 printf %s "(cached) " >&6 19149 else case e in #( 19150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19151 /* end confdefs.h. */ 19152 int i; 19153 _ACEOF 19154 if ac_fn_c_try_compile "$LINENO" 19155 then : 19156 xorg_cv_cc_flag_unused_command_line_argument=yes 19157 else case e in #( 19158 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19159 esac 19160 fi 19161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19162 esac 19163 fi 19164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19167 CFLAGS="$xorg_testset_save_CFLAGS" 19168 fi 19169 19170 found="no" 19171 19172 if test $found = "no" ; then 19173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19175 fi 19176 19177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19179 fi 19180 19181 CFLAGS="$CFLAGS -Waddress" 19182 19183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19184 printf %s "checking if $CC supports -Waddress... " >&6; } 19185 cacheid=xorg_cv_cc_flag__Waddress 19186 if eval test \${$cacheid+y} 19187 then : 19188 printf %s "(cached) " >&6 19189 else case e in #( 19190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19191 /* end confdefs.h. */ 19192 int i; 19193 int 19194 main (void) 19195 { 19196 19197 ; 19198 return 0; 19199 } 19200 _ACEOF 19201 if ac_fn_c_try_link "$LINENO" 19202 then : 19203 eval $cacheid=yes 19204 else case e in #( 19205 e) eval $cacheid=no ;; 19206 esac 19207 fi 19208 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19209 conftest$ac_exeext conftest.$ac_ext ;; 19210 esac 19211 fi 19212 19213 19214 CFLAGS="$xorg_testset_save_CFLAGS" 19215 19216 eval supported=\$$cacheid 19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19218 printf "%s\n" "$supported" >&6; } 19219 if test "$supported" = "yes" ; then 19220 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19221 found="yes" 19222 fi 19223 fi 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 xorg_testset_save_CFLAGS="$CFLAGS" 19240 19241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19244 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19245 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19246 then : 19247 printf %s "(cached) " >&6 19248 else case e in #( 19249 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19250 /* end confdefs.h. */ 19251 int i; 19252 _ACEOF 19253 if ac_fn_c_try_compile "$LINENO" 19254 then : 19255 xorg_cv_cc_flag_unknown_warning_option=yes 19256 else case e in #( 19257 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19258 esac 19259 fi 19260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19261 esac 19262 fi 19263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19266 CFLAGS="$xorg_testset_save_CFLAGS" 19267 fi 19268 19269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19272 fi 19273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19277 then : 19278 printf %s "(cached) " >&6 19279 else case e in #( 19280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19281 /* end confdefs.h. */ 19282 int i; 19283 _ACEOF 19284 if ac_fn_c_try_compile "$LINENO" 19285 then : 19286 xorg_cv_cc_flag_unused_command_line_argument=yes 19287 else case e in #( 19288 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19289 esac 19290 fi 19291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19292 esac 19293 fi 19294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19295 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19297 CFLAGS="$xorg_testset_save_CFLAGS" 19298 fi 19299 19300 found="no" 19301 19302 if test $found = "no" ; then 19303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19305 fi 19306 19307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19309 fi 19310 19311 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19312 19313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19314 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19315 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19316 if eval test \${$cacheid+y} 19317 then : 19318 printf %s "(cached) " >&6 19319 else case e in #( 19320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19321 /* end confdefs.h. */ 19322 int i; 19323 int 19324 main (void) 19325 { 19326 19327 ; 19328 return 0; 19329 } 19330 _ACEOF 19331 if ac_fn_c_try_link "$LINENO" 19332 then : 19333 eval $cacheid=yes 19334 else case e in #( 19335 e) eval $cacheid=no ;; 19336 esac 19337 fi 19338 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19339 conftest$ac_exeext conftest.$ac_ext ;; 19340 esac 19341 fi 19342 19343 19344 CFLAGS="$xorg_testset_save_CFLAGS" 19345 19346 eval supported=\$$cacheid 19347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19348 printf "%s\n" "$supported" >&6; } 19349 if test "$supported" = "yes" ; then 19350 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19351 found="yes" 19352 fi 19353 fi 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 xorg_testset_save_CFLAGS="$CFLAGS" 19370 19371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19374 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19375 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19376 then : 19377 printf %s "(cached) " >&6 19378 else case e in #( 19379 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380 /* end confdefs.h. */ 19381 int i; 19382 _ACEOF 19383 if ac_fn_c_try_compile "$LINENO" 19384 then : 19385 xorg_cv_cc_flag_unknown_warning_option=yes 19386 else case e in #( 19387 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19388 esac 19389 fi 19390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19391 esac 19392 fi 19393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19394 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19395 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19396 CFLAGS="$xorg_testset_save_CFLAGS" 19397 fi 19398 19399 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19402 fi 19403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19405 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19406 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19407 then : 19408 printf %s "(cached) " >&6 19409 else case e in #( 19410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19411 /* end confdefs.h. */ 19412 int i; 19413 _ACEOF 19414 if ac_fn_c_try_compile "$LINENO" 19415 then : 19416 xorg_cv_cc_flag_unused_command_line_argument=yes 19417 else case e in #( 19418 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19419 esac 19420 fi 19421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19422 esac 19423 fi 19424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19425 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19427 CFLAGS="$xorg_testset_save_CFLAGS" 19428 fi 19429 19430 found="no" 19431 19432 if test $found = "no" ; then 19433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19435 fi 19436 19437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19439 fi 19440 19441 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19442 19443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19444 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19445 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19446 if eval test \${$cacheid+y} 19447 then : 19448 printf %s "(cached) " >&6 19449 else case e in #( 19450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19451 /* end confdefs.h. */ 19452 int i; 19453 int 19454 main (void) 19455 { 19456 19457 ; 19458 return 0; 19459 } 19460 _ACEOF 19461 if ac_fn_c_try_link "$LINENO" 19462 then : 19463 eval $cacheid=yes 19464 else case e in #( 19465 e) eval $cacheid=no ;; 19466 esac 19467 fi 19468 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19469 conftest$ac_exeext conftest.$ac_ext ;; 19470 esac 19471 fi 19472 19473 19474 CFLAGS="$xorg_testset_save_CFLAGS" 19475 19476 eval supported=\$$cacheid 19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19478 printf "%s\n" "$supported" >&6; } 19479 if test "$supported" = "yes" ; then 19480 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19481 found="yes" 19482 fi 19483 fi 19484 19485 19486 fi 19487 19488 19489 19490 19491 19492 19493 19494 CWARNFLAGS="$BASE_CFLAGS" 19495 if test "x$GCC" = xyes ; then 19496 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19497 fi 19498 19499 19500 19501 19502 19503 19504 19505 19506 # Check whether --enable-strict-compilation was given. 19507 if test ${enable_strict_compilation+y} 19508 then : 19509 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19510 else case e in #( 19511 e) STRICT_COMPILE=no ;; 19512 esac 19513 fi 19514 19515 19516 19517 19518 19519 19520 STRICT_CFLAGS="" 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 xorg_testset_save_CFLAGS="$CFLAGS" 19535 19536 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19539 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19540 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19541 then : 19542 printf %s "(cached) " >&6 19543 else case e in #( 19544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19545 /* end confdefs.h. */ 19546 int i; 19547 _ACEOF 19548 if ac_fn_c_try_compile "$LINENO" 19549 then : 19550 xorg_cv_cc_flag_unknown_warning_option=yes 19551 else case e in #( 19552 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19553 esac 19554 fi 19555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19556 esac 19557 fi 19558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19559 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19560 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19561 CFLAGS="$xorg_testset_save_CFLAGS" 19562 fi 19563 19564 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19567 fi 19568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19570 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19571 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19572 then : 19573 printf %s "(cached) " >&6 19574 else case e in #( 19575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19576 /* end confdefs.h. */ 19577 int i; 19578 _ACEOF 19579 if ac_fn_c_try_compile "$LINENO" 19580 then : 19581 xorg_cv_cc_flag_unused_command_line_argument=yes 19582 else case e in #( 19583 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19584 esac 19585 fi 19586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19587 esac 19588 fi 19589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19590 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19592 CFLAGS="$xorg_testset_save_CFLAGS" 19593 fi 19594 19595 found="no" 19596 19597 if test $found = "no" ; then 19598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19600 fi 19601 19602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19604 fi 19605 19606 CFLAGS="$CFLAGS -pedantic" 19607 19608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19609 printf %s "checking if $CC supports -pedantic... " >&6; } 19610 cacheid=xorg_cv_cc_flag__pedantic 19611 if eval test \${$cacheid+y} 19612 then : 19613 printf %s "(cached) " >&6 19614 else case e in #( 19615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19616 /* end confdefs.h. */ 19617 int i; 19618 int 19619 main (void) 19620 { 19621 19622 ; 19623 return 0; 19624 } 19625 _ACEOF 19626 if ac_fn_c_try_link "$LINENO" 19627 then : 19628 eval $cacheid=yes 19629 else case e in #( 19630 e) eval $cacheid=no ;; 19631 esac 19632 fi 19633 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19634 conftest$ac_exeext conftest.$ac_ext ;; 19635 esac 19636 fi 19637 19638 19639 CFLAGS="$xorg_testset_save_CFLAGS" 19640 19641 eval supported=\$$cacheid 19642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19643 printf "%s\n" "$supported" >&6; } 19644 if test "$supported" = "yes" ; then 19645 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19646 found="yes" 19647 fi 19648 fi 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 xorg_testset_save_CFLAGS="$CFLAGS" 19665 19666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19669 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19670 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19671 then : 19672 printf %s "(cached) " >&6 19673 else case e in #( 19674 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19675 /* end confdefs.h. */ 19676 int i; 19677 _ACEOF 19678 if ac_fn_c_try_compile "$LINENO" 19679 then : 19680 xorg_cv_cc_flag_unknown_warning_option=yes 19681 else case e in #( 19682 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19683 esac 19684 fi 19685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19686 esac 19687 fi 19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19689 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19691 CFLAGS="$xorg_testset_save_CFLAGS" 19692 fi 19693 19694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19696 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19697 fi 19698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19700 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19701 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19702 then : 19703 printf %s "(cached) " >&6 19704 else case e in #( 19705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19706 /* end confdefs.h. */ 19707 int i; 19708 _ACEOF 19709 if ac_fn_c_try_compile "$LINENO" 19710 then : 19711 xorg_cv_cc_flag_unused_command_line_argument=yes 19712 else case e in #( 19713 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19714 esac 19715 fi 19716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19717 esac 19718 fi 19719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19722 CFLAGS="$xorg_testset_save_CFLAGS" 19723 fi 19724 19725 found="no" 19726 19727 if test $found = "no" ; then 19728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19730 fi 19731 19732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19734 fi 19735 19736 CFLAGS="$CFLAGS -Werror" 19737 19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19739 printf %s "checking if $CC supports -Werror... " >&6; } 19740 cacheid=xorg_cv_cc_flag__Werror 19741 if eval test \${$cacheid+y} 19742 then : 19743 printf %s "(cached) " >&6 19744 else case e in #( 19745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19746 /* end confdefs.h. */ 19747 int i; 19748 int 19749 main (void) 19750 { 19751 19752 ; 19753 return 0; 19754 } 19755 _ACEOF 19756 if ac_fn_c_try_link "$LINENO" 19757 then : 19758 eval $cacheid=yes 19759 else case e in #( 19760 e) eval $cacheid=no ;; 19761 esac 19762 fi 19763 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19764 conftest$ac_exeext conftest.$ac_ext ;; 19765 esac 19766 fi 19767 19768 19769 CFLAGS="$xorg_testset_save_CFLAGS" 19770 19771 eval supported=\$$cacheid 19772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19773 printf "%s\n" "$supported" >&6; } 19774 if test "$supported" = "yes" ; then 19775 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19776 found="yes" 19777 fi 19778 fi 19779 19780 if test $found = "no" ; then 19781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19783 fi 19784 19785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19787 fi 19788 19789 CFLAGS="$CFLAGS -errwarn" 19790 19791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19792 printf %s "checking if $CC supports -errwarn... " >&6; } 19793 cacheid=xorg_cv_cc_flag__errwarn 19794 if eval test \${$cacheid+y} 19795 then : 19796 printf %s "(cached) " >&6 19797 else case e in #( 19798 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19799 /* end confdefs.h. */ 19800 int i; 19801 int 19802 main (void) 19803 { 19804 19805 ; 19806 return 0; 19807 } 19808 _ACEOF 19809 if ac_fn_c_try_link "$LINENO" 19810 then : 19811 eval $cacheid=yes 19812 else case e in #( 19813 e) eval $cacheid=no ;; 19814 esac 19815 fi 19816 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19817 conftest$ac_exeext conftest.$ac_ext ;; 19818 esac 19819 fi 19820 19821 19822 CFLAGS="$xorg_testset_save_CFLAGS" 19823 19824 eval supported=\$$cacheid 19825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19826 printf "%s\n" "$supported" >&6; } 19827 if test "$supported" = "yes" ; then 19828 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19829 found="yes" 19830 fi 19831 fi 19832 19833 19834 19835 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19836 # activate it with -Werror, so we add it here explicitly. 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 xorg_testset_save_CFLAGS="$CFLAGS" 19851 19852 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19855 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19856 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19857 then : 19858 printf %s "(cached) " >&6 19859 else case e in #( 19860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19861 /* end confdefs.h. */ 19862 int i; 19863 _ACEOF 19864 if ac_fn_c_try_compile "$LINENO" 19865 then : 19866 xorg_cv_cc_flag_unknown_warning_option=yes 19867 else case e in #( 19868 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19869 esac 19870 fi 19871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19872 esac 19873 fi 19874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19875 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19877 CFLAGS="$xorg_testset_save_CFLAGS" 19878 fi 19879 19880 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19883 fi 19884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19886 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19887 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19888 then : 19889 printf %s "(cached) " >&6 19890 else case e in #( 19891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19892 /* end confdefs.h. */ 19893 int i; 19894 _ACEOF 19895 if ac_fn_c_try_compile "$LINENO" 19896 then : 19897 xorg_cv_cc_flag_unused_command_line_argument=yes 19898 else case e in #( 19899 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19900 esac 19901 fi 19902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19903 esac 19904 fi 19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19906 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19908 CFLAGS="$xorg_testset_save_CFLAGS" 19909 fi 19910 19911 found="no" 19912 19913 if test $found = "no" ; then 19914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19916 fi 19917 19918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19920 fi 19921 19922 CFLAGS="$CFLAGS -Werror=attributes" 19923 19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19925 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 19926 cacheid=xorg_cv_cc_flag__Werror_attributes 19927 if eval test \${$cacheid+y} 19928 then : 19929 printf %s "(cached) " >&6 19930 else case e in #( 19931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19932 /* end confdefs.h. */ 19933 int i; 19934 int 19935 main (void) 19936 { 19937 19938 ; 19939 return 0; 19940 } 19941 _ACEOF 19942 if ac_fn_c_try_link "$LINENO" 19943 then : 19944 eval $cacheid=yes 19945 else case e in #( 19946 e) eval $cacheid=no ;; 19947 esac 19948 fi 19949 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19950 conftest$ac_exeext conftest.$ac_ext ;; 19951 esac 19952 fi 19953 19954 19955 CFLAGS="$xorg_testset_save_CFLAGS" 19956 19957 eval supported=\$$cacheid 19958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19959 printf "%s\n" "$supported" >&6; } 19960 if test "$supported" = "yes" ; then 19961 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19962 found="yes" 19963 fi 19964 fi 19965 19966 19967 19968 if test "x$STRICT_COMPILE" = "xyes"; then 19969 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19970 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19971 fi 19972 19973 19974 19975 19976 19977 19978 19979 19980 cat >>confdefs.h <<_ACEOF 19981 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19982 _ACEOF 19983 19984 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19985 if test "x$PVM" = "x"; then 19986 PVM="0" 19987 fi 19988 19989 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 19990 19991 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19992 if test "x$PVP" = "x"; then 19993 PVP="0" 19994 fi 19995 19996 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 19997 19998 19999 20000 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20001 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20002 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20003 touch \$(top_srcdir)/ChangeLog; \ 20004 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20005 20006 20007 20008 20009 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20010 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20011 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20012 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20013 touch \$(top_srcdir)/INSTALL; \ 20014 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20015 20016 20017 20018 20019 20020 20021 case $host_os in 20022 solaris*) 20023 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20024 # check for a man page file found in later versions that use 20025 # traditional section numbers instead 20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20027 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20028 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20029 then : 20030 printf %s "(cached) " >&6 20031 else case e in #( 20032 e) test "$cross_compiling" = yes && 20033 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20034 if test -r "/usr/share/man/man7/attributes.7"; then 20035 ac_cv_file__usr_share_man_man7_attributes_7=yes 20036 else 20037 ac_cv_file__usr_share_man_man7_attributes_7=no 20038 fi ;; 20039 esac 20040 fi 20041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20042 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20043 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20044 then : 20045 SYSV_MAN_SECTIONS=false 20046 else case e in #( 20047 e) SYSV_MAN_SECTIONS=true ;; 20048 esac 20049 fi 20050 20051 ;; 20052 *) SYSV_MAN_SECTIONS=false ;; 20053 esac 20054 20055 if test x$APP_MAN_SUFFIX = x ; then 20056 APP_MAN_SUFFIX=1 20057 fi 20058 if test x$APP_MAN_DIR = x ; then 20059 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20060 fi 20061 20062 if test x$LIB_MAN_SUFFIX = x ; then 20063 LIB_MAN_SUFFIX=3 20064 fi 20065 if test x$LIB_MAN_DIR = x ; then 20066 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20067 fi 20068 20069 if test x$FILE_MAN_SUFFIX = x ; then 20070 case $SYSV_MAN_SECTIONS in 20071 true) FILE_MAN_SUFFIX=4 ;; 20072 *) FILE_MAN_SUFFIX=5 ;; 20073 esac 20074 fi 20075 if test x$FILE_MAN_DIR = x ; then 20076 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20077 fi 20078 20079 if test x$MISC_MAN_SUFFIX = x ; then 20080 case $SYSV_MAN_SECTIONS in 20081 true) MISC_MAN_SUFFIX=5 ;; 20082 *) MISC_MAN_SUFFIX=7 ;; 20083 esac 20084 fi 20085 if test x$MISC_MAN_DIR = x ; then 20086 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20087 fi 20088 20089 if test x$DRIVER_MAN_SUFFIX = x ; then 20090 case $SYSV_MAN_SECTIONS in 20091 true) DRIVER_MAN_SUFFIX=7 ;; 20092 *) DRIVER_MAN_SUFFIX=4 ;; 20093 esac 20094 fi 20095 if test x$DRIVER_MAN_DIR = x ; then 20096 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20097 fi 20098 20099 if test x$ADMIN_MAN_SUFFIX = x ; then 20100 case $SYSV_MAN_SECTIONS in 20101 true) ADMIN_MAN_SUFFIX=1m ;; 20102 *) ADMIN_MAN_SUFFIX=8 ;; 20103 esac 20104 fi 20105 if test x$ADMIN_MAN_DIR = x ; then 20106 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20107 fi 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 XORG_MAN_PAGE="X Version 11" 20124 20125 MAN_SUBSTS="\ 20126 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20127 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20128 -e 's|__xservername__|Xorg|g' \ 20129 -e 's|__xconfigfile__|xorg.conf|g' \ 20130 -e 's|__projectroot__|\$(prefix)|g' \ 20131 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20132 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20133 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20134 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20135 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20136 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20137 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20138 20139 20140 20141 20142 AM_DEFAULT_VERBOSITY=0 20143 20144 20145 20146 # Check whether --enable-malloc0returnsnull was given. 20147 if test ${enable_malloc0returnsnull+y} 20148 then : 20149 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 20150 else case e in #( 20151 e) MALLOC_ZERO_RETURNS_NULL=auto ;; 20152 esac 20153 fi 20154 20155 20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 20157 printf %s "checking whether malloc(0) returns NULL... " >&6; } 20158 if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 20159 if test ${xorg_cv_malloc0_returns_null+y} 20160 then : 20161 printf %s "(cached) " >&6 20162 else case e in #( 20163 e) if test "$cross_compiling" = yes 20164 then : 20165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20166 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20167 as_fn_error $? "cannot run test program while cross compiling 20168 See 'config.log' for more details" "$LINENO" 5; } 20169 else case e in #( 20170 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20171 /* end confdefs.h. */ 20172 20173 #include <stdlib.h> 20174 20175 int 20176 main (void) 20177 { 20178 20179 char *m0, *r0, *c0, *p; 20180 m0 = malloc(0); 20181 p = malloc(10); 20182 r0 = realloc(p,0); 20183 c0 = calloc(0,10); 20184 exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1); 20185 20186 ; 20187 return 0; 20188 } 20189 _ACEOF 20190 if ac_fn_c_try_run "$LINENO" 20191 then : 20192 xorg_cv_malloc0_returns_null=yes 20193 else case e in #( 20194 e) xorg_cv_malloc0_returns_null=no ;; 20195 esac 20196 fi 20197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20198 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20199 esac 20200 fi 20201 ;; 20202 esac 20203 fi 20204 20205 MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null 20206 fi 20207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 20208 printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; } 20209 20210 if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 20211 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 20212 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 20213 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 20214 else 20215 MALLOC_ZERO_CFLAGS="" 20216 XMALLOC_ZERO_CFLAGS="" 20217 XTMALLOC_ZERO_CFLAGS="" 20218 fi 20219 20220 20221 20222 20223 20224 20225 # Obtain compiler/linker options for dependencies 20226 20227 pkg_failed=no 20228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FS" >&5 20229 printf %s "checking for FS... " >&6; } 20230 20231 if test -n "$FS_CFLAGS"; then 20232 pkg_cv_FS_CFLAGS="$FS_CFLAGS" 20233 elif test -n "$PKG_CONFIG"; then 20234 if test -n "$PKG_CONFIG" && \ 20235 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5 20236 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5 20237 ac_status=$? 20238 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20239 test $ac_status = 0; }; then 20240 pkg_cv_FS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null` 20241 test "x$?" != "x0" && pkg_failed=yes 20242 else 20243 pkg_failed=yes 20244 fi 20245 else 20246 pkg_failed=untried 20247 fi 20248 if test -n "$FS_LIBS"; then 20249 pkg_cv_FS_LIBS="$FS_LIBS" 20250 elif test -n "$PKG_CONFIG"; then 20251 if test -n "$PKG_CONFIG" && \ 20252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 fontsproto xtrans\""; } >&5 20253 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 fontsproto xtrans") 2>&5 20254 ac_status=$? 20255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20256 test $ac_status = 0; }; then 20257 pkg_cv_FS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 fontsproto xtrans" 2>/dev/null` 20258 test "x$?" != "x0" && pkg_failed=yes 20259 else 20260 pkg_failed=yes 20261 fi 20262 else 20263 pkg_failed=untried 20264 fi 20265 20266 20267 20268 if test $pkg_failed = yes; then 20269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20270 printf "%s\n" "no" >&6; } 20271 20272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20273 _pkg_short_errors_supported=yes 20274 else 20275 _pkg_short_errors_supported=no 20276 fi 20277 if test $_pkg_short_errors_supported = yes; then 20278 FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 fontsproto xtrans" 2>&1` 20279 else 20280 FS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 fontsproto xtrans" 2>&1` 20281 fi 20282 # Put the nasty error message in config.log where it belongs 20283 echo "$FS_PKG_ERRORS" >&5 20284 20285 as_fn_error $? "Package requirements (xproto >= 7.0.17 fontsproto xtrans) were not met: 20286 20287 $FS_PKG_ERRORS 20288 20289 Consider adjusting the PKG_CONFIG_PATH environment variable if you 20290 installed software in a non-standard prefix. 20291 20292 Alternatively, you may set the environment variables FS_CFLAGS 20293 and FS_LIBS to avoid the need to call pkg-config. 20294 See the pkg-config man page for more details." "$LINENO" 5 20295 elif test $pkg_failed = untried; then 20296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20297 printf "%s\n" "no" >&6; } 20298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 20299 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 20300 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 20301 is in your PATH or set the PKG_CONFIG environment variable to the full 20302 path to pkg-config. 20303 20304 Alternatively, you may set the environment variables FS_CFLAGS 20305 and FS_LIBS to avoid the need to call pkg-config. 20306 See the pkg-config man page for more details. 20307 20308 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 20309 See 'config.log' for more details" "$LINENO" 5; } 20310 else 20311 FS_CFLAGS=$pkg_cv_FS_CFLAGS 20312 FS_LIBS=$pkg_cv_FS_LIBS 20313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20314 printf "%s\n" "yes" >&6; } 20315 20316 fi 20317 20318 # Find needed libraries for TCP sockets (pre-pended in $LIBS) 20319 20320 20321 case $host_os in 20322 mingw*) unixdef="no" ;; 20323 *) unixdef="yes" ;; 20324 esac 20325 # Check whether --enable-unix-transport was given. 20326 if test ${enable_unix_transport+y} 20327 then : 20328 enableval=$enable_unix_transport; UNIXCONN=$enableval 20329 else case e in #( 20330 e) UNIXCONN=$unixdef ;; 20331 esac 20332 fi 20333 20334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 20335 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 20336 if test "$UNIXCONN" = "yes"; then 20337 20338 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 20339 20340 fi 20341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 20342 printf "%s\n" "$UNIXCONN" >&6; } 20343 # Check whether --enable-tcp-transport was given. 20344 if test ${enable_tcp_transport+y} 20345 then : 20346 enableval=$enable_tcp_transport; TCPCONN=$enableval 20347 else case e in #( 20348 e) TCPCONN=yes ;; 20349 esac 20350 fi 20351 20352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 20353 printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 20354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 20355 printf "%s\n" "$TCPCONN" >&6; } 20356 if test "$TCPCONN" = "yes"; then 20357 20358 printf "%s\n" "#define TCPCONN 1" >>confdefs.h 20359 20360 20361 # SVR4 hides these in libraries other than libc 20362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 20363 printf %s "checking for library containing socket... " >&6; } 20364 if test ${ac_cv_search_socket+y} 20365 then : 20366 printf %s "(cached) " >&6 20367 else case e in #( 20368 e) ac_func_search_save_LIBS=$LIBS 20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20370 /* end confdefs.h. */ 20371 20372 /* Override any GCC internal prototype to avoid an error. 20373 Use char because int might match the return type of a GCC 20374 builtin and then its argument prototype would still apply. 20375 The 'extern "C"' is for builds by C++ compilers; 20376 although this is not generally supported in C code supporting it here 20377 has little cost and some practical benefit (sr 110532). */ 20378 #ifdef __cplusplus 20379 extern "C" 20380 #endif 20381 char socket (void); 20382 int 20383 main (void) 20384 { 20385 return socket (); 20386 ; 20387 return 0; 20388 } 20389 _ACEOF 20390 for ac_lib in '' socket 20391 do 20392 if test -z "$ac_lib"; then 20393 ac_res="none required" 20394 else 20395 ac_res=-l$ac_lib 20396 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20397 fi 20398 if ac_fn_c_try_link "$LINENO" 20399 then : 20400 ac_cv_search_socket=$ac_res 20401 fi 20402 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20403 conftest$ac_exeext 20404 if test ${ac_cv_search_socket+y} 20405 then : 20406 break 20407 fi 20408 done 20409 if test ${ac_cv_search_socket+y} 20410 then : 20411 20412 else case e in #( 20413 e) ac_cv_search_socket=no ;; 20414 esac 20415 fi 20416 rm conftest.$ac_ext 20417 LIBS=$ac_func_search_save_LIBS ;; 20418 esac 20419 fi 20420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 20421 printf "%s\n" "$ac_cv_search_socket" >&6; } 20422 ac_res=$ac_cv_search_socket 20423 if test "$ac_res" != no 20424 then : 20425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20426 20427 fi 20428 20429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 20430 printf %s "checking for library containing gethostbyname... " >&6; } 20431 if test ${ac_cv_search_gethostbyname+y} 20432 then : 20433 printf %s "(cached) " >&6 20434 else case e in #( 20435 e) ac_func_search_save_LIBS=$LIBS 20436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20437 /* end confdefs.h. */ 20438 20439 /* Override any GCC internal prototype to avoid an error. 20440 Use char because int might match the return type of a GCC 20441 builtin and then its argument prototype would still apply. 20442 The 'extern "C"' is for builds by C++ compilers; 20443 although this is not generally supported in C code supporting it here 20444 has little cost and some practical benefit (sr 110532). */ 20445 #ifdef __cplusplus 20446 extern "C" 20447 #endif 20448 char gethostbyname (void); 20449 int 20450 main (void) 20451 { 20452 return gethostbyname (); 20453 ; 20454 return 0; 20455 } 20456 _ACEOF 20457 for ac_lib in '' nsl 20458 do 20459 if test -z "$ac_lib"; then 20460 ac_res="none required" 20461 else 20462 ac_res=-l$ac_lib 20463 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20464 fi 20465 if ac_fn_c_try_link "$LINENO" 20466 then : 20467 ac_cv_search_gethostbyname=$ac_res 20468 fi 20469 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20470 conftest$ac_exeext 20471 if test ${ac_cv_search_gethostbyname+y} 20472 then : 20473 break 20474 fi 20475 done 20476 if test ${ac_cv_search_gethostbyname+y} 20477 then : 20478 20479 else case e in #( 20480 e) ac_cv_search_gethostbyname=no ;; 20481 esac 20482 fi 20483 rm conftest.$ac_ext 20484 LIBS=$ac_func_search_save_LIBS ;; 20485 esac 20486 fi 20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 20488 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 20489 ac_res=$ac_cv_search_gethostbyname 20490 if test "$ac_res" != no 20491 then : 20492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20493 20494 fi 20495 20496 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 20497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 20498 printf %s "checking for main in -lws2_32... " >&6; } 20499 if test ${ac_cv_lib_ws2_32_main+y} 20500 then : 20501 printf %s "(cached) " >&6 20502 else case e in #( 20503 e) ac_check_lib_save_LIBS=$LIBS 20504 LIBS="-lws2_32 $LIBS" 20505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20506 /* end confdefs.h. */ 20507 20508 20509 int 20510 main (void) 20511 { 20512 return main (); 20513 ; 20514 return 0; 20515 } 20516 _ACEOF 20517 if ac_fn_c_try_link "$LINENO" 20518 then : 20519 ac_cv_lib_ws2_32_main=yes 20520 else case e in #( 20521 e) ac_cv_lib_ws2_32_main=no ;; 20522 esac 20523 fi 20524 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20525 conftest$ac_exeext conftest.$ac_ext 20526 LIBS=$ac_check_lib_save_LIBS ;; 20527 esac 20528 fi 20529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 20530 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 20531 if test "x$ac_cv_lib_ws2_32_main" = xyes 20532 then : 20533 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 20534 20535 LIBS="-lws2_32 $LIBS" 20536 20537 fi 20538 20539 fi 20540 20541 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 20542 # Check whether --enable-ipv6 was given. 20543 if test ${enable_ipv6+y} 20544 then : 20545 enableval=$enable_ipv6; IPV6CONN=$enableval 20546 else case e in #( 20547 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20548 if test "x$ac_cv_func_getaddrinfo" = xyes 20549 then : 20550 IPV6CONN=yes 20551 else case e in #( 20552 e) IPV6CONN=no ;; 20553 esac 20554 fi 20555 ;; 20556 esac 20557 fi 20558 20559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 20560 printf %s "checking if IPv6 support should be built... " >&6; } 20561 if test "$IPV6CONN" = "yes"; then 20562 20563 printf "%s\n" "#define IPv6 1" >>confdefs.h 20564 20565 fi 20566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 20567 printf "%s\n" "$IPV6CONN" >&6; } 20568 20569 # 4.3BSD-Reno added a new member to struct sockaddr_in 20570 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 20571 #include <sys/types.h> 20572 #include <sys/socket.h> 20573 #include <netinet/in.h> 20574 20575 " 20576 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 20577 then : 20578 20579 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 20580 20581 fi 20582 20583 20584 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 20585 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 20586 $ac_includes_default 20587 #include <sys/socket.h> 20588 " 20589 if test "x$ac_cv_type_socklen_t" = xyes 20590 then : 20591 20592 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 20593 20594 20595 fi 20596 20597 20598 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 20599 # _XOPEN_SOURCE to get it (such as on Solaris) 20600 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20601 $ac_includes_default 20602 #include <sys/socket.h> 20603 20604 " 20605 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 20606 then : 20607 20608 fi 20609 20610 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 20611 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20612 unset ac_cv_member_struct_msghdr_msg_control 20613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 20614 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 20615 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20616 #define _XOPEN_SOURCE 600 20617 $ac_includes_default 20618 #include <sys/socket.h> 20619 20620 " 20621 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 20622 then : 20623 20624 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 20625 20626 20627 fi 20628 20629 fi 20630 # If that didn't work, fall back to XPG5/UNIX98 with C89 20631 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20632 unset ac_cv_member_struct_msghdr_msg_control 20633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 20634 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 20635 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20636 #define _XOPEN_SOURCE 500 20637 $ac_includes_default 20638 #include <sys/socket.h> 20639 20640 " 20641 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 20642 then : 20643 20644 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 20645 20646 20647 fi 20648 20649 fi 20650 20651 20652 20653 fi 20654 case $host_os in 20655 solaris*) localdef="yes" ;; 20656 *) localdef="no" ;; 20657 esac 20658 # Check whether --enable-local-transport was given. 20659 if test ${enable_local_transport+y} 20660 then : 20661 enableval=$enable_local_transport; LOCALCONN=$enableval 20662 else case e in #( 20663 e) LOCALCONN=$localdef ;; 20664 esac 20665 fi 20666 20667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 20668 printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 20670 printf "%s\n" "$LOCALCONN" >&6; } 20671 if test "$LOCALCONN" = "yes"; then 20672 20673 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 20674 20675 fi 20676 20677 # Other functions Xtrans may need 20678 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 20679 if test "x$ac_cv_func_strcasecmp" = xyes 20680 then : 20681 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 20682 20683 fi 20684 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20685 if test "x$ac_cv_func_strlcpy" = xyes 20686 then : 20687 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20688 20689 fi 20690 20691 20692 20693 20694 # Checks for library functions. 20695 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20696 if test "x$ac_cv_func_strlcpy" = xyes 20697 then : 20698 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20699 20700 fi 20701 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen" 20702 if test "x$ac_cv_func_strnlen" = xyes 20703 then : 20704 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h 20705 20706 fi 20707 20708 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20709 if test "x$ac_cv_func_reallocarray" = xyes 20710 then : 20711 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20712 20713 else case e in #( 20714 e) case " $LIBOBJS " in 20715 *" reallocarray.$ac_objext "* ) ;; 20716 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20717 ;; 20718 esac 20719 ;; 20720 esac 20721 fi 20722 20723 20724 # Allow checking code with lint, sparse, etc. 20725 20726 20727 20728 20729 20730 # Check whether --with-lint was given. 20731 if test ${with_lint+y} 20732 then : 20733 withval=$with_lint; use_lint=$withval 20734 else case e in #( 20735 e) use_lint=no ;; 20736 esac 20737 fi 20738 20739 20740 # Obtain platform specific info like program name and options 20741 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 20742 case $host_os in 20743 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 20744 lint_name=splint 20745 lint_options="-badflag" 20746 ;; 20747 *freebsd* | *netbsd*) 20748 lint_name=lint 20749 lint_options="-u -b" 20750 ;; 20751 *solaris*) 20752 lint_name=lint 20753 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 20754 ;; 20755 esac 20756 20757 # Test for the presence of the program (either guessed by the code or spelled out by the user) 20758 if test "x$use_lint" = x"yes" ; then 20759 # Extract the first word of "$lint_name", so it can be a program name with args. 20760 set dummy $lint_name; ac_word=$2 20761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20762 printf %s "checking for $ac_word... " >&6; } 20763 if test ${ac_cv_path_LINT+y} 20764 then : 20765 printf %s "(cached) " >&6 20766 else case e in #( 20767 e) case $LINT in 20768 [\\/]* | ?:[\\/]*) 20769 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 20770 ;; 20771 *) 20772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20773 for as_dir in $PATH 20774 do 20775 IFS=$as_save_IFS 20776 case $as_dir in #((( 20777 '') as_dir=./ ;; 20778 */) ;; 20779 *) as_dir=$as_dir/ ;; 20780 esac 20781 for ac_exec_ext in '' $ac_executable_extensions; do 20782 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20783 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 20784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20785 break 2 20786 fi 20787 done 20788 done 20789 IFS=$as_save_IFS 20790 20791 ;; 20792 esac ;; 20793 esac 20794 fi 20795 LINT=$ac_cv_path_LINT 20796 if test -n "$LINT"; then 20797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 20798 printf "%s\n" "$LINT" >&6; } 20799 else 20800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20801 printf "%s\n" "no" >&6; } 20802 fi 20803 20804 20805 if test "x$LINT" = "x"; then 20806 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 20807 fi 20808 elif test "x$use_lint" = x"no" ; then 20809 if test "x$LINT" != "x"; then 20810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 20811 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 20812 fi 20813 else 20814 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 20815 fi 20816 20817 # User supplied flags override default flags 20818 if test "x$LINT_FLAGS" != "x"; then 20819 lint_options=$LINT_FLAGS 20820 fi 20821 20822 LINT_FLAGS=$lint_options 20823 20824 if test "x$LINT" != x; then 20825 LINT_TRUE= 20826 LINT_FALSE='#' 20827 else 20828 LINT_TRUE='#' 20829 LINT_FALSE= 20830 fi 20831 20832 20833 20834 20835 20836 # Check whether --enable-lint-library was given. 20837 if test ${enable_lint_library+y} 20838 then : 20839 enableval=$enable_lint_library; make_lint_lib=$enableval 20840 else case e in #( 20841 e) make_lint_lib=no ;; 20842 esac 20843 fi 20844 20845 20846 if test "x$make_lint_lib" = x"yes" ; then 20847 LINTLIB=llib-lFS.ln 20848 if test "x$LINT" = "x"; then 20849 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 20850 fi 20851 elif test "x$make_lint_lib" != x"no" ; then 20852 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 20853 fi 20854 20855 20856 if test x$make_lint_lib != xno; then 20857 MAKE_LINT_LIB_TRUE= 20858 MAKE_LINT_LIB_FALSE='#' 20859 else 20860 MAKE_LINT_LIB_TRUE='#' 20861 MAKE_LINT_LIB_FALSE= 20862 fi 20863 20864 20865 20866 20867 ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile libfs.pc" 20868 20869 cat >confcache <<\_ACEOF 20870 # This file is a shell script that caches the results of configure 20871 # tests run on this system so they can be shared between configure 20872 # scripts and configure runs, see configure's option --config-cache. 20873 # It is not useful on other systems. If it contains results you don't 20874 # want to keep, you may remove or edit it. 20875 # 20876 # config.status only pays attention to the cache file if you give it 20877 # the --recheck option to rerun configure. 20878 # 20879 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 20880 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 20881 # following values. 20882 20883 _ACEOF 20884 20885 # The following way of writing the cache mishandles newlines in values, 20886 # but we know of no workaround that is simple, portable, and efficient. 20887 # So, we kill variables containing newlines. 20888 # Ultrix sh set writes to stderr and can't be redirected directly, 20889 # and sets the high bit in the cache file unless we assign to the vars. 20890 ( 20891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20892 eval ac_val=\$$ac_var 20893 case $ac_val in #( 20894 *${as_nl}*) 20895 case $ac_var in #( 20896 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20897 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20898 esac 20899 case $ac_var in #( 20900 _ | IFS | as_nl) ;; #( 20901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20902 *) { eval $ac_var=; unset $ac_var;} ;; 20903 esac ;; 20904 esac 20905 done 20906 20907 (set) 2>&1 | 20908 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20909 *${as_nl}ac_space=\ *) 20910 # 'set' does not quote correctly, so add quotes: double-quote 20911 # substitution turns \\\\ into \\, and sed turns \\ into \. 20912 sed -n \ 20913 "s/'/'\\\\''/g; 20914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20915 ;; #( 20916 *) 20917 # 'set' quotes correctly as required by POSIX, so do not add quotes. 20918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20919 ;; 20920 esac | 20921 sort 20922 ) | 20923 sed ' 20924 /^ac_cv_env_/b end 20925 t clear 20926 :clear 20927 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 20928 t end 20929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20930 :end' >>confcache 20931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20932 if test -w "$cache_file"; then 20933 if test "x$cache_file" != "x/dev/null"; then 20934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20935 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 20936 if test ! -f "$cache_file" || test -h "$cache_file"; then 20937 cat confcache >"$cache_file" 20938 else 20939 case $cache_file in #( 20940 */* | ?:*) 20941 mv -f confcache "$cache_file"$$ && 20942 mv -f "$cache_file"$$ "$cache_file" ;; #( 20943 *) 20944 mv -f confcache "$cache_file" ;; 20945 esac 20946 fi 20947 fi 20948 else 20949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20950 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 20951 fi 20952 fi 20953 rm -f confcache 20954 20955 test "x$prefix" = xNONE && prefix=$ac_default_prefix 20956 # Let make expand exec_prefix. 20957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20958 20959 DEFS=-DHAVE_CONFIG_H 20960 20961 ac_libobjs= 20962 ac_ltlibobjs= 20963 U= 20964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20965 # 1. Remove the extension, and $U if already installed. 20966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20967 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 20968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20969 # will be set to the directory where LIBOBJS objects are built. 20970 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20971 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20972 done 20973 LIBOBJS=$ac_libobjs 20974 20975 LTLIBOBJS=$ac_ltlibobjs 20976 20977 20978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20979 printf %s "checking that generated files are newer than configure... " >&6; } 20980 if test -n "$am_sleep_pid"; then 20981 # Hide warnings about reused PIDs. 20982 wait $am_sleep_pid 2>/dev/null 20983 fi 20984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 20985 printf "%s\n" "done" >&6; } 20986 case $enable_silent_rules in # ((( 20987 yes) AM_DEFAULT_VERBOSITY=0;; 20988 no) AM_DEFAULT_VERBOSITY=1;; 20989 esac 20990 if test $am_cv_make_support_nested_variables = yes; then 20991 AM_V='$(V)' 20992 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 20993 else 20994 AM_V=$AM_DEFAULT_VERBOSITY 20995 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 20996 fi 20997 20998 if test -n "$EXEEXT"; then 20999 am__EXEEXT_TRUE= 21000 am__EXEEXT_FALSE='#' 21001 else 21002 am__EXEEXT_TRUE='#' 21003 am__EXEEXT_FALSE= 21004 fi 21005 21006 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21007 as_fn_error $? "conditional \"AMDEP\" was never defined. 21008 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21009 fi 21010 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21011 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21012 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21013 fi 21014 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 21015 as_fn_error $? "conditional \"LINT\" was never defined. 21016 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21017 fi 21018 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 21019 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 21020 Usually this means the macro was only invoked conditionally." "$LINENO" 5 21021 fi 21022 21023 : "${CONFIG_STATUS=./config.status}" 21024 ac_write_fail=0 21025 ac_clean_files_save=$ac_clean_files 21026 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21028 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 21029 as_write_fail=0 21030 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21031 #! $SHELL 21032 # Generated by $as_me. 21033 # Run this file to recreate the current configuration. 21034 # Compiler output produced by configure, useful for debugging 21035 # configure, is in config.log if it exists. 21036 21037 debug=false 21038 ac_cs_recheck=false 21039 ac_cs_silent=false 21040 21041 SHELL=\${CONFIG_SHELL-$SHELL} 21042 export SHELL 21043 _ASEOF 21044 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21045 ## -------------------- ## 21046 ## M4sh Initialization. ## 21047 ## -------------------- ## 21048 21049 # Be more Bourne compatible 21050 DUALCASE=1; export DUALCASE # for MKS sh 21051 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21052 then : 21053 emulate sh 21054 NULLCMD=: 21055 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21056 # is contrary to our usage. Disable this feature. 21057 alias -g '${1+"$@"}'='"$@"' 21058 setopt NO_GLOB_SUBST 21059 else case e in #( 21060 e) case `(set -o) 2>/dev/null` in #( 21061 *posix*) : 21062 set -o posix ;; #( 21063 *) : 21064 ;; 21065 esac ;; 21066 esac 21067 fi 21068 21069 21070 21071 # Reset variables that may have inherited troublesome values from 21072 # the environment. 21073 21074 # IFS needs to be set, to space, tab, and newline, in precisely that order. 21075 # (If _AS_PATH_WALK were called with IFS unset, it would have the 21076 # side effect of setting IFS to empty, thus disabling word splitting.) 21077 # Quoting is to prevent editors from complaining about space-tab. 21078 as_nl=' 21079 ' 21080 export as_nl 21081 IFS=" "" $as_nl" 21082 21083 PS1='$ ' 21084 PS2='> ' 21085 PS4='+ ' 21086 21087 # Ensure predictable behavior from utilities with locale-dependent output. 21088 LC_ALL=C 21089 export LC_ALL 21090 LANGUAGE=C 21091 export LANGUAGE 21092 21093 # We cannot yet rely on "unset" to work, but we need these variables 21094 # to be unset--not just set to an empty or harmless value--now, to 21095 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 21096 # also avoids known problems related to "unset" and subshell syntax 21097 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 21098 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 21099 do eval test \${$as_var+y} \ 21100 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21101 done 21102 21103 # Ensure that fds 0, 1, and 2 are open. 21104 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 21105 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 21106 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 21107 21108 # The user is always right. 21109 if ${PATH_SEPARATOR+false} :; then 21110 PATH_SEPARATOR=: 21111 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21112 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21113 PATH_SEPARATOR=';' 21114 } 21115 fi 21116 21117 21118 # Find who we are. Look in the path if we contain no directory separator. 21119 as_myself= 21120 case $0 in #(( 21121 *[\\/]* ) as_myself=$0 ;; 21122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21123 for as_dir in $PATH 21124 do 21125 IFS=$as_save_IFS 21126 case $as_dir in #((( 21127 '') as_dir=./ ;; 21128 */) ;; 21129 *) as_dir=$as_dir/ ;; 21130 esac 21131 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 21132 done 21133 IFS=$as_save_IFS 21134 21135 ;; 21136 esac 21137 # We did not find ourselves, most probably we were run as 'sh COMMAND' 21138 # in which case we are not to be found in the path. 21139 if test "x$as_myself" = x; then 21140 as_myself=$0 21141 fi 21142 if test ! -f "$as_myself"; then 21143 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21144 exit 1 21145 fi 21146 21147 21148 21149 # as_fn_error STATUS ERROR [LINENO LOG_FD] 21150 # ---------------------------------------- 21151 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21152 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21153 # script with STATUS, using 1 if that was 0. 21154 as_fn_error () 21155 { 21156 as_status=$1; test $as_status -eq 0 && as_status=1 21157 if test "$4"; then 21158 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21160 fi 21161 printf "%s\n" "$as_me: error: $2" >&2 21162 as_fn_exit $as_status 21163 } # as_fn_error 21164 21165 21166 # as_fn_set_status STATUS 21167 # ----------------------- 21168 # Set $? to STATUS, without forking. 21169 as_fn_set_status () 21170 { 21171 return $1 21172 } # as_fn_set_status 21173 21174 # as_fn_exit STATUS 21175 # ----------------- 21176 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21177 as_fn_exit () 21178 { 21179 set +e 21180 as_fn_set_status $1 21181 exit $1 21182 } # as_fn_exit 21183 21184 # as_fn_unset VAR 21185 # --------------- 21186 # Portably unset VAR. 21187 as_fn_unset () 21188 { 21189 { eval $1=; unset $1;} 21190 } 21191 as_unset=as_fn_unset 21192 21193 # as_fn_append VAR VALUE 21194 # ---------------------- 21195 # Append the text in VALUE to the end of the definition contained in VAR. Take 21196 # advantage of any shell optimizations that allow amortized linear growth over 21197 # repeated appends, instead of the typical quadratic growth present in naive 21198 # implementations. 21199 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 21200 then : 21201 eval 'as_fn_append () 21202 { 21203 eval $1+=\$2 21204 }' 21205 else case e in #( 21206 e) as_fn_append () 21207 { 21208 eval $1=\$$1\$2 21209 } ;; 21210 esac 21211 fi # as_fn_append 21212 21213 # as_fn_arith ARG... 21214 # ------------------ 21215 # Perform arithmetic evaluation on the ARGs, and store the result in the 21216 # global $as_val. Take advantage of shells that can avoid forks. The arguments 21217 # must be portable across $(()) and expr. 21218 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 21219 then : 21220 eval 'as_fn_arith () 21221 { 21222 as_val=$(( $* )) 21223 }' 21224 else case e in #( 21225 e) as_fn_arith () 21226 { 21227 as_val=`expr "$@" || test $? -eq 1` 21228 } ;; 21229 esac 21230 fi # as_fn_arith 21231 21232 21233 if expr a : '\(a\)' >/dev/null 2>&1 && 21234 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21235 as_expr=expr 21236 else 21237 as_expr=false 21238 fi 21239 21240 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21241 as_basename=basename 21242 else 21243 as_basename=false 21244 fi 21245 21246 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21247 as_dirname=dirname 21248 else 21249 as_dirname=false 21250 fi 21251 21252 as_me=`$as_basename -- "$0" || 21253 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21254 X"$0" : 'X\(//\)$' \| \ 21255 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21256 printf "%s\n" X/"$0" | 21257 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21258 s//\1/ 21259 q 21260 } 21261 /^X\/\(\/\/\)$/{ 21262 s//\1/ 21263 q 21264 } 21265 /^X\/\(\/\).*/{ 21266 s//\1/ 21267 q 21268 } 21269 s/.*/./; q'` 21270 21271 # Avoid depending upon Character Ranges. 21272 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21273 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21274 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21275 as_cr_digits='0123456789' 21276 as_cr_alnum=$as_cr_Letters$as_cr_digits 21277 21278 21279 # Determine whether it's possible to make 'echo' print without a newline. 21280 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 21281 # for compatibility with existing Makefiles. 21282 ECHO_C= ECHO_N= ECHO_T= 21283 case `echo -n x` in #((((( 21284 -n*) 21285 case `echo 'xy\c'` in 21286 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21287 xy) ECHO_C='\c';; 21288 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21289 ECHO_T=' ';; 21290 esac;; 21291 *) 21292 ECHO_N='-n';; 21293 esac 21294 21295 # For backward compatibility with old third-party macros, we provide 21296 # the shell variables $as_echo and $as_echo_n. New code should use 21297 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 21298 as_echo='printf %s\n' 21299 as_echo_n='printf %s' 21300 21301 rm -f conf$$ conf$$.exe conf$$.file 21302 if test -d conf$$.dir; then 21303 rm -f conf$$.dir/conf$$.file 21304 else 21305 rm -f conf$$.dir 21306 mkdir conf$$.dir 2>/dev/null 21307 fi 21308 if (echo >conf$$.file) 2>/dev/null; then 21309 if ln -s conf$$.file conf$$ 2>/dev/null; then 21310 as_ln_s='ln -s' 21311 # ... but there are two gotchas: 21312 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 21313 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 21314 # In both cases, we have to default to 'cp -pR'. 21315 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21316 as_ln_s='cp -pR' 21317 elif ln conf$$.file conf$$ 2>/dev/null; then 21318 as_ln_s=ln 21319 else 21320 as_ln_s='cp -pR' 21321 fi 21322 else 21323 as_ln_s='cp -pR' 21324 fi 21325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21326 rmdir conf$$.dir 2>/dev/null 21327 21328 21329 # as_fn_mkdir_p 21330 # ------------- 21331 # Create "$as_dir" as a directory, including parents if necessary. 21332 as_fn_mkdir_p () 21333 { 21334 21335 case $as_dir in #( 21336 -*) as_dir=./$as_dir;; 21337 esac 21338 test -d "$as_dir" || eval $as_mkdir_p || { 21339 as_dirs= 21340 while :; do 21341 case $as_dir in #( 21342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21343 *) as_qdir=$as_dir;; 21344 esac 21345 as_dirs="'$as_qdir' $as_dirs" 21346 as_dir=`$as_dirname -- "$as_dir" || 21347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21348 X"$as_dir" : 'X\(//\)[^/]' \| \ 21349 X"$as_dir" : 'X\(//\)$' \| \ 21350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21351 printf "%s\n" X"$as_dir" | 21352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21353 s//\1/ 21354 q 21355 } 21356 /^X\(\/\/\)[^/].*/{ 21357 s//\1/ 21358 q 21359 } 21360 /^X\(\/\/\)$/{ 21361 s//\1/ 21362 q 21363 } 21364 /^X\(\/\).*/{ 21365 s//\1/ 21366 q 21367 } 21368 s/.*/./; q'` 21369 test -d "$as_dir" && break 21370 done 21371 test -z "$as_dirs" || eval "mkdir $as_dirs" 21372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21373 21374 21375 } # as_fn_mkdir_p 21376 if mkdir -p . 2>/dev/null; then 21377 as_mkdir_p='mkdir -p "$as_dir"' 21378 else 21379 test -d ./-p && rmdir ./-p 21380 as_mkdir_p=false 21381 fi 21382 21383 21384 # as_fn_executable_p FILE 21385 # ----------------------- 21386 # Test if FILE is an executable regular file. 21387 as_fn_executable_p () 21388 { 21389 test -f "$1" && test -x "$1" 21390 } # as_fn_executable_p 21391 as_test_x='test -x' 21392 as_executable_p=as_fn_executable_p 21393 21394 # Sed expression to map a string onto a valid CPP name. 21395 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 21396 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 21397 21398 # Sed expression to map a string onto a valid variable name. 21399 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 21400 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 21401 21402 21403 exec 6>&1 21404 ## ----------------------------------- ## 21405 ## Main body of $CONFIG_STATUS script. ## 21406 ## ----------------------------------- ## 21407 _ASEOF 21408 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21409 21410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21411 # Save the log message, to keep $0 and so on meaningful, and to 21412 # report actual input values of CONFIG_FILES etc. instead of their 21413 # values after options handling. 21414 ac_log=" 21415 This file was extended by libFS $as_me 1.0.10, which was 21416 generated by GNU Autoconf 2.72. Invocation command line was 21417 21418 CONFIG_FILES = $CONFIG_FILES 21419 CONFIG_HEADERS = $CONFIG_HEADERS 21420 CONFIG_LINKS = $CONFIG_LINKS 21421 CONFIG_COMMANDS = $CONFIG_COMMANDS 21422 $ $0 $@ 21423 21424 on `(hostname || uname -n) 2>/dev/null | sed 1q` 21425 " 21426 21427 _ACEOF 21428 21429 case $ac_config_files in *" 21430 "*) set x $ac_config_files; shift; ac_config_files=$*;; 21431 esac 21432 21433 case $ac_config_headers in *" 21434 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21435 esac 21436 21437 21438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21439 # Files that config.status was made for. 21440 config_files="$ac_config_files" 21441 config_headers="$ac_config_headers" 21442 config_commands="$ac_config_commands" 21443 21444 _ACEOF 21445 21446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21447 ac_cs_usage="\ 21448 '$as_me' instantiates files and other configuration actions 21449 from templates according to the current configuration. Unless the files 21450 and actions are specified as TAGs, all are instantiated by default. 21451 21452 Usage: $0 [OPTION]... [TAG]... 21453 21454 -h, --help print this help, then exit 21455 -V, --version print version number and configuration settings, then exit 21456 --config print configuration, then exit 21457 -q, --quiet, --silent 21458 do not print progress messages 21459 -d, --debug don't remove temporary files 21460 --recheck update $as_me by reconfiguring in the same conditions 21461 --file=FILE[:TEMPLATE] 21462 instantiate the configuration file FILE 21463 --header=FILE[:TEMPLATE] 21464 instantiate the configuration header FILE 21465 21466 Configuration files: 21467 $config_files 21468 21469 Configuration headers: 21470 $config_headers 21471 21472 Configuration commands: 21473 $config_commands 21474 21475 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfs/-/issues>." 21476 21477 _ACEOF 21478 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 21479 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 21480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21481 ac_cs_config='$ac_cs_config_escaped' 21482 ac_cs_version="\\ 21483 libFS config.status 1.0.10 21484 configured by $0, generated by GNU Autoconf 2.72, 21485 with options \\"\$ac_cs_config\\" 21486 21487 Copyright (C) 2023 Free Software Foundation, Inc. 21488 This config.status script is free software; the Free Software Foundation 21489 gives unlimited permission to copy, distribute and modify it." 21490 21491 ac_pwd='$ac_pwd' 21492 srcdir='$srcdir' 21493 INSTALL='$INSTALL' 21494 MKDIR_P='$MKDIR_P' 21495 AWK='$AWK' 21496 test -n "\$AWK" || AWK=awk 21497 _ACEOF 21498 21499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21500 # The default lists apply if the user does not specify any file. 21501 ac_need_defaults=: 21502 while test $# != 0 21503 do 21504 case $1 in 21505 --*=?*) 21506 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21507 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21508 ac_shift=: 21509 ;; 21510 --*=) 21511 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21512 ac_optarg= 21513 ac_shift=: 21514 ;; 21515 *) 21516 ac_option=$1 21517 ac_optarg=$2 21518 ac_shift=shift 21519 ;; 21520 esac 21521 21522 case $ac_option in 21523 # Handling of the options. 21524 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21525 ac_cs_recheck=: ;; 21526 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21527 printf "%s\n" "$ac_cs_version"; exit ;; 21528 --config | --confi | --conf | --con | --co | --c ) 21529 printf "%s\n" "$ac_cs_config"; exit ;; 21530 --debug | --debu | --deb | --de | --d | -d ) 21531 debug=: ;; 21532 --file | --fil | --fi | --f ) 21533 $ac_shift 21534 case $ac_optarg in 21535 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21536 '') as_fn_error $? "missing file argument" ;; 21537 esac 21538 as_fn_append CONFIG_FILES " '$ac_optarg'" 21539 ac_need_defaults=false;; 21540 --header | --heade | --head | --hea ) 21541 $ac_shift 21542 case $ac_optarg in 21543 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21544 esac 21545 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21546 ac_need_defaults=false;; 21547 --he | --h) 21548 # Conflict between --help and --header 21549 as_fn_error $? "ambiguous option: '$1' 21550 Try '$0 --help' for more information.";; 21551 --help | --hel | -h ) 21552 printf "%s\n" "$ac_cs_usage"; exit ;; 21553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21554 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21555 ac_cs_silent=: ;; 21556 21557 # This is an error. 21558 -*) as_fn_error $? "unrecognized option: '$1' 21559 Try '$0 --help' for more information." ;; 21560 21561 *) as_fn_append ac_config_targets " $1" 21562 ac_need_defaults=false ;; 21563 21564 esac 21565 shift 21566 done 21567 21568 ac_configure_extra_args= 21569 21570 if $ac_cs_silent; then 21571 exec 6>/dev/null 21572 ac_configure_extra_args="$ac_configure_extra_args --silent" 21573 fi 21574 21575 _ACEOF 21576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21577 if \$ac_cs_recheck; then 21578 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21579 shift 21580 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 21581 CONFIG_SHELL='$SHELL' 21582 export CONFIG_SHELL 21583 exec "\$@" 21584 fi 21585 21586 _ACEOF 21587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21588 exec 5>>config.log 21589 { 21590 echo 21591 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21592 ## Running $as_me. ## 21593 _ASBOX 21594 printf "%s\n" "$ac_log" 21595 } >&5 21596 21597 _ACEOF 21598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21599 # 21600 # INIT-COMMANDS 21601 # 21602 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21603 21604 21605 # The HP-UX ksh and POSIX shell print the target directory to stdout 21606 # if CDPATH is set. 21607 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21608 21609 sed_quote_subst='$sed_quote_subst' 21610 double_quote_subst='$double_quote_subst' 21611 delay_variable_subst='$delay_variable_subst' 21612 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21613 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21614 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21615 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21616 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21617 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21618 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21619 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21620 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21621 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21622 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21623 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21624 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21625 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21626 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21627 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21628 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21629 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21630 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21631 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21632 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21633 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21634 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21635 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21636 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21637 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21638 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21639 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21640 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21641 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21642 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21643 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21644 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21645 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21646 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 21647 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21648 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21649 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21650 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21651 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21652 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21653 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21654 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21655 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 21656 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21657 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21658 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21659 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21660 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21661 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21662 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21663 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21664 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21665 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21666 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21667 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21668 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21669 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21670 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 21671 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21672 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"`' 21673 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 21674 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21675 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21676 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 21677 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21678 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21679 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21680 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21681 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21682 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21683 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21684 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21685 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21686 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21687 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21688 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21689 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21690 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21691 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21692 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21693 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21694 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21695 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21696 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21697 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21698 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21699 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21700 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21701 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21702 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21703 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21704 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21705 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21706 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21707 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21708 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21709 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21710 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21711 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21712 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21713 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21714 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21715 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21716 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21717 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21718 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21719 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21720 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21721 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21722 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21723 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21724 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21725 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21726 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21727 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21728 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21729 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21730 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21731 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21732 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21733 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21734 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21735 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21736 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21737 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21738 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21739 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21740 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21741 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 21742 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 21743 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21744 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21745 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21746 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21747 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21748 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21749 21750 LTCC='$LTCC' 21751 LTCFLAGS='$LTCFLAGS' 21752 compiler='$compiler_DEFAULT' 21753 21754 # A function that is used when there is no print builtin or printf. 21755 func_fallback_echo () 21756 { 21757 eval 'cat <<_LTECHO_EOF 21758 \$1 21759 _LTECHO_EOF' 21760 } 21761 21762 # Quote evaled strings. 21763 for var in SHELL \ 21764 ECHO \ 21765 PATH_SEPARATOR \ 21766 SED \ 21767 GREP \ 21768 EGREP \ 21769 FGREP \ 21770 LD \ 21771 NM \ 21772 LN_S \ 21773 lt_SP2NL \ 21774 lt_NL2SP \ 21775 reload_flag \ 21776 FILECMD \ 21777 OBJDUMP \ 21778 deplibs_check_method \ 21779 file_magic_cmd \ 21780 file_magic_glob \ 21781 want_nocaseglob \ 21782 DLLTOOL \ 21783 sharedlib_from_linklib_cmd \ 21784 AR \ 21785 archiver_list_spec \ 21786 STRIP \ 21787 RANLIB \ 21788 CC \ 21789 CFLAGS \ 21790 compiler \ 21791 lt_cv_sys_global_symbol_pipe \ 21792 lt_cv_sys_global_symbol_to_cdecl \ 21793 lt_cv_sys_global_symbol_to_import \ 21794 lt_cv_sys_global_symbol_to_c_name_address \ 21795 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21796 lt_cv_nm_interface \ 21797 nm_file_list_spec \ 21798 lt_cv_truncate_bin \ 21799 lt_prog_compiler_no_builtin_flag \ 21800 lt_prog_compiler_pic \ 21801 lt_prog_compiler_wl \ 21802 lt_prog_compiler_static \ 21803 lt_cv_prog_compiler_c_o \ 21804 need_locks \ 21805 MANIFEST_TOOL \ 21806 DSYMUTIL \ 21807 NMEDIT \ 21808 LIPO \ 21809 OTOOL \ 21810 OTOOL64 \ 21811 shrext_cmds \ 21812 export_dynamic_flag_spec \ 21813 whole_archive_flag_spec \ 21814 compiler_needs_object \ 21815 with_gnu_ld \ 21816 allow_undefined_flag \ 21817 no_undefined_flag \ 21818 hardcode_libdir_flag_spec \ 21819 hardcode_libdir_separator \ 21820 exclude_expsyms \ 21821 include_expsyms \ 21822 file_list_spec \ 21823 variables_saved_for_relink \ 21824 libname_spec \ 21825 library_names_spec \ 21826 soname_spec \ 21827 install_override_mode \ 21828 finish_eval \ 21829 old_striplib \ 21830 striplib; do 21831 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21832 *[\\\\\\\`\\"\\\$]*) 21833 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21834 ;; 21835 *) 21836 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21837 ;; 21838 esac 21839 done 21840 21841 # Double-quote double-evaled strings. 21842 for var in reload_cmds \ 21843 old_postinstall_cmds \ 21844 old_postuninstall_cmds \ 21845 old_archive_cmds \ 21846 extract_expsyms_cmds \ 21847 old_archive_from_new_cmds \ 21848 old_archive_from_expsyms_cmds \ 21849 archive_cmds \ 21850 archive_expsym_cmds \ 21851 module_cmds \ 21852 module_expsym_cmds \ 21853 export_symbols_cmds \ 21854 prelink_cmds \ 21855 postlink_cmds \ 21856 postinstall_cmds \ 21857 postuninstall_cmds \ 21858 finish_cmds \ 21859 sys_lib_search_path_spec \ 21860 configure_time_dlsearch_path \ 21861 configure_time_lt_sys_library_path; do 21862 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21863 *[\\\\\\\`\\"\\\$]*) 21864 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21865 ;; 21866 *) 21867 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21868 ;; 21869 esac 21870 done 21871 21872 ac_aux_dir='$ac_aux_dir' 21873 21874 # See if we are running on zsh, and set the options that allow our 21875 # commands through without removal of \ escapes INIT. 21876 if test -n "\${ZSH_VERSION+set}"; then 21877 setopt NO_GLOB_SUBST 21878 fi 21879 21880 21881 PACKAGE='$PACKAGE' 21882 VERSION='$VERSION' 21883 RM='$RM' 21884 ofile='$ofile' 21885 21886 21887 21888 21889 _ACEOF 21890 21891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21892 21893 # Handling of arguments. 21894 for ac_config_target in $ac_config_targets 21895 do 21896 case $ac_config_target in 21897 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21898 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21899 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21900 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21901 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21902 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 21903 "libfs.pc") CONFIG_FILES="$CONFIG_FILES libfs.pc" ;; 21904 21905 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 21906 esac 21907 done 21908 21909 21910 # If the user did not use the arguments to specify the items to instantiate, 21911 # then the envvar interface is used. Set only those that are not. 21912 # We use the long form for the default assignment because of an extremely 21913 # bizarre bug on SunOS 4.1.3. 21914 if $ac_need_defaults; then 21915 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 21916 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 21917 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 21918 fi 21919 21920 # Have a temporary directory for convenience. Make it in the build tree 21921 # simply because there is no reason against having it here, and in addition, 21922 # creating and moving files from /tmp can sometimes cause problems. 21923 # Hook for its removal unless debugging. 21924 # Note that there is a small window in which the directory will not be cleaned: 21925 # after its creation but before its name has been assigned to '$tmp'. 21926 $debug || 21927 { 21928 tmp= ac_tmp= 21929 trap 'exit_status=$? 21930 : "${ac_tmp:=$tmp}" 21931 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21932 ' 0 21933 trap 'as_fn_exit 1' 1 2 13 15 21934 } 21935 # Create a (secure) tmp directory for tmp files. 21936 21937 { 21938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21939 test -d "$tmp" 21940 } || 21941 { 21942 tmp=./conf$$-$RANDOM 21943 (umask 077 && mkdir "$tmp") 21944 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21945 ac_tmp=$tmp 21946 21947 # Set up the scripts for CONFIG_FILES section. 21948 # No need to generate them if there are no CONFIG_FILES. 21949 # This happens for instance with './config.status config.h'. 21950 if test -n "$CONFIG_FILES"; then 21951 21952 21953 ac_cr=`echo X | tr X '\015'` 21954 # On cygwin, bash can eat \r inside `` if the user requested igncr. 21955 # But we know of no other shell where ac_cr would be empty at this 21956 # point, so we can use a bashism as a fallback. 21957 if test "x$ac_cr" = x; then 21958 eval ac_cr=\$\'\\r\' 21959 fi 21960 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21962 ac_cs_awk_cr='\\r' 21963 else 21964 ac_cs_awk_cr=$ac_cr 21965 fi 21966 21967 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21968 _ACEOF 21969 21970 21971 { 21972 echo "cat >conf$$subs.awk <<_ACEOF" && 21973 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21974 echo "_ACEOF" 21975 } >conf$$subs.sh || 21976 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21977 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21978 ac_delim='%!_!# ' 21979 for ac_last_try in false false false false false :; do 21980 . ./conf$$subs.sh || 21981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21982 21983 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21984 if test $ac_delim_n = $ac_delim_num; then 21985 break 21986 elif $ac_last_try; then 21987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21988 else 21989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21990 fi 21991 done 21992 rm -f conf$$subs.sh 21993 21994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21995 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21996 _ACEOF 21997 sed -n ' 21998 h 21999 s/^/S["/; s/!.*/"]=/ 22000 p 22001 g 22002 s/^[^!]*!// 22003 :repl 22004 t repl 22005 s/'"$ac_delim"'$// 22006 t delim 22007 :nl 22008 h 22009 s/\(.\{148\}\)..*/\1/ 22010 t more1 22011 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22012 p 22013 n 22014 b repl 22015 :more1 22016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22017 p 22018 g 22019 s/.\{148\}// 22020 t nl 22021 :delim 22022 h 22023 s/\(.\{148\}\)..*/\1/ 22024 t more2 22025 s/["\\]/\\&/g; s/^/"/; s/$/"/ 22026 p 22027 b 22028 :more2 22029 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22030 p 22031 g 22032 s/.\{148\}// 22033 t delim 22034 ' <conf$$subs.awk | sed ' 22035 /^[^""]/{ 22036 N 22037 s/\n// 22038 } 22039 ' >>$CONFIG_STATUS || ac_write_fail=1 22040 rm -f conf$$subs.awk 22041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22042 _ACAWK 22043 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22044 for (key in S) S_is_set[key] = 1 22045 FS = "" 22046 22047 } 22048 { 22049 line = $ 0 22050 nfields = split(line, field, "@") 22051 substed = 0 22052 len = length(field[1]) 22053 for (i = 2; i < nfields; i++) { 22054 key = field[i] 22055 keylen = length(key) 22056 if (S_is_set[key]) { 22057 value = S[key] 22058 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22059 len += length(value) + length(field[++i]) 22060 substed = 1 22061 } else 22062 len += 1 + keylen 22063 } 22064 22065 print line 22066 } 22067 22068 _ACAWK 22069 _ACEOF 22070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22071 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22072 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22073 else 22074 cat 22075 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22076 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22077 _ACEOF 22078 22079 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22080 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22081 # trailing colons and then remove the whole line if VPATH becomes empty 22082 # (actually we leave an empty line to preserve line numbers). 22083 if test "x$srcdir" = x.; then 22084 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22085 h 22086 s/// 22087 s/^/:/ 22088 s/[ ]*$/:/ 22089 s/:\$(srcdir):/:/g 22090 s/:\${srcdir}:/:/g 22091 s/:@srcdir@:/:/g 22092 s/^:*// 22093 s/:*$// 22094 x 22095 s/\(=[ ]*\).*/\1/ 22096 G 22097 s/\n// 22098 s/^[^=]*=[ ]*$// 22099 }' 22100 fi 22101 22102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22103 fi # test -n "$CONFIG_FILES" 22104 22105 # Set up the scripts for CONFIG_HEADERS section. 22106 # No need to generate them if there are no CONFIG_HEADERS. 22107 # This happens for instance with './config.status Makefile'. 22108 if test -n "$CONFIG_HEADERS"; then 22109 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22110 BEGIN { 22111 _ACEOF 22112 22113 # Transform confdefs.h into an awk script 'defines.awk', embedded as 22114 # here-document in config.status, that substitutes the proper values into 22115 # config.h.in to produce config.h. 22116 22117 # Create a delimiter string that does not exist in confdefs.h, to ease 22118 # handling of long lines. 22119 ac_delim='%!_!# ' 22120 for ac_last_try in false false :; do 22121 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22122 if test -z "$ac_tt"; then 22123 break 22124 elif $ac_last_try; then 22125 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22126 else 22127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22128 fi 22129 done 22130 22131 # For the awk script, D is an array of macro values keyed by name, 22132 # likewise P contains macro parameters if any. Preserve backslash 22133 # newline sequences. 22134 22135 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22136 sed -n ' 22137 s/.\{148\}/&'"$ac_delim"'/g 22138 t rset 22139 :rset 22140 s/^[ ]*#[ ]*define[ ][ ]*/ / 22141 t def 22142 d 22143 :def 22144 s/\\$// 22145 t bsnl 22146 s/["\\]/\\&/g 22147 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22148 D["\1"]=" \3"/p 22149 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22150 d 22151 :bsnl 22152 s/["\\]/\\&/g 22153 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22154 D["\1"]=" \3\\\\\\n"\\/p 22155 t cont 22156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22157 t cont 22158 d 22159 :cont 22160 n 22161 s/.\{148\}/&'"$ac_delim"'/g 22162 t clear 22163 :clear 22164 s/\\$// 22165 t bsnlc 22166 s/["\\]/\\&/g; s/^/"/; s/$/"/p 22167 d 22168 :bsnlc 22169 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22170 b cont 22171 ' <confdefs.h | sed ' 22172 s/'"$ac_delim"'/"\\\ 22173 "/g' >>$CONFIG_STATUS || ac_write_fail=1 22174 22175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22176 for (key in D) D_is_set[key] = 1 22177 FS = "" 22178 } 22179 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22180 line = \$ 0 22181 split(line, arg, " ") 22182 if (arg[1] == "#") { 22183 defundef = arg[2] 22184 mac1 = arg[3] 22185 } else { 22186 defundef = substr(arg[1], 2) 22187 mac1 = arg[2] 22188 } 22189 split(mac1, mac2, "(") #) 22190 macro = mac2[1] 22191 prefix = substr(line, 1, index(line, defundef) - 1) 22192 if (D_is_set[macro]) { 22193 # Preserve the white space surrounding the "#". 22194 print prefix "define", macro P[macro] D[macro] 22195 next 22196 } else { 22197 # Replace #undef with comments. This is necessary, for example, 22198 # in the case of _POSIX_SOURCE, which is predefined and required 22199 # on some systems where configure will not decide to define it. 22200 if (defundef == "undef") { 22201 print "/*", prefix defundef, macro, "*/" 22202 next 22203 } 22204 } 22205 } 22206 { print } 22207 _ACAWK 22208 _ACEOF 22209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22210 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22211 fi # test -n "$CONFIG_HEADERS" 22212 22213 22214 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22215 shift 22216 for ac_tag 22217 do 22218 case $ac_tag in 22219 :[FHLC]) ac_mode=$ac_tag; continue;; 22220 esac 22221 case $ac_mode$ac_tag in 22222 :[FHL]*:*);; 22223 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 22224 :[FH]-) ac_tag=-:-;; 22225 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22226 esac 22227 ac_save_IFS=$IFS 22228 IFS=: 22229 set x $ac_tag 22230 IFS=$ac_save_IFS 22231 shift 22232 ac_file=$1 22233 shift 22234 22235 case $ac_mode in 22236 :L) ac_source=$1;; 22237 :[FH]) 22238 ac_file_inputs= 22239 for ac_f 22240 do 22241 case $ac_f in 22242 -) ac_f="$ac_tmp/stdin";; 22243 *) # Look for the file first in the build tree, then in the source tree 22244 # (if the path is not absolute). The absolute path cannot be DOS-style, 22245 # because $ac_f cannot contain ':'. 22246 test -f "$ac_f" || 22247 case $ac_f in 22248 [\\/$]*) false;; 22249 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22250 esac || 22251 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 22252 esac 22253 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22254 as_fn_append ac_file_inputs " '$ac_f'" 22255 done 22256 22257 # Let's still pretend it is 'configure' which instantiates (i.e., don't 22258 # use $as_me), people would be surprised to read: 22259 # /* config.h. Generated by config.status. */ 22260 configure_input='Generated from '` 22261 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22262 `' by configure.' 22263 if test x"$ac_file" != x-; then 22264 configure_input="$ac_file. $configure_input" 22265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22266 printf "%s\n" "$as_me: creating $ac_file" >&6;} 22267 fi 22268 # Neutralize special characters interpreted by sed in replacement strings. 22269 case $configure_input in #( 22270 *\&* | *\|* | *\\* ) 22271 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 22272 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22273 *) ac_sed_conf_input=$configure_input;; 22274 esac 22275 22276 case $ac_tag in 22277 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22279 esac 22280 ;; 22281 esac 22282 22283 ac_dir=`$as_dirname -- "$ac_file" || 22284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22285 X"$ac_file" : 'X\(//\)[^/]' \| \ 22286 X"$ac_file" : 'X\(//\)$' \| \ 22287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22288 printf "%s\n" X"$ac_file" | 22289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22290 s//\1/ 22291 q 22292 } 22293 /^X\(\/\/\)[^/].*/{ 22294 s//\1/ 22295 q 22296 } 22297 /^X\(\/\/\)$/{ 22298 s//\1/ 22299 q 22300 } 22301 /^X\(\/\).*/{ 22302 s//\1/ 22303 q 22304 } 22305 s/.*/./; q'` 22306 as_dir="$ac_dir"; as_fn_mkdir_p 22307 ac_builddir=. 22308 22309 case "$ac_dir" in 22310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22311 *) 22312 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 22313 # A ".." for each directory in $ac_dir_suffix. 22314 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22315 case $ac_top_builddir_sub in 22316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22318 esac ;; 22319 esac 22320 ac_abs_top_builddir=$ac_pwd 22321 ac_abs_builddir=$ac_pwd$ac_dir_suffix 22322 # for backward compatibility: 22323 ac_top_builddir=$ac_top_build_prefix 22324 22325 case $srcdir in 22326 .) # We are building in place. 22327 ac_srcdir=. 22328 ac_top_srcdir=$ac_top_builddir_sub 22329 ac_abs_top_srcdir=$ac_pwd ;; 22330 [\\/]* | ?:[\\/]* ) # Absolute name. 22331 ac_srcdir=$srcdir$ac_dir_suffix; 22332 ac_top_srcdir=$srcdir 22333 ac_abs_top_srcdir=$srcdir ;; 22334 *) # Relative name. 22335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22336 ac_top_srcdir=$ac_top_build_prefix$srcdir 22337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22338 esac 22339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22340 22341 22342 case $ac_mode in 22343 :F) 22344 # 22345 # CONFIG_FILE 22346 # 22347 22348 case $INSTALL in 22349 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22350 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22351 esac 22352 ac_MKDIR_P=$MKDIR_P 22353 case $MKDIR_P in 22354 [\\/$]* | ?:[\\/]* ) ;; 22355 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22356 esac 22357 _ACEOF 22358 22359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22360 # If the template does not know about datarootdir, expand it. 22361 # FIXME: This hack should be removed a few years after 2.60. 22362 ac_datarootdir_hack=; ac_datarootdir_seen= 22363 ac_sed_dataroot=' 22364 /datarootdir/ { 22365 p 22366 q 22367 } 22368 /@datadir@/p 22369 /@docdir@/p 22370 /@infodir@/p 22371 /@localedir@/p 22372 /@mandir@/p' 22373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22374 *datarootdir*) ac_datarootdir_seen=yes;; 22375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22377 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22378 _ACEOF 22379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22380 ac_datarootdir_hack=' 22381 s&@datadir@&$datadir&g 22382 s&@docdir@&$docdir&g 22383 s&@infodir@&$infodir&g 22384 s&@localedir@&$localedir&g 22385 s&@mandir@&$mandir&g 22386 s&\\\${datarootdir}&$datarootdir&g' ;; 22387 esac 22388 _ACEOF 22389 22390 # Neutralize VPATH when '$srcdir' = '.'. 22391 # Shell code in configure.ac might set extrasub. 22392 # FIXME: do we really want to maintain this feature? 22393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22394 ac_sed_extra="$ac_vpsub 22395 $extrasub 22396 _ACEOF 22397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22398 :t 22399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22400 s|@configure_input@|$ac_sed_conf_input|;t t 22401 s&@top_builddir@&$ac_top_builddir_sub&;t t 22402 s&@top_build_prefix@&$ac_top_build_prefix&;t t 22403 s&@srcdir@&$ac_srcdir&;t t 22404 s&@abs_srcdir@&$ac_abs_srcdir&;t t 22405 s&@top_srcdir@&$ac_top_srcdir&;t t 22406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22407 s&@builddir@&$ac_builddir&;t t 22408 s&@abs_builddir@&$ac_abs_builddir&;t t 22409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22410 s&@INSTALL@&$ac_INSTALL&;t t 22411 s&@MKDIR_P@&$ac_MKDIR_P&;t t 22412 $ac_datarootdir_hack 22413 " 22414 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22415 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22416 22417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22418 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22420 "$ac_tmp/out"`; test -z "$ac_out"; } && 22421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22422 which seems to be undefined. Please make sure it is defined" >&5 22423 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 22424 which seems to be undefined. Please make sure it is defined" >&2;} 22425 22426 rm -f "$ac_tmp/stdin" 22427 case $ac_file in 22428 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22429 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22430 esac \ 22431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22432 ;; 22433 :H) 22434 # 22435 # CONFIG_HEADER 22436 # 22437 if test x"$ac_file" != x-; then 22438 { 22439 printf "%s\n" "/* $configure_input */" >&1 \ 22440 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22441 } >"$ac_tmp/config.h" \ 22442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22443 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22445 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 22446 else 22447 rm -f "$ac_file" 22448 mv "$ac_tmp/config.h" "$ac_file" \ 22449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22450 fi 22451 else 22452 printf "%s\n" "/* $configure_input */" >&1 \ 22453 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22454 || as_fn_error $? "could not create -" "$LINENO" 5 22455 fi 22456 # Compute "$ac_file"'s index in $config_headers. 22457 _am_arg="$ac_file" 22458 _am_stamp_count=1 22459 for _am_header in $config_headers :; do 22460 case $_am_header in 22461 $_am_arg | $_am_arg:* ) 22462 break ;; 22463 * ) 22464 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22465 esac 22466 done 22467 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22468 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22469 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22470 X"$_am_arg" : 'X\(//\)$' \| \ 22471 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22472 printf "%s\n" X"$_am_arg" | 22473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22474 s//\1/ 22475 q 22476 } 22477 /^X\(\/\/\)[^/].*/{ 22478 s//\1/ 22479 q 22480 } 22481 /^X\(\/\/\)$/{ 22482 s//\1/ 22483 q 22484 } 22485 /^X\(\/\).*/{ 22486 s//\1/ 22487 q 22488 } 22489 s/.*/./; q'`/stamp-h$_am_stamp_count 22490 ;; 22491 22492 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22493 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 22494 ;; 22495 esac 22496 22497 22498 case $ac_file$ac_mode in 22499 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22500 # Older Autoconf quotes --file arguments for eval, but not when files 22501 # are listed without --file. Let's play safe and only enable the eval 22502 # if we detect the quoting. 22503 # TODO: see whether this extra hack can be removed once we start 22504 # requiring Autoconf 2.70 or later. 22505 case $CONFIG_FILES in #( 22506 *\'*) : 22507 eval set x "$CONFIG_FILES" ;; #( 22508 *) : 22509 set x $CONFIG_FILES ;; #( 22510 *) : 22511 ;; 22512 esac 22513 shift 22514 # Used to flag and report bootstrapping failures. 22515 am_rc=0 22516 for am_mf 22517 do 22518 # Strip MF so we end up with the name of the file. 22519 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 22520 # Check whether this is an Automake generated Makefile which includes 22521 # dependency-tracking related rules and includes. 22522 # Grep'ing the whole file directly is not great: AIX grep has a line 22523 # limit of 2048, but all sed's we know have understand at least 4000. 22524 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22525 || continue 22526 am_dirpart=`$as_dirname -- "$am_mf" || 22527 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22528 X"$am_mf" : 'X\(//\)[^/]' \| \ 22529 X"$am_mf" : 'X\(//\)$' \| \ 22530 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22531 printf "%s\n" X"$am_mf" | 22532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22533 s//\1/ 22534 q 22535 } 22536 /^X\(\/\/\)[^/].*/{ 22537 s//\1/ 22538 q 22539 } 22540 /^X\(\/\/\)$/{ 22541 s//\1/ 22542 q 22543 } 22544 /^X\(\/\).*/{ 22545 s//\1/ 22546 q 22547 } 22548 s/.*/./; q'` 22549 am_filepart=`$as_basename -- "$am_mf" || 22550 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22551 X"$am_mf" : 'X\(//\)$' \| \ 22552 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22553 printf "%s\n" X/"$am_mf" | 22554 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22555 s//\1/ 22556 q 22557 } 22558 /^X\/\(\/\/\)$/{ 22559 s//\1/ 22560 q 22561 } 22562 /^X\/\(\/\).*/{ 22563 s//\1/ 22564 q 22565 } 22566 s/.*/./; q'` 22567 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22568 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22569 | $MAKE -f - am--depfiles" >&5 22570 (cd "$am_dirpart" \ 22571 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22572 | $MAKE -f - am--depfiles) >&5 2>&5 22573 ac_status=$? 22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22575 (exit $ac_status); } || am_rc=$? 22576 done 22577 if test $am_rc -ne 0; then 22578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 22579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 22580 as_fn_error $? "Something went wrong bootstrapping makefile fragments 22581 for automatic dependency tracking. If GNU make was not used, consider 22582 re-running the configure script with MAKE=\"gmake\" (or whatever is 22583 necessary). You can also try re-running configure with the 22584 '--disable-dependency-tracking' option to at least be able to build 22585 the package (albeit without support for automatic dependency tracking). 22586 See 'config.log' for more details" "$LINENO" 5; } 22587 fi 22588 { am_dirpart=; unset am_dirpart;} 22589 { am_filepart=; unset am_filepart;} 22590 { am_mf=; unset am_mf;} 22591 { am_rc=; unset am_rc;} 22592 rm -f conftest-deps.mk 22593 } 22594 ;; 22595 "libtool":C) 22596 22597 # See if we are running on zsh, and set the options that allow our 22598 # commands through without removal of \ escapes. 22599 if test -n "${ZSH_VERSION+set}"; then 22600 setopt NO_GLOB_SUBST 22601 fi 22602 22603 cfgfile=${ofile}T 22604 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22605 $RM "$cfgfile" 22606 22607 cat <<_LT_EOF >> "$cfgfile" 22608 #! $SHELL 22609 # Generated automatically by $as_me ($PACKAGE) $VERSION 22610 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22611 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 22612 22613 # Provide generalized library-building support services. 22614 # Written by Gordon Matzigkeit, 1996 22615 22616 # Copyright (C) 2014 Free Software Foundation, Inc. 22617 # This is free software; see the source for copying conditions. There is NO 22618 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 22619 22620 # GNU Libtool is free software; you can redistribute it and/or modify 22621 # it under the terms of the GNU General Public License as published by 22622 # the Free Software Foundation; either version 2 of of the License, or 22623 # (at your option) any later version. 22624 # 22625 # As a special exception to the GNU General Public License, if you 22626 # distribute this file as part of a program or library that is built 22627 # using GNU Libtool, you may include this file under the same 22628 # distribution terms that you use for the rest of that program. 22629 # 22630 # GNU Libtool is distributed in the hope that it will be useful, but 22631 # WITHOUT ANY WARRANTY; without even the implied warranty of 22632 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22633 # GNU General Public License for more details. 22634 # 22635 # You should have received a copy of the GNU General Public License 22636 # along with this program. If not, see <http://www.gnu.org/licenses/>. 22637 22638 22639 # The names of the tagged configurations supported by this script. 22640 available_tags='' 22641 22642 # Configured defaults for sys_lib_dlsearch_path munging. 22643 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 22644 22645 # ### BEGIN LIBTOOL CONFIG 22646 22647 # Which release of libtool.m4 was used? 22648 macro_version=$macro_version 22649 macro_revision=$macro_revision 22650 22651 # Whether or not to build shared libraries. 22652 build_libtool_libs=$enable_shared 22653 22654 # Whether or not to build static libraries. 22655 build_old_libs=$enable_static 22656 22657 # What type of objects to build. 22658 pic_mode=$pic_mode 22659 22660 # Whether or not to optimize for fast installation. 22661 fast_install=$enable_fast_install 22662 22663 # Shared archive member basename,for filename based shared library versioning on AIX. 22664 shared_archive_member_spec=$shared_archive_member_spec 22665 22666 # Shell to use when invoking shell scripts. 22667 SHELL=$lt_SHELL 22668 22669 # An echo program that protects backslashes. 22670 ECHO=$lt_ECHO 22671 22672 # The PATH separator for the build system. 22673 PATH_SEPARATOR=$lt_PATH_SEPARATOR 22674 22675 # The host system. 22676 host_alias=$host_alias 22677 host=$host 22678 host_os=$host_os 22679 22680 # The build system. 22681 build_alias=$build_alias 22682 build=$build 22683 build_os=$build_os 22684 22685 # A sed program that does not truncate output. 22686 SED=$lt_SED 22687 22688 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 22689 Xsed="\$SED -e 1s/^X//" 22690 22691 # A grep program that handles long lines. 22692 GREP=$lt_GREP 22693 22694 # An ERE matcher. 22695 EGREP=$lt_EGREP 22696 22697 # A literal string matcher. 22698 FGREP=$lt_FGREP 22699 22700 # A BSD- or MS-compatible name lister. 22701 NM=$lt_NM 22702 22703 # Whether we need soft or hard links. 22704 LN_S=$lt_LN_S 22705 22706 # What is the maximum length of a command? 22707 max_cmd_len=$max_cmd_len 22708 22709 # Object file suffix (normally "o"). 22710 objext=$ac_objext 22711 22712 # Executable file suffix (normally ""). 22713 exeext=$exeext 22714 22715 # whether the shell understands "unset". 22716 lt_unset=$lt_unset 22717 22718 # turn spaces into newlines. 22719 SP2NL=$lt_lt_SP2NL 22720 22721 # turn newlines into spaces. 22722 NL2SP=$lt_lt_NL2SP 22723 22724 # convert \$build file names to \$host format. 22725 to_host_file_cmd=$lt_cv_to_host_file_cmd 22726 22727 # convert \$build files to toolchain format. 22728 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 22729 22730 # A file(cmd) program that detects file types. 22731 FILECMD=$lt_FILECMD 22732 22733 # An object symbol dumper. 22734 OBJDUMP=$lt_OBJDUMP 22735 22736 # Method to check whether dependent libraries are shared objects. 22737 deplibs_check_method=$lt_deplibs_check_method 22738 22739 # Command to use when deplibs_check_method = "file_magic". 22740 file_magic_cmd=$lt_file_magic_cmd 22741 22742 # How to find potential files when deplibs_check_method = "file_magic". 22743 file_magic_glob=$lt_file_magic_glob 22744 22745 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22746 want_nocaseglob=$lt_want_nocaseglob 22747 22748 # DLL creation program. 22749 DLLTOOL=$lt_DLLTOOL 22750 22751 # Command to associate shared and link libraries. 22752 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22753 22754 # The archiver. 22755 AR=$lt_AR 22756 22757 # Flags to create an archive (by configure). 22758 lt_ar_flags=$lt_ar_flags 22759 22760 # Flags to create an archive. 22761 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 22762 22763 # How to feed a file listing to the archiver. 22764 archiver_list_spec=$lt_archiver_list_spec 22765 22766 # A symbol stripping program. 22767 STRIP=$lt_STRIP 22768 22769 # Commands used to install an old-style archive. 22770 RANLIB=$lt_RANLIB 22771 old_postinstall_cmds=$lt_old_postinstall_cmds 22772 old_postuninstall_cmds=$lt_old_postuninstall_cmds 22773 22774 # Whether to use a lock for old archive extraction. 22775 lock_old_archive_extraction=$lock_old_archive_extraction 22776 22777 # A C compiler. 22778 LTCC=$lt_CC 22779 22780 # LTCC compiler flags. 22781 LTCFLAGS=$lt_CFLAGS 22782 22783 # Take the output of nm and produce a listing of raw symbols and C names. 22784 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22785 22786 # Transform the output of nm in a proper C declaration. 22787 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22788 22789 # Transform the output of nm into a list of symbols to manually relocate. 22790 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 22791 22792 # Transform the output of nm in a C name address pair. 22793 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22794 22795 # Transform the output of nm in a C name address pair when lib prefix is needed. 22796 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22797 22798 # The name lister interface. 22799 nm_interface=$lt_lt_cv_nm_interface 22800 22801 # Specify filename containing input files for \$NM. 22802 nm_file_list_spec=$lt_nm_file_list_spec 22803 22804 # The root where to search for dependent libraries,and where our libraries should be installed. 22805 lt_sysroot=$lt_sysroot 22806 22807 # Command to truncate a binary pipe. 22808 lt_truncate_bin=$lt_lt_cv_truncate_bin 22809 22810 # The name of the directory that contains temporary libtool files. 22811 objdir=$objdir 22812 22813 # Used to examine libraries when file_magic_cmd begins with "file". 22814 MAGIC_CMD=$MAGIC_CMD 22815 22816 # Must we lock files when doing compilation? 22817 need_locks=$lt_need_locks 22818 22819 # Manifest tool. 22820 MANIFEST_TOOL=$lt_MANIFEST_TOOL 22821 22822 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22823 DSYMUTIL=$lt_DSYMUTIL 22824 22825 # Tool to change global to local symbols on Mac OS X. 22826 NMEDIT=$lt_NMEDIT 22827 22828 # Tool to manipulate fat objects and archives on Mac OS X. 22829 LIPO=$lt_LIPO 22830 22831 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 22832 OTOOL=$lt_OTOOL 22833 22834 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22835 OTOOL64=$lt_OTOOL64 22836 22837 # Old archive suffix (normally "a"). 22838 libext=$libext 22839 22840 # Shared library suffix (normally ".so"). 22841 shrext_cmds=$lt_shrext_cmds 22842 22843 # The commands to extract the exported symbol list from a shared archive. 22844 extract_expsyms_cmds=$lt_extract_expsyms_cmds 22845 22846 # Variables whose values should be saved in libtool wrapper scripts and 22847 # restored at link time. 22848 variables_saved_for_relink=$lt_variables_saved_for_relink 22849 22850 # Do we need the "lib" prefix for modules? 22851 need_lib_prefix=$need_lib_prefix 22852 22853 # Do we need a version for libraries? 22854 need_version=$need_version 22855 22856 # Library versioning type. 22857 version_type=$version_type 22858 22859 # Shared library runtime path variable. 22860 runpath_var=$runpath_var 22861 22862 # Shared library path variable. 22863 shlibpath_var=$shlibpath_var 22864 22865 # Is shlibpath searched before the hard-coded library search path? 22866 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22867 22868 # Format of library name prefix. 22869 libname_spec=$lt_libname_spec 22870 22871 # List of archive names. First name is the real one, the rest are links. 22872 # The last name is the one that the linker finds with -lNAME 22873 library_names_spec=$lt_library_names_spec 22874 22875 # The coded name of the library, if different from the real name. 22876 soname_spec=$lt_soname_spec 22877 22878 # Permission mode override for installation of shared libraries. 22879 install_override_mode=$lt_install_override_mode 22880 22881 # Command to use after installation of a shared archive. 22882 postinstall_cmds=$lt_postinstall_cmds 22883 22884 # Command to use after uninstallation of a shared archive. 22885 postuninstall_cmds=$lt_postuninstall_cmds 22886 22887 # Commands used to finish a libtool library installation in a directory. 22888 finish_cmds=$lt_finish_cmds 22889 22890 # As "finish_cmds", except a single script fragment to be evaled but 22891 # not shown. 22892 finish_eval=$lt_finish_eval 22893 22894 # Whether we should hardcode library paths into libraries. 22895 hardcode_into_libs=$hardcode_into_libs 22896 22897 # Compile-time system search path for libraries. 22898 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22899 22900 # Detected run-time system search path for libraries. 22901 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22902 22903 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22904 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22905 22906 # Whether dlopen is supported. 22907 dlopen_support=$enable_dlopen 22908 22909 # Whether dlopen of programs is supported. 22910 dlopen_self=$enable_dlopen_self 22911 22912 # Whether dlopen of statically linked programs is supported. 22913 dlopen_self_static=$enable_dlopen_self_static 22914 22915 # Commands to strip libraries. 22916 old_striplib=$lt_old_striplib 22917 striplib=$lt_striplib 22918 22919 22920 # The linker used to build libraries. 22921 LD=$lt_LD 22922 22923 # How to create reloadable object files. 22924 reload_flag=$lt_reload_flag 22925 reload_cmds=$lt_reload_cmds 22926 22927 # Commands used to build an old-style archive. 22928 old_archive_cmds=$lt_old_archive_cmds 22929 22930 # A language specific compiler. 22931 CC=$lt_compiler 22932 22933 # Is the compiler the GNU compiler? 22934 with_gcc=$GCC 22935 22936 # Compiler flag to turn off builtin functions. 22937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22938 22939 # Additional compiler flags for building library objects. 22940 pic_flag=$lt_lt_prog_compiler_pic 22941 22942 # How to pass a linker flag through the compiler. 22943 wl=$lt_lt_prog_compiler_wl 22944 22945 # Compiler flag to prevent dynamic linking. 22946 link_static_flag=$lt_lt_prog_compiler_static 22947 22948 # Does compiler simultaneously support -c and -o options? 22949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22950 22951 # Whether or not to add -lc for building shared libraries. 22952 build_libtool_need_lc=$archive_cmds_need_lc 22953 22954 # Whether or not to disallow shared libs when runtime libs are static. 22955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22956 22957 # Compiler flag to allow reflexive dlopens. 22958 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22959 22960 # Compiler flag to generate shared objects directly from archives. 22961 whole_archive_flag_spec=$lt_whole_archive_flag_spec 22962 22963 # Whether the compiler copes with passing no objects directly. 22964 compiler_needs_object=$lt_compiler_needs_object 22965 22966 # Create an old-style archive from a shared archive. 22967 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22968 22969 # Create a temporary old-style archive to link instead of a shared archive. 22970 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22971 22972 # Commands used to build a shared archive. 22973 archive_cmds=$lt_archive_cmds 22974 archive_expsym_cmds=$lt_archive_expsym_cmds 22975 22976 # Commands used to build a loadable module if different from building 22977 # a shared archive. 22978 module_cmds=$lt_module_cmds 22979 module_expsym_cmds=$lt_module_expsym_cmds 22980 22981 # Whether we are building with GNU ld or not. 22982 with_gnu_ld=$lt_with_gnu_ld 22983 22984 # Flag that allows shared libraries with undefined symbols to be built. 22985 allow_undefined_flag=$lt_allow_undefined_flag 22986 22987 # Flag that enforces no undefined symbols. 22988 no_undefined_flag=$lt_no_undefined_flag 22989 22990 # Flag to hardcode \$libdir into a binary during linking. 22991 # This must work even if \$libdir does not exist 22992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22993 22994 # Whether we need a single "-rpath" flag with a separated argument. 22995 hardcode_libdir_separator=$lt_hardcode_libdir_separator 22996 22997 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22998 # DIR into the resulting binary. 22999 hardcode_direct=$hardcode_direct 23000 23001 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23002 # DIR into the resulting binary and the resulting library dependency is 23003 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 23004 # library is relocated. 23005 hardcode_direct_absolute=$hardcode_direct_absolute 23006 23007 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23008 # into the resulting binary. 23009 hardcode_minus_L=$hardcode_minus_L 23010 23011 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23012 # into the resulting binary. 23013 hardcode_shlibpath_var=$hardcode_shlibpath_var 23014 23015 # Set to "yes" if building a shared library automatically hardcodes DIR 23016 # into the library and all subsequent libraries and executables linked 23017 # against it. 23018 hardcode_automatic=$hardcode_automatic 23019 23020 # Set to yes if linker adds runtime paths of dependent libraries 23021 # to runtime path list. 23022 inherit_rpath=$inherit_rpath 23023 23024 # Whether libtool must link a program against all its dependency libraries. 23025 link_all_deplibs=$link_all_deplibs 23026 23027 # Set to "yes" if exported symbols are required. 23028 always_export_symbols=$always_export_symbols 23029 23030 # The commands to list exported symbols. 23031 export_symbols_cmds=$lt_export_symbols_cmds 23032 23033 # Symbols that should not be listed in the preloaded symbols. 23034 exclude_expsyms=$lt_exclude_expsyms 23035 23036 # Symbols that must always be exported. 23037 include_expsyms=$lt_include_expsyms 23038 23039 # Commands necessary for linking programs (against libraries) with templates. 23040 prelink_cmds=$lt_prelink_cmds 23041 23042 # Commands necessary for finishing linking programs. 23043 postlink_cmds=$lt_postlink_cmds 23044 23045 # Specify filename containing input files. 23046 file_list_spec=$lt_file_list_spec 23047 23048 # How to hardcode a shared library path into an executable. 23049 hardcode_action=$hardcode_action 23050 23051 # ### END LIBTOOL CONFIG 23052 23053 _LT_EOF 23054 23055 cat <<'_LT_EOF' >> "$cfgfile" 23056 23057 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23058 23059 # func_munge_path_list VARIABLE PATH 23060 # ----------------------------------- 23061 # VARIABLE is name of variable containing _space_ separated list of 23062 # directories to be munged by the contents of PATH, which is string 23063 # having a format: 23064 # "DIR[:DIR]:" 23065 # string "DIR[ DIR]" will be prepended to VARIABLE 23066 # ":DIR[:DIR]" 23067 # string "DIR[ DIR]" will be appended to VARIABLE 23068 # "DIRP[:DIRP]::[DIRA:]DIRA" 23069 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23070 # "DIRA[ DIRA]" will be appended to VARIABLE 23071 # "DIR[:DIR]" 23072 # VARIABLE will be replaced by "DIR[ DIR]" 23073 func_munge_path_list () 23074 { 23075 case x$2 in 23076 x) 23077 ;; 23078 *:) 23079 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23080 ;; 23081 x:*) 23082 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23083 ;; 23084 *::*) 23085 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23086 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23087 ;; 23088 *) 23089 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23090 ;; 23091 esac 23092 } 23093 23094 23095 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23096 func_cc_basename () 23097 { 23098 for cc_temp in $*""; do 23099 case $cc_temp in 23100 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23101 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23102 \-*) ;; 23103 *) break;; 23104 esac 23105 done 23106 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23107 } 23108 23109 23110 # ### END FUNCTIONS SHARED WITH CONFIGURE 23111 23112 _LT_EOF 23113 23114 case $host_os in 23115 aix3*) 23116 cat <<\_LT_EOF >> "$cfgfile" 23117 # AIX sometimes has problems with the GCC collect2 program. For some 23118 # reason, if we set the COLLECT_NAMES environment variable, the problems 23119 # vanish in a puff of smoke. 23120 if test set != "${COLLECT_NAMES+set}"; then 23121 COLLECT_NAMES= 23122 export COLLECT_NAMES 23123 fi 23124 _LT_EOF 23125 ;; 23126 esac 23127 23128 23129 23130 ltmain=$ac_aux_dir/ltmain.sh 23131 23132 23133 # We use sed instead of cat because bash on DJGPP gets confused if 23134 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23135 # text mode, it properly converts lines to CR/LF. This bash problem 23136 # is reportedly fixed, but why not run on old versions too? 23137 $SED '$q' "$ltmain" >> "$cfgfile" \ 23138 || (rm -f "$cfgfile"; exit 1) 23139 23140 mv -f "$cfgfile" "$ofile" || 23141 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23142 chmod +x "$ofile" 23143 23144 ;; 23145 23146 esac 23147 done # for ac_tag 23148 23149 23150 as_fn_exit 0 23151 _ACEOF 23152 ac_clean_files=$ac_clean_files_save 23153 23154 test $ac_write_fail = 0 || 23155 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23156 23157 23158 # configure is writing to config.log, and then calls config.status. 23159 # config.status does its own redirection, appending to config.log. 23160 # Unfortunately, on DOS this fails, as config.log is still kept open 23161 # by configure, so config.status won't be able to write to it; its 23162 # output is simply discarded. So we exec the FD to /dev/null, 23163 # effectively closing config.log, so it can be properly (re)opened and 23164 # appended to by config.status. When coming back to configure, we 23165 # need to make the FD available again. 23166 if test "$no_create" != yes; then 23167 ac_cs_success=: 23168 ac_config_status_args= 23169 test "$silent" = yes && 23170 ac_config_status_args="$ac_config_status_args --quiet" 23171 exec 5>/dev/null 23172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23173 exec 5>>config.log 23174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23175 # would make configure fail if this is the last instruction. 23176 $ac_cs_success || as_fn_exit 1 23177 fi 23178 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23180 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23181 fi 23182 23183 23184