1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libXmu 1.3.1. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/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/libxmu/-/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 as_awk_strverscmp=' 595 # Use only awk features that work with 7th edition Unix awk (1978). 596 # My, what an old awk you have, Mr. Solaris! 597 END { 598 while (length(v1) && length(v2)) { 599 # Set d1 to be the next thing to compare from v1, and likewise for d2. 600 # Normally this is a single character, but if v1 and v2 contain digits, 601 # compare them as integers and fractions as strverscmp does. 602 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 603 # Split v1 and v2 into their leading digit string components d1 and d2, 604 # and advance v1 and v2 past the leading digit strings. 605 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 606 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 607 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 608 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 609 if (d1 ~ /^0/) { 610 if (d2 ~ /^0/) { 611 # Compare two fractions. 612 while (d1 ~ /^0/ && d2 ~ /^0/) { 613 d1 = substr(d1, 2); len1-- 614 d2 = substr(d2, 2); len2-- 615 } 616 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 617 # The two components differ in length, and the common prefix 618 # contains only leading zeros. Consider the longer to be less. 619 d1 = -len1 620 d2 = -len2 621 } else { 622 # Otherwise, compare as strings. 623 d1 = "x" d1 624 d2 = "x" d2 625 } 626 } else { 627 # A fraction is less than an integer. 628 exit 1 629 } 630 } else { 631 if (d2 ~ /^0/) { 632 # An integer is greater than a fraction. 633 exit 2 634 } else { 635 # Compare two integers. 636 d1 += 0 637 d2 += 0 638 } 639 } 640 } else { 641 # The normal case, without worrying about digits. 642 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 643 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 644 } 645 if (d1 < d2) exit 1 646 if (d1 > d2) exit 2 647 } 648 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 649 # which mishandles some comparisons of empty strings to integers. 650 if (length(v2)) exit 1 651 if (length(v1)) exit 2 652 } 653 ' 654 655 test -n "$DJDIR" || exec 7<&0 </dev/null 656 exec 6>&1 657 658 # Name of the host. 659 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 660 # so uname gets run too. 661 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 662 663 # 664 # Initializations. 665 # 666 ac_default_prefix=/usr/local 667 ac_clean_files= 668 ac_config_libobj_dir=. 669 LIBOBJS= 670 cross_compiling=no 671 subdirs= 672 MFLAGS= 673 MAKEFLAGS= 674 675 # Identity of this package. 676 PACKAGE_NAME='libXmu' 677 PACKAGE_TARNAME='libXmu' 678 PACKAGE_VERSION='1.3.1' 679 PACKAGE_STRING='libXmu 1.3.1' 680 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues/' 681 PACKAGE_URL='' 682 683 ac_unique_file="Makefile.am" 684 # Factoring default headers for most tests. 685 ac_includes_default="\ 686 #include <stddef.h> 687 #ifdef HAVE_STDIO_H 688 # include <stdio.h> 689 #endif 690 #ifdef HAVE_STDLIB_H 691 # include <stdlib.h> 692 #endif 693 #ifdef HAVE_STRING_H 694 # include <string.h> 695 #endif 696 #ifdef HAVE_INTTYPES_H 697 # include <inttypes.h> 698 #endif 699 #ifdef HAVE_STDINT_H 700 # include <stdint.h> 701 #endif 702 #ifdef HAVE_STRINGS_H 703 # include <strings.h> 704 #endif 705 #ifdef HAVE_SYS_TYPES_H 706 # include <sys/types.h> 707 #endif 708 #ifdef HAVE_SYS_STAT_H 709 # include <sys/stat.h> 710 #endif 711 #ifdef HAVE_UNISTD_H 712 # include <unistd.h> 713 #endif" 714 715 ac_header_c_list= 716 ac_subst_vars='am__EXEEXT_FALSE 717 am__EXEEXT_TRUE 718 LTLIBOBJS 719 HAVE_GLIB_FALSE 720 HAVE_GLIB_TRUE 721 GLIB_LIBS 722 GLIB_CFLAGS 723 ENABLE_UNIT_TESTS_FALSE 724 ENABLE_UNIT_TESTS_TRUE 725 XORG_MALLOC_DEBUG_ENV 726 LINTLIBUU 727 MAKE_LINT_LIB_FALSE 728 MAKE_LINT_LIB_TRUE 729 LINTLIB 730 LINT_FALSE 731 LINT_TRUE 732 LINT_FLAGS 733 LINT 734 LIBOBJS 735 XMUU_LIBS 736 XMUU_CFLAGS 737 XMU_LIBS 738 XMU_CFLAGS 739 HAVE_STYLESHEETS_FALSE 740 HAVE_STYLESHEETS_TRUE 741 XSL_STYLESHEET 742 STYLESHEET_SRCDIR 743 XORG_SGML_PATH 744 HAVE_XSLTPROC_FALSE 745 HAVE_XSLTPROC_TRUE 746 XSLTPROC 747 HAVE_FOP_FALSE 748 HAVE_FOP_TRUE 749 FOP 750 HAVE_XMLTO_FALSE 751 HAVE_XMLTO_TRUE 752 HAVE_XMLTO_TEXT_FALSE 753 HAVE_XMLTO_TEXT_TRUE 754 XMLTO 755 ENABLE_DOCS_FALSE 756 ENABLE_DOCS_TRUE 757 MAN_SUBSTS 758 XORG_MAN_PAGE 759 ADMIN_MAN_DIR 760 DRIVER_MAN_DIR 761 MISC_MAN_DIR 762 FILE_MAN_DIR 763 LIB_MAN_DIR 764 APP_MAN_DIR 765 ADMIN_MAN_SUFFIX 766 DRIVER_MAN_SUFFIX 767 MISC_MAN_SUFFIX 768 FILE_MAN_SUFFIX 769 LIB_MAN_SUFFIX 770 APP_MAN_SUFFIX 771 INSTALL_CMD 772 PKG_CONFIG_LIBDIR 773 PKG_CONFIG_PATH 774 PKG_CONFIG 775 CHANGELOG_CMD 776 STRICT_CFLAGS 777 CWARNFLAGS 778 BASE_CFLAGS 779 LT_SYS_LIBRARY_PATH 780 OTOOL64 781 OTOOL 782 LIPO 783 NMEDIT 784 DSYMUTIL 785 MANIFEST_TOOL 786 RANLIB 787 ac_ct_AR 788 AR 789 DLLTOOL 790 OBJDUMP 791 FILECMD 792 LN_S 793 NM 794 ac_ct_DUMPBIN 795 DUMPBIN 796 LD 797 FGREP 798 EGREP 799 GREP 800 SED 801 host_os 802 host_vendor 803 host_cpu 804 host 805 build_os 806 build_vendor 807 build_cpu 808 build 809 LIBTOOL 810 am__xargs_n 811 am__rm_f_notfound 812 AM_BACKSLASH 813 AM_DEFAULT_VERBOSITY 814 AM_DEFAULT_V 815 AM_V 816 CSCOPE 817 ETAGS 818 CTAGS 819 am__fastdepCC_FALSE 820 am__fastdepCC_TRUE 821 CCDEPMODE 822 am__nodep 823 AMDEPBACKSLASH 824 AMDEP_FALSE 825 AMDEP_TRUE 826 am__include 827 DEPDIR 828 am__untar 829 am__tar 830 AMTAR 831 am__leading_dot 832 SET_MAKE 833 AWK 834 mkdir_p 835 MKDIR_P 836 INSTALL_STRIP_PROGRAM 837 STRIP 838 install_sh 839 MAKEINFO 840 AUTOHEADER 841 AUTOMAKE 842 AUTOCONF 843 ACLOCAL 844 VERSION 845 PACKAGE 846 CYGPATH_W 847 am__isrc 848 INSTALL_DATA 849 INSTALL_SCRIPT 850 INSTALL_PROGRAM 851 OBJEXT 852 EXEEXT 853 ac_ct_CC 854 CPPFLAGS 855 LDFLAGS 856 CFLAGS 857 CC 858 target_alias 859 host_alias 860 build_alias 861 LIBS 862 ECHO_T 863 ECHO_N 864 ECHO_C 865 DEFS 866 mandir 867 localedir 868 libdir 869 psdir 870 pdfdir 871 dvidir 872 htmldir 873 infodir 874 docdir 875 oldincludedir 876 includedir 877 runstatedir 878 localstatedir 879 sharedstatedir 880 sysconfdir 881 datadir 882 datarootdir 883 libexecdir 884 sbindir 885 bindir 886 program_transform_name 887 prefix 888 exec_prefix 889 PACKAGE_URL 890 PACKAGE_BUGREPORT 891 PACKAGE_STRING 892 PACKAGE_VERSION 893 PACKAGE_TARNAME 894 PACKAGE_NAME 895 PATH_SEPARATOR 896 SHELL 897 am__quote' 898 ac_subst_files='' 899 ac_user_opts=' 900 enable_option_checking 901 enable_dependency_tracking 902 enable_silent_rules 903 enable_shared 904 enable_static 905 enable_pic 906 with_pic 907 enable_fast_install 908 enable_aix_soname 909 with_aix_soname 910 with_gnu_ld 911 with_sysroot 912 enable_libtool_lock 913 enable_selective_werror 914 enable_strict_compilation 915 enable_docs 916 with_xmlto 917 with_fop 918 with_xsltproc 919 with_lint 920 enable_lint_library 921 enable_unit_tests 922 with_glib 923 ' 924 ac_precious_vars='build_alias 925 host_alias 926 target_alias 927 CC 928 CFLAGS 929 LDFLAGS 930 LIBS 931 CPPFLAGS 932 LT_SYS_LIBRARY_PATH 933 PKG_CONFIG 934 PKG_CONFIG_PATH 935 PKG_CONFIG_LIBDIR 936 XMLTO 937 FOP 938 XSLTPROC 939 XMU_CFLAGS 940 XMU_LIBS 941 XMUU_CFLAGS 942 XMUU_LIBS 943 LINT 944 LINT_FLAGS 945 XORG_MALLOC_DEBUG_ENV 946 GLIB_CFLAGS 947 GLIB_LIBS' 948 949 950 # Initialize some variables set by options. 951 ac_init_help= 952 ac_init_version=false 953 ac_unrecognized_opts= 954 ac_unrecognized_sep= 955 # The variables have the same names as the options, with 956 # dashes changed to underlines. 957 cache_file=/dev/null 958 exec_prefix=NONE 959 no_create= 960 no_recursion= 961 prefix=NONE 962 program_prefix=NONE 963 program_suffix=NONE 964 program_transform_name=s,x,x, 965 silent= 966 site= 967 srcdir= 968 verbose= 969 x_includes=NONE 970 x_libraries=NONE 971 972 # Installation directory options. 973 # These are left unexpanded so users can "make install exec_prefix=/foo" 974 # and all the variables that are supposed to be based on exec_prefix 975 # by default will actually change. 976 # Use braces instead of parens because sh, perl, etc. also accept them. 977 # (The list follows the same order as the GNU Coding Standards.) 978 bindir='${exec_prefix}/bin' 979 sbindir='${exec_prefix}/sbin' 980 libexecdir='${exec_prefix}/libexec' 981 datarootdir='${prefix}/share' 982 datadir='${datarootdir}' 983 sysconfdir='${prefix}/etc' 984 sharedstatedir='${prefix}/com' 985 localstatedir='${prefix}/var' 986 runstatedir='${localstatedir}/run' 987 includedir='${prefix}/include' 988 oldincludedir='/usr/include' 989 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 990 infodir='${datarootdir}/info' 991 htmldir='${docdir}' 992 dvidir='${docdir}' 993 pdfdir='${docdir}' 994 psdir='${docdir}' 995 libdir='${exec_prefix}/lib' 996 localedir='${datarootdir}/locale' 997 mandir='${datarootdir}/man' 998 999 ac_prev= 1000 ac_dashdash= 1001 for ac_option 1002 do 1003 # If the previous option needs an argument, assign it. 1004 if test -n "$ac_prev"; then 1005 eval $ac_prev=\$ac_option 1006 ac_prev= 1007 continue 1008 fi 1009 1010 case $ac_option in 1011 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1012 *=) ac_optarg= ;; 1013 *) ac_optarg=yes ;; 1014 esac 1015 1016 case $ac_dashdash$ac_option in 1017 --) 1018 ac_dashdash=yes ;; 1019 1020 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1021 ac_prev=bindir ;; 1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1023 bindir=$ac_optarg ;; 1024 1025 -build | --build | --buil | --bui | --bu) 1026 ac_prev=build_alias ;; 1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1028 build_alias=$ac_optarg ;; 1029 1030 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1032 ac_prev=cache_file ;; 1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1035 cache_file=$ac_optarg ;; 1036 1037 --config-cache | -C) 1038 cache_file=config.cache ;; 1039 1040 -datadir | --datadir | --datadi | --datad) 1041 ac_prev=datadir ;; 1042 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1043 datadir=$ac_optarg ;; 1044 1045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1046 | --dataroo | --dataro | --datar) 1047 ac_prev=datarootdir ;; 1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1050 datarootdir=$ac_optarg ;; 1051 1052 -disable-* | --disable-*) 1053 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1054 # Reject names that are not valid shell variable names. 1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1056 as_fn_error $? "invalid feature name: '$ac_useropt'" 1057 ac_useropt_orig=$ac_useropt 1058 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1059 case $ac_user_opts in 1060 *" 1061 "enable_$ac_useropt" 1062 "*) ;; 1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1064 ac_unrecognized_sep=', ';; 1065 esac 1066 eval enable_$ac_useropt=no ;; 1067 1068 -docdir | --docdir | --docdi | --doc | --do) 1069 ac_prev=docdir ;; 1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1071 docdir=$ac_optarg ;; 1072 1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1074 ac_prev=dvidir ;; 1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1076 dvidir=$ac_optarg ;; 1077 1078 -enable-* | --enable-*) 1079 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1080 # Reject names that are not valid shell variable names. 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1082 as_fn_error $? "invalid feature name: '$ac_useropt'" 1083 ac_useropt_orig=$ac_useropt 1084 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1085 case $ac_user_opts in 1086 *" 1087 "enable_$ac_useropt" 1088 "*) ;; 1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1090 ac_unrecognized_sep=', ';; 1091 esac 1092 eval enable_$ac_useropt=\$ac_optarg ;; 1093 1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1096 | --exec | --exe | --ex) 1097 ac_prev=exec_prefix ;; 1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1100 | --exec=* | --exe=* | --ex=*) 1101 exec_prefix=$ac_optarg ;; 1102 1103 -gas | --gas | --ga | --g) 1104 # Obsolete; use --with-gas. 1105 with_gas=yes ;; 1106 1107 -help | --help | --hel | --he | -h) 1108 ac_init_help=long ;; 1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1110 ac_init_help=recursive ;; 1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1112 ac_init_help=short ;; 1113 1114 -host | --host | --hos | --ho) 1115 ac_prev=host_alias ;; 1116 -host=* | --host=* | --hos=* | --ho=*) 1117 host_alias=$ac_optarg ;; 1118 1119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1120 ac_prev=htmldir ;; 1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1122 | --ht=*) 1123 htmldir=$ac_optarg ;; 1124 1125 -includedir | --includedir | --includedi | --included | --include \ 1126 | --includ | --inclu | --incl | --inc) 1127 ac_prev=includedir ;; 1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1129 | --includ=* | --inclu=* | --incl=* | --inc=*) 1130 includedir=$ac_optarg ;; 1131 1132 -infodir | --infodir | --infodi | --infod | --info | --inf) 1133 ac_prev=infodir ;; 1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1135 infodir=$ac_optarg ;; 1136 1137 -libdir | --libdir | --libdi | --libd) 1138 ac_prev=libdir ;; 1139 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1140 libdir=$ac_optarg ;; 1141 1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1143 | --libexe | --libex | --libe) 1144 ac_prev=libexecdir ;; 1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1146 | --libexe=* | --libex=* | --libe=*) 1147 libexecdir=$ac_optarg ;; 1148 1149 -localedir | --localedir | --localedi | --localed | --locale) 1150 ac_prev=localedir ;; 1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1152 localedir=$ac_optarg ;; 1153 1154 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1155 | --localstate | --localstat | --localsta | --localst | --locals) 1156 ac_prev=localstatedir ;; 1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1159 localstatedir=$ac_optarg ;; 1160 1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1162 ac_prev=mandir ;; 1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1164 mandir=$ac_optarg ;; 1165 1166 -nfp | --nfp | --nf) 1167 # Obsolete; use --without-fp. 1168 with_fp=no ;; 1169 1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1171 | --no-cr | --no-c | -n) 1172 no_create=yes ;; 1173 1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1176 no_recursion=yes ;; 1177 1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1180 | --oldin | --oldi | --old | --ol | --o) 1181 ac_prev=oldincludedir ;; 1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1185 oldincludedir=$ac_optarg ;; 1186 1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1188 ac_prev=prefix ;; 1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1190 prefix=$ac_optarg ;; 1191 1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1193 | --program-pre | --program-pr | --program-p) 1194 ac_prev=program_prefix ;; 1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1197 program_prefix=$ac_optarg ;; 1198 1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1200 | --program-suf | --program-su | --program-s) 1201 ac_prev=program_suffix ;; 1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1204 program_suffix=$ac_optarg ;; 1205 1206 -program-transform-name | --program-transform-name \ 1207 | --program-transform-nam | --program-transform-na \ 1208 | --program-transform-n | --program-transform- \ 1209 | --program-transform | --program-transfor \ 1210 | --program-transfo | --program-transf \ 1211 | --program-trans | --program-tran \ 1212 | --progr-tra | --program-tr | --program-t) 1213 ac_prev=program_transform_name ;; 1214 -program-transform-name=* | --program-transform-name=* \ 1215 | --program-transform-nam=* | --program-transform-na=* \ 1216 | --program-transform-n=* | --program-transform-=* \ 1217 | --program-transform=* | --program-transfor=* \ 1218 | --program-transfo=* | --program-transf=* \ 1219 | --program-trans=* | --program-tran=* \ 1220 | --progr-tra=* | --program-tr=* | --program-t=*) 1221 program_transform_name=$ac_optarg ;; 1222 1223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1224 ac_prev=pdfdir ;; 1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1226 pdfdir=$ac_optarg ;; 1227 1228 -psdir | --psdir | --psdi | --psd | --ps) 1229 ac_prev=psdir ;; 1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1231 psdir=$ac_optarg ;; 1232 1233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1234 | -silent | --silent | --silen | --sile | --sil) 1235 silent=yes ;; 1236 1237 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1238 | --runstate | --runstat | --runsta | --runst | --runs \ 1239 | --run | --ru | --r) 1240 ac_prev=runstatedir ;; 1241 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1242 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1243 | --run=* | --ru=* | --r=*) 1244 runstatedir=$ac_optarg ;; 1245 1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1247 ac_prev=sbindir ;; 1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1249 | --sbi=* | --sb=*) 1250 sbindir=$ac_optarg ;; 1251 1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1254 | --sharedst | --shareds | --shared | --share | --shar \ 1255 | --sha | --sh) 1256 ac_prev=sharedstatedir ;; 1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1260 | --sha=* | --sh=*) 1261 sharedstatedir=$ac_optarg ;; 1262 1263 -site | --site | --sit) 1264 ac_prev=site ;; 1265 -site=* | --site=* | --sit=*) 1266 site=$ac_optarg ;; 1267 1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1269 ac_prev=srcdir ;; 1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1271 srcdir=$ac_optarg ;; 1272 1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1274 | --syscon | --sysco | --sysc | --sys | --sy) 1275 ac_prev=sysconfdir ;; 1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1278 sysconfdir=$ac_optarg ;; 1279 1280 -target | --target | --targe | --targ | --tar | --ta | --t) 1281 ac_prev=target_alias ;; 1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1283 target_alias=$ac_optarg ;; 1284 1285 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1286 verbose=yes ;; 1287 1288 -version | --version | --versio | --versi | --vers | -V) 1289 ac_init_version=: ;; 1290 1291 -with-* | --with-*) 1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1293 # Reject names that are not valid shell variable names. 1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1295 as_fn_error $? "invalid package name: '$ac_useropt'" 1296 ac_useropt_orig=$ac_useropt 1297 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1298 case $ac_user_opts in 1299 *" 1300 "with_$ac_useropt" 1301 "*) ;; 1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1303 ac_unrecognized_sep=', ';; 1304 esac 1305 eval with_$ac_useropt=\$ac_optarg ;; 1306 1307 -without-* | --without-*) 1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1309 # Reject names that are not valid shell variable names. 1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1311 as_fn_error $? "invalid package name: '$ac_useropt'" 1312 ac_useropt_orig=$ac_useropt 1313 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1314 case $ac_user_opts in 1315 *" 1316 "with_$ac_useropt" 1317 "*) ;; 1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1319 ac_unrecognized_sep=', ';; 1320 esac 1321 eval with_$ac_useropt=no ;; 1322 1323 --x) 1324 # Obsolete; use --with-x. 1325 with_x=yes ;; 1326 1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1328 | --x-incl | --x-inc | --x-in | --x-i) 1329 ac_prev=x_includes ;; 1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1332 x_includes=$ac_optarg ;; 1333 1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1336 ac_prev=x_libraries ;; 1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1339 x_libraries=$ac_optarg ;; 1340 1341 -*) as_fn_error $? "unrecognized option: '$ac_option' 1342 Try '$0 --help' for more information" 1343 ;; 1344 1345 *=*) 1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1347 # Reject names that are not valid shell variable names. 1348 case $ac_envvar in #( 1349 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1350 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1351 esac 1352 eval $ac_envvar=\$ac_optarg 1353 export $ac_envvar ;; 1354 1355 *) 1356 # FIXME: should be removed in autoconf 3.0. 1357 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1359 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1360 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1361 ;; 1362 1363 esac 1364 done 1365 1366 if test -n "$ac_prev"; then 1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1368 as_fn_error $? "missing argument to $ac_option" 1369 fi 1370 1371 if test -n "$ac_unrecognized_opts"; then 1372 case $enable_option_checking in 1373 no) ;; 1374 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1375 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1376 esac 1377 fi 1378 1379 # Check all directory arguments for consistency. 1380 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1381 datadir sysconfdir sharedstatedir localstatedir includedir \ 1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1383 libdir localedir mandir runstatedir 1384 do 1385 eval ac_val=\$$ac_var 1386 # Remove trailing slashes. 1387 case $ac_val in 1388 */ ) 1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1390 eval $ac_var=\$ac_val;; 1391 esac 1392 # Be sure to have absolute directory names. 1393 case $ac_val in 1394 [\\/$]* | ?:[\\/]* ) continue;; 1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1396 esac 1397 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1398 done 1399 1400 # There might be people who depend on the old broken behavior: '$host' 1401 # used to hold the argument of --host etc. 1402 # FIXME: To remove some day. 1403 build=$build_alias 1404 host=$host_alias 1405 target=$target_alias 1406 1407 # FIXME: To remove some day. 1408 if test "x$host_alias" != x; then 1409 if test "x$build_alias" = x; then 1410 cross_compiling=maybe 1411 elif test "x$build_alias" != "x$host_alias"; then 1412 cross_compiling=yes 1413 fi 1414 fi 1415 1416 ac_tool_prefix= 1417 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1418 1419 test "$silent" = yes && exec 6>/dev/null 1420 1421 1422 ac_pwd=`pwd` && test -n "$ac_pwd" && 1423 ac_ls_di=`ls -di .` && 1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1425 as_fn_error $? "working directory cannot be determined" 1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1427 as_fn_error $? "pwd does not report name of working directory" 1428 1429 1430 # Find the source files, if location was not specified. 1431 if test -z "$srcdir"; then 1432 ac_srcdir_defaulted=yes 1433 # Try the directory containing this script, then the parent directory. 1434 ac_confdir=`$as_dirname -- "$as_myself" || 1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1436 X"$as_myself" : 'X\(//\)[^/]' \| \ 1437 X"$as_myself" : 'X\(//\)$' \| \ 1438 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1439 printf "%s\n" X"$as_myself" | 1440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1441 s//\1/ 1442 q 1443 } 1444 /^X\(\/\/\)[^/].*/{ 1445 s//\1/ 1446 q 1447 } 1448 /^X\(\/\/\)$/{ 1449 s//\1/ 1450 q 1451 } 1452 /^X\(\/\).*/{ 1453 s//\1/ 1454 q 1455 } 1456 s/.*/./; q'` 1457 srcdir=$ac_confdir 1458 if test ! -r "$srcdir/$ac_unique_file"; then 1459 srcdir=.. 1460 fi 1461 else 1462 ac_srcdir_defaulted=no 1463 fi 1464 if test ! -r "$srcdir/$ac_unique_file"; then 1465 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1466 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1467 fi 1468 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1469 ac_abs_confdir=`( 1470 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1471 pwd)` 1472 # When building in place, set srcdir=. 1473 if test "$ac_abs_confdir" = "$ac_pwd"; then 1474 srcdir=. 1475 fi 1476 # Remove unnecessary trailing slashes from srcdir. 1477 # Double slashes in file names in object file debugging info 1478 # mess up M-x gdb in Emacs. 1479 case $srcdir in 1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1481 esac 1482 for ac_var in $ac_precious_vars; do 1483 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1484 eval ac_env_${ac_var}_value=\$${ac_var} 1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1486 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1487 done 1488 1489 # 1490 # Report the --help message. 1491 # 1492 if test "$ac_init_help" = "long"; then 1493 # Omit some internal or obsolete options to make the list less imposing. 1494 # This message is too long to be a string in the A/UX 3.1 sh. 1495 cat <<_ACEOF 1496 'configure' configures libXmu 1.3.1 to adapt to many kinds of systems. 1497 1498 Usage: $0 [OPTION]... [VAR=VALUE]... 1499 1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1501 VAR=VALUE. See below for descriptions of some of the useful variables. 1502 1503 Defaults for the options are specified in brackets. 1504 1505 Configuration: 1506 -h, --help display this help and exit 1507 --help=short display options specific to this package 1508 --help=recursive display the short help of all the included packages 1509 -V, --version display version information and exit 1510 -q, --quiet, --silent do not print 'checking ...' messages 1511 --cache-file=FILE cache test results in FILE [disabled] 1512 -C, --config-cache alias for '--cache-file=config.cache' 1513 -n, --no-create do not create output files 1514 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1515 1516 Installation directories: 1517 --prefix=PREFIX install architecture-independent files in PREFIX 1518 [$ac_default_prefix] 1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1520 [PREFIX] 1521 1522 By default, 'make install' will install all the files in 1523 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1524 an installation prefix other than '$ac_default_prefix' using '--prefix', 1525 for instance '--prefix=\$HOME'. 1526 1527 For better control, use the options below. 1528 1529 Fine tuning of the installation directories: 1530 --bindir=DIR user executables [EPREFIX/bin] 1531 --sbindir=DIR system admin executables [EPREFIX/sbin] 1532 --libexecdir=DIR program executables [EPREFIX/libexec] 1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1536 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1537 --libdir=DIR object code libraries [EPREFIX/lib] 1538 --includedir=DIR C header files [PREFIX/include] 1539 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1540 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1541 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1542 --infodir=DIR info documentation [DATAROOTDIR/info] 1543 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1544 --mandir=DIR man documentation [DATAROOTDIR/man] 1545 --docdir=DIR documentation root [DATAROOTDIR/doc/libXmu] 1546 --htmldir=DIR html documentation [DOCDIR] 1547 --dvidir=DIR dvi documentation [DOCDIR] 1548 --pdfdir=DIR pdf documentation [DOCDIR] 1549 --psdir=DIR ps documentation [DOCDIR] 1550 _ACEOF 1551 1552 cat <<\_ACEOF 1553 1554 Program names: 1555 --program-prefix=PREFIX prepend PREFIX to installed program names 1556 --program-suffix=SUFFIX append SUFFIX to installed program names 1557 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1558 1559 System types: 1560 --build=BUILD configure for building on BUILD [guessed] 1561 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1562 _ACEOF 1563 fi 1564 1565 if test -n "$ac_init_help"; then 1566 case $ac_init_help in 1567 short | recursive ) echo "Configuration of libXmu 1.3.1:";; 1568 esac 1569 cat <<\_ACEOF 1570 1571 Optional Features: 1572 --disable-option-checking ignore unrecognized --enable/--with options 1573 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1574 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1575 --enable-dependency-tracking 1576 do not reject slow dependency extractors 1577 --disable-dependency-tracking 1578 speeds up one-time build 1579 --enable-silent-rules less verbose build output (undo: "make V=1") 1580 --disable-silent-rules verbose build output (undo: "make V=0") 1581 --enable-shared[=PKGS] build shared libraries [default=yes] 1582 --enable-static[=PKGS] build static libraries [default=yes] 1583 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1584 both] 1585 --enable-fast-install[=PKGS] 1586 optimize for fast installation [default=yes] 1587 --enable-aix-soname=aix|svr4|both 1588 shared library versioning (aka "SONAME") variant to 1589 provide on AIX, [default=aix]. 1590 --disable-libtool-lock avoid locking (might break parallel builds) 1591 --disable-selective-werror 1592 Turn off selective compiler errors. (default: 1593 enabled) 1594 --enable-strict-compilation 1595 Enable all warnings from compiler and make them 1596 errors (default: disabled) 1597 --enable-docs Enable building the documentation (default: yes) 1598 --enable-lint-library Create lint library (default: disabled) 1599 --enable-unit-tests Enable building unit test cases (default: auto) 1600 1601 Optional Packages: 1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1605 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1606 compiler's sysroot if not specified). 1607 --with-xmlto Use xmlto to regenerate documentation (default: 1608 auto) 1609 --with-fop Use fop to regenerate documentation (default: auto) 1610 --with-xsltproc Use xsltproc for the transformation of XML documents 1611 (default: auto) 1612 --with-lint Use a lint-style source code checker (default: 1613 disabled) 1614 --with-glib Use GLib library for unit testing (default: auto) 1615 1616 Some influential environment variables: 1617 CC C compiler command 1618 CFLAGS C compiler flags 1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1620 nonstandard directory <lib dir> 1621 LIBS libraries to pass to the linker, e.g. -l<library> 1622 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1623 you have headers in a nonstandard directory <include dir> 1624 LT_SYS_LIBRARY_PATH 1625 User-defined run-time library search path. 1626 PKG_CONFIG path to pkg-config utility 1627 PKG_CONFIG_PATH 1628 directories to add to pkg-config's search path 1629 PKG_CONFIG_LIBDIR 1630 path overriding pkg-config's built-in search path 1631 XMLTO Path to xmlto command 1632 FOP Path to fop command 1633 XSLTPROC Path to xsltproc command 1634 XMU_CFLAGS C compiler flags for XMU, overriding pkg-config 1635 XMU_LIBS linker flags for XMU, overriding pkg-config 1636 XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config 1637 XMUU_LIBS linker flags for XMUU, overriding pkg-config 1638 LINT Path to a lint-style command 1639 LINT_FLAGS Flags for the lint-style command 1640 XORG_MALLOC_DEBUG_ENV 1641 Environment variables to enable memory checking in tests 1642 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config 1643 GLIB_LIBS linker flags for GLIB, overriding pkg-config 1644 1645 Use these variables to override the choices made by 'configure' or to help 1646 it to find libraries and programs with nonstandard names/locations. 1647 1648 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues/>. 1649 _ACEOF 1650 ac_status=$? 1651 fi 1652 1653 if test "$ac_init_help" = "recursive"; then 1654 # If there are subdirs, report their specific --help. 1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1656 test -d "$ac_dir" || 1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1658 continue 1659 ac_builddir=. 1660 1661 case "$ac_dir" in 1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1663 *) 1664 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1665 # A ".." for each directory in $ac_dir_suffix. 1666 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1667 case $ac_top_builddir_sub in 1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1670 esac ;; 1671 esac 1672 ac_abs_top_builddir=$ac_pwd 1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1674 # for backward compatibility: 1675 ac_top_builddir=$ac_top_build_prefix 1676 1677 case $srcdir in 1678 .) # We are building in place. 1679 ac_srcdir=. 1680 ac_top_srcdir=$ac_top_builddir_sub 1681 ac_abs_top_srcdir=$ac_pwd ;; 1682 [\\/]* | ?:[\\/]* ) # Absolute name. 1683 ac_srcdir=$srcdir$ac_dir_suffix; 1684 ac_top_srcdir=$srcdir 1685 ac_abs_top_srcdir=$srcdir ;; 1686 *) # Relative name. 1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1688 ac_top_srcdir=$ac_top_build_prefix$srcdir 1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1690 esac 1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1692 1693 cd "$ac_dir" || { ac_status=$?; continue; } 1694 # Check for configure.gnu first; this name is used for a wrapper for 1695 # Metaconfig's "Configure" on case-insensitive file systems. 1696 if test -f "$ac_srcdir/configure.gnu"; then 1697 echo && 1698 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1699 elif test -f "$ac_srcdir/configure"; then 1700 echo && 1701 $SHELL "$ac_srcdir/configure" --help=recursive 1702 else 1703 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1704 fi || ac_status=$? 1705 cd "$ac_pwd" || { ac_status=$?; break; } 1706 done 1707 fi 1708 1709 test -n "$ac_init_help" && exit $ac_status 1710 if $ac_init_version; then 1711 cat <<\_ACEOF 1712 libXmu configure 1.3.1 1713 generated by GNU Autoconf 2.72 1714 1715 Copyright (C) 2023 Free Software Foundation, Inc. 1716 This configure script is free software; the Free Software Foundation 1717 gives unlimited permission to copy, distribute and modify it. 1718 _ACEOF 1719 exit 1720 fi 1721 1722 ## ------------------------ ## 1723 ## Autoconf initialization. ## 1724 ## ------------------------ ## 1725 1726 # ac_fn_c_try_compile LINENO 1727 # -------------------------- 1728 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1729 ac_fn_c_try_compile () 1730 { 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 rm -f conftest.$ac_objext conftest.beam 1733 if { { ac_try="$ac_compile" 1734 case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737 esac 1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739 printf "%s\n" "$ac_try_echo"; } >&5 1740 (eval "$ac_compile") 2>conftest.err 1741 ac_status=$? 1742 if test -s conftest.err; then 1743 grep -v '^ *+' conftest.err >conftest.er1 1744 cat conftest.er1 >&5 1745 mv -f conftest.er1 conftest.err 1746 fi 1747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } && { 1749 test -z "$ac_c_werror_flag" || 1750 test ! -s conftest.err 1751 } && test -s conftest.$ac_objext 1752 then : 1753 ac_retval=0 1754 else case e in #( 1755 e) printf "%s\n" "$as_me: failed program was:" >&5 1756 sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 ;; 1759 esac 1760 fi 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764 } # ac_fn_c_try_compile 1765 1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1767 # ------------------------------------------------------- 1768 # Tests whether HEADER exists and can be compiled using the include files in 1769 # INCLUDES, setting the cache variable VAR accordingly. 1770 ac_fn_c_check_header_compile () 1771 { 1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774 printf %s "checking for $2... " >&6; } 1775 if eval test \${$3+y} 1776 then : 1777 printf %s "(cached) " >&6 1778 else case e in #( 1779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1780 /* end confdefs.h. */ 1781 $4 1782 #include <$2> 1783 _ACEOF 1784 if ac_fn_c_try_compile "$LINENO" 1785 then : 1786 eval "$3=yes" 1787 else case e in #( 1788 e) eval "$3=no" ;; 1789 esac 1790 fi 1791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1792 esac 1793 fi 1794 eval ac_res=\$$3 1795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1796 printf "%s\n" "$ac_res" >&6; } 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 1799 } # ac_fn_c_check_header_compile 1800 1801 # ac_fn_c_try_link LINENO 1802 # ----------------------- 1803 # Try to link conftest.$ac_ext, and return whether this succeeded. 1804 ac_fn_c_try_link () 1805 { 1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1807 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1808 if { { ac_try="$ac_link" 1809 case "(($ac_try" in 1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1811 *) ac_try_echo=$ac_try;; 1812 esac 1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1814 printf "%s\n" "$ac_try_echo"; } >&5 1815 (eval "$ac_link") 2>conftest.err 1816 ac_status=$? 1817 if test -s conftest.err; then 1818 grep -v '^ *+' conftest.err >conftest.er1 1819 cat conftest.er1 >&5 1820 mv -f conftest.er1 conftest.err 1821 fi 1822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1823 test $ac_status = 0; } && { 1824 test -z "$ac_c_werror_flag" || 1825 test ! -s conftest.err 1826 } && test -s conftest$ac_exeext && { 1827 test "$cross_compiling" = yes || 1828 test -x conftest$ac_exeext 1829 } 1830 then : 1831 ac_retval=0 1832 else case e in #( 1833 e) printf "%s\n" "$as_me: failed program was:" >&5 1834 sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 ac_retval=1 ;; 1837 esac 1838 fi 1839 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1840 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1841 # interfere with the next link command; also delete a directory that is 1842 # left behind by Apple's compiler. We do this before executing the actions. 1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 as_fn_set_status $ac_retval 1846 1847 } # ac_fn_c_try_link 1848 1849 # ac_fn_c_check_func LINENO FUNC VAR 1850 # ---------------------------------- 1851 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1852 ac_fn_c_check_func () 1853 { 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856 printf %s "checking for $2... " >&6; } 1857 if eval test \${$3+y} 1858 then : 1859 printf %s "(cached) " >&6 1860 else case e in #( 1861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1862 /* end confdefs.h. */ 1863 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1864 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1865 #define $2 innocuous_$2 1866 1867 /* System header to define __stub macros and hopefully few prototypes, 1868 which can conflict with char $2 (void); below. */ 1869 1870 #include <limits.h> 1871 #undef $2 1872 1873 /* Override any GCC internal prototype to avoid an error. 1874 Use char because int might match the return type of a GCC 1875 builtin and then its argument prototype would still apply. */ 1876 #ifdef __cplusplus 1877 extern "C" 1878 #endif 1879 char $2 (void); 1880 /* The GNU C library defines this for functions which it implements 1881 to always fail with ENOSYS. Some functions are actually named 1882 something starting with __ and the normal name is an alias. */ 1883 #if defined __stub_$2 || defined __stub___$2 1884 choke me 1885 #endif 1886 1887 int 1888 main (void) 1889 { 1890 return $2 (); 1891 ; 1892 return 0; 1893 } 1894 _ACEOF 1895 if ac_fn_c_try_link "$LINENO" 1896 then : 1897 eval "$3=yes" 1898 else case e in #( 1899 e) eval "$3=no" ;; 1900 esac 1901 fi 1902 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1903 conftest$ac_exeext conftest.$ac_ext ;; 1904 esac 1905 fi 1906 eval ac_res=\$$3 1907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908 printf "%s\n" "$ac_res" >&6; } 1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1910 1911 } # ac_fn_c_check_func 1912 1913 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1914 # ------------------------------------------------------------------ 1915 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1916 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1917 ac_fn_check_decl () 1918 { 1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1920 as_decl_name=`echo $2|sed 's/ *(.*//'` 1921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1922 printf %s "checking whether $as_decl_name is declared... " >&6; } 1923 if eval test \${$3+y} 1924 then : 1925 printf %s "(cached) " >&6 1926 else case e in #( 1927 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1928 eval ac_save_FLAGS=\$$6 1929 as_fn_append $6 " $5" 1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931 /* end confdefs.h. */ 1932 $4 1933 int 1934 main (void) 1935 { 1936 #ifndef $as_decl_name 1937 #ifdef __cplusplus 1938 (void) $as_decl_use; 1939 #else 1940 (void) $as_decl_name; 1941 #endif 1942 #endif 1943 1944 ; 1945 return 0; 1946 } 1947 _ACEOF 1948 if ac_fn_c_try_compile "$LINENO" 1949 then : 1950 eval "$3=yes" 1951 else case e in #( 1952 e) eval "$3=no" ;; 1953 esac 1954 fi 1955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1956 eval $6=\$ac_save_FLAGS 1957 ;; 1958 esac 1959 fi 1960 eval ac_res=\$$3 1961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1962 printf "%s\n" "$ac_res" >&6; } 1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1964 1965 } # ac_fn_check_decl 1966 ac_configure_args_raw= 1967 for ac_arg 1968 do 1969 case $ac_arg in 1970 *\'*) 1971 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1972 esac 1973 as_fn_append ac_configure_args_raw " '$ac_arg'" 1974 done 1975 1976 case $ac_configure_args_raw in 1977 *$as_nl*) 1978 ac_safe_unquote= ;; 1979 *) 1980 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1981 ac_unsafe_a="$ac_unsafe_z#~" 1982 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1983 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1984 esac 1985 1986 cat >config.log <<_ACEOF 1987 This file contains any messages produced by compilers while 1988 running configure, to aid debugging if configure makes a mistake. 1989 1990 It was created by libXmu $as_me 1.3.1, which was 1991 generated by GNU Autoconf 2.72. Invocation command line was 1992 1993 $ $0$ac_configure_args_raw 1994 1995 _ACEOF 1996 exec 5>>config.log 1997 { 1998 cat <<_ASUNAME 1999 ## --------- ## 2000 ## Platform. ## 2001 ## --------- ## 2002 2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2004 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2005 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2006 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2007 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2008 2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2011 2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2019 2020 _ASUNAME 2021 2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2023 for as_dir in $PATH 2024 do 2025 IFS=$as_save_IFS 2026 case $as_dir in #((( 2027 '') as_dir=./ ;; 2028 */) ;; 2029 *) as_dir=$as_dir/ ;; 2030 esac 2031 printf "%s\n" "PATH: $as_dir" 2032 done 2033 IFS=$as_save_IFS 2034 2035 } >&5 2036 2037 cat >&5 <<_ACEOF 2038 2039 2040 ## ----------- ## 2041 ## Core tests. ## 2042 ## ----------- ## 2043 2044 _ACEOF 2045 2046 2047 # Keep a trace of the command line. 2048 # Strip out --no-create and --no-recursion so they do not pile up. 2049 # Strip out --silent because we don't want to record it for future runs. 2050 # Also quote any args containing shell meta-characters. 2051 # Make two passes to allow for proper duplicate-argument suppression. 2052 ac_configure_args= 2053 ac_configure_args0= 2054 ac_configure_args1= 2055 ac_must_keep_next=false 2056 for ac_pass in 1 2 2057 do 2058 for ac_arg 2059 do 2060 case $ac_arg in 2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2063 | -silent | --silent | --silen | --sile | --sil) 2064 continue ;; 2065 *\'*) 2066 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2067 esac 2068 case $ac_pass in 2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2070 2) 2071 as_fn_append ac_configure_args1 " '$ac_arg'" 2072 if test $ac_must_keep_next = true; then 2073 ac_must_keep_next=false # Got value, back to normal. 2074 else 2075 case $ac_arg in 2076 *=* | --config-cache | -C | -disable-* | --disable-* \ 2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2079 | -with-* | --with-* | -without-* | --without-* | --x) 2080 case "$ac_configure_args0 " in 2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2082 esac 2083 ;; 2084 -* ) ac_must_keep_next=true ;; 2085 esac 2086 fi 2087 as_fn_append ac_configure_args " '$ac_arg'" 2088 ;; 2089 esac 2090 done 2091 done 2092 { ac_configure_args0=; unset ac_configure_args0;} 2093 { ac_configure_args1=; unset ac_configure_args1;} 2094 2095 # When interrupted or exit'd, cleanup temporary files, and complete 2096 # config.log. We remove comments because anyway the quotes in there 2097 # would cause problems or look ugly. 2098 # WARNING: Use '\'' to represent an apostrophe within the trap. 2099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2100 trap 'exit_status=$? 2101 # Sanitize IFS. 2102 IFS=" "" $as_nl" 2103 # Save into config.log some information that might help in debugging. 2104 { 2105 echo 2106 2107 printf "%s\n" "## ---------------- ## 2108 ## Cache variables. ## 2109 ## ---------------- ##" 2110 echo 2111 # The following way of writing the cache mishandles newlines in values, 2112 ( 2113 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2114 eval ac_val=\$$ac_var 2115 case $ac_val in #( 2116 *${as_nl}*) 2117 case $ac_var in #( 2118 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2119 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2120 esac 2121 case $ac_var in #( 2122 _ | IFS | as_nl) ;; #( 2123 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2124 *) { eval $ac_var=; unset $ac_var;} ;; 2125 esac ;; 2126 esac 2127 done 2128 (set) 2>&1 | 2129 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2130 *${as_nl}ac_space=\ *) 2131 sed -n \ 2132 "s/'\''/'\''\\\\'\'''\''/g; 2133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2134 ;; #( 2135 *) 2136 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2137 ;; 2138 esac | 2139 sort 2140 ) 2141 echo 2142 2143 printf "%s\n" "## ----------------- ## 2144 ## Output variables. ## 2145 ## ----------------- ##" 2146 echo 2147 for ac_var in $ac_subst_vars 2148 do 2149 eval ac_val=\$$ac_var 2150 case $ac_val in 2151 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2152 esac 2153 printf "%s\n" "$ac_var='\''$ac_val'\''" 2154 done | sort 2155 echo 2156 2157 if test -n "$ac_subst_files"; then 2158 printf "%s\n" "## ------------------- ## 2159 ## File substitutions. ## 2160 ## ------------------- ##" 2161 echo 2162 for ac_var in $ac_subst_files 2163 do 2164 eval ac_val=\$$ac_var 2165 case $ac_val in 2166 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2167 esac 2168 printf "%s\n" "$ac_var='\''$ac_val'\''" 2169 done | sort 2170 echo 2171 fi 2172 2173 if test -s confdefs.h; then 2174 printf "%s\n" "## ----------- ## 2175 ## confdefs.h. ## 2176 ## ----------- ##" 2177 echo 2178 cat confdefs.h 2179 echo 2180 fi 2181 test "$ac_signal" != 0 && 2182 printf "%s\n" "$as_me: caught signal $ac_signal" 2183 printf "%s\n" "$as_me: exit $exit_status" 2184 } >&5 2185 rm -f core *.core core.conftest.* && 2186 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2187 exit $exit_status 2188 ' 0 2189 for ac_signal in 1 2 13 15; do 2190 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2191 done 2192 ac_signal=0 2193 2194 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2195 rm -f -r conftest* confdefs.h 2196 2197 printf "%s\n" "/* confdefs.h */" > confdefs.h 2198 2199 # Predefined preprocessor variables. 2200 2201 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2202 2203 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2204 2205 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2206 2207 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2208 2209 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2210 2211 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2212 2213 2214 # Let the site file select an alternate cache file if it wants to. 2215 # Prefer an explicitly selected file to automatically selected ones. 2216 if test -n "$CONFIG_SITE"; then 2217 ac_site_files="$CONFIG_SITE" 2218 elif test "x$prefix" != xNONE; then 2219 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2220 else 2221 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2222 fi 2223 2224 for ac_site_file in $ac_site_files 2225 do 2226 case $ac_site_file in #( 2227 */*) : 2228 ;; #( 2229 *) : 2230 ac_site_file=./$ac_site_file ;; 2231 esac 2232 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2234 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2235 sed 's/^/| /' "$ac_site_file" >&5 2236 . "$ac_site_file" \ 2237 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2238 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2239 as_fn_error $? "failed to load site script $ac_site_file 2240 See 'config.log' for more details" "$LINENO" 5; } 2241 fi 2242 done 2243 2244 if test -r "$cache_file"; then 2245 # Some versions of bash will fail to source /dev/null (special files 2246 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2247 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2249 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2250 case $cache_file in 2251 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2252 *) . "./$cache_file";; 2253 esac 2254 fi 2255 else 2256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2257 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2258 >$cache_file 2259 fi 2260 2261 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2262 # Test code for whether the C compiler supports C89 (global declarations) 2263 ac_c_conftest_c89_globals=' 2264 /* Does the compiler advertise C89 conformance? 2265 Do not test the value of __STDC__, because some compilers set it to 0 2266 while being otherwise adequately conformant. */ 2267 #if !defined __STDC__ 2268 # error "Compiler does not advertise C89 conformance" 2269 #endif 2270 2271 #include <stddef.h> 2272 #include <stdarg.h> 2273 struct stat; 2274 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2275 struct buf { int x; }; 2276 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2277 static char *e (char **p, int i) 2278 { 2279 return p[i]; 2280 } 2281 static char *f (char * (*g) (char **, int), char **p, ...) 2282 { 2283 char *s; 2284 va_list v; 2285 va_start (v,p); 2286 s = g (p, va_arg (v,int)); 2287 va_end (v); 2288 return s; 2289 } 2290 2291 /* C89 style stringification. */ 2292 #define noexpand_stringify(a) #a 2293 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2294 2295 /* C89 style token pasting. Exercises some of the corner cases that 2296 e.g. old MSVC gets wrong, but not very hard. */ 2297 #define noexpand_concat(a,b) a##b 2298 #define expand_concat(a,b) noexpand_concat(a,b) 2299 extern int vA; 2300 extern int vbee; 2301 #define aye A 2302 #define bee B 2303 int *pvA = &expand_concat(v,aye); 2304 int *pvbee = &noexpand_concat(v,bee); 2305 2306 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2307 function prototypes and stuff, but not \xHH hex character constants. 2308 These do not provoke an error unfortunately, instead are silently treated 2309 as an "x". The following induces an error, until -std is added to get 2310 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2311 array size at least. It is necessary to write \x00 == 0 to get something 2312 that is true only with -std. */ 2313 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2314 2315 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2316 inside strings and character constants. */ 2317 #define FOO(x) '\''x'\'' 2318 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2319 2320 int test (int i, double x); 2321 struct s1 {int (*f) (int a);}; 2322 struct s2 {int (*f) (double a);}; 2323 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2324 int, int);' 2325 2326 # Test code for whether the C compiler supports C89 (body of main). 2327 ac_c_conftest_c89_main=' 2328 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2329 ' 2330 2331 # Test code for whether the C compiler supports C99 (global declarations) 2332 ac_c_conftest_c99_globals=' 2333 /* Does the compiler advertise C99 conformance? */ 2334 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2335 # error "Compiler does not advertise C99 conformance" 2336 #endif 2337 2338 // See if C++-style comments work. 2339 2340 #include <stdbool.h> 2341 extern int puts (const char *); 2342 extern int printf (const char *, ...); 2343 extern int dprintf (int, const char *, ...); 2344 extern void *malloc (size_t); 2345 extern void free (void *); 2346 2347 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2348 // dprintf is used instead of fprintf to avoid needing to declare 2349 // FILE and stderr. 2350 #define debug(...) dprintf (2, __VA_ARGS__) 2351 #define showlist(...) puts (#__VA_ARGS__) 2352 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2353 static void 2354 test_varargs_macros (void) 2355 { 2356 int x = 1234; 2357 int y = 5678; 2358 debug ("Flag"); 2359 debug ("X = %d\n", x); 2360 showlist (The first, second, and third items.); 2361 report (x>y, "x is %d but y is %d", x, y); 2362 } 2363 2364 // Check long long types. 2365 #define BIG64 18446744073709551615ull 2366 #define BIG32 4294967295ul 2367 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2368 #if !BIG_OK 2369 #error "your preprocessor is broken" 2370 #endif 2371 #if BIG_OK 2372 #else 2373 #error "your preprocessor is broken" 2374 #endif 2375 static long long int bignum = -9223372036854775807LL; 2376 static unsigned long long int ubignum = BIG64; 2377 2378 struct incomplete_array 2379 { 2380 int datasize; 2381 double data[]; 2382 }; 2383 2384 struct named_init { 2385 int number; 2386 const wchar_t *name; 2387 double average; 2388 }; 2389 2390 typedef const char *ccp; 2391 2392 static inline int 2393 test_restrict (ccp restrict text) 2394 { 2395 // Iterate through items via the restricted pointer. 2396 // Also check for declarations in for loops. 2397 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2398 continue; 2399 return 0; 2400 } 2401 2402 // Check varargs and va_copy. 2403 static bool 2404 test_varargs (const char *format, ...) 2405 { 2406 va_list args; 2407 va_start (args, format); 2408 va_list args_copy; 2409 va_copy (args_copy, args); 2410 2411 const char *str = ""; 2412 int number = 0; 2413 float fnumber = 0; 2414 2415 while (*format) 2416 { 2417 switch (*format++) 2418 { 2419 case '\''s'\'': // string 2420 str = va_arg (args_copy, const char *); 2421 break; 2422 case '\''d'\'': // int 2423 number = va_arg (args_copy, int); 2424 break; 2425 case '\''f'\'': // float 2426 fnumber = va_arg (args_copy, double); 2427 break; 2428 default: 2429 break; 2430 } 2431 } 2432 va_end (args_copy); 2433 va_end (args); 2434 2435 return *str && number && fnumber; 2436 } 2437 ' 2438 2439 # Test code for whether the C compiler supports C99 (body of main). 2440 ac_c_conftest_c99_main=' 2441 // Check bool. 2442 _Bool success = false; 2443 success |= (argc != 0); 2444 2445 // Check restrict. 2446 if (test_restrict ("String literal") == 0) 2447 success = true; 2448 char *restrict newvar = "Another string"; 2449 2450 // Check varargs. 2451 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2452 test_varargs_macros (); 2453 2454 // Check flexible array members. 2455 struct incomplete_array *ia = 2456 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2457 ia->datasize = 10; 2458 for (int i = 0; i < ia->datasize; ++i) 2459 ia->data[i] = i * 1.234; 2460 // Work around memory leak warnings. 2461 free (ia); 2462 2463 // Check named initializers. 2464 struct named_init ni = { 2465 .number = 34, 2466 .name = L"Test wide string", 2467 .average = 543.34343, 2468 }; 2469 2470 ni.number = 58; 2471 2472 int dynamic_array[ni.number]; 2473 dynamic_array[0] = argv[0][0]; 2474 dynamic_array[ni.number - 1] = 543; 2475 2476 // work around unused variable warnings 2477 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2478 || dynamic_array[ni.number - 1] != 543); 2479 ' 2480 2481 # Test code for whether the C compiler supports C11 (global declarations) 2482 ac_c_conftest_c11_globals=' 2483 /* Does the compiler advertise C11 conformance? */ 2484 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2485 # error "Compiler does not advertise C11 conformance" 2486 #endif 2487 2488 // Check _Alignas. 2489 char _Alignas (double) aligned_as_double; 2490 char _Alignas (0) no_special_alignment; 2491 extern char aligned_as_int; 2492 char _Alignas (0) _Alignas (int) aligned_as_int; 2493 2494 // Check _Alignof. 2495 enum 2496 { 2497 int_alignment = _Alignof (int), 2498 int_array_alignment = _Alignof (int[100]), 2499 char_alignment = _Alignof (char) 2500 }; 2501 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2502 2503 // Check _Noreturn. 2504 int _Noreturn does_not_return (void) { for (;;) continue; } 2505 2506 // Check _Static_assert. 2507 struct test_static_assert 2508 { 2509 int x; 2510 _Static_assert (sizeof (int) <= sizeof (long int), 2511 "_Static_assert does not work in struct"); 2512 long int y; 2513 }; 2514 2515 // Check UTF-8 literals. 2516 #define u8 syntax error! 2517 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2518 2519 // Check duplicate typedefs. 2520 typedef long *long_ptr; 2521 typedef long int *long_ptr; 2522 typedef long_ptr long_ptr; 2523 2524 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2525 struct anonymous 2526 { 2527 union { 2528 struct { int i; int j; }; 2529 struct { int k; long int l; } w; 2530 }; 2531 int m; 2532 } v1; 2533 ' 2534 2535 # Test code for whether the C compiler supports C11 (body of main). 2536 ac_c_conftest_c11_main=' 2537 _Static_assert ((offsetof (struct anonymous, i) 2538 == offsetof (struct anonymous, w.k)), 2539 "Anonymous union alignment botch"); 2540 v1.i = 2; 2541 v1.w.k = 5; 2542 ok |= v1.i != 5; 2543 ' 2544 2545 # Test code for whether the C compiler supports C11 (complete). 2546 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2547 ${ac_c_conftest_c99_globals} 2548 ${ac_c_conftest_c11_globals} 2549 2550 int 2551 main (int argc, char **argv) 2552 { 2553 int ok = 0; 2554 ${ac_c_conftest_c89_main} 2555 ${ac_c_conftest_c99_main} 2556 ${ac_c_conftest_c11_main} 2557 return ok; 2558 } 2559 " 2560 2561 # Test code for whether the C compiler supports C99 (complete). 2562 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2563 ${ac_c_conftest_c99_globals} 2564 2565 int 2566 main (int argc, char **argv) 2567 { 2568 int ok = 0; 2569 ${ac_c_conftest_c89_main} 2570 ${ac_c_conftest_c99_main} 2571 return ok; 2572 } 2573 " 2574 2575 # Test code for whether the C compiler supports C89 (complete). 2576 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2577 2578 int 2579 main (int argc, char **argv) 2580 { 2581 int ok = 0; 2582 ${ac_c_conftest_c89_main} 2583 return ok; 2584 } 2585 " 2586 2587 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2588 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2589 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2590 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2591 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2592 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2593 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2594 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2595 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2596 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2597 2598 # Auxiliary files required by this configure script. 2599 ac_aux_files="tap-driver.sh config.guess config.sub ltmain.sh missing install-sh compile" 2600 2601 # Locations in which to look for auxiliary files. 2602 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2603 2604 # Search for a directory containing all of the required auxiliary files, 2605 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2606 # If we don't find one directory that contains all the files we need, 2607 # we report the set of missing files from the *first* directory in 2608 # $ac_aux_dir_candidates and give up. 2609 ac_missing_aux_files="" 2610 ac_first_candidate=: 2611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2613 as_found=false 2614 for as_dir in $ac_aux_dir_candidates 2615 do 2616 IFS=$as_save_IFS 2617 case $as_dir in #((( 2618 '') as_dir=./ ;; 2619 */) ;; 2620 *) as_dir=$as_dir/ ;; 2621 esac 2622 as_found=: 2623 2624 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2625 ac_aux_dir_found=yes 2626 ac_install_sh= 2627 for ac_aux in $ac_aux_files 2628 do 2629 # As a special case, if "install-sh" is required, that requirement 2630 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2631 # and $ac_install_sh is set appropriately for whichever one is found. 2632 if test x"$ac_aux" = x"install-sh" 2633 then 2634 if test -f "${as_dir}install-sh"; then 2635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2636 ac_install_sh="${as_dir}install-sh -c" 2637 elif test -f "${as_dir}install.sh"; then 2638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2639 ac_install_sh="${as_dir}install.sh -c" 2640 elif test -f "${as_dir}shtool"; then 2641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2642 ac_install_sh="${as_dir}shtool install -c" 2643 else 2644 ac_aux_dir_found=no 2645 if $ac_first_candidate; then 2646 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2647 else 2648 break 2649 fi 2650 fi 2651 else 2652 if test -f "${as_dir}${ac_aux}"; then 2653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2654 else 2655 ac_aux_dir_found=no 2656 if $ac_first_candidate; then 2657 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2658 else 2659 break 2660 fi 2661 fi 2662 fi 2663 done 2664 if test "$ac_aux_dir_found" = yes; then 2665 ac_aux_dir="$as_dir" 2666 break 2667 fi 2668 ac_first_candidate=false 2669 2670 as_found=false 2671 done 2672 IFS=$as_save_IFS 2673 if $as_found 2674 then : 2675 2676 else case e in #( 2677 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2678 esac 2679 fi 2680 2681 2682 # These three variables are undocumented and unsupported, 2683 # and are intended to be withdrawn in a future Autoconf release. 2684 # They can cause serious problems if a builder's source tree is in a directory 2685 # whose full name contains unusual characters. 2686 if test -f "${ac_aux_dir}config.guess"; then 2687 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2688 fi 2689 if test -f "${ac_aux_dir}config.sub"; then 2690 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2691 fi 2692 if test -f "$ac_aux_dir/configure"; then 2693 ac_configure="$SHELL ${ac_aux_dir}configure" 2694 fi 2695 2696 # Check that the precious variables saved in the cache have kept the same 2697 # value. 2698 ac_cache_corrupted=false 2699 for ac_var in $ac_precious_vars; do 2700 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2701 eval ac_new_set=\$ac_env_${ac_var}_set 2702 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2703 eval ac_new_val=\$ac_env_${ac_var}_value 2704 case $ac_old_set,$ac_new_set in 2705 set,) 2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2707 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2708 ac_cache_corrupted=: ;; 2709 ,set) 2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2711 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2712 ac_cache_corrupted=: ;; 2713 ,);; 2714 *) 2715 if test "x$ac_old_val" != "x$ac_new_val"; then 2716 # differences in whitespace do not lead to failure. 2717 ac_old_val_w=`echo x $ac_old_val` 2718 ac_new_val_w=`echo x $ac_new_val` 2719 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2721 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2722 ac_cache_corrupted=: 2723 else 2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2725 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2726 eval $ac_var=\$ac_old_val 2727 fi 2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2729 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2731 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2732 fi;; 2733 esac 2734 # Pass precious variables to config.status. 2735 if test "$ac_new_set" = set; then 2736 case $ac_new_val in 2737 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2738 *) ac_arg=$ac_var=$ac_new_val ;; 2739 esac 2740 case " $ac_configure_args " in 2741 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2742 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2743 esac 2744 fi 2745 done 2746 if $ac_cache_corrupted; then 2747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2748 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2750 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2751 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2752 and start over" "$LINENO" 5 2753 fi 2754 ## -------------------- ## 2755 ## Main body of script. ## 2756 ## -------------------- ## 2757 2758 ac_ext=c 2759 ac_cpp='$CPP $CPPFLAGS' 2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2763 2764 2765 2766 ac_config_headers="$ac_config_headers config.h" 2767 2768 2769 2770 # Set common system defines for POSIX extensions, such as _GNU_SOURCE 2771 # Must be called before any macros that run the compiler (like LT_INIT) 2772 # to avoid autoconf errors. 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 # Expand $ac_aux_dir to an absolute path. 2785 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2786 2787 ac_ext=c 2788 ac_cpp='$CPP $CPPFLAGS' 2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2792 if test -n "$ac_tool_prefix"; then 2793 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2794 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2796 printf %s "checking for $ac_word... " >&6; } 2797 if test ${ac_cv_prog_CC+y} 2798 then : 2799 printf %s "(cached) " >&6 2800 else case e in #( 2801 e) if test -n "$CC"; then 2802 ac_cv_prog_CC="$CC" # Let the user override the test. 2803 else 2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805 for as_dir in $PATH 2806 do 2807 IFS=$as_save_IFS 2808 case $as_dir in #((( 2809 '') as_dir=./ ;; 2810 */) ;; 2811 *) as_dir=$as_dir/ ;; 2812 esac 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2815 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2817 break 2 2818 fi 2819 done 2820 done 2821 IFS=$as_save_IFS 2822 2823 fi ;; 2824 esac 2825 fi 2826 CC=$ac_cv_prog_CC 2827 if test -n "$CC"; then 2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2829 printf "%s\n" "$CC" >&6; } 2830 else 2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832 printf "%s\n" "no" >&6; } 2833 fi 2834 2835 2836 fi 2837 if test -z "$ac_cv_prog_CC"; then 2838 ac_ct_CC=$CC 2839 # Extract the first word of "gcc", so it can be a program name with args. 2840 set dummy gcc; ac_word=$2 2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2842 printf %s "checking for $ac_word... " >&6; } 2843 if test ${ac_cv_prog_ac_ct_CC+y} 2844 then : 2845 printf %s "(cached) " >&6 2846 else case e in #( 2847 e) if test -n "$ac_ct_CC"; then 2848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2849 else 2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851 for as_dir in $PATH 2852 do 2853 IFS=$as_save_IFS 2854 case $as_dir in #((( 2855 '') as_dir=./ ;; 2856 */) ;; 2857 *) as_dir=$as_dir/ ;; 2858 esac 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2861 ac_cv_prog_ac_ct_CC="gcc" 2862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2863 break 2 2864 fi 2865 done 2866 done 2867 IFS=$as_save_IFS 2868 2869 fi ;; 2870 esac 2871 fi 2872 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2873 if test -n "$ac_ct_CC"; then 2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2875 printf "%s\n" "$ac_ct_CC" >&6; } 2876 else 2877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2878 printf "%s\n" "no" >&6; } 2879 fi 2880 2881 if test "x$ac_ct_CC" = x; then 2882 CC="" 2883 else 2884 case $cross_compiling:$ac_tool_warned in 2885 yes:) 2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2887 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2888 ac_tool_warned=yes ;; 2889 esac 2890 CC=$ac_ct_CC 2891 fi 2892 else 2893 CC="$ac_cv_prog_CC" 2894 fi 2895 2896 if test -z "$CC"; then 2897 if test -n "$ac_tool_prefix"; then 2898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2899 set dummy ${ac_tool_prefix}cc; ac_word=$2 2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901 printf %s "checking for $ac_word... " >&6; } 2902 if test ${ac_cv_prog_CC+y} 2903 then : 2904 printf %s "(cached) " >&6 2905 else case e in #( 2906 e) if test -n "$CC"; then 2907 ac_cv_prog_CC="$CC" # Let the user override the test. 2908 else 2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910 for as_dir in $PATH 2911 do 2912 IFS=$as_save_IFS 2913 case $as_dir in #((( 2914 '') as_dir=./ ;; 2915 */) ;; 2916 *) as_dir=$as_dir/ ;; 2917 esac 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2920 ac_cv_prog_CC="${ac_tool_prefix}cc" 2921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924 done 2925 done 2926 IFS=$as_save_IFS 2927 2928 fi ;; 2929 esac 2930 fi 2931 CC=$ac_cv_prog_CC 2932 if test -n "$CC"; then 2933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2934 printf "%s\n" "$CC" >&6; } 2935 else 2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2937 printf "%s\n" "no" >&6; } 2938 fi 2939 2940 2941 fi 2942 fi 2943 if test -z "$CC"; then 2944 # Extract the first word of "cc", so it can be a program name with args. 2945 set dummy cc; ac_word=$2 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2947 printf %s "checking for $ac_word... " >&6; } 2948 if test ${ac_cv_prog_CC+y} 2949 then : 2950 printf %s "(cached) " >&6 2951 else case e in #( 2952 e) if test -n "$CC"; then 2953 ac_cv_prog_CC="$CC" # Let the user override the test. 2954 else 2955 ac_prog_rejected=no 2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2957 for as_dir in $PATH 2958 do 2959 IFS=$as_save_IFS 2960 case $as_dir in #((( 2961 '') as_dir=./ ;; 2962 */) ;; 2963 *) as_dir=$as_dir/ ;; 2964 esac 2965 for ac_exec_ext in '' $ac_executable_extensions; do 2966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2967 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2968 ac_prog_rejected=yes 2969 continue 2970 fi 2971 ac_cv_prog_CC="cc" 2972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2973 break 2 2974 fi 2975 done 2976 done 2977 IFS=$as_save_IFS 2978 2979 if test $ac_prog_rejected = yes; then 2980 # We found a bogon in the path, so make sure we never use it. 2981 set dummy $ac_cv_prog_CC 2982 shift 2983 if test $# != 0; then 2984 # We chose a different compiler from the bogus one. 2985 # However, it has the same basename, so the bogon will be chosen 2986 # first if we set CC to just the basename; use the full file name. 2987 shift 2988 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2989 fi 2990 fi 2991 fi ;; 2992 esac 2993 fi 2994 CC=$ac_cv_prog_CC 2995 if test -n "$CC"; then 2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2997 printf "%s\n" "$CC" >&6; } 2998 else 2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3000 printf "%s\n" "no" >&6; } 3001 fi 3002 3003 3004 fi 3005 if test -z "$CC"; then 3006 if test -n "$ac_tool_prefix"; then 3007 for ac_prog in cl.exe 3008 do 3009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3012 printf %s "checking for $ac_word... " >&6; } 3013 if test ${ac_cv_prog_CC+y} 3014 then : 3015 printf %s "(cached) " >&6 3016 else case e in #( 3017 e) if test -n "$CC"; then 3018 ac_cv_prog_CC="$CC" # Let the user override the test. 3019 else 3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3021 for as_dir in $PATH 3022 do 3023 IFS=$as_save_IFS 3024 case $as_dir in #((( 3025 '') as_dir=./ ;; 3026 */) ;; 3027 *) as_dir=$as_dir/ ;; 3028 esac 3029 for ac_exec_ext in '' $ac_executable_extensions; do 3030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3033 break 2 3034 fi 3035 done 3036 done 3037 IFS=$as_save_IFS 3038 3039 fi ;; 3040 esac 3041 fi 3042 CC=$ac_cv_prog_CC 3043 if test -n "$CC"; then 3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3045 printf "%s\n" "$CC" >&6; } 3046 else 3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3048 printf "%s\n" "no" >&6; } 3049 fi 3050 3051 3052 test -n "$CC" && break 3053 done 3054 fi 3055 if test -z "$CC"; then 3056 ac_ct_CC=$CC 3057 for ac_prog in cl.exe 3058 do 3059 # Extract the first word of "$ac_prog", so it can be a program name with args. 3060 set dummy $ac_prog; ac_word=$2 3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062 printf %s "checking for $ac_word... " >&6; } 3063 if test ${ac_cv_prog_ac_ct_CC+y} 3064 then : 3065 printf %s "(cached) " >&6 3066 else case e in #( 3067 e) if test -n "$ac_ct_CC"; then 3068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3069 else 3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3071 for as_dir in $PATH 3072 do 3073 IFS=$as_save_IFS 3074 case $as_dir in #((( 3075 '') as_dir=./ ;; 3076 */) ;; 3077 *) as_dir=$as_dir/ ;; 3078 esac 3079 for ac_exec_ext in '' $ac_executable_extensions; do 3080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3081 ac_cv_prog_ac_ct_CC="$ac_prog" 3082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3083 break 2 3084 fi 3085 done 3086 done 3087 IFS=$as_save_IFS 3088 3089 fi ;; 3090 esac 3091 fi 3092 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3093 if test -n "$ac_ct_CC"; then 3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3095 printf "%s\n" "$ac_ct_CC" >&6; } 3096 else 3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3098 printf "%s\n" "no" >&6; } 3099 fi 3100 3101 3102 test -n "$ac_ct_CC" && break 3103 done 3104 3105 if test "x$ac_ct_CC" = x; then 3106 CC="" 3107 else 3108 case $cross_compiling:$ac_tool_warned in 3109 yes:) 3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3112 ac_tool_warned=yes ;; 3113 esac 3114 CC=$ac_ct_CC 3115 fi 3116 fi 3117 3118 fi 3119 if test -z "$CC"; then 3120 if test -n "$ac_tool_prefix"; then 3121 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3122 set dummy ${ac_tool_prefix}clang; ac_word=$2 3123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124 printf %s "checking for $ac_word... " >&6; } 3125 if test ${ac_cv_prog_CC+y} 3126 then : 3127 printf %s "(cached) " >&6 3128 else case e in #( 3129 e) if test -n "$CC"; then 3130 ac_cv_prog_CC="$CC" # Let the user override the test. 3131 else 3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133 for as_dir in $PATH 3134 do 3135 IFS=$as_save_IFS 3136 case $as_dir in #((( 3137 '') as_dir=./ ;; 3138 */) ;; 3139 *) as_dir=$as_dir/ ;; 3140 esac 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3143 ac_cv_prog_CC="${ac_tool_prefix}clang" 3144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3145 break 2 3146 fi 3147 done 3148 done 3149 IFS=$as_save_IFS 3150 3151 fi ;; 3152 esac 3153 fi 3154 CC=$ac_cv_prog_CC 3155 if test -n "$CC"; then 3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3157 printf "%s\n" "$CC" >&6; } 3158 else 3159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3160 printf "%s\n" "no" >&6; } 3161 fi 3162 3163 3164 fi 3165 if test -z "$ac_cv_prog_CC"; then 3166 ac_ct_CC=$CC 3167 # Extract the first word of "clang", so it can be a program name with args. 3168 set dummy clang; ac_word=$2 3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3170 printf %s "checking for $ac_word... " >&6; } 3171 if test ${ac_cv_prog_ac_ct_CC+y} 3172 then : 3173 printf %s "(cached) " >&6 3174 else case e in #( 3175 e) if test -n "$ac_ct_CC"; then 3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3177 else 3178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3179 for as_dir in $PATH 3180 do 3181 IFS=$as_save_IFS 3182 case $as_dir in #((( 3183 '') as_dir=./ ;; 3184 */) ;; 3185 *) as_dir=$as_dir/ ;; 3186 esac 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_ac_ct_CC="clang" 3190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193 done 3194 done 3195 IFS=$as_save_IFS 3196 3197 fi ;; 3198 esac 3199 fi 3200 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3201 if test -n "$ac_ct_CC"; then 3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3203 printf "%s\n" "$ac_ct_CC" >&6; } 3204 else 3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3206 printf "%s\n" "no" >&6; } 3207 fi 3208 3209 if test "x$ac_ct_CC" = x; then 3210 CC="" 3211 else 3212 case $cross_compiling:$ac_tool_warned in 3213 yes:) 3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3215 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3216 ac_tool_warned=yes ;; 3217 esac 3218 CC=$ac_ct_CC 3219 fi 3220 else 3221 CC="$ac_cv_prog_CC" 3222 fi 3223 3224 fi 3225 3226 3227 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3228 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3229 as_fn_error $? "no acceptable C compiler found in \$PATH 3230 See 'config.log' for more details" "$LINENO" 5; } 3231 3232 # Provide some information about the compiler. 3233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3234 set X $ac_compile 3235 ac_compiler=$2 3236 for ac_option in --version -v -V -qversion -version; do 3237 { { ac_try="$ac_compiler $ac_option >&5" 3238 case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241 esac 3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3243 printf "%s\n" "$ac_try_echo"; } >&5 3244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3245 ac_status=$? 3246 if test -s conftest.err; then 3247 sed '10a\ 3248 ... rest of stderr output deleted ... 3249 10q' conftest.err >conftest.er1 3250 cat conftest.er1 >&5 3251 fi 3252 rm -f conftest.er1 conftest.err 3253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3254 test $ac_status = 0; } 3255 done 3256 3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258 /* end confdefs.h. */ 3259 3260 int 3261 main (void) 3262 { 3263 3264 ; 3265 return 0; 3266 } 3267 _ACEOF 3268 ac_clean_files_save=$ac_clean_files 3269 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3270 # Try to create an executable without -o first, disregard a.out. 3271 # It will help us diagnose broken compilers, and finding out an intuition 3272 # of exeext. 3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3274 printf %s "checking whether the C compiler works... " >&6; } 3275 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3276 3277 # The possible output files: 3278 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3279 3280 ac_rmfiles= 3281 for ac_file in $ac_files 3282 do 3283 case $ac_file in 3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3285 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3286 esac 3287 done 3288 rm -f $ac_rmfiles 3289 3290 if { { ac_try="$ac_link_default" 3291 case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294 esac 3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3296 printf "%s\n" "$ac_try_echo"; } >&5 3297 (eval "$ac_link_default") 2>&5 3298 ac_status=$? 3299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3300 test $ac_status = 0; } 3301 then : 3302 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3303 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3304 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3305 # so that the user can short-circuit this test for compilers unknown to 3306 # Autoconf. 3307 for ac_file in $ac_files '' 3308 do 3309 test -f "$ac_file" || continue 3310 case $ac_file in 3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3312 ;; 3313 [ab].out ) 3314 # We found the default executable, but exeext='' is most 3315 # certainly right. 3316 break;; 3317 *.* ) 3318 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3319 then :; else 3320 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3321 fi 3322 # We set ac_cv_exeext here because the later test for it is not 3323 # safe: cross compilers may not add the suffix if given an '-o' 3324 # argument, so we may need to know it at that point already. 3325 # Even if this section looks crufty: it has the advantage of 3326 # actually working. 3327 break;; 3328 * ) 3329 break;; 3330 esac 3331 done 3332 test "$ac_cv_exeext" = no && ac_cv_exeext= 3333 3334 else case e in #( 3335 e) ac_file='' ;; 3336 esac 3337 fi 3338 if test -z "$ac_file" 3339 then : 3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341 printf "%s\n" "no" >&6; } 3342 printf "%s\n" "$as_me: failed program was:" >&5 3343 sed 's/^/| /' conftest.$ac_ext >&5 3344 3345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3346 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3347 as_fn_error 77 "C compiler cannot create executables 3348 See 'config.log' for more details" "$LINENO" 5; } 3349 else case e in #( 3350 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3351 printf "%s\n" "yes" >&6; } ;; 3352 esac 3353 fi 3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3355 printf %s "checking for C compiler default output file name... " >&6; } 3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3357 printf "%s\n" "$ac_file" >&6; } 3358 ac_exeext=$ac_cv_exeext 3359 3360 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3361 ac_clean_files=$ac_clean_files_save 3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3363 printf %s "checking for suffix of executables... " >&6; } 3364 if { { ac_try="$ac_link" 3365 case "(($ac_try" in 3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3367 *) ac_try_echo=$ac_try;; 3368 esac 3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3370 printf "%s\n" "$ac_try_echo"; } >&5 3371 (eval "$ac_link") 2>&5 3372 ac_status=$? 3373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3374 test $ac_status = 0; } 3375 then : 3376 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3377 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3378 # work properly (i.e., refer to 'conftest.exe'), while it won't with 3379 # 'rm'. 3380 for ac_file in conftest.exe conftest conftest.*; do 3381 test -f "$ac_file" || continue 3382 case $ac_file in 3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3384 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3385 break;; 3386 * ) break;; 3387 esac 3388 done 3389 else case e in #( 3390 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3391 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3392 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3393 See 'config.log' for more details" "$LINENO" 5; } ;; 3394 esac 3395 fi 3396 rm -f conftest conftest$ac_cv_exeext 3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3398 printf "%s\n" "$ac_cv_exeext" >&6; } 3399 3400 rm -f conftest.$ac_ext 3401 EXEEXT=$ac_cv_exeext 3402 ac_exeext=$EXEEXT 3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3404 /* end confdefs.h. */ 3405 #include <stdio.h> 3406 int 3407 main (void) 3408 { 3409 FILE *f = fopen ("conftest.out", "w"); 3410 if (!f) 3411 return 1; 3412 return ferror (f) || fclose (f) != 0; 3413 3414 ; 3415 return 0; 3416 } 3417 _ACEOF 3418 ac_clean_files="$ac_clean_files conftest.out" 3419 # Check that the compiler produces executables we can run. If not, either 3420 # the compiler is broken, or we cross compile. 3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3422 printf %s "checking whether we are cross compiling... " >&6; } 3423 if test "$cross_compiling" != yes; then 3424 { { ac_try="$ac_link" 3425 case "(($ac_try" in 3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3427 *) ac_try_echo=$ac_try;; 3428 esac 3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3430 printf "%s\n" "$ac_try_echo"; } >&5 3431 (eval "$ac_link") 2>&5 3432 ac_status=$? 3433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3434 test $ac_status = 0; } 3435 if { ac_try='./conftest$ac_cv_exeext' 3436 { { case "(($ac_try" in 3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3438 *) ac_try_echo=$ac_try;; 3439 esac 3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3441 printf "%s\n" "$ac_try_echo"; } >&5 3442 (eval "$ac_try") 2>&5 3443 ac_status=$? 3444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3445 test $ac_status = 0; }; }; then 3446 cross_compiling=no 3447 else 3448 if test "$cross_compiling" = maybe; then 3449 cross_compiling=yes 3450 else 3451 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3452 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3453 as_fn_error 77 "cannot run C compiled programs. 3454 If you meant to cross compile, use '--host'. 3455 See 'config.log' for more details" "$LINENO" 5; } 3456 fi 3457 fi 3458 fi 3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3460 printf "%s\n" "$cross_compiling" >&6; } 3461 3462 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3463 conftest.o conftest.obj conftest.out 3464 ac_clean_files=$ac_clean_files_save 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3466 printf %s "checking for suffix of object files... " >&6; } 3467 if test ${ac_cv_objext+y} 3468 then : 3469 printf %s "(cached) " >&6 3470 else case e in #( 3471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3472 /* end confdefs.h. */ 3473 3474 int 3475 main (void) 3476 { 3477 3478 ; 3479 return 0; 3480 } 3481 _ACEOF 3482 rm -f conftest.o conftest.obj 3483 if { { ac_try="$ac_compile" 3484 case "(($ac_try" in 3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3486 *) ac_try_echo=$ac_try;; 3487 esac 3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3489 printf "%s\n" "$ac_try_echo"; } >&5 3490 (eval "$ac_compile") 2>&5 3491 ac_status=$? 3492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3493 test $ac_status = 0; } 3494 then : 3495 for ac_file in conftest.o conftest.obj conftest.*; do 3496 test -f "$ac_file" || continue; 3497 case $ac_file in 3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3499 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3500 break;; 3501 esac 3502 done 3503 else case e in #( 3504 e) printf "%s\n" "$as_me: failed program was:" >&5 3505 sed 's/^/| /' conftest.$ac_ext >&5 3506 3507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3508 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3509 as_fn_error $? "cannot compute suffix of object files: cannot compile 3510 See 'config.log' for more details" "$LINENO" 5; } ;; 3511 esac 3512 fi 3513 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3514 esac 3515 fi 3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3517 printf "%s\n" "$ac_cv_objext" >&6; } 3518 OBJEXT=$ac_cv_objext 3519 ac_objext=$OBJEXT 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3521 printf %s "checking whether the compiler supports GNU C... " >&6; } 3522 if test ${ac_cv_c_compiler_gnu+y} 3523 then : 3524 printf %s "(cached) " >&6 3525 else case e in #( 3526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527 /* end confdefs.h. */ 3528 3529 int 3530 main (void) 3531 { 3532 #ifndef __GNUC__ 3533 choke me 3534 #endif 3535 3536 ; 3537 return 0; 3538 } 3539 _ACEOF 3540 if ac_fn_c_try_compile "$LINENO" 3541 then : 3542 ac_compiler_gnu=yes 3543 else case e in #( 3544 e) ac_compiler_gnu=no ;; 3545 esac 3546 fi 3547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3548 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3549 ;; 3550 esac 3551 fi 3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3553 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3555 3556 if test $ac_compiler_gnu = yes; then 3557 GCC=yes 3558 else 3559 GCC= 3560 fi 3561 ac_test_CFLAGS=${CFLAGS+y} 3562 ac_save_CFLAGS=$CFLAGS 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3564 printf %s "checking whether $CC accepts -g... " >&6; } 3565 if test ${ac_cv_prog_cc_g+y} 3566 then : 3567 printf %s "(cached) " >&6 3568 else case e in #( 3569 e) ac_save_c_werror_flag=$ac_c_werror_flag 3570 ac_c_werror_flag=yes 3571 ac_cv_prog_cc_g=no 3572 CFLAGS="-g" 3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3574 /* end confdefs.h. */ 3575 3576 int 3577 main (void) 3578 { 3579 3580 ; 3581 return 0; 3582 } 3583 _ACEOF 3584 if ac_fn_c_try_compile "$LINENO" 3585 then : 3586 ac_cv_prog_cc_g=yes 3587 else case e in #( 3588 e) CFLAGS="" 3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3590 /* end confdefs.h. */ 3591 3592 int 3593 main (void) 3594 { 3595 3596 ; 3597 return 0; 3598 } 3599 _ACEOF 3600 if ac_fn_c_try_compile "$LINENO" 3601 then : 3602 3603 else case e in #( 3604 e) ac_c_werror_flag=$ac_save_c_werror_flag 3605 CFLAGS="-g" 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3607 /* end confdefs.h. */ 3608 3609 int 3610 main (void) 3611 { 3612 3613 ; 3614 return 0; 3615 } 3616 _ACEOF 3617 if ac_fn_c_try_compile "$LINENO" 3618 then : 3619 ac_cv_prog_cc_g=yes 3620 fi 3621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3622 esac 3623 fi 3624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3625 esac 3626 fi 3627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3628 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3629 esac 3630 fi 3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3632 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3633 if test $ac_test_CFLAGS; then 3634 CFLAGS=$ac_save_CFLAGS 3635 elif test $ac_cv_prog_cc_g = yes; then 3636 if test "$GCC" = yes; then 3637 CFLAGS="-g -O2" 3638 else 3639 CFLAGS="-g" 3640 fi 3641 else 3642 if test "$GCC" = yes; then 3643 CFLAGS="-O2" 3644 else 3645 CFLAGS= 3646 fi 3647 fi 3648 ac_prog_cc_stdc=no 3649 if test x$ac_prog_cc_stdc = xno 3650 then : 3651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3652 printf %s "checking for $CC option to enable C11 features... " >&6; } 3653 if test ${ac_cv_prog_cc_c11+y} 3654 then : 3655 printf %s "(cached) " >&6 3656 else case e in #( 3657 e) ac_cv_prog_cc_c11=no 3658 ac_save_CC=$CC 3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3660 /* end confdefs.h. */ 3661 $ac_c_conftest_c11_program 3662 _ACEOF 3663 for ac_arg in '' -std=gnu11 3664 do 3665 CC="$ac_save_CC $ac_arg" 3666 if ac_fn_c_try_compile "$LINENO" 3667 then : 3668 ac_cv_prog_cc_c11=$ac_arg 3669 fi 3670 rm -f core conftest.err conftest.$ac_objext conftest.beam 3671 test "x$ac_cv_prog_cc_c11" != "xno" && break 3672 done 3673 rm -f conftest.$ac_ext 3674 CC=$ac_save_CC ;; 3675 esac 3676 fi 3677 3678 if test "x$ac_cv_prog_cc_c11" = xno 3679 then : 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3681 printf "%s\n" "unsupported" >&6; } 3682 else case e in #( 3683 e) if test "x$ac_cv_prog_cc_c11" = x 3684 then : 3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3686 printf "%s\n" "none needed" >&6; } 3687 else case e in #( 3688 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3689 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3690 CC="$CC $ac_cv_prog_cc_c11" ;; 3691 esac 3692 fi 3693 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3694 ac_prog_cc_stdc=c11 ;; 3695 esac 3696 fi 3697 fi 3698 if test x$ac_prog_cc_stdc = xno 3699 then : 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3701 printf %s "checking for $CC option to enable C99 features... " >&6; } 3702 if test ${ac_cv_prog_cc_c99+y} 3703 then : 3704 printf %s "(cached) " >&6 3705 else case e in #( 3706 e) ac_cv_prog_cc_c99=no 3707 ac_save_CC=$CC 3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3709 /* end confdefs.h. */ 3710 $ac_c_conftest_c99_program 3711 _ACEOF 3712 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3713 do 3714 CC="$ac_save_CC $ac_arg" 3715 if ac_fn_c_try_compile "$LINENO" 3716 then : 3717 ac_cv_prog_cc_c99=$ac_arg 3718 fi 3719 rm -f core conftest.err conftest.$ac_objext conftest.beam 3720 test "x$ac_cv_prog_cc_c99" != "xno" && break 3721 done 3722 rm -f conftest.$ac_ext 3723 CC=$ac_save_CC ;; 3724 esac 3725 fi 3726 3727 if test "x$ac_cv_prog_cc_c99" = xno 3728 then : 3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3730 printf "%s\n" "unsupported" >&6; } 3731 else case e in #( 3732 e) if test "x$ac_cv_prog_cc_c99" = x 3733 then : 3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3735 printf "%s\n" "none needed" >&6; } 3736 else case e in #( 3737 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3738 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3739 CC="$CC $ac_cv_prog_cc_c99" ;; 3740 esac 3741 fi 3742 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3743 ac_prog_cc_stdc=c99 ;; 3744 esac 3745 fi 3746 fi 3747 if test x$ac_prog_cc_stdc = xno 3748 then : 3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3750 printf %s "checking for $CC option to enable C89 features... " >&6; } 3751 if test ${ac_cv_prog_cc_c89+y} 3752 then : 3753 printf %s "(cached) " >&6 3754 else case e in #( 3755 e) ac_cv_prog_cc_c89=no 3756 ac_save_CC=$CC 3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3758 /* end confdefs.h. */ 3759 $ac_c_conftest_c89_program 3760 _ACEOF 3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3762 do 3763 CC="$ac_save_CC $ac_arg" 3764 if ac_fn_c_try_compile "$LINENO" 3765 then : 3766 ac_cv_prog_cc_c89=$ac_arg 3767 fi 3768 rm -f core conftest.err conftest.$ac_objext conftest.beam 3769 test "x$ac_cv_prog_cc_c89" != "xno" && break 3770 done 3771 rm -f conftest.$ac_ext 3772 CC=$ac_save_CC ;; 3773 esac 3774 fi 3775 3776 if test "x$ac_cv_prog_cc_c89" = xno 3777 then : 3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3779 printf "%s\n" "unsupported" >&6; } 3780 else case e in #( 3781 e) if test "x$ac_cv_prog_cc_c89" = x 3782 then : 3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3784 printf "%s\n" "none needed" >&6; } 3785 else case e in #( 3786 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3787 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3788 CC="$CC $ac_cv_prog_cc_c89" ;; 3789 esac 3790 fi 3791 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3792 ac_prog_cc_stdc=c89 ;; 3793 esac 3794 fi 3795 fi 3796 3797 ac_ext=c 3798 ac_cpp='$CPP $CPPFLAGS' 3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3802 3803 3804 ac_ext=c 3805 ac_cpp='$CPP $CPPFLAGS' 3806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3808 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3810 printf %s "checking whether $CC understands -c and -o together... " >&6; } 3811 if test ${am_cv_prog_cc_c_o+y} 3812 then : 3813 printf %s "(cached) " >&6 3814 else case e in #( 3815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3816 /* end confdefs.h. */ 3817 3818 int 3819 main (void) 3820 { 3821 3822 ; 3823 return 0; 3824 } 3825 _ACEOF 3826 # Make sure it works both with $CC and with simple cc. 3827 # Following AC_PROG_CC_C_O, we do the test twice because some 3828 # compilers refuse to overwrite an existing .o file with -o, 3829 # though they will create one. 3830 am_cv_prog_cc_c_o=yes 3831 for am_i in 1 2; do 3832 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3833 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3834 ac_status=$? 3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3836 (exit $ac_status); } \ 3837 && test -f conftest2.$ac_objext; then 3838 : OK 3839 else 3840 am_cv_prog_cc_c_o=no 3841 break 3842 fi 3843 done 3844 # aligned with autoconf, so not including core; see bug#72225. 3845 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 3846 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 3847 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 3848 unset am_i ;; 3849 esac 3850 fi 3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3852 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3853 if test "$am_cv_prog_cc_c_o" != yes; then 3854 # Losing compiler, so override with the script. 3855 # FIXME: It is wrong to rewrite CC. 3856 # But if we don't then we get into trouble of one sort or another. 3857 # A longer-term fix would be to have automake use am__CC in this case, 3858 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3859 CC="$am_aux_dir/compile $CC" 3860 fi 3861 ac_ext=c 3862 ac_cpp='$CPP $CPPFLAGS' 3863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3865 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3866 3867 3868 3869 ac_header= ac_cache= 3870 for ac_item in $ac_header_c_list 3871 do 3872 if test $ac_cache; then 3873 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3874 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3875 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3876 fi 3877 ac_header= ac_cache= 3878 elif test $ac_header; then 3879 ac_cache=$ac_item 3880 else 3881 ac_header=$ac_item 3882 fi 3883 done 3884 3885 3886 3887 3888 3889 3890 3891 3892 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3893 then : 3894 3895 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3896 3897 fi 3898 3899 3900 3901 3902 3903 3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3905 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3906 if test ${ac_cv_safe_to_define___extensions__+y} 3907 then : 3908 printf %s "(cached) " >&6 3909 else case e in #( 3910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3911 /* end confdefs.h. */ 3912 3913 # define __EXTENSIONS__ 1 3914 $ac_includes_default 3915 int 3916 main (void) 3917 { 3918 3919 ; 3920 return 0; 3921 } 3922 _ACEOF 3923 if ac_fn_c_try_compile "$LINENO" 3924 then : 3925 ac_cv_safe_to_define___extensions__=yes 3926 else case e in #( 3927 e) ac_cv_safe_to_define___extensions__=no ;; 3928 esac 3929 fi 3930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3931 esac 3932 fi 3933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3934 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3935 3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3937 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3938 if test ${ac_cv_should_define__xopen_source+y} 3939 then : 3940 printf %s "(cached) " >&6 3941 else case e in #( 3942 e) ac_cv_should_define__xopen_source=no 3943 if test $ac_cv_header_wchar_h = yes 3944 then : 3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3946 /* end confdefs.h. */ 3947 3948 #include <wchar.h> 3949 mbstate_t x; 3950 int 3951 main (void) 3952 { 3953 3954 ; 3955 return 0; 3956 } 3957 _ACEOF 3958 if ac_fn_c_try_compile "$LINENO" 3959 then : 3960 3961 else case e in #( 3962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3963 /* end confdefs.h. */ 3964 3965 #define _XOPEN_SOURCE 500 3966 #include <wchar.h> 3967 mbstate_t x; 3968 int 3969 main (void) 3970 { 3971 3972 ; 3973 return 0; 3974 } 3975 _ACEOF 3976 if ac_fn_c_try_compile "$LINENO" 3977 then : 3978 ac_cv_should_define__xopen_source=yes 3979 fi 3980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3981 esac 3982 fi 3983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3984 fi ;; 3985 esac 3986 fi 3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3988 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3989 3990 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3991 3992 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3993 3994 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3995 3996 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3997 3998 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3999 4000 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 4001 4002 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4003 4004 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 4005 4006 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 4007 4008 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 4009 4010 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 4011 4012 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 4013 4014 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 4015 4016 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 4017 4018 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 4019 4020 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 4021 4022 if test $ac_cv_header_minix_config_h = yes 4023 then : 4024 MINIX=yes 4025 printf "%s\n" "#define _MINIX 1" >>confdefs.h 4026 4027 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 4028 4029 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 4030 4031 else case e in #( 4032 e) MINIX= ;; 4033 esac 4034 fi 4035 if test $ac_cv_safe_to_define___extensions__ = yes 4036 then : 4037 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 4038 4039 fi 4040 if test $ac_cv_should_define__xopen_source = yes 4041 then : 4042 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 4043 4044 fi 4045 4046 4047 # Initialize Automake 4048 am__api_version='1.18' 4049 4050 4051 # Find a good install program. We prefer a C program (faster), 4052 # so one script is as good as another. But avoid the broken or 4053 # incompatible versions: 4054 # SysV /etc/install, /usr/sbin/install 4055 # SunOS /usr/etc/install 4056 # IRIX /sbin/install 4057 # AIX /bin/install 4058 # AmigaOS /C/install, which installs bootblocks on floppy discs 4059 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4060 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4061 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4062 # OS/2's system install, which has a completely different semantic 4063 # ./install, which can be erroneously created by make from ./install.sh. 4064 # Reject install programs that cannot install multiple files. 4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4066 printf %s "checking for a BSD-compatible install... " >&6; } 4067 if test -z "$INSTALL"; then 4068 if test ${ac_cv_path_install+y} 4069 then : 4070 printf %s "(cached) " >&6 4071 else case e in #( 4072 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4073 for as_dir in $PATH 4074 do 4075 IFS=$as_save_IFS 4076 case $as_dir in #((( 4077 '') as_dir=./ ;; 4078 */) ;; 4079 *) as_dir=$as_dir/ ;; 4080 esac 4081 # Account for fact that we put trailing slashes in our PATH walk. 4082 case $as_dir in #(( 4083 ./ | /[cC]/* | \ 4084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4085 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4086 /usr/ucb/* ) ;; 4087 *) 4088 # OSF1 and SCO ODT 3.0 have their own names for install. 4089 # Don't use installbsd from OSF since it installs stuff as root 4090 # by default. 4091 for ac_prog in ginstall scoinst install; do 4092 for ac_exec_ext in '' $ac_executable_extensions; do 4093 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 4094 if test $ac_prog = install && 4095 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4096 # AIX install. It has an incompatible calling convention. 4097 : 4098 elif test $ac_prog = install && 4099 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4100 # program-specific install script used by HP pwplus--don't use. 4101 : 4102 else 4103 rm -rf conftest.one conftest.two conftest.dir 4104 echo one > conftest.one 4105 echo two > conftest.two 4106 mkdir conftest.dir 4107 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 4108 test -s conftest.one && test -s conftest.two && 4109 test -s conftest.dir/conftest.one && 4110 test -s conftest.dir/conftest.two 4111 then 4112 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 4113 break 3 4114 fi 4115 fi 4116 fi 4117 done 4118 done 4119 ;; 4120 esac 4121 4122 done 4123 IFS=$as_save_IFS 4124 4125 rm -rf conftest.one conftest.two conftest.dir 4126 ;; 4127 esac 4128 fi 4129 if test ${ac_cv_path_install+y}; then 4130 INSTALL=$ac_cv_path_install 4131 else 4132 # As a last resort, use the slow shell script. Don't cache a 4133 # value for INSTALL within a source directory, because that will 4134 # break other packages using the cache if that directory is 4135 # removed, or if the value is a relative name. 4136 INSTALL=$ac_install_sh 4137 fi 4138 fi 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4140 printf "%s\n" "$INSTALL" >&6; } 4141 4142 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4143 # It thinks the first close brace ends the variable substitution. 4144 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4145 4146 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4147 4148 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4149 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 4151 printf %s "checking whether sleep supports fractional seconds... " >&6; } 4152 if test ${am_cv_sleep_fractional_seconds+y} 4153 then : 4154 printf %s "(cached) " >&6 4155 else case e in #( 4156 e) if sleep 0.001 2>/dev/null 4157 then : 4158 am_cv_sleep_fractional_seconds=yes 4159 else case e in #( 4160 e) am_cv_sleep_fractional_seconds=no ;; 4161 esac 4162 fi 4163 ;; 4164 esac 4165 fi 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 4167 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 4168 4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 4170 printf %s "checking filesystem timestamp resolution... " >&6; } 4171 if test ${am_cv_filesystem_timestamp_resolution+y} 4172 then : 4173 printf %s "(cached) " >&6 4174 else case e in #( 4175 e) # Default to the worst case. 4176 am_cv_filesystem_timestamp_resolution=2 4177 4178 # Only try to go finer than 1 sec if sleep can do it. 4179 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 4180 # - 1 sec is not much of a win compared to 2 sec, and 4181 # - it takes 2 seconds to perform the test whether 1 sec works. 4182 # 4183 # Instead, just use the default 2s on platforms that have 1s resolution, 4184 # accept the extra 1s delay when using $sleep in the Automake tests, in 4185 # exchange for not incurring the 2s delay for running the test for all 4186 # packages. 4187 # 4188 am_try_resolutions= 4189 if test "$am_cv_sleep_fractional_seconds" = yes; then 4190 # Even a millisecond often causes a bunch of false positives, 4191 # so just try a hundredth of a second. The time saved between .001 and 4192 # .01 is not terribly consequential. 4193 am_try_resolutions="0.01 0.1 $am_try_resolutions" 4194 fi 4195 4196 # In order to catch current-generation FAT out, we must *modify* files 4197 # that already exist; the *creation* timestamp is finer. Use names 4198 # that make ls -t sort them differently when they have equal 4199 # timestamps than when they have distinct timestamps, keeping 4200 # in mind that ls -t prints the *newest* file first. 4201 rm -f conftest.ts? 4202 : > conftest.ts1 4203 : > conftest.ts2 4204 : > conftest.ts3 4205 4206 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 4207 # clobber the current shell's arguments. (Outer-level square brackets 4208 # are removed by m4; they're present so that m4 does not expand 4209 # <dollar><star>; be careful, easy to get confused.) 4210 if ( 4211 set X `ls -t conftest.ts[12]` && 4212 { 4213 test "$*" != "X conftest.ts1 conftest.ts2" || 4214 test "$*" != "X conftest.ts2 conftest.ts1"; 4215 } 4216 ); then :; else 4217 # If neither matched, then we have a broken ls. This can happen 4218 # if, for instance, CONFIG_SHELL is bash and it inherits a 4219 # broken ls alias from the environment. This has actually 4220 # happened. Such a system could not be considered "sane". 4221 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 4222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4223 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4224 as_fn_error $? "ls -t produces unexpected output. 4225 Make sure there is not a broken ls alias in your environment. 4226 See 'config.log' for more details" "$LINENO" 5; } 4227 fi 4228 4229 for am_try_res in $am_try_resolutions; do 4230 # Any one fine-grained sleep might happen to cross the boundary 4231 # between two values of a coarser actual resolution, but if we do 4232 # two fine-grained sleeps in a row, at least one of them will fall 4233 # entirely within a coarse interval. 4234 echo alpha > conftest.ts1 4235 sleep $am_try_res 4236 echo beta > conftest.ts2 4237 sleep $am_try_res 4238 echo gamma > conftest.ts3 4239 4240 # We assume that 'ls -t' will make use of high-resolution 4241 # timestamps if the operating system supports them at all. 4242 if (set X `ls -t conftest.ts?` && 4243 test "$2" = conftest.ts3 && 4244 test "$3" = conftest.ts2 && 4245 test "$4" = conftest.ts1); then 4246 # 4247 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 4248 # because we don't need to test make. 4249 make_ok=true 4250 if test $am_try_res != 1; then 4251 # But if we've succeeded so far with a subsecond resolution, we 4252 # have one more thing to check: make. It can happen that 4253 # everything else supports the subsecond mtimes, but make doesn't; 4254 # notably on macOS, which ships make 3.81 from 2006 (the last one 4255 # released under GPLv2). https://bugs.gnu.org/68808 4256 # 4257 # We test $MAKE if it is defined in the environment, else "make". 4258 # It might get overridden later, but our hope is that in practice 4259 # it does not matter: it is the system "make" which is (by far) 4260 # the most likely to be broken, whereas if the user overrides it, 4261 # probably they did so with a better, or at least not worse, make. 4262 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 4263 # 4264 # Create a Makefile (real tab character here): 4265 rm -f conftest.mk 4266 echo 'conftest.ts1: conftest.ts2' >conftest.mk 4267 echo ' touch conftest.ts2' >>conftest.mk 4268 # 4269 # Now, running 4270 # touch conftest.ts1; touch conftest.ts2; make 4271 # should touch ts1 because ts2 is newer. This could happen by luck, 4272 # but most often, it will fail if make's support is insufficient. So 4273 # test for several consecutive successes. 4274 # 4275 # (We reuse conftest.ts[12] because we still want to modify existing 4276 # files, not create new ones, per above.) 4277 n=0 4278 make=${MAKE-make} 4279 until test $n -eq 3; do 4280 echo one > conftest.ts1 4281 sleep $am_try_res 4282 echo two > conftest.ts2 # ts2 should now be newer than ts1 4283 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 4284 make_ok=false 4285 break # out of $n loop 4286 fi 4287 n=`expr $n + 1` 4288 done 4289 fi 4290 # 4291 if $make_ok; then 4292 # Everything we know to check worked out, so call this resolution good. 4293 am_cv_filesystem_timestamp_resolution=$am_try_res 4294 break # out of $am_try_res loop 4295 fi 4296 # Otherwise, we'll go on to check the next resolution. 4297 fi 4298 done 4299 rm -f conftest.ts? 4300 # (end _am_filesystem_timestamp_resolution) 4301 ;; 4302 esac 4303 fi 4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 4305 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 4306 4307 # This check should not be cached, as it may vary across builds of 4308 # different projects. 4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 4310 printf %s "checking whether build environment is sane... " >&6; } 4311 # Reject unsafe characters in $srcdir or the absolute working directory 4312 # name. Accept space and tab only in the latter. 4313 am_lf=' 4314 ' 4315 case `pwd` in 4316 *[\\\"\#\$\&\'\`$am_lf]*) 4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4318 printf "%s\n" "no" >&6; } 4319 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 4320 esac 4321 case $srcdir in 4322 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4324 printf "%s\n" "no" >&6; } 4325 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 4326 esac 4327 4328 # Do 'set' in a subshell so we don't clobber the current shell's 4329 # arguments. Must try -L first in case configure is actually a 4330 # symlink; some systems play weird games with the mod time of symlinks 4331 # (eg FreeBSD returns the mod time of the symlink's containing 4332 # directory). 4333 am_build_env_is_sane=no 4334 am_has_slept=no 4335 rm -f conftest.file 4336 for am_try in 1 2; do 4337 echo "timestamp, slept: $am_has_slept" > conftest.file 4338 if ( 4339 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 4340 if test "$*" = "X"; then 4341 # -L didn't work. 4342 set X `ls -t "$srcdir/configure" conftest.file` 4343 fi 4344 test "$2" = conftest.file 4345 ); then 4346 am_build_env_is_sane=yes 4347 break 4348 fi 4349 # Just in case. 4350 sleep "$am_cv_filesystem_timestamp_resolution" 4351 am_has_slept=yes 4352 done 4353 4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 4355 printf "%s\n" "$am_build_env_is_sane" >&6; } 4356 if test "$am_build_env_is_sane" = no; then 4357 as_fn_error $? "newly created file is older than distributed files! 4358 Check your system clock" "$LINENO" 5 4359 fi 4360 4361 # If we didn't sleep, we still need to ensure time stamps of config.status and 4362 # generated files are strictly newer. 4363 am_sleep_pid= 4364 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 4365 then : 4366 4367 else case e in #( 4368 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 4369 am_sleep_pid=$! 4370 ;; 4371 esac 4372 fi 4373 4374 rm -f conftest.file 4375 4376 test "$program_prefix" != NONE && 4377 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4378 # Use a double $ so make ignores it. 4379 test "$program_suffix" != NONE && 4380 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4381 # Double any \ or $. 4382 # By default was 's,x,x', remove it if useless. 4383 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4384 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4385 4386 4387 if test x"${MISSING+set}" != xset; then 4388 MISSING="\${SHELL} '$am_aux_dir/missing'" 4389 fi 4390 # Use eval to expand $SHELL 4391 if eval "$MISSING --is-lightweight"; then 4392 am_missing_run="$MISSING " 4393 else 4394 am_missing_run= 4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4396 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4397 fi 4398 4399 if test x"${install_sh+set}" != xset; then 4400 case $am_aux_dir in 4401 *\ * | *\ *) 4402 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4403 *) 4404 install_sh="\${SHELL} $am_aux_dir/install-sh" 4405 esac 4406 fi 4407 4408 # Installed binaries are usually stripped using 'strip' when the user 4409 # run "make install-strip". However 'strip' might not be the right 4410 # tool to use in cross-compilation environments, therefore Automake 4411 # will honor the 'STRIP' environment variable to overrule this program. 4412 if test "$cross_compiling" != no; then 4413 if test -n "$ac_tool_prefix"; then 4414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4415 set dummy ${ac_tool_prefix}strip; ac_word=$2 4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4417 printf %s "checking for $ac_word... " >&6; } 4418 if test ${ac_cv_prog_STRIP+y} 4419 then : 4420 printf %s "(cached) " >&6 4421 else case e in #( 4422 e) if test -n "$STRIP"; then 4423 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4424 else 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426 for as_dir in $PATH 4427 do 4428 IFS=$as_save_IFS 4429 case $as_dir in #((( 4430 '') as_dir=./ ;; 4431 */) ;; 4432 *) as_dir=$as_dir/ ;; 4433 esac 4434 for ac_exec_ext in '' $ac_executable_extensions; do 4435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4436 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4438 break 2 4439 fi 4440 done 4441 done 4442 IFS=$as_save_IFS 4443 4444 fi ;; 4445 esac 4446 fi 4447 STRIP=$ac_cv_prog_STRIP 4448 if test -n "$STRIP"; then 4449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4450 printf "%s\n" "$STRIP" >&6; } 4451 else 4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4453 printf "%s\n" "no" >&6; } 4454 fi 4455 4456 4457 fi 4458 if test -z "$ac_cv_prog_STRIP"; then 4459 ac_ct_STRIP=$STRIP 4460 # Extract the first word of "strip", so it can be a program name with args. 4461 set dummy strip; ac_word=$2 4462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4463 printf %s "checking for $ac_word... " >&6; } 4464 if test ${ac_cv_prog_ac_ct_STRIP+y} 4465 then : 4466 printf %s "(cached) " >&6 4467 else case e in #( 4468 e) if test -n "$ac_ct_STRIP"; then 4469 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4470 else 4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4472 for as_dir in $PATH 4473 do 4474 IFS=$as_save_IFS 4475 case $as_dir in #((( 4476 '') as_dir=./ ;; 4477 */) ;; 4478 *) as_dir=$as_dir/ ;; 4479 esac 4480 for ac_exec_ext in '' $ac_executable_extensions; do 4481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4482 ac_cv_prog_ac_ct_STRIP="strip" 4483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4484 break 2 4485 fi 4486 done 4487 done 4488 IFS=$as_save_IFS 4489 4490 fi ;; 4491 esac 4492 fi 4493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4494 if test -n "$ac_ct_STRIP"; then 4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4496 printf "%s\n" "$ac_ct_STRIP" >&6; } 4497 else 4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4499 printf "%s\n" "no" >&6; } 4500 fi 4501 4502 if test "x$ac_ct_STRIP" = x; then 4503 STRIP=":" 4504 else 4505 case $cross_compiling:$ac_tool_warned in 4506 yes:) 4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4508 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4509 ac_tool_warned=yes ;; 4510 esac 4511 STRIP=$ac_ct_STRIP 4512 fi 4513 else 4514 STRIP="$ac_cv_prog_STRIP" 4515 fi 4516 4517 fi 4518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4519 4520 4521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4522 printf %s "checking for a race-free mkdir -p... " >&6; } 4523 if test -z "$MKDIR_P"; then 4524 if test ${ac_cv_path_mkdir+y} 4525 then : 4526 printf %s "(cached) " >&6 4527 else case e in #( 4528 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4529 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4530 do 4531 IFS=$as_save_IFS 4532 case $as_dir in #((( 4533 '') as_dir=./ ;; 4534 */) ;; 4535 *) as_dir=$as_dir/ ;; 4536 esac 4537 for ac_prog in mkdir gmkdir; do 4538 for ac_exec_ext in '' $ac_executable_extensions; do 4539 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4540 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4541 'mkdir ('*'coreutils) '* | \ 4542 *'BusyBox '* | \ 4543 'mkdir (fileutils) '4.1*) 4544 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4545 break 3;; 4546 esac 4547 done 4548 done 4549 done 4550 IFS=$as_save_IFS 4551 ;; 4552 esac 4553 fi 4554 4555 test -d ./--version && rmdir ./--version 4556 if test ${ac_cv_path_mkdir+y}; then 4557 MKDIR_P="$ac_cv_path_mkdir -p" 4558 else 4559 # As a last resort, use plain mkdir -p, 4560 # in the hope it doesn't have the bugs of ancient mkdir. 4561 MKDIR_P='mkdir -p' 4562 fi 4563 fi 4564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4565 printf "%s\n" "$MKDIR_P" >&6; } 4566 4567 for ac_prog in gawk mawk nawk awk 4568 do 4569 # Extract the first word of "$ac_prog", so it can be a program name with args. 4570 set dummy $ac_prog; ac_word=$2 4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4572 printf %s "checking for $ac_word... " >&6; } 4573 if test ${ac_cv_prog_AWK+y} 4574 then : 4575 printf %s "(cached) " >&6 4576 else case e in #( 4577 e) if test -n "$AWK"; then 4578 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4579 else 4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581 for as_dir in $PATH 4582 do 4583 IFS=$as_save_IFS 4584 case $as_dir in #((( 4585 '') as_dir=./ ;; 4586 */) ;; 4587 *) as_dir=$as_dir/ ;; 4588 esac 4589 for ac_exec_ext in '' $ac_executable_extensions; do 4590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4591 ac_cv_prog_AWK="$ac_prog" 4592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4593 break 2 4594 fi 4595 done 4596 done 4597 IFS=$as_save_IFS 4598 4599 fi ;; 4600 esac 4601 fi 4602 AWK=$ac_cv_prog_AWK 4603 if test -n "$AWK"; then 4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4605 printf "%s\n" "$AWK" >&6; } 4606 else 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4608 printf "%s\n" "no" >&6; } 4609 fi 4610 4611 4612 test -n "$AWK" && break 4613 done 4614 4615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4616 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4617 set x ${MAKE-make} 4618 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4619 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4620 then : 4621 printf %s "(cached) " >&6 4622 else case e in #( 4623 e) cat >conftest.make <<\_ACEOF 4624 SHELL = /bin/sh 4625 all: 4626 @echo '@@@%%%=$(MAKE)=@@@%%%' 4627 _ACEOF 4628 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4629 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4630 *@@@%%%=?*=@@@%%%*) 4631 eval ac_cv_prog_make_${ac_make}_set=yes;; 4632 *) 4633 eval ac_cv_prog_make_${ac_make}_set=no;; 4634 esac 4635 rm -f conftest.make ;; 4636 esac 4637 fi 4638 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4640 printf "%s\n" "yes" >&6; } 4641 SET_MAKE= 4642 else 4643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4644 printf "%s\n" "no" >&6; } 4645 SET_MAKE="MAKE=${MAKE-make}" 4646 fi 4647 4648 rm -rf .tst 2>/dev/null 4649 mkdir .tst 2>/dev/null 4650 if test -d .tst; then 4651 am__leading_dot=. 4652 else 4653 am__leading_dot=_ 4654 fi 4655 rmdir .tst 2>/dev/null 4656 4657 DEPDIR="${am__leading_dot}deps" 4658 4659 ac_config_commands="$ac_config_commands depfiles" 4660 4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4662 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4663 cat > confinc.mk << 'END' 4664 am__doit: 4665 @echo this is the am__doit target >confinc.out 4666 .PHONY: am__doit 4667 END 4668 am__include="#" 4669 am__quote= 4670 # BSD make does it like this. 4671 echo '.include "confinc.mk" # ignored' > confmf.BSD 4672 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 4673 echo 'include confinc.mk # ignored' > confmf.GNU 4674 _am_result=no 4675 for s in GNU BSD; do 4676 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4677 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4678 ac_status=$? 4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4680 (exit $ac_status); } 4681 case $?:`cat confinc.out 2>/dev/null` in #( 4682 '0:this is the am__doit target') : 4683 case $s in #( 4684 BSD) : 4685 am__include='.include' am__quote='"' ;; #( 4686 *) : 4687 am__include='include' am__quote='' ;; 4688 esac ;; #( 4689 *) : 4690 ;; 4691 esac 4692 if test "$am__include" != "#"; then 4693 _am_result="yes ($s style)" 4694 break 4695 fi 4696 done 4697 rm -f confinc.* confmf.* 4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4699 printf "%s\n" "${_am_result}" >&6; } 4700 4701 # Check whether --enable-dependency-tracking was given. 4702 if test ${enable_dependency_tracking+y} 4703 then : 4704 enableval=$enable_dependency_tracking; 4705 fi 4706 4707 if test "x$enable_dependency_tracking" != xno; then 4708 am_depcomp="$ac_aux_dir/depcomp" 4709 AMDEPBACKSLASH='\' 4710 am__nodep='_no' 4711 fi 4712 if test "x$enable_dependency_tracking" != xno; then 4713 AMDEP_TRUE= 4714 AMDEP_FALSE='#' 4715 else 4716 AMDEP_TRUE='#' 4717 AMDEP_FALSE= 4718 fi 4719 4720 4721 AM_DEFAULT_VERBOSITY=1 4722 # Check whether --enable-silent-rules was given. 4723 if test ${enable_silent_rules+y} 4724 then : 4725 enableval=$enable_silent_rules; 4726 fi 4727 4728 am_make=${MAKE-make} 4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4730 printf %s "checking whether $am_make supports nested variables... " >&6; } 4731 if test ${am_cv_make_support_nested_variables+y} 4732 then : 4733 printf %s "(cached) " >&6 4734 else case e in #( 4735 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4736 BAR0=false 4737 BAR1=true 4738 V=1 4739 am__doit: 4740 @$(TRUE) 4741 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4742 am_cv_make_support_nested_variables=yes 4743 else 4744 am_cv_make_support_nested_variables=no 4745 fi ;; 4746 esac 4747 fi 4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4749 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4750 AM_BACKSLASH='\' 4751 4752 am__rm_f_notfound= 4753 if (rm -f && rm -fr && rm -rf) 2>/dev/null 4754 then : 4755 4756 else case e in #( 4757 e) am__rm_f_notfound='""' ;; 4758 esac 4759 fi 4760 4761 4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 4763 printf %s "checking xargs -n works... " >&6; } 4764 if test ${am_cv_xargs_n_works+y} 4765 then : 4766 printf %s "(cached) " >&6 4767 else case e in #( 4768 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 4769 3" 4770 then : 4771 am_cv_xargs_n_works=yes 4772 else case e in #( 4773 e) am_cv_xargs_n_works=no ;; 4774 esac 4775 fi ;; 4776 esac 4777 fi 4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 4779 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 4780 if test "$am_cv_xargs_n_works" = yes 4781 then : 4782 am__xargs_n='xargs -n' 4783 else case e in #( 4784 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 4785 ;; 4786 esac 4787 fi 4788 4789 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4790 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4791 # is not polluted with repeated "-I." 4792 am__isrc=' -I$(srcdir)' 4793 # test to see if srcdir already configured 4794 if test -f $srcdir/config.status; then 4795 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4796 fi 4797 fi 4798 4799 # test whether we have cygpath 4800 if test -z "$CYGPATH_W"; then 4801 if (cygpath --version) >/dev/null 2>/dev/null; then 4802 CYGPATH_W='cygpath -w' 4803 else 4804 CYGPATH_W=echo 4805 fi 4806 fi 4807 4808 4809 # Define the identity of the package. 4810 PACKAGE='libXmu' 4811 VERSION='1.3.1' 4812 4813 4814 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4815 4816 4817 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4818 4819 # Some tools Automake needs. 4820 4821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4822 4823 4824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4825 4826 4827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4828 4829 4830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4831 4832 4833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4834 4835 # For better backward compatibility. To be removed once Automake 1.9.x 4836 # dies out for good. For more background, see: 4837 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4838 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4839 mkdir_p='$(MKDIR_P)' 4840 4841 # We need awk for the "check" target (and possibly the TAP driver). The 4842 # system "awk" is bad on some platforms. 4843 # Always define AMTAR for backward compatibility. Yes, it's still used 4844 # in the wild :-( We should find a proper way to deprecate it ... 4845 AMTAR='$${TAR-tar}' 4846 4847 4848 # We'll loop over all known methods to create a tar archive until one works. 4849 _am_tools='gnutar plaintar pax cpio none' 4850 4851 # The POSIX 1988 'ustar' format is defined with fixed-size fields. 4852 # There is notably a 21 bits limit for the UID and the GID. In fact, 4853 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 4854 # and bug#13588). 4855 am_max_uid=2097151 # 2^21 - 1 4856 am_max_gid=$am_max_uid 4857 # The $UID and $GID variables are not portable, so we need to resort 4858 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 4859 # below are definitely unexpected, so allow the users to see them 4860 # (that is, avoid stderr redirection). 4861 am_uid=`id -u || echo unknown` 4862 am_gid=`id -g || echo unknown` 4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 4864 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 4865 if test x$am_uid = xunknown; then 4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 4867 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 4868 elif test $am_uid -le $am_max_uid; then 4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4870 printf "%s\n" "yes" >&6; } 4871 else 4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873 printf "%s\n" "no" >&6; } 4874 _am_tools=none 4875 fi 4876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 4877 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 4878 if test x$gm_gid = xunknown; then 4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 4880 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 4881 elif test $am_gid -le $am_max_gid; then 4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4883 printf "%s\n" "yes" >&6; } 4884 else 4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4886 printf "%s\n" "no" >&6; } 4887 _am_tools=none 4888 fi 4889 4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 4891 printf %s "checking how to create a ustar tar archive... " >&6; } 4892 4893 # Go ahead even if we have the value already cached. We do so because we 4894 # need to set the values for the 'am__tar' and 'am__untar' variables. 4895 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 4896 4897 for _am_tool in $_am_tools; do 4898 case $_am_tool in 4899 gnutar) 4900 for _am_tar in tar gnutar gtar; do 4901 { echo "$as_me:$LINENO: $_am_tar --version" >&5 4902 ($_am_tar --version) >&5 2>&5 4903 ac_status=$? 4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4905 (exit $ac_status); } && break 4906 done 4907 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 4908 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 4909 am__untar="$_am_tar -xf -" 4910 ;; 4911 plaintar) 4912 # Must skip GNU tar: if it does not support --format= it doesn't create 4913 # ustar tarball either. 4914 (tar --version) >/dev/null 2>&1 && continue 4915 am__tar='tar chf - "$$tardir"' 4916 am__tar_='tar chf - "$tardir"' 4917 am__untar='tar xf -' 4918 ;; 4919 pax) 4920 am__tar='pax -L -x ustar -w "$$tardir"' 4921 am__tar_='pax -L -x ustar -w "$tardir"' 4922 am__untar='pax -r' 4923 ;; 4924 cpio) 4925 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 4926 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 4927 am__untar='cpio -i -H ustar -d' 4928 ;; 4929 none) 4930 am__tar=false 4931 am__tar_=false 4932 am__untar=false 4933 ;; 4934 esac 4935 4936 # If the value was cached, stop now. We just wanted to have am__tar 4937 # and am__untar set. 4938 test -n "${am_cv_prog_tar_ustar}" && break 4939 4940 # tar/untar a dummy directory, and stop if the command works. 4941 rm -rf conftest.dir 4942 mkdir conftest.dir 4943 echo GrepMe > conftest.dir/file 4944 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 4945 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 4946 ac_status=$? 4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4948 (exit $ac_status); } 4949 rm -rf conftest.dir 4950 if test -s conftest.tar; then 4951 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 4952 ($am__untar <conftest.tar) >&5 2>&5 4953 ac_status=$? 4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4955 (exit $ac_status); } 4956 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 4957 (cat conftest.dir/file) >&5 2>&5 4958 ac_status=$? 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4960 (exit $ac_status); } 4961 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 4962 fi 4963 done 4964 rm -rf conftest.dir 4965 4966 if test ${am_cv_prog_tar_ustar+y} 4967 then : 4968 printf %s "(cached) " >&6 4969 else case e in #( 4970 e) am_cv_prog_tar_ustar=$_am_tool ;; 4971 esac 4972 fi 4973 4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 4975 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 4976 4977 4978 4979 4980 4981 depcc="$CC" am_compiler_list= 4982 4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4984 printf %s "checking dependency style of $depcc... " >&6; } 4985 if test ${am_cv_CC_dependencies_compiler_type+y} 4986 then : 4987 printf %s "(cached) " >&6 4988 else case e in #( 4989 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4990 # We make a subdir and do the tests there. Otherwise we can end up 4991 # making bogus files that we don't know about and never remove. For 4992 # instance it was reported that on HP-UX the gcc test will end up 4993 # making a dummy file named 'D' -- because '-MD' means "put the output 4994 # in D". 4995 rm -rf conftest.dir 4996 mkdir conftest.dir 4997 # Copy depcomp to subdir because otherwise we won't find it if we're 4998 # using a relative directory. 4999 cp "$am_depcomp" conftest.dir 5000 cd conftest.dir 5001 # We will build objects and dependencies in a subdirectory because 5002 # it helps to detect inapplicable dependency modes. For instance 5003 # both Tru64's cc and ICC support -MD to output dependencies as a 5004 # side effect of compilation, but ICC will put the dependencies in 5005 # the current directory while Tru64 will put them in the object 5006 # directory. 5007 mkdir sub 5008 5009 am_cv_CC_dependencies_compiler_type=none 5010 if test "$am_compiler_list" = ""; then 5011 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5012 fi 5013 am__universal=false 5014 case " $depcc " in #( 5015 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5016 esac 5017 5018 for depmode in $am_compiler_list; do 5019 # Setup a source with many dependencies, because some compilers 5020 # like to wrap large dependency lists on column 80 (with \), and 5021 # we should not choose a depcomp mode which is confused by this. 5022 # 5023 # We need to recreate these files for each test, as the compiler may 5024 # overwrite some of them when testing with obscure command lines. 5025 # This happens at least with the AIX C compiler. 5026 : > sub/conftest.c 5027 for i in 1 2 3 4 5 6; do 5028 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5029 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5030 # Solaris 10 /bin/sh. 5031 echo '/* dummy */' > sub/conftst$i.h 5032 done 5033 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5034 5035 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5036 # mode. It turns out that the SunPro C++ compiler does not properly 5037 # handle '-M -o', and we need to detect this. Also, some Intel 5038 # versions had trouble with output in subdirs. 5039 am__obj=sub/conftest.${OBJEXT-o} 5040 am__minus_obj="-o $am__obj" 5041 case $depmode in 5042 gcc) 5043 # This depmode causes a compiler race in universal mode. 5044 test "$am__universal" = false || continue 5045 ;; 5046 nosideeffect) 5047 # After this tag, mechanisms are not by side-effect, so they'll 5048 # only be used when explicitly requested. 5049 if test "x$enable_dependency_tracking" = xyes; then 5050 continue 5051 else 5052 break 5053 fi 5054 ;; 5055 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5056 # This compiler won't grok '-c -o', but also, the minuso test has 5057 # not run yet. These depmodes are late enough in the game, and 5058 # so weak that their functioning should not be impacted. 5059 am__obj=conftest.${OBJEXT-o} 5060 am__minus_obj= 5061 ;; 5062 none) break ;; 5063 esac 5064 if depmode=$depmode \ 5065 source=sub/conftest.c object=$am__obj \ 5066 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5067 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5068 >/dev/null 2>conftest.err && 5069 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5070 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5071 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5072 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5073 # icc doesn't choke on unknown options, it will just issue warnings 5074 # or remarks (even with -Werror). So we grep stderr for any message 5075 # that says an option was ignored or not supported. 5076 # When given -MP, icc 7.0 and 7.1 complain thus: 5077 # icc: Command line warning: ignoring option '-M'; no argument required 5078 # The diagnosis changed in icc 8.0: 5079 # icc: Command line remark: option '-MP' not supported 5080 if (grep 'ignoring option' conftest.err || 5081 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5082 am_cv_CC_dependencies_compiler_type=$depmode 5083 break 5084 fi 5085 fi 5086 done 5087 5088 cd .. 5089 rm -rf conftest.dir 5090 else 5091 am_cv_CC_dependencies_compiler_type=none 5092 fi 5093 ;; 5094 esac 5095 fi 5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5097 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5098 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5099 5100 if 5101 test "x$enable_dependency_tracking" != xno \ 5102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5103 am__fastdepCC_TRUE= 5104 am__fastdepCC_FALSE='#' 5105 else 5106 am__fastdepCC_TRUE='#' 5107 am__fastdepCC_FALSE= 5108 fi 5109 5110 5111 # Variables for tags utilities; see am/tags.am 5112 if test -z "$CTAGS"; then 5113 CTAGS=ctags 5114 fi 5115 5116 if test -z "$ETAGS"; then 5117 ETAGS=etags 5118 fi 5119 5120 if test -z "$CSCOPE"; then 5121 CSCOPE=cscope 5122 fi 5123 5124 5125 5126 5127 5128 5129 5130 5131 # Initialize libtool 5132 case `pwd` in 5133 *\ * | *\ *) 5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5135 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5136 esac 5137 5138 5139 5140 macro_version='2.5.4' 5141 macro_revision='2.5.4' 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 ltmain=$ac_aux_dir/ltmain.sh 5157 5158 5159 5160 # Make sure we can run config.sub. 5161 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5162 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5163 5164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5165 printf %s "checking build system type... " >&6; } 5166 if test ${ac_cv_build+y} 5167 then : 5168 printf %s "(cached) " >&6 5169 else case e in #( 5170 e) ac_build_alias=$build_alias 5171 test "x$ac_build_alias" = x && 5172 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5173 test "x$ac_build_alias" = x && 5174 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5175 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5176 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5177 ;; 5178 esac 5179 fi 5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5181 printf "%s\n" "$ac_cv_build" >&6; } 5182 case $ac_cv_build in 5183 *-*-*) ;; 5184 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5185 esac 5186 build=$ac_cv_build 5187 ac_save_IFS=$IFS; IFS='-' 5188 set x $ac_cv_build 5189 shift 5190 build_cpu=$1 5191 build_vendor=$2 5192 shift; shift 5193 # Remember, the first character of IFS is used to create $*, 5194 # except with old shells: 5195 build_os=$* 5196 IFS=$ac_save_IFS 5197 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5198 5199 5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5201 printf %s "checking host system type... " >&6; } 5202 if test ${ac_cv_host+y} 5203 then : 5204 printf %s "(cached) " >&6 5205 else case e in #( 5206 e) if test "x$host_alias" = x; then 5207 ac_cv_host=$ac_cv_build 5208 else 5209 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5210 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5211 fi 5212 ;; 5213 esac 5214 fi 5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5216 printf "%s\n" "$ac_cv_host" >&6; } 5217 case $ac_cv_host in 5218 *-*-*) ;; 5219 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5220 esac 5221 host=$ac_cv_host 5222 ac_save_IFS=$IFS; IFS='-' 5223 set x $ac_cv_host 5224 shift 5225 host_cpu=$1 5226 host_vendor=$2 5227 shift; shift 5228 # Remember, the first character of IFS is used to create $*, 5229 # except with old shells: 5230 host_os=$* 5231 IFS=$ac_save_IFS 5232 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5233 5234 5235 # Backslashify metacharacters that are still active within 5236 # double-quoted strings. 5237 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5238 5239 # Same as above, but do not quote variable references. 5240 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5241 5242 # Sed substitution to delay expansion of an escaped shell variable in a 5243 # double_quote_subst'ed string. 5244 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5245 5246 # Sed substitution to delay expansion of an escaped single quote. 5247 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5248 5249 # Sed substitution to avoid accidental globbing in evaled expressions 5250 no_glob_subst='s/\*/\\\*/g' 5251 5252 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5253 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5254 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5255 5256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5257 printf %s "checking how to print strings... " >&6; } 5258 # Test print first, because it will be a builtin if present. 5259 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5260 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5261 ECHO='print -r --' 5262 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5263 ECHO='printf %s\n' 5264 else 5265 # Use this function as a fallback that always works. 5266 func_fallback_echo () 5267 { 5268 eval 'cat <<_LTECHO_EOF 5269 $1 5270 _LTECHO_EOF' 5271 } 5272 ECHO='func_fallback_echo' 5273 fi 5274 5275 # func_echo_all arg... 5276 # Invoke $ECHO with all args, space-separated. 5277 func_echo_all () 5278 { 5279 $ECHO "" 5280 } 5281 5282 case $ECHO in 5283 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5284 printf "%s\n" "printf" >&6; } ;; 5285 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5286 printf "%s\n" "print -r" >&6; } ;; 5287 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5288 printf "%s\n" "cat" >&6; } ;; 5289 esac 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5305 printf %s "checking for a sed that does not truncate output... " >&6; } 5306 if test ${ac_cv_path_SED+y} 5307 then : 5308 printf %s "(cached) " >&6 5309 else case e in #( 5310 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5311 for ac_i in 1 2 3 4 5 6 7; do 5312 ac_script="$ac_script$as_nl$ac_script" 5313 done 5314 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5315 { ac_script=; unset ac_script;} 5316 if test -z "$SED"; then 5317 ac_path_SED_found=false 5318 # Loop through the user's path and test for each of PROGNAME-LIST 5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5320 for as_dir in $PATH 5321 do 5322 IFS=$as_save_IFS 5323 case $as_dir in #((( 5324 '') as_dir=./ ;; 5325 */) ;; 5326 *) as_dir=$as_dir/ ;; 5327 esac 5328 for ac_prog in sed gsed 5329 do 5330 for ac_exec_ext in '' $ac_executable_extensions; do 5331 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5332 as_fn_executable_p "$ac_path_SED" || continue 5333 # Check for GNU ac_path_SED and select it if it is found. 5334 # Check for GNU $ac_path_SED 5335 case `"$ac_path_SED" --version 2>&1` in #( 5336 *GNU*) 5337 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5338 #( 5339 *) 5340 ac_count=0 5341 printf %s 0123456789 >"conftest.in" 5342 while : 5343 do 5344 cat "conftest.in" "conftest.in" >"conftest.tmp" 5345 mv "conftest.tmp" "conftest.in" 5346 cp "conftest.in" "conftest.nl" 5347 printf "%s\n" '' >> "conftest.nl" 5348 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5350 as_fn_arith $ac_count + 1 && ac_count=$as_val 5351 if test $ac_count -gt ${ac_path_SED_max-0}; then 5352 # Best one so far, save it but keep looking for a better one 5353 ac_cv_path_SED="$ac_path_SED" 5354 ac_path_SED_max=$ac_count 5355 fi 5356 # 10*(2^10) chars as input seems more than enough 5357 test $ac_count -gt 10 && break 5358 done 5359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5360 esac 5361 5362 $ac_path_SED_found && break 3 5363 done 5364 done 5365 done 5366 IFS=$as_save_IFS 5367 if test -z "$ac_cv_path_SED"; then 5368 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5369 fi 5370 else 5371 ac_cv_path_SED=$SED 5372 fi 5373 ;; 5374 esac 5375 fi 5376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5377 printf "%s\n" "$ac_cv_path_SED" >&6; } 5378 SED="$ac_cv_path_SED" 5379 rm -f conftest.sed 5380 5381 test -z "$SED" && SED=sed 5382 Xsed="$SED -e 1s/^X//" 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5395 printf %s "checking for grep that handles long lines and -e... " >&6; } 5396 if test ${ac_cv_path_GREP+y} 5397 then : 5398 printf %s "(cached) " >&6 5399 else case e in #( 5400 e) if test -z "$GREP"; then 5401 ac_path_GREP_found=false 5402 # Loop through the user's path and test for each of PROGNAME-LIST 5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5405 do 5406 IFS=$as_save_IFS 5407 case $as_dir in #((( 5408 '') as_dir=./ ;; 5409 */) ;; 5410 *) as_dir=$as_dir/ ;; 5411 esac 5412 for ac_prog in grep ggrep 5413 do 5414 for ac_exec_ext in '' $ac_executable_extensions; do 5415 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5416 as_fn_executable_p "$ac_path_GREP" || continue 5417 # Check for GNU ac_path_GREP and select it if it is found. 5418 # Check for GNU $ac_path_GREP 5419 case `"$ac_path_GREP" --version 2>&1` in #( 5420 *GNU*) 5421 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5422 #( 5423 *) 5424 ac_count=0 5425 printf %s 0123456789 >"conftest.in" 5426 while : 5427 do 5428 cat "conftest.in" "conftest.in" >"conftest.tmp" 5429 mv "conftest.tmp" "conftest.in" 5430 cp "conftest.in" "conftest.nl" 5431 printf "%s\n" 'GREP' >> "conftest.nl" 5432 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5434 as_fn_arith $ac_count + 1 && ac_count=$as_val 5435 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5436 # Best one so far, save it but keep looking for a better one 5437 ac_cv_path_GREP="$ac_path_GREP" 5438 ac_path_GREP_max=$ac_count 5439 fi 5440 # 10*(2^10) chars as input seems more than enough 5441 test $ac_count -gt 10 && break 5442 done 5443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5444 esac 5445 5446 $ac_path_GREP_found && break 3 5447 done 5448 done 5449 done 5450 IFS=$as_save_IFS 5451 if test -z "$ac_cv_path_GREP"; then 5452 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5453 fi 5454 else 5455 ac_cv_path_GREP=$GREP 5456 fi 5457 ;; 5458 esac 5459 fi 5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5461 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5462 GREP="$ac_cv_path_GREP" 5463 5464 5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5466 printf %s "checking for egrep... " >&6; } 5467 if test ${ac_cv_path_EGREP+y} 5468 then : 5469 printf %s "(cached) " >&6 5470 else case e in #( 5471 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5472 then ac_cv_path_EGREP="$GREP -E" 5473 else 5474 if test -z "$EGREP"; then 5475 ac_path_EGREP_found=false 5476 # Loop through the user's path and test for each of PROGNAME-LIST 5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5479 do 5480 IFS=$as_save_IFS 5481 case $as_dir in #((( 5482 '') as_dir=./ ;; 5483 */) ;; 5484 *) as_dir=$as_dir/ ;; 5485 esac 5486 for ac_prog in egrep 5487 do 5488 for ac_exec_ext in '' $ac_executable_extensions; do 5489 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5490 as_fn_executable_p "$ac_path_EGREP" || continue 5491 # Check for GNU ac_path_EGREP and select it if it is found. 5492 # Check for GNU $ac_path_EGREP 5493 case `"$ac_path_EGREP" --version 2>&1` in #( 5494 *GNU*) 5495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5496 #( 5497 *) 5498 ac_count=0 5499 printf %s 0123456789 >"conftest.in" 5500 while : 5501 do 5502 cat "conftest.in" "conftest.in" >"conftest.tmp" 5503 mv "conftest.tmp" "conftest.in" 5504 cp "conftest.in" "conftest.nl" 5505 printf "%s\n" 'EGREP' >> "conftest.nl" 5506 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5507 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5508 as_fn_arith $ac_count + 1 && ac_count=$as_val 5509 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5510 # Best one so far, save it but keep looking for a better one 5511 ac_cv_path_EGREP="$ac_path_EGREP" 5512 ac_path_EGREP_max=$ac_count 5513 fi 5514 # 10*(2^10) chars as input seems more than enough 5515 test $ac_count -gt 10 && break 5516 done 5517 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5518 esac 5519 5520 $ac_path_EGREP_found && break 3 5521 done 5522 done 5523 done 5524 IFS=$as_save_IFS 5525 if test -z "$ac_cv_path_EGREP"; then 5526 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5527 fi 5528 else 5529 ac_cv_path_EGREP=$EGREP 5530 fi 5531 5532 fi ;; 5533 esac 5534 fi 5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5536 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5537 EGREP="$ac_cv_path_EGREP" 5538 5539 EGREP_TRADITIONAL=$EGREP 5540 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5541 5542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5543 printf %s "checking for fgrep... " >&6; } 5544 if test ${ac_cv_path_FGREP+y} 5545 then : 5546 printf %s "(cached) " >&6 5547 else case e in #( 5548 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5549 then ac_cv_path_FGREP="$GREP -F" 5550 else 5551 if test -z "$FGREP"; then 5552 ac_path_FGREP_found=false 5553 # Loop through the user's path and test for each of PROGNAME-LIST 5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5556 do 5557 IFS=$as_save_IFS 5558 case $as_dir in #((( 5559 '') as_dir=./ ;; 5560 */) ;; 5561 *) as_dir=$as_dir/ ;; 5562 esac 5563 for ac_prog in fgrep 5564 do 5565 for ac_exec_ext in '' $ac_executable_extensions; do 5566 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5567 as_fn_executable_p "$ac_path_FGREP" || continue 5568 # Check for GNU ac_path_FGREP and select it if it is found. 5569 # Check for GNU $ac_path_FGREP 5570 case `"$ac_path_FGREP" --version 2>&1` in #( 5571 *GNU*) 5572 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5573 #( 5574 *) 5575 ac_count=0 5576 printf %s 0123456789 >"conftest.in" 5577 while : 5578 do 5579 cat "conftest.in" "conftest.in" >"conftest.tmp" 5580 mv "conftest.tmp" "conftest.in" 5581 cp "conftest.in" "conftest.nl" 5582 printf "%s\n" 'FGREP' >> "conftest.nl" 5583 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5585 as_fn_arith $ac_count + 1 && ac_count=$as_val 5586 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5587 # Best one so far, save it but keep looking for a better one 5588 ac_cv_path_FGREP="$ac_path_FGREP" 5589 ac_path_FGREP_max=$ac_count 5590 fi 5591 # 10*(2^10) chars as input seems more than enough 5592 test $ac_count -gt 10 && break 5593 done 5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5595 esac 5596 5597 $ac_path_FGREP_found && break 3 5598 done 5599 done 5600 done 5601 IFS=$as_save_IFS 5602 if test -z "$ac_cv_path_FGREP"; then 5603 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5604 fi 5605 else 5606 ac_cv_path_FGREP=$FGREP 5607 fi 5608 5609 fi ;; 5610 esac 5611 fi 5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5613 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5614 FGREP="$ac_cv_path_FGREP" 5615 5616 5617 test -z "$GREP" && GREP=grep 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 # Check whether --with-gnu-ld was given. 5638 if test ${with_gnu_ld+y} 5639 then : 5640 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5641 else case e in #( 5642 e) with_gnu_ld=no ;; 5643 esac 5644 fi 5645 5646 ac_prog=ld 5647 if test yes = "$GCC"; then 5648 # Check if gcc -print-prog-name=ld gives a path. 5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5650 printf %s "checking for ld used by $CC... " >&6; } 5651 case $host in 5652 *-*-mingw* | *-*-windows*) 5653 # gcc leaves a trailing carriage return, which upsets mingw 5654 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5655 *) 5656 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5657 esac 5658 case $ac_prog in 5659 # Accept absolute paths. 5660 [\\/]* | ?:[\\/]*) 5661 re_direlt='/[^/][^/]*/\.\./' 5662 # Canonicalize the pathname of ld 5663 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5664 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5665 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5666 done 5667 test -z "$LD" && LD=$ac_prog 5668 ;; 5669 "") 5670 # If it fails, then pretend we aren't using GCC. 5671 ac_prog=ld 5672 ;; 5673 *) 5674 # If it is relative, then search for the first ld in PATH. 5675 with_gnu_ld=unknown 5676 ;; 5677 esac 5678 elif test yes = "$with_gnu_ld"; then 5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5680 printf %s "checking for GNU ld... " >&6; } 5681 else 5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5683 printf %s "checking for non-GNU ld... " >&6; } 5684 fi 5685 if test ${lt_cv_path_LD+y} 5686 then : 5687 printf %s "(cached) " >&6 5688 else case e in #( 5689 e) if test -z "$LD"; then 5690 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5691 for ac_dir in $PATH; do 5692 IFS=$lt_save_ifs 5693 test -z "$ac_dir" && ac_dir=. 5694 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5695 lt_cv_path_LD=$ac_dir/$ac_prog 5696 # Check to see if the program is GNU ld. I'd rather use --version, 5697 # but apparently some variants of GNU ld only accept -v. 5698 # Break only if it was the GNU/non-GNU ld that we prefer. 5699 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5700 *GNU* | *'with BFD'*) 5701 test no != "$with_gnu_ld" && break 5702 ;; 5703 *) 5704 test yes != "$with_gnu_ld" && break 5705 ;; 5706 esac 5707 fi 5708 done 5709 IFS=$lt_save_ifs 5710 else 5711 lt_cv_path_LD=$LD # Let the user override the test with a path. 5712 fi ;; 5713 esac 5714 fi 5715 5716 LD=$lt_cv_path_LD 5717 if test -n "$LD"; then 5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5719 printf "%s\n" "$LD" >&6; } 5720 else 5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5722 printf "%s\n" "no" >&6; } 5723 fi 5724 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5726 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5727 if test ${lt_cv_prog_gnu_ld+y} 5728 then : 5729 printf %s "(cached) " >&6 5730 else case e in #( 5731 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5732 case `$LD -v 2>&1 </dev/null` in 5733 *GNU* | *'with BFD'*) 5734 lt_cv_prog_gnu_ld=yes 5735 ;; 5736 *) 5737 lt_cv_prog_gnu_ld=no 5738 ;; 5739 esac ;; 5740 esac 5741 fi 5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5743 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5744 with_gnu_ld=$lt_cv_prog_gnu_ld 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5755 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5756 if test ${lt_cv_path_NM+y} 5757 then : 5758 printf %s "(cached) " >&6 5759 else case e in #( 5760 e) if test -n "$NM"; then 5761 # Let the user override the test. 5762 lt_cv_path_NM=$NM 5763 else 5764 lt_nm_to_check=${ac_tool_prefix}nm 5765 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5766 lt_nm_to_check="$lt_nm_to_check nm" 5767 fi 5768 for lt_tmp_nm in $lt_nm_to_check; do 5769 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5770 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5771 IFS=$lt_save_ifs 5772 test -z "$ac_dir" && ac_dir=. 5773 tmp_nm=$ac_dir/$lt_tmp_nm 5774 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5775 # Check to see if the nm accepts a BSD-compat flag. 5776 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5777 # nm: unknown option "B" ignored 5778 # Tru64's nm complains that /dev/null is an invalid object file 5779 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5780 case $build_os in 5781 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; 5782 *) lt_bad_file=/dev/null ;; 5783 esac 5784 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5785 *$lt_bad_file* | *'Invalid file or object type'*) 5786 lt_cv_path_NM="$tmp_nm -B" 5787 break 2 5788 ;; 5789 *) 5790 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5791 */dev/null*) 5792 lt_cv_path_NM="$tmp_nm -p" 5793 break 2 5794 ;; 5795 *) 5796 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5797 continue # so that we can try to find one that supports BSD flags 5798 ;; 5799 esac 5800 ;; 5801 esac 5802 fi 5803 done 5804 IFS=$lt_save_ifs 5805 done 5806 : ${lt_cv_path_NM=no} 5807 fi ;; 5808 esac 5809 fi 5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5811 printf "%s\n" "$lt_cv_path_NM" >&6; } 5812 if test no != "$lt_cv_path_NM"; then 5813 NM=$lt_cv_path_NM 5814 else 5815 # Didn't find any BSD compatible name lister, look for dumpbin. 5816 if test -n "$DUMPBIN"; then : 5817 # Let the user override the test. 5818 else 5819 if test -n "$ac_tool_prefix"; then 5820 for ac_prog in dumpbin "link -dump" 5821 do 5822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5825 printf %s "checking for $ac_word... " >&6; } 5826 if test ${ac_cv_prog_DUMPBIN+y} 5827 then : 5828 printf %s "(cached) " >&6 5829 else case e in #( 5830 e) if test -n "$DUMPBIN"; then 5831 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5832 else 5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834 for as_dir in $PATH 5835 do 5836 IFS=$as_save_IFS 5837 case $as_dir in #((( 5838 '') as_dir=./ ;; 5839 */) ;; 5840 *) as_dir=$as_dir/ ;; 5841 esac 5842 for ac_exec_ext in '' $ac_executable_extensions; do 5843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5844 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5846 break 2 5847 fi 5848 done 5849 done 5850 IFS=$as_save_IFS 5851 5852 fi ;; 5853 esac 5854 fi 5855 DUMPBIN=$ac_cv_prog_DUMPBIN 5856 if test -n "$DUMPBIN"; then 5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5858 printf "%s\n" "$DUMPBIN" >&6; } 5859 else 5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5861 printf "%s\n" "no" >&6; } 5862 fi 5863 5864 5865 test -n "$DUMPBIN" && break 5866 done 5867 fi 5868 if test -z "$DUMPBIN"; then 5869 ac_ct_DUMPBIN=$DUMPBIN 5870 for ac_prog in dumpbin "link -dump" 5871 do 5872 # Extract the first word of "$ac_prog", so it can be a program name with args. 5873 set dummy $ac_prog; ac_word=$2 5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5875 printf %s "checking for $ac_word... " >&6; } 5876 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5877 then : 5878 printf %s "(cached) " >&6 5879 else case e in #( 5880 e) if test -n "$ac_ct_DUMPBIN"; then 5881 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5882 else 5883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5884 for as_dir in $PATH 5885 do 5886 IFS=$as_save_IFS 5887 case $as_dir in #((( 5888 '') as_dir=./ ;; 5889 */) ;; 5890 *) as_dir=$as_dir/ ;; 5891 esac 5892 for ac_exec_ext in '' $ac_executable_extensions; do 5893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5894 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5896 break 2 5897 fi 5898 done 5899 done 5900 IFS=$as_save_IFS 5901 5902 fi ;; 5903 esac 5904 fi 5905 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5906 if test -n "$ac_ct_DUMPBIN"; then 5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5908 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5909 else 5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5911 printf "%s\n" "no" >&6; } 5912 fi 5913 5914 5915 test -n "$ac_ct_DUMPBIN" && break 5916 done 5917 5918 if test "x$ac_ct_DUMPBIN" = x; then 5919 DUMPBIN=":" 5920 else 5921 case $cross_compiling:$ac_tool_warned in 5922 yes:) 5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5924 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5925 ac_tool_warned=yes ;; 5926 esac 5927 DUMPBIN=$ac_ct_DUMPBIN 5928 fi 5929 fi 5930 5931 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5932 *COFF*) 5933 DUMPBIN="$DUMPBIN -symbols -headers" 5934 ;; 5935 *) 5936 DUMPBIN=: 5937 ;; 5938 esac 5939 fi 5940 5941 if test : != "$DUMPBIN"; then 5942 NM=$DUMPBIN 5943 fi 5944 fi 5945 test -z "$NM" && NM=nm 5946 5947 5948 5949 5950 5951 5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5953 printf %s "checking the name lister ($NM) interface... " >&6; } 5954 if test ${lt_cv_nm_interface+y} 5955 then : 5956 printf %s "(cached) " >&6 5957 else case e in #( 5958 e) lt_cv_nm_interface="BSD nm" 5959 echo "int some_variable = 0;" > conftest.$ac_ext 5960 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5961 (eval "$ac_compile" 2>conftest.err) 5962 cat conftest.err >&5 5963 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5964 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5965 cat conftest.err >&5 5966 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5967 cat conftest.out >&5 5968 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5969 lt_cv_nm_interface="MS dumpbin" 5970 fi 5971 rm -f conftest* ;; 5972 esac 5973 fi 5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5975 printf "%s\n" "$lt_cv_nm_interface" >&6; } 5976 5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5978 printf %s "checking whether ln -s works... " >&6; } 5979 LN_S=$as_ln_s 5980 if test "$LN_S" = "ln -s"; then 5981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5982 printf "%s\n" "yes" >&6; } 5983 else 5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5985 printf "%s\n" "no, using $LN_S" >&6; } 5986 fi 5987 5988 # find the maximum length of command line arguments 5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5990 printf %s "checking the maximum length of command line arguments... " >&6; } 5991 if test ${lt_cv_sys_max_cmd_len+y} 5992 then : 5993 printf %s "(cached) " >&6 5994 else case e in #( 5995 e) i=0 5996 teststring=ABCD 5997 5998 case $build_os in 5999 msdosdjgpp*) 6000 # On DJGPP, this test can blow up pretty badly due to problems in libc 6001 # (any single argument exceeding 2000 bytes causes a buffer overrun 6002 # during glob expansion). Even if it were fixed, the result of this 6003 # check would be larger than it should be. 6004 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6005 ;; 6006 6007 gnu* | ironclad*) 6008 # Under GNU Hurd and Ironclad, this test is not required because there 6009 # is no limit to the length of command line arguments. 6010 # Libtool will interpret -1 as no limit whatsoever 6011 lt_cv_sys_max_cmd_len=-1; 6012 ;; 6013 6014 cygwin* | mingw* | windows* | cegcc*) 6015 # On Win9x/ME, this test blows up -- it succeeds, but takes 6016 # about 5 minutes as the teststring grows exponentially. 6017 # Worse, since 9x/ME are not pre-emptively multitasking, 6018 # you end up with a "frozen" computer, even though with patience 6019 # the test eventually succeeds (with a max line length of 256k). 6020 # Instead, let's just punt: use the minimum linelength reported by 6021 # all of the supported platforms: 8192 (on NT/2K/XP). 6022 lt_cv_sys_max_cmd_len=8192; 6023 ;; 6024 6025 mint*) 6026 # On MiNT this can take a long time and run out of memory. 6027 lt_cv_sys_max_cmd_len=8192; 6028 ;; 6029 6030 amigaos*) 6031 # On AmigaOS with pdksh, this test takes hours, literally. 6032 # So we just punt and use a minimum line length of 8192. 6033 lt_cv_sys_max_cmd_len=8192; 6034 ;; 6035 6036 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6037 # This has been around since 386BSD, at least. Likely further. 6038 if test -x /sbin/sysctl; then 6039 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6040 elif test -x /usr/sbin/sysctl; then 6041 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6042 else 6043 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6044 fi 6045 # And add a safety zone 6046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6047 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6048 ;; 6049 6050 interix*) 6051 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6052 lt_cv_sys_max_cmd_len=196608 6053 ;; 6054 6055 os2*) 6056 # The test takes a long time on OS/2. 6057 lt_cv_sys_max_cmd_len=8192 6058 ;; 6059 6060 osf*) 6061 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6062 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6063 # nice to cause kernel panics so lets avoid the loop below. 6064 # First set a reasonable default. 6065 lt_cv_sys_max_cmd_len=16384 6066 # 6067 if test -x /sbin/sysconfig; then 6068 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6069 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6070 esac 6071 fi 6072 ;; 6073 sco3.2v5*) 6074 lt_cv_sys_max_cmd_len=102400 6075 ;; 6076 sysv5* | sco5v6* | sysv4.2uw2*) 6077 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6078 if test -n "$kargmax"; then 6079 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6080 else 6081 lt_cv_sys_max_cmd_len=32768 6082 fi 6083 ;; 6084 *) 6085 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6086 if test -n "$lt_cv_sys_max_cmd_len" && \ 6087 test undefined != "$lt_cv_sys_max_cmd_len"; then 6088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6090 else 6091 # Make teststring a little bigger before we do anything with it. 6092 # a 1K string should be a reasonable start. 6093 for i in 1 2 3 4 5 6 7 8; do 6094 teststring=$teststring$teststring 6095 done 6096 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6097 # If test is not a shell built-in, we'll probably end up computing a 6098 # maximum length that is only half of the actual maximum length, but 6099 # we can't tell. 6100 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6101 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6102 test 17 != "$i" # 1/2 MB should be enough 6103 do 6104 i=`expr $i + 1` 6105 teststring=$teststring$teststring 6106 done 6107 # Only check the string length outside the loop. 6108 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6109 teststring= 6110 # Add a significant safety factor because C++ compilers can tack on 6111 # massive amounts of additional arguments before passing them to the 6112 # linker. It appears as though 1/2 is a usable value. 6113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6114 fi 6115 ;; 6116 esac 6117 ;; 6118 esac 6119 fi 6120 6121 if test -n "$lt_cv_sys_max_cmd_len"; then 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6123 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6124 else 6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6126 printf "%s\n" "none" >&6; } 6127 fi 6128 max_cmd_len=$lt_cv_sys_max_cmd_len 6129 6130 6131 6132 6133 6134 6135 : ${CP="cp -f"} 6136 : ${MV="mv -f"} 6137 : ${RM="rm -f"} 6138 6139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6140 lt_unset=unset 6141 else 6142 lt_unset=false 6143 fi 6144 6145 6146 6147 6148 6149 # test EBCDIC or ASCII 6150 case `echo X|tr X '\101'` in 6151 A) # ASCII based system 6152 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6153 lt_SP2NL='tr \040 \012' 6154 lt_NL2SP='tr \015\012 \040\040' 6155 ;; 6156 *) # EBCDIC based system 6157 lt_SP2NL='tr \100 \n' 6158 lt_NL2SP='tr \r\n \100\100' 6159 ;; 6160 esac 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6171 printf %s "checking how to convert $build file names to $host format... " >&6; } 6172 if test ${lt_cv_to_host_file_cmd+y} 6173 then : 6174 printf %s "(cached) " >&6 6175 else case e in #( 6176 e) case $host in 6177 *-*-mingw* ) 6178 case $build in 6179 *-*-mingw* | *-*-windows* ) # actually msys 6180 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6181 ;; 6182 *-*-cygwin* ) 6183 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6184 ;; 6185 * ) # otherwise, assume *nix 6186 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6187 ;; 6188 esac 6189 ;; 6190 *-*-cygwin* ) 6191 case $build in 6192 *-*-mingw* | *-*-windows* ) # actually msys 6193 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6194 ;; 6195 *-*-cygwin* ) 6196 lt_cv_to_host_file_cmd=func_convert_file_noop 6197 ;; 6198 * ) # otherwise, assume *nix 6199 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6200 ;; 6201 esac 6202 ;; 6203 * ) # unhandled hosts (and "normal" native builds) 6204 lt_cv_to_host_file_cmd=func_convert_file_noop 6205 ;; 6206 esac 6207 ;; 6208 esac 6209 fi 6210 6211 to_host_file_cmd=$lt_cv_to_host_file_cmd 6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6213 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6214 6215 6216 6217 6218 6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6220 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6221 if test ${lt_cv_to_tool_file_cmd+y} 6222 then : 6223 printf %s "(cached) " >&6 6224 else case e in #( 6225 e) #assume ordinary cross tools, or native build. 6226 lt_cv_to_tool_file_cmd=func_convert_file_noop 6227 case $host in 6228 *-*-mingw* | *-*-windows* ) 6229 case $build in 6230 *-*-mingw* | *-*-windows* ) # actually msys 6231 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6232 ;; 6233 esac 6234 ;; 6235 esac 6236 ;; 6237 esac 6238 fi 6239 6240 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6242 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6243 6244 6245 6246 6247 6248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6249 printf %s "checking for $LD option to reload object files... " >&6; } 6250 if test ${lt_cv_ld_reload_flag+y} 6251 then : 6252 printf %s "(cached) " >&6 6253 else case e in #( 6254 e) lt_cv_ld_reload_flag='-r' ;; 6255 esac 6256 fi 6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6258 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6259 reload_flag=$lt_cv_ld_reload_flag 6260 case $reload_flag in 6261 "" | " "*) ;; 6262 *) reload_flag=" $reload_flag" ;; 6263 esac 6264 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6265 case $host_os in 6266 cygwin* | mingw* | windows* | pw32* | cegcc*) 6267 if test yes != "$GCC"; then 6268 reload_cmds=false 6269 fi 6270 ;; 6271 darwin*) 6272 if test yes = "$GCC"; then 6273 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6274 else 6275 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6276 fi 6277 ;; 6278 esac 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 # Extract the first word of "file", so it can be a program name with args. 6289 set dummy file; ac_word=$2 6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6291 printf %s "checking for $ac_word... " >&6; } 6292 if test ${ac_cv_prog_FILECMD+y} 6293 then : 6294 printf %s "(cached) " >&6 6295 else case e in #( 6296 e) if test -n "$FILECMD"; then 6297 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6298 else 6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6300 for as_dir in $PATH 6301 do 6302 IFS=$as_save_IFS 6303 case $as_dir in #((( 6304 '') as_dir=./ ;; 6305 */) ;; 6306 *) as_dir=$as_dir/ ;; 6307 esac 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6310 ac_cv_prog_FILECMD="file" 6311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6312 break 2 6313 fi 6314 done 6315 done 6316 IFS=$as_save_IFS 6317 6318 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" 6319 fi ;; 6320 esac 6321 fi 6322 FILECMD=$ac_cv_prog_FILECMD 6323 if test -n "$FILECMD"; then 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6325 printf "%s\n" "$FILECMD" >&6; } 6326 else 6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6328 printf "%s\n" "no" >&6; } 6329 fi 6330 6331 6332 6333 6334 6335 6336 6337 6338 if test -n "$ac_tool_prefix"; then 6339 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6340 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6342 printf %s "checking for $ac_word... " >&6; } 6343 if test ${ac_cv_prog_OBJDUMP+y} 6344 then : 6345 printf %s "(cached) " >&6 6346 else case e in #( 6347 e) if test -n "$OBJDUMP"; then 6348 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6349 else 6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351 for as_dir in $PATH 6352 do 6353 IFS=$as_save_IFS 6354 case $as_dir in #((( 6355 '') as_dir=./ ;; 6356 */) ;; 6357 *) as_dir=$as_dir/ ;; 6358 esac 6359 for ac_exec_ext in '' $ac_executable_extensions; do 6360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6361 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6363 break 2 6364 fi 6365 done 6366 done 6367 IFS=$as_save_IFS 6368 6369 fi ;; 6370 esac 6371 fi 6372 OBJDUMP=$ac_cv_prog_OBJDUMP 6373 if test -n "$OBJDUMP"; then 6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6375 printf "%s\n" "$OBJDUMP" >&6; } 6376 else 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6378 printf "%s\n" "no" >&6; } 6379 fi 6380 6381 6382 fi 6383 if test -z "$ac_cv_prog_OBJDUMP"; then 6384 ac_ct_OBJDUMP=$OBJDUMP 6385 # Extract the first word of "objdump", so it can be a program name with args. 6386 set dummy objdump; ac_word=$2 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6388 printf %s "checking for $ac_word... " >&6; } 6389 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6390 then : 6391 printf %s "(cached) " >&6 6392 else case e in #( 6393 e) if test -n "$ac_ct_OBJDUMP"; then 6394 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6395 else 6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6397 for as_dir in $PATH 6398 do 6399 IFS=$as_save_IFS 6400 case $as_dir in #((( 6401 '') as_dir=./ ;; 6402 */) ;; 6403 *) as_dir=$as_dir/ ;; 6404 esac 6405 for ac_exec_ext in '' $ac_executable_extensions; do 6406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6407 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6409 break 2 6410 fi 6411 done 6412 done 6413 IFS=$as_save_IFS 6414 6415 fi ;; 6416 esac 6417 fi 6418 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6419 if test -n "$ac_ct_OBJDUMP"; then 6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6421 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6422 else 6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6424 printf "%s\n" "no" >&6; } 6425 fi 6426 6427 if test "x$ac_ct_OBJDUMP" = x; then 6428 OBJDUMP="false" 6429 else 6430 case $cross_compiling:$ac_tool_warned in 6431 yes:) 6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6433 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6434 ac_tool_warned=yes ;; 6435 esac 6436 OBJDUMP=$ac_ct_OBJDUMP 6437 fi 6438 else 6439 OBJDUMP="$ac_cv_prog_OBJDUMP" 6440 fi 6441 6442 test -z "$OBJDUMP" && OBJDUMP=objdump 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6453 printf %s "checking how to recognize dependent libraries... " >&6; } 6454 if test ${lt_cv_deplibs_check_method+y} 6455 then : 6456 printf %s "(cached) " >&6 6457 else case e in #( 6458 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6459 lt_cv_file_magic_test_file= 6460 lt_cv_deplibs_check_method='unknown' 6461 # Need to set the preceding variable on all platforms that support 6462 # interlibrary dependencies. 6463 # 'none' -- dependencies not supported. 6464 # 'unknown' -- same as none, but documents that we really don't know. 6465 # 'pass_all' -- all dependencies passed with no checks. 6466 # 'file_magic [[regex]]' -- check by looking for files in library path 6467 # that responds to the $file_magic_cmd with a given extended regex. 6468 # If you have 'file' or equivalent on your system and you're not sure 6469 # whether 'pass_all' will *always* work, you probably want this one. 6470 6471 case $host_os in 6472 aix[4-9]*) 6473 lt_cv_deplibs_check_method=pass_all 6474 ;; 6475 6476 beos*) 6477 lt_cv_deplibs_check_method=pass_all 6478 ;; 6479 6480 bsdi[45]*) 6481 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6482 lt_cv_file_magic_cmd='$FILECMD -L' 6483 lt_cv_file_magic_test_file=/shlib/libc.so 6484 ;; 6485 6486 cygwin*) 6487 # func_win32_libid is a shell function defined in ltmain.sh 6488 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6489 lt_cv_file_magic_cmd='func_win32_libid' 6490 ;; 6491 6492 mingw* | windows* | pw32*) 6493 # Base MSYS/MinGW do not provide the 'file' command needed by 6494 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6495 # unless we find 'file', for example because we are cross-compiling. 6496 if ( file / ) >/dev/null 2>&1; then 6497 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6498 lt_cv_file_magic_cmd='func_win32_libid' 6499 else 6500 # Keep this pattern in sync with the one in func_win32_libid. 6501 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' 6502 lt_cv_file_magic_cmd='$OBJDUMP -f' 6503 fi 6504 ;; 6505 6506 cegcc*) 6507 # use the weaker test based on 'objdump'. See mingw*. 6508 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6509 lt_cv_file_magic_cmd='$OBJDUMP -f' 6510 ;; 6511 6512 darwin* | rhapsody*) 6513 lt_cv_deplibs_check_method=pass_all 6514 ;; 6515 6516 freebsd* | dragonfly* | midnightbsd*) 6517 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6518 case $host_cpu in 6519 i*86 ) 6520 # Not sure whether the presence of OpenBSD here was a mistake. 6521 # Let's accept both of them until this is cleared up. 6522 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6523 lt_cv_file_magic_cmd=$FILECMD 6524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6525 ;; 6526 esac 6527 else 6528 lt_cv_deplibs_check_method=pass_all 6529 fi 6530 ;; 6531 6532 haiku*) 6533 lt_cv_deplibs_check_method=pass_all 6534 ;; 6535 6536 hpux10.20* | hpux11*) 6537 lt_cv_file_magic_cmd=$FILECMD 6538 case $host_cpu in 6539 ia64*) 6540 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6541 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6542 ;; 6543 hppa*64*) 6544 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]' 6545 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6546 ;; 6547 *) 6548 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6549 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6550 ;; 6551 esac 6552 ;; 6553 6554 interix[3-9]*) 6555 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6557 ;; 6558 6559 irix5* | irix6* | nonstopux*) 6560 case $LD in 6561 *-32|*"-32 ") libmagic=32-bit;; 6562 *-n32|*"-n32 ") libmagic=N32;; 6563 *-64|*"-64 ") libmagic=64-bit;; 6564 *) libmagic=never-match;; 6565 esac 6566 lt_cv_deplibs_check_method=pass_all 6567 ;; 6568 6569 # This must be glibc/ELF. 6570 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6571 lt_cv_deplibs_check_method=pass_all 6572 ;; 6573 6574 *-mlibc) 6575 lt_cv_deplibs_check_method=pass_all 6576 ;; 6577 6578 netbsd* | netbsdelf*-gnu) 6579 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6581 else 6582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6583 fi 6584 ;; 6585 6586 newos6*) 6587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6588 lt_cv_file_magic_cmd=$FILECMD 6589 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6590 ;; 6591 6592 *nto* | *qnx*) 6593 lt_cv_deplibs_check_method=pass_all 6594 ;; 6595 6596 openbsd*) 6597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6599 else 6600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6601 fi 6602 ;; 6603 6604 osf3* | osf4* | osf5*) 6605 lt_cv_deplibs_check_method=pass_all 6606 ;; 6607 6608 rdos*) 6609 lt_cv_deplibs_check_method=pass_all 6610 ;; 6611 6612 serenity*) 6613 lt_cv_deplibs_check_method=pass_all 6614 ;; 6615 6616 solaris*) 6617 lt_cv_deplibs_check_method=pass_all 6618 ;; 6619 6620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6621 lt_cv_deplibs_check_method=pass_all 6622 ;; 6623 6624 sysv4 | sysv4.3*) 6625 case $host_vendor in 6626 motorola) 6627 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]' 6628 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6629 ;; 6630 ncr) 6631 lt_cv_deplibs_check_method=pass_all 6632 ;; 6633 sequent) 6634 lt_cv_file_magic_cmd='/bin/file' 6635 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6636 ;; 6637 sni) 6638 lt_cv_file_magic_cmd='/bin/file' 6639 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6640 lt_cv_file_magic_test_file=/lib/libc.so 6641 ;; 6642 siemens) 6643 lt_cv_deplibs_check_method=pass_all 6644 ;; 6645 pc) 6646 lt_cv_deplibs_check_method=pass_all 6647 ;; 6648 esac 6649 ;; 6650 6651 tpf*) 6652 lt_cv_deplibs_check_method=pass_all 6653 ;; 6654 os2*) 6655 lt_cv_deplibs_check_method=pass_all 6656 ;; 6657 esac 6658 ;; 6659 esac 6660 fi 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6662 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6663 6664 file_magic_glob= 6665 want_nocaseglob=no 6666 if test "$build" = "$host"; then 6667 case $host_os in 6668 mingw* | windows* | pw32*) 6669 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6670 want_nocaseglob=yes 6671 else 6672 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6673 fi 6674 ;; 6675 esac 6676 fi 6677 6678 file_magic_cmd=$lt_cv_file_magic_cmd 6679 deplibs_check_method=$lt_cv_deplibs_check_method 6680 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 if test -n "$ac_tool_prefix"; then 6704 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6705 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6707 printf %s "checking for $ac_word... " >&6; } 6708 if test ${ac_cv_prog_DLLTOOL+y} 6709 then : 6710 printf %s "(cached) " >&6 6711 else case e in #( 6712 e) if test -n "$DLLTOOL"; then 6713 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6714 else 6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6716 for as_dir in $PATH 6717 do 6718 IFS=$as_save_IFS 6719 case $as_dir in #((( 6720 '') as_dir=./ ;; 6721 */) ;; 6722 *) as_dir=$as_dir/ ;; 6723 esac 6724 for ac_exec_ext in '' $ac_executable_extensions; do 6725 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6726 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6727 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6728 break 2 6729 fi 6730 done 6731 done 6732 IFS=$as_save_IFS 6733 6734 fi ;; 6735 esac 6736 fi 6737 DLLTOOL=$ac_cv_prog_DLLTOOL 6738 if test -n "$DLLTOOL"; then 6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6740 printf "%s\n" "$DLLTOOL" >&6; } 6741 else 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6743 printf "%s\n" "no" >&6; } 6744 fi 6745 6746 6747 fi 6748 if test -z "$ac_cv_prog_DLLTOOL"; then 6749 ac_ct_DLLTOOL=$DLLTOOL 6750 # Extract the first word of "dlltool", so it can be a program name with args. 6751 set dummy dlltool; ac_word=$2 6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6753 printf %s "checking for $ac_word... " >&6; } 6754 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6755 then : 6756 printf %s "(cached) " >&6 6757 else case e in #( 6758 e) if test -n "$ac_ct_DLLTOOL"; then 6759 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6760 else 6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6762 for as_dir in $PATH 6763 do 6764 IFS=$as_save_IFS 6765 case $as_dir in #((( 6766 '') as_dir=./ ;; 6767 */) ;; 6768 *) as_dir=$as_dir/ ;; 6769 esac 6770 for ac_exec_ext in '' $ac_executable_extensions; do 6771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6772 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6774 break 2 6775 fi 6776 done 6777 done 6778 IFS=$as_save_IFS 6779 6780 fi ;; 6781 esac 6782 fi 6783 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6784 if test -n "$ac_ct_DLLTOOL"; then 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6786 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6787 else 6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6789 printf "%s\n" "no" >&6; } 6790 fi 6791 6792 if test "x$ac_ct_DLLTOOL" = x; then 6793 DLLTOOL="false" 6794 else 6795 case $cross_compiling:$ac_tool_warned in 6796 yes:) 6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6799 ac_tool_warned=yes ;; 6800 esac 6801 DLLTOOL=$ac_ct_DLLTOOL 6802 fi 6803 else 6804 DLLTOOL="$ac_cv_prog_DLLTOOL" 6805 fi 6806 6807 test -z "$DLLTOOL" && DLLTOOL=dlltool 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6819 printf %s "checking how to associate runtime and link libraries... " >&6; } 6820 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6821 then : 6822 printf %s "(cached) " >&6 6823 else case e in #( 6824 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6825 6826 case $host_os in 6827 cygwin* | mingw* | windows* | pw32* | cegcc*) 6828 # two different shell functions defined in ltmain.sh; 6829 # decide which one to use based on capabilities of $DLLTOOL 6830 case `$DLLTOOL --help 2>&1` in 6831 *--identify-strict*) 6832 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6833 ;; 6834 *) 6835 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6836 ;; 6837 esac 6838 ;; 6839 *) 6840 # fallback: assume linklib IS sharedlib 6841 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6842 ;; 6843 esac 6844 ;; 6845 esac 6846 fi 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6848 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6849 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6850 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6851 6852 6853 6854 6855 6856 6857 6858 if test -n "$ac_tool_prefix"; then 6859 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6860 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6862 printf %s "checking for $ac_word... " >&6; } 6863 if test ${ac_cv_prog_RANLIB+y} 6864 then : 6865 printf %s "(cached) " >&6 6866 else case e in #( 6867 e) if test -n "$RANLIB"; then 6868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6869 else 6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6871 for as_dir in $PATH 6872 do 6873 IFS=$as_save_IFS 6874 case $as_dir in #((( 6875 '') as_dir=./ ;; 6876 */) ;; 6877 *) as_dir=$as_dir/ ;; 6878 esac 6879 for ac_exec_ext in '' $ac_executable_extensions; do 6880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6883 break 2 6884 fi 6885 done 6886 done 6887 IFS=$as_save_IFS 6888 6889 fi ;; 6890 esac 6891 fi 6892 RANLIB=$ac_cv_prog_RANLIB 6893 if test -n "$RANLIB"; then 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6895 printf "%s\n" "$RANLIB" >&6; } 6896 else 6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6898 printf "%s\n" "no" >&6; } 6899 fi 6900 6901 6902 fi 6903 if test -z "$ac_cv_prog_RANLIB"; then 6904 ac_ct_RANLIB=$RANLIB 6905 # Extract the first word of "ranlib", so it can be a program name with args. 6906 set dummy ranlib; ac_word=$2 6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6908 printf %s "checking for $ac_word... " >&6; } 6909 if test ${ac_cv_prog_ac_ct_RANLIB+y} 6910 then : 6911 printf %s "(cached) " >&6 6912 else case e in #( 6913 e) if test -n "$ac_ct_RANLIB"; then 6914 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6915 else 6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917 for as_dir in $PATH 6918 do 6919 IFS=$as_save_IFS 6920 case $as_dir in #((( 6921 '') as_dir=./ ;; 6922 */) ;; 6923 *) as_dir=$as_dir/ ;; 6924 esac 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6927 ac_cv_prog_ac_ct_RANLIB="ranlib" 6928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931 done 6932 done 6933 IFS=$as_save_IFS 6934 6935 fi ;; 6936 esac 6937 fi 6938 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6939 if test -n "$ac_ct_RANLIB"; then 6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6941 printf "%s\n" "$ac_ct_RANLIB" >&6; } 6942 else 6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6944 printf "%s\n" "no" >&6; } 6945 fi 6946 6947 if test "x$ac_ct_RANLIB" = x; then 6948 RANLIB=":" 6949 else 6950 case $cross_compiling:$ac_tool_warned in 6951 yes:) 6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6954 ac_tool_warned=yes ;; 6955 esac 6956 RANLIB=$ac_ct_RANLIB 6957 fi 6958 else 6959 RANLIB="$ac_cv_prog_RANLIB" 6960 fi 6961 6962 if test -n "$ac_tool_prefix"; then 6963 for ac_prog in ar 6964 do 6965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6968 printf %s "checking for $ac_word... " >&6; } 6969 if test ${ac_cv_prog_AR+y} 6970 then : 6971 printf %s "(cached) " >&6 6972 else case e in #( 6973 e) if test -n "$AR"; then 6974 ac_cv_prog_AR="$AR" # Let the user override the test. 6975 else 6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6977 for as_dir in $PATH 6978 do 6979 IFS=$as_save_IFS 6980 case $as_dir in #((( 6981 '') as_dir=./ ;; 6982 */) ;; 6983 *) as_dir=$as_dir/ ;; 6984 esac 6985 for ac_exec_ext in '' $ac_executable_extensions; do 6986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6987 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6989 break 2 6990 fi 6991 done 6992 done 6993 IFS=$as_save_IFS 6994 6995 fi ;; 6996 esac 6997 fi 6998 AR=$ac_cv_prog_AR 6999 if test -n "$AR"; then 7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7001 printf "%s\n" "$AR" >&6; } 7002 else 7003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7004 printf "%s\n" "no" >&6; } 7005 fi 7006 7007 7008 test -n "$AR" && break 7009 done 7010 fi 7011 if test -z "$AR"; then 7012 ac_ct_AR=$AR 7013 for ac_prog in ar 7014 do 7015 # Extract the first word of "$ac_prog", so it can be a program name with args. 7016 set dummy $ac_prog; ac_word=$2 7017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7018 printf %s "checking for $ac_word... " >&6; } 7019 if test ${ac_cv_prog_ac_ct_AR+y} 7020 then : 7021 printf %s "(cached) " >&6 7022 else case e in #( 7023 e) if test -n "$ac_ct_AR"; then 7024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7025 else 7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027 for as_dir in $PATH 7028 do 7029 IFS=$as_save_IFS 7030 case $as_dir in #((( 7031 '') as_dir=./ ;; 7032 */) ;; 7033 *) as_dir=$as_dir/ ;; 7034 esac 7035 for ac_exec_ext in '' $ac_executable_extensions; do 7036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7037 ac_cv_prog_ac_ct_AR="$ac_prog" 7038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7039 break 2 7040 fi 7041 done 7042 done 7043 IFS=$as_save_IFS 7044 7045 fi ;; 7046 esac 7047 fi 7048 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7049 if test -n "$ac_ct_AR"; then 7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7051 printf "%s\n" "$ac_ct_AR" >&6; } 7052 else 7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7054 printf "%s\n" "no" >&6; } 7055 fi 7056 7057 7058 test -n "$ac_ct_AR" && break 7059 done 7060 7061 if test "x$ac_ct_AR" = x; then 7062 AR="false" 7063 else 7064 case $cross_compiling:$ac_tool_warned in 7065 yes:) 7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7068 ac_tool_warned=yes ;; 7069 esac 7070 AR=$ac_ct_AR 7071 fi 7072 fi 7073 7074 : ${AR=ar} 7075 7076 7077 7078 7079 7080 7081 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 7082 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7083 # higher priority because that's what people were doing historically (setting 7084 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7085 # variable obsoleted/removed. 7086 7087 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7088 lt_ar_flags=$AR_FLAGS 7089 7090 7091 7092 7093 7094 7095 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7096 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7097 7098 7099 7100 7101 7102 7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7104 printf %s "checking for archiver @FILE support... " >&6; } 7105 if test ${lt_cv_ar_at_file+y} 7106 then : 7107 printf %s "(cached) " >&6 7108 else case e in #( 7109 e) lt_cv_ar_at_file=no 7110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7111 /* end confdefs.h. */ 7112 7113 int 7114 main (void) 7115 { 7116 7117 ; 7118 return 0; 7119 } 7120 _ACEOF 7121 if ac_fn_c_try_compile "$LINENO" 7122 then : 7123 echo conftest.$ac_objext > conftest.lst 7124 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7126 (eval $lt_ar_try) 2>&5 7127 ac_status=$? 7128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7129 test $ac_status = 0; } 7130 if test 0 -eq "$ac_status"; then 7131 # Ensure the archiver fails upon bogus file names. 7132 rm -f conftest.$ac_objext libconftest.a 7133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7134 (eval $lt_ar_try) 2>&5 7135 ac_status=$? 7136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7137 test $ac_status = 0; } 7138 if test 0 -ne "$ac_status"; then 7139 lt_cv_ar_at_file=@ 7140 fi 7141 fi 7142 rm -f conftest.* libconftest.a 7143 7144 fi 7145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7146 ;; 7147 esac 7148 fi 7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7150 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7151 7152 if test no = "$lt_cv_ar_at_file"; then 7153 archiver_list_spec= 7154 else 7155 archiver_list_spec=$lt_cv_ar_at_file 7156 fi 7157 7158 7159 7160 7161 7162 7163 7164 if test -n "$ac_tool_prefix"; then 7165 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7166 set dummy ${ac_tool_prefix}strip; ac_word=$2 7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7168 printf %s "checking for $ac_word... " >&6; } 7169 if test ${ac_cv_prog_STRIP+y} 7170 then : 7171 printf %s "(cached) " >&6 7172 else case e in #( 7173 e) if test -n "$STRIP"; then 7174 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7175 else 7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7177 for as_dir in $PATH 7178 do 7179 IFS=$as_save_IFS 7180 case $as_dir in #((( 7181 '') as_dir=./ ;; 7182 */) ;; 7183 *) as_dir=$as_dir/ ;; 7184 esac 7185 for ac_exec_ext in '' $ac_executable_extensions; do 7186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7187 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7189 break 2 7190 fi 7191 done 7192 done 7193 IFS=$as_save_IFS 7194 7195 fi ;; 7196 esac 7197 fi 7198 STRIP=$ac_cv_prog_STRIP 7199 if test -n "$STRIP"; then 7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7201 printf "%s\n" "$STRIP" >&6; } 7202 else 7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7204 printf "%s\n" "no" >&6; } 7205 fi 7206 7207 7208 fi 7209 if test -z "$ac_cv_prog_STRIP"; then 7210 ac_ct_STRIP=$STRIP 7211 # Extract the first word of "strip", so it can be a program name with args. 7212 set dummy strip; ac_word=$2 7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7214 printf %s "checking for $ac_word... " >&6; } 7215 if test ${ac_cv_prog_ac_ct_STRIP+y} 7216 then : 7217 printf %s "(cached) " >&6 7218 else case e in #( 7219 e) if test -n "$ac_ct_STRIP"; then 7220 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7221 else 7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7223 for as_dir in $PATH 7224 do 7225 IFS=$as_save_IFS 7226 case $as_dir in #((( 7227 '') as_dir=./ ;; 7228 */) ;; 7229 *) as_dir=$as_dir/ ;; 7230 esac 7231 for ac_exec_ext in '' $ac_executable_extensions; do 7232 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7233 ac_cv_prog_ac_ct_STRIP="strip" 7234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7235 break 2 7236 fi 7237 done 7238 done 7239 IFS=$as_save_IFS 7240 7241 fi ;; 7242 esac 7243 fi 7244 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7245 if test -n "$ac_ct_STRIP"; then 7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7247 printf "%s\n" "$ac_ct_STRIP" >&6; } 7248 else 7249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7250 printf "%s\n" "no" >&6; } 7251 fi 7252 7253 if test "x$ac_ct_STRIP" = x; then 7254 STRIP=":" 7255 else 7256 case $cross_compiling:$ac_tool_warned in 7257 yes:) 7258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7259 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7260 ac_tool_warned=yes ;; 7261 esac 7262 STRIP=$ac_ct_STRIP 7263 fi 7264 else 7265 STRIP="$ac_cv_prog_STRIP" 7266 fi 7267 7268 test -z "$STRIP" && STRIP=: 7269 7270 7271 7272 7273 7274 7275 7276 test -z "$RANLIB" && RANLIB=: 7277 7278 7279 7280 7281 7282 7283 # Determine commands to create old-style static archives. 7284 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7285 old_postinstall_cmds='chmod 644 $oldlib' 7286 old_postuninstall_cmds= 7287 7288 if test -n "$RANLIB"; then 7289 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7290 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7291 fi 7292 7293 case $host_os in 7294 darwin*) 7295 lock_old_archive_extraction=yes ;; 7296 *) 7297 lock_old_archive_extraction=no ;; 7298 esac 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 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 # If no C compiler was specified, use CC. 7339 LTCC=${LTCC-"$CC"} 7340 7341 # If no C compiler flags were specified, use CFLAGS. 7342 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7343 7344 # Allow CC to be a program name with arguments. 7345 compiler=$CC 7346 7347 7348 # Check for command to grab the raw symbol name followed by C symbol from nm. 7349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7350 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7351 if test ${lt_cv_sys_global_symbol_pipe+y} 7352 then : 7353 printf %s "(cached) " >&6 7354 else case e in #( 7355 e) 7356 # These are sane defaults that work on at least a few old systems. 7357 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7358 7359 # Character class describing NM global symbol codes. 7360 symcode='[BCDEGRST]' 7361 7362 # Regexp to match symbols that can be accessed directly from C. 7363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7364 7365 # Define system-specific variables. 7366 case $host_os in 7367 aix*) 7368 symcode='[BCDT]' 7369 ;; 7370 cygwin* | mingw* | windows* | pw32* | cegcc*) 7371 symcode='[ABCDGISTW]' 7372 ;; 7373 hpux*) 7374 if test ia64 = "$host_cpu"; then 7375 symcode='[ABCDEGRST]' 7376 fi 7377 ;; 7378 irix* | nonstopux*) 7379 symcode='[BCDEGRST]' 7380 ;; 7381 osf*) 7382 symcode='[BCDEGQRST]' 7383 ;; 7384 solaris*) 7385 symcode='[BCDRT]' 7386 ;; 7387 sco3.2v5*) 7388 symcode='[DT]' 7389 ;; 7390 sysv4.2uw2*) 7391 symcode='[DT]' 7392 ;; 7393 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7394 symcode='[ABDT]' 7395 ;; 7396 sysv4) 7397 symcode='[DFNSTU]' 7398 ;; 7399 esac 7400 7401 # If we're using GNU nm, then use its standard symbol codes. 7402 case `$NM -V 2>&1` in 7403 *GNU* | *'with BFD'*) 7404 symcode='[ABCDGIRSTW]' ;; 7405 esac 7406 7407 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7408 # Gets list of data symbols to import. 7409 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7410 # Adjust the below global symbol transforms to fixup imported variables. 7411 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7412 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7413 lt_c_name_lib_hook="\ 7414 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7415 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7416 else 7417 # Disable hooks by default. 7418 lt_cv_sys_global_symbol_to_import= 7419 lt_cdecl_hook= 7420 lt_c_name_hook= 7421 lt_c_name_lib_hook= 7422 fi 7423 7424 # Transform an extracted symbol line into a proper C declaration. 7425 # Some systems (esp. on ia64) link data and code symbols differently, 7426 # so use this general approach. 7427 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7428 $lt_cdecl_hook\ 7429 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7430 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7431 7432 # Transform an extracted symbol line into symbol name and symbol address 7433 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7434 $lt_c_name_hook\ 7435 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7436 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7437 7438 # Transform an extracted symbol line into symbol name with lib prefix and 7439 # symbol address. 7440 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7441 $lt_c_name_lib_hook\ 7442 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7443 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7444 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7445 7446 # Handle CRLF in mingw tool chain 7447 opt_cr= 7448 case $build_os in 7449 mingw* | windows*) 7450 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7451 ;; 7452 esac 7453 7454 # Try without a prefix underscore, then with it. 7455 for ac_symprfx in "" "_"; do 7456 7457 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7458 symxfrm="\\1 $ac_symprfx\\2 \\2" 7459 7460 # Write the raw and C identifiers. 7461 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7462 # Fake it for dumpbin and say T for any non-static function, 7463 # D for any global variable and I for any imported variable. 7464 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7465 # which start with @ or ?. 7466 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7467 " {last_section=section; section=\$ 3};"\ 7468 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7469 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7470 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7471 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7472 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7473 " \$ 0!~/External *\|/{next};"\ 7474 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7475 " {if(hide[section]) next};"\ 7476 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7477 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7478 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7479 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7480 " ' prfx=^$ac_symprfx" 7481 else 7482 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7483 fi 7484 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7485 7486 # Check to see that the pipe works correctly. 7487 pipe_works=no 7488 7489 rm -f conftest* 7490 cat > conftest.$ac_ext <<_LT_EOF 7491 #ifdef __cplusplus 7492 extern "C" { 7493 #endif 7494 char nm_test_var; 7495 void nm_test_func(void); 7496 void nm_test_func(void){} 7497 #ifdef __cplusplus 7498 } 7499 #endif 7500 int main(void){nm_test_var='a';nm_test_func();return(0);} 7501 _LT_EOF 7502 7503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7504 (eval $ac_compile) 2>&5 7505 ac_status=$? 7506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7507 test $ac_status = 0; }; then 7508 # Now try to grab the symbols. 7509 nlist=conftest.nm 7510 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 7511 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 7512 # Try sorting and uniquifying the output. 7513 if sort "$nlist" | uniq > "$nlist"T; then 7514 mv -f "$nlist"T "$nlist" 7515 else 7516 rm -f "$nlist"T 7517 fi 7518 7519 # Make sure that we snagged all the symbols we need. 7520 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7521 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7522 cat <<_LT_EOF > conftest.$ac_ext 7523 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7524 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7525 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7526 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7527 # define LT_DLSYM_CONST 7528 #elif defined __osf__ 7529 /* This system does not cope well with relocations in const data. */ 7530 # define LT_DLSYM_CONST 7531 #else 7532 # define LT_DLSYM_CONST const 7533 #endif 7534 7535 #ifdef __cplusplus 7536 extern "C" { 7537 #endif 7538 7539 _LT_EOF 7540 # Now generate the symbol file. 7541 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7542 7543 cat <<_LT_EOF >> conftest.$ac_ext 7544 7545 /* The mapping between symbol names and symbols. */ 7546 LT_DLSYM_CONST struct { 7547 const char *name; 7548 void *address; 7549 } 7550 lt__PROGRAM__LTX_preloaded_symbols[] = 7551 { 7552 { "@PROGRAM@", (void *) 0 }, 7553 _LT_EOF 7554 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7555 cat <<\_LT_EOF >> conftest.$ac_ext 7556 {0, (void *) 0} 7557 }; 7558 7559 /* This works around a problem in FreeBSD linker */ 7560 #ifdef FREEBSD_WORKAROUND 7561 static const void *lt_preloaded_setup() { 7562 return lt__PROGRAM__LTX_preloaded_symbols; 7563 } 7564 #endif 7565 7566 #ifdef __cplusplus 7567 } 7568 #endif 7569 _LT_EOF 7570 # Now try linking the two files. 7571 mv conftest.$ac_objext conftstm.$ac_objext 7572 lt_globsym_save_LIBS=$LIBS 7573 lt_globsym_save_CFLAGS=$CFLAGS 7574 LIBS=conftstm.$ac_objext 7575 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7577 (eval $ac_link) 2>&5 7578 ac_status=$? 7579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7580 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7581 pipe_works=yes 7582 fi 7583 LIBS=$lt_globsym_save_LIBS 7584 CFLAGS=$lt_globsym_save_CFLAGS 7585 else 7586 echo "cannot find nm_test_func in $nlist" >&5 7587 fi 7588 else 7589 echo "cannot find nm_test_var in $nlist" >&5 7590 fi 7591 else 7592 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7593 fi 7594 else 7595 echo "$progname: failed program was:" >&5 7596 cat conftest.$ac_ext >&5 7597 fi 7598 rm -rf conftest* conftst* 7599 7600 # Do not use the global_symbol_pipe unless it works. 7601 if test yes = "$pipe_works"; then 7602 break 7603 else 7604 lt_cv_sys_global_symbol_pipe= 7605 fi 7606 done 7607 ;; 7608 esac 7609 fi 7610 7611 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7612 lt_cv_sys_global_symbol_to_cdecl= 7613 fi 7614 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7616 printf "%s\n" "failed" >&6; } 7617 else 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7619 printf "%s\n" "ok" >&6; } 7620 fi 7621 7622 # Response file support. 7623 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7624 nm_file_list_spec='@' 7625 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7626 nm_file_list_spec='@' 7627 fi 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 7657 7658 7659 7660 7661 7662 7663 7664 7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7666 printf %s "checking for sysroot... " >&6; } 7667 7668 # Check whether --with-sysroot was given. 7669 if test ${with_sysroot+y} 7670 then : 7671 withval=$with_sysroot; 7672 else case e in #( 7673 e) with_sysroot=no ;; 7674 esac 7675 fi 7676 7677 7678 lt_sysroot= 7679 case $with_sysroot in #( 7680 yes) 7681 if test yes = "$GCC"; then 7682 # Trim trailing / since we'll always append absolute paths and we want 7683 # to avoid //, if only for less confusing output for the user. 7684 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` 7685 fi 7686 ;; #( 7687 /*) 7688 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7689 ;; #( 7690 no|'') 7691 ;; #( 7692 *) 7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7694 printf "%s\n" "$with_sysroot" >&6; } 7695 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7696 ;; 7697 esac 7698 7699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7700 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7701 7702 7703 7704 7705 7706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7707 printf %s "checking for a working dd... " >&6; } 7708 if test ${ac_cv_path_lt_DD+y} 7709 then : 7710 printf %s "(cached) " >&6 7711 else case e in #( 7712 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7713 cat conftest.i conftest.i >conftest2.i 7714 : ${lt_DD:=$DD} 7715 if test -z "$lt_DD"; then 7716 ac_path_lt_DD_found=false 7717 # Loop through the user's path and test for each of PROGNAME-LIST 7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7719 for as_dir in $PATH 7720 do 7721 IFS=$as_save_IFS 7722 case $as_dir in #((( 7723 '') as_dir=./ ;; 7724 */) ;; 7725 *) as_dir=$as_dir/ ;; 7726 esac 7727 for ac_prog in dd 7728 do 7729 for ac_exec_ext in '' $ac_executable_extensions; do 7730 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7731 as_fn_executable_p "$ac_path_lt_DD" || continue 7732 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7733 cmp -s conftest.i conftest.out \ 7734 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7735 fi 7736 $ac_path_lt_DD_found && break 3 7737 done 7738 done 7739 done 7740 IFS=$as_save_IFS 7741 if test -z "$ac_cv_path_lt_DD"; then 7742 : 7743 fi 7744 else 7745 ac_cv_path_lt_DD=$lt_DD 7746 fi 7747 7748 rm -f conftest.i conftest2.i conftest.out ;; 7749 esac 7750 fi 7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7752 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7753 7754 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7756 printf %s "checking how to truncate binary pipes... " >&6; } 7757 if test ${lt_cv_truncate_bin+y} 7758 then : 7759 printf %s "(cached) " >&6 7760 else case e in #( 7761 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7762 cat conftest.i conftest.i >conftest2.i 7763 lt_cv_truncate_bin= 7764 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7765 cmp -s conftest.i conftest.out \ 7766 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7767 fi 7768 rm -f conftest.i conftest2.i conftest.out 7769 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7770 esac 7771 fi 7772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7773 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7774 7775 7776 7777 7778 7779 7780 7781 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7782 func_cc_basename () 7783 { 7784 for cc_temp in $*""; do 7785 case $cc_temp in 7786 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7787 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7788 \-*) ;; 7789 *) break;; 7790 esac 7791 done 7792 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7793 } 7794 7795 # Check whether --enable-libtool-lock was given. 7796 if test ${enable_libtool_lock+y} 7797 then : 7798 enableval=$enable_libtool_lock; 7799 fi 7800 7801 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7802 7803 # Some flags need to be propagated to the compiler or linker for good 7804 # libtool support. 7805 case $host in 7806 ia64-*-hpux*) 7807 # Find out what ABI is being produced by ac_compile, and set mode 7808 # options accordingly. 7809 echo 'int i;' > conftest.$ac_ext 7810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7811 (eval $ac_compile) 2>&5 7812 ac_status=$? 7813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7814 test $ac_status = 0; }; then 7815 case `$FILECMD conftest.$ac_objext` in 7816 *ELF-32*) 7817 HPUX_IA64_MODE=32 7818 ;; 7819 *ELF-64*) 7820 HPUX_IA64_MODE=64 7821 ;; 7822 esac 7823 fi 7824 rm -rf conftest* 7825 ;; 7826 *-*-irix6*) 7827 # Find out what ABI is being produced by ac_compile, and set linker 7828 # options accordingly. 7829 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7831 (eval $ac_compile) 2>&5 7832 ac_status=$? 7833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7834 test $ac_status = 0; }; then 7835 if test yes = "$lt_cv_prog_gnu_ld"; then 7836 case `$FILECMD conftest.$ac_objext` in 7837 *32-bit*) 7838 LD="${LD-ld} -melf32bsmip" 7839 ;; 7840 *N32*) 7841 LD="${LD-ld} -melf32bmipn32" 7842 ;; 7843 *64-bit*) 7844 LD="${LD-ld} -melf64bmip" 7845 ;; 7846 esac 7847 else 7848 case `$FILECMD conftest.$ac_objext` in 7849 *32-bit*) 7850 LD="${LD-ld} -32" 7851 ;; 7852 *N32*) 7853 LD="${LD-ld} -n32" 7854 ;; 7855 *64-bit*) 7856 LD="${LD-ld} -64" 7857 ;; 7858 esac 7859 fi 7860 fi 7861 rm -rf conftest* 7862 ;; 7863 7864 mips64*-*linux*) 7865 # Find out what ABI is being produced by ac_compile, and set linker 7866 # options accordingly. 7867 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7869 (eval $ac_compile) 2>&5 7870 ac_status=$? 7871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7872 test $ac_status = 0; }; then 7873 emul=elf 7874 case `$FILECMD conftest.$ac_objext` in 7875 *32-bit*) 7876 emul="${emul}32" 7877 ;; 7878 *64-bit*) 7879 emul="${emul}64" 7880 ;; 7881 esac 7882 case `$FILECMD conftest.$ac_objext` in 7883 *MSB*) 7884 emul="${emul}btsmip" 7885 ;; 7886 *LSB*) 7887 emul="${emul}ltsmip" 7888 ;; 7889 esac 7890 case `$FILECMD conftest.$ac_objext` in 7891 *N32*) 7892 emul="${emul}n32" 7893 ;; 7894 esac 7895 LD="${LD-ld} -m $emul" 7896 fi 7897 rm -rf conftest* 7898 ;; 7899 7900 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7901 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) 7902 # Find out what ABI is being produced by ac_compile, and set linker 7903 # options accordingly. Note that the listed cases only cover the 7904 # situations where additional linker options are needed (such as when 7905 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7906 # vice versa); the common cases where no linker options are needed do 7907 # not appear in the list. 7908 echo 'int i;' > conftest.$ac_ext 7909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7910 (eval $ac_compile) 2>&5 7911 ac_status=$? 7912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7913 test $ac_status = 0; }; then 7914 case `$FILECMD conftest.o` in 7915 *32-bit*) 7916 case $host in 7917 x86_64-*kfreebsd*-gnu) 7918 LD="${LD-ld} -m elf_i386_fbsd" 7919 ;; 7920 x86_64-*linux*|x86_64-gnu*) 7921 case `$FILECMD conftest.o` in 7922 *x86-64*) 7923 LD="${LD-ld} -m elf32_x86_64" 7924 ;; 7925 *) 7926 LD="${LD-ld} -m elf_i386" 7927 ;; 7928 esac 7929 ;; 7930 powerpc64le-*linux*) 7931 LD="${LD-ld} -m elf32lppclinux" 7932 ;; 7933 powerpc64-*linux*) 7934 LD="${LD-ld} -m elf32ppclinux" 7935 ;; 7936 s390x-*linux*) 7937 LD="${LD-ld} -m elf_s390" 7938 ;; 7939 sparc64-*linux*) 7940 LD="${LD-ld} -m elf32_sparc" 7941 ;; 7942 esac 7943 ;; 7944 *64-bit*) 7945 case $host in 7946 x86_64-*kfreebsd*-gnu) 7947 LD="${LD-ld} -m elf_x86_64_fbsd" 7948 ;; 7949 x86_64-*linux*|x86_64-gnu*) 7950 LD="${LD-ld} -m elf_x86_64" 7951 ;; 7952 powerpcle-*linux*) 7953 LD="${LD-ld} -m elf64lppc" 7954 ;; 7955 powerpc-*linux*) 7956 LD="${LD-ld} -m elf64ppc" 7957 ;; 7958 s390*-*linux*|s390*-*tpf*) 7959 LD="${LD-ld} -m elf64_s390" 7960 ;; 7961 sparc*-*linux*) 7962 LD="${LD-ld} -m elf64_sparc" 7963 ;; 7964 esac 7965 ;; 7966 esac 7967 fi 7968 rm -rf conftest* 7969 ;; 7970 7971 *-*-sco3.2v5*) 7972 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7973 SAVE_CFLAGS=$CFLAGS 7974 CFLAGS="$CFLAGS -belf" 7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7976 printf %s "checking whether the C compiler needs -belf... " >&6; } 7977 if test ${lt_cv_cc_needs_belf+y} 7978 then : 7979 printf %s "(cached) " >&6 7980 else case e in #( 7981 e) ac_ext=c 7982 ac_cpp='$CPP $CPPFLAGS' 7983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7985 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7986 7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7988 /* end confdefs.h. */ 7989 7990 int 7991 main (void) 7992 { 7993 7994 ; 7995 return 0; 7996 } 7997 _ACEOF 7998 if ac_fn_c_try_link "$LINENO" 7999 then : 8000 lt_cv_cc_needs_belf=yes 8001 else case e in #( 8002 e) lt_cv_cc_needs_belf=no ;; 8003 esac 8004 fi 8005 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8006 conftest$ac_exeext conftest.$ac_ext 8007 ac_ext=c 8008 ac_cpp='$CPP $CPPFLAGS' 8009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8011 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8012 ;; 8013 esac 8014 fi 8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8016 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8017 if test yes != "$lt_cv_cc_needs_belf"; then 8018 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8019 CFLAGS=$SAVE_CFLAGS 8020 fi 8021 ;; 8022 *-*solaris*) 8023 # Find out what ABI is being produced by ac_compile, and set linker 8024 # options accordingly. 8025 echo 'int i;' > conftest.$ac_ext 8026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8027 (eval $ac_compile) 2>&5 8028 ac_status=$? 8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8030 test $ac_status = 0; }; then 8031 case `$FILECMD conftest.o` in 8032 *64-bit*) 8033 case $lt_cv_prog_gnu_ld in 8034 yes*) 8035 case $host in 8036 i?86-*-solaris*|x86_64-*-solaris*) 8037 LD="${LD-ld} -m elf_x86_64" 8038 ;; 8039 sparc*-*-solaris*) 8040 LD="${LD-ld} -m elf64_sparc" 8041 ;; 8042 esac 8043 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8044 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8045 LD=${LD-ld}_sol2 8046 fi 8047 ;; 8048 *) 8049 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8050 LD="${LD-ld} -64" 8051 fi 8052 ;; 8053 esac 8054 ;; 8055 esac 8056 fi 8057 rm -rf conftest* 8058 ;; 8059 esac 8060 8061 need_locks=$enable_libtool_lock 8062 8063 if test -n "$ac_tool_prefix"; then 8064 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8065 set dummy ${ac_tool_prefix}mt; ac_word=$2 8066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8067 printf %s "checking for $ac_word... " >&6; } 8068 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8069 then : 8070 printf %s "(cached) " >&6 8071 else case e in #( 8072 e) if test -n "$MANIFEST_TOOL"; then 8073 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8074 else 8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8076 for as_dir in $PATH 8077 do 8078 IFS=$as_save_IFS 8079 case $as_dir in #((( 8080 '') as_dir=./ ;; 8081 */) ;; 8082 *) as_dir=$as_dir/ ;; 8083 esac 8084 for ac_exec_ext in '' $ac_executable_extensions; do 8085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8086 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8088 break 2 8089 fi 8090 done 8091 done 8092 IFS=$as_save_IFS 8093 8094 fi ;; 8095 esac 8096 fi 8097 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8098 if test -n "$MANIFEST_TOOL"; then 8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8100 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8101 else 8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8103 printf "%s\n" "no" >&6; } 8104 fi 8105 8106 8107 fi 8108 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8109 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8110 # Extract the first word of "mt", so it can be a program name with args. 8111 set dummy mt; ac_word=$2 8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8113 printf %s "checking for $ac_word... " >&6; } 8114 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8115 then : 8116 printf %s "(cached) " >&6 8117 else case e in #( 8118 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8119 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8120 else 8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8122 for as_dir in $PATH 8123 do 8124 IFS=$as_save_IFS 8125 case $as_dir in #((( 8126 '') as_dir=./ ;; 8127 */) ;; 8128 *) as_dir=$as_dir/ ;; 8129 esac 8130 for ac_exec_ext in '' $ac_executable_extensions; do 8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8132 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8134 break 2 8135 fi 8136 done 8137 done 8138 IFS=$as_save_IFS 8139 8140 fi ;; 8141 esac 8142 fi 8143 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8144 if test -n "$ac_ct_MANIFEST_TOOL"; then 8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8146 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8147 else 8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8149 printf "%s\n" "no" >&6; } 8150 fi 8151 8152 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8153 MANIFEST_TOOL=":" 8154 else 8155 case $cross_compiling:$ac_tool_warned in 8156 yes:) 8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8158 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8159 ac_tool_warned=yes ;; 8160 esac 8161 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8162 fi 8163 else 8164 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8165 fi 8166 8167 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8169 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8170 if test ${lt_cv_path_manifest_tool+y} 8171 then : 8172 printf %s "(cached) " >&6 8173 else case e in #( 8174 e) lt_cv_path_manifest_tool=no 8175 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8176 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8177 cat conftest.err >&5 8178 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8179 lt_cv_path_manifest_tool=yes 8180 fi 8181 rm -f conftest* ;; 8182 esac 8183 fi 8184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 8185 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } 8186 if test yes != "$lt_cv_path_manifest_tool"; then 8187 MANIFEST_TOOL=: 8188 fi 8189 8190 8191 8192 8193 8194 8195 case $host_os in 8196 rhapsody* | darwin*) 8197 if test -n "$ac_tool_prefix"; then 8198 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8199 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8201 printf %s "checking for $ac_word... " >&6; } 8202 if test ${ac_cv_prog_DSYMUTIL+y} 8203 then : 8204 printf %s "(cached) " >&6 8205 else case e in #( 8206 e) if test -n "$DSYMUTIL"; then 8207 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8208 else 8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8210 for as_dir in $PATH 8211 do 8212 IFS=$as_save_IFS 8213 case $as_dir in #((( 8214 '') as_dir=./ ;; 8215 */) ;; 8216 *) as_dir=$as_dir/ ;; 8217 esac 8218 for ac_exec_ext in '' $ac_executable_extensions; do 8219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8220 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8222 break 2 8223 fi 8224 done 8225 done 8226 IFS=$as_save_IFS 8227 8228 fi ;; 8229 esac 8230 fi 8231 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8232 if test -n "$DSYMUTIL"; then 8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8234 printf "%s\n" "$DSYMUTIL" >&6; } 8235 else 8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8237 printf "%s\n" "no" >&6; } 8238 fi 8239 8240 8241 fi 8242 if test -z "$ac_cv_prog_DSYMUTIL"; then 8243 ac_ct_DSYMUTIL=$DSYMUTIL 8244 # Extract the first word of "dsymutil", so it can be a program name with args. 8245 set dummy dsymutil; ac_word=$2 8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8247 printf %s "checking for $ac_word... " >&6; } 8248 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8249 then : 8250 printf %s "(cached) " >&6 8251 else case e in #( 8252 e) if test -n "$ac_ct_DSYMUTIL"; then 8253 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8254 else 8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8256 for as_dir in $PATH 8257 do 8258 IFS=$as_save_IFS 8259 case $as_dir in #((( 8260 '') as_dir=./ ;; 8261 */) ;; 8262 *) as_dir=$as_dir/ ;; 8263 esac 8264 for ac_exec_ext in '' $ac_executable_extensions; do 8265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8266 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8268 break 2 8269 fi 8270 done 8271 done 8272 IFS=$as_save_IFS 8273 8274 fi ;; 8275 esac 8276 fi 8277 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8278 if test -n "$ac_ct_DSYMUTIL"; then 8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8280 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8281 else 8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8283 printf "%s\n" "no" >&6; } 8284 fi 8285 8286 if test "x$ac_ct_DSYMUTIL" = x; then 8287 DSYMUTIL=":" 8288 else 8289 case $cross_compiling:$ac_tool_warned in 8290 yes:) 8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8293 ac_tool_warned=yes ;; 8294 esac 8295 DSYMUTIL=$ac_ct_DSYMUTIL 8296 fi 8297 else 8298 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8299 fi 8300 8301 if test -n "$ac_tool_prefix"; then 8302 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8303 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8305 printf %s "checking for $ac_word... " >&6; } 8306 if test ${ac_cv_prog_NMEDIT+y} 8307 then : 8308 printf %s "(cached) " >&6 8309 else case e in #( 8310 e) if test -n "$NMEDIT"; then 8311 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8312 else 8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8314 for as_dir in $PATH 8315 do 8316 IFS=$as_save_IFS 8317 case $as_dir in #((( 8318 '') as_dir=./ ;; 8319 */) ;; 8320 *) as_dir=$as_dir/ ;; 8321 esac 8322 for ac_exec_ext in '' $ac_executable_extensions; do 8323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8324 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8326 break 2 8327 fi 8328 done 8329 done 8330 IFS=$as_save_IFS 8331 8332 fi ;; 8333 esac 8334 fi 8335 NMEDIT=$ac_cv_prog_NMEDIT 8336 if test -n "$NMEDIT"; then 8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8338 printf "%s\n" "$NMEDIT" >&6; } 8339 else 8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8341 printf "%s\n" "no" >&6; } 8342 fi 8343 8344 8345 fi 8346 if test -z "$ac_cv_prog_NMEDIT"; then 8347 ac_ct_NMEDIT=$NMEDIT 8348 # Extract the first word of "nmedit", so it can be a program name with args. 8349 set dummy nmedit; ac_word=$2 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8351 printf %s "checking for $ac_word... " >&6; } 8352 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8353 then : 8354 printf %s "(cached) " >&6 8355 else case e in #( 8356 e) if test -n "$ac_ct_NMEDIT"; then 8357 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8358 else 8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8360 for as_dir in $PATH 8361 do 8362 IFS=$as_save_IFS 8363 case $as_dir in #((( 8364 '') as_dir=./ ;; 8365 */) ;; 8366 *) as_dir=$as_dir/ ;; 8367 esac 8368 for ac_exec_ext in '' $ac_executable_extensions; do 8369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8370 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8372 break 2 8373 fi 8374 done 8375 done 8376 IFS=$as_save_IFS 8377 8378 fi ;; 8379 esac 8380 fi 8381 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8382 if test -n "$ac_ct_NMEDIT"; then 8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8384 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8385 else 8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8387 printf "%s\n" "no" >&6; } 8388 fi 8389 8390 if test "x$ac_ct_NMEDIT" = x; then 8391 NMEDIT=":" 8392 else 8393 case $cross_compiling:$ac_tool_warned in 8394 yes:) 8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8396 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8397 ac_tool_warned=yes ;; 8398 esac 8399 NMEDIT=$ac_ct_NMEDIT 8400 fi 8401 else 8402 NMEDIT="$ac_cv_prog_NMEDIT" 8403 fi 8404 8405 if test -n "$ac_tool_prefix"; then 8406 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8407 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8409 printf %s "checking for $ac_word... " >&6; } 8410 if test ${ac_cv_prog_LIPO+y} 8411 then : 8412 printf %s "(cached) " >&6 8413 else case e in #( 8414 e) if test -n "$LIPO"; then 8415 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8416 else 8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8418 for as_dir in $PATH 8419 do 8420 IFS=$as_save_IFS 8421 case $as_dir in #((( 8422 '') as_dir=./ ;; 8423 */) ;; 8424 *) as_dir=$as_dir/ ;; 8425 esac 8426 for ac_exec_ext in '' $ac_executable_extensions; do 8427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8428 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8430 break 2 8431 fi 8432 done 8433 done 8434 IFS=$as_save_IFS 8435 8436 fi ;; 8437 esac 8438 fi 8439 LIPO=$ac_cv_prog_LIPO 8440 if test -n "$LIPO"; then 8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8442 printf "%s\n" "$LIPO" >&6; } 8443 else 8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8445 printf "%s\n" "no" >&6; } 8446 fi 8447 8448 8449 fi 8450 if test -z "$ac_cv_prog_LIPO"; then 8451 ac_ct_LIPO=$LIPO 8452 # Extract the first word of "lipo", so it can be a program name with args. 8453 set dummy lipo; ac_word=$2 8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8455 printf %s "checking for $ac_word... " >&6; } 8456 if test ${ac_cv_prog_ac_ct_LIPO+y} 8457 then : 8458 printf %s "(cached) " >&6 8459 else case e in #( 8460 e) if test -n "$ac_ct_LIPO"; then 8461 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8462 else 8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8464 for as_dir in $PATH 8465 do 8466 IFS=$as_save_IFS 8467 case $as_dir in #((( 8468 '') as_dir=./ ;; 8469 */) ;; 8470 *) as_dir=$as_dir/ ;; 8471 esac 8472 for ac_exec_ext in '' $ac_executable_extensions; do 8473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8474 ac_cv_prog_ac_ct_LIPO="lipo" 8475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8476 break 2 8477 fi 8478 done 8479 done 8480 IFS=$as_save_IFS 8481 8482 fi ;; 8483 esac 8484 fi 8485 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8486 if test -n "$ac_ct_LIPO"; then 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8488 printf "%s\n" "$ac_ct_LIPO" >&6; } 8489 else 8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8491 printf "%s\n" "no" >&6; } 8492 fi 8493 8494 if test "x$ac_ct_LIPO" = x; then 8495 LIPO=":" 8496 else 8497 case $cross_compiling:$ac_tool_warned in 8498 yes:) 8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8501 ac_tool_warned=yes ;; 8502 esac 8503 LIPO=$ac_ct_LIPO 8504 fi 8505 else 8506 LIPO="$ac_cv_prog_LIPO" 8507 fi 8508 8509 if test -n "$ac_tool_prefix"; then 8510 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8511 set dummy ${ac_tool_prefix}otool; ac_word=$2 8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8513 printf %s "checking for $ac_word... " >&6; } 8514 if test ${ac_cv_prog_OTOOL+y} 8515 then : 8516 printf %s "(cached) " >&6 8517 else case e in #( 8518 e) if test -n "$OTOOL"; then 8519 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8520 else 8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8522 for as_dir in $PATH 8523 do 8524 IFS=$as_save_IFS 8525 case $as_dir in #((( 8526 '') as_dir=./ ;; 8527 */) ;; 8528 *) as_dir=$as_dir/ ;; 8529 esac 8530 for ac_exec_ext in '' $ac_executable_extensions; do 8531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8532 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8534 break 2 8535 fi 8536 done 8537 done 8538 IFS=$as_save_IFS 8539 8540 fi ;; 8541 esac 8542 fi 8543 OTOOL=$ac_cv_prog_OTOOL 8544 if test -n "$OTOOL"; then 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8546 printf "%s\n" "$OTOOL" >&6; } 8547 else 8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8549 printf "%s\n" "no" >&6; } 8550 fi 8551 8552 8553 fi 8554 if test -z "$ac_cv_prog_OTOOL"; then 8555 ac_ct_OTOOL=$OTOOL 8556 # Extract the first word of "otool", so it can be a program name with args. 8557 set dummy otool; ac_word=$2 8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8559 printf %s "checking for $ac_word... " >&6; } 8560 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8561 then : 8562 printf %s "(cached) " >&6 8563 else case e in #( 8564 e) if test -n "$ac_ct_OTOOL"; then 8565 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8566 else 8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8568 for as_dir in $PATH 8569 do 8570 IFS=$as_save_IFS 8571 case $as_dir in #((( 8572 '') as_dir=./ ;; 8573 */) ;; 8574 *) as_dir=$as_dir/ ;; 8575 esac 8576 for ac_exec_ext in '' $ac_executable_extensions; do 8577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8578 ac_cv_prog_ac_ct_OTOOL="otool" 8579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8580 break 2 8581 fi 8582 done 8583 done 8584 IFS=$as_save_IFS 8585 8586 fi ;; 8587 esac 8588 fi 8589 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8590 if test -n "$ac_ct_OTOOL"; then 8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8592 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8593 else 8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8595 printf "%s\n" "no" >&6; } 8596 fi 8597 8598 if test "x$ac_ct_OTOOL" = x; then 8599 OTOOL=":" 8600 else 8601 case $cross_compiling:$ac_tool_warned in 8602 yes:) 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8604 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8605 ac_tool_warned=yes ;; 8606 esac 8607 OTOOL=$ac_ct_OTOOL 8608 fi 8609 else 8610 OTOOL="$ac_cv_prog_OTOOL" 8611 fi 8612 8613 if test -n "$ac_tool_prefix"; then 8614 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8615 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8617 printf %s "checking for $ac_word... " >&6; } 8618 if test ${ac_cv_prog_OTOOL64+y} 8619 then : 8620 printf %s "(cached) " >&6 8621 else case e in #( 8622 e) if test -n "$OTOOL64"; then 8623 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8624 else 8625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8626 for as_dir in $PATH 8627 do 8628 IFS=$as_save_IFS 8629 case $as_dir in #((( 8630 '') as_dir=./ ;; 8631 */) ;; 8632 *) as_dir=$as_dir/ ;; 8633 esac 8634 for ac_exec_ext in '' $ac_executable_extensions; do 8635 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8636 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8638 break 2 8639 fi 8640 done 8641 done 8642 IFS=$as_save_IFS 8643 8644 fi ;; 8645 esac 8646 fi 8647 OTOOL64=$ac_cv_prog_OTOOL64 8648 if test -n "$OTOOL64"; then 8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8650 printf "%s\n" "$OTOOL64" >&6; } 8651 else 8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8653 printf "%s\n" "no" >&6; } 8654 fi 8655 8656 8657 fi 8658 if test -z "$ac_cv_prog_OTOOL64"; then 8659 ac_ct_OTOOL64=$OTOOL64 8660 # Extract the first word of "otool64", so it can be a program name with args. 8661 set dummy otool64; ac_word=$2 8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8663 printf %s "checking for $ac_word... " >&6; } 8664 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8665 then : 8666 printf %s "(cached) " >&6 8667 else case e in #( 8668 e) if test -n "$ac_ct_OTOOL64"; then 8669 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8670 else 8671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8672 for as_dir in $PATH 8673 do 8674 IFS=$as_save_IFS 8675 case $as_dir in #((( 8676 '') as_dir=./ ;; 8677 */) ;; 8678 *) as_dir=$as_dir/ ;; 8679 esac 8680 for ac_exec_ext in '' $ac_executable_extensions; do 8681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8682 ac_cv_prog_ac_ct_OTOOL64="otool64" 8683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8684 break 2 8685 fi 8686 done 8687 done 8688 IFS=$as_save_IFS 8689 8690 fi ;; 8691 esac 8692 fi 8693 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8694 if test -n "$ac_ct_OTOOL64"; then 8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8696 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8697 else 8698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8699 printf "%s\n" "no" >&6; } 8700 fi 8701 8702 if test "x$ac_ct_OTOOL64" = x; then 8703 OTOOL64=":" 8704 else 8705 case $cross_compiling:$ac_tool_warned in 8706 yes:) 8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8708 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8709 ac_tool_warned=yes ;; 8710 esac 8711 OTOOL64=$ac_ct_OTOOL64 8712 fi 8713 else 8714 OTOOL64="$ac_cv_prog_OTOOL64" 8715 fi 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8744 printf %s "checking for -single_module linker flag... " >&6; } 8745 if test ${lt_cv_apple_cc_single_mod+y} 8746 then : 8747 printf %s "(cached) " >&6 8748 else case e in #( 8749 e) lt_cv_apple_cc_single_mod=no 8750 if test -z "$LT_MULTI_MODULE"; then 8751 # By default we will add the -single_module flag. You can override 8752 # by either setting the environment variable LT_MULTI_MODULE 8753 # non-empty at configure time, or by adding -multi_module to the 8754 # link flags. 8755 rm -rf libconftest.dylib* 8756 echo "int foo(void){return 1;}" > conftest.c 8757 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8758 -dynamiclib -Wl,-single_module conftest.c" >&5 8759 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8760 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8761 _lt_result=$? 8762 # If there is a non-empty error log, and "single_module" 8763 # appears in it, assume the flag caused a linker warning 8764 if test -s conftest.err && $GREP single_module conftest.err; then 8765 cat conftest.err >&5 8766 # Otherwise, if the output was created with a 0 exit code from 8767 # the compiler, it worked. 8768 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8769 lt_cv_apple_cc_single_mod=yes 8770 else 8771 cat conftest.err >&5 8772 fi 8773 rm -rf libconftest.dylib* 8774 rm -f conftest.* 8775 fi ;; 8776 esac 8777 fi 8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8779 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8780 8781 # Feature test to disable chained fixups since it is not 8782 # compatible with '-undefined dynamic_lookup' 8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 8784 printf %s "checking for -no_fixup_chains linker flag... " >&6; } 8785 if test ${lt_cv_support_no_fixup_chains+y} 8786 then : 8787 printf %s "(cached) " >&6 8788 else case e in #( 8789 e) save_LDFLAGS=$LDFLAGS 8790 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" 8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8792 /* end confdefs.h. */ 8793 8794 int 8795 main (void) 8796 { 8797 8798 ; 8799 return 0; 8800 } 8801 _ACEOF 8802 if ac_fn_c_try_link "$LINENO" 8803 then : 8804 lt_cv_support_no_fixup_chains=yes 8805 else case e in #( 8806 e) lt_cv_support_no_fixup_chains=no 8807 ;; 8808 esac 8809 fi 8810 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8811 conftest$ac_exeext conftest.$ac_ext 8812 LDFLAGS=$save_LDFLAGS 8813 8814 ;; 8815 esac 8816 fi 8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 8818 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } 8819 8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8821 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8822 if test ${lt_cv_ld_exported_symbols_list+y} 8823 then : 8824 printf %s "(cached) " >&6 8825 else case e in #( 8826 e) lt_cv_ld_exported_symbols_list=no 8827 save_LDFLAGS=$LDFLAGS 8828 echo "_main" > conftest.sym 8829 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831 /* end confdefs.h. */ 8832 8833 int 8834 main (void) 8835 { 8836 8837 ; 8838 return 0; 8839 } 8840 _ACEOF 8841 if ac_fn_c_try_link "$LINENO" 8842 then : 8843 lt_cv_ld_exported_symbols_list=yes 8844 else case e in #( 8845 e) lt_cv_ld_exported_symbols_list=no ;; 8846 esac 8847 fi 8848 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8849 conftest$ac_exeext conftest.$ac_ext 8850 LDFLAGS=$save_LDFLAGS 8851 ;; 8852 esac 8853 fi 8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8855 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8856 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8858 printf %s "checking for -force_load linker flag... " >&6; } 8859 if test ${lt_cv_ld_force_load+y} 8860 then : 8861 printf %s "(cached) " >&6 8862 else case e in #( 8863 e) lt_cv_ld_force_load=no 8864 cat > conftest.c << _LT_EOF 8865 int forced_loaded() { return 2;} 8866 _LT_EOF 8867 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8868 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8869 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8870 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8871 echo "$RANLIB libconftest.a" >&5 8872 $RANLIB libconftest.a 2>&5 8873 cat > conftest.c << _LT_EOF 8874 int main(void) { return 0;} 8875 _LT_EOF 8876 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8877 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8878 _lt_result=$? 8879 if test -s conftest.err && $GREP force_load conftest.err; then 8880 cat conftest.err >&5 8881 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8882 lt_cv_ld_force_load=yes 8883 else 8884 cat conftest.err >&5 8885 fi 8886 rm -f conftest.err libconftest.a conftest conftest.c 8887 rm -rf conftest.dSYM 8888 ;; 8889 esac 8890 fi 8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8892 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8893 case $host_os in 8894 rhapsody* | darwin1.[012]) 8895 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8896 darwin1.*) 8897 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8898 darwin*) 8899 case $MACOSX_DEPLOYMENT_TARGET,$host in 8900 10.[012],*|,*powerpc*-darwin[5-8]*) 8901 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8902 *) 8903 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' 8904 if test yes = "$lt_cv_support_no_fixup_chains"; then 8905 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' 8906 fi 8907 ;; 8908 esac 8909 ;; 8910 esac 8911 if test yes = "$lt_cv_apple_cc_single_mod"; then 8912 _lt_dar_single_mod='$single_module' 8913 fi 8914 _lt_dar_needs_single_mod=no 8915 case $host_os in 8916 rhapsody* | darwin1.*) 8917 _lt_dar_needs_single_mod=yes ;; 8918 darwin*) 8919 # When targeting Mac OS X 10.4 (darwin 8) or later, 8920 # -single_module is the default and -multi_module is unsupported. 8921 # The toolchain on macOS 10.14 (darwin 18) and later cannot 8922 # target any OS version that needs -single_module. 8923 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8924 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) 8925 _lt_dar_needs_single_mod=yes ;; 8926 esac 8927 ;; 8928 esac 8929 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8930 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8931 else 8932 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8933 fi 8934 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8935 _lt_dsymutil='~$DSYMUTIL $lib || :' 8936 else 8937 _lt_dsymutil= 8938 fi 8939 ;; 8940 esac 8941 8942 # func_munge_path_list VARIABLE PATH 8943 # ----------------------------------- 8944 # VARIABLE is name of variable containing _space_ separated list of 8945 # directories to be munged by the contents of PATH, which is string 8946 # having a format: 8947 # "DIR[:DIR]:" 8948 # string "DIR[ DIR]" will be prepended to VARIABLE 8949 # ":DIR[:DIR]" 8950 # string "DIR[ DIR]" will be appended to VARIABLE 8951 # "DIRP[:DIRP]::[DIRA:]DIRA" 8952 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8953 # "DIRA[ DIRA]" will be appended to VARIABLE 8954 # "DIR[:DIR]" 8955 # VARIABLE will be replaced by "DIR[ DIR]" 8956 func_munge_path_list () 8957 { 8958 case x$2 in 8959 x) 8960 ;; 8961 *:) 8962 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8963 ;; 8964 x:*) 8965 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8966 ;; 8967 *::*) 8968 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8969 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8970 ;; 8971 *) 8972 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8973 ;; 8974 esac 8975 } 8976 8977 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8978 " 8979 if test "x$ac_cv_header_dlfcn_h" = xyes 8980 then : 8981 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 8982 8983 fi 8984 8985 8986 8987 8988 8989 # Set options 8990 8991 8992 8993 enable_dlopen=no 8994 8995 8996 enable_win32_dll=no 8997 8998 8999 # Check whether --enable-shared was given. 9000 if test ${enable_shared+y} 9001 then : 9002 enableval=$enable_shared; p=${PACKAGE-default} 9003 case $enableval in 9004 yes) enable_shared=yes ;; 9005 no) enable_shared=no ;; 9006 *) 9007 enable_shared=no 9008 # Look at the argument we got. We use all the common list separators. 9009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9010 for pkg in $enableval; do 9011 IFS=$lt_save_ifs 9012 if test "X$pkg" = "X$p"; then 9013 enable_shared=yes 9014 fi 9015 done 9016 IFS=$lt_save_ifs 9017 ;; 9018 esac 9019 else case e in #( 9020 e) enable_shared=yes ;; 9021 esac 9022 fi 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 # Check whether --enable-static was given. 9033 if test ${enable_static+y} 9034 then : 9035 enableval=$enable_static; p=${PACKAGE-default} 9036 case $enableval in 9037 yes) enable_static=yes ;; 9038 no) enable_static=no ;; 9039 *) 9040 enable_static=no 9041 # Look at the argument we got. We use all the common list separators. 9042 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9043 for pkg in $enableval; do 9044 IFS=$lt_save_ifs 9045 if test "X$pkg" = "X$p"; then 9046 enable_static=yes 9047 fi 9048 done 9049 IFS=$lt_save_ifs 9050 ;; 9051 esac 9052 else case e in #( 9053 e) enable_static=yes ;; 9054 esac 9055 fi 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 # Check whether --enable-pic was given. 9066 if test ${enable_pic+y} 9067 then : 9068 enableval=$enable_pic; lt_p=${PACKAGE-default} 9069 case $enableval in 9070 yes|no) pic_mode=$enableval ;; 9071 *) 9072 pic_mode=default 9073 # Look at the argument we got. We use all the common list separators. 9074 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9075 for lt_pkg in $enableval; do 9076 IFS=$lt_save_ifs 9077 if test "X$lt_pkg" = "X$lt_p"; then 9078 pic_mode=yes 9079 fi 9080 done 9081 IFS=$lt_save_ifs 9082 ;; 9083 esac 9084 else case e in #( 9085 e) # Check whether --with-pic was given. 9086 if test ${with_pic+y} 9087 then : 9088 withval=$with_pic; lt_p=${PACKAGE-default} 9089 case $withval in 9090 yes|no) pic_mode=$withval ;; 9091 *) 9092 pic_mode=default 9093 # Look at the argument we got. We use all the common list separators. 9094 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9095 for lt_pkg in $withval; do 9096 IFS=$lt_save_ifs 9097 if test "X$lt_pkg" = "X$lt_p"; then 9098 pic_mode=yes 9099 fi 9100 done 9101 IFS=$lt_save_ifs 9102 ;; 9103 esac 9104 else case e in #( 9105 e) pic_mode=default ;; 9106 esac 9107 fi 9108 9109 ;; 9110 esac 9111 fi 9112 9113 9114 9115 9116 9117 9118 9119 9120 # Check whether --enable-fast-install was given. 9121 if test ${enable_fast_install+y} 9122 then : 9123 enableval=$enable_fast_install; p=${PACKAGE-default} 9124 case $enableval in 9125 yes) enable_fast_install=yes ;; 9126 no) enable_fast_install=no ;; 9127 *) 9128 enable_fast_install=no 9129 # Look at the argument we got. We use all the common list separators. 9130 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9131 for pkg in $enableval; do 9132 IFS=$lt_save_ifs 9133 if test "X$pkg" = "X$p"; then 9134 enable_fast_install=yes 9135 fi 9136 done 9137 IFS=$lt_save_ifs 9138 ;; 9139 esac 9140 else case e in #( 9141 e) enable_fast_install=yes ;; 9142 esac 9143 fi 9144 9145 9146 9147 9148 9149 9150 9151 9152 shared_archive_member_spec= 9153 case $host,$enable_shared in 9154 power*-*-aix[5-9]*,yes) 9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9156 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9157 # Check whether --enable-aix-soname was given. 9158 if test ${enable_aix_soname+y} 9159 then : 9160 enableval=$enable_aix_soname; case $enableval in 9161 aix|svr4|both) 9162 ;; 9163 *) 9164 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 9165 ;; 9166 esac 9167 lt_cv_with_aix_soname=$enable_aix_soname 9168 else case e in #( 9169 e) # Check whether --with-aix-soname was given. 9170 if test ${with_aix_soname+y} 9171 then : 9172 withval=$with_aix_soname; case $withval in 9173 aix|svr4|both) 9174 ;; 9175 *) 9176 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9177 ;; 9178 esac 9179 lt_cv_with_aix_soname=$with_aix_soname 9180 else case e in #( 9181 e) if test ${lt_cv_with_aix_soname+y} 9182 then : 9183 printf %s "(cached) " >&6 9184 else case e in #( 9185 e) lt_cv_with_aix_soname=aix ;; 9186 esac 9187 fi 9188 ;; 9189 esac 9190 fi 9191 9192 enable_aix_soname=$lt_cv_with_aix_soname ;; 9193 esac 9194 fi 9195 9196 with_aix_soname=$enable_aix_soname 9197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9198 printf "%s\n" "$with_aix_soname" >&6; } 9199 if test aix != "$with_aix_soname"; then 9200 # For the AIX way of multilib, we name the shared archive member 9201 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9202 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9203 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9204 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9205 if test 64 = "${OBJECT_MODE-32}"; then 9206 shared_archive_member_spec=shr_64 9207 else 9208 shared_archive_member_spec=shr 9209 fi 9210 fi 9211 ;; 9212 *) 9213 with_aix_soname=aix 9214 ;; 9215 esac 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 # This can be used to rebuild libtool when needed 9227 LIBTOOL_DEPS=$ltmain 9228 9229 # Always use our own libtool. 9230 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 test -z "$LN_S" && LN_S="ln -s" 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 if test -n "${ZSH_VERSION+set}"; then 9277 setopt NO_GLOB_SUBST 9278 fi 9279 9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9281 printf %s "checking for objdir... " >&6; } 9282 if test ${lt_cv_objdir+y} 9283 then : 9284 printf %s "(cached) " >&6 9285 else case e in #( 9286 e) rm -f .libs 2>/dev/null 9287 mkdir .libs 2>/dev/null 9288 if test -d .libs; then 9289 lt_cv_objdir=.libs 9290 else 9291 # MS-DOS does not allow filenames that begin with a dot. 9292 lt_cv_objdir=_libs 9293 fi 9294 rmdir .libs 2>/dev/null ;; 9295 esac 9296 fi 9297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9298 printf "%s\n" "$lt_cv_objdir" >&6; } 9299 objdir=$lt_cv_objdir 9300 9301 9302 9303 9304 9305 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9306 9307 9308 9309 9310 case $host_os in 9311 aix3*) 9312 # AIX sometimes has problems with the GCC collect2 program. For some 9313 # reason, if we set the COLLECT_NAMES environment variable, the problems 9314 # vanish in a puff of smoke. 9315 if test set != "${COLLECT_NAMES+set}"; then 9316 COLLECT_NAMES= 9317 export COLLECT_NAMES 9318 fi 9319 ;; 9320 esac 9321 9322 # Global variables: 9323 ofile=libtool 9324 can_build_shared=yes 9325 9326 # All known linkers require a '.a' archive for static linking (except MSVC and 9327 # ICC, which need '.lib'). 9328 libext=a 9329 9330 with_gnu_ld=$lt_cv_prog_gnu_ld 9331 9332 old_CC=$CC 9333 old_CFLAGS=$CFLAGS 9334 9335 # Set sane defaults for various variables 9336 test -z "$CC" && CC=cc 9337 test -z "$LTCC" && LTCC=$CC 9338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9339 test -z "$LD" && LD=ld 9340 test -z "$ac_objext" && ac_objext=o 9341 9342 func_cc_basename $compiler 9343 cc_basename=$func_cc_basename_result 9344 9345 9346 # Only perform the check for file, if the check method requires it 9347 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9348 case $deplibs_check_method in 9349 file_magic*) 9350 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9352 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9353 if test ${lt_cv_path_MAGIC_CMD+y} 9354 then : 9355 printf %s "(cached) " >&6 9356 else case e in #( 9357 e) case $MAGIC_CMD in 9358 [\\/*] | ?:[\\/]*) 9359 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9360 ;; 9361 *) 9362 lt_save_MAGIC_CMD=$MAGIC_CMD 9363 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9365 for ac_dir in $ac_dummy; do 9366 IFS=$lt_save_ifs 9367 test -z "$ac_dir" && ac_dir=. 9368 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9369 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9370 if test -n "$file_magic_test_file"; then 9371 case $deplibs_check_method in 9372 "file_magic "*) 9373 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9374 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9376 $EGREP "$file_magic_regex" > /dev/null; then 9377 : 9378 else 9379 cat <<_LT_EOF 1>&2 9380 9381 *** Warning: the command libtool uses to detect shared libraries, 9382 *** $file_magic_cmd, produces output that libtool cannot recognize. 9383 *** The result is that libtool may fail to recognize shared libraries 9384 *** as such. This will affect the creation of libtool libraries that 9385 *** depend on shared libraries, but programs linked with such libtool 9386 *** libraries will work regardless of this problem. Nevertheless, you 9387 *** may want to report the problem to your system manager and/or to 9388 *** bug-libtool@gnu.org 9389 9390 _LT_EOF 9391 fi ;; 9392 esac 9393 fi 9394 break 9395 fi 9396 done 9397 IFS=$lt_save_ifs 9398 MAGIC_CMD=$lt_save_MAGIC_CMD 9399 ;; 9400 esac ;; 9401 esac 9402 fi 9403 9404 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9405 if test -n "$MAGIC_CMD"; then 9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9407 printf "%s\n" "$MAGIC_CMD" >&6; } 9408 else 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9410 printf "%s\n" "no" >&6; } 9411 fi 9412 9413 9414 9415 9416 9417 if test -z "$lt_cv_path_MAGIC_CMD"; then 9418 if test -n "$ac_tool_prefix"; then 9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9420 printf %s "checking for file... " >&6; } 9421 if test ${lt_cv_path_MAGIC_CMD+y} 9422 then : 9423 printf %s "(cached) " >&6 9424 else case e in #( 9425 e) case $MAGIC_CMD in 9426 [\\/*] | ?:[\\/]*) 9427 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9428 ;; 9429 *) 9430 lt_save_MAGIC_CMD=$MAGIC_CMD 9431 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9432 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9433 for ac_dir in $ac_dummy; do 9434 IFS=$lt_save_ifs 9435 test -z "$ac_dir" && ac_dir=. 9436 if test -f "$ac_dir/file"; then 9437 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9438 if test -n "$file_magic_test_file"; then 9439 case $deplibs_check_method in 9440 "file_magic "*) 9441 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9442 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9443 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9444 $EGREP "$file_magic_regex" > /dev/null; then 9445 : 9446 else 9447 cat <<_LT_EOF 1>&2 9448 9449 *** Warning: the command libtool uses to detect shared libraries, 9450 *** $file_magic_cmd, produces output that libtool cannot recognize. 9451 *** The result is that libtool may fail to recognize shared libraries 9452 *** as such. This will affect the creation of libtool libraries that 9453 *** depend on shared libraries, but programs linked with such libtool 9454 *** libraries will work regardless of this problem. Nevertheless, you 9455 *** may want to report the problem to your system manager and/or to 9456 *** bug-libtool@gnu.org 9457 9458 _LT_EOF 9459 fi ;; 9460 esac 9461 fi 9462 break 9463 fi 9464 done 9465 IFS=$lt_save_ifs 9466 MAGIC_CMD=$lt_save_MAGIC_CMD 9467 ;; 9468 esac ;; 9469 esac 9470 fi 9471 9472 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9473 if test -n "$MAGIC_CMD"; then 9474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9475 printf "%s\n" "$MAGIC_CMD" >&6; } 9476 else 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9478 printf "%s\n" "no" >&6; } 9479 fi 9480 9481 9482 else 9483 MAGIC_CMD=: 9484 fi 9485 fi 9486 9487 fi 9488 ;; 9489 esac 9490 9491 # Use C for the default configuration in the libtool script 9492 9493 lt_save_CC=$CC 9494 ac_ext=c 9495 ac_cpp='$CPP $CPPFLAGS' 9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9499 9500 9501 # Source file extension for C test sources. 9502 ac_ext=c 9503 9504 # Object file extension for compiled C test sources. 9505 objext=o 9506 objext=$objext 9507 9508 # Code to be used in simple compile tests 9509 lt_simple_compile_test_code="int some_variable = 0;" 9510 9511 # Code to be used in simple link tests 9512 lt_simple_link_test_code='int main(void){return(0);}' 9513 9514 9515 9516 9517 9518 9519 9520 # If no C compiler was specified, use CC. 9521 LTCC=${LTCC-"$CC"} 9522 9523 # If no C compiler flags were specified, use CFLAGS. 9524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9525 9526 # Allow CC to be a program name with arguments. 9527 compiler=$CC 9528 9529 # Save the default compiler, since it gets overwritten when the other 9530 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9531 compiler_DEFAULT=$CC 9532 9533 # save warnings/boilerplate of simple test code 9534 ac_outfile=conftest.$ac_objext 9535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9537 _lt_compiler_boilerplate=`cat conftest.err` 9538 $RM conftest* 9539 9540 ac_outfile=conftest.$ac_objext 9541 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9543 _lt_linker_boilerplate=`cat conftest.err` 9544 $RM -r conftest* 9545 9546 9547 ## CAVEAT EMPTOR: 9548 ## There is no encapsulation within the following macros, do not change 9549 ## the running order or otherwise move them around unless you know exactly 9550 ## what you are doing... 9551 if test -n "$compiler"; then 9552 9553 lt_prog_compiler_no_builtin_flag= 9554 9555 if test yes = "$GCC"; then 9556 case $cc_basename in 9557 nvcc*) 9558 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9559 *) 9560 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9561 esac 9562 9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9564 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9565 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9566 then : 9567 printf %s "(cached) " >&6 9568 else case e in #( 9569 e) lt_cv_prog_compiler_rtti_exceptions=no 9570 ac_outfile=conftest.$ac_objext 9571 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9572 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9573 # Insert the option either (1) after the last *FLAGS variable, or 9574 # (2) before a word containing "conftest.", or (3) at the end. 9575 # Note that $ac_compile itself does not contain backslashes and begins 9576 # with a dollar sign (not a hyphen), so the echo should work correctly. 9577 # The option is referenced via a variable to avoid confusing sed. 9578 lt_compile=`echo "$ac_compile" | $SED \ 9579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9581 -e 's:$: $lt_compiler_flag:'` 9582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9583 (eval "$lt_compile" 2>conftest.err) 9584 ac_status=$? 9585 cat conftest.err >&5 9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9587 if (exit $ac_status) && test -s "$ac_outfile"; then 9588 # The compiler can only warn and ignore the option if not recognized 9589 # So say no if there are warnings other than the usual output. 9590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9591 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9592 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9593 lt_cv_prog_compiler_rtti_exceptions=yes 9594 fi 9595 fi 9596 $RM conftest* 9597 ;; 9598 esac 9599 fi 9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9601 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9602 9603 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9604 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9605 else 9606 : 9607 fi 9608 9609 fi 9610 9611 9612 9613 9614 9615 9616 lt_prog_compiler_wl= 9617 lt_prog_compiler_pic= 9618 lt_prog_compiler_static= 9619 9620 9621 if test yes = "$GCC"; then 9622 lt_prog_compiler_wl='-Wl,' 9623 lt_prog_compiler_static='-static' 9624 9625 case $host_os in 9626 aix*) 9627 # All AIX code is PIC. 9628 if test ia64 = "$host_cpu"; then 9629 # AIX 5 now supports IA64 processor 9630 lt_prog_compiler_static='-Bstatic' 9631 fi 9632 lt_prog_compiler_pic='-fPIC' 9633 ;; 9634 9635 amigaos*) 9636 case $host_cpu in 9637 powerpc) 9638 # see comment about AmigaOS4 .so support 9639 lt_prog_compiler_pic='-fPIC' 9640 ;; 9641 m68k) 9642 # FIXME: we need at least 68020 code to build shared libraries, but 9643 # adding the '-m68020' flag to GCC prevents building anything better, 9644 # like '-m68040'. 9645 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9646 ;; 9647 esac 9648 ;; 9649 9650 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9651 # PIC is the default for these OSes. 9652 ;; 9653 9654 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9655 # This hack is so that the source file can tell whether it is being 9656 # built for inclusion in a dll (and should export symbols for example). 9657 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9658 # (--disable-auto-import) libraries 9659 lt_prog_compiler_pic='-DDLL_EXPORT' 9660 case $host_os in 9661 os2*) 9662 lt_prog_compiler_static='$wl-static' 9663 ;; 9664 esac 9665 ;; 9666 9667 darwin* | rhapsody*) 9668 # PIC is the default on this platform 9669 # Common symbols not allowed in MH_DYLIB files 9670 lt_prog_compiler_pic='-fno-common' 9671 ;; 9672 9673 haiku*) 9674 # PIC is the default for Haiku. 9675 # The "-static" flag exists, but is broken. 9676 lt_prog_compiler_static= 9677 ;; 9678 9679 hpux*) 9680 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9681 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9682 # sets the default TLS model and affects inlining. 9683 case $host_cpu in 9684 hppa*64*) 9685 # +Z the default 9686 ;; 9687 *) 9688 lt_prog_compiler_pic='-fPIC' 9689 ;; 9690 esac 9691 ;; 9692 9693 interix[3-9]*) 9694 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9695 # Instead, we relocate shared libraries at runtime. 9696 ;; 9697 9698 msdosdjgpp*) 9699 # Just because we use GCC doesn't mean we suddenly get shared libraries 9700 # on systems that don't support them. 9701 lt_prog_compiler_can_build_shared=no 9702 enable_shared=no 9703 ;; 9704 9705 *nto* | *qnx*) 9706 # QNX uses GNU C++, but need to define -shared option too, otherwise 9707 # it will coredump. 9708 lt_prog_compiler_pic='-fPIC -shared' 9709 ;; 9710 9711 sysv4*MP*) 9712 if test -d /usr/nec; then 9713 lt_prog_compiler_pic=-Kconform_pic 9714 fi 9715 ;; 9716 9717 *) 9718 lt_prog_compiler_pic='-fPIC' 9719 ;; 9720 esac 9721 9722 case $cc_basename in 9723 nvcc*) # Cuda Compiler Driver 2.2 9724 lt_prog_compiler_wl='-Xlinker ' 9725 if test -n "$lt_prog_compiler_pic"; then 9726 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9727 fi 9728 ;; 9729 esac 9730 else 9731 # PORTME Check for flag to pass linker flags through the system compiler. 9732 case $host_os in 9733 aix*) 9734 lt_prog_compiler_wl='-Wl,' 9735 if test ia64 = "$host_cpu"; then 9736 # AIX 5 now supports IA64 processor 9737 lt_prog_compiler_static='-Bstatic' 9738 else 9739 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9740 fi 9741 ;; 9742 9743 darwin* | rhapsody*) 9744 # PIC is the default on this platform 9745 # Common symbols not allowed in MH_DYLIB files 9746 lt_prog_compiler_pic='-fno-common' 9747 case $cc_basename in 9748 nagfor*) 9749 # NAG Fortran compiler 9750 lt_prog_compiler_wl='-Wl,-Wl,,' 9751 lt_prog_compiler_pic='-PIC' 9752 lt_prog_compiler_static='-Bstatic' 9753 ;; 9754 esac 9755 ;; 9756 9757 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 9758 # This hack is so that the source file can tell whether it is being 9759 # built for inclusion in a dll (and should export symbols for example). 9760 lt_prog_compiler_pic='-DDLL_EXPORT' 9761 case $host_os in 9762 os2*) 9763 lt_prog_compiler_static='$wl-static' 9764 ;; 9765 esac 9766 ;; 9767 9768 hpux9* | hpux10* | hpux11*) 9769 lt_prog_compiler_wl='-Wl,' 9770 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9771 # not for PA HP-UX. 9772 case $host_cpu in 9773 hppa*64*|ia64*) 9774 # +Z the default 9775 ;; 9776 *) 9777 lt_prog_compiler_pic='+Z' 9778 ;; 9779 esac 9780 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9781 lt_prog_compiler_static='$wl-a ${wl}archive' 9782 ;; 9783 9784 irix5* | irix6* | nonstopux*) 9785 lt_prog_compiler_wl='-Wl,' 9786 # PIC (with -KPIC) is the default. 9787 lt_prog_compiler_static='-non_shared' 9788 ;; 9789 9790 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9791 case $cc_basename in 9792 # old Intel for x86_64, which still supported -KPIC. 9793 ecc*) 9794 lt_prog_compiler_wl='-Wl,' 9795 lt_prog_compiler_pic='-KPIC' 9796 lt_prog_compiler_static='-static' 9797 ;; 9798 *flang* | ftn | f18* | f95*) 9799 # Flang compiler. 9800 lt_prog_compiler_wl='-Wl,' 9801 lt_prog_compiler_pic='-fPIC' 9802 lt_prog_compiler_static='-static' 9803 ;; 9804 # icc used to be incompatible with GCC. 9805 # ICC 10 doesn't accept -KPIC any more. 9806 icc* | ifort*) 9807 lt_prog_compiler_wl='-Wl,' 9808 lt_prog_compiler_pic='-fPIC' 9809 lt_prog_compiler_static='-static' 9810 ;; 9811 # Lahey Fortran 8.1. 9812 lf95*) 9813 lt_prog_compiler_wl='-Wl,' 9814 lt_prog_compiler_pic='--shared' 9815 lt_prog_compiler_static='--static' 9816 ;; 9817 nagfor*) 9818 # NAG Fortran compiler 9819 lt_prog_compiler_wl='-Wl,-Wl,,' 9820 lt_prog_compiler_pic='-PIC' 9821 lt_prog_compiler_static='-Bstatic' 9822 ;; 9823 tcc*) 9824 # Fabrice Bellard et al's Tiny C Compiler 9825 lt_prog_compiler_wl='-Wl,' 9826 lt_prog_compiler_pic='-fPIC' 9827 lt_prog_compiler_static='-static' 9828 ;; 9829 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9830 # Portland Group compilers (*not* the Pentium gcc compiler, 9831 # which looks to be a dead project) 9832 lt_prog_compiler_wl='-Wl,' 9833 lt_prog_compiler_pic='-fpic' 9834 lt_prog_compiler_static='-Bstatic' 9835 ;; 9836 ccc*) 9837 lt_prog_compiler_wl='-Wl,' 9838 # All Alpha code is PIC. 9839 lt_prog_compiler_static='-non_shared' 9840 ;; 9841 xl* | bgxl* | bgf* | mpixl*) 9842 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9843 lt_prog_compiler_wl='-Wl,' 9844 lt_prog_compiler_pic='-qpic' 9845 lt_prog_compiler_static='-qstaticlink' 9846 ;; 9847 *) 9848 case `$CC -V 2>&1 | $SED 5q` in 9849 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9850 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9851 lt_prog_compiler_pic='-KPIC' 9852 lt_prog_compiler_static='-Bstatic' 9853 lt_prog_compiler_wl='' 9854 ;; 9855 *Sun\ F* | *Sun*Fortran*) 9856 lt_prog_compiler_pic='-KPIC' 9857 lt_prog_compiler_static='-Bstatic' 9858 lt_prog_compiler_wl='-Qoption ld ' 9859 ;; 9860 *Sun\ C*) 9861 # Sun C 5.9 9862 lt_prog_compiler_pic='-KPIC' 9863 lt_prog_compiler_static='-Bstatic' 9864 lt_prog_compiler_wl='-Wl,' 9865 ;; 9866 *Intel*\ [CF]*Compiler*) 9867 lt_prog_compiler_wl='-Wl,' 9868 lt_prog_compiler_pic='-fPIC' 9869 lt_prog_compiler_static='-static' 9870 ;; 9871 *Portland\ Group*) 9872 lt_prog_compiler_wl='-Wl,' 9873 lt_prog_compiler_pic='-fpic' 9874 lt_prog_compiler_static='-Bstatic' 9875 ;; 9876 esac 9877 ;; 9878 esac 9879 ;; 9880 9881 newsos6) 9882 lt_prog_compiler_pic='-KPIC' 9883 lt_prog_compiler_static='-Bstatic' 9884 ;; 9885 9886 *-mlibc) 9887 lt_prog_compiler_wl='-Wl,' 9888 lt_prog_compiler_pic='-fPIC' 9889 lt_prog_compiler_static='-static' 9890 ;; 9891 9892 *nto* | *qnx*) 9893 # QNX uses GNU C++, but need to define -shared option too, otherwise 9894 # it will coredump. 9895 lt_prog_compiler_pic='-fPIC -shared' 9896 ;; 9897 9898 osf3* | osf4* | osf5*) 9899 lt_prog_compiler_wl='-Wl,' 9900 # All OSF/1 code is PIC. 9901 lt_prog_compiler_static='-non_shared' 9902 ;; 9903 9904 rdos*) 9905 lt_prog_compiler_static='-non_shared' 9906 ;; 9907 9908 serenity*) 9909 ;; 9910 9911 solaris*) 9912 lt_prog_compiler_pic='-KPIC' 9913 lt_prog_compiler_static='-Bstatic' 9914 case $cc_basename in 9915 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9916 lt_prog_compiler_wl='-Qoption ld ';; 9917 *) 9918 lt_prog_compiler_wl='-Wl,';; 9919 esac 9920 ;; 9921 9922 sunos4*) 9923 lt_prog_compiler_wl='-Qoption ld ' 9924 lt_prog_compiler_pic='-PIC' 9925 lt_prog_compiler_static='-Bstatic' 9926 ;; 9927 9928 sysv4 | sysv4.2uw2* | sysv4.3*) 9929 lt_prog_compiler_wl='-Wl,' 9930 lt_prog_compiler_pic='-KPIC' 9931 lt_prog_compiler_static='-Bstatic' 9932 ;; 9933 9934 sysv4*MP*) 9935 if test -d /usr/nec; then 9936 lt_prog_compiler_pic='-Kconform_pic' 9937 lt_prog_compiler_static='-Bstatic' 9938 fi 9939 ;; 9940 9941 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9942 lt_prog_compiler_wl='-Wl,' 9943 lt_prog_compiler_pic='-KPIC' 9944 lt_prog_compiler_static='-Bstatic' 9945 ;; 9946 9947 unicos*) 9948 lt_prog_compiler_wl='-Wl,' 9949 lt_prog_compiler_can_build_shared=no 9950 ;; 9951 9952 uts4*) 9953 lt_prog_compiler_pic='-pic' 9954 lt_prog_compiler_static='-Bstatic' 9955 ;; 9956 9957 *) 9958 lt_prog_compiler_can_build_shared=no 9959 ;; 9960 esac 9961 fi 9962 9963 case $host_os in 9964 # For platforms that do not support PIC, -DPIC is meaningless: 9965 *djgpp*) 9966 lt_prog_compiler_pic= 9967 ;; 9968 *) 9969 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9970 ;; 9971 esac 9972 9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9974 printf %s "checking for $compiler option to produce PIC... " >&6; } 9975 if test ${lt_cv_prog_compiler_pic+y} 9976 then : 9977 printf %s "(cached) " >&6 9978 else case e in #( 9979 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9980 esac 9981 fi 9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9983 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9984 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9985 9986 # 9987 # Check to make sure the PIC flag actually works. 9988 # 9989 if test -n "$lt_prog_compiler_pic"; then 9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9991 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9992 if test ${lt_cv_prog_compiler_pic_works+y} 9993 then : 9994 printf %s "(cached) " >&6 9995 else case e in #( 9996 e) lt_cv_prog_compiler_pic_works=no 9997 ac_outfile=conftest.$ac_objext 9998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9999 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10000 # Insert the option either (1) after the last *FLAGS variable, or 10001 # (2) before a word containing "conftest.", or (3) at the end. 10002 # Note that $ac_compile itself does not contain backslashes and begins 10003 # with a dollar sign (not a hyphen), so the echo should work correctly. 10004 # The option is referenced via a variable to avoid confusing sed. 10005 lt_compile=`echo "$ac_compile" | $SED \ 10006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10008 -e 's:$: $lt_compiler_flag:'` 10009 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10010 (eval "$lt_compile" 2>conftest.err) 10011 ac_status=$? 10012 cat conftest.err >&5 10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10014 if (exit $ac_status) && test -s "$ac_outfile"; then 10015 # The compiler can only warn and ignore the option if not recognized 10016 # So say no if there are warnings other than the usual output. 10017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10020 lt_cv_prog_compiler_pic_works=yes 10021 fi 10022 fi 10023 $RM conftest* 10024 ;; 10025 esac 10026 fi 10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10028 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10029 10030 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10031 case $lt_prog_compiler_pic in 10032 "" | " "*) ;; 10033 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10034 esac 10035 else 10036 lt_prog_compiler_pic= 10037 lt_prog_compiler_can_build_shared=no 10038 fi 10039 10040 fi 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 # 10053 # Check to make sure the static flag actually works. 10054 # 10055 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10057 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10058 if test ${lt_cv_prog_compiler_static_works+y} 10059 then : 10060 printf %s "(cached) " >&6 10061 else case e in #( 10062 e) lt_cv_prog_compiler_static_works=no 10063 save_LDFLAGS=$LDFLAGS 10064 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10065 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10066 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10067 # The linker can only warn and ignore the option if not recognized 10068 # So say no if there are warnings 10069 if test -s conftest.err; then 10070 # Append any errors to the config.log. 10071 cat conftest.err 1>&5 10072 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10073 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10074 if diff conftest.exp conftest.er2 >/dev/null; then 10075 lt_cv_prog_compiler_static_works=yes 10076 fi 10077 else 10078 lt_cv_prog_compiler_static_works=yes 10079 fi 10080 fi 10081 $RM -r conftest* 10082 LDFLAGS=$save_LDFLAGS 10083 ;; 10084 esac 10085 fi 10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10087 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10088 10089 if test yes = "$lt_cv_prog_compiler_static_works"; then 10090 : 10091 else 10092 lt_prog_compiler_static= 10093 fi 10094 10095 10096 10097 10098 10099 10100 10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10102 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10103 if test ${lt_cv_prog_compiler_c_o+y} 10104 then : 10105 printf %s "(cached) " >&6 10106 else case e in #( 10107 e) lt_cv_prog_compiler_c_o=no 10108 $RM -r conftest 2>/dev/null 10109 mkdir conftest 10110 cd conftest 10111 mkdir out 10112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10113 10114 lt_compiler_flag="-o out/conftest2.$ac_objext" 10115 # Insert the option either (1) after the last *FLAGS variable, or 10116 # (2) before a word containing "conftest.", or (3) at the end. 10117 # Note that $ac_compile itself does not contain backslashes and begins 10118 # with a dollar sign (not a hyphen), so the echo should work correctly. 10119 lt_compile=`echo "$ac_compile" | $SED \ 10120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10122 -e 's:$: $lt_compiler_flag:'` 10123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10124 (eval "$lt_compile" 2>out/conftest.err) 10125 ac_status=$? 10126 cat out/conftest.err >&5 10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10128 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10129 then 10130 # The compiler can only warn and ignore the option if not recognized 10131 # So say no if there are warnings 10132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10135 lt_cv_prog_compiler_c_o=yes 10136 fi 10137 fi 10138 chmod u+w . 2>&5 10139 $RM conftest* 10140 # SGI C++ compiler will create directory out/ii_files/ for 10141 # template instantiation 10142 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10143 $RM out/* && rmdir out 10144 cd .. 10145 $RM -r conftest 10146 $RM conftest* 10147 ;; 10148 esac 10149 fi 10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10151 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10152 10153 10154 10155 10156 10157 10158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10159 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10160 if test ${lt_cv_prog_compiler_c_o+y} 10161 then : 10162 printf %s "(cached) " >&6 10163 else case e in #( 10164 e) lt_cv_prog_compiler_c_o=no 10165 $RM -r conftest 2>/dev/null 10166 mkdir conftest 10167 cd conftest 10168 mkdir out 10169 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10170 10171 lt_compiler_flag="-o out/conftest2.$ac_objext" 10172 # Insert the option either (1) after the last *FLAGS variable, or 10173 # (2) before a word containing "conftest.", or (3) at the end. 10174 # Note that $ac_compile itself does not contain backslashes and begins 10175 # with a dollar sign (not a hyphen), so the echo should work correctly. 10176 lt_compile=`echo "$ac_compile" | $SED \ 10177 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10178 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10179 -e 's:$: $lt_compiler_flag:'` 10180 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10181 (eval "$lt_compile" 2>out/conftest.err) 10182 ac_status=$? 10183 cat out/conftest.err >&5 10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10185 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10186 then 10187 # The compiler can only warn and ignore the option if not recognized 10188 # So say no if there are warnings 10189 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10190 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10191 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10192 lt_cv_prog_compiler_c_o=yes 10193 fi 10194 fi 10195 chmod u+w . 2>&5 10196 $RM conftest* 10197 # SGI C++ compiler will create directory out/ii_files/ for 10198 # template instantiation 10199 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10200 $RM out/* && rmdir out 10201 cd .. 10202 $RM -r conftest 10203 $RM conftest* 10204 ;; 10205 esac 10206 fi 10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10208 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10209 10210 10211 10212 10213 hard_links=nottested 10214 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10215 # do not overwrite the value of need_locks provided by the user 10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10217 printf %s "checking if we can lock with hard links... " >&6; } 10218 hard_links=yes 10219 $RM conftest* 10220 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10221 touch conftest.a 10222 ln conftest.a conftest.b 2>&5 || hard_links=no 10223 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10225 printf "%s\n" "$hard_links" >&6; } 10226 if test no = "$hard_links"; then 10227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10228 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10229 need_locks=warn 10230 fi 10231 else 10232 need_locks=no 10233 fi 10234 10235 10236 10237 10238 10239 10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10241 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10242 10243 runpath_var= 10244 allow_undefined_flag= 10245 always_export_symbols=no 10246 archive_cmds= 10247 archive_expsym_cmds= 10248 compiler_needs_object=no 10249 enable_shared_with_static_runtimes=no 10250 export_dynamic_flag_spec= 10251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10252 hardcode_automatic=no 10253 hardcode_direct=no 10254 hardcode_direct_absolute=no 10255 hardcode_libdir_flag_spec= 10256 hardcode_libdir_separator= 10257 hardcode_minus_L=no 10258 hardcode_shlibpath_var=unsupported 10259 inherit_rpath=no 10260 link_all_deplibs=unknown 10261 module_cmds= 10262 module_expsym_cmds= 10263 old_archive_from_new_cmds= 10264 old_archive_from_expsyms_cmds= 10265 thread_safe_flag_spec= 10266 whole_archive_flag_spec= 10267 # include_expsyms should be a list of space-separated symbols to be *always* 10268 # included in the symbol list 10269 include_expsyms= 10270 # exclude_expsyms can be an extended regexp of symbols to exclude 10271 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10272 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10273 # as well as any symbol that contains 'd'. 10274 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10275 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10276 # platforms (ab)use it in PIC code, but their linkers get confused if 10277 # the symbol is explicitly referenced. Since portable code cannot 10278 # rely on this symbol name, it's probably fine to never include it in 10279 # preloaded symbol tables. 10280 # Exclude shared library initialization/finalization symbols. 10281 extract_expsyms_cmds= 10282 10283 case $host_os in 10284 cygwin* | mingw* | windows* | pw32* | cegcc*) 10285 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10286 # When not using gcc, we currently assume that we are using 10287 # Microsoft Visual C++ or Intel C++ Compiler. 10288 if test yes != "$GCC"; then 10289 with_gnu_ld=no 10290 fi 10291 ;; 10292 interix*) 10293 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10294 with_gnu_ld=yes 10295 ;; 10296 esac 10297 10298 ld_shlibs=yes 10299 10300 # On some targets, GNU ld is compatible enough with the native linker 10301 # that we're better off using the native interface for both. 10302 lt_use_gnu_ld_interface=no 10303 if test yes = "$with_gnu_ld"; then 10304 case $host_os in 10305 aix*) 10306 # The AIX port of GNU ld has always aspired to compatibility 10307 # with the native linker. However, as the warning in the GNU ld 10308 # block says, versions before 2.19.5* couldn't really create working 10309 # shared libraries, regardless of the interface used. 10310 case `$LD -v 2>&1` in 10311 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10312 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10313 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10314 *) 10315 lt_use_gnu_ld_interface=yes 10316 ;; 10317 esac 10318 ;; 10319 *) 10320 lt_use_gnu_ld_interface=yes 10321 ;; 10322 esac 10323 fi 10324 10325 if test yes = "$lt_use_gnu_ld_interface"; then 10326 # If archive_cmds runs LD, not CC, wlarc should be empty 10327 wlarc='$wl' 10328 10329 # Set some defaults for GNU ld with shared library support. These 10330 # are reset later if shared libraries are not supported. Putting them 10331 # here allows them to be overridden if necessary. 10332 runpath_var=LD_RUN_PATH 10333 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10334 export_dynamic_flag_spec='$wl--export-dynamic' 10335 # ancient GNU ld didn't support --whole-archive et. al. 10336 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10337 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10338 else 10339 whole_archive_flag_spec= 10340 fi 10341 supports_anon_versioning=no 10342 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10343 *GNU\ gold*) supports_anon_versioning=yes ;; 10344 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10345 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10346 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10347 *\ 2.11.*) ;; # other 2.11 versions 10348 *) supports_anon_versioning=yes ;; 10349 esac 10350 10351 # See if GNU ld supports shared libraries. 10352 case $host_os in 10353 aix[3-9]*) 10354 # On AIX/PPC, the GNU linker is very broken 10355 if test ia64 != "$host_cpu"; then 10356 ld_shlibs=no 10357 cat <<_LT_EOF 1>&2 10358 10359 *** Warning: the GNU linker, at least up to release 2.19, is reported 10360 *** to be unable to reliably create shared libraries on AIX. 10361 *** Therefore, libtool is disabling shared libraries support. If you 10362 *** really care for shared libraries, you may want to install binutils 10363 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10364 *** You will then need to restart the configuration process. 10365 10366 _LT_EOF 10367 fi 10368 ;; 10369 10370 amigaos*) 10371 case $host_cpu in 10372 powerpc) 10373 # see comment about AmigaOS4 .so support 10374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10375 archive_expsym_cmds='' 10376 ;; 10377 m68k) 10378 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)' 10379 hardcode_libdir_flag_spec='-L$libdir' 10380 hardcode_minus_L=yes 10381 ;; 10382 esac 10383 ;; 10384 10385 beos*) 10386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10387 allow_undefined_flag=unsupported 10388 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10389 # support --undefined. This deserves some investigation. FIXME 10390 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10391 else 10392 ld_shlibs=no 10393 fi 10394 ;; 10395 10396 cygwin* | mingw* | windows* | pw32* | cegcc*) 10397 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10398 # as there is no search path for DLLs. 10399 hardcode_libdir_flag_spec='-L$libdir' 10400 export_dynamic_flag_spec='$wl--export-all-symbols' 10401 allow_undefined_flag=unsupported 10402 always_export_symbols=no 10403 enable_shared_with_static_runtimes=yes 10404 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' 10405 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10406 file_list_spec='@' 10407 10408 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10410 # If the export-symbols file already is a .def file, use it as 10411 # is; otherwise, prepend EXPORTS... 10412 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10413 cp $export_symbols $output_objdir/$soname.def; 10414 else 10415 echo EXPORTS > $output_objdir/$soname.def; 10416 cat $export_symbols >> $output_objdir/$soname.def; 10417 fi~ 10418 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10419 else 10420 ld_shlibs=no 10421 fi 10422 ;; 10423 10424 haiku*) 10425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10426 link_all_deplibs=no 10427 ;; 10428 10429 os2*) 10430 hardcode_libdir_flag_spec='-L$libdir' 10431 hardcode_minus_L=yes 10432 allow_undefined_flag=unsupported 10433 shrext_cmds=.dll 10434 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10435 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10436 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10437 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10438 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10439 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10440 emximp -o $lib $output_objdir/$libname.def' 10441 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10442 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10443 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10444 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10445 prefix_cmds="$SED"~ 10446 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10447 prefix_cmds="$prefix_cmds -e 1d"; 10448 fi~ 10449 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10450 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10451 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10452 emximp -o $lib $output_objdir/$libname.def' 10453 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10454 enable_shared_with_static_runtimes=yes 10455 file_list_spec='@' 10456 ;; 10457 10458 interix[3-9]*) 10459 hardcode_direct=no 10460 hardcode_shlibpath_var=no 10461 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10462 export_dynamic_flag_spec='$wl-E' 10463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10464 # Instead, shared libraries are loaded at an image base (0x10000000 by 10465 # default) and relocated if they conflict, which is a slow very memory 10466 # consuming and fragmenting process. To avoid this, we pick a random, 10467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10468 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10470 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' 10471 ;; 10472 10473 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10474 tmp_diet=no 10475 if test linux-dietlibc = "$host_os"; then 10476 case $cc_basename in 10477 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10478 esac 10479 fi 10480 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10481 && test no = "$tmp_diet" 10482 then 10483 tmp_addflag=' $pic_flag' 10484 tmp_sharedflag='-shared' 10485 case $cc_basename,$host_cpu in 10486 pgcc*) # Portland Group C compiler 10487 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' 10488 tmp_addflag=' $pic_flag' 10489 ;; 10490 pgf77* | pgf90* | pgf95* | pgfortran*) 10491 # Portland Group f77 and f90 compilers 10492 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' 10493 tmp_addflag=' $pic_flag -Mnomain' ;; 10494 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10495 tmp_addflag=' -i_dynamic' ;; 10496 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10497 tmp_addflag=' -i_dynamic -nofor_main' ;; 10498 ifc* | ifort*) # Intel Fortran compiler 10499 tmp_addflag=' -nofor_main' ;; 10500 lf95*) # Lahey Fortran 8.1 10501 whole_archive_flag_spec= 10502 tmp_sharedflag='--shared' ;; 10503 nagfor*) # NAGFOR 5.3 10504 tmp_sharedflag='-Wl,-shared' ;; 10505 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10506 tmp_sharedflag='-qmkshrobj' 10507 tmp_addflag= ;; 10508 nvcc*) # Cuda Compiler Driver 2.2 10509 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' 10510 compiler_needs_object=yes 10511 ;; 10512 esac 10513 case `$CC -V 2>&1 | $SED 5q` in 10514 *Sun\ C*) # Sun C 5.9 10515 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' 10516 compiler_needs_object=yes 10517 tmp_sharedflag='-G' ;; 10518 *Sun\ F*) # Sun Fortran 8.3 10519 tmp_sharedflag='-G' ;; 10520 esac 10521 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10522 10523 if test yes = "$supports_anon_versioning"; then 10524 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10525 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10526 echo "local: *; };" >> $output_objdir/$libname.ver~ 10527 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10528 fi 10529 10530 case $cc_basename in 10531 tcc*) 10532 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10533 export_dynamic_flag_spec='-rdynamic' 10534 ;; 10535 xlf* | bgf* | bgxlf* | mpixlf*) 10536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10537 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10538 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10539 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10540 if test yes = "$supports_anon_versioning"; then 10541 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10542 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10543 echo "local: *; };" >> $output_objdir/$libname.ver~ 10544 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10545 fi 10546 ;; 10547 esac 10548 else 10549 ld_shlibs=no 10550 fi 10551 ;; 10552 10553 *-mlibc) 10554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10555 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10556 ;; 10557 10558 netbsd* | netbsdelf*-gnu) 10559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10560 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10561 wlarc= 10562 else 10563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10564 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10565 fi 10566 ;; 10567 10568 solaris*) 10569 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10570 ld_shlibs=no 10571 cat <<_LT_EOF 1>&2 10572 10573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10574 *** create shared libraries on Solaris systems. Therefore, libtool 10575 *** is disabling shared libraries support. We urge you to upgrade GNU 10576 *** binutils to release 2.9.1 or newer. Another option is to modify 10577 *** your PATH or compiler configuration so that the native linker is 10578 *** used, and then restart. 10579 10580 _LT_EOF 10581 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10583 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10584 else 10585 ld_shlibs=no 10586 fi 10587 ;; 10588 10589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10590 case `$LD -v 2>&1` in 10591 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10592 ld_shlibs=no 10593 cat <<_LT_EOF 1>&2 10594 10595 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10596 *** reliably create shared libraries on SCO systems. Therefore, libtool 10597 *** is disabling shared libraries support. We urge you to upgrade GNU 10598 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10599 *** your PATH or compiler configuration so that the native linker is 10600 *** used, and then restart. 10601 10602 _LT_EOF 10603 ;; 10604 *) 10605 # For security reasons, it is highly recommended that you always 10606 # use absolute paths for naming shared libraries, and exclude the 10607 # DT_RUNPATH tag from executables and libraries. But doing so 10608 # requires that you compile everything twice, which is a pain. 10609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10610 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10613 else 10614 ld_shlibs=no 10615 fi 10616 ;; 10617 esac 10618 ;; 10619 10620 sunos4*) 10621 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10622 wlarc= 10623 hardcode_direct=yes 10624 hardcode_shlibpath_var=no 10625 ;; 10626 10627 *) 10628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10630 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10631 else 10632 ld_shlibs=no 10633 fi 10634 ;; 10635 esac 10636 10637 if test no = "$ld_shlibs"; then 10638 runpath_var= 10639 hardcode_libdir_flag_spec= 10640 export_dynamic_flag_spec= 10641 whole_archive_flag_spec= 10642 fi 10643 else 10644 # PORTME fill in a description of your system's linker (not GNU ld) 10645 case $host_os in 10646 aix3*) 10647 allow_undefined_flag=unsupported 10648 always_export_symbols=yes 10649 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' 10650 # Note: this linker hardcodes the directories in LIBPATH if there 10651 # are no directories specified by -L. 10652 hardcode_minus_L=yes 10653 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10654 # Neither direct hardcoding nor static linking is supported with a 10655 # broken collect2. 10656 hardcode_direct=unsupported 10657 fi 10658 ;; 10659 10660 aix[4-9]*) 10661 if test ia64 = "$host_cpu"; then 10662 # On IA64, the linker does run time linking by default, so we don't 10663 # have to do anything special. 10664 aix_use_runtimelinking=no 10665 exp_sym_flag='-Bexport' 10666 no_entry_flag= 10667 else 10668 # If we're using GNU nm, then we don't want the "-C" option. 10669 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10670 # Without the "-l" option, or with the "-B" option, AIX nm treats 10671 # weak defined symbols like other global defined symbols, whereas 10672 # GNU nm marks them as "W". 10673 # While the 'weak' keyword is ignored in the Export File, we need 10674 # it in the Import File for the 'aix-soname' feature, so we have 10675 # to replace the "-B" option with "-P" for AIX nm. 10676 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10677 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' 10678 else 10679 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' 10680 fi 10681 aix_use_runtimelinking=no 10682 10683 # Test if we are trying to use run time linking or normal 10684 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10685 # have runtime linking enabled, and use it for executables. 10686 # For shared libraries, we enable/disable runtime linking 10687 # depending on the kind of the shared library created - 10688 # when "with_aix_soname,aix_use_runtimelinking" is: 10689 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10690 # "aix,yes" lib.so shared, rtl:yes, for executables 10691 # lib.a static archive 10692 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10693 # lib.a(lib.so.V) shared, rtl:no, for executables 10694 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10695 # lib.a(lib.so.V) shared, rtl:no 10696 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10697 # lib.a static archive 10698 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10699 for ld_flag in $LDFLAGS; do 10700 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10701 aix_use_runtimelinking=yes 10702 break 10703 fi 10704 done 10705 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10706 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10707 # so we don't have lib.a shared libs to link our executables. 10708 # We have to force runtime linking in this case. 10709 aix_use_runtimelinking=yes 10710 LDFLAGS="$LDFLAGS -Wl,-brtl" 10711 fi 10712 ;; 10713 esac 10714 10715 exp_sym_flag='-bexport' 10716 no_entry_flag='-bnoentry' 10717 fi 10718 10719 # When large executables or shared objects are built, AIX ld can 10720 # have problems creating the table of contents. If linking a library 10721 # or program results in "error TOC overflow" add -mminimal-toc to 10722 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10723 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10724 10725 archive_cmds='' 10726 hardcode_direct=yes 10727 hardcode_direct_absolute=yes 10728 hardcode_libdir_separator=':' 10729 link_all_deplibs=yes 10730 file_list_spec='$wl-f,' 10731 case $with_aix_soname,$aix_use_runtimelinking in 10732 aix,*) ;; # traditional, no import file 10733 svr4,* | *,yes) # use import file 10734 # The Import File defines what to hardcode. 10735 hardcode_direct=no 10736 hardcode_direct_absolute=no 10737 ;; 10738 esac 10739 10740 if test yes = "$GCC"; then 10741 case $host_os in aix4.[012]|aix4.[012].*) 10742 # We only want to do this on AIX 4.2 and lower, the check 10743 # below for broken collect2 doesn't work under 4.3+ 10744 collect2name=`$CC -print-prog-name=collect2` 10745 if test -f "$collect2name" && 10746 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10747 then 10748 # We have reworked collect2 10749 : 10750 else 10751 # We have old collect2 10752 hardcode_direct=unsupported 10753 # It fails to find uninstalled libraries when the uninstalled 10754 # path is not listed in the libpath. Setting hardcode_minus_L 10755 # to unsupported forces relinking 10756 hardcode_minus_L=yes 10757 hardcode_libdir_flag_spec='-L$libdir' 10758 hardcode_libdir_separator= 10759 fi 10760 ;; 10761 esac 10762 shared_flag='-shared' 10763 if test yes = "$aix_use_runtimelinking"; then 10764 shared_flag="$shared_flag "'$wl-G' 10765 fi 10766 # Need to ensure runtime linking is disabled for the traditional 10767 # shared library, or the linker may eventually find shared libraries 10768 # /with/ Import File - we do not want to mix them. 10769 shared_flag_aix='-shared' 10770 shared_flag_svr4='-shared $wl-G' 10771 else 10772 # not using gcc 10773 if test ia64 = "$host_cpu"; then 10774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10775 # chokes on -Wl,-G. The following line is correct: 10776 shared_flag='-G' 10777 else 10778 if test yes = "$aix_use_runtimelinking"; then 10779 shared_flag='$wl-G' 10780 else 10781 shared_flag='$wl-bM:SRE' 10782 fi 10783 shared_flag_aix='$wl-bM:SRE' 10784 shared_flag_svr4='$wl-G' 10785 fi 10786 fi 10787 10788 export_dynamic_flag_spec='$wl-bexpall' 10789 # It seems that -bexpall does not export symbols beginning with 10790 # underscore (_), so it is better to generate a list of symbols to export. 10791 always_export_symbols=yes 10792 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10793 # Warning - without using the other runtime loading flags (-brtl), 10794 # -berok will link without error, but may produce a broken library. 10795 allow_undefined_flag='-berok' 10796 # Determine the default libpath from the value encoded in an 10797 # empty executable. 10798 if test set = "${lt_cv_aix_libpath+set}"; then 10799 aix_libpath=$lt_cv_aix_libpath 10800 else 10801 if test ${lt_cv_aix_libpath_+y} 10802 then : 10803 printf %s "(cached) " >&6 10804 else case e in #( 10805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10806 /* end confdefs.h. */ 10807 10808 int 10809 main (void) 10810 { 10811 10812 ; 10813 return 0; 10814 } 10815 _ACEOF 10816 if ac_fn_c_try_link "$LINENO" 10817 then : 10818 10819 lt_aix_libpath_sed=' 10820 /Import File Strings/,/^$/ { 10821 /^0/ { 10822 s/^0 *\([^ ]*\) *$/\1/ 10823 p 10824 } 10825 }' 10826 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10827 # Check for a 64-bit object if we didn't find anything. 10828 if test -z "$lt_cv_aix_libpath_"; then 10829 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10830 fi 10831 fi 10832 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10833 conftest$ac_exeext conftest.$ac_ext 10834 if test -z "$lt_cv_aix_libpath_"; then 10835 lt_cv_aix_libpath_=/usr/lib:/lib 10836 fi 10837 ;; 10838 esac 10839 fi 10840 10841 aix_libpath=$lt_cv_aix_libpath_ 10842 fi 10843 10844 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10845 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 10846 else 10847 if test ia64 = "$host_cpu"; then 10848 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10849 allow_undefined_flag="-z nodefs" 10850 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" 10851 else 10852 # Determine the default libpath from the value encoded in an 10853 # empty executable. 10854 if test set = "${lt_cv_aix_libpath+set}"; then 10855 aix_libpath=$lt_cv_aix_libpath 10856 else 10857 if test ${lt_cv_aix_libpath_+y} 10858 then : 10859 printf %s "(cached) " >&6 10860 else case e in #( 10861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10862 /* end confdefs.h. */ 10863 10864 int 10865 main (void) 10866 { 10867 10868 ; 10869 return 0; 10870 } 10871 _ACEOF 10872 if ac_fn_c_try_link "$LINENO" 10873 then : 10874 10875 lt_aix_libpath_sed=' 10876 /Import File Strings/,/^$/ { 10877 /^0/ { 10878 s/^0 *\([^ ]*\) *$/\1/ 10879 p 10880 } 10881 }' 10882 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10883 # Check for a 64-bit object if we didn't find anything. 10884 if test -z "$lt_cv_aix_libpath_"; then 10885 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10886 fi 10887 fi 10888 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10889 conftest$ac_exeext conftest.$ac_ext 10890 if test -z "$lt_cv_aix_libpath_"; then 10891 lt_cv_aix_libpath_=/usr/lib:/lib 10892 fi 10893 ;; 10894 esac 10895 fi 10896 10897 aix_libpath=$lt_cv_aix_libpath_ 10898 fi 10899 10900 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10901 # Warning - without using the other run time loading flags, 10902 # -berok will link without error, but may produce a broken library. 10903 no_undefined_flag=' $wl-bernotok' 10904 allow_undefined_flag=' $wl-berok' 10905 if test yes = "$with_gnu_ld"; then 10906 # We only use this code for GNU lds that support --whole-archive. 10907 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10908 else 10909 # Exported symbols can be pulled into shared objects from archives 10910 whole_archive_flag_spec='$convenience' 10911 fi 10912 archive_cmds_need_lc=yes 10913 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10914 # -brtl affects multiple linker settings, -berok does not and is overridden later 10915 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10916 if test svr4 != "$with_aix_soname"; then 10917 # This is similar to how AIX traditionally builds its shared libraries. 10918 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' 10919 fi 10920 if test aix != "$with_aix_soname"; then 10921 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' 10922 else 10923 # used by -dlpreopen to get the symbols 10924 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10925 fi 10926 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10927 fi 10928 fi 10929 ;; 10930 10931 amigaos*) 10932 case $host_cpu in 10933 powerpc) 10934 # see comment about AmigaOS4 .so support 10935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10936 archive_expsym_cmds='' 10937 ;; 10938 m68k) 10939 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)' 10940 hardcode_libdir_flag_spec='-L$libdir' 10941 hardcode_minus_L=yes 10942 ;; 10943 esac 10944 ;; 10945 10946 bsdi[45]*) 10947 export_dynamic_flag_spec=-rdynamic 10948 ;; 10949 10950 cygwin* | mingw* | windows* | pw32* | cegcc*) 10951 # When not using gcc, we currently assume that we are using 10952 # Microsoft Visual C++ or Intel C++ Compiler. 10953 # hardcode_libdir_flag_spec is actually meaningless, as there is 10954 # no search path for DLLs. 10955 case $cc_basename in 10956 cl* | icl*) 10957 # Native MSVC or ICC 10958 hardcode_libdir_flag_spec=' ' 10959 allow_undefined_flag=unsupported 10960 always_export_symbols=yes 10961 file_list_spec='@' 10962 # Tell ltmain to make .lib files, not .a files. 10963 libext=lib 10964 # Tell ltmain to make .dll files, not .so files. 10965 shrext_cmds=.dll 10966 # FIXME: Setting linknames here is a bad hack. 10967 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10968 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10969 cp "$export_symbols" "$output_objdir/$soname.def"; 10970 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10971 else 10972 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10973 fi~ 10974 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10975 linknames=' 10976 # The linker will not automatically build a static lib if we build a DLL. 10977 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10978 enable_shared_with_static_runtimes=yes 10979 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10980 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10981 # Don't use ranlib 10982 old_postinstall_cmds='chmod 644 $oldlib' 10983 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10984 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10985 case $lt_outputfile in 10986 *.exe|*.EXE) ;; 10987 *) 10988 lt_outputfile=$lt_outputfile.exe 10989 lt_tool_outputfile=$lt_tool_outputfile.exe 10990 ;; 10991 esac~ 10992 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10993 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10994 $RM "$lt_outputfile.manifest"; 10995 fi' 10996 ;; 10997 *) 10998 # Assume MSVC and ICC wrapper 10999 hardcode_libdir_flag_spec=' ' 11000 allow_undefined_flag=unsupported 11001 # Tell ltmain to make .lib files, not .a files. 11002 libext=lib 11003 # Tell ltmain to make .dll files, not .so files. 11004 shrext_cmds=.dll 11005 # FIXME: Setting linknames here is a bad hack. 11006 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11007 # The linker will automatically build a .lib file if we build a DLL. 11008 old_archive_from_new_cmds='true' 11009 # FIXME: Should let the user specify the lib program. 11010 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11011 enable_shared_with_static_runtimes=yes 11012 ;; 11013 esac 11014 ;; 11015 11016 darwin* | rhapsody*) 11017 11018 11019 archive_cmds_need_lc=no 11020 hardcode_direct=no 11021 hardcode_automatic=yes 11022 hardcode_shlibpath_var=unsupported 11023 if test yes = "$lt_cv_ld_force_load"; then 11024 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\"`' 11025 11026 else 11027 whole_archive_flag_spec='' 11028 fi 11029 link_all_deplibs=yes 11030 allow_undefined_flag=$_lt_dar_allow_undefined 11031 case $cc_basename in 11032 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11033 *) _lt_dar_can_shared=$GCC ;; 11034 esac 11035 if test yes = "$_lt_dar_can_shared"; then 11036 output_verbose_link_cmd=func_echo_all 11037 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11038 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11039 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" 11040 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" 11041 11042 else 11043 ld_shlibs=no 11044 fi 11045 11046 ;; 11047 11048 dgux*) 11049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11050 hardcode_libdir_flag_spec='-L$libdir' 11051 hardcode_shlibpath_var=no 11052 ;; 11053 11054 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11055 # support. Future versions do this automatically, but an explicit c++rt0.o 11056 # does not break anything, and helps significantly (at the cost of a little 11057 # extra space). 11058 freebsd2.2*) 11059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11060 hardcode_libdir_flag_spec='-R$libdir' 11061 hardcode_direct=yes 11062 hardcode_shlibpath_var=no 11063 ;; 11064 11065 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11066 freebsd2.*) 11067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11068 hardcode_direct=yes 11069 hardcode_minus_L=yes 11070 hardcode_shlibpath_var=no 11071 ;; 11072 11073 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11074 freebsd* | dragonfly* | midnightbsd*) 11075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11076 hardcode_libdir_flag_spec='-R$libdir' 11077 hardcode_direct=yes 11078 hardcode_shlibpath_var=no 11079 ;; 11080 11081 hpux9*) 11082 if test yes = "$GCC"; then 11083 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' 11084 else 11085 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' 11086 fi 11087 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11088 hardcode_libdir_separator=: 11089 hardcode_direct=yes 11090 11091 # hardcode_minus_L: Not really in the search PATH, 11092 # but as the default location of the library. 11093 hardcode_minus_L=yes 11094 export_dynamic_flag_spec='$wl-E' 11095 ;; 11096 11097 hpux10*) 11098 if test yes,no = "$GCC,$with_gnu_ld"; then 11099 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11100 else 11101 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11102 fi 11103 if test no = "$with_gnu_ld"; then 11104 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11105 hardcode_libdir_separator=: 11106 hardcode_direct=yes 11107 hardcode_direct_absolute=yes 11108 export_dynamic_flag_spec='$wl-E' 11109 # hardcode_minus_L: Not really in the search PATH, 11110 # but as the default location of the library. 11111 hardcode_minus_L=yes 11112 fi 11113 ;; 11114 11115 hpux11*) 11116 if test yes,no = "$GCC,$with_gnu_ld"; then 11117 case $host_cpu in 11118 hppa*64*) 11119 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11120 ;; 11121 ia64*) 11122 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11123 ;; 11124 *) 11125 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11126 ;; 11127 esac 11128 else 11129 case $host_cpu in 11130 hppa*64*) 11131 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11132 ;; 11133 ia64*) 11134 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11135 ;; 11136 *) 11137 11138 # Older versions of the 11.00 compiler do not understand -b yet 11139 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11141 printf %s "checking if $CC understands -b... " >&6; } 11142 if test ${lt_cv_prog_compiler__b+y} 11143 then : 11144 printf %s "(cached) " >&6 11145 else case e in #( 11146 e) lt_cv_prog_compiler__b=no 11147 save_LDFLAGS=$LDFLAGS 11148 LDFLAGS="$LDFLAGS -b" 11149 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11151 # The linker can only warn and ignore the option if not recognized 11152 # So say no if there are warnings 11153 if test -s conftest.err; then 11154 # Append any errors to the config.log. 11155 cat conftest.err 1>&5 11156 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11158 if diff conftest.exp conftest.er2 >/dev/null; then 11159 lt_cv_prog_compiler__b=yes 11160 fi 11161 else 11162 lt_cv_prog_compiler__b=yes 11163 fi 11164 fi 11165 $RM -r conftest* 11166 LDFLAGS=$save_LDFLAGS 11167 ;; 11168 esac 11169 fi 11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11171 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11172 11173 if test yes = "$lt_cv_prog_compiler__b"; then 11174 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11175 else 11176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11177 fi 11178 11179 ;; 11180 esac 11181 fi 11182 if test no = "$with_gnu_ld"; then 11183 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11184 hardcode_libdir_separator=: 11185 11186 case $host_cpu in 11187 hppa*64*|ia64*) 11188 hardcode_direct=no 11189 hardcode_shlibpath_var=no 11190 ;; 11191 *) 11192 hardcode_direct=yes 11193 hardcode_direct_absolute=yes 11194 export_dynamic_flag_spec='$wl-E' 11195 11196 # hardcode_minus_L: Not really in the search PATH, 11197 # but as the default location of the library. 11198 hardcode_minus_L=yes 11199 ;; 11200 esac 11201 fi 11202 ;; 11203 11204 irix5* | irix6* | nonstopux*) 11205 if test yes = "$GCC"; then 11206 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' 11207 # Try to use the -exported_symbol ld option, if it does not 11208 # work, assume that -exports_file does not work either and 11209 # implicitly export all symbols. 11210 # This should be the same for all languages, so no per-tag cache variable. 11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11212 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11213 if test ${lt_cv_irix_exported_symbol+y} 11214 then : 11215 printf %s "(cached) " >&6 11216 else case e in #( 11217 e) save_LDFLAGS=$LDFLAGS 11218 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11220 /* end confdefs.h. */ 11221 int foo (void) { return 0; } 11222 _ACEOF 11223 if ac_fn_c_try_link "$LINENO" 11224 then : 11225 lt_cv_irix_exported_symbol=yes 11226 else case e in #( 11227 e) lt_cv_irix_exported_symbol=no ;; 11228 esac 11229 fi 11230 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11231 conftest$ac_exeext conftest.$ac_ext 11232 LDFLAGS=$save_LDFLAGS ;; 11233 esac 11234 fi 11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11236 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11237 if test yes = "$lt_cv_irix_exported_symbol"; then 11238 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' 11239 fi 11240 else 11241 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' 11242 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' 11243 fi 11244 archive_cmds_need_lc='no' 11245 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11246 hardcode_libdir_separator=: 11247 inherit_rpath=yes 11248 link_all_deplibs=yes 11249 ;; 11250 11251 linux*) 11252 case $cc_basename in 11253 tcc*) 11254 # Fabrice Bellard et al's Tiny C Compiler 11255 ld_shlibs=yes 11256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11257 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11258 ;; 11259 esac 11260 ;; 11261 11262 *-mlibc) 11263 ;; 11264 11265 netbsd* | netbsdelf*-gnu) 11266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11268 else 11269 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11270 fi 11271 hardcode_libdir_flag_spec='-R$libdir' 11272 hardcode_direct=yes 11273 hardcode_shlibpath_var=no 11274 ;; 11275 11276 newsos6) 11277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11278 hardcode_direct=yes 11279 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11280 hardcode_libdir_separator=: 11281 hardcode_shlibpath_var=no 11282 ;; 11283 11284 *nto* | *qnx*) 11285 ;; 11286 11287 openbsd*) 11288 if test -f /usr/libexec/ld.so; then 11289 hardcode_direct=yes 11290 hardcode_shlibpath_var=no 11291 hardcode_direct_absolute=yes 11292 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11293 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11294 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11295 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11296 export_dynamic_flag_spec='$wl-E' 11297 else 11298 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11299 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11300 fi 11301 else 11302 ld_shlibs=no 11303 fi 11304 ;; 11305 11306 os2*) 11307 hardcode_libdir_flag_spec='-L$libdir' 11308 hardcode_minus_L=yes 11309 allow_undefined_flag=unsupported 11310 shrext_cmds=.dll 11311 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11312 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11313 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11314 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11315 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11316 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11317 emximp -o $lib $output_objdir/$libname.def' 11318 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11319 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11320 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11321 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11322 prefix_cmds="$SED"~ 11323 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11324 prefix_cmds="$prefix_cmds -e 1d"; 11325 fi~ 11326 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11327 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11328 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11329 emximp -o $lib $output_objdir/$libname.def' 11330 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11331 enable_shared_with_static_runtimes=yes 11332 file_list_spec='@' 11333 ;; 11334 11335 osf3*) 11336 if test yes = "$GCC"; then 11337 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11338 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' 11339 else 11340 allow_undefined_flag=' -expect_unresolved \*' 11341 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' 11342 fi 11343 archive_cmds_need_lc='no' 11344 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11345 hardcode_libdir_separator=: 11346 ;; 11347 11348 osf4* | osf5*) # as osf3* with the addition of -msym flag 11349 if test yes = "$GCC"; then 11350 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11351 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' 11352 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11353 else 11354 allow_undefined_flag=' -expect_unresolved \*' 11355 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' 11356 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~ 11357 $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' 11358 11359 # Both c and cxx compiler support -rpath directly 11360 hardcode_libdir_flag_spec='-rpath $libdir' 11361 fi 11362 archive_cmds_need_lc='no' 11363 hardcode_libdir_separator=: 11364 ;; 11365 11366 serenity*) 11367 ;; 11368 11369 solaris*) 11370 no_undefined_flag=' -z defs' 11371 if test yes = "$GCC"; then 11372 wlarc='$wl' 11373 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11374 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11375 $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' 11376 else 11377 case `$CC -V 2>&1` in 11378 *"Compilers 5.0"*) 11379 wlarc='' 11380 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11381 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11382 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11383 ;; 11384 *) 11385 wlarc='$wl' 11386 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11388 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11389 ;; 11390 esac 11391 fi 11392 hardcode_libdir_flag_spec='-R$libdir' 11393 hardcode_shlibpath_var=no 11394 case $host_os in 11395 solaris2.[0-5] | solaris2.[0-5].*) ;; 11396 *) 11397 # The compiler driver will combine and reorder linker options, 11398 # but understands '-z linker_flag'. GCC discards it without '$wl', 11399 # but is careful enough not to reorder. 11400 # Supported since Solaris 2.6 (maybe 2.5.1?) 11401 if test yes = "$GCC"; then 11402 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11403 else 11404 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11405 fi 11406 ;; 11407 esac 11408 link_all_deplibs=yes 11409 ;; 11410 11411 sunos4*) 11412 if test sequent = "$host_vendor"; then 11413 # Use $CC to link under sequent, because it throws in some extra .o 11414 # files that make .init and .fini sections work. 11415 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11416 else 11417 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11418 fi 11419 hardcode_libdir_flag_spec='-L$libdir' 11420 hardcode_direct=yes 11421 hardcode_minus_L=yes 11422 hardcode_shlibpath_var=no 11423 ;; 11424 11425 sysv4) 11426 case $host_vendor in 11427 sni) 11428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11429 hardcode_direct=yes # is this really true??? 11430 ;; 11431 siemens) 11432 ## LD is ld it makes a PLAMLIB 11433 ## CC just makes a GrossModule. 11434 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11435 reload_cmds='$CC -r -o $output$reload_objs' 11436 hardcode_direct=no 11437 ;; 11438 motorola) 11439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11440 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11441 ;; 11442 esac 11443 runpath_var='LD_RUN_PATH' 11444 hardcode_shlibpath_var=no 11445 ;; 11446 11447 sysv4.3*) 11448 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11449 hardcode_shlibpath_var=no 11450 export_dynamic_flag_spec='-Bexport' 11451 ;; 11452 11453 sysv4*MP*) 11454 if test -d /usr/nec; then 11455 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11456 hardcode_shlibpath_var=no 11457 runpath_var=LD_RUN_PATH 11458 hardcode_runpath_var=yes 11459 ld_shlibs=yes 11460 fi 11461 ;; 11462 11463 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11464 no_undefined_flag='$wl-z,text' 11465 archive_cmds_need_lc=no 11466 hardcode_shlibpath_var=no 11467 runpath_var='LD_RUN_PATH' 11468 11469 if test yes = "$GCC"; then 11470 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11471 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11472 else 11473 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11474 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11475 fi 11476 ;; 11477 11478 sysv5* | sco3.2v5* | sco5v6*) 11479 # Note: We CANNOT use -z defs as we might desire, because we do not 11480 # link with -lc, and that would cause any symbols used from libc to 11481 # always be unresolved, which means just about no library would 11482 # ever link correctly. If we're not using GNU ld we use -z text 11483 # though, which does catch some bad symbols but isn't as heavy-handed 11484 # as -z defs. 11485 no_undefined_flag='$wl-z,text' 11486 allow_undefined_flag='$wl-z,nodefs' 11487 archive_cmds_need_lc=no 11488 hardcode_shlibpath_var=no 11489 hardcode_libdir_flag_spec='$wl-R,$libdir' 11490 hardcode_libdir_separator=':' 11491 link_all_deplibs=yes 11492 export_dynamic_flag_spec='$wl-Bexport' 11493 runpath_var='LD_RUN_PATH' 11494 11495 if test yes = "$GCC"; then 11496 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11497 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11498 else 11499 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11500 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11501 fi 11502 ;; 11503 11504 uts4*) 11505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11506 hardcode_libdir_flag_spec='-L$libdir' 11507 hardcode_shlibpath_var=no 11508 ;; 11509 11510 *) 11511 ld_shlibs=no 11512 ;; 11513 esac 11514 11515 if test sni = "$host_vendor"; then 11516 case $host in 11517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11518 export_dynamic_flag_spec='$wl-Blargedynsym' 11519 ;; 11520 esac 11521 fi 11522 fi 11523 11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11525 printf "%s\n" "$ld_shlibs" >&6; } 11526 test no = "$ld_shlibs" && can_build_shared=no 11527 11528 with_gnu_ld=$with_gnu_ld 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 # 11545 # Do we need to explicitly link libc? 11546 # 11547 case "x$archive_cmds_need_lc" in 11548 x|xyes) 11549 # Assume -lc should be added 11550 archive_cmds_need_lc=yes 11551 11552 if test yes,yes = "$GCC,$enable_shared"; then 11553 case $archive_cmds in 11554 *'~'*) 11555 # FIXME: we may have to deal with multi-command sequences. 11556 ;; 11557 '$CC '*) 11558 # Test whether the compiler implicitly links with -lc since on some 11559 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11560 # to ld, don't add -lc before -lgcc. 11561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11562 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11563 if test ${lt_cv_archive_cmds_need_lc+y} 11564 then : 11565 printf %s "(cached) " >&6 11566 else case e in #( 11567 e) $RM conftest* 11568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11569 11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11571 (eval $ac_compile) 2>&5 11572 ac_status=$? 11573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11574 test $ac_status = 0; } 2>conftest.err; then 11575 soname=conftest 11576 lib=conftest 11577 libobjs=conftest.$ac_objext 11578 deplibs= 11579 wl=$lt_prog_compiler_wl 11580 pic_flag=$lt_prog_compiler_pic 11581 compiler_flags=-v 11582 linker_flags=-v 11583 verstring= 11584 output_objdir=. 11585 libname=conftest 11586 lt_save_allow_undefined_flag=$allow_undefined_flag 11587 allow_undefined_flag= 11588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11589 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11590 ac_status=$? 11591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11592 test $ac_status = 0; } 11593 then 11594 lt_cv_archive_cmds_need_lc=no 11595 else 11596 lt_cv_archive_cmds_need_lc=yes 11597 fi 11598 allow_undefined_flag=$lt_save_allow_undefined_flag 11599 else 11600 cat conftest.err 1>&5 11601 fi 11602 $RM conftest* 11603 ;; 11604 esac 11605 fi 11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11607 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11608 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11609 ;; 11610 esac 11611 fi 11612 ;; 11613 esac 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11767 printf %s "checking dynamic linker characteristics... " >&6; } 11768 11769 if test yes = "$GCC"; then 11770 case $host_os in 11771 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11772 *) lt_awk_arg='/^libraries:/' ;; 11773 esac 11774 case $host_os in 11775 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11776 *) lt_sed_strip_eq='s|=/|/|g' ;; 11777 esac 11778 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11779 case $lt_search_path_spec in 11780 *\;*) 11781 # if the path contains ";" then we assume it to be the separator 11782 # otherwise default to the standard path separator (i.e. ":") - it is 11783 # assumed that no part of a normal pathname contains ";" but that should 11784 # okay in the real world where ";" in dirpaths is itself problematic. 11785 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11786 ;; 11787 *) 11788 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11789 ;; 11790 esac 11791 # Ok, now we have the path, separated by spaces, we can step through it 11792 # and add multilib dir if necessary... 11793 lt_tmp_lt_search_path_spec= 11794 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11795 # ...but if some path component already ends with the multilib dir we assume 11796 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11797 case "$lt_multi_os_dir; $lt_search_path_spec " in 11798 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11799 lt_multi_os_dir= 11800 ;; 11801 esac 11802 for lt_sys_path in $lt_search_path_spec; do 11803 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11804 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11805 elif test -n "$lt_multi_os_dir"; then 11806 test -d "$lt_sys_path" && \ 11807 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11808 fi 11809 done 11810 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11811 BEGIN {RS = " "; FS = "/|\n";} { 11812 lt_foo = ""; 11813 lt_count = 0; 11814 for (lt_i = NF; lt_i > 0; lt_i--) { 11815 if ($lt_i != "" && $lt_i != ".") { 11816 if ($lt_i == "..") { 11817 lt_count++; 11818 } else { 11819 if (lt_count == 0) { 11820 lt_foo = "/" $lt_i lt_foo; 11821 } else { 11822 lt_count--; 11823 } 11824 } 11825 } 11826 } 11827 if (lt_foo != "") { lt_freq[lt_foo]++; } 11828 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11829 }'` 11830 # AWK program above erroneously prepends '/' to C:/dos/paths 11831 # for these hosts. 11832 case $host_os in 11833 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11834 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11835 esac 11836 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11837 else 11838 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11839 fi 11840 library_names_spec= 11841 libname_spec='lib$name' 11842 soname_spec= 11843 shrext_cmds=.so 11844 postinstall_cmds= 11845 postuninstall_cmds= 11846 finish_cmds= 11847 finish_eval= 11848 shlibpath_var= 11849 shlibpath_overrides_runpath=unknown 11850 version_type=none 11851 dynamic_linker="$host_os ld.so" 11852 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11853 need_lib_prefix=unknown 11854 hardcode_into_libs=no 11855 11856 # when you set need_version to no, make sure it does not cause -set_version 11857 # flags to be left without arguments 11858 need_version=unknown 11859 11860 11861 11862 case $host_os in 11863 aix3*) 11864 version_type=linux # correct to gnu/linux during the next big refactor 11865 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11866 shlibpath_var=LIBPATH 11867 11868 # AIX 3 has no versioning support, so we append a major version to the name. 11869 soname_spec='$libname$release$shared_ext$major' 11870 ;; 11871 11872 aix[4-9]*) 11873 version_type=linux # correct to gnu/linux during the next big refactor 11874 need_lib_prefix=no 11875 need_version=no 11876 hardcode_into_libs=yes 11877 if test ia64 = "$host_cpu"; then 11878 # AIX 5 supports IA64 11879 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11880 shlibpath_var=LD_LIBRARY_PATH 11881 else 11882 # With GCC up to 2.95.x, collect2 would create an import file 11883 # for dependence libraries. The import file would start with 11884 # the line '#! .'. This would cause the generated library to 11885 # depend on '.', always an invalid library. This was fixed in 11886 # development snapshots of GCC prior to 3.0. 11887 case $host_os in 11888 aix4 | aix4.[01] | aix4.[01].*) 11889 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11890 echo ' yes ' 11891 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11892 : 11893 else 11894 can_build_shared=no 11895 fi 11896 ;; 11897 esac 11898 # Using Import Files as archive members, it is possible to support 11899 # filename-based versioning of shared library archives on AIX. While 11900 # this would work for both with and without runtime linking, it will 11901 # prevent static linking of such archives. So we do filename-based 11902 # shared library versioning with .so extension only, which is used 11903 # when both runtime linking and shared linking is enabled. 11904 # Unfortunately, runtime linking may impact performance, so we do 11905 # not want this to be the default eventually. Also, we use the 11906 # versioned .so libs for executables only if there is the -brtl 11907 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. 11908 # To allow for filename-based versioning support, we need to create 11909 # libNAME.so.V as an archive file, containing: 11910 # *) an Import File, referring to the versioned filename of the 11911 # archive as well as the shared archive member, telling the 11912 # bitwidth (32 or 64) of that shared object, and providing the 11913 # list of exported symbols of that shared object, eventually 11914 # decorated with the 'weak' keyword 11915 # *) the shared object with the F_LOADONLY flag set, to really avoid 11916 # it being seen by the linker. 11917 # At run time we better use the real file rather than another symlink, 11918 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11919 11920 case $with_aix_soname,$aix_use_runtimelinking in 11921 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11922 # soname into executable. Probably we can add versioning support to 11923 # collect2, so additional links can be useful in future. 11924 aix,yes) # traditional libtool 11925 dynamic_linker='AIX unversionable lib.so' 11926 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11927 # instead of lib<name>.a to let people know that these are not 11928 # typical AIX shared libraries. 11929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11930 ;; 11931 aix,no) # traditional AIX only 11932 dynamic_linker='AIX lib.a(lib.so.V)' 11933 # We preserve .a as extension for shared libraries through AIX4.2 11934 # and later when we are not doing run time linking. 11935 library_names_spec='$libname$release.a $libname.a' 11936 soname_spec='$libname$release$shared_ext$major' 11937 ;; 11938 svr4,*) # full svr4 only 11939 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11940 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11941 # We do not specify a path in Import Files, so LIBPATH fires. 11942 shlibpath_overrides_runpath=yes 11943 ;; 11944 *,yes) # both, prefer svr4 11945 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11946 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11947 # unpreferred sharedlib libNAME.a needs extra handling 11948 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"' 11949 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"' 11950 # We do not specify a path in Import Files, so LIBPATH fires. 11951 shlibpath_overrides_runpath=yes 11952 ;; 11953 *,no) # both, prefer aix 11954 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11955 library_names_spec='$libname$release.a $libname.a' 11956 soname_spec='$libname$release$shared_ext$major' 11957 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11958 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)' 11959 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"' 11960 ;; 11961 esac 11962 shlibpath_var=LIBPATH 11963 fi 11964 ;; 11965 11966 amigaos*) 11967 case $host_cpu in 11968 powerpc) 11969 # Since July 2007 AmigaOS4 officially supports .so libraries. 11970 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11972 ;; 11973 m68k) 11974 library_names_spec='$libname.ixlibrary $libname.a' 11975 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11976 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' 11977 ;; 11978 esac 11979 ;; 11980 11981 beos*) 11982 library_names_spec='$libname$shared_ext' 11983 dynamic_linker="$host_os ld.so" 11984 shlibpath_var=LIBRARY_PATH 11985 ;; 11986 11987 bsdi[45]*) 11988 version_type=linux # correct to gnu/linux during the next big refactor 11989 need_version=no 11990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11991 soname_spec='$libname$release$shared_ext$major' 11992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11993 shlibpath_var=LD_LIBRARY_PATH 11994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11996 # the default ld.so.conf also contains /usr/contrib/lib and 11997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11998 # libtool to hard-code these into programs 11999 ;; 12000 12001 cygwin* | mingw* | windows* | pw32* | cegcc*) 12002 version_type=windows 12003 shrext_cmds=.dll 12004 need_version=no 12005 need_lib_prefix=no 12006 12007 case $GCC,$cc_basename in 12008 yes,*) 12009 # gcc 12010 library_names_spec='$libname.dll.a' 12011 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12012 # If user builds GCC with multilib enabled, 12013 # it should just install on $(libdir) 12014 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. 12015 if test xyes = x"$multilib"; then 12016 postinstall_cmds='base_file=`basename \$file`~ 12017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12018 dldir=$destdir/`dirname \$dlpath`~ 12019 $install_prog $dir/$dlname $destdir/$dlname~ 12020 chmod a+x $destdir/$dlname~ 12021 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12022 eval '\''$striplib $destdir/$dlname'\'' || exit \$?; 12023 fi' 12024 else 12025 postinstall_cmds='base_file=`basename \$file`~ 12026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12027 dldir=$destdir/`dirname \$dlpath`~ 12028 test -d \$dldir || mkdir -p \$dldir~ 12029 $install_prog $dir/$dlname \$dldir/$dlname~ 12030 chmod a+x \$dldir/$dlname~ 12031 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12032 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12033 fi' 12034 fi 12035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12036 dlpath=$dir/\$dldll~ 12037 $RM \$dlpath' 12038 shlibpath_overrides_runpath=yes 12039 12040 case $host_os in 12041 cygwin*) 12042 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12043 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12044 12045 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12046 ;; 12047 mingw* | windows* | cegcc*) 12048 # MinGW DLLs use traditional 'lib' prefix 12049 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12050 ;; 12051 pw32*) 12052 # pw32 DLLs use 'pw' prefix rather than 'lib' 12053 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12054 ;; 12055 esac 12056 dynamic_linker='Win32 ld.exe' 12057 ;; 12058 12059 *,cl* | *,icl*) 12060 # Native MSVC or ICC 12061 libname_spec='$name' 12062 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12063 library_names_spec='$libname.dll.lib' 12064 12065 case $build_os in 12066 mingw* | windows*) 12067 sys_lib_search_path_spec= 12068 lt_save_ifs=$IFS 12069 IFS=';' 12070 for lt_path in $LIB 12071 do 12072 IFS=$lt_save_ifs 12073 # Let DOS variable expansion print the short 8.3 style file name. 12074 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12075 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12076 done 12077 IFS=$lt_save_ifs 12078 # Convert to MSYS style. 12079 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12080 ;; 12081 cygwin*) 12082 # Convert to unix form, then to dos form, then back to unix form 12083 # but this time dos style (no spaces!) so that the unix form looks 12084 # like /cygdrive/c/PROGRA~1:/cygdr... 12085 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12086 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12087 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12088 ;; 12089 *) 12090 sys_lib_search_path_spec=$LIB 12091 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12092 # It is most probably a Windows format PATH. 12093 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12094 else 12095 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12096 fi 12097 # FIXME: find the short name or the path components, as spaces are 12098 # common. (e.g. "Program Files" -> "PROGRA~1") 12099 ;; 12100 esac 12101 12102 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12103 postinstall_cmds='base_file=`basename \$file`~ 12104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12105 dldir=$destdir/`dirname \$dlpath`~ 12106 test -d \$dldir || mkdir -p \$dldir~ 12107 $install_prog $dir/$dlname \$dldir/$dlname' 12108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12109 dlpath=$dir/\$dldll~ 12110 $RM \$dlpath' 12111 shlibpath_overrides_runpath=yes 12112 dynamic_linker='Win32 link.exe' 12113 ;; 12114 12115 *) 12116 # Assume MSVC and ICC wrapper 12117 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12118 dynamic_linker='Win32 ld.exe' 12119 ;; 12120 esac 12121 # FIXME: first we should search . and the directory the executable is in 12122 shlibpath_var=PATH 12123 ;; 12124 12125 darwin* | rhapsody*) 12126 dynamic_linker="$host_os dyld" 12127 version_type=darwin 12128 need_lib_prefix=no 12129 need_version=no 12130 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12131 soname_spec='$libname$release$major$shared_ext' 12132 shlibpath_overrides_runpath=yes 12133 shlibpath_var=DYLD_LIBRARY_PATH 12134 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12135 12136 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12138 ;; 12139 12140 dgux*) 12141 version_type=linux # correct to gnu/linux during the next big refactor 12142 need_lib_prefix=no 12143 need_version=no 12144 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12145 soname_spec='$libname$release$shared_ext$major' 12146 shlibpath_var=LD_LIBRARY_PATH 12147 ;; 12148 12149 freebsd* | dragonfly* | midnightbsd*) 12150 # DragonFly does not have aout. When/if they implement a new 12151 # versioning mechanism, adjust this. 12152 if test -x /usr/bin/objformat; then 12153 objformat=`/usr/bin/objformat` 12154 else 12155 case $host_os in 12156 freebsd[23].*) objformat=aout ;; 12157 *) objformat=elf ;; 12158 esac 12159 fi 12160 version_type=freebsd-$objformat 12161 case $version_type in 12162 freebsd-elf*) 12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12164 soname_spec='$libname$release$shared_ext$major' 12165 need_version=no 12166 need_lib_prefix=no 12167 ;; 12168 freebsd-*) 12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12170 need_version=yes 12171 ;; 12172 esac 12173 case $host_cpu in 12174 powerpc64) 12175 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit 12176 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. 12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12178 /* end confdefs.h. */ 12179 int test_pointer_size[sizeof (void *) - 5]; 12180 12181 _ACEOF 12182 if ac_fn_c_try_compile "$LINENO" 12183 then : 12184 shlibpath_var=LD_LIBRARY_PATH 12185 else case e in #( 12186 e) shlibpath_var=LD_32_LIBRARY_PATH ;; 12187 esac 12188 fi 12189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12190 ;; 12191 *) 12192 shlibpath_var=LD_LIBRARY_PATH 12193 ;; 12194 esac 12195 case $host_os in 12196 freebsd2.*) 12197 shlibpath_overrides_runpath=yes 12198 ;; 12199 freebsd3.[01]* | freebsdelf3.[01]*) 12200 shlibpath_overrides_runpath=yes 12201 hardcode_into_libs=yes 12202 ;; 12203 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12204 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12205 shlibpath_overrides_runpath=no 12206 hardcode_into_libs=yes 12207 ;; 12208 *) # from 4.6 on, and DragonFly 12209 shlibpath_overrides_runpath=yes 12210 hardcode_into_libs=yes 12211 ;; 12212 esac 12213 ;; 12214 12215 haiku*) 12216 version_type=linux # correct to gnu/linux during the next big refactor 12217 need_lib_prefix=no 12218 need_version=no 12219 dynamic_linker="$host_os runtime_loader" 12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12221 soname_spec='$libname$release$shared_ext$major' 12222 shlibpath_var=LIBRARY_PATH 12223 shlibpath_overrides_runpath=no 12224 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' 12225 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' 12226 hardcode_into_libs=no 12227 ;; 12228 12229 hpux9* | hpux10* | hpux11*) 12230 # Give a soname corresponding to the major version so that dld.sl refuses to 12231 # link against other versions. 12232 version_type=sunos 12233 need_lib_prefix=no 12234 need_version=no 12235 case $host_cpu in 12236 ia64*) 12237 shrext_cmds='.so' 12238 hardcode_into_libs=yes 12239 dynamic_linker="$host_os dld.so" 12240 shlibpath_var=LD_LIBRARY_PATH 12241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12243 soname_spec='$libname$release$shared_ext$major' 12244 if test 32 = "$HPUX_IA64_MODE"; then 12245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12246 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12247 else 12248 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12249 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12250 fi 12251 ;; 12252 hppa*64*) 12253 shrext_cmds='.sl' 12254 hardcode_into_libs=yes 12255 dynamic_linker="$host_os dld.sl" 12256 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12258 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12259 soname_spec='$libname$release$shared_ext$major' 12260 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12262 ;; 12263 *) 12264 shrext_cmds='.sl' 12265 dynamic_linker="$host_os dld.sl" 12266 shlibpath_var=SHLIB_PATH 12267 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12269 soname_spec='$libname$release$shared_ext$major' 12270 ;; 12271 esac 12272 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12273 postinstall_cmds='chmod 555 $lib' 12274 # or fails outright, so override atomically: 12275 install_override_mode=555 12276 ;; 12277 12278 interix[3-9]*) 12279 version_type=linux # correct to gnu/linux during the next big refactor 12280 need_lib_prefix=no 12281 need_version=no 12282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12283 soname_spec='$libname$release$shared_ext$major' 12284 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12285 shlibpath_var=LD_LIBRARY_PATH 12286 shlibpath_overrides_runpath=no 12287 hardcode_into_libs=yes 12288 ;; 12289 12290 irix5* | irix6* | nonstopux*) 12291 case $host_os in 12292 nonstopux*) version_type=nonstopux ;; 12293 *) 12294 if test yes = "$lt_cv_prog_gnu_ld"; then 12295 version_type=linux # correct to gnu/linux during the next big refactor 12296 else 12297 version_type=irix 12298 fi ;; 12299 esac 12300 need_lib_prefix=no 12301 need_version=no 12302 soname_spec='$libname$release$shared_ext$major' 12303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12304 case $host_os in 12305 irix5* | nonstopux*) 12306 libsuff= shlibsuff= 12307 ;; 12308 *) 12309 case $LD in # libtool.m4 will add one of these switches to LD 12310 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12311 libsuff= shlibsuff= libmagic=32-bit;; 12312 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12313 libsuff=32 shlibsuff=N32 libmagic=N32;; 12314 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12315 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12316 *) libsuff= shlibsuff= libmagic=never-match;; 12317 esac 12318 ;; 12319 esac 12320 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12321 shlibpath_overrides_runpath=no 12322 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12323 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12324 hardcode_into_libs=yes 12325 ;; 12326 12327 # No shared lib support for Linux oldld, aout, or coff. 12328 linux*oldld* | linux*aout* | linux*coff*) 12329 dynamic_linker=no 12330 ;; 12331 12332 linux*android*) 12333 version_type=none # Android doesn't support versioned libraries. 12334 need_lib_prefix=no 12335 need_version=no 12336 library_names_spec='$libname$release$shared_ext $libname$shared_ext' 12337 soname_spec='$libname$release$shared_ext' 12338 finish_cmds= 12339 shlibpath_var=LD_LIBRARY_PATH 12340 shlibpath_overrides_runpath=yes 12341 12342 # This implies no fast_install, which is unacceptable. 12343 # Some rework will be needed to allow for fast_install 12344 # before this can be enabled. 12345 hardcode_into_libs=yes 12346 12347 dynamic_linker='Android linker' 12348 # -rpath works at least for libraries that are not overridden by 12349 # libraries installed in system locations. 12350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 12351 ;; 12352 12353 # This must be glibc/ELF. 12354 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12361 shlibpath_var=LD_LIBRARY_PATH 12362 shlibpath_overrides_runpath=no 12363 12364 # Some binutils ld are patched to set DT_RUNPATH 12365 if test ${lt_cv_shlibpath_overrides_runpath+y} 12366 then : 12367 printf %s "(cached) " >&6 12368 else case e in #( 12369 e) lt_cv_shlibpath_overrides_runpath=no 12370 save_LDFLAGS=$LDFLAGS 12371 save_libdir=$libdir 12372 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12373 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12375 /* end confdefs.h. */ 12376 12377 int 12378 main (void) 12379 { 12380 12381 ; 12382 return 0; 12383 } 12384 _ACEOF 12385 if ac_fn_c_try_link "$LINENO" 12386 then : 12387 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12388 then : 12389 lt_cv_shlibpath_overrides_runpath=yes 12390 fi 12391 fi 12392 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12393 conftest$ac_exeext conftest.$ac_ext 12394 LDFLAGS=$save_LDFLAGS 12395 libdir=$save_libdir 12396 ;; 12397 esac 12398 fi 12399 12400 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12401 12402 # This implies no fast_install, which is unacceptable. 12403 # Some rework will be needed to allow for fast_install 12404 # before this can be enabled. 12405 hardcode_into_libs=yes 12406 12407 # Ideally, we could use ldconfig to report *all* directories which are 12408 # searched for libraries, however this is still not possible. Aside from not 12409 # being certain /sbin/ldconfig is available, command 12410 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12411 # even though it is searched at run-time. Try to do the best guess by 12412 # appending ld.so.conf contents (and includes) to the search path. 12413 if test -f /etc/ld.so.conf; then 12414 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' ' '` 12415 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12416 fi 12417 12418 # We used to test for /lib/ld.so.1 and disable shared libraries on 12419 # powerpc, because MkLinux only supported shared libraries with the 12420 # GNU dynamic linker. Since this was broken with cross compilers, 12421 # most powerpc-linux boxes support dynamic linking these days and 12422 # people can always --disable-shared, the test was removed, and we 12423 # assume the GNU/Linux dynamic linker is in use. 12424 dynamic_linker='GNU/Linux ld.so' 12425 ;; 12426 12427 netbsdelf*-gnu) 12428 version_type=linux 12429 need_lib_prefix=no 12430 need_version=no 12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12432 soname_spec='$libname$release$shared_ext$major' 12433 shlibpath_var=LD_LIBRARY_PATH 12434 shlibpath_overrides_runpath=no 12435 hardcode_into_libs=yes 12436 dynamic_linker='NetBSD ld.elf_so' 12437 ;; 12438 12439 netbsd*) 12440 version_type=sunos 12441 need_lib_prefix=no 12442 need_version=no 12443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12444 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12446 dynamic_linker='NetBSD (a.out) ld.so' 12447 else 12448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12449 soname_spec='$libname$release$shared_ext$major' 12450 dynamic_linker='NetBSD ld.elf_so' 12451 fi 12452 shlibpath_var=LD_LIBRARY_PATH 12453 shlibpath_overrides_runpath=yes 12454 hardcode_into_libs=yes 12455 ;; 12456 12457 *-mlibc) 12458 version_type=linux # correct to gnu/linux during the next big refactor 12459 need_lib_prefix=no 12460 need_version=no 12461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12462 soname_spec='$libname$release$shared_ext$major' 12463 dynamic_linker='mlibc ld.so' 12464 shlibpath_var=LD_LIBRARY_PATH 12465 shlibpath_overrides_runpath=no 12466 hardcode_into_libs=yes 12467 ;; 12468 12469 newsos6) 12470 version_type=linux # correct to gnu/linux during the next big refactor 12471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12472 shlibpath_var=LD_LIBRARY_PATH 12473 shlibpath_overrides_runpath=yes 12474 ;; 12475 12476 *nto* | *qnx*) 12477 version_type=qnx 12478 need_lib_prefix=no 12479 need_version=no 12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12481 soname_spec='$libname$release$shared_ext$major' 12482 shlibpath_var=LD_LIBRARY_PATH 12483 shlibpath_overrides_runpath=no 12484 hardcode_into_libs=yes 12485 dynamic_linker='ldqnx.so' 12486 ;; 12487 12488 openbsd*) 12489 version_type=sunos 12490 sys_lib_dlsearch_path_spec=/usr/lib 12491 need_lib_prefix=no 12492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12493 need_version=no 12494 else 12495 need_version=yes 12496 fi 12497 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12499 shlibpath_var=LD_LIBRARY_PATH 12500 shlibpath_overrides_runpath=yes 12501 ;; 12502 12503 os2*) 12504 libname_spec='$name' 12505 version_type=windows 12506 shrext_cmds=.dll 12507 need_version=no 12508 need_lib_prefix=no 12509 # OS/2 can only load a DLL with a base name of 8 characters or less. 12510 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12511 v=$($ECHO $release$versuffix | tr -d .-); 12512 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12513 $ECHO $n$v`$shared_ext' 12514 library_names_spec='${libname}_dll.$libext' 12515 dynamic_linker='OS/2 ld.exe' 12516 shlibpath_var=BEGINLIBPATH 12517 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12519 postinstall_cmds='base_file=`basename \$file`~ 12520 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12521 dldir=$destdir/`dirname \$dlpath`~ 12522 test -d \$dldir || mkdir -p \$dldir~ 12523 $install_prog $dir/$dlname \$dldir/$dlname~ 12524 chmod a+x \$dldir/$dlname~ 12525 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12526 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12527 fi' 12528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12529 dlpath=$dir/\$dldll~ 12530 $RM \$dlpath' 12531 ;; 12532 12533 osf3* | osf4* | osf5*) 12534 version_type=osf 12535 need_lib_prefix=no 12536 need_version=no 12537 soname_spec='$libname$release$shared_ext$major' 12538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12539 shlibpath_var=LD_LIBRARY_PATH 12540 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12542 ;; 12543 12544 rdos*) 12545 dynamic_linker=no 12546 ;; 12547 12548 serenity*) 12549 version_type=linux # correct to gnu/linux during the next big refactor 12550 need_lib_prefix=no 12551 need_version=no 12552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12553 soname_spec='$libname$release$shared_ext$major' 12554 shlibpath_var=LD_LIBRARY_PATH 12555 shlibpath_overrides_runpath=no 12556 dynamic_linker='SerenityOS LibELF' 12557 ;; 12558 12559 solaris*) 12560 version_type=linux # correct to gnu/linux during the next big refactor 12561 need_lib_prefix=no 12562 need_version=no 12563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12564 soname_spec='$libname$release$shared_ext$major' 12565 shlibpath_var=LD_LIBRARY_PATH 12566 shlibpath_overrides_runpath=yes 12567 hardcode_into_libs=yes 12568 # ldd complains unless libraries are executable 12569 postinstall_cmds='chmod +x $lib' 12570 ;; 12571 12572 sunos4*) 12573 version_type=sunos 12574 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12575 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12576 shlibpath_var=LD_LIBRARY_PATH 12577 shlibpath_overrides_runpath=yes 12578 if test yes = "$with_gnu_ld"; then 12579 need_lib_prefix=no 12580 fi 12581 need_version=yes 12582 ;; 12583 12584 sysv4 | sysv4.3*) 12585 version_type=linux # correct to gnu/linux during the next big refactor 12586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12587 soname_spec='$libname$release$shared_ext$major' 12588 shlibpath_var=LD_LIBRARY_PATH 12589 case $host_vendor in 12590 sni) 12591 shlibpath_overrides_runpath=no 12592 need_lib_prefix=no 12593 runpath_var=LD_RUN_PATH 12594 ;; 12595 siemens) 12596 need_lib_prefix=no 12597 ;; 12598 motorola) 12599 need_lib_prefix=no 12600 need_version=no 12601 shlibpath_overrides_runpath=no 12602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12603 ;; 12604 esac 12605 ;; 12606 12607 sysv4*MP*) 12608 if test -d /usr/nec; then 12609 version_type=linux # correct to gnu/linux during the next big refactor 12610 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12611 soname_spec='$libname$shared_ext.$major' 12612 shlibpath_var=LD_LIBRARY_PATH 12613 fi 12614 ;; 12615 12616 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12617 version_type=sco 12618 need_lib_prefix=no 12619 need_version=no 12620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12621 soname_spec='$libname$release$shared_ext$major' 12622 shlibpath_var=LD_LIBRARY_PATH 12623 shlibpath_overrides_runpath=yes 12624 hardcode_into_libs=yes 12625 if test yes = "$with_gnu_ld"; then 12626 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12627 else 12628 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12629 case $host_os in 12630 sco3.2v5*) 12631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12632 ;; 12633 esac 12634 fi 12635 sys_lib_dlsearch_path_spec='/usr/lib' 12636 ;; 12637 12638 tpf*) 12639 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12640 version_type=linux # correct to gnu/linux during the next big refactor 12641 need_lib_prefix=no 12642 need_version=no 12643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12644 shlibpath_var=LD_LIBRARY_PATH 12645 shlibpath_overrides_runpath=no 12646 hardcode_into_libs=yes 12647 ;; 12648 12649 uts4*) 12650 version_type=linux # correct to gnu/linux during the next big refactor 12651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12652 soname_spec='$libname$release$shared_ext$major' 12653 shlibpath_var=LD_LIBRARY_PATH 12654 ;; 12655 12656 emscripten*) 12657 version_type=none 12658 need_lib_prefix=no 12659 need_version=no 12660 library_names_spec='$libname$release$shared_ext' 12661 soname_spec='$libname$release$shared_ext' 12662 finish_cmds= 12663 dynamic_linker="Emscripten linker" 12664 lt_prog_compiler_wl= 12665 lt_prog_compiler_pic= 12666 lt_prog_compiler_static= 12667 12668 12669 if test yes = "$GCC"; then 12670 lt_prog_compiler_wl='-Wl,' 12671 lt_prog_compiler_static='-static' 12672 12673 case $host_os in 12674 aix*) 12675 # All AIX code is PIC. 12676 if test ia64 = "$host_cpu"; then 12677 # AIX 5 now supports IA64 processor 12678 lt_prog_compiler_static='-Bstatic' 12679 fi 12680 lt_prog_compiler_pic='-fPIC' 12681 ;; 12682 12683 amigaos*) 12684 case $host_cpu in 12685 powerpc) 12686 # see comment about AmigaOS4 .so support 12687 lt_prog_compiler_pic='-fPIC' 12688 ;; 12689 m68k) 12690 # FIXME: we need at least 68020 code to build shared libraries, but 12691 # adding the '-m68020' flag to GCC prevents building anything better, 12692 # like '-m68040'. 12693 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 12694 ;; 12695 esac 12696 ;; 12697 12698 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12699 # PIC is the default for these OSes. 12700 ;; 12701 12702 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12703 # This hack is so that the source file can tell whether it is being 12704 # built for inclusion in a dll (and should export symbols for example). 12705 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12706 # (--disable-auto-import) libraries 12707 lt_prog_compiler_pic='-DDLL_EXPORT' 12708 case $host_os in 12709 os2*) 12710 lt_prog_compiler_static='$wl-static' 12711 ;; 12712 esac 12713 ;; 12714 12715 darwin* | rhapsody*) 12716 # PIC is the default on this platform 12717 # Common symbols not allowed in MH_DYLIB files 12718 lt_prog_compiler_pic='-fno-common' 12719 ;; 12720 12721 haiku*) 12722 # PIC is the default for Haiku. 12723 # The "-static" flag exists, but is broken. 12724 lt_prog_compiler_static= 12725 ;; 12726 12727 hpux*) 12728 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12729 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12730 # sets the default TLS model and affects inlining. 12731 case $host_cpu in 12732 hppa*64*) 12733 # +Z the default 12734 ;; 12735 *) 12736 lt_prog_compiler_pic='-fPIC' 12737 ;; 12738 esac 12739 ;; 12740 12741 interix[3-9]*) 12742 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12743 # Instead, we relocate shared libraries at runtime. 12744 ;; 12745 12746 msdosdjgpp*) 12747 # Just because we use GCC doesn't mean we suddenly get shared libraries 12748 # on systems that don't support them. 12749 lt_prog_compiler_can_build_shared=no 12750 enable_shared=no 12751 ;; 12752 12753 *nto* | *qnx*) 12754 # QNX uses GNU C++, but need to define -shared option too, otherwise 12755 # it will coredump. 12756 lt_prog_compiler_pic='-fPIC -shared' 12757 ;; 12758 12759 sysv4*MP*) 12760 if test -d /usr/nec; then 12761 lt_prog_compiler_pic=-Kconform_pic 12762 fi 12763 ;; 12764 12765 *) 12766 lt_prog_compiler_pic='-fPIC' 12767 ;; 12768 esac 12769 12770 case $cc_basename in 12771 nvcc*) # Cuda Compiler Driver 2.2 12772 lt_prog_compiler_wl='-Xlinker ' 12773 if test -n "$lt_prog_compiler_pic"; then 12774 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 12775 fi 12776 ;; 12777 esac 12778 else 12779 # PORTME Check for flag to pass linker flags through the system compiler. 12780 case $host_os in 12781 aix*) 12782 lt_prog_compiler_wl='-Wl,' 12783 if test ia64 = "$host_cpu"; then 12784 # AIX 5 now supports IA64 processor 12785 lt_prog_compiler_static='-Bstatic' 12786 else 12787 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 12788 fi 12789 ;; 12790 12791 darwin* | rhapsody*) 12792 # PIC is the default on this platform 12793 # Common symbols not allowed in MH_DYLIB files 12794 lt_prog_compiler_pic='-fno-common' 12795 case $cc_basename in 12796 nagfor*) 12797 # NAG Fortran compiler 12798 lt_prog_compiler_wl='-Wl,-Wl,,' 12799 lt_prog_compiler_pic='-PIC' 12800 lt_prog_compiler_static='-Bstatic' 12801 ;; 12802 esac 12803 ;; 12804 12805 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) 12806 # This hack is so that the source file can tell whether it is being 12807 # built for inclusion in a dll (and should export symbols for example). 12808 lt_prog_compiler_pic='-DDLL_EXPORT' 12809 case $host_os in 12810 os2*) 12811 lt_prog_compiler_static='$wl-static' 12812 ;; 12813 esac 12814 ;; 12815 12816 hpux9* | hpux10* | hpux11*) 12817 lt_prog_compiler_wl='-Wl,' 12818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12819 # not for PA HP-UX. 12820 case $host_cpu in 12821 hppa*64*|ia64*) 12822 # +Z the default 12823 ;; 12824 *) 12825 lt_prog_compiler_pic='+Z' 12826 ;; 12827 esac 12828 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12829 lt_prog_compiler_static='$wl-a ${wl}archive' 12830 ;; 12831 12832 irix5* | irix6* | nonstopux*) 12833 lt_prog_compiler_wl='-Wl,' 12834 # PIC (with -KPIC) is the default. 12835 lt_prog_compiler_static='-non_shared' 12836 ;; 12837 12838 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12839 case $cc_basename in 12840 # old Intel for x86_64, which still supported -KPIC. 12841 ecc*) 12842 lt_prog_compiler_wl='-Wl,' 12843 lt_prog_compiler_pic='-KPIC' 12844 lt_prog_compiler_static='-static' 12845 ;; 12846 *flang* | ftn | f18* | f95*) 12847 # Flang compiler. 12848 lt_prog_compiler_wl='-Wl,' 12849 lt_prog_compiler_pic='-fPIC' 12850 lt_prog_compiler_static='-static' 12851 ;; 12852 # icc used to be incompatible with GCC. 12853 # ICC 10 doesn't accept -KPIC any more. 12854 icc* | ifort*) 12855 lt_prog_compiler_wl='-Wl,' 12856 lt_prog_compiler_pic='-fPIC' 12857 lt_prog_compiler_static='-static' 12858 ;; 12859 # Lahey Fortran 8.1. 12860 lf95*) 12861 lt_prog_compiler_wl='-Wl,' 12862 lt_prog_compiler_pic='--shared' 12863 lt_prog_compiler_static='--static' 12864 ;; 12865 nagfor*) 12866 # NAG Fortran compiler 12867 lt_prog_compiler_wl='-Wl,-Wl,,' 12868 lt_prog_compiler_pic='-PIC' 12869 lt_prog_compiler_static='-Bstatic' 12870 ;; 12871 tcc*) 12872 # Fabrice Bellard et al's Tiny C Compiler 12873 lt_prog_compiler_wl='-Wl,' 12874 lt_prog_compiler_pic='-fPIC' 12875 lt_prog_compiler_static='-static' 12876 ;; 12877 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 12878 # Portland Group compilers (*not* the Pentium gcc compiler, 12879 # which looks to be a dead project) 12880 lt_prog_compiler_wl='-Wl,' 12881 lt_prog_compiler_pic='-fpic' 12882 lt_prog_compiler_static='-Bstatic' 12883 ;; 12884 ccc*) 12885 lt_prog_compiler_wl='-Wl,' 12886 # All Alpha code is PIC. 12887 lt_prog_compiler_static='-non_shared' 12888 ;; 12889 xl* | bgxl* | bgf* | mpixl*) 12890 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 12891 lt_prog_compiler_wl='-Wl,' 12892 lt_prog_compiler_pic='-qpic' 12893 lt_prog_compiler_static='-qstaticlink' 12894 ;; 12895 *) 12896 case `$CC -V 2>&1 | $SED 5q` in 12897 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 12898 # Sun Fortran 8.3 passes all unrecognized flags to the linker 12899 lt_prog_compiler_pic='-KPIC' 12900 lt_prog_compiler_static='-Bstatic' 12901 lt_prog_compiler_wl='' 12902 ;; 12903 *Sun\ F* | *Sun*Fortran*) 12904 lt_prog_compiler_pic='-KPIC' 12905 lt_prog_compiler_static='-Bstatic' 12906 lt_prog_compiler_wl='-Qoption ld ' 12907 ;; 12908 *Sun\ C*) 12909 # Sun C 5.9 12910 lt_prog_compiler_pic='-KPIC' 12911 lt_prog_compiler_static='-Bstatic' 12912 lt_prog_compiler_wl='-Wl,' 12913 ;; 12914 *Intel*\ [CF]*Compiler*) 12915 lt_prog_compiler_wl='-Wl,' 12916 lt_prog_compiler_pic='-fPIC' 12917 lt_prog_compiler_static='-static' 12918 ;; 12919 *Portland\ Group*) 12920 lt_prog_compiler_wl='-Wl,' 12921 lt_prog_compiler_pic='-fpic' 12922 lt_prog_compiler_static='-Bstatic' 12923 ;; 12924 esac 12925 ;; 12926 esac 12927 ;; 12928 12929 newsos6) 12930 lt_prog_compiler_pic='-KPIC' 12931 lt_prog_compiler_static='-Bstatic' 12932 ;; 12933 12934 *-mlibc) 12935 lt_prog_compiler_wl='-Wl,' 12936 lt_prog_compiler_pic='-fPIC' 12937 lt_prog_compiler_static='-static' 12938 ;; 12939 12940 *nto* | *qnx*) 12941 # QNX uses GNU C++, but need to define -shared option too, otherwise 12942 # it will coredump. 12943 lt_prog_compiler_pic='-fPIC -shared' 12944 ;; 12945 12946 osf3* | osf4* | osf5*) 12947 lt_prog_compiler_wl='-Wl,' 12948 # All OSF/1 code is PIC. 12949 lt_prog_compiler_static='-non_shared' 12950 ;; 12951 12952 rdos*) 12953 lt_prog_compiler_static='-non_shared' 12954 ;; 12955 12956 serenity*) 12957 ;; 12958 12959 solaris*) 12960 lt_prog_compiler_pic='-KPIC' 12961 lt_prog_compiler_static='-Bstatic' 12962 case $cc_basename in 12963 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 12964 lt_prog_compiler_wl='-Qoption ld ';; 12965 *) 12966 lt_prog_compiler_wl='-Wl,';; 12967 esac 12968 ;; 12969 12970 sunos4*) 12971 lt_prog_compiler_wl='-Qoption ld ' 12972 lt_prog_compiler_pic='-PIC' 12973 lt_prog_compiler_static='-Bstatic' 12974 ;; 12975 12976 sysv4 | sysv4.2uw2* | sysv4.3*) 12977 lt_prog_compiler_wl='-Wl,' 12978 lt_prog_compiler_pic='-KPIC' 12979 lt_prog_compiler_static='-Bstatic' 12980 ;; 12981 12982 sysv4*MP*) 12983 if test -d /usr/nec; then 12984 lt_prog_compiler_pic='-Kconform_pic' 12985 lt_prog_compiler_static='-Bstatic' 12986 fi 12987 ;; 12988 12989 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12990 lt_prog_compiler_wl='-Wl,' 12991 lt_prog_compiler_pic='-KPIC' 12992 lt_prog_compiler_static='-Bstatic' 12993 ;; 12994 12995 unicos*) 12996 lt_prog_compiler_wl='-Wl,' 12997 lt_prog_compiler_can_build_shared=no 12998 ;; 12999 13000 uts4*) 13001 lt_prog_compiler_pic='-pic' 13002 lt_prog_compiler_static='-Bstatic' 13003 ;; 13004 13005 *) 13006 lt_prog_compiler_can_build_shared=no 13007 ;; 13008 esac 13009 fi 13010 13011 case $host_os in 13012 # For platforms that do not support PIC, -DPIC is meaningless: 13013 *djgpp*) 13014 lt_prog_compiler_pic= 13015 ;; 13016 *) 13017 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 13018 ;; 13019 esac 13020 13021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13022 printf %s "checking for $compiler option to produce PIC... " >&6; } 13023 if test ${lt_cv_prog_compiler_pic+y} 13024 then : 13025 printf %s "(cached) " >&6 13026 else case e in #( 13027 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 13028 esac 13029 fi 13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 13031 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 13032 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 13033 13034 # 13035 # Check to make sure the PIC flag actually works. 13036 # 13037 if test -n "$lt_prog_compiler_pic"; then 13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 13039 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 13040 if test ${lt_cv_prog_compiler_pic_works+y} 13041 then : 13042 printf %s "(cached) " >&6 13043 else case e in #( 13044 e) lt_cv_prog_compiler_pic_works=no 13045 ac_outfile=conftest.$ac_objext 13046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13047 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 13048 # Insert the option either (1) after the last *FLAGS variable, or 13049 # (2) before a word containing "conftest.", or (3) at the end. 13050 # Note that $ac_compile itself does not contain backslashes and begins 13051 # with a dollar sign (not a hyphen), so the echo should work correctly. 13052 # The option is referenced via a variable to avoid confusing sed. 13053 lt_compile=`echo "$ac_compile" | $SED \ 13054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13056 -e 's:$: $lt_compiler_flag:'` 13057 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13058 (eval "$lt_compile" 2>conftest.err) 13059 ac_status=$? 13060 cat conftest.err >&5 13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13062 if (exit $ac_status) && test -s "$ac_outfile"; then 13063 # The compiler can only warn and ignore the option if not recognized 13064 # So say no if there are warnings other than the usual output. 13065 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13067 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13068 lt_cv_prog_compiler_pic_works=yes 13069 fi 13070 fi 13071 $RM conftest* 13072 ;; 13073 esac 13074 fi 13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 13076 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 13077 13078 if test yes = "$lt_cv_prog_compiler_pic_works"; then 13079 case $lt_prog_compiler_pic in 13080 "" | " "*) ;; 13081 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 13082 esac 13083 else 13084 lt_prog_compiler_pic= 13085 lt_prog_compiler_can_build_shared=no 13086 fi 13087 13088 fi 13089 13090 13091 13092 13093 13094 # 13095 # Check to make sure the static flag actually works. 13096 # 13097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13099 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13100 if test ${lt_cv_prog_compiler_static_works+y} 13101 then : 13102 printf %s "(cached) " >&6 13103 else case e in #( 13104 e) lt_cv_prog_compiler_static_works=no 13105 save_LDFLAGS=$LDFLAGS 13106 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13107 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13109 # The linker can only warn and ignore the option if not recognized 13110 # So say no if there are warnings 13111 if test -s conftest.err; then 13112 # Append any errors to the config.log. 13113 cat conftest.err 1>&5 13114 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13116 if diff conftest.exp conftest.er2 >/dev/null; then 13117 lt_cv_prog_compiler_static_works=yes 13118 fi 13119 else 13120 lt_cv_prog_compiler_static_works=yes 13121 fi 13122 fi 13123 $RM -r conftest* 13124 LDFLAGS=$save_LDFLAGS 13125 ;; 13126 esac 13127 fi 13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 13129 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 13130 13131 if test yes = "$lt_cv_prog_compiler_static_works"; then 13132 : 13133 else 13134 lt_prog_compiler_static= 13135 fi 13136 13137 13138 13139 ='-fPIC' 13140 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' 13141 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' 13142 archive_cmds_need_lc=no 13143 no_undefined_flag= 13144 ;; 13145 13146 *) 13147 dynamic_linker=no 13148 ;; 13149 esac 13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13151 printf "%s\n" "$dynamic_linker" >&6; } 13152 test no = "$dynamic_linker" && can_build_shared=no 13153 13154 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13155 if test yes = "$GCC"; then 13156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13157 fi 13158 13159 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13160 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13161 fi 13162 13163 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13164 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13165 fi 13166 13167 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13168 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13169 13170 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13171 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13172 13173 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13174 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13273 printf %s "checking how to hardcode library paths into programs... " >&6; } 13274 hardcode_action= 13275 if test -n "$hardcode_libdir_flag_spec" || 13276 test -n "$runpath_var" || 13277 test yes = "$hardcode_automatic"; then 13278 13279 # We can hardcode non-existent directories. 13280 if test no != "$hardcode_direct" && 13281 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13282 # have to relink, otherwise we might link with an installed library 13283 # when we should be linking with a yet-to-be-installed one 13284 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13285 test no != "$hardcode_minus_L"; then 13286 # Linking always hardcodes the temporary library directory. 13287 hardcode_action=relink 13288 else 13289 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13290 hardcode_action=immediate 13291 fi 13292 else 13293 # We cannot hardcode anything, or else we can only hardcode existing 13294 # directories. 13295 hardcode_action=unsupported 13296 fi 13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13298 printf "%s\n" "$hardcode_action" >&6; } 13299 13300 if test relink = "$hardcode_action" || 13301 test yes = "$inherit_rpath"; then 13302 # Fast installation is not supported 13303 enable_fast_install=no 13304 elif test yes = "$shlibpath_overrides_runpath" || 13305 test no = "$enable_shared"; then 13306 # Fast installation is not necessary 13307 enable_fast_install=needless 13308 fi 13309 13310 13311 13312 13313 13314 13315 if test yes != "$enable_dlopen"; then 13316 enable_dlopen=unknown 13317 enable_dlopen_self=unknown 13318 enable_dlopen_self_static=unknown 13319 else 13320 lt_cv_dlopen=no 13321 lt_cv_dlopen_libs= 13322 13323 case $host_os in 13324 beos*) 13325 lt_cv_dlopen=load_add_on 13326 lt_cv_dlopen_libs= 13327 lt_cv_dlopen_self=yes 13328 ;; 13329 13330 mingw* | windows* | pw32* | cegcc*) 13331 lt_cv_dlopen=LoadLibrary 13332 lt_cv_dlopen_libs= 13333 ;; 13334 13335 cygwin*) 13336 lt_cv_dlopen=dlopen 13337 lt_cv_dlopen_libs= 13338 ;; 13339 13340 darwin*) 13341 # if libdl is installed we need to link against it 13342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13343 printf %s "checking for dlopen in -ldl... " >&6; } 13344 if test ${ac_cv_lib_dl_dlopen+y} 13345 then : 13346 printf %s "(cached) " >&6 13347 else case e in #( 13348 e) ac_check_lib_save_LIBS=$LIBS 13349 LIBS="-ldl $LIBS" 13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13351 /* end confdefs.h. */ 13352 13353 /* Override any GCC internal prototype to avoid an error. 13354 Use char because int might match the return type of a GCC 13355 builtin and then its argument prototype would still apply. 13356 The 'extern "C"' is for builds by C++ compilers; 13357 although this is not generally supported in C code supporting it here 13358 has little cost and some practical benefit (sr 110532). */ 13359 #ifdef __cplusplus 13360 extern "C" 13361 #endif 13362 char dlopen (void); 13363 int 13364 main (void) 13365 { 13366 return dlopen (); 13367 ; 13368 return 0; 13369 } 13370 _ACEOF 13371 if ac_fn_c_try_link "$LINENO" 13372 then : 13373 ac_cv_lib_dl_dlopen=yes 13374 else case e in #( 13375 e) ac_cv_lib_dl_dlopen=no ;; 13376 esac 13377 fi 13378 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13379 conftest$ac_exeext conftest.$ac_ext 13380 LIBS=$ac_check_lib_save_LIBS ;; 13381 esac 13382 fi 13383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13384 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13385 if test "x$ac_cv_lib_dl_dlopen" = xyes 13386 then : 13387 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13388 else case e in #( 13389 e) 13390 lt_cv_dlopen=dyld 13391 lt_cv_dlopen_libs= 13392 lt_cv_dlopen_self=yes 13393 ;; 13394 esac 13395 fi 13396 13397 ;; 13398 13399 tpf*) 13400 # Don't try to run any link tests for TPF. We know it's impossible 13401 # because TPF is a cross-compiler, and we know how we open DSOs. 13402 lt_cv_dlopen=dlopen 13403 lt_cv_dlopen_libs= 13404 lt_cv_dlopen_self=no 13405 ;; 13406 13407 *) 13408 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13409 if test "x$ac_cv_func_shl_load" = xyes 13410 then : 13411 lt_cv_dlopen=shl_load 13412 else case e in #( 13413 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13414 printf %s "checking for shl_load in -ldld... " >&6; } 13415 if test ${ac_cv_lib_dld_shl_load+y} 13416 then : 13417 printf %s "(cached) " >&6 13418 else case e in #( 13419 e) ac_check_lib_save_LIBS=$LIBS 13420 LIBS="-ldld $LIBS" 13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13422 /* end confdefs.h. */ 13423 13424 /* Override any GCC internal prototype to avoid an error. 13425 Use char because int might match the return type of a GCC 13426 builtin and then its argument prototype would still apply. 13427 The 'extern "C"' is for builds by C++ compilers; 13428 although this is not generally supported in C code supporting it here 13429 has little cost and some practical benefit (sr 110532). */ 13430 #ifdef __cplusplus 13431 extern "C" 13432 #endif 13433 char shl_load (void); 13434 int 13435 main (void) 13436 { 13437 return shl_load (); 13438 ; 13439 return 0; 13440 } 13441 _ACEOF 13442 if ac_fn_c_try_link "$LINENO" 13443 then : 13444 ac_cv_lib_dld_shl_load=yes 13445 else case e in #( 13446 e) ac_cv_lib_dld_shl_load=no ;; 13447 esac 13448 fi 13449 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13450 conftest$ac_exeext conftest.$ac_ext 13451 LIBS=$ac_check_lib_save_LIBS ;; 13452 esac 13453 fi 13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13455 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13456 if test "x$ac_cv_lib_dld_shl_load" = xyes 13457 then : 13458 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13459 else case e in #( 13460 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13461 if test "x$ac_cv_func_dlopen" = xyes 13462 then : 13463 lt_cv_dlopen=dlopen 13464 else case e in #( 13465 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13466 printf %s "checking for dlopen in -ldl... " >&6; } 13467 if test ${ac_cv_lib_dl_dlopen+y} 13468 then : 13469 printf %s "(cached) " >&6 13470 else case e in #( 13471 e) ac_check_lib_save_LIBS=$LIBS 13472 LIBS="-ldl $LIBS" 13473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13474 /* end confdefs.h. */ 13475 13476 /* Override any GCC internal prototype to avoid an error. 13477 Use char because int might match the return type of a GCC 13478 builtin and then its argument prototype would still apply. 13479 The 'extern "C"' is for builds by C++ compilers; 13480 although this is not generally supported in C code supporting it here 13481 has little cost and some practical benefit (sr 110532). */ 13482 #ifdef __cplusplus 13483 extern "C" 13484 #endif 13485 char dlopen (void); 13486 int 13487 main (void) 13488 { 13489 return dlopen (); 13490 ; 13491 return 0; 13492 } 13493 _ACEOF 13494 if ac_fn_c_try_link "$LINENO" 13495 then : 13496 ac_cv_lib_dl_dlopen=yes 13497 else case e in #( 13498 e) ac_cv_lib_dl_dlopen=no ;; 13499 esac 13500 fi 13501 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13502 conftest$ac_exeext conftest.$ac_ext 13503 LIBS=$ac_check_lib_save_LIBS ;; 13504 esac 13505 fi 13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13507 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13508 if test "x$ac_cv_lib_dl_dlopen" = xyes 13509 then : 13510 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13511 else case e in #( 13512 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13513 printf %s "checking for dlopen in -lsvld... " >&6; } 13514 if test ${ac_cv_lib_svld_dlopen+y} 13515 then : 13516 printf %s "(cached) " >&6 13517 else case e in #( 13518 e) ac_check_lib_save_LIBS=$LIBS 13519 LIBS="-lsvld $LIBS" 13520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13521 /* end confdefs.h. */ 13522 13523 /* Override any GCC internal prototype to avoid an error. 13524 Use char because int might match the return type of a GCC 13525 builtin and then its argument prototype would still apply. 13526 The 'extern "C"' is for builds by C++ compilers; 13527 although this is not generally supported in C code supporting it here 13528 has little cost and some practical benefit (sr 110532). */ 13529 #ifdef __cplusplus 13530 extern "C" 13531 #endif 13532 char dlopen (void); 13533 int 13534 main (void) 13535 { 13536 return dlopen (); 13537 ; 13538 return 0; 13539 } 13540 _ACEOF 13541 if ac_fn_c_try_link "$LINENO" 13542 then : 13543 ac_cv_lib_svld_dlopen=yes 13544 else case e in #( 13545 e) ac_cv_lib_svld_dlopen=no ;; 13546 esac 13547 fi 13548 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13549 conftest$ac_exeext conftest.$ac_ext 13550 LIBS=$ac_check_lib_save_LIBS ;; 13551 esac 13552 fi 13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13554 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13555 if test "x$ac_cv_lib_svld_dlopen" = xyes 13556 then : 13557 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13558 else case e in #( 13559 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13560 printf %s "checking for dld_link in -ldld... " >&6; } 13561 if test ${ac_cv_lib_dld_dld_link+y} 13562 then : 13563 printf %s "(cached) " >&6 13564 else case e in #( 13565 e) ac_check_lib_save_LIBS=$LIBS 13566 LIBS="-ldld $LIBS" 13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13568 /* end confdefs.h. */ 13569 13570 /* Override any GCC internal prototype to avoid an error. 13571 Use char because int might match the return type of a GCC 13572 builtin and then its argument prototype would still apply. 13573 The 'extern "C"' is for builds by C++ compilers; 13574 although this is not generally supported in C code supporting it here 13575 has little cost and some practical benefit (sr 110532). */ 13576 #ifdef __cplusplus 13577 extern "C" 13578 #endif 13579 char dld_link (void); 13580 int 13581 main (void) 13582 { 13583 return dld_link (); 13584 ; 13585 return 0; 13586 } 13587 _ACEOF 13588 if ac_fn_c_try_link "$LINENO" 13589 then : 13590 ac_cv_lib_dld_dld_link=yes 13591 else case e in #( 13592 e) ac_cv_lib_dld_dld_link=no ;; 13593 esac 13594 fi 13595 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13596 conftest$ac_exeext conftest.$ac_ext 13597 LIBS=$ac_check_lib_save_LIBS ;; 13598 esac 13599 fi 13600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13601 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13602 if test "x$ac_cv_lib_dld_dld_link" = xyes 13603 then : 13604 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13605 fi 13606 13607 ;; 13608 esac 13609 fi 13610 13611 ;; 13612 esac 13613 fi 13614 13615 ;; 13616 esac 13617 fi 13618 13619 ;; 13620 esac 13621 fi 13622 13623 ;; 13624 esac 13625 fi 13626 13627 ;; 13628 esac 13629 13630 if test no = "$lt_cv_dlopen"; then 13631 enable_dlopen=no 13632 else 13633 enable_dlopen=yes 13634 fi 13635 13636 case $lt_cv_dlopen in 13637 dlopen) 13638 save_CPPFLAGS=$CPPFLAGS 13639 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13640 13641 save_LDFLAGS=$LDFLAGS 13642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13643 13644 save_LIBS=$LIBS 13645 LIBS="$lt_cv_dlopen_libs $LIBS" 13646 13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13648 printf %s "checking whether a program can dlopen itself... " >&6; } 13649 if test ${lt_cv_dlopen_self+y} 13650 then : 13651 printf %s "(cached) " >&6 13652 else case e in #( 13653 e) if test yes = "$cross_compiling"; then : 13654 lt_cv_dlopen_self=cross 13655 else 13656 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13657 lt_status=$lt_dlunknown 13658 cat > conftest.$ac_ext <<_LT_EOF 13659 #line $LINENO "configure" 13660 #include "confdefs.h" 13661 13662 #if HAVE_DLFCN_H 13663 #include <dlfcn.h> 13664 #endif 13665 13666 #include <stdio.h> 13667 13668 #ifdef RTLD_GLOBAL 13669 # define LT_DLGLOBAL RTLD_GLOBAL 13670 #else 13671 # ifdef DL_GLOBAL 13672 # define LT_DLGLOBAL DL_GLOBAL 13673 # else 13674 # define LT_DLGLOBAL 0 13675 # endif 13676 #endif 13677 13678 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13679 find out it does not work in some platform. */ 13680 #ifndef LT_DLLAZY_OR_NOW 13681 # ifdef RTLD_LAZY 13682 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13683 # else 13684 # ifdef DL_LAZY 13685 # define LT_DLLAZY_OR_NOW DL_LAZY 13686 # else 13687 # ifdef RTLD_NOW 13688 # define LT_DLLAZY_OR_NOW RTLD_NOW 13689 # else 13690 # ifdef DL_NOW 13691 # define LT_DLLAZY_OR_NOW DL_NOW 13692 # else 13693 # define LT_DLLAZY_OR_NOW 0 13694 # endif 13695 # endif 13696 # endif 13697 # endif 13698 #endif 13699 13700 /* When -fvisibility=hidden is used, assume the code has been annotated 13701 correspondingly for the symbols needed. */ 13702 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13703 int fnord (void) __attribute__((visibility("default"))); 13704 #endif 13705 13706 int fnord (void) { return 42; } 13707 int main (void) 13708 { 13709 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13710 int status = $lt_dlunknown; 13711 13712 if (self) 13713 { 13714 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13715 else 13716 { 13717 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13718 else puts (dlerror ()); 13719 } 13720 /* dlclose (self); */ 13721 } 13722 else 13723 puts (dlerror ()); 13724 13725 return status; 13726 } 13727 _LT_EOF 13728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13729 (eval $ac_link) 2>&5 13730 ac_status=$? 13731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13732 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13733 (./conftest; exit; ) >&5 2>/dev/null 13734 lt_status=$? 13735 case x$lt_status in 13736 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13737 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13738 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13739 esac 13740 else : 13741 # compilation failed 13742 lt_cv_dlopen_self=no 13743 fi 13744 fi 13745 rm -fr conftest* 13746 13747 ;; 13748 esac 13749 fi 13750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13751 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13752 13753 if test yes = "$lt_cv_dlopen_self"; then 13754 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13756 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13757 if test ${lt_cv_dlopen_self_static+y} 13758 then : 13759 printf %s "(cached) " >&6 13760 else case e in #( 13761 e) if test yes = "$cross_compiling"; then : 13762 lt_cv_dlopen_self_static=cross 13763 else 13764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13765 lt_status=$lt_dlunknown 13766 cat > conftest.$ac_ext <<_LT_EOF 13767 #line $LINENO "configure" 13768 #include "confdefs.h" 13769 13770 #if HAVE_DLFCN_H 13771 #include <dlfcn.h> 13772 #endif 13773 13774 #include <stdio.h> 13775 13776 #ifdef RTLD_GLOBAL 13777 # define LT_DLGLOBAL RTLD_GLOBAL 13778 #else 13779 # ifdef DL_GLOBAL 13780 # define LT_DLGLOBAL DL_GLOBAL 13781 # else 13782 # define LT_DLGLOBAL 0 13783 # endif 13784 #endif 13785 13786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13787 find out it does not work in some platform. */ 13788 #ifndef LT_DLLAZY_OR_NOW 13789 # ifdef RTLD_LAZY 13790 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13791 # else 13792 # ifdef DL_LAZY 13793 # define LT_DLLAZY_OR_NOW DL_LAZY 13794 # else 13795 # ifdef RTLD_NOW 13796 # define LT_DLLAZY_OR_NOW RTLD_NOW 13797 # else 13798 # ifdef DL_NOW 13799 # define LT_DLLAZY_OR_NOW DL_NOW 13800 # else 13801 # define LT_DLLAZY_OR_NOW 0 13802 # endif 13803 # endif 13804 # endif 13805 # endif 13806 #endif 13807 13808 /* When -fvisibility=hidden is used, assume the code has been annotated 13809 correspondingly for the symbols needed. */ 13810 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13811 int fnord (void) __attribute__((visibility("default"))); 13812 #endif 13813 13814 int fnord (void) { return 42; } 13815 int main (void) 13816 { 13817 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13818 int status = $lt_dlunknown; 13819 13820 if (self) 13821 { 13822 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13823 else 13824 { 13825 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13826 else puts (dlerror ()); 13827 } 13828 /* dlclose (self); */ 13829 } 13830 else 13831 puts (dlerror ()); 13832 13833 return status; 13834 } 13835 _LT_EOF 13836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13837 (eval $ac_link) 2>&5 13838 ac_status=$? 13839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13840 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13841 (./conftest; exit; ) >&5 2>/dev/null 13842 lt_status=$? 13843 case x$lt_status in 13844 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13845 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13846 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13847 esac 13848 else : 13849 # compilation failed 13850 lt_cv_dlopen_self_static=no 13851 fi 13852 fi 13853 rm -fr conftest* 13854 13855 ;; 13856 esac 13857 fi 13858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13859 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13860 fi 13861 13862 CPPFLAGS=$save_CPPFLAGS 13863 LDFLAGS=$save_LDFLAGS 13864 LIBS=$save_LIBS 13865 ;; 13866 esac 13867 13868 case $lt_cv_dlopen_self in 13869 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13870 *) enable_dlopen_self=unknown ;; 13871 esac 13872 13873 case $lt_cv_dlopen_self_static in 13874 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13875 *) enable_dlopen_self_static=unknown ;; 13876 esac 13877 fi 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 striplib= 13896 old_striplib= 13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13898 printf %s "checking whether stripping libraries is possible... " >&6; } 13899 if test -z "$STRIP"; then 13900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13901 printf "%s\n" "no" >&6; } 13902 else 13903 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13904 old_striplib="$STRIP --strip-debug" 13905 striplib="$STRIP --strip-unneeded" 13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13907 printf "%s\n" "yes" >&6; } 13908 else 13909 case $host_os in 13910 darwin*) 13911 # FIXME - insert some real tests, host_os isn't really good enough 13912 striplib="$STRIP -x" 13913 old_striplib="$STRIP -S" 13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13915 printf "%s\n" "yes" >&6; } 13916 ;; 13917 freebsd*) 13918 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13919 old_striplib="$STRIP --strip-debug" 13920 striplib="$STRIP --strip-unneeded" 13921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13922 printf "%s\n" "yes" >&6; } 13923 else 13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13925 printf "%s\n" "no" >&6; } 13926 fi 13927 ;; 13928 *) 13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13930 printf "%s\n" "no" >&6; } 13931 ;; 13932 esac 13933 fi 13934 fi 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 # Report what library types will actually be built 13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13949 printf %s "checking if libtool supports shared libraries... " >&6; } 13950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13951 printf "%s\n" "$can_build_shared" >&6; } 13952 13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13954 printf %s "checking whether to build shared libraries... " >&6; } 13955 test no = "$can_build_shared" && enable_shared=no 13956 13957 # On AIX, shared libraries and static libraries use the same namespace, and 13958 # are all built from PIC. 13959 case $host_os in 13960 aix3*) 13961 test yes = "$enable_shared" && enable_static=no 13962 if test -n "$RANLIB"; then 13963 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13964 postinstall_cmds='$RANLIB $lib' 13965 fi 13966 ;; 13967 13968 aix[4-9]*) 13969 if test ia64 != "$host_cpu"; then 13970 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13971 yes,aix,yes) ;; # shared object as lib.so file only 13972 yes,svr4,*) ;; # shared object as lib.so archive member only 13973 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13974 esac 13975 fi 13976 ;; 13977 esac 13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13979 printf "%s\n" "$enable_shared" >&6; } 13980 13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13982 printf %s "checking whether to build static libraries... " >&6; } 13983 # Make sure either enable_shared or enable_static is yes. 13984 test yes = "$enable_shared" || enable_static=yes 13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13986 printf "%s\n" "$enable_static" >&6; } 13987 13988 13989 13990 13991 fi 13992 ac_ext=c 13993 ac_cpp='$CPP $CPPFLAGS' 13994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13996 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13997 13998 CC=$lt_save_CC 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 ac_config_commands="$ac_config_commands libtool" 14015 14016 14017 14018 14019 # Only expand once: 14020 14021 14022 14023 # Require xorg-macros minimum of 1.12 for DocBook external references 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14036 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14037 if test ${ac_cv_c_undeclared_builtin_options+y} 14038 then : 14039 printf %s "(cached) " >&6 14040 else case e in #( 14041 e) ac_save_CFLAGS=$CFLAGS 14042 ac_cv_c_undeclared_builtin_options='cannot detect' 14043 for ac_arg in '' -fno-builtin; do 14044 CFLAGS="$ac_save_CFLAGS $ac_arg" 14045 # This test program should *not* compile successfully. 14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14047 /* end confdefs.h. */ 14048 14049 int 14050 main (void) 14051 { 14052 (void) strchr; 14053 ; 14054 return 0; 14055 } 14056 _ACEOF 14057 if ac_fn_c_try_compile "$LINENO" 14058 then : 14059 14060 else case e in #( 14061 e) # This test program should compile successfully. 14062 # No library function is consistently available on 14063 # freestanding implementations, so test against a dummy 14064 # declaration. Include always-available headers on the 14065 # off chance that they somehow elicit warnings. 14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14067 /* end confdefs.h. */ 14068 #include <float.h> 14069 #include <limits.h> 14070 #include <stdarg.h> 14071 #include <stddef.h> 14072 extern void ac_decl (int, char *); 14073 14074 int 14075 main (void) 14076 { 14077 (void) ac_decl (0, (char *) 0); 14078 (void) ac_decl; 14079 14080 ; 14081 return 0; 14082 } 14083 _ACEOF 14084 if ac_fn_c_try_compile "$LINENO" 14085 then : 14086 if test x"$ac_arg" = x 14087 then : 14088 ac_cv_c_undeclared_builtin_options='none needed' 14089 else case e in #( 14090 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 14091 esac 14092 fi 14093 break 14094 fi 14095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14096 esac 14097 fi 14098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14099 done 14100 CFLAGS=$ac_save_CFLAGS 14101 ;; 14102 esac 14103 fi 14104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14105 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 14106 case $ac_cv_c_undeclared_builtin_options in #( 14107 'cannot detect') : 14108 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14109 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14110 as_fn_error $? "cannot make $CC report undeclared builtins 14111 See 'config.log' for more details" "$LINENO" 5; } ;; #( 14112 'none needed') : 14113 ac_c_undeclared_builtin_options='' ;; #( 14114 *) : 14115 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14116 esac 14117 14118 14119 14120 14121 14122 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14123 if test "x$ac_cv_have_decl___clang__" = xyes 14124 then : 14125 CLANGCC="yes" 14126 else case e in #( 14127 e) CLANGCC="no" ;; 14128 esac 14129 fi 14130 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14131 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 14132 then : 14133 INTELCC="yes" 14134 else case e in #( 14135 e) INTELCC="no" ;; 14136 esac 14137 fi 14138 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 14139 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 14140 then : 14141 SUNCC="yes" 14142 else case e in #( 14143 e) SUNCC="no" ;; 14144 esac 14145 fi 14146 14147 14148 14149 14150 14151 14152 14153 14154 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 14155 if test -n "$ac_tool_prefix"; then 14156 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 14157 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14159 printf %s "checking for $ac_word... " >&6; } 14160 if test ${ac_cv_path_PKG_CONFIG+y} 14161 then : 14162 printf %s "(cached) " >&6 14163 else case e in #( 14164 e) case $PKG_CONFIG in 14165 [\\/]* | ?:[\\/]*) 14166 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14167 ;; 14168 *) 14169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14170 for as_dir in $PATH 14171 do 14172 IFS=$as_save_IFS 14173 case $as_dir in #((( 14174 '') as_dir=./ ;; 14175 */) ;; 14176 *) as_dir=$as_dir/ ;; 14177 esac 14178 for ac_exec_ext in '' $ac_executable_extensions; do 14179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14180 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14182 break 2 14183 fi 14184 done 14185 done 14186 IFS=$as_save_IFS 14187 14188 ;; 14189 esac ;; 14190 esac 14191 fi 14192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14193 if test -n "$PKG_CONFIG"; then 14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14195 printf "%s\n" "$PKG_CONFIG" >&6; } 14196 else 14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14198 printf "%s\n" "no" >&6; } 14199 fi 14200 14201 14202 fi 14203 if test -z "$ac_cv_path_PKG_CONFIG"; then 14204 ac_pt_PKG_CONFIG=$PKG_CONFIG 14205 # Extract the first word of "pkg-config", so it can be a program name with args. 14206 set dummy pkg-config; ac_word=$2 14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14208 printf %s "checking for $ac_word... " >&6; } 14209 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 14210 then : 14211 printf %s "(cached) " >&6 14212 else case e in #( 14213 e) case $ac_pt_PKG_CONFIG in 14214 [\\/]* | ?:[\\/]*) 14215 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 14216 ;; 14217 *) 14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14219 for as_dir in $PATH 14220 do 14221 IFS=$as_save_IFS 14222 case $as_dir in #((( 14223 '') as_dir=./ ;; 14224 */) ;; 14225 *) as_dir=$as_dir/ ;; 14226 esac 14227 for ac_exec_ext in '' $ac_executable_extensions; do 14228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 14229 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 14230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 14231 break 2 14232 fi 14233 done 14234 done 14235 IFS=$as_save_IFS 14236 14237 ;; 14238 esac ;; 14239 esac 14240 fi 14241 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 14242 if test -n "$ac_pt_PKG_CONFIG"; then 14243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 14244 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 14245 else 14246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14247 printf "%s\n" "no" >&6; } 14248 fi 14249 14250 if test "x$ac_pt_PKG_CONFIG" = x; then 14251 PKG_CONFIG="" 14252 else 14253 case $cross_compiling:$ac_tool_warned in 14254 yes:) 14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14256 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14257 ac_tool_warned=yes ;; 14258 esac 14259 PKG_CONFIG=$ac_pt_PKG_CONFIG 14260 fi 14261 else 14262 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 14263 fi 14264 14265 fi 14266 if test -n "$PKG_CONFIG"; then 14267 _pkg_min_version=0.9.0 14268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 14269 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 14270 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14272 printf "%s\n" "yes" >&6; } 14273 else 14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14275 printf "%s\n" "no" >&6; } 14276 PKG_CONFIG="" 14277 fi 14278 fi 14279 14280 14281 14282 14283 14284 # Check whether --enable-selective-werror was given. 14285 if test ${enable_selective_werror+y} 14286 then : 14287 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 14288 else case e in #( 14289 e) SELECTIVE_WERROR=yes ;; 14290 esac 14291 fi 14292 14293 14294 14295 14296 14297 # -v is too short to test reliably with XORG_TESTSET_CFLAG 14298 if test "x$SUNCC" = "xyes"; then 14299 BASE_CFLAGS="-v" 14300 else 14301 BASE_CFLAGS="" 14302 fi 14303 14304 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 xorg_testset_save_CFLAGS="$CFLAGS" 14319 14320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14323 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14324 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14325 then : 14326 printf %s "(cached) " >&6 14327 else case e in #( 14328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14329 /* end confdefs.h. */ 14330 int i; 14331 _ACEOF 14332 if ac_fn_c_try_compile "$LINENO" 14333 then : 14334 xorg_cv_cc_flag_unknown_warning_option=yes 14335 else case e in #( 14336 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14337 esac 14338 fi 14339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14340 esac 14341 fi 14342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14345 CFLAGS="$xorg_testset_save_CFLAGS" 14346 fi 14347 14348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14351 fi 14352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14356 then : 14357 printf %s "(cached) " >&6 14358 else case e in #( 14359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14360 /* end confdefs.h. */ 14361 int i; 14362 _ACEOF 14363 if ac_fn_c_try_compile "$LINENO" 14364 then : 14365 xorg_cv_cc_flag_unused_command_line_argument=yes 14366 else case e in #( 14367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14368 esac 14369 fi 14370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14371 esac 14372 fi 14373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14376 CFLAGS="$xorg_testset_save_CFLAGS" 14377 fi 14378 14379 found="no" 14380 14381 if test $found = "no" ; then 14382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14384 fi 14385 14386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14388 fi 14389 14390 CFLAGS="$CFLAGS -Wall" 14391 14392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 14393 printf %s "checking if $CC supports -Wall... " >&6; } 14394 cacheid=xorg_cv_cc_flag__Wall 14395 if eval test \${$cacheid+y} 14396 then : 14397 printf %s "(cached) " >&6 14398 else case e in #( 14399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14400 /* end confdefs.h. */ 14401 int i; 14402 int 14403 main (void) 14404 { 14405 14406 ; 14407 return 0; 14408 } 14409 _ACEOF 14410 if ac_fn_c_try_link "$LINENO" 14411 then : 14412 eval $cacheid=yes 14413 else case e in #( 14414 e) eval $cacheid=no ;; 14415 esac 14416 fi 14417 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14418 conftest$ac_exeext conftest.$ac_ext ;; 14419 esac 14420 fi 14421 14422 14423 CFLAGS="$xorg_testset_save_CFLAGS" 14424 14425 eval supported=\$$cacheid 14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14427 printf "%s\n" "$supported" >&6; } 14428 if test "$supported" = "yes" ; then 14429 BASE_CFLAGS="$BASE_CFLAGS -Wall" 14430 found="yes" 14431 fi 14432 fi 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 xorg_testset_save_CFLAGS="$CFLAGS" 14449 14450 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14453 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14454 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14455 then : 14456 printf %s "(cached) " >&6 14457 else case e in #( 14458 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14459 /* end confdefs.h. */ 14460 int i; 14461 _ACEOF 14462 if ac_fn_c_try_compile "$LINENO" 14463 then : 14464 xorg_cv_cc_flag_unknown_warning_option=yes 14465 else case e in #( 14466 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14467 esac 14468 fi 14469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14470 esac 14471 fi 14472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14473 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14475 CFLAGS="$xorg_testset_save_CFLAGS" 14476 fi 14477 14478 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14481 fi 14482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14484 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14485 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14486 then : 14487 printf %s "(cached) " >&6 14488 else case e in #( 14489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14490 /* end confdefs.h. */ 14491 int i; 14492 _ACEOF 14493 if ac_fn_c_try_compile "$LINENO" 14494 then : 14495 xorg_cv_cc_flag_unused_command_line_argument=yes 14496 else case e in #( 14497 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14498 esac 14499 fi 14500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14501 esac 14502 fi 14503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14504 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14505 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14506 CFLAGS="$xorg_testset_save_CFLAGS" 14507 fi 14508 14509 found="no" 14510 14511 if test $found = "no" ; then 14512 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14513 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14514 fi 14515 14516 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14518 fi 14519 14520 CFLAGS="$CFLAGS -Wpointer-arith" 14521 14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 14523 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 14524 cacheid=xorg_cv_cc_flag__Wpointer_arith 14525 if eval test \${$cacheid+y} 14526 then : 14527 printf %s "(cached) " >&6 14528 else case e in #( 14529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14530 /* end confdefs.h. */ 14531 int i; 14532 int 14533 main (void) 14534 { 14535 14536 ; 14537 return 0; 14538 } 14539 _ACEOF 14540 if ac_fn_c_try_link "$LINENO" 14541 then : 14542 eval $cacheid=yes 14543 else case e in #( 14544 e) eval $cacheid=no ;; 14545 esac 14546 fi 14547 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14548 conftest$ac_exeext conftest.$ac_ext ;; 14549 esac 14550 fi 14551 14552 14553 CFLAGS="$xorg_testset_save_CFLAGS" 14554 14555 eval supported=\$$cacheid 14556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14557 printf "%s\n" "$supported" >&6; } 14558 if test "$supported" = "yes" ; then 14559 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 14560 found="yes" 14561 fi 14562 fi 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 xorg_testset_save_CFLAGS="$CFLAGS" 14579 14580 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14583 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14584 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14585 then : 14586 printf %s "(cached) " >&6 14587 else case e in #( 14588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14589 /* end confdefs.h. */ 14590 int i; 14591 _ACEOF 14592 if ac_fn_c_try_compile "$LINENO" 14593 then : 14594 xorg_cv_cc_flag_unknown_warning_option=yes 14595 else case e in #( 14596 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14597 esac 14598 fi 14599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14600 esac 14601 fi 14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14603 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14604 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14605 CFLAGS="$xorg_testset_save_CFLAGS" 14606 fi 14607 14608 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14609 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14610 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14611 fi 14612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14614 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14615 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14616 then : 14617 printf %s "(cached) " >&6 14618 else case e in #( 14619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14620 /* end confdefs.h. */ 14621 int i; 14622 _ACEOF 14623 if ac_fn_c_try_compile "$LINENO" 14624 then : 14625 xorg_cv_cc_flag_unused_command_line_argument=yes 14626 else case e in #( 14627 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14628 esac 14629 fi 14630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14631 esac 14632 fi 14633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14634 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14635 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14636 CFLAGS="$xorg_testset_save_CFLAGS" 14637 fi 14638 14639 found="no" 14640 14641 if test $found = "no" ; then 14642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14644 fi 14645 14646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14648 fi 14649 14650 CFLAGS="$CFLAGS -Wmissing-declarations" 14651 14652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14653 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14654 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14655 if eval test \${$cacheid+y} 14656 then : 14657 printf %s "(cached) " >&6 14658 else case e in #( 14659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14660 /* end confdefs.h. */ 14661 int i; 14662 int 14663 main (void) 14664 { 14665 14666 ; 14667 return 0; 14668 } 14669 _ACEOF 14670 if ac_fn_c_try_link "$LINENO" 14671 then : 14672 eval $cacheid=yes 14673 else case e in #( 14674 e) eval $cacheid=no ;; 14675 esac 14676 fi 14677 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14678 conftest$ac_exeext conftest.$ac_ext ;; 14679 esac 14680 fi 14681 14682 14683 CFLAGS="$xorg_testset_save_CFLAGS" 14684 14685 eval supported=\$$cacheid 14686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14687 printf "%s\n" "$supported" >&6; } 14688 if test "$supported" = "yes" ; then 14689 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14690 found="yes" 14691 fi 14692 fi 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 xorg_testset_save_CFLAGS="$CFLAGS" 14709 14710 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14713 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14714 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14715 then : 14716 printf %s "(cached) " >&6 14717 else case e in #( 14718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14719 /* end confdefs.h. */ 14720 int i; 14721 _ACEOF 14722 if ac_fn_c_try_compile "$LINENO" 14723 then : 14724 xorg_cv_cc_flag_unknown_warning_option=yes 14725 else case e in #( 14726 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14727 esac 14728 fi 14729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14730 esac 14731 fi 14732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14733 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14735 CFLAGS="$xorg_testset_save_CFLAGS" 14736 fi 14737 14738 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14741 fi 14742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14744 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14745 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14746 then : 14747 printf %s "(cached) " >&6 14748 else case e in #( 14749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14750 /* end confdefs.h. */ 14751 int i; 14752 _ACEOF 14753 if ac_fn_c_try_compile "$LINENO" 14754 then : 14755 xorg_cv_cc_flag_unused_command_line_argument=yes 14756 else case e in #( 14757 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14758 esac 14759 fi 14760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14761 esac 14762 fi 14763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14764 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14766 CFLAGS="$xorg_testset_save_CFLAGS" 14767 fi 14768 14769 found="no" 14770 14771 if test $found = "no" ; then 14772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14774 fi 14775 14776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14778 fi 14779 14780 CFLAGS="$CFLAGS -Wformat=2" 14781 14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14783 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14784 cacheid=xorg_cv_cc_flag__Wformat_2 14785 if eval test \${$cacheid+y} 14786 then : 14787 printf %s "(cached) " >&6 14788 else case e in #( 14789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14790 /* end confdefs.h. */ 14791 int i; 14792 int 14793 main (void) 14794 { 14795 14796 ; 14797 return 0; 14798 } 14799 _ACEOF 14800 if ac_fn_c_try_link "$LINENO" 14801 then : 14802 eval $cacheid=yes 14803 else case e in #( 14804 e) eval $cacheid=no ;; 14805 esac 14806 fi 14807 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14808 conftest$ac_exeext conftest.$ac_ext ;; 14809 esac 14810 fi 14811 14812 14813 CFLAGS="$xorg_testset_save_CFLAGS" 14814 14815 eval supported=\$$cacheid 14816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14817 printf "%s\n" "$supported" >&6; } 14818 if test "$supported" = "yes" ; then 14819 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14820 found="yes" 14821 fi 14822 fi 14823 14824 if test $found = "no" ; then 14825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14827 fi 14828 14829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14831 fi 14832 14833 CFLAGS="$CFLAGS -Wformat" 14834 14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14836 printf %s "checking if $CC supports -Wformat... " >&6; } 14837 cacheid=xorg_cv_cc_flag__Wformat 14838 if eval test \${$cacheid+y} 14839 then : 14840 printf %s "(cached) " >&6 14841 else case e in #( 14842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14843 /* end confdefs.h. */ 14844 int i; 14845 int 14846 main (void) 14847 { 14848 14849 ; 14850 return 0; 14851 } 14852 _ACEOF 14853 if ac_fn_c_try_link "$LINENO" 14854 then : 14855 eval $cacheid=yes 14856 else case e in #( 14857 e) eval $cacheid=no ;; 14858 esac 14859 fi 14860 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14861 conftest$ac_exeext conftest.$ac_ext ;; 14862 esac 14863 fi 14864 14865 14866 CFLAGS="$xorg_testset_save_CFLAGS" 14867 14868 eval supported=\$$cacheid 14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14870 printf "%s\n" "$supported" >&6; } 14871 if test "$supported" = "yes" ; then 14872 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14873 found="yes" 14874 fi 14875 fi 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 xorg_testset_save_CFLAGS="$CFLAGS" 14894 14895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14899 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14900 then : 14901 printf %s "(cached) " >&6 14902 else case e in #( 14903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14904 /* end confdefs.h. */ 14905 int i; 14906 _ACEOF 14907 if ac_fn_c_try_compile "$LINENO" 14908 then : 14909 xorg_cv_cc_flag_unknown_warning_option=yes 14910 else case e in #( 14911 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14912 esac 14913 fi 14914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14915 esac 14916 fi 14917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14918 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14920 CFLAGS="$xorg_testset_save_CFLAGS" 14921 fi 14922 14923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14926 fi 14927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14929 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14930 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14931 then : 14932 printf %s "(cached) " >&6 14933 else case e in #( 14934 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14935 /* end confdefs.h. */ 14936 int i; 14937 _ACEOF 14938 if ac_fn_c_try_compile "$LINENO" 14939 then : 14940 xorg_cv_cc_flag_unused_command_line_argument=yes 14941 else case e in #( 14942 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14943 esac 14944 fi 14945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14946 esac 14947 fi 14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14949 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14951 CFLAGS="$xorg_testset_save_CFLAGS" 14952 fi 14953 14954 found="no" 14955 14956 if test $found = "no" ; then 14957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14959 fi 14960 14961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14963 fi 14964 14965 CFLAGS="$CFLAGS -Wstrict-prototypes" 14966 14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14968 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14969 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14970 if eval test \${$cacheid+y} 14971 then : 14972 printf %s "(cached) " >&6 14973 else case e in #( 14974 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14975 /* end confdefs.h. */ 14976 int i; 14977 int 14978 main (void) 14979 { 14980 14981 ; 14982 return 0; 14983 } 14984 _ACEOF 14985 if ac_fn_c_try_link "$LINENO" 14986 then : 14987 eval $cacheid=yes 14988 else case e in #( 14989 e) eval $cacheid=no ;; 14990 esac 14991 fi 14992 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14993 conftest$ac_exeext conftest.$ac_ext ;; 14994 esac 14995 fi 14996 14997 14998 CFLAGS="$xorg_testset_save_CFLAGS" 14999 15000 eval supported=\$$cacheid 15001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15002 printf "%s\n" "$supported" >&6; } 15003 if test "$supported" = "yes" ; then 15004 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 15005 found="yes" 15006 fi 15007 fi 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 xorg_testset_save_CFLAGS="$CFLAGS" 15024 15025 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15026 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15028 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15029 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15030 then : 15031 printf %s "(cached) " >&6 15032 else case e in #( 15033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15034 /* end confdefs.h. */ 15035 int i; 15036 _ACEOF 15037 if ac_fn_c_try_compile "$LINENO" 15038 then : 15039 xorg_cv_cc_flag_unknown_warning_option=yes 15040 else case e in #( 15041 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15042 esac 15043 fi 15044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15045 esac 15046 fi 15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15048 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15050 CFLAGS="$xorg_testset_save_CFLAGS" 15051 fi 15052 15053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15056 fi 15057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15059 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15060 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15061 then : 15062 printf %s "(cached) " >&6 15063 else case e in #( 15064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15065 /* end confdefs.h. */ 15066 int i; 15067 _ACEOF 15068 if ac_fn_c_try_compile "$LINENO" 15069 then : 15070 xorg_cv_cc_flag_unused_command_line_argument=yes 15071 else case e in #( 15072 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15073 esac 15074 fi 15075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15076 esac 15077 fi 15078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15079 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15080 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15081 CFLAGS="$xorg_testset_save_CFLAGS" 15082 fi 15083 15084 found="no" 15085 15086 if test $found = "no" ; then 15087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15089 fi 15090 15091 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15093 fi 15094 15095 CFLAGS="$CFLAGS -Wmissing-prototypes" 15096 15097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 15098 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 15099 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 15100 if eval test \${$cacheid+y} 15101 then : 15102 printf %s "(cached) " >&6 15103 else case e in #( 15104 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15105 /* end confdefs.h. */ 15106 int i; 15107 int 15108 main (void) 15109 { 15110 15111 ; 15112 return 0; 15113 } 15114 _ACEOF 15115 if ac_fn_c_try_link "$LINENO" 15116 then : 15117 eval $cacheid=yes 15118 else case e in #( 15119 e) eval $cacheid=no ;; 15120 esac 15121 fi 15122 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15123 conftest$ac_exeext conftest.$ac_ext ;; 15124 esac 15125 fi 15126 15127 15128 CFLAGS="$xorg_testset_save_CFLAGS" 15129 15130 eval supported=\$$cacheid 15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15132 printf "%s\n" "$supported" >&6; } 15133 if test "$supported" = "yes" ; then 15134 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 15135 found="yes" 15136 fi 15137 fi 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 xorg_testset_save_CFLAGS="$CFLAGS" 15154 15155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15158 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15159 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15160 then : 15161 printf %s "(cached) " >&6 15162 else case e in #( 15163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15164 /* end confdefs.h. */ 15165 int i; 15166 _ACEOF 15167 if ac_fn_c_try_compile "$LINENO" 15168 then : 15169 xorg_cv_cc_flag_unknown_warning_option=yes 15170 else case e in #( 15171 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15172 esac 15173 fi 15174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15175 esac 15176 fi 15177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15178 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15179 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15180 CFLAGS="$xorg_testset_save_CFLAGS" 15181 fi 15182 15183 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15186 fi 15187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15189 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15190 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15191 then : 15192 printf %s "(cached) " >&6 15193 else case e in #( 15194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15195 /* end confdefs.h. */ 15196 int i; 15197 _ACEOF 15198 if ac_fn_c_try_compile "$LINENO" 15199 then : 15200 xorg_cv_cc_flag_unused_command_line_argument=yes 15201 else case e in #( 15202 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15203 esac 15204 fi 15205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15206 esac 15207 fi 15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15211 CFLAGS="$xorg_testset_save_CFLAGS" 15212 fi 15213 15214 found="no" 15215 15216 if test $found = "no" ; then 15217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15219 fi 15220 15221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15223 fi 15224 15225 CFLAGS="$CFLAGS -Wnested-externs" 15226 15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 15228 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 15229 cacheid=xorg_cv_cc_flag__Wnested_externs 15230 if eval test \${$cacheid+y} 15231 then : 15232 printf %s "(cached) " >&6 15233 else case e in #( 15234 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15235 /* end confdefs.h. */ 15236 int i; 15237 int 15238 main (void) 15239 { 15240 15241 ; 15242 return 0; 15243 } 15244 _ACEOF 15245 if ac_fn_c_try_link "$LINENO" 15246 then : 15247 eval $cacheid=yes 15248 else case e in #( 15249 e) eval $cacheid=no ;; 15250 esac 15251 fi 15252 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15253 conftest$ac_exeext conftest.$ac_ext ;; 15254 esac 15255 fi 15256 15257 15258 CFLAGS="$xorg_testset_save_CFLAGS" 15259 15260 eval supported=\$$cacheid 15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15262 printf "%s\n" "$supported" >&6; } 15263 if test "$supported" = "yes" ; then 15264 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 15265 found="yes" 15266 fi 15267 fi 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 xorg_testset_save_CFLAGS="$CFLAGS" 15284 15285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15288 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15289 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15290 then : 15291 printf %s "(cached) " >&6 15292 else case e in #( 15293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15294 /* end confdefs.h. */ 15295 int i; 15296 _ACEOF 15297 if ac_fn_c_try_compile "$LINENO" 15298 then : 15299 xorg_cv_cc_flag_unknown_warning_option=yes 15300 else case e in #( 15301 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15302 esac 15303 fi 15304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15305 esac 15306 fi 15307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15308 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15310 CFLAGS="$xorg_testset_save_CFLAGS" 15311 fi 15312 15313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15316 fi 15317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15319 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15320 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15321 then : 15322 printf %s "(cached) " >&6 15323 else case e in #( 15324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15325 /* end confdefs.h. */ 15326 int i; 15327 _ACEOF 15328 if ac_fn_c_try_compile "$LINENO" 15329 then : 15330 xorg_cv_cc_flag_unused_command_line_argument=yes 15331 else case e in #( 15332 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15333 esac 15334 fi 15335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15336 esac 15337 fi 15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15339 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15340 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15341 CFLAGS="$xorg_testset_save_CFLAGS" 15342 fi 15343 15344 found="no" 15345 15346 if test $found = "no" ; then 15347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15349 fi 15350 15351 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15353 fi 15354 15355 CFLAGS="$CFLAGS -Wbad-function-cast" 15356 15357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 15358 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 15359 cacheid=xorg_cv_cc_flag__Wbad_function_cast 15360 if eval test \${$cacheid+y} 15361 then : 15362 printf %s "(cached) " >&6 15363 else case e in #( 15364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15365 /* end confdefs.h. */ 15366 int i; 15367 int 15368 main (void) 15369 { 15370 15371 ; 15372 return 0; 15373 } 15374 _ACEOF 15375 if ac_fn_c_try_link "$LINENO" 15376 then : 15377 eval $cacheid=yes 15378 else case e in #( 15379 e) eval $cacheid=no ;; 15380 esac 15381 fi 15382 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15383 conftest$ac_exeext conftest.$ac_ext ;; 15384 esac 15385 fi 15386 15387 15388 CFLAGS="$xorg_testset_save_CFLAGS" 15389 15390 eval supported=\$$cacheid 15391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15392 printf "%s\n" "$supported" >&6; } 15393 if test "$supported" = "yes" ; then 15394 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 15395 found="yes" 15396 fi 15397 fi 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 xorg_testset_save_CFLAGS="$CFLAGS" 15414 15415 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15418 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15419 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15420 then : 15421 printf %s "(cached) " >&6 15422 else case e in #( 15423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15424 /* end confdefs.h. */ 15425 int i; 15426 _ACEOF 15427 if ac_fn_c_try_compile "$LINENO" 15428 then : 15429 xorg_cv_cc_flag_unknown_warning_option=yes 15430 else case e in #( 15431 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15432 esac 15433 fi 15434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15435 esac 15436 fi 15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15438 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15440 CFLAGS="$xorg_testset_save_CFLAGS" 15441 fi 15442 15443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15446 fi 15447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15449 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15450 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15451 then : 15452 printf %s "(cached) " >&6 15453 else case e in #( 15454 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15455 /* end confdefs.h. */ 15456 int i; 15457 _ACEOF 15458 if ac_fn_c_try_compile "$LINENO" 15459 then : 15460 xorg_cv_cc_flag_unused_command_line_argument=yes 15461 else case e in #( 15462 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15463 esac 15464 fi 15465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15466 esac 15467 fi 15468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15469 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15471 CFLAGS="$xorg_testset_save_CFLAGS" 15472 fi 15473 15474 found="no" 15475 15476 if test $found = "no" ; then 15477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15479 fi 15480 15481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15483 fi 15484 15485 CFLAGS="$CFLAGS -Wold-style-definition" 15486 15487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 15488 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 15489 cacheid=xorg_cv_cc_flag__Wold_style_definition 15490 if eval test \${$cacheid+y} 15491 then : 15492 printf %s "(cached) " >&6 15493 else case e in #( 15494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15495 /* end confdefs.h. */ 15496 int i; 15497 int 15498 main (void) 15499 { 15500 15501 ; 15502 return 0; 15503 } 15504 _ACEOF 15505 if ac_fn_c_try_link "$LINENO" 15506 then : 15507 eval $cacheid=yes 15508 else case e in #( 15509 e) eval $cacheid=no ;; 15510 esac 15511 fi 15512 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15513 conftest$ac_exeext conftest.$ac_ext ;; 15514 esac 15515 fi 15516 15517 15518 CFLAGS="$xorg_testset_save_CFLAGS" 15519 15520 eval supported=\$$cacheid 15521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15522 printf "%s\n" "$supported" >&6; } 15523 if test "$supported" = "yes" ; then 15524 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 15525 found="yes" 15526 fi 15527 fi 15528 15529 if test $found = "no" ; then 15530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15532 fi 15533 15534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15536 fi 15537 15538 CFLAGS="$CFLAGS -fd" 15539 15540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 15541 printf %s "checking if $CC supports -fd... " >&6; } 15542 cacheid=xorg_cv_cc_flag__fd 15543 if eval test \${$cacheid+y} 15544 then : 15545 printf %s "(cached) " >&6 15546 else case e in #( 15547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15548 /* end confdefs.h. */ 15549 int i; 15550 int 15551 main (void) 15552 { 15553 15554 ; 15555 return 0; 15556 } 15557 _ACEOF 15558 if ac_fn_c_try_link "$LINENO" 15559 then : 15560 eval $cacheid=yes 15561 else case e in #( 15562 e) eval $cacheid=no ;; 15563 esac 15564 fi 15565 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15566 conftest$ac_exeext conftest.$ac_ext ;; 15567 esac 15568 fi 15569 15570 15571 CFLAGS="$xorg_testset_save_CFLAGS" 15572 15573 eval supported=\$$cacheid 15574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15575 printf "%s\n" "$supported" >&6; } 15576 if test "$supported" = "yes" ; then 15577 BASE_CFLAGS="$BASE_CFLAGS -fd" 15578 found="yes" 15579 fi 15580 fi 15581 15582 15583 15584 15585 15586 # This chunk adds additional warnings that could catch undesired effects. 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 xorg_testset_save_CFLAGS="$CFLAGS" 15601 15602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15605 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15606 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15607 then : 15608 printf %s "(cached) " >&6 15609 else case e in #( 15610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15611 /* end confdefs.h. */ 15612 int i; 15613 _ACEOF 15614 if ac_fn_c_try_compile "$LINENO" 15615 then : 15616 xorg_cv_cc_flag_unknown_warning_option=yes 15617 else case e in #( 15618 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15619 esac 15620 fi 15621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15622 esac 15623 fi 15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15627 CFLAGS="$xorg_testset_save_CFLAGS" 15628 fi 15629 15630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15633 fi 15634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15638 then : 15639 printf %s "(cached) " >&6 15640 else case e in #( 15641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15642 /* end confdefs.h. */ 15643 int i; 15644 _ACEOF 15645 if ac_fn_c_try_compile "$LINENO" 15646 then : 15647 xorg_cv_cc_flag_unused_command_line_argument=yes 15648 else case e in #( 15649 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15650 esac 15651 fi 15652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15653 esac 15654 fi 15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15656 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15658 CFLAGS="$xorg_testset_save_CFLAGS" 15659 fi 15660 15661 found="no" 15662 15663 if test $found = "no" ; then 15664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15665 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15666 fi 15667 15668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15670 fi 15671 15672 CFLAGS="$CFLAGS -Wunused" 15673 15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15675 printf %s "checking if $CC supports -Wunused... " >&6; } 15676 cacheid=xorg_cv_cc_flag__Wunused 15677 if eval test \${$cacheid+y} 15678 then : 15679 printf %s "(cached) " >&6 15680 else case e in #( 15681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15682 /* end confdefs.h. */ 15683 int i; 15684 int 15685 main (void) 15686 { 15687 15688 ; 15689 return 0; 15690 } 15691 _ACEOF 15692 if ac_fn_c_try_link "$LINENO" 15693 then : 15694 eval $cacheid=yes 15695 else case e in #( 15696 e) eval $cacheid=no ;; 15697 esac 15698 fi 15699 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15700 conftest$ac_exeext conftest.$ac_ext ;; 15701 esac 15702 fi 15703 15704 15705 CFLAGS="$xorg_testset_save_CFLAGS" 15706 15707 eval supported=\$$cacheid 15708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15709 printf "%s\n" "$supported" >&6; } 15710 if test "$supported" = "yes" ; then 15711 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15712 found="yes" 15713 fi 15714 fi 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 xorg_testset_save_CFLAGS="$CFLAGS" 15731 15732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15735 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15736 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15737 then : 15738 printf %s "(cached) " >&6 15739 else case e in #( 15740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15741 /* end confdefs.h. */ 15742 int i; 15743 _ACEOF 15744 if ac_fn_c_try_compile "$LINENO" 15745 then : 15746 xorg_cv_cc_flag_unknown_warning_option=yes 15747 else case e in #( 15748 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15749 esac 15750 fi 15751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15752 esac 15753 fi 15754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15755 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15757 CFLAGS="$xorg_testset_save_CFLAGS" 15758 fi 15759 15760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15763 fi 15764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15766 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15767 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15768 then : 15769 printf %s "(cached) " >&6 15770 else case e in #( 15771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15772 /* end confdefs.h. */ 15773 int i; 15774 _ACEOF 15775 if ac_fn_c_try_compile "$LINENO" 15776 then : 15777 xorg_cv_cc_flag_unused_command_line_argument=yes 15778 else case e in #( 15779 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15780 esac 15781 fi 15782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15783 esac 15784 fi 15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15788 CFLAGS="$xorg_testset_save_CFLAGS" 15789 fi 15790 15791 found="no" 15792 15793 if test $found = "no" ; then 15794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15796 fi 15797 15798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15800 fi 15801 15802 CFLAGS="$CFLAGS -Wuninitialized" 15803 15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15805 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15806 cacheid=xorg_cv_cc_flag__Wuninitialized 15807 if eval test \${$cacheid+y} 15808 then : 15809 printf %s "(cached) " >&6 15810 else case e in #( 15811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15812 /* end confdefs.h. */ 15813 int i; 15814 int 15815 main (void) 15816 { 15817 15818 ; 15819 return 0; 15820 } 15821 _ACEOF 15822 if ac_fn_c_try_link "$LINENO" 15823 then : 15824 eval $cacheid=yes 15825 else case e in #( 15826 e) eval $cacheid=no ;; 15827 esac 15828 fi 15829 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15830 conftest$ac_exeext conftest.$ac_ext ;; 15831 esac 15832 fi 15833 15834 15835 CFLAGS="$xorg_testset_save_CFLAGS" 15836 15837 eval supported=\$$cacheid 15838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15839 printf "%s\n" "$supported" >&6; } 15840 if test "$supported" = "yes" ; then 15841 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15842 found="yes" 15843 fi 15844 fi 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 xorg_testset_save_CFLAGS="$CFLAGS" 15861 15862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15865 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15866 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15867 then : 15868 printf %s "(cached) " >&6 15869 else case e in #( 15870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15871 /* end confdefs.h. */ 15872 int i; 15873 _ACEOF 15874 if ac_fn_c_try_compile "$LINENO" 15875 then : 15876 xorg_cv_cc_flag_unknown_warning_option=yes 15877 else case e in #( 15878 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15879 esac 15880 fi 15881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15882 esac 15883 fi 15884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15887 CFLAGS="$xorg_testset_save_CFLAGS" 15888 fi 15889 15890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15893 fi 15894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15898 then : 15899 printf %s "(cached) " >&6 15900 else case e in #( 15901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15902 /* end confdefs.h. */ 15903 int i; 15904 _ACEOF 15905 if ac_fn_c_try_compile "$LINENO" 15906 then : 15907 xorg_cv_cc_flag_unused_command_line_argument=yes 15908 else case e in #( 15909 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15910 esac 15911 fi 15912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15913 esac 15914 fi 15915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15918 CFLAGS="$xorg_testset_save_CFLAGS" 15919 fi 15920 15921 found="no" 15922 15923 if test $found = "no" ; then 15924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15926 fi 15927 15928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15930 fi 15931 15932 CFLAGS="$CFLAGS -Wshadow" 15933 15934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15935 printf %s "checking if $CC supports -Wshadow... " >&6; } 15936 cacheid=xorg_cv_cc_flag__Wshadow 15937 if eval test \${$cacheid+y} 15938 then : 15939 printf %s "(cached) " >&6 15940 else case e in #( 15941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15942 /* end confdefs.h. */ 15943 int i; 15944 int 15945 main (void) 15946 { 15947 15948 ; 15949 return 0; 15950 } 15951 _ACEOF 15952 if ac_fn_c_try_link "$LINENO" 15953 then : 15954 eval $cacheid=yes 15955 else case e in #( 15956 e) eval $cacheid=no ;; 15957 esac 15958 fi 15959 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15960 conftest$ac_exeext conftest.$ac_ext ;; 15961 esac 15962 fi 15963 15964 15965 CFLAGS="$xorg_testset_save_CFLAGS" 15966 15967 eval supported=\$$cacheid 15968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15969 printf "%s\n" "$supported" >&6; } 15970 if test "$supported" = "yes" ; then 15971 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15972 found="yes" 15973 fi 15974 fi 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 xorg_testset_save_CFLAGS="$CFLAGS" 15991 15992 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15995 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15996 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15997 then : 15998 printf %s "(cached) " >&6 15999 else case e in #( 16000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16001 /* end confdefs.h. */ 16002 int i; 16003 _ACEOF 16004 if ac_fn_c_try_compile "$LINENO" 16005 then : 16006 xorg_cv_cc_flag_unknown_warning_option=yes 16007 else case e in #( 16008 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16009 esac 16010 fi 16011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16012 esac 16013 fi 16014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16015 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16017 CFLAGS="$xorg_testset_save_CFLAGS" 16018 fi 16019 16020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16023 fi 16024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16026 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16027 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16028 then : 16029 printf %s "(cached) " >&6 16030 else case e in #( 16031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16032 /* end confdefs.h. */ 16033 int i; 16034 _ACEOF 16035 if ac_fn_c_try_compile "$LINENO" 16036 then : 16037 xorg_cv_cc_flag_unused_command_line_argument=yes 16038 else case e in #( 16039 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16040 esac 16041 fi 16042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16043 esac 16044 fi 16045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16046 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16048 CFLAGS="$xorg_testset_save_CFLAGS" 16049 fi 16050 16051 found="no" 16052 16053 if test $found = "no" ; then 16054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16056 fi 16057 16058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16060 fi 16061 16062 CFLAGS="$CFLAGS -Wmissing-noreturn" 16063 16064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 16065 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 16066 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 16067 if eval test \${$cacheid+y} 16068 then : 16069 printf %s "(cached) " >&6 16070 else case e in #( 16071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16072 /* end confdefs.h. */ 16073 int i; 16074 int 16075 main (void) 16076 { 16077 16078 ; 16079 return 0; 16080 } 16081 _ACEOF 16082 if ac_fn_c_try_link "$LINENO" 16083 then : 16084 eval $cacheid=yes 16085 else case e in #( 16086 e) eval $cacheid=no ;; 16087 esac 16088 fi 16089 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16090 conftest$ac_exeext conftest.$ac_ext ;; 16091 esac 16092 fi 16093 16094 16095 CFLAGS="$xorg_testset_save_CFLAGS" 16096 16097 eval supported=\$$cacheid 16098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16099 printf "%s\n" "$supported" >&6; } 16100 if test "$supported" = "yes" ; then 16101 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 16102 found="yes" 16103 fi 16104 fi 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 xorg_testset_save_CFLAGS="$CFLAGS" 16121 16122 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16125 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16126 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16127 then : 16128 printf %s "(cached) " >&6 16129 else case e in #( 16130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16131 /* end confdefs.h. */ 16132 int i; 16133 _ACEOF 16134 if ac_fn_c_try_compile "$LINENO" 16135 then : 16136 xorg_cv_cc_flag_unknown_warning_option=yes 16137 else case e in #( 16138 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16139 esac 16140 fi 16141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16142 esac 16143 fi 16144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16145 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16146 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16147 CFLAGS="$xorg_testset_save_CFLAGS" 16148 fi 16149 16150 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16153 fi 16154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16156 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16157 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16158 then : 16159 printf %s "(cached) " >&6 16160 else case e in #( 16161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16162 /* end confdefs.h. */ 16163 int i; 16164 _ACEOF 16165 if ac_fn_c_try_compile "$LINENO" 16166 then : 16167 xorg_cv_cc_flag_unused_command_line_argument=yes 16168 else case e in #( 16169 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16170 esac 16171 fi 16172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16173 esac 16174 fi 16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16176 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16178 CFLAGS="$xorg_testset_save_CFLAGS" 16179 fi 16180 16181 found="no" 16182 16183 if test $found = "no" ; then 16184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16186 fi 16187 16188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16190 fi 16191 16192 CFLAGS="$CFLAGS -Wmissing-format-attribute" 16193 16194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 16195 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 16196 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 16197 if eval test \${$cacheid+y} 16198 then : 16199 printf %s "(cached) " >&6 16200 else case e in #( 16201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16202 /* end confdefs.h. */ 16203 int i; 16204 int 16205 main (void) 16206 { 16207 16208 ; 16209 return 0; 16210 } 16211 _ACEOF 16212 if ac_fn_c_try_link "$LINENO" 16213 then : 16214 eval $cacheid=yes 16215 else case e in #( 16216 e) eval $cacheid=no ;; 16217 esac 16218 fi 16219 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16220 conftest$ac_exeext conftest.$ac_ext ;; 16221 esac 16222 fi 16223 16224 16225 CFLAGS="$xorg_testset_save_CFLAGS" 16226 16227 eval supported=\$$cacheid 16228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16229 printf "%s\n" "$supported" >&6; } 16230 if test "$supported" = "yes" ; then 16231 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 16232 found="yes" 16233 fi 16234 fi 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 xorg_testset_save_CFLAGS="$CFLAGS" 16251 16252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16255 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16256 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16257 then : 16258 printf %s "(cached) " >&6 16259 else case e in #( 16260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16261 /* end confdefs.h. */ 16262 int i; 16263 _ACEOF 16264 if ac_fn_c_try_compile "$LINENO" 16265 then : 16266 xorg_cv_cc_flag_unknown_warning_option=yes 16267 else case e in #( 16268 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16269 esac 16270 fi 16271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16272 esac 16273 fi 16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16275 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16276 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16277 CFLAGS="$xorg_testset_save_CFLAGS" 16278 fi 16279 16280 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16281 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16282 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16283 fi 16284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16286 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16287 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16288 then : 16289 printf %s "(cached) " >&6 16290 else case e in #( 16291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16292 /* end confdefs.h. */ 16293 int i; 16294 _ACEOF 16295 if ac_fn_c_try_compile "$LINENO" 16296 then : 16297 xorg_cv_cc_flag_unused_command_line_argument=yes 16298 else case e in #( 16299 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16300 esac 16301 fi 16302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16303 esac 16304 fi 16305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16306 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16308 CFLAGS="$xorg_testset_save_CFLAGS" 16309 fi 16310 16311 found="no" 16312 16313 if test $found = "no" ; then 16314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16316 fi 16317 16318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16320 fi 16321 16322 CFLAGS="$CFLAGS -Wredundant-decls" 16323 16324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 16325 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 16326 cacheid=xorg_cv_cc_flag__Wredundant_decls 16327 if eval test \${$cacheid+y} 16328 then : 16329 printf %s "(cached) " >&6 16330 else case e in #( 16331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16332 /* end confdefs.h. */ 16333 int i; 16334 int 16335 main (void) 16336 { 16337 16338 ; 16339 return 0; 16340 } 16341 _ACEOF 16342 if ac_fn_c_try_link "$LINENO" 16343 then : 16344 eval $cacheid=yes 16345 else case e in #( 16346 e) eval $cacheid=no ;; 16347 esac 16348 fi 16349 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16350 conftest$ac_exeext conftest.$ac_ext ;; 16351 esac 16352 fi 16353 16354 16355 CFLAGS="$xorg_testset_save_CFLAGS" 16356 16357 eval supported=\$$cacheid 16358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16359 printf "%s\n" "$supported" >&6; } 16360 if test "$supported" = "yes" ; then 16361 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 16362 found="yes" 16363 fi 16364 fi 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 xorg_testset_save_CFLAGS="$CFLAGS" 16381 16382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16385 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16386 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16387 then : 16388 printf %s "(cached) " >&6 16389 else case e in #( 16390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16391 /* end confdefs.h. */ 16392 int i; 16393 _ACEOF 16394 if ac_fn_c_try_compile "$LINENO" 16395 then : 16396 xorg_cv_cc_flag_unknown_warning_option=yes 16397 else case e in #( 16398 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16399 esac 16400 fi 16401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16402 esac 16403 fi 16404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16405 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16407 CFLAGS="$xorg_testset_save_CFLAGS" 16408 fi 16409 16410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16413 fi 16414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16416 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16417 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16418 then : 16419 printf %s "(cached) " >&6 16420 else case e in #( 16421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16422 /* end confdefs.h. */ 16423 int i; 16424 _ACEOF 16425 if ac_fn_c_try_compile "$LINENO" 16426 then : 16427 xorg_cv_cc_flag_unused_command_line_argument=yes 16428 else case e in #( 16429 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16430 esac 16431 fi 16432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16433 esac 16434 fi 16435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16436 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16437 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16438 CFLAGS="$xorg_testset_save_CFLAGS" 16439 fi 16440 16441 found="no" 16442 16443 if test $found = "no" ; then 16444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16446 fi 16447 16448 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16450 fi 16451 16452 CFLAGS="$CFLAGS -Wlogical-op" 16453 16454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 16455 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 16456 cacheid=xorg_cv_cc_flag__Wlogical_op 16457 if eval test \${$cacheid+y} 16458 then : 16459 printf %s "(cached) " >&6 16460 else case e in #( 16461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16462 /* end confdefs.h. */ 16463 int i; 16464 int 16465 main (void) 16466 { 16467 16468 ; 16469 return 0; 16470 } 16471 _ACEOF 16472 if ac_fn_c_try_link "$LINENO" 16473 then : 16474 eval $cacheid=yes 16475 else case e in #( 16476 e) eval $cacheid=no ;; 16477 esac 16478 fi 16479 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16480 conftest$ac_exeext conftest.$ac_ext ;; 16481 esac 16482 fi 16483 16484 16485 CFLAGS="$xorg_testset_save_CFLAGS" 16486 16487 eval supported=\$$cacheid 16488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16489 printf "%s\n" "$supported" >&6; } 16490 if test "$supported" = "yes" ; then 16491 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16492 found="yes" 16493 fi 16494 fi 16495 16496 16497 16498 # These are currently disabled because they are noisy. They will be enabled 16499 # in the future once the codebase is sufficiently modernized to silence 16500 # them. For now, I don't want them to drown out the other warnings. 16501 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16502 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16503 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16504 16505 # Turn some warnings into errors, so we don't accidentally get successful builds 16506 # when there are problems that should be fixed. 16507 16508 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 xorg_testset_save_CFLAGS="$CFLAGS" 16523 16524 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16527 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16528 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16529 then : 16530 printf %s "(cached) " >&6 16531 else case e in #( 16532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16533 /* end confdefs.h. */ 16534 int i; 16535 _ACEOF 16536 if ac_fn_c_try_compile "$LINENO" 16537 then : 16538 xorg_cv_cc_flag_unknown_warning_option=yes 16539 else case e in #( 16540 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16541 esac 16542 fi 16543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16544 esac 16545 fi 16546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16547 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16549 CFLAGS="$xorg_testset_save_CFLAGS" 16550 fi 16551 16552 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16555 fi 16556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16558 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16559 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16560 then : 16561 printf %s "(cached) " >&6 16562 else case e in #( 16563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16564 /* end confdefs.h. */ 16565 int i; 16566 _ACEOF 16567 if ac_fn_c_try_compile "$LINENO" 16568 then : 16569 xorg_cv_cc_flag_unused_command_line_argument=yes 16570 else case e in #( 16571 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16572 esac 16573 fi 16574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16575 esac 16576 fi 16577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16580 CFLAGS="$xorg_testset_save_CFLAGS" 16581 fi 16582 16583 found="no" 16584 16585 if test $found = "no" ; then 16586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16588 fi 16589 16590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16592 fi 16593 16594 CFLAGS="$CFLAGS -Werror=implicit" 16595 16596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16597 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16598 cacheid=xorg_cv_cc_flag__Werror_implicit 16599 if eval test \${$cacheid+y} 16600 then : 16601 printf %s "(cached) " >&6 16602 else case e in #( 16603 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16604 /* end confdefs.h. */ 16605 int i; 16606 int 16607 main (void) 16608 { 16609 16610 ; 16611 return 0; 16612 } 16613 _ACEOF 16614 if ac_fn_c_try_link "$LINENO" 16615 then : 16616 eval $cacheid=yes 16617 else case e in #( 16618 e) eval $cacheid=no ;; 16619 esac 16620 fi 16621 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16622 conftest$ac_exeext conftest.$ac_ext ;; 16623 esac 16624 fi 16625 16626 16627 CFLAGS="$xorg_testset_save_CFLAGS" 16628 16629 eval supported=\$$cacheid 16630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16631 printf "%s\n" "$supported" >&6; } 16632 if test "$supported" = "yes" ; then 16633 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16634 found="yes" 16635 fi 16636 fi 16637 16638 if test $found = "no" ; then 16639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16641 fi 16642 16643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16645 fi 16646 16647 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16648 16649 { 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 16650 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16651 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16652 if eval test \${$cacheid+y} 16653 then : 16654 printf %s "(cached) " >&6 16655 else case e in #( 16656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16657 /* end confdefs.h. */ 16658 int i; 16659 int 16660 main (void) 16661 { 16662 16663 ; 16664 return 0; 16665 } 16666 _ACEOF 16667 if ac_fn_c_try_link "$LINENO" 16668 then : 16669 eval $cacheid=yes 16670 else case e in #( 16671 e) eval $cacheid=no ;; 16672 esac 16673 fi 16674 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16675 conftest$ac_exeext conftest.$ac_ext ;; 16676 esac 16677 fi 16678 16679 16680 CFLAGS="$xorg_testset_save_CFLAGS" 16681 16682 eval supported=\$$cacheid 16683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16684 printf "%s\n" "$supported" >&6; } 16685 if test "$supported" = "yes" ; then 16686 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16687 found="yes" 16688 fi 16689 fi 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 xorg_testset_save_CFLAGS="$CFLAGS" 16706 16707 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16710 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16711 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16712 then : 16713 printf %s "(cached) " >&6 16714 else case e in #( 16715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16716 /* end confdefs.h. */ 16717 int i; 16718 _ACEOF 16719 if ac_fn_c_try_compile "$LINENO" 16720 then : 16721 xorg_cv_cc_flag_unknown_warning_option=yes 16722 else case e in #( 16723 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16724 esac 16725 fi 16726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16727 esac 16728 fi 16729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16730 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16732 CFLAGS="$xorg_testset_save_CFLAGS" 16733 fi 16734 16735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16738 fi 16739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16741 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16742 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16743 then : 16744 printf %s "(cached) " >&6 16745 else case e in #( 16746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16747 /* end confdefs.h. */ 16748 int i; 16749 _ACEOF 16750 if ac_fn_c_try_compile "$LINENO" 16751 then : 16752 xorg_cv_cc_flag_unused_command_line_argument=yes 16753 else case e in #( 16754 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16755 esac 16756 fi 16757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16758 esac 16759 fi 16760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16761 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16763 CFLAGS="$xorg_testset_save_CFLAGS" 16764 fi 16765 16766 found="no" 16767 16768 if test $found = "no" ; then 16769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16771 fi 16772 16773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16775 fi 16776 16777 CFLAGS="$CFLAGS -Werror=nonnull" 16778 16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16780 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16781 cacheid=xorg_cv_cc_flag__Werror_nonnull 16782 if eval test \${$cacheid+y} 16783 then : 16784 printf %s "(cached) " >&6 16785 else case e in #( 16786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16787 /* end confdefs.h. */ 16788 int i; 16789 int 16790 main (void) 16791 { 16792 16793 ; 16794 return 0; 16795 } 16796 _ACEOF 16797 if ac_fn_c_try_link "$LINENO" 16798 then : 16799 eval $cacheid=yes 16800 else case e in #( 16801 e) eval $cacheid=no ;; 16802 esac 16803 fi 16804 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16805 conftest$ac_exeext conftest.$ac_ext ;; 16806 esac 16807 fi 16808 16809 16810 CFLAGS="$xorg_testset_save_CFLAGS" 16811 16812 eval supported=\$$cacheid 16813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16814 printf "%s\n" "$supported" >&6; } 16815 if test "$supported" = "yes" ; then 16816 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16817 found="yes" 16818 fi 16819 fi 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 xorg_testset_save_CFLAGS="$CFLAGS" 16836 16837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16840 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16841 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16842 then : 16843 printf %s "(cached) " >&6 16844 else case e in #( 16845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16846 /* end confdefs.h. */ 16847 int i; 16848 _ACEOF 16849 if ac_fn_c_try_compile "$LINENO" 16850 then : 16851 xorg_cv_cc_flag_unknown_warning_option=yes 16852 else case e in #( 16853 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16854 esac 16855 fi 16856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16857 esac 16858 fi 16859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16860 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16862 CFLAGS="$xorg_testset_save_CFLAGS" 16863 fi 16864 16865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16868 fi 16869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16871 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16872 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16873 then : 16874 printf %s "(cached) " >&6 16875 else case e in #( 16876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16877 /* end confdefs.h. */ 16878 int i; 16879 _ACEOF 16880 if ac_fn_c_try_compile "$LINENO" 16881 then : 16882 xorg_cv_cc_flag_unused_command_line_argument=yes 16883 else case e in #( 16884 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16885 esac 16886 fi 16887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16888 esac 16889 fi 16890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16891 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16893 CFLAGS="$xorg_testset_save_CFLAGS" 16894 fi 16895 16896 found="no" 16897 16898 if test $found = "no" ; then 16899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16901 fi 16902 16903 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16905 fi 16906 16907 CFLAGS="$CFLAGS -Werror=init-self" 16908 16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16910 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16911 cacheid=xorg_cv_cc_flag__Werror_init_self 16912 if eval test \${$cacheid+y} 16913 then : 16914 printf %s "(cached) " >&6 16915 else case e in #( 16916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16917 /* end confdefs.h. */ 16918 int i; 16919 int 16920 main (void) 16921 { 16922 16923 ; 16924 return 0; 16925 } 16926 _ACEOF 16927 if ac_fn_c_try_link "$LINENO" 16928 then : 16929 eval $cacheid=yes 16930 else case e in #( 16931 e) eval $cacheid=no ;; 16932 esac 16933 fi 16934 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16935 conftest$ac_exeext conftest.$ac_ext ;; 16936 esac 16937 fi 16938 16939 16940 CFLAGS="$xorg_testset_save_CFLAGS" 16941 16942 eval supported=\$$cacheid 16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16944 printf "%s\n" "$supported" >&6; } 16945 if test "$supported" = "yes" ; then 16946 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16947 found="yes" 16948 fi 16949 fi 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 xorg_testset_save_CFLAGS="$CFLAGS" 16966 16967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16970 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16971 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16972 then : 16973 printf %s "(cached) " >&6 16974 else case e in #( 16975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16976 /* end confdefs.h. */ 16977 int i; 16978 _ACEOF 16979 if ac_fn_c_try_compile "$LINENO" 16980 then : 16981 xorg_cv_cc_flag_unknown_warning_option=yes 16982 else case e in #( 16983 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16984 esac 16985 fi 16986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16987 esac 16988 fi 16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16990 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16992 CFLAGS="$xorg_testset_save_CFLAGS" 16993 fi 16994 16995 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16998 fi 16999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17001 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17002 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17003 then : 17004 printf %s "(cached) " >&6 17005 else case e in #( 17006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17007 /* end confdefs.h. */ 17008 int i; 17009 _ACEOF 17010 if ac_fn_c_try_compile "$LINENO" 17011 then : 17012 xorg_cv_cc_flag_unused_command_line_argument=yes 17013 else case e in #( 17014 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17015 esac 17016 fi 17017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17018 esac 17019 fi 17020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17021 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17023 CFLAGS="$xorg_testset_save_CFLAGS" 17024 fi 17025 17026 found="no" 17027 17028 if test $found = "no" ; then 17029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17030 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17031 fi 17032 17033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17035 fi 17036 17037 CFLAGS="$CFLAGS -Werror=main" 17038 17039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 17040 printf %s "checking if $CC supports -Werror=main... " >&6; } 17041 cacheid=xorg_cv_cc_flag__Werror_main 17042 if eval test \${$cacheid+y} 17043 then : 17044 printf %s "(cached) " >&6 17045 else case e in #( 17046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17047 /* end confdefs.h. */ 17048 int i; 17049 int 17050 main (void) 17051 { 17052 17053 ; 17054 return 0; 17055 } 17056 _ACEOF 17057 if ac_fn_c_try_link "$LINENO" 17058 then : 17059 eval $cacheid=yes 17060 else case e in #( 17061 e) eval $cacheid=no ;; 17062 esac 17063 fi 17064 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17065 conftest$ac_exeext conftest.$ac_ext ;; 17066 esac 17067 fi 17068 17069 17070 CFLAGS="$xorg_testset_save_CFLAGS" 17071 17072 eval supported=\$$cacheid 17073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17074 printf "%s\n" "$supported" >&6; } 17075 if test "$supported" = "yes" ; then 17076 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 17077 found="yes" 17078 fi 17079 fi 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 xorg_testset_save_CFLAGS="$CFLAGS" 17096 17097 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17100 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17101 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17102 then : 17103 printf %s "(cached) " >&6 17104 else case e in #( 17105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17106 /* end confdefs.h. */ 17107 int i; 17108 _ACEOF 17109 if ac_fn_c_try_compile "$LINENO" 17110 then : 17111 xorg_cv_cc_flag_unknown_warning_option=yes 17112 else case e in #( 17113 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17114 esac 17115 fi 17116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17117 esac 17118 fi 17119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17120 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17122 CFLAGS="$xorg_testset_save_CFLAGS" 17123 fi 17124 17125 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17128 fi 17129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17131 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17132 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17133 then : 17134 printf %s "(cached) " >&6 17135 else case e in #( 17136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17137 /* end confdefs.h. */ 17138 int i; 17139 _ACEOF 17140 if ac_fn_c_try_compile "$LINENO" 17141 then : 17142 xorg_cv_cc_flag_unused_command_line_argument=yes 17143 else case e in #( 17144 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17145 esac 17146 fi 17147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17148 esac 17149 fi 17150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17151 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17153 CFLAGS="$xorg_testset_save_CFLAGS" 17154 fi 17155 17156 found="no" 17157 17158 if test $found = "no" ; then 17159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17161 fi 17162 17163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17165 fi 17166 17167 CFLAGS="$CFLAGS -Werror=missing-braces" 17168 17169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 17170 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 17171 cacheid=xorg_cv_cc_flag__Werror_missing_braces 17172 if eval test \${$cacheid+y} 17173 then : 17174 printf %s "(cached) " >&6 17175 else case e in #( 17176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17177 /* end confdefs.h. */ 17178 int i; 17179 int 17180 main (void) 17181 { 17182 17183 ; 17184 return 0; 17185 } 17186 _ACEOF 17187 if ac_fn_c_try_link "$LINENO" 17188 then : 17189 eval $cacheid=yes 17190 else case e in #( 17191 e) eval $cacheid=no ;; 17192 esac 17193 fi 17194 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17195 conftest$ac_exeext conftest.$ac_ext ;; 17196 esac 17197 fi 17198 17199 17200 CFLAGS="$xorg_testset_save_CFLAGS" 17201 17202 eval supported=\$$cacheid 17203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17204 printf "%s\n" "$supported" >&6; } 17205 if test "$supported" = "yes" ; then 17206 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 17207 found="yes" 17208 fi 17209 fi 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 xorg_testset_save_CFLAGS="$CFLAGS" 17226 17227 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17230 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17231 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17232 then : 17233 printf %s "(cached) " >&6 17234 else case e in #( 17235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17236 /* end confdefs.h. */ 17237 int i; 17238 _ACEOF 17239 if ac_fn_c_try_compile "$LINENO" 17240 then : 17241 xorg_cv_cc_flag_unknown_warning_option=yes 17242 else case e in #( 17243 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17244 esac 17245 fi 17246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17247 esac 17248 fi 17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17250 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17252 CFLAGS="$xorg_testset_save_CFLAGS" 17253 fi 17254 17255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17258 fi 17259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17261 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17262 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17263 then : 17264 printf %s "(cached) " >&6 17265 else case e in #( 17266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17267 /* end confdefs.h. */ 17268 int i; 17269 _ACEOF 17270 if ac_fn_c_try_compile "$LINENO" 17271 then : 17272 xorg_cv_cc_flag_unused_command_line_argument=yes 17273 else case e in #( 17274 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17275 esac 17276 fi 17277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17278 esac 17279 fi 17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17281 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17282 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17283 CFLAGS="$xorg_testset_save_CFLAGS" 17284 fi 17285 17286 found="no" 17287 17288 if test $found = "no" ; then 17289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17291 fi 17292 17293 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17295 fi 17296 17297 CFLAGS="$CFLAGS -Werror=sequence-point" 17298 17299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 17300 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 17301 cacheid=xorg_cv_cc_flag__Werror_sequence_point 17302 if eval test \${$cacheid+y} 17303 then : 17304 printf %s "(cached) " >&6 17305 else case e in #( 17306 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17307 /* end confdefs.h. */ 17308 int i; 17309 int 17310 main (void) 17311 { 17312 17313 ; 17314 return 0; 17315 } 17316 _ACEOF 17317 if ac_fn_c_try_link "$LINENO" 17318 then : 17319 eval $cacheid=yes 17320 else case e in #( 17321 e) eval $cacheid=no ;; 17322 esac 17323 fi 17324 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17325 conftest$ac_exeext conftest.$ac_ext ;; 17326 esac 17327 fi 17328 17329 17330 CFLAGS="$xorg_testset_save_CFLAGS" 17331 17332 eval supported=\$$cacheid 17333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17334 printf "%s\n" "$supported" >&6; } 17335 if test "$supported" = "yes" ; then 17336 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 17337 found="yes" 17338 fi 17339 fi 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 xorg_testset_save_CFLAGS="$CFLAGS" 17356 17357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17360 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17361 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17362 then : 17363 printf %s "(cached) " >&6 17364 else case e in #( 17365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17366 /* end confdefs.h. */ 17367 int i; 17368 _ACEOF 17369 if ac_fn_c_try_compile "$LINENO" 17370 then : 17371 xorg_cv_cc_flag_unknown_warning_option=yes 17372 else case e in #( 17373 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17374 esac 17375 fi 17376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17377 esac 17378 fi 17379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17380 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17382 CFLAGS="$xorg_testset_save_CFLAGS" 17383 fi 17384 17385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17387 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17388 fi 17389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17391 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17392 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17393 then : 17394 printf %s "(cached) " >&6 17395 else case e in #( 17396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17397 /* end confdefs.h. */ 17398 int i; 17399 _ACEOF 17400 if ac_fn_c_try_compile "$LINENO" 17401 then : 17402 xorg_cv_cc_flag_unused_command_line_argument=yes 17403 else case e in #( 17404 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17405 esac 17406 fi 17407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17408 esac 17409 fi 17410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17411 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17413 CFLAGS="$xorg_testset_save_CFLAGS" 17414 fi 17415 17416 found="no" 17417 17418 if test $found = "no" ; then 17419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17421 fi 17422 17423 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17425 fi 17426 17427 CFLAGS="$CFLAGS -Werror=return-type" 17428 17429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 17430 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 17431 cacheid=xorg_cv_cc_flag__Werror_return_type 17432 if eval test \${$cacheid+y} 17433 then : 17434 printf %s "(cached) " >&6 17435 else case e in #( 17436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17437 /* end confdefs.h. */ 17438 int i; 17439 int 17440 main (void) 17441 { 17442 17443 ; 17444 return 0; 17445 } 17446 _ACEOF 17447 if ac_fn_c_try_link "$LINENO" 17448 then : 17449 eval $cacheid=yes 17450 else case e in #( 17451 e) eval $cacheid=no ;; 17452 esac 17453 fi 17454 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17455 conftest$ac_exeext conftest.$ac_ext ;; 17456 esac 17457 fi 17458 17459 17460 CFLAGS="$xorg_testset_save_CFLAGS" 17461 17462 eval supported=\$$cacheid 17463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17464 printf "%s\n" "$supported" >&6; } 17465 if test "$supported" = "yes" ; then 17466 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 17467 found="yes" 17468 fi 17469 fi 17470 17471 if test $found = "no" ; then 17472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17474 fi 17475 17476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17478 fi 17479 17480 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17481 17482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17483 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17484 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17485 if eval test \${$cacheid+y} 17486 then : 17487 printf %s "(cached) " >&6 17488 else case e in #( 17489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17490 /* end confdefs.h. */ 17491 int i; 17492 int 17493 main (void) 17494 { 17495 17496 ; 17497 return 0; 17498 } 17499 _ACEOF 17500 if ac_fn_c_try_link "$LINENO" 17501 then : 17502 eval $cacheid=yes 17503 else case e in #( 17504 e) eval $cacheid=no ;; 17505 esac 17506 fi 17507 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17508 conftest$ac_exeext conftest.$ac_ext ;; 17509 esac 17510 fi 17511 17512 17513 CFLAGS="$xorg_testset_save_CFLAGS" 17514 17515 eval supported=\$$cacheid 17516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17517 printf "%s\n" "$supported" >&6; } 17518 if test "$supported" = "yes" ; then 17519 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17520 found="yes" 17521 fi 17522 fi 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 xorg_testset_save_CFLAGS="$CFLAGS" 17539 17540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17541 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17543 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17544 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17545 then : 17546 printf %s "(cached) " >&6 17547 else case e in #( 17548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17549 /* end confdefs.h. */ 17550 int i; 17551 _ACEOF 17552 if ac_fn_c_try_compile "$LINENO" 17553 then : 17554 xorg_cv_cc_flag_unknown_warning_option=yes 17555 else case e in #( 17556 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17557 esac 17558 fi 17559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17560 esac 17561 fi 17562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17563 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17565 CFLAGS="$xorg_testset_save_CFLAGS" 17566 fi 17567 17568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17571 fi 17572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17574 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17575 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17576 then : 17577 printf %s "(cached) " >&6 17578 else case e in #( 17579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17580 /* end confdefs.h. */ 17581 int i; 17582 _ACEOF 17583 if ac_fn_c_try_compile "$LINENO" 17584 then : 17585 xorg_cv_cc_flag_unused_command_line_argument=yes 17586 else case e in #( 17587 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17588 esac 17589 fi 17590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17591 esac 17592 fi 17593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17594 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17596 CFLAGS="$xorg_testset_save_CFLAGS" 17597 fi 17598 17599 found="no" 17600 17601 if test $found = "no" ; then 17602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17604 fi 17605 17606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17608 fi 17609 17610 CFLAGS="$CFLAGS -Werror=trigraphs" 17611 17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17613 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17614 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17615 if eval test \${$cacheid+y} 17616 then : 17617 printf %s "(cached) " >&6 17618 else case e in #( 17619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17620 /* end confdefs.h. */ 17621 int i; 17622 int 17623 main (void) 17624 { 17625 17626 ; 17627 return 0; 17628 } 17629 _ACEOF 17630 if ac_fn_c_try_link "$LINENO" 17631 then : 17632 eval $cacheid=yes 17633 else case e in #( 17634 e) eval $cacheid=no ;; 17635 esac 17636 fi 17637 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17638 conftest$ac_exeext conftest.$ac_ext ;; 17639 esac 17640 fi 17641 17642 17643 CFLAGS="$xorg_testset_save_CFLAGS" 17644 17645 eval supported=\$$cacheid 17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17647 printf "%s\n" "$supported" >&6; } 17648 if test "$supported" = "yes" ; then 17649 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17650 found="yes" 17651 fi 17652 fi 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 xorg_testset_save_CFLAGS="$CFLAGS" 17669 17670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17673 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17674 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17675 then : 17676 printf %s "(cached) " >&6 17677 else case e in #( 17678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17679 /* end confdefs.h. */ 17680 int i; 17681 _ACEOF 17682 if ac_fn_c_try_compile "$LINENO" 17683 then : 17684 xorg_cv_cc_flag_unknown_warning_option=yes 17685 else case e in #( 17686 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17687 esac 17688 fi 17689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17690 esac 17691 fi 17692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17693 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17695 CFLAGS="$xorg_testset_save_CFLAGS" 17696 fi 17697 17698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17701 fi 17702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17704 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17705 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17706 then : 17707 printf %s "(cached) " >&6 17708 else case e in #( 17709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17710 /* end confdefs.h. */ 17711 int i; 17712 _ACEOF 17713 if ac_fn_c_try_compile "$LINENO" 17714 then : 17715 xorg_cv_cc_flag_unused_command_line_argument=yes 17716 else case e in #( 17717 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17718 esac 17719 fi 17720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17721 esac 17722 fi 17723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17724 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17726 CFLAGS="$xorg_testset_save_CFLAGS" 17727 fi 17728 17729 found="no" 17730 17731 if test $found = "no" ; then 17732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17734 fi 17735 17736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17738 fi 17739 17740 CFLAGS="$CFLAGS -Werror=array-bounds" 17741 17742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17743 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17744 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17745 if eval test \${$cacheid+y} 17746 then : 17747 printf %s "(cached) " >&6 17748 else case e in #( 17749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17750 /* end confdefs.h. */ 17751 int i; 17752 int 17753 main (void) 17754 { 17755 17756 ; 17757 return 0; 17758 } 17759 _ACEOF 17760 if ac_fn_c_try_link "$LINENO" 17761 then : 17762 eval $cacheid=yes 17763 else case e in #( 17764 e) eval $cacheid=no ;; 17765 esac 17766 fi 17767 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17768 conftest$ac_exeext conftest.$ac_ext ;; 17769 esac 17770 fi 17771 17772 17773 CFLAGS="$xorg_testset_save_CFLAGS" 17774 17775 eval supported=\$$cacheid 17776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17777 printf "%s\n" "$supported" >&6; } 17778 if test "$supported" = "yes" ; then 17779 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17780 found="yes" 17781 fi 17782 fi 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 xorg_testset_save_CFLAGS="$CFLAGS" 17799 17800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17803 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17804 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17805 then : 17806 printf %s "(cached) " >&6 17807 else case e in #( 17808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17809 /* end confdefs.h. */ 17810 int i; 17811 _ACEOF 17812 if ac_fn_c_try_compile "$LINENO" 17813 then : 17814 xorg_cv_cc_flag_unknown_warning_option=yes 17815 else case e in #( 17816 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17817 esac 17818 fi 17819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17820 esac 17821 fi 17822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17823 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17825 CFLAGS="$xorg_testset_save_CFLAGS" 17826 fi 17827 17828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17831 fi 17832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17834 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17835 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17836 then : 17837 printf %s "(cached) " >&6 17838 else case e in #( 17839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17840 /* end confdefs.h. */ 17841 int i; 17842 _ACEOF 17843 if ac_fn_c_try_compile "$LINENO" 17844 then : 17845 xorg_cv_cc_flag_unused_command_line_argument=yes 17846 else case e in #( 17847 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17848 esac 17849 fi 17850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17851 esac 17852 fi 17853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17854 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17856 CFLAGS="$xorg_testset_save_CFLAGS" 17857 fi 17858 17859 found="no" 17860 17861 if test $found = "no" ; then 17862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17864 fi 17865 17866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17868 fi 17869 17870 CFLAGS="$CFLAGS -Werror=write-strings" 17871 17872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17873 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17874 cacheid=xorg_cv_cc_flag__Werror_write_strings 17875 if eval test \${$cacheid+y} 17876 then : 17877 printf %s "(cached) " >&6 17878 else case e in #( 17879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17880 /* end confdefs.h. */ 17881 int i; 17882 int 17883 main (void) 17884 { 17885 17886 ; 17887 return 0; 17888 } 17889 _ACEOF 17890 if ac_fn_c_try_link "$LINENO" 17891 then : 17892 eval $cacheid=yes 17893 else case e in #( 17894 e) eval $cacheid=no ;; 17895 esac 17896 fi 17897 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17898 conftest$ac_exeext conftest.$ac_ext ;; 17899 esac 17900 fi 17901 17902 17903 CFLAGS="$xorg_testset_save_CFLAGS" 17904 17905 eval supported=\$$cacheid 17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17907 printf "%s\n" "$supported" >&6; } 17908 if test "$supported" = "yes" ; then 17909 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17910 found="yes" 17911 fi 17912 fi 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 xorg_testset_save_CFLAGS="$CFLAGS" 17929 17930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17933 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17934 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17935 then : 17936 printf %s "(cached) " >&6 17937 else case e in #( 17938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17939 /* end confdefs.h. */ 17940 int i; 17941 _ACEOF 17942 if ac_fn_c_try_compile "$LINENO" 17943 then : 17944 xorg_cv_cc_flag_unknown_warning_option=yes 17945 else case e in #( 17946 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17947 esac 17948 fi 17949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17950 esac 17951 fi 17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17953 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17955 CFLAGS="$xorg_testset_save_CFLAGS" 17956 fi 17957 17958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17961 fi 17962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17966 then : 17967 printf %s "(cached) " >&6 17968 else case e in #( 17969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17970 /* end confdefs.h. */ 17971 int i; 17972 _ACEOF 17973 if ac_fn_c_try_compile "$LINENO" 17974 then : 17975 xorg_cv_cc_flag_unused_command_line_argument=yes 17976 else case e in #( 17977 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17978 esac 17979 fi 17980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17981 esac 17982 fi 17983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17984 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17986 CFLAGS="$xorg_testset_save_CFLAGS" 17987 fi 17988 17989 found="no" 17990 17991 if test $found = "no" ; then 17992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17993 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17994 fi 17995 17996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17998 fi 17999 18000 CFLAGS="$CFLAGS -Werror=address" 18001 18002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 18003 printf %s "checking if $CC supports -Werror=address... " >&6; } 18004 cacheid=xorg_cv_cc_flag__Werror_address 18005 if eval test \${$cacheid+y} 18006 then : 18007 printf %s "(cached) " >&6 18008 else case e in #( 18009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18010 /* end confdefs.h. */ 18011 int i; 18012 int 18013 main (void) 18014 { 18015 18016 ; 18017 return 0; 18018 } 18019 _ACEOF 18020 if ac_fn_c_try_link "$LINENO" 18021 then : 18022 eval $cacheid=yes 18023 else case e in #( 18024 e) eval $cacheid=no ;; 18025 esac 18026 fi 18027 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18028 conftest$ac_exeext conftest.$ac_ext ;; 18029 esac 18030 fi 18031 18032 18033 CFLAGS="$xorg_testset_save_CFLAGS" 18034 18035 eval supported=\$$cacheid 18036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18037 printf "%s\n" "$supported" >&6; } 18038 if test "$supported" = "yes" ; then 18039 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 18040 found="yes" 18041 fi 18042 fi 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 xorg_testset_save_CFLAGS="$CFLAGS" 18059 18060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18063 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18064 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18065 then : 18066 printf %s "(cached) " >&6 18067 else case e in #( 18068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18069 /* end confdefs.h. */ 18070 int i; 18071 _ACEOF 18072 if ac_fn_c_try_compile "$LINENO" 18073 then : 18074 xorg_cv_cc_flag_unknown_warning_option=yes 18075 else case e in #( 18076 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18077 esac 18078 fi 18079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18080 esac 18081 fi 18082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18083 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18085 CFLAGS="$xorg_testset_save_CFLAGS" 18086 fi 18087 18088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18091 fi 18092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18096 then : 18097 printf %s "(cached) " >&6 18098 else case e in #( 18099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18100 /* end confdefs.h. */ 18101 int i; 18102 _ACEOF 18103 if ac_fn_c_try_compile "$LINENO" 18104 then : 18105 xorg_cv_cc_flag_unused_command_line_argument=yes 18106 else case e in #( 18107 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18108 esac 18109 fi 18110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18111 esac 18112 fi 18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18114 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18116 CFLAGS="$xorg_testset_save_CFLAGS" 18117 fi 18118 18119 found="no" 18120 18121 if test $found = "no" ; then 18122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18124 fi 18125 18126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18128 fi 18129 18130 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 18131 18132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 18133 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 18134 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 18135 if eval test \${$cacheid+y} 18136 then : 18137 printf %s "(cached) " >&6 18138 else case e in #( 18139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18140 /* end confdefs.h. */ 18141 int i; 18142 int 18143 main (void) 18144 { 18145 18146 ; 18147 return 0; 18148 } 18149 _ACEOF 18150 if ac_fn_c_try_link "$LINENO" 18151 then : 18152 eval $cacheid=yes 18153 else case e in #( 18154 e) eval $cacheid=no ;; 18155 esac 18156 fi 18157 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18158 conftest$ac_exeext conftest.$ac_ext ;; 18159 esac 18160 fi 18161 18162 18163 CFLAGS="$xorg_testset_save_CFLAGS" 18164 18165 eval supported=\$$cacheid 18166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18167 printf "%s\n" "$supported" >&6; } 18168 if test "$supported" = "yes" ; then 18169 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 18170 found="yes" 18171 fi 18172 fi 18173 18174 if test $found = "no" ; then 18175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18177 fi 18178 18179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18181 fi 18182 18183 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18184 18185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 18186 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 18187 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 18188 if eval test \${$cacheid+y} 18189 then : 18190 printf %s "(cached) " >&6 18191 else case e in #( 18192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18193 /* end confdefs.h. */ 18194 int i; 18195 int 18196 main (void) 18197 { 18198 18199 ; 18200 return 0; 18201 } 18202 _ACEOF 18203 if ac_fn_c_try_link "$LINENO" 18204 then : 18205 eval $cacheid=yes 18206 else case e in #( 18207 e) eval $cacheid=no ;; 18208 esac 18209 fi 18210 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18211 conftest$ac_exeext conftest.$ac_ext ;; 18212 esac 18213 fi 18214 18215 18216 CFLAGS="$xorg_testset_save_CFLAGS" 18217 18218 eval supported=\$$cacheid 18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18220 printf "%s\n" "$supported" >&6; } 18221 if test "$supported" = "yes" ; then 18222 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 18223 found="yes" 18224 fi 18225 fi 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 xorg_testset_save_CFLAGS="$CFLAGS" 18242 18243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18246 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18247 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18248 then : 18249 printf %s "(cached) " >&6 18250 else case e in #( 18251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18252 /* end confdefs.h. */ 18253 int i; 18254 _ACEOF 18255 if ac_fn_c_try_compile "$LINENO" 18256 then : 18257 xorg_cv_cc_flag_unknown_warning_option=yes 18258 else case e in #( 18259 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18260 esac 18261 fi 18262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18263 esac 18264 fi 18265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18266 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18267 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18268 CFLAGS="$xorg_testset_save_CFLAGS" 18269 fi 18270 18271 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18272 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18273 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18274 fi 18275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18277 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18278 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18279 then : 18280 printf %s "(cached) " >&6 18281 else case e in #( 18282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18283 /* end confdefs.h. */ 18284 int i; 18285 _ACEOF 18286 if ac_fn_c_try_compile "$LINENO" 18287 then : 18288 xorg_cv_cc_flag_unused_command_line_argument=yes 18289 else case e in #( 18290 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18291 esac 18292 fi 18293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18294 esac 18295 fi 18296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18297 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18299 CFLAGS="$xorg_testset_save_CFLAGS" 18300 fi 18301 18302 found="no" 18303 18304 if test $found = "no" ; then 18305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18307 fi 18308 18309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18311 fi 18312 18313 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 18314 18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 18316 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 18317 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 18318 if eval test \${$cacheid+y} 18319 then : 18320 printf %s "(cached) " >&6 18321 else case e in #( 18322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18323 /* end confdefs.h. */ 18324 int i; 18325 int 18326 main (void) 18327 { 18328 18329 ; 18330 return 0; 18331 } 18332 _ACEOF 18333 if ac_fn_c_try_link "$LINENO" 18334 then : 18335 eval $cacheid=yes 18336 else case e in #( 18337 e) eval $cacheid=no ;; 18338 esac 18339 fi 18340 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18341 conftest$ac_exeext conftest.$ac_ext ;; 18342 esac 18343 fi 18344 18345 18346 CFLAGS="$xorg_testset_save_CFLAGS" 18347 18348 eval supported=\$$cacheid 18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18350 printf "%s\n" "$supported" >&6; } 18351 if test "$supported" = "yes" ; then 18352 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 18353 found="yes" 18354 fi 18355 fi 18356 18357 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 18358 else 18359 { 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 18360 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;} 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 xorg_testset_save_CFLAGS="$CFLAGS" 18375 18376 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18379 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18380 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18381 then : 18382 printf %s "(cached) " >&6 18383 else case e in #( 18384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18385 /* end confdefs.h. */ 18386 int i; 18387 _ACEOF 18388 if ac_fn_c_try_compile "$LINENO" 18389 then : 18390 xorg_cv_cc_flag_unknown_warning_option=yes 18391 else case e in #( 18392 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18393 esac 18394 fi 18395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18396 esac 18397 fi 18398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18399 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18401 CFLAGS="$xorg_testset_save_CFLAGS" 18402 fi 18403 18404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18407 fi 18408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18410 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18411 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18412 then : 18413 printf %s "(cached) " >&6 18414 else case e in #( 18415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18416 /* end confdefs.h. */ 18417 int i; 18418 _ACEOF 18419 if ac_fn_c_try_compile "$LINENO" 18420 then : 18421 xorg_cv_cc_flag_unused_command_line_argument=yes 18422 else case e in #( 18423 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18424 esac 18425 fi 18426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18427 esac 18428 fi 18429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18430 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18432 CFLAGS="$xorg_testset_save_CFLAGS" 18433 fi 18434 18435 found="no" 18436 18437 if test $found = "no" ; then 18438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18440 fi 18441 18442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18444 fi 18445 18446 CFLAGS="$CFLAGS -Wimplicit" 18447 18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 18449 printf %s "checking if $CC supports -Wimplicit... " >&6; } 18450 cacheid=xorg_cv_cc_flag__Wimplicit 18451 if eval test \${$cacheid+y} 18452 then : 18453 printf %s "(cached) " >&6 18454 else case e in #( 18455 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18456 /* end confdefs.h. */ 18457 int i; 18458 int 18459 main (void) 18460 { 18461 18462 ; 18463 return 0; 18464 } 18465 _ACEOF 18466 if ac_fn_c_try_link "$LINENO" 18467 then : 18468 eval $cacheid=yes 18469 else case e in #( 18470 e) eval $cacheid=no ;; 18471 esac 18472 fi 18473 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18474 conftest$ac_exeext conftest.$ac_ext ;; 18475 esac 18476 fi 18477 18478 18479 CFLAGS="$xorg_testset_save_CFLAGS" 18480 18481 eval supported=\$$cacheid 18482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18483 printf "%s\n" "$supported" >&6; } 18484 if test "$supported" = "yes" ; then 18485 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18486 found="yes" 18487 fi 18488 fi 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 xorg_testset_save_CFLAGS="$CFLAGS" 18505 18506 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18509 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18510 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18511 then : 18512 printf %s "(cached) " >&6 18513 else case e in #( 18514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18515 /* end confdefs.h. */ 18516 int i; 18517 _ACEOF 18518 if ac_fn_c_try_compile "$LINENO" 18519 then : 18520 xorg_cv_cc_flag_unknown_warning_option=yes 18521 else case e in #( 18522 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18523 esac 18524 fi 18525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18526 esac 18527 fi 18528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18529 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18531 CFLAGS="$xorg_testset_save_CFLAGS" 18532 fi 18533 18534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18537 fi 18538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18540 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18541 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18542 then : 18543 printf %s "(cached) " >&6 18544 else case e in #( 18545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18546 /* end confdefs.h. */ 18547 int i; 18548 _ACEOF 18549 if ac_fn_c_try_compile "$LINENO" 18550 then : 18551 xorg_cv_cc_flag_unused_command_line_argument=yes 18552 else case e in #( 18553 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18554 esac 18555 fi 18556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18557 esac 18558 fi 18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18560 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18562 CFLAGS="$xorg_testset_save_CFLAGS" 18563 fi 18564 18565 found="no" 18566 18567 if test $found = "no" ; then 18568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18570 fi 18571 18572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18574 fi 18575 18576 CFLAGS="$CFLAGS -Wnonnull" 18577 18578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18579 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18580 cacheid=xorg_cv_cc_flag__Wnonnull 18581 if eval test \${$cacheid+y} 18582 then : 18583 printf %s "(cached) " >&6 18584 else case e in #( 18585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18586 /* end confdefs.h. */ 18587 int i; 18588 int 18589 main (void) 18590 { 18591 18592 ; 18593 return 0; 18594 } 18595 _ACEOF 18596 if ac_fn_c_try_link "$LINENO" 18597 then : 18598 eval $cacheid=yes 18599 else case e in #( 18600 e) eval $cacheid=no ;; 18601 esac 18602 fi 18603 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18604 conftest$ac_exeext conftest.$ac_ext ;; 18605 esac 18606 fi 18607 18608 18609 CFLAGS="$xorg_testset_save_CFLAGS" 18610 18611 eval supported=\$$cacheid 18612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18613 printf "%s\n" "$supported" >&6; } 18614 if test "$supported" = "yes" ; then 18615 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18616 found="yes" 18617 fi 18618 fi 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 xorg_testset_save_CFLAGS="$CFLAGS" 18635 18636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18639 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18640 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18641 then : 18642 printf %s "(cached) " >&6 18643 else case e in #( 18644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18645 /* end confdefs.h. */ 18646 int i; 18647 _ACEOF 18648 if ac_fn_c_try_compile "$LINENO" 18649 then : 18650 xorg_cv_cc_flag_unknown_warning_option=yes 18651 else case e in #( 18652 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18653 esac 18654 fi 18655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18656 esac 18657 fi 18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18659 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18660 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18661 CFLAGS="$xorg_testset_save_CFLAGS" 18662 fi 18663 18664 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18666 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18667 fi 18668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18670 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18671 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18672 then : 18673 printf %s "(cached) " >&6 18674 else case e in #( 18675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18676 /* end confdefs.h. */ 18677 int i; 18678 _ACEOF 18679 if ac_fn_c_try_compile "$LINENO" 18680 then : 18681 xorg_cv_cc_flag_unused_command_line_argument=yes 18682 else case e in #( 18683 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18684 esac 18685 fi 18686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18687 esac 18688 fi 18689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18690 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18691 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18692 CFLAGS="$xorg_testset_save_CFLAGS" 18693 fi 18694 18695 found="no" 18696 18697 if test $found = "no" ; then 18698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18700 fi 18701 18702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18704 fi 18705 18706 CFLAGS="$CFLAGS -Winit-self" 18707 18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18709 printf %s "checking if $CC supports -Winit-self... " >&6; } 18710 cacheid=xorg_cv_cc_flag__Winit_self 18711 if eval test \${$cacheid+y} 18712 then : 18713 printf %s "(cached) " >&6 18714 else case e in #( 18715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18716 /* end confdefs.h. */ 18717 int i; 18718 int 18719 main (void) 18720 { 18721 18722 ; 18723 return 0; 18724 } 18725 _ACEOF 18726 if ac_fn_c_try_link "$LINENO" 18727 then : 18728 eval $cacheid=yes 18729 else case e in #( 18730 e) eval $cacheid=no ;; 18731 esac 18732 fi 18733 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18734 conftest$ac_exeext conftest.$ac_ext ;; 18735 esac 18736 fi 18737 18738 18739 CFLAGS="$xorg_testset_save_CFLAGS" 18740 18741 eval supported=\$$cacheid 18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18743 printf "%s\n" "$supported" >&6; } 18744 if test "$supported" = "yes" ; then 18745 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18746 found="yes" 18747 fi 18748 fi 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 xorg_testset_save_CFLAGS="$CFLAGS" 18765 18766 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18769 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18770 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18771 then : 18772 printf %s "(cached) " >&6 18773 else case e in #( 18774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18775 /* end confdefs.h. */ 18776 int i; 18777 _ACEOF 18778 if ac_fn_c_try_compile "$LINENO" 18779 then : 18780 xorg_cv_cc_flag_unknown_warning_option=yes 18781 else case e in #( 18782 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18783 esac 18784 fi 18785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18786 esac 18787 fi 18788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18789 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18791 CFLAGS="$xorg_testset_save_CFLAGS" 18792 fi 18793 18794 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18797 fi 18798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18800 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18801 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18802 then : 18803 printf %s "(cached) " >&6 18804 else case e in #( 18805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18806 /* end confdefs.h. */ 18807 int i; 18808 _ACEOF 18809 if ac_fn_c_try_compile "$LINENO" 18810 then : 18811 xorg_cv_cc_flag_unused_command_line_argument=yes 18812 else case e in #( 18813 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18814 esac 18815 fi 18816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18817 esac 18818 fi 18819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18820 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18822 CFLAGS="$xorg_testset_save_CFLAGS" 18823 fi 18824 18825 found="no" 18826 18827 if test $found = "no" ; then 18828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18830 fi 18831 18832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18834 fi 18835 18836 CFLAGS="$CFLAGS -Wmain" 18837 18838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18839 printf %s "checking if $CC supports -Wmain... " >&6; } 18840 cacheid=xorg_cv_cc_flag__Wmain 18841 if eval test \${$cacheid+y} 18842 then : 18843 printf %s "(cached) " >&6 18844 else case e in #( 18845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18846 /* end confdefs.h. */ 18847 int i; 18848 int 18849 main (void) 18850 { 18851 18852 ; 18853 return 0; 18854 } 18855 _ACEOF 18856 if ac_fn_c_try_link "$LINENO" 18857 then : 18858 eval $cacheid=yes 18859 else case e in #( 18860 e) eval $cacheid=no ;; 18861 esac 18862 fi 18863 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18864 conftest$ac_exeext conftest.$ac_ext ;; 18865 esac 18866 fi 18867 18868 18869 CFLAGS="$xorg_testset_save_CFLAGS" 18870 18871 eval supported=\$$cacheid 18872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18873 printf "%s\n" "$supported" >&6; } 18874 if test "$supported" = "yes" ; then 18875 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18876 found="yes" 18877 fi 18878 fi 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 xorg_testset_save_CFLAGS="$CFLAGS" 18895 18896 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18899 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18900 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18901 then : 18902 printf %s "(cached) " >&6 18903 else case e in #( 18904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18905 /* end confdefs.h. */ 18906 int i; 18907 _ACEOF 18908 if ac_fn_c_try_compile "$LINENO" 18909 then : 18910 xorg_cv_cc_flag_unknown_warning_option=yes 18911 else case e in #( 18912 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18913 esac 18914 fi 18915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18916 esac 18917 fi 18918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18919 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18921 CFLAGS="$xorg_testset_save_CFLAGS" 18922 fi 18923 18924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18927 fi 18928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18930 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18931 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18932 then : 18933 printf %s "(cached) " >&6 18934 else case e in #( 18935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18936 /* end confdefs.h. */ 18937 int i; 18938 _ACEOF 18939 if ac_fn_c_try_compile "$LINENO" 18940 then : 18941 xorg_cv_cc_flag_unused_command_line_argument=yes 18942 else case e in #( 18943 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18944 esac 18945 fi 18946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18947 esac 18948 fi 18949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18952 CFLAGS="$xorg_testset_save_CFLAGS" 18953 fi 18954 18955 found="no" 18956 18957 if test $found = "no" ; then 18958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18960 fi 18961 18962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18964 fi 18965 18966 CFLAGS="$CFLAGS -Wmissing-braces" 18967 18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18969 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18970 cacheid=xorg_cv_cc_flag__Wmissing_braces 18971 if eval test \${$cacheid+y} 18972 then : 18973 printf %s "(cached) " >&6 18974 else case e in #( 18975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18976 /* end confdefs.h. */ 18977 int i; 18978 int 18979 main (void) 18980 { 18981 18982 ; 18983 return 0; 18984 } 18985 _ACEOF 18986 if ac_fn_c_try_link "$LINENO" 18987 then : 18988 eval $cacheid=yes 18989 else case e in #( 18990 e) eval $cacheid=no ;; 18991 esac 18992 fi 18993 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18994 conftest$ac_exeext conftest.$ac_ext ;; 18995 esac 18996 fi 18997 18998 18999 CFLAGS="$xorg_testset_save_CFLAGS" 19000 19001 eval supported=\$$cacheid 19002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19003 printf "%s\n" "$supported" >&6; } 19004 if test "$supported" = "yes" ; then 19005 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 19006 found="yes" 19007 fi 19008 fi 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 xorg_testset_save_CFLAGS="$CFLAGS" 19025 19026 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19029 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19030 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19031 then : 19032 printf %s "(cached) " >&6 19033 else case e in #( 19034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19035 /* end confdefs.h. */ 19036 int i; 19037 _ACEOF 19038 if ac_fn_c_try_compile "$LINENO" 19039 then : 19040 xorg_cv_cc_flag_unknown_warning_option=yes 19041 else case e in #( 19042 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19043 esac 19044 fi 19045 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19046 esac 19047 fi 19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19049 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19051 CFLAGS="$xorg_testset_save_CFLAGS" 19052 fi 19053 19054 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19057 fi 19058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19060 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19061 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19062 then : 19063 printf %s "(cached) " >&6 19064 else case e in #( 19065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19066 /* end confdefs.h. */ 19067 int i; 19068 _ACEOF 19069 if ac_fn_c_try_compile "$LINENO" 19070 then : 19071 xorg_cv_cc_flag_unused_command_line_argument=yes 19072 else case e in #( 19073 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19074 esac 19075 fi 19076 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19077 esac 19078 fi 19079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19080 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19082 CFLAGS="$xorg_testset_save_CFLAGS" 19083 fi 19084 19085 found="no" 19086 19087 if test $found = "no" ; then 19088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19090 fi 19091 19092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19094 fi 19095 19096 CFLAGS="$CFLAGS -Wsequence-point" 19097 19098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 19099 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 19100 cacheid=xorg_cv_cc_flag__Wsequence_point 19101 if eval test \${$cacheid+y} 19102 then : 19103 printf %s "(cached) " >&6 19104 else case e in #( 19105 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19106 /* end confdefs.h. */ 19107 int i; 19108 int 19109 main (void) 19110 { 19111 19112 ; 19113 return 0; 19114 } 19115 _ACEOF 19116 if ac_fn_c_try_link "$LINENO" 19117 then : 19118 eval $cacheid=yes 19119 else case e in #( 19120 e) eval $cacheid=no ;; 19121 esac 19122 fi 19123 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19124 conftest$ac_exeext conftest.$ac_ext ;; 19125 esac 19126 fi 19127 19128 19129 CFLAGS="$xorg_testset_save_CFLAGS" 19130 19131 eval supported=\$$cacheid 19132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19133 printf "%s\n" "$supported" >&6; } 19134 if test "$supported" = "yes" ; then 19135 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 19136 found="yes" 19137 fi 19138 fi 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 xorg_testset_save_CFLAGS="$CFLAGS" 19155 19156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19159 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19160 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19161 then : 19162 printf %s "(cached) " >&6 19163 else case e in #( 19164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19165 /* end confdefs.h. */ 19166 int i; 19167 _ACEOF 19168 if ac_fn_c_try_compile "$LINENO" 19169 then : 19170 xorg_cv_cc_flag_unknown_warning_option=yes 19171 else case e in #( 19172 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19173 esac 19174 fi 19175 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19176 esac 19177 fi 19178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19179 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19181 CFLAGS="$xorg_testset_save_CFLAGS" 19182 fi 19183 19184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19187 fi 19188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19190 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19191 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19192 then : 19193 printf %s "(cached) " >&6 19194 else case e in #( 19195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19196 /* end confdefs.h. */ 19197 int i; 19198 _ACEOF 19199 if ac_fn_c_try_compile "$LINENO" 19200 then : 19201 xorg_cv_cc_flag_unused_command_line_argument=yes 19202 else case e in #( 19203 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19204 esac 19205 fi 19206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19207 esac 19208 fi 19209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19210 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19212 CFLAGS="$xorg_testset_save_CFLAGS" 19213 fi 19214 19215 found="no" 19216 19217 if test $found = "no" ; then 19218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19220 fi 19221 19222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19224 fi 19225 19226 CFLAGS="$CFLAGS -Wreturn-type" 19227 19228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 19229 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 19230 cacheid=xorg_cv_cc_flag__Wreturn_type 19231 if eval test \${$cacheid+y} 19232 then : 19233 printf %s "(cached) " >&6 19234 else case e in #( 19235 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19236 /* end confdefs.h. */ 19237 int i; 19238 int 19239 main (void) 19240 { 19241 19242 ; 19243 return 0; 19244 } 19245 _ACEOF 19246 if ac_fn_c_try_link "$LINENO" 19247 then : 19248 eval $cacheid=yes 19249 else case e in #( 19250 e) eval $cacheid=no ;; 19251 esac 19252 fi 19253 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19254 conftest$ac_exeext conftest.$ac_ext ;; 19255 esac 19256 fi 19257 19258 19259 CFLAGS="$xorg_testset_save_CFLAGS" 19260 19261 eval supported=\$$cacheid 19262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19263 printf "%s\n" "$supported" >&6; } 19264 if test "$supported" = "yes" ; then 19265 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 19266 found="yes" 19267 fi 19268 fi 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 xorg_testset_save_CFLAGS="$CFLAGS" 19285 19286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19289 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19290 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19291 then : 19292 printf %s "(cached) " >&6 19293 else case e in #( 19294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19295 /* end confdefs.h. */ 19296 int i; 19297 _ACEOF 19298 if ac_fn_c_try_compile "$LINENO" 19299 then : 19300 xorg_cv_cc_flag_unknown_warning_option=yes 19301 else case e in #( 19302 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19303 esac 19304 fi 19305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19306 esac 19307 fi 19308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19309 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19310 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19311 CFLAGS="$xorg_testset_save_CFLAGS" 19312 fi 19313 19314 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19317 fi 19318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19320 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19321 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19322 then : 19323 printf %s "(cached) " >&6 19324 else case e in #( 19325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19326 /* end confdefs.h. */ 19327 int i; 19328 _ACEOF 19329 if ac_fn_c_try_compile "$LINENO" 19330 then : 19331 xorg_cv_cc_flag_unused_command_line_argument=yes 19332 else case e in #( 19333 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19334 esac 19335 fi 19336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19337 esac 19338 fi 19339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19340 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19342 CFLAGS="$xorg_testset_save_CFLAGS" 19343 fi 19344 19345 found="no" 19346 19347 if test $found = "no" ; then 19348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19350 fi 19351 19352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19354 fi 19355 19356 CFLAGS="$CFLAGS -Wtrigraphs" 19357 19358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 19359 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 19360 cacheid=xorg_cv_cc_flag__Wtrigraphs 19361 if eval test \${$cacheid+y} 19362 then : 19363 printf %s "(cached) " >&6 19364 else case e in #( 19365 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19366 /* end confdefs.h. */ 19367 int i; 19368 int 19369 main (void) 19370 { 19371 19372 ; 19373 return 0; 19374 } 19375 _ACEOF 19376 if ac_fn_c_try_link "$LINENO" 19377 then : 19378 eval $cacheid=yes 19379 else case e in #( 19380 e) eval $cacheid=no ;; 19381 esac 19382 fi 19383 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19384 conftest$ac_exeext conftest.$ac_ext ;; 19385 esac 19386 fi 19387 19388 19389 CFLAGS="$xorg_testset_save_CFLAGS" 19390 19391 eval supported=\$$cacheid 19392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19393 printf "%s\n" "$supported" >&6; } 19394 if test "$supported" = "yes" ; then 19395 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 19396 found="yes" 19397 fi 19398 fi 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 xorg_testset_save_CFLAGS="$CFLAGS" 19415 19416 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19417 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19419 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19420 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19421 then : 19422 printf %s "(cached) " >&6 19423 else case e in #( 19424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19425 /* end confdefs.h. */ 19426 int i; 19427 _ACEOF 19428 if ac_fn_c_try_compile "$LINENO" 19429 then : 19430 xorg_cv_cc_flag_unknown_warning_option=yes 19431 else case e in #( 19432 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19433 esac 19434 fi 19435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19436 esac 19437 fi 19438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19439 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19441 CFLAGS="$xorg_testset_save_CFLAGS" 19442 fi 19443 19444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19447 fi 19448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19450 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19451 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19452 then : 19453 printf %s "(cached) " >&6 19454 else case e in #( 19455 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19456 /* end confdefs.h. */ 19457 int i; 19458 _ACEOF 19459 if ac_fn_c_try_compile "$LINENO" 19460 then : 19461 xorg_cv_cc_flag_unused_command_line_argument=yes 19462 else case e in #( 19463 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19464 esac 19465 fi 19466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19467 esac 19468 fi 19469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19470 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19472 CFLAGS="$xorg_testset_save_CFLAGS" 19473 fi 19474 19475 found="no" 19476 19477 if test $found = "no" ; then 19478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19480 fi 19481 19482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19484 fi 19485 19486 CFLAGS="$CFLAGS -Warray-bounds" 19487 19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19489 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19490 cacheid=xorg_cv_cc_flag__Warray_bounds 19491 if eval test \${$cacheid+y} 19492 then : 19493 printf %s "(cached) " >&6 19494 else case e in #( 19495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19496 /* end confdefs.h. */ 19497 int i; 19498 int 19499 main (void) 19500 { 19501 19502 ; 19503 return 0; 19504 } 19505 _ACEOF 19506 if ac_fn_c_try_link "$LINENO" 19507 then : 19508 eval $cacheid=yes 19509 else case e in #( 19510 e) eval $cacheid=no ;; 19511 esac 19512 fi 19513 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19514 conftest$ac_exeext conftest.$ac_ext ;; 19515 esac 19516 fi 19517 19518 19519 CFLAGS="$xorg_testset_save_CFLAGS" 19520 19521 eval supported=\$$cacheid 19522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19523 printf "%s\n" "$supported" >&6; } 19524 if test "$supported" = "yes" ; then 19525 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19526 found="yes" 19527 fi 19528 fi 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 xorg_testset_save_CFLAGS="$CFLAGS" 19545 19546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19549 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19550 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19551 then : 19552 printf %s "(cached) " >&6 19553 else case e in #( 19554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19555 /* end confdefs.h. */ 19556 int i; 19557 _ACEOF 19558 if ac_fn_c_try_compile "$LINENO" 19559 then : 19560 xorg_cv_cc_flag_unknown_warning_option=yes 19561 else case e in #( 19562 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19563 esac 19564 fi 19565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19566 esac 19567 fi 19568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19569 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19570 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19571 CFLAGS="$xorg_testset_save_CFLAGS" 19572 fi 19573 19574 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19575 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19576 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19577 fi 19578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19580 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19581 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19582 then : 19583 printf %s "(cached) " >&6 19584 else case e in #( 19585 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19586 /* end confdefs.h. */ 19587 int i; 19588 _ACEOF 19589 if ac_fn_c_try_compile "$LINENO" 19590 then : 19591 xorg_cv_cc_flag_unused_command_line_argument=yes 19592 else case e in #( 19593 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19594 esac 19595 fi 19596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19597 esac 19598 fi 19599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19600 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19602 CFLAGS="$xorg_testset_save_CFLAGS" 19603 fi 19604 19605 found="no" 19606 19607 if test $found = "no" ; then 19608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19610 fi 19611 19612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19614 fi 19615 19616 CFLAGS="$CFLAGS -Wwrite-strings" 19617 19618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19619 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19620 cacheid=xorg_cv_cc_flag__Wwrite_strings 19621 if eval test \${$cacheid+y} 19622 then : 19623 printf %s "(cached) " >&6 19624 else case e in #( 19625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19626 /* end confdefs.h. */ 19627 int i; 19628 int 19629 main (void) 19630 { 19631 19632 ; 19633 return 0; 19634 } 19635 _ACEOF 19636 if ac_fn_c_try_link "$LINENO" 19637 then : 19638 eval $cacheid=yes 19639 else case e in #( 19640 e) eval $cacheid=no ;; 19641 esac 19642 fi 19643 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19644 conftest$ac_exeext conftest.$ac_ext ;; 19645 esac 19646 fi 19647 19648 19649 CFLAGS="$xorg_testset_save_CFLAGS" 19650 19651 eval supported=\$$cacheid 19652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19653 printf "%s\n" "$supported" >&6; } 19654 if test "$supported" = "yes" ; then 19655 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19656 found="yes" 19657 fi 19658 fi 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 xorg_testset_save_CFLAGS="$CFLAGS" 19675 19676 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19679 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19680 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19681 then : 19682 printf %s "(cached) " >&6 19683 else case e in #( 19684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19685 /* end confdefs.h. */ 19686 int i; 19687 _ACEOF 19688 if ac_fn_c_try_compile "$LINENO" 19689 then : 19690 xorg_cv_cc_flag_unknown_warning_option=yes 19691 else case e in #( 19692 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19693 esac 19694 fi 19695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19696 esac 19697 fi 19698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19699 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19701 CFLAGS="$xorg_testset_save_CFLAGS" 19702 fi 19703 19704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19707 fi 19708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19710 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19711 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19712 then : 19713 printf %s "(cached) " >&6 19714 else case e in #( 19715 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19716 /* end confdefs.h. */ 19717 int i; 19718 _ACEOF 19719 if ac_fn_c_try_compile "$LINENO" 19720 then : 19721 xorg_cv_cc_flag_unused_command_line_argument=yes 19722 else case e in #( 19723 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19724 esac 19725 fi 19726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19727 esac 19728 fi 19729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19730 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19732 CFLAGS="$xorg_testset_save_CFLAGS" 19733 fi 19734 19735 found="no" 19736 19737 if test $found = "no" ; then 19738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19740 fi 19741 19742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19744 fi 19745 19746 CFLAGS="$CFLAGS -Waddress" 19747 19748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19749 printf %s "checking if $CC supports -Waddress... " >&6; } 19750 cacheid=xorg_cv_cc_flag__Waddress 19751 if eval test \${$cacheid+y} 19752 then : 19753 printf %s "(cached) " >&6 19754 else case e in #( 19755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19756 /* end confdefs.h. */ 19757 int i; 19758 int 19759 main (void) 19760 { 19761 19762 ; 19763 return 0; 19764 } 19765 _ACEOF 19766 if ac_fn_c_try_link "$LINENO" 19767 then : 19768 eval $cacheid=yes 19769 else case e in #( 19770 e) eval $cacheid=no ;; 19771 esac 19772 fi 19773 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19774 conftest$ac_exeext conftest.$ac_ext ;; 19775 esac 19776 fi 19777 19778 19779 CFLAGS="$xorg_testset_save_CFLAGS" 19780 19781 eval supported=\$$cacheid 19782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19783 printf "%s\n" "$supported" >&6; } 19784 if test "$supported" = "yes" ; then 19785 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19786 found="yes" 19787 fi 19788 fi 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 xorg_testset_save_CFLAGS="$CFLAGS" 19805 19806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19809 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19810 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19811 then : 19812 printf %s "(cached) " >&6 19813 else case e in #( 19814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19815 /* end confdefs.h. */ 19816 int i; 19817 _ACEOF 19818 if ac_fn_c_try_compile "$LINENO" 19819 then : 19820 xorg_cv_cc_flag_unknown_warning_option=yes 19821 else case e in #( 19822 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19823 esac 19824 fi 19825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19826 esac 19827 fi 19828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19829 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19831 CFLAGS="$xorg_testset_save_CFLAGS" 19832 fi 19833 19834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19837 fi 19838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19840 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19841 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19842 then : 19843 printf %s "(cached) " >&6 19844 else case e in #( 19845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19846 /* end confdefs.h. */ 19847 int i; 19848 _ACEOF 19849 if ac_fn_c_try_compile "$LINENO" 19850 then : 19851 xorg_cv_cc_flag_unused_command_line_argument=yes 19852 else case e in #( 19853 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19854 esac 19855 fi 19856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19857 esac 19858 fi 19859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19860 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19862 CFLAGS="$xorg_testset_save_CFLAGS" 19863 fi 19864 19865 found="no" 19866 19867 if test $found = "no" ; then 19868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19869 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19870 fi 19871 19872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19874 fi 19875 19876 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19877 19878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19879 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19880 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19881 if eval test \${$cacheid+y} 19882 then : 19883 printf %s "(cached) " >&6 19884 else case e in #( 19885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19886 /* end confdefs.h. */ 19887 int i; 19888 int 19889 main (void) 19890 { 19891 19892 ; 19893 return 0; 19894 } 19895 _ACEOF 19896 if ac_fn_c_try_link "$LINENO" 19897 then : 19898 eval $cacheid=yes 19899 else case e in #( 19900 e) eval $cacheid=no ;; 19901 esac 19902 fi 19903 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19904 conftest$ac_exeext conftest.$ac_ext ;; 19905 esac 19906 fi 19907 19908 19909 CFLAGS="$xorg_testset_save_CFLAGS" 19910 19911 eval supported=\$$cacheid 19912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19913 printf "%s\n" "$supported" >&6; } 19914 if test "$supported" = "yes" ; then 19915 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19916 found="yes" 19917 fi 19918 fi 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 xorg_testset_save_CFLAGS="$CFLAGS" 19935 19936 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19939 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19940 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19941 then : 19942 printf %s "(cached) " >&6 19943 else case e in #( 19944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19945 /* end confdefs.h. */ 19946 int i; 19947 _ACEOF 19948 if ac_fn_c_try_compile "$LINENO" 19949 then : 19950 xorg_cv_cc_flag_unknown_warning_option=yes 19951 else case e in #( 19952 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19953 esac 19954 fi 19955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19956 esac 19957 fi 19958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19959 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19961 CFLAGS="$xorg_testset_save_CFLAGS" 19962 fi 19963 19964 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19967 fi 19968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19970 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19971 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19972 then : 19973 printf %s "(cached) " >&6 19974 else case e in #( 19975 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19976 /* end confdefs.h. */ 19977 int i; 19978 _ACEOF 19979 if ac_fn_c_try_compile "$LINENO" 19980 then : 19981 xorg_cv_cc_flag_unused_command_line_argument=yes 19982 else case e in #( 19983 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19984 esac 19985 fi 19986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19987 esac 19988 fi 19989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19992 CFLAGS="$xorg_testset_save_CFLAGS" 19993 fi 19994 19995 found="no" 19996 19997 if test $found = "no" ; then 19998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20000 fi 20001 20002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20004 fi 20005 20006 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 20007 20008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 20009 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 20010 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 20011 if eval test \${$cacheid+y} 20012 then : 20013 printf %s "(cached) " >&6 20014 else case e in #( 20015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20016 /* end confdefs.h. */ 20017 int i; 20018 int 20019 main (void) 20020 { 20021 20022 ; 20023 return 0; 20024 } 20025 _ACEOF 20026 if ac_fn_c_try_link "$LINENO" 20027 then : 20028 eval $cacheid=yes 20029 else case e in #( 20030 e) eval $cacheid=no ;; 20031 esac 20032 fi 20033 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20034 conftest$ac_exeext conftest.$ac_ext ;; 20035 esac 20036 fi 20037 20038 20039 CFLAGS="$xorg_testset_save_CFLAGS" 20040 20041 eval supported=\$$cacheid 20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20043 printf "%s\n" "$supported" >&6; } 20044 if test "$supported" = "yes" ; then 20045 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 20046 found="yes" 20047 fi 20048 fi 20049 20050 20051 fi 20052 20053 20054 20055 20056 20057 20058 20059 CWARNFLAGS="$BASE_CFLAGS" 20060 if test "x$GCC" = xyes ; then 20061 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 20062 fi 20063 20064 20065 20066 20067 20068 20069 20070 20071 # Check whether --enable-strict-compilation was given. 20072 if test ${enable_strict_compilation+y} 20073 then : 20074 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 20075 else case e in #( 20076 e) STRICT_COMPILE=no ;; 20077 esac 20078 fi 20079 20080 20081 20082 20083 20084 20085 STRICT_CFLAGS="" 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 xorg_testset_save_CFLAGS="$CFLAGS" 20100 20101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20104 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20105 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20106 then : 20107 printf %s "(cached) " >&6 20108 else case e in #( 20109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20110 /* end confdefs.h. */ 20111 int i; 20112 _ACEOF 20113 if ac_fn_c_try_compile "$LINENO" 20114 then : 20115 xorg_cv_cc_flag_unknown_warning_option=yes 20116 else case e in #( 20117 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20118 esac 20119 fi 20120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20121 esac 20122 fi 20123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20124 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20126 CFLAGS="$xorg_testset_save_CFLAGS" 20127 fi 20128 20129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20132 fi 20133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20135 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20136 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20137 then : 20138 printf %s "(cached) " >&6 20139 else case e in #( 20140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20141 /* end confdefs.h. */ 20142 int i; 20143 _ACEOF 20144 if ac_fn_c_try_compile "$LINENO" 20145 then : 20146 xorg_cv_cc_flag_unused_command_line_argument=yes 20147 else case e in #( 20148 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20149 esac 20150 fi 20151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20152 esac 20153 fi 20154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20155 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20157 CFLAGS="$xorg_testset_save_CFLAGS" 20158 fi 20159 20160 found="no" 20161 20162 if test $found = "no" ; then 20163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20165 fi 20166 20167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20169 fi 20170 20171 CFLAGS="$CFLAGS -pedantic" 20172 20173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 20174 printf %s "checking if $CC supports -pedantic... " >&6; } 20175 cacheid=xorg_cv_cc_flag__pedantic 20176 if eval test \${$cacheid+y} 20177 then : 20178 printf %s "(cached) " >&6 20179 else case e in #( 20180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20181 /* end confdefs.h. */ 20182 int i; 20183 int 20184 main (void) 20185 { 20186 20187 ; 20188 return 0; 20189 } 20190 _ACEOF 20191 if ac_fn_c_try_link "$LINENO" 20192 then : 20193 eval $cacheid=yes 20194 else case e in #( 20195 e) eval $cacheid=no ;; 20196 esac 20197 fi 20198 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20199 conftest$ac_exeext conftest.$ac_ext ;; 20200 esac 20201 fi 20202 20203 20204 CFLAGS="$xorg_testset_save_CFLAGS" 20205 20206 eval supported=\$$cacheid 20207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20208 printf "%s\n" "$supported" >&6; } 20209 if test "$supported" = "yes" ; then 20210 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 20211 found="yes" 20212 fi 20213 fi 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 xorg_testset_save_CFLAGS="$CFLAGS" 20230 20231 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20234 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20235 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20236 then : 20237 printf %s "(cached) " >&6 20238 else case e in #( 20239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20240 /* end confdefs.h. */ 20241 int i; 20242 _ACEOF 20243 if ac_fn_c_try_compile "$LINENO" 20244 then : 20245 xorg_cv_cc_flag_unknown_warning_option=yes 20246 else case e in #( 20247 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20248 esac 20249 fi 20250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20251 esac 20252 fi 20253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20254 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20256 CFLAGS="$xorg_testset_save_CFLAGS" 20257 fi 20258 20259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20262 fi 20263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20265 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20266 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20267 then : 20268 printf %s "(cached) " >&6 20269 else case e in #( 20270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20271 /* end confdefs.h. */ 20272 int i; 20273 _ACEOF 20274 if ac_fn_c_try_compile "$LINENO" 20275 then : 20276 xorg_cv_cc_flag_unused_command_line_argument=yes 20277 else case e in #( 20278 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20279 esac 20280 fi 20281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20282 esac 20283 fi 20284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20287 CFLAGS="$xorg_testset_save_CFLAGS" 20288 fi 20289 20290 found="no" 20291 20292 if test $found = "no" ; then 20293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20294 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20295 fi 20296 20297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20299 fi 20300 20301 CFLAGS="$CFLAGS -Werror" 20302 20303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 20304 printf %s "checking if $CC supports -Werror... " >&6; } 20305 cacheid=xorg_cv_cc_flag__Werror 20306 if eval test \${$cacheid+y} 20307 then : 20308 printf %s "(cached) " >&6 20309 else case e in #( 20310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20311 /* end confdefs.h. */ 20312 int i; 20313 int 20314 main (void) 20315 { 20316 20317 ; 20318 return 0; 20319 } 20320 _ACEOF 20321 if ac_fn_c_try_link "$LINENO" 20322 then : 20323 eval $cacheid=yes 20324 else case e in #( 20325 e) eval $cacheid=no ;; 20326 esac 20327 fi 20328 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20329 conftest$ac_exeext conftest.$ac_ext ;; 20330 esac 20331 fi 20332 20333 20334 CFLAGS="$xorg_testset_save_CFLAGS" 20335 20336 eval supported=\$$cacheid 20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20338 printf "%s\n" "$supported" >&6; } 20339 if test "$supported" = "yes" ; then 20340 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 20341 found="yes" 20342 fi 20343 fi 20344 20345 if test $found = "no" ; then 20346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20347 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20348 fi 20349 20350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20352 fi 20353 20354 CFLAGS="$CFLAGS -errwarn" 20355 20356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 20357 printf %s "checking if $CC supports -errwarn... " >&6; } 20358 cacheid=xorg_cv_cc_flag__errwarn 20359 if eval test \${$cacheid+y} 20360 then : 20361 printf %s "(cached) " >&6 20362 else case e in #( 20363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20364 /* end confdefs.h. */ 20365 int i; 20366 int 20367 main (void) 20368 { 20369 20370 ; 20371 return 0; 20372 } 20373 _ACEOF 20374 if ac_fn_c_try_link "$LINENO" 20375 then : 20376 eval $cacheid=yes 20377 else case e in #( 20378 e) eval $cacheid=no ;; 20379 esac 20380 fi 20381 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20382 conftest$ac_exeext conftest.$ac_ext ;; 20383 esac 20384 fi 20385 20386 20387 CFLAGS="$xorg_testset_save_CFLAGS" 20388 20389 eval supported=\$$cacheid 20390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20391 printf "%s\n" "$supported" >&6; } 20392 if test "$supported" = "yes" ; then 20393 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 20394 found="yes" 20395 fi 20396 fi 20397 20398 20399 20400 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 20401 # activate it with -Werror, so we add it here explicitly. 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 xorg_testset_save_CFLAGS="$CFLAGS" 20416 20417 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 20418 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 20420 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 20421 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 20422 then : 20423 printf %s "(cached) " >&6 20424 else case e in #( 20425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20426 /* end confdefs.h. */ 20427 int i; 20428 _ACEOF 20429 if ac_fn_c_try_compile "$LINENO" 20430 then : 20431 xorg_cv_cc_flag_unknown_warning_option=yes 20432 else case e in #( 20433 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 20434 esac 20435 fi 20436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20437 esac 20438 fi 20439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 20440 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 20441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 20442 CFLAGS="$xorg_testset_save_CFLAGS" 20443 fi 20444 20445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 20446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20448 fi 20449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 20451 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 20452 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 20453 then : 20454 printf %s "(cached) " >&6 20455 else case e in #( 20456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20457 /* end confdefs.h. */ 20458 int i; 20459 _ACEOF 20460 if ac_fn_c_try_compile "$LINENO" 20461 then : 20462 xorg_cv_cc_flag_unused_command_line_argument=yes 20463 else case e in #( 20464 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 20465 esac 20466 fi 20467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 20468 esac 20469 fi 20470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20471 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20473 CFLAGS="$xorg_testset_save_CFLAGS" 20474 fi 20475 20476 found="no" 20477 20478 if test $found = "no" ; then 20479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20481 fi 20482 20483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20485 fi 20486 20487 CFLAGS="$CFLAGS -Werror=attributes" 20488 20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20490 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20491 cacheid=xorg_cv_cc_flag__Werror_attributes 20492 if eval test \${$cacheid+y} 20493 then : 20494 printf %s "(cached) " >&6 20495 else case e in #( 20496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20497 /* end confdefs.h. */ 20498 int i; 20499 int 20500 main (void) 20501 { 20502 20503 ; 20504 return 0; 20505 } 20506 _ACEOF 20507 if ac_fn_c_try_link "$LINENO" 20508 then : 20509 eval $cacheid=yes 20510 else case e in #( 20511 e) eval $cacheid=no ;; 20512 esac 20513 fi 20514 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20515 conftest$ac_exeext conftest.$ac_ext ;; 20516 esac 20517 fi 20518 20519 20520 CFLAGS="$xorg_testset_save_CFLAGS" 20521 20522 eval supported=\$$cacheid 20523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20524 printf "%s\n" "$supported" >&6; } 20525 if test "$supported" = "yes" ; then 20526 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20527 found="yes" 20528 fi 20529 fi 20530 20531 20532 20533 if test "x$STRICT_COMPILE" = "xyes"; then 20534 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20535 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20536 fi 20537 20538 20539 20540 20541 20542 20543 20544 20545 cat >>confdefs.h <<_ACEOF 20546 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20547 _ACEOF 20548 20549 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20550 if test "x$PVM" = "x"; then 20551 PVM="0" 20552 fi 20553 20554 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20555 20556 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20557 if test "x$PVP" = "x"; then 20558 PVP="0" 20559 fi 20560 20561 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20562 20563 20564 20565 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20566 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20567 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20568 touch \$(top_srcdir)/ChangeLog; \ 20569 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20570 20571 20572 20573 20574 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20575 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20576 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20577 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20578 touch \$(top_srcdir)/INSTALL; \ 20579 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20580 20581 20582 20583 20584 20585 20586 case $host_os in 20587 solaris*) 20588 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20589 # check for a man page file found in later versions that use 20590 # traditional section numbers instead 20591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20592 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20593 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20594 then : 20595 printf %s "(cached) " >&6 20596 else case e in #( 20597 e) test "$cross_compiling" = yes && 20598 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20599 if test -r "/usr/share/man/man7/attributes.7"; then 20600 ac_cv_file__usr_share_man_man7_attributes_7=yes 20601 else 20602 ac_cv_file__usr_share_man_man7_attributes_7=no 20603 fi ;; 20604 esac 20605 fi 20606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20607 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20608 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20609 then : 20610 SYSV_MAN_SECTIONS=false 20611 else case e in #( 20612 e) SYSV_MAN_SECTIONS=true ;; 20613 esac 20614 fi 20615 20616 ;; 20617 *) SYSV_MAN_SECTIONS=false ;; 20618 esac 20619 20620 if test x$APP_MAN_SUFFIX = x ; then 20621 APP_MAN_SUFFIX=1 20622 fi 20623 if test x$APP_MAN_DIR = x ; then 20624 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20625 fi 20626 20627 if test x$LIB_MAN_SUFFIX = x ; then 20628 LIB_MAN_SUFFIX=3 20629 fi 20630 if test x$LIB_MAN_DIR = x ; then 20631 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20632 fi 20633 20634 if test x$FILE_MAN_SUFFIX = x ; then 20635 case $SYSV_MAN_SECTIONS in 20636 true) FILE_MAN_SUFFIX=4 ;; 20637 *) FILE_MAN_SUFFIX=5 ;; 20638 esac 20639 fi 20640 if test x$FILE_MAN_DIR = x ; then 20641 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20642 fi 20643 20644 if test x$MISC_MAN_SUFFIX = x ; then 20645 case $SYSV_MAN_SECTIONS in 20646 true) MISC_MAN_SUFFIX=5 ;; 20647 *) MISC_MAN_SUFFIX=7 ;; 20648 esac 20649 fi 20650 if test x$MISC_MAN_DIR = x ; then 20651 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20652 fi 20653 20654 if test x$DRIVER_MAN_SUFFIX = x ; then 20655 case $SYSV_MAN_SECTIONS in 20656 true) DRIVER_MAN_SUFFIX=7 ;; 20657 *) DRIVER_MAN_SUFFIX=4 ;; 20658 esac 20659 fi 20660 if test x$DRIVER_MAN_DIR = x ; then 20661 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20662 fi 20663 20664 if test x$ADMIN_MAN_SUFFIX = x ; then 20665 case $SYSV_MAN_SECTIONS in 20666 true) ADMIN_MAN_SUFFIX=1m ;; 20667 *) ADMIN_MAN_SUFFIX=8 ;; 20668 esac 20669 fi 20670 if test x$ADMIN_MAN_DIR = x ; then 20671 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20672 fi 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 XORG_MAN_PAGE="X Version 11" 20689 20690 MAN_SUBSTS="\ 20691 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20692 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20693 -e 's|__xservername__|Xorg|g' \ 20694 -e 's|__xconfigfile__|xorg.conf|g' \ 20695 -e 's|__projectroot__|\$(prefix)|g' \ 20696 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20697 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20698 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20699 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20700 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20701 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20702 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20703 20704 20705 20706 20707 AM_DEFAULT_VERBOSITY=0 20708 20709 20710 20711 20712 20713 20714 # Check whether --enable-docs was given. 20715 if test ${enable_docs+y} 20716 then : 20717 enableval=$enable_docs; build_docs=$enableval 20718 else case e in #( 20719 e) build_docs=yes ;; 20720 esac 20721 fi 20722 20723 20724 if test x$build_docs = xyes; then 20725 ENABLE_DOCS_TRUE= 20726 ENABLE_DOCS_FALSE='#' 20727 else 20728 ENABLE_DOCS_TRUE='#' 20729 ENABLE_DOCS_FALSE= 20730 fi 20731 20732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 20733 printf %s "checking whether to build documentation... " >&6; } 20734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 20735 printf "%s\n" "$build_docs" >&6; } 20736 20737 20738 20739 20740 20741 # Check whether --with-xmlto was given. 20742 if test ${with_xmlto+y} 20743 then : 20744 withval=$with_xmlto; use_xmlto=$withval 20745 else case e in #( 20746 e) use_xmlto=auto ;; 20747 esac 20748 fi 20749 20750 20751 20752 if test "x$use_xmlto" = x"auto"; then 20753 # Extract the first word of "xmlto", so it can be a program name with args. 20754 set dummy xmlto; ac_word=$2 20755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20756 printf %s "checking for $ac_word... " >&6; } 20757 if test ${ac_cv_path_XMLTO+y} 20758 then : 20759 printf %s "(cached) " >&6 20760 else case e in #( 20761 e) case $XMLTO in 20762 [\\/]* | ?:[\\/]*) 20763 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20764 ;; 20765 *) 20766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20767 for as_dir in $PATH 20768 do 20769 IFS=$as_save_IFS 20770 case $as_dir in #((( 20771 '') as_dir=./ ;; 20772 */) ;; 20773 *) as_dir=$as_dir/ ;; 20774 esac 20775 for ac_exec_ext in '' $ac_executable_extensions; do 20776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20777 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20779 break 2 20780 fi 20781 done 20782 done 20783 IFS=$as_save_IFS 20784 20785 ;; 20786 esac ;; 20787 esac 20788 fi 20789 XMLTO=$ac_cv_path_XMLTO 20790 if test -n "$XMLTO"; then 20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20792 printf "%s\n" "$XMLTO" >&6; } 20793 else 20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20795 printf "%s\n" "no" >&6; } 20796 fi 20797 20798 20799 if test "x$XMLTO" = "x"; then 20800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20801 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20802 have_xmlto=no 20803 else 20804 have_xmlto=yes 20805 fi 20806 elif test "x$use_xmlto" = x"yes" ; then 20807 # Extract the first word of "xmlto", so it can be a program name with args. 20808 set dummy xmlto; ac_word=$2 20809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20810 printf %s "checking for $ac_word... " >&6; } 20811 if test ${ac_cv_path_XMLTO+y} 20812 then : 20813 printf %s "(cached) " >&6 20814 else case e in #( 20815 e) case $XMLTO in 20816 [\\/]* | ?:[\\/]*) 20817 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20818 ;; 20819 *) 20820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20821 for as_dir in $PATH 20822 do 20823 IFS=$as_save_IFS 20824 case $as_dir in #((( 20825 '') as_dir=./ ;; 20826 */) ;; 20827 *) as_dir=$as_dir/ ;; 20828 esac 20829 for ac_exec_ext in '' $ac_executable_extensions; do 20830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20831 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20833 break 2 20834 fi 20835 done 20836 done 20837 IFS=$as_save_IFS 20838 20839 ;; 20840 esac ;; 20841 esac 20842 fi 20843 XMLTO=$ac_cv_path_XMLTO 20844 if test -n "$XMLTO"; then 20845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20846 printf "%s\n" "$XMLTO" >&6; } 20847 else 20848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20849 printf "%s\n" "no" >&6; } 20850 fi 20851 20852 20853 if test "x$XMLTO" = "x"; then 20854 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20855 fi 20856 have_xmlto=yes 20857 elif test "x$use_xmlto" = x"no" ; then 20858 if test "x$XMLTO" != "x"; then 20859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20860 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20861 fi 20862 have_xmlto=no 20863 else 20864 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20865 fi 20866 20867 # Test for a minimum version of xmlto, if provided. 20868 if test "$have_xmlto" = yes; then 20869 # scrape the xmlto version 20870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20871 printf %s "checking the xmlto version... " >&6; } 20872 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20874 printf "%s\n" "$xmlto_version" >&6; } 20875 as_arg_v1=$xmlto_version 20876 as_arg_v2=0.0.22 20877 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20878 case $? in #( 20879 1) : 20880 if test "x$use_xmlto" = xauto; then 20881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20882 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20883 have_xmlto=no 20884 else 20885 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20886 fi ;; #( 20887 0) : 20888 ;; #( 20889 2) : 20890 ;; #( 20891 *) : 20892 ;; 20893 esac 20894 fi 20895 20896 # Test for the ability of xmlto to generate a text target 20897 # 20898 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20899 # following test for empty XML docbook files. 20900 # For compatibility reasons use the following empty XML docbook file and if 20901 # it fails try it again with a non-empty XML file. 20902 have_xmlto_text=no 20903 cat > conftest.xml << "EOF" 20904 EOF 20905 if test "$have_xmlto" = yes 20906 then : 20907 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20908 then : 20909 have_xmlto_text=yes 20910 else case e in #( 20911 e) # Try it again with a non-empty XML file. 20912 cat > conftest.xml << "EOF" 20913 <x></x> 20914 EOF 20915 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20916 then : 20917 have_xmlto_text=yes 20918 else case e in #( 20919 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20920 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20921 esac 20922 fi ;; 20923 esac 20924 fi 20925 fi 20926 rm -f conftest.xml 20927 if test $have_xmlto_text = yes; then 20928 HAVE_XMLTO_TEXT_TRUE= 20929 HAVE_XMLTO_TEXT_FALSE='#' 20930 else 20931 HAVE_XMLTO_TEXT_TRUE='#' 20932 HAVE_XMLTO_TEXT_FALSE= 20933 fi 20934 20935 if test "$have_xmlto" = yes; then 20936 HAVE_XMLTO_TRUE= 20937 HAVE_XMLTO_FALSE='#' 20938 else 20939 HAVE_XMLTO_TRUE='#' 20940 HAVE_XMLTO_FALSE= 20941 fi 20942 20943 20944 20945 20946 20947 20948 # Check whether --with-fop was given. 20949 if test ${with_fop+y} 20950 then : 20951 withval=$with_fop; use_fop=$withval 20952 else case e in #( 20953 e) use_fop=auto ;; 20954 esac 20955 fi 20956 20957 20958 20959 if test "x$use_fop" = x"auto"; then 20960 # Extract the first word of "fop", so it can be a program name with args. 20961 set dummy fop; ac_word=$2 20962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20963 printf %s "checking for $ac_word... " >&6; } 20964 if test ${ac_cv_path_FOP+y} 20965 then : 20966 printf %s "(cached) " >&6 20967 else case e in #( 20968 e) case $FOP in 20969 [\\/]* | ?:[\\/]*) 20970 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20971 ;; 20972 *) 20973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20974 for as_dir in $PATH 20975 do 20976 IFS=$as_save_IFS 20977 case $as_dir in #((( 20978 '') as_dir=./ ;; 20979 */) ;; 20980 *) as_dir=$as_dir/ ;; 20981 esac 20982 for ac_exec_ext in '' $ac_executable_extensions; do 20983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20984 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20986 break 2 20987 fi 20988 done 20989 done 20990 IFS=$as_save_IFS 20991 20992 ;; 20993 esac ;; 20994 esac 20995 fi 20996 FOP=$ac_cv_path_FOP 20997 if test -n "$FOP"; then 20998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20999 printf "%s\n" "$FOP" >&6; } 21000 else 21001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21002 printf "%s\n" "no" >&6; } 21003 fi 21004 21005 21006 if test "x$FOP" = "x"; then 21007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 21008 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 21009 have_fop=no 21010 else 21011 have_fop=yes 21012 fi 21013 elif test "x$use_fop" = x"yes" ; then 21014 # Extract the first word of "fop", so it can be a program name with args. 21015 set dummy fop; ac_word=$2 21016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21017 printf %s "checking for $ac_word... " >&6; } 21018 if test ${ac_cv_path_FOP+y} 21019 then : 21020 printf %s "(cached) " >&6 21021 else case e in #( 21022 e) case $FOP in 21023 [\\/]* | ?:[\\/]*) 21024 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 21025 ;; 21026 *) 21027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21028 for as_dir in $PATH 21029 do 21030 IFS=$as_save_IFS 21031 case $as_dir in #((( 21032 '') as_dir=./ ;; 21033 */) ;; 21034 *) as_dir=$as_dir/ ;; 21035 esac 21036 for ac_exec_ext in '' $ac_executable_extensions; do 21037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21038 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 21039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21040 break 2 21041 fi 21042 done 21043 done 21044 IFS=$as_save_IFS 21045 21046 ;; 21047 esac ;; 21048 esac 21049 fi 21050 FOP=$ac_cv_path_FOP 21051 if test -n "$FOP"; then 21052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 21053 printf "%s\n" "$FOP" >&6; } 21054 else 21055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21056 printf "%s\n" "no" >&6; } 21057 fi 21058 21059 21060 if test "x$FOP" = "x"; then 21061 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 21062 fi 21063 have_fop=yes 21064 elif test "x$use_fop" = x"no" ; then 21065 if test "x$FOP" != "x"; then 21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 21067 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 21068 fi 21069 have_fop=no 21070 else 21071 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 21072 fi 21073 21074 # Test for a minimum version of fop, if provided. 21075 21076 if test "$have_fop" = yes; then 21077 HAVE_FOP_TRUE= 21078 HAVE_FOP_FALSE='#' 21079 else 21080 HAVE_FOP_TRUE='#' 21081 HAVE_FOP_FALSE= 21082 fi 21083 21084 21085 21086 21087 # Preserves the interface, should it be implemented later 21088 21089 21090 21091 # Check whether --with-xsltproc was given. 21092 if test ${with_xsltproc+y} 21093 then : 21094 withval=$with_xsltproc; use_xsltproc=$withval 21095 else case e in #( 21096 e) use_xsltproc=auto ;; 21097 esac 21098 fi 21099 21100 21101 21102 if test "x$use_xsltproc" = x"auto"; then 21103 # Extract the first word of "xsltproc", so it can be a program name with args. 21104 set dummy xsltproc; ac_word=$2 21105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21106 printf %s "checking for $ac_word... " >&6; } 21107 if test ${ac_cv_path_XSLTPROC+y} 21108 then : 21109 printf %s "(cached) " >&6 21110 else case e in #( 21111 e) case $XSLTPROC in 21112 [\\/]* | ?:[\\/]*) 21113 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21114 ;; 21115 *) 21116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21117 for as_dir in $PATH 21118 do 21119 IFS=$as_save_IFS 21120 case $as_dir in #((( 21121 '') as_dir=./ ;; 21122 */) ;; 21123 *) as_dir=$as_dir/ ;; 21124 esac 21125 for ac_exec_ext in '' $ac_executable_extensions; do 21126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21127 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21129 break 2 21130 fi 21131 done 21132 done 21133 IFS=$as_save_IFS 21134 21135 ;; 21136 esac ;; 21137 esac 21138 fi 21139 XSLTPROC=$ac_cv_path_XSLTPROC 21140 if test -n "$XSLTPROC"; then 21141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21142 printf "%s\n" "$XSLTPROC" >&6; } 21143 else 21144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21145 printf "%s\n" "no" >&6; } 21146 fi 21147 21148 21149 if test "x$XSLTPROC" = "x"; then 21150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 21151 printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 21152 have_xsltproc=no 21153 else 21154 have_xsltproc=yes 21155 fi 21156 elif test "x$use_xsltproc" = x"yes" ; then 21157 # Extract the first word of "xsltproc", so it can be a program name with args. 21158 set dummy xsltproc; ac_word=$2 21159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21160 printf %s "checking for $ac_word... " >&6; } 21161 if test ${ac_cv_path_XSLTPROC+y} 21162 then : 21163 printf %s "(cached) " >&6 21164 else case e in #( 21165 e) case $XSLTPROC in 21166 [\\/]* | ?:[\\/]*) 21167 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 21168 ;; 21169 *) 21170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21171 for as_dir in $PATH 21172 do 21173 IFS=$as_save_IFS 21174 case $as_dir in #((( 21175 '') as_dir=./ ;; 21176 */) ;; 21177 *) as_dir=$as_dir/ ;; 21178 esac 21179 for ac_exec_ext in '' $ac_executable_extensions; do 21180 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21181 ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext" 21182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21183 break 2 21184 fi 21185 done 21186 done 21187 IFS=$as_save_IFS 21188 21189 ;; 21190 esac ;; 21191 esac 21192 fi 21193 XSLTPROC=$ac_cv_path_XSLTPROC 21194 if test -n "$XSLTPROC"; then 21195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 21196 printf "%s\n" "$XSLTPROC" >&6; } 21197 else 21198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21199 printf "%s\n" "no" >&6; } 21200 fi 21201 21202 21203 if test "x$XSLTPROC" = "x"; then 21204 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 21205 fi 21206 have_xsltproc=yes 21207 elif test "x$use_xsltproc" = x"no" ; then 21208 if test "x$XSLTPROC" != "x"; then 21209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 21210 printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 21211 fi 21212 have_xsltproc=no 21213 else 21214 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 21215 fi 21216 21217 if test "$have_xsltproc" = yes; then 21218 HAVE_XSLTPROC_TRUE= 21219 HAVE_XSLTPROC_FALSE='#' 21220 else 21221 HAVE_XSLTPROC_TRUE='#' 21222 HAVE_XSLTPROC_FALSE= 21223 fi 21224 21225 21226 21227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 21228 printf %s "checking for X.Org SGML entities >= 1.8... " >&6; } 21229 XORG_SGML_PATH= 21230 if test -n "$PKG_CONFIG" && \ 21231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 21232 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 21233 ac_status=$? 21234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21235 test $ac_status = 0; }; then 21236 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 21237 else 21238 : 21239 21240 fi 21241 21242 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 21243 # the path and the name of the doc stylesheet 21244 if test "x$XORG_SGML_PATH" != "x" ; then 21245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 21246 printf "%s\n" "$XORG_SGML_PATH" >&6; } 21247 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 21248 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 21249 else 21250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21251 printf "%s\n" "no" >&6; } 21252 fi 21253 21254 21255 21256 21257 if test "x$XSL_STYLESHEET" != "x"; then 21258 HAVE_STYLESHEETS_TRUE= 21259 HAVE_STYLESHEETS_FALSE='#' 21260 else 21261 HAVE_STYLESHEETS_TRUE='#' 21262 HAVE_STYLESHEETS_FALSE= 21263 fi 21264 21265 21266 21267 # Obtain compiler/linker options for dependencies 21268 21269 pkg_failed=no 21270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5 21271 printf %s "checking for XMU... " >&6; } 21272 21273 if test -n "$XMU_CFLAGS"; then 21274 pkg_cv_XMU_CFLAGS="$XMU_CFLAGS" 21275 elif test -n "$PKG_CONFIG"; then 21276 if test -n "$PKG_CONFIG" && \ 21277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.1 xext x11 xextproto\""; } >&5 21278 ($PKG_CONFIG --exists --print-errors "xt >= 1.1 xext x11 xextproto") 2>&5 21279 ac_status=$? 21280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21281 test $ac_status = 0; }; then 21282 pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt >= 1.1 xext x11 xextproto" 2>/dev/null` 21283 test "x$?" != "x0" && pkg_failed=yes 21284 else 21285 pkg_failed=yes 21286 fi 21287 else 21288 pkg_failed=untried 21289 fi 21290 if test -n "$XMU_LIBS"; then 21291 pkg_cv_XMU_LIBS="$XMU_LIBS" 21292 elif test -n "$PKG_CONFIG"; then 21293 if test -n "$PKG_CONFIG" && \ 21294 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt >= 1.1 xext x11 xextproto\""; } >&5 21295 ($PKG_CONFIG --exists --print-errors "xt >= 1.1 xext x11 xextproto") 2>&5 21296 ac_status=$? 21297 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21298 test $ac_status = 0; }; then 21299 pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt >= 1.1 xext x11 xextproto" 2>/dev/null` 21300 test "x$?" != "x0" && pkg_failed=yes 21301 else 21302 pkg_failed=yes 21303 fi 21304 else 21305 pkg_failed=untried 21306 fi 21307 21308 21309 21310 if test $pkg_failed = yes; then 21311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21312 printf "%s\n" "no" >&6; } 21313 21314 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21315 _pkg_short_errors_supported=yes 21316 else 21317 _pkg_short_errors_supported=no 21318 fi 21319 if test $_pkg_short_errors_supported = yes; then 21320 XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt >= 1.1 xext x11 xextproto" 2>&1` 21321 else 21322 XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt >= 1.1 xext x11 xextproto" 2>&1` 21323 fi 21324 # Put the nasty error message in config.log where it belongs 21325 echo "$XMU_PKG_ERRORS" >&5 21326 21327 as_fn_error $? "Package requirements (xt >= 1.1 xext x11 xextproto) were not met: 21328 21329 $XMU_PKG_ERRORS 21330 21331 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21332 installed software in a non-standard prefix. 21333 21334 Alternatively, you may set the environment variables XMU_CFLAGS 21335 and XMU_LIBS to avoid the need to call pkg-config. 21336 See the pkg-config man page for more details." "$LINENO" 5 21337 elif test $pkg_failed = untried; then 21338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21339 printf "%s\n" "no" >&6; } 21340 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21341 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21342 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21343 is in your PATH or set the PKG_CONFIG environment variable to the full 21344 path to pkg-config. 21345 21346 Alternatively, you may set the environment variables XMU_CFLAGS 21347 and XMU_LIBS to avoid the need to call pkg-config. 21348 See the pkg-config man page for more details. 21349 21350 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21351 See 'config.log' for more details" "$LINENO" 5; } 21352 else 21353 XMU_CFLAGS=$pkg_cv_XMU_CFLAGS 21354 XMU_LIBS=$pkg_cv_XMU_LIBS 21355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21356 printf "%s\n" "yes" >&6; } 21357 21358 fi 21359 21360 pkg_failed=no 21361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5 21362 printf %s "checking for XMUU... " >&6; } 21363 21364 if test -n "$XMUU_CFLAGS"; then 21365 pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS" 21366 elif test -n "$PKG_CONFIG"; then 21367 if test -n "$PKG_CONFIG" && \ 21368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 21369 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 21370 ac_status=$? 21371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21372 test $ac_status = 0; }; then 21373 pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 21374 test "x$?" != "x0" && pkg_failed=yes 21375 else 21376 pkg_failed=yes 21377 fi 21378 else 21379 pkg_failed=untried 21380 fi 21381 if test -n "$XMUU_LIBS"; then 21382 pkg_cv_XMUU_LIBS="$XMUU_LIBS" 21383 elif test -n "$PKG_CONFIG"; then 21384 if test -n "$PKG_CONFIG" && \ 21385 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 21386 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 21387 ac_status=$? 21388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21389 test $ac_status = 0; }; then 21390 pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 21391 test "x$?" != "x0" && pkg_failed=yes 21392 else 21393 pkg_failed=yes 21394 fi 21395 else 21396 pkg_failed=untried 21397 fi 21398 21399 21400 21401 if test $pkg_failed = yes; then 21402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21403 printf "%s\n" "no" >&6; } 21404 21405 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21406 _pkg_short_errors_supported=yes 21407 else 21408 _pkg_short_errors_supported=no 21409 fi 21410 if test $_pkg_short_errors_supported = yes; then 21411 XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 21412 else 21413 XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 21414 fi 21415 # Put the nasty error message in config.log where it belongs 21416 echo "$XMUU_PKG_ERRORS" >&5 21417 21418 as_fn_error $? "Package requirements (x11) were not met: 21419 21420 $XMUU_PKG_ERRORS 21421 21422 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21423 installed software in a non-standard prefix. 21424 21425 Alternatively, you may set the environment variables XMUU_CFLAGS 21426 and XMUU_LIBS to avoid the need to call pkg-config. 21427 See the pkg-config man page for more details." "$LINENO" 5 21428 elif test $pkg_failed = untried; then 21429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21430 printf "%s\n" "no" >&6; } 21431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21432 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21433 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21434 is in your PATH or set the PKG_CONFIG environment variable to the full 21435 path to pkg-config. 21436 21437 Alternatively, you may set the environment variables XMUU_CFLAGS 21438 and XMUU_LIBS to avoid the need to call pkg-config. 21439 See the pkg-config man page for more details. 21440 21441 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21442 See 'config.log' for more details" "$LINENO" 5; } 21443 else 21444 XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS 21445 XMUU_LIBS=$pkg_cv_XMUU_LIBS 21446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21447 printf "%s\n" "yes" >&6; } 21448 21449 fi 21450 21451 # Checks for library functions. 21452 ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 21453 if test "x$ac_cv_func_uname" = xyes 21454 then : 21455 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h 21456 21457 fi 21458 21459 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 21460 if test "x$ac_cv_func_reallocarray" = xyes 21461 then : 21462 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 21463 21464 else case e in #( 21465 e) case " $LIBOBJS " in 21466 *" reallocarray.$ac_objext "* ) ;; 21467 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 21468 ;; 21469 esac 21470 ;; 21471 esac 21472 fi 21473 21474 21475 # Allow checking code with lint, sparse, etc. 21476 21477 21478 21479 21480 21481 # Check whether --with-lint was given. 21482 if test ${with_lint+y} 21483 then : 21484 withval=$with_lint; use_lint=$withval 21485 else case e in #( 21486 e) use_lint=no ;; 21487 esac 21488 fi 21489 21490 21491 # Obtain platform specific info like program name and options 21492 # The lint program on FreeBSD and NetBSD is different from the one on Solaris 21493 case $host_os in 21494 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 21495 lint_name=splint 21496 lint_options="-badflag" 21497 ;; 21498 *freebsd* | *netbsd*) 21499 lint_name=lint 21500 lint_options="-u -b" 21501 ;; 21502 *solaris*) 21503 lint_name=lint 21504 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 21505 ;; 21506 esac 21507 21508 # Test for the presence of the program (either guessed by the code or spelled out by the user) 21509 if test "x$use_lint" = x"yes" ; then 21510 # Extract the first word of "$lint_name", so it can be a program name with args. 21511 set dummy $lint_name; ac_word=$2 21512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21513 printf %s "checking for $ac_word... " >&6; } 21514 if test ${ac_cv_path_LINT+y} 21515 then : 21516 printf %s "(cached) " >&6 21517 else case e in #( 21518 e) case $LINT in 21519 [\\/]* | ?:[\\/]*) 21520 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 21521 ;; 21522 *) 21523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21524 for as_dir in $PATH 21525 do 21526 IFS=$as_save_IFS 21527 case $as_dir in #((( 21528 '') as_dir=./ ;; 21529 */) ;; 21530 *) as_dir=$as_dir/ ;; 21531 esac 21532 for ac_exec_ext in '' $ac_executable_extensions; do 21533 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21534 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 21535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21536 break 2 21537 fi 21538 done 21539 done 21540 IFS=$as_save_IFS 21541 21542 ;; 21543 esac ;; 21544 esac 21545 fi 21546 LINT=$ac_cv_path_LINT 21547 if test -n "$LINT"; then 21548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 21549 printf "%s\n" "$LINT" >&6; } 21550 else 21551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21552 printf "%s\n" "no" >&6; } 21553 fi 21554 21555 21556 if test "x$LINT" = "x"; then 21557 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 21558 fi 21559 elif test "x$use_lint" = x"no" ; then 21560 if test "x$LINT" != "x"; then 21561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 21562 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 21563 fi 21564 else 21565 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 21566 fi 21567 21568 # User supplied flags override default flags 21569 if test "x$LINT_FLAGS" != "x"; then 21570 lint_options=$LINT_FLAGS 21571 fi 21572 21573 LINT_FLAGS=$lint_options 21574 21575 if test "x$LINT" != x; then 21576 LINT_TRUE= 21577 LINT_FALSE='#' 21578 else 21579 LINT_TRUE='#' 21580 LINT_FALSE= 21581 fi 21582 21583 21584 21585 21586 21587 # Check whether --enable-lint-library was given. 21588 if test ${enable_lint_library+y} 21589 then : 21590 enableval=$enable_lint_library; make_lint_lib=$enableval 21591 else case e in #( 21592 e) make_lint_lib=no ;; 21593 esac 21594 fi 21595 21596 21597 if test "x$make_lint_lib" = x"yes" ; then 21598 LINTLIB=llib-lXmu.ln 21599 if test "x$LINT" = "x"; then 21600 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 21601 fi 21602 elif test "x$make_lint_lib" != x"no" ; then 21603 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 21604 fi 21605 21606 21607 if test x$make_lint_lib != xno; then 21608 MAKE_LINT_LIB_TRUE= 21609 MAKE_LINT_LIB_FALSE='#' 21610 else 21611 MAKE_LINT_LIB_TRUE='#' 21612 MAKE_LINT_LIB_FALSE= 21613 fi 21614 21615 21616 21617 LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/` 21618 21619 21620 # --enable-unit-tests 21621 21622 21623 21624 21625 21626 21627 21628 # Check for different types of support on different platforms 21629 case $host_os in 21630 solaris*) 21631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 21632 printf %s "checking for umem_alloc in -lumem... " >&6; } 21633 if test ${ac_cv_lib_umem_umem_alloc+y} 21634 then : 21635 printf %s "(cached) " >&6 21636 else case e in #( 21637 e) ac_check_lib_save_LIBS=$LIBS 21638 LIBS="-lumem $LIBS" 21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21640 /* end confdefs.h. */ 21641 21642 /* Override any GCC internal prototype to avoid an error. 21643 Use char because int might match the return type of a GCC 21644 builtin and then its argument prototype would still apply. 21645 The 'extern "C"' is for builds by C++ compilers; 21646 although this is not generally supported in C code supporting it here 21647 has little cost and some practical benefit (sr 110532). */ 21648 #ifdef __cplusplus 21649 extern "C" 21650 #endif 21651 char umem_alloc (void); 21652 int 21653 main (void) 21654 { 21655 return umem_alloc (); 21656 ; 21657 return 0; 21658 } 21659 _ACEOF 21660 if ac_fn_c_try_link "$LINENO" 21661 then : 21662 ac_cv_lib_umem_umem_alloc=yes 21663 else case e in #( 21664 e) ac_cv_lib_umem_umem_alloc=no ;; 21665 esac 21666 fi 21667 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21668 conftest$ac_exeext conftest.$ac_ext 21669 LIBS=$ac_check_lib_save_LIBS ;; 21670 esac 21671 fi 21672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 21673 printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; } 21674 if test "x$ac_cv_lib_umem_umem_alloc" = xyes 21675 then : 21676 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 21677 fi 21678 21679 ;; 21680 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 21681 # both directly and inverted, so should not be 0 or 255. 21682 malloc_debug_env='MALLOC_PERTURB_=15' 21683 ;; 21684 darwin*) 21685 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 21686 ;; 21687 *bsd*) 21688 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 21689 ;; 21690 esac 21691 21692 # User supplied flags override default flags 21693 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 21694 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 21695 fi 21696 21697 XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 21698 21699 21700 21701 21702 21703 21704 21705 # Check whether --enable-unit-tests was given. 21706 if test ${enable_unit_tests+y} 21707 then : 21708 enableval=$enable_unit_tests; enable_unit_tests=$enableval 21709 else case e in #( 21710 e) enable_unit_tests=auto ;; 21711 esac 21712 fi 21713 21714 21715 if test "x$enable_unit_tests" != xno; then 21716 ENABLE_UNIT_TESTS_TRUE= 21717 ENABLE_UNIT_TESTS_FALSE='#' 21718 else 21719 ENABLE_UNIT_TESTS_TRUE='#' 21720 ENABLE_UNIT_TESTS_FALSE= 21721 fi 21722 21723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5 21724 printf %s "checking whether to build unit test cases... " >&6; } 21725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5 21726 printf "%s\n" "$enable_unit_tests" >&6; } 21727 21728 21729 21730 21731 21732 # Check whether --with-glib was given. 21733 if test ${with_glib+y} 21734 then : 21735 withval=$with_glib; with_glib=$withval 21736 else case e in #( 21737 e) with_glib=auto ;; 21738 esac 21739 fi 21740 21741 21742 21743 have_glib=no 21744 # Do not probe GLib if user explicitly disabled unit testing 21745 if test "x$enable_unit_tests" != x"no"; then 21746 # Do not probe GLib if user explicitly disabled it 21747 if test "x$with_glib" != x"no"; then 21748 21749 pkg_failed=no 21750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 21751 printf %s "checking for GLIB... " >&6; } 21752 21753 if test -n "$GLIB_CFLAGS"; then 21754 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" 21755 elif test -n "$PKG_CONFIG"; then 21756 if test -n "$PKG_CONFIG" && \ 21757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5 21758 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5 21759 ac_status=$? 21760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21761 test $ac_status = 0; }; then 21762 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.46" 2>/dev/null` 21763 test "x$?" != "x0" && pkg_failed=yes 21764 else 21765 pkg_failed=yes 21766 fi 21767 else 21768 pkg_failed=untried 21769 fi 21770 if test -n "$GLIB_LIBS"; then 21771 pkg_cv_GLIB_LIBS="$GLIB_LIBS" 21772 elif test -n "$PKG_CONFIG"; then 21773 if test -n "$PKG_CONFIG" && \ 21774 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.46\""; } >&5 21775 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.46") 2>&5 21776 ac_status=$? 21777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21778 test $ac_status = 0; }; then 21779 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.46" 2>/dev/null` 21780 test "x$?" != "x0" && pkg_failed=yes 21781 else 21782 pkg_failed=yes 21783 fi 21784 else 21785 pkg_failed=untried 21786 fi 21787 21788 21789 21790 if test $pkg_failed = yes; then 21791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21792 printf "%s\n" "no" >&6; } 21793 21794 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21795 _pkg_short_errors_supported=yes 21796 else 21797 _pkg_short_errors_supported=no 21798 fi 21799 if test $_pkg_short_errors_supported = yes; then 21800 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1` 21801 else 21802 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.46" 2>&1` 21803 fi 21804 # Put the nasty error message in config.log where it belongs 21805 echo "$GLIB_PKG_ERRORS" >&5 21806 21807 have_glib=no 21808 elif test $pkg_failed = untried; then 21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21810 printf "%s\n" "no" >&6; } 21811 have_glib=no 21812 else 21813 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS 21814 GLIB_LIBS=$pkg_cv_GLIB_LIBS 21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21816 printf "%s\n" "yes" >&6; } 21817 have_glib=yes 21818 fi 21819 fi 21820 fi 21821 21822 # Not having GLib when unit testing has been explicitly requested is an error 21823 if test "x$enable_unit_tests" = x"yes"; then 21824 if test "x$have_glib" = x"no"; then 21825 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 21826 fi 21827 fi 21828 21829 # Having unit testing disabled when GLib has been explicitly requested is an error 21830 if test "x$enable_unit_tests" = x"no"; then 21831 if test "x$with_glib" = x"yes"; then 21832 as_fn_error $? "--enable-unit-tests=yes specified but glib-2.0 not found" "$LINENO" 5 21833 fi 21834 fi 21835 21836 # Not having GLib when it has been explicitly requested is an error 21837 if test "x$with_glib" = x"yes"; then 21838 if test "x$have_glib" = x"no"; then 21839 as_fn_error $? "--with-glib=yes specified but glib-2.0 not found" "$LINENO" 5 21840 fi 21841 fi 21842 21843 if test "$have_glib" = yes; then 21844 HAVE_GLIB_TRUE= 21845 HAVE_GLIB_FALSE='#' 21846 else 21847 HAVE_GLIB_TRUE='#' 21848 HAVE_GLIB_FALSE= 21849 fi 21850 21851 21852 21853 21854 21855 21856 21857 # Check for different types of support on different platforms 21858 case $host_os in 21859 solaris*) 21860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5 21861 printf %s "checking for umem_alloc in -lumem... " >&6; } 21862 if test ${ac_cv_lib_umem_umem_alloc+y} 21863 then : 21864 printf %s "(cached) " >&6 21865 else case e in #( 21866 e) ac_check_lib_save_LIBS=$LIBS 21867 LIBS="-lumem $LIBS" 21868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21869 /* end confdefs.h. */ 21870 21871 /* Override any GCC internal prototype to avoid an error. 21872 Use char because int might match the return type of a GCC 21873 builtin and then its argument prototype would still apply. 21874 The 'extern "C"' is for builds by C++ compilers; 21875 although this is not generally supported in C code supporting it here 21876 has little cost and some practical benefit (sr 110532). */ 21877 #ifdef __cplusplus 21878 extern "C" 21879 #endif 21880 char umem_alloc (void); 21881 int 21882 main (void) 21883 { 21884 return umem_alloc (); 21885 ; 21886 return 0; 21887 } 21888 _ACEOF 21889 if ac_fn_c_try_link "$LINENO" 21890 then : 21891 ac_cv_lib_umem_umem_alloc=yes 21892 else case e in #( 21893 e) ac_cv_lib_umem_umem_alloc=no ;; 21894 esac 21895 fi 21896 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21897 conftest$ac_exeext conftest.$ac_ext 21898 LIBS=$ac_check_lib_save_LIBS ;; 21899 esac 21900 fi 21901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5 21902 printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; } 21903 if test "x$ac_cv_lib_umem_umem_alloc" = xyes 21904 then : 21905 malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default' 21906 fi 21907 21908 ;; 21909 *-gnu*) # GNU libc - Value is used as a single byte bit pattern, 21910 # both directly and inverted, so should not be 0 or 255. 21911 malloc_debug_env='MALLOC_PERTURB_=15' 21912 ;; 21913 darwin*) 21914 malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib' 21915 ;; 21916 *bsd*) 21917 malloc_debug_env='MallocPreScribble=1 MallocScribble=1' 21918 ;; 21919 esac 21920 21921 # User supplied flags override default flags 21922 if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then 21923 malloc_debug_env="$XORG_MALLOC_DEBUG_ENV" 21924 fi 21925 21926 XORG_MALLOC_DEBUG_ENV=$malloc_debug_env 21927 21928 21929 if test "x$enable_unit_tests" != "xno" ; then 21930 ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size" 21931 if test "x$ac_cv_func_malloc_usable_size" = xyes 21932 then : 21933 printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h 21934 21935 fi 21936 21937 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" 21938 if test "x$ac_cv_header_malloc_h" = xyes 21939 then : 21940 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h 21941 21942 fi 21943 21944 fi 21945 21946 ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile test/Makefile xmu.pc xmuu.pc" 21947 21948 cat >confcache <<\_ACEOF 21949 # This file is a shell script that caches the results of configure 21950 # tests run on this system so they can be shared between configure 21951 # scripts and configure runs, see configure's option --config-cache. 21952 # It is not useful on other systems. If it contains results you don't 21953 # want to keep, you may remove or edit it. 21954 # 21955 # config.status only pays attention to the cache file if you give it 21956 # the --recheck option to rerun configure. 21957 # 21958 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 21959 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 21960 # following values. 21961 21962 _ACEOF 21963 21964 # The following way of writing the cache mishandles newlines in values, 21965 # but we know of no workaround that is simple, portable, and efficient. 21966 # So, we kill variables containing newlines. 21967 # Ultrix sh set writes to stderr and can't be redirected directly, 21968 # and sets the high bit in the cache file unless we assign to the vars. 21969 ( 21970 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21971 eval ac_val=\$$ac_var 21972 case $ac_val in #( 21973 *${as_nl}*) 21974 case $ac_var in #( 21975 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21976 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21977 esac 21978 case $ac_var in #( 21979 _ | IFS | as_nl) ;; #( 21980 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21981 *) { eval $ac_var=; unset $ac_var;} ;; 21982 esac ;; 21983 esac 21984 done 21985 21986 (set) 2>&1 | 21987 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21988 *${as_nl}ac_space=\ *) 21989 # 'set' does not quote correctly, so add quotes: double-quote 21990 # substitution turns \\\\ into \\, and sed turns \\ into \. 21991 sed -n \ 21992 "s/'/'\\\\''/g; 21993 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21994 ;; #( 21995 *) 21996 # 'set' quotes correctly as required by POSIX, so do not add quotes. 21997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21998 ;; 21999 esac | 22000 sort 22001 ) | 22002 sed ' 22003 /^ac_cv_env_/b end 22004 t clear 22005 :clear 22006 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 22007 t end 22008 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22009 :end' >>confcache 22010 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22011 if test -w "$cache_file"; then 22012 if test "x$cache_file" != "x/dev/null"; then 22013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22014 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 22015 if test ! -f "$cache_file" || test -h "$cache_file"; then 22016 cat confcache >"$cache_file" 22017 else 22018 case $cache_file in #( 22019 */* | ?:*) 22020 mv -f confcache "$cache_file"$$ && 22021 mv -f "$cache_file"$$ "$cache_file" ;; #( 22022 *) 22023 mv -f confcache "$cache_file" ;; 22024 esac 22025 fi 22026 fi 22027 else 22028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22029 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 22030 fi 22031 fi 22032 rm -f confcache 22033 22034 test "x$prefix" = xNONE && prefix=$ac_default_prefix 22035 # Let make expand exec_prefix. 22036 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22037 22038 DEFS=-DHAVE_CONFIG_H 22039 22040 ac_libobjs= 22041 ac_ltlibobjs= 22042 U= 22043 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22044 # 1. Remove the extension, and $U if already installed. 22045 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22046 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 22047 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22048 # will be set to the directory where LIBOBJS objects are built. 22049 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22050 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22051 done 22052 LIBOBJS=$ac_libobjs 22053 22054 LTLIBOBJS=$ac_ltlibobjs 22055 22056 22057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22058 printf %s "checking that generated files are newer than configure... " >&6; } 22059 if test -n "$am_sleep_pid"; then 22060 # Hide warnings about reused PIDs. 22061 wait $am_sleep_pid 2>/dev/null 22062 fi 22063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 22064 printf "%s\n" "done" >&6; } 22065 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22066 as_fn_error $? "conditional \"AMDEP\" was never defined. 22067 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22068 fi 22069 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22070 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22071 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22072 fi 22073 case $enable_silent_rules in # ((( 22074 yes) AM_DEFAULT_VERBOSITY=0;; 22075 no) AM_DEFAULT_VERBOSITY=1;; 22076 esac 22077 if test $am_cv_make_support_nested_variables = yes; then 22078 AM_V='$(V)' 22079 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 22080 else 22081 AM_V=$AM_DEFAULT_VERBOSITY 22082 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 22083 fi 22084 22085 if test -n "$EXEEXT"; then 22086 am__EXEEXT_TRUE= 22087 am__EXEEXT_FALSE='#' 22088 else 22089 am__EXEEXT_TRUE='#' 22090 am__EXEEXT_FALSE= 22091 fi 22092 22093 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 22094 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 22095 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22096 fi 22097 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 22098 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 22099 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22100 fi 22101 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 22102 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 22103 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22104 fi 22105 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 22106 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 22107 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22108 fi 22109 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 22110 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 22111 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22112 fi 22113 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 22114 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 22115 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22116 fi 22117 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 22118 as_fn_error $? "conditional \"LINT\" was never defined. 22119 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22120 fi 22121 if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 22122 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 22123 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22124 fi 22125 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then 22126 as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined. 22127 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22128 fi 22129 if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then 22130 as_fn_error $? "conditional \"HAVE_GLIB\" was never defined. 22131 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22132 fi 22133 22134 : "${CONFIG_STATUS=./config.status}" 22135 ac_write_fail=0 22136 ac_clean_files_save=$ac_clean_files 22137 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22139 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 22140 as_write_fail=0 22141 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22142 #! $SHELL 22143 # Generated by $as_me. 22144 # Run this file to recreate the current configuration. 22145 # Compiler output produced by configure, useful for debugging 22146 # configure, is in config.log if it exists. 22147 22148 debug=false 22149 ac_cs_recheck=false 22150 ac_cs_silent=false 22151 22152 SHELL=\${CONFIG_SHELL-$SHELL} 22153 export SHELL 22154 _ASEOF 22155 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22156 ## -------------------- ## 22157 ## M4sh Initialization. ## 22158 ## -------------------- ## 22159 22160 # Be more Bourne compatible 22161 DUALCASE=1; export DUALCASE # for MKS sh 22162 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22163 then : 22164 emulate sh 22165 NULLCMD=: 22166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22167 # is contrary to our usage. Disable this feature. 22168 alias -g '${1+"$@"}'='"$@"' 22169 setopt NO_GLOB_SUBST 22170 else case e in #( 22171 e) case `(set -o) 2>/dev/null` in #( 22172 *posix*) : 22173 set -o posix ;; #( 22174 *) : 22175 ;; 22176 esac ;; 22177 esac 22178 fi 22179 22180 22181 22182 # Reset variables that may have inherited troublesome values from 22183 # the environment. 22184 22185 # IFS needs to be set, to space, tab, and newline, in precisely that order. 22186 # (If _AS_PATH_WALK were called with IFS unset, it would have the 22187 # side effect of setting IFS to empty, thus disabling word splitting.) 22188 # Quoting is to prevent editors from complaining about space-tab. 22189 as_nl=' 22190 ' 22191 export as_nl 22192 IFS=" "" $as_nl" 22193 22194 PS1='$ ' 22195 PS2='> ' 22196 PS4='+ ' 22197 22198 # Ensure predictable behavior from utilities with locale-dependent output. 22199 LC_ALL=C 22200 export LC_ALL 22201 LANGUAGE=C 22202 export LANGUAGE 22203 22204 # We cannot yet rely on "unset" to work, but we need these variables 22205 # to be unset--not just set to an empty or harmless value--now, to 22206 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 22207 # also avoids known problems related to "unset" and subshell syntax 22208 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 22209 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 22210 do eval test \${$as_var+y} \ 22211 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22212 done 22213 22214 # Ensure that fds 0, 1, and 2 are open. 22215 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 22216 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 22217 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 22218 22219 # The user is always right. 22220 if ${PATH_SEPARATOR+false} :; then 22221 PATH_SEPARATOR=: 22222 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22223 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22224 PATH_SEPARATOR=';' 22225 } 22226 fi 22227 22228 22229 # Find who we are. Look in the path if we contain no directory separator. 22230 as_myself= 22231 case $0 in #(( 22232 *[\\/]* ) as_myself=$0 ;; 22233 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22234 for as_dir in $PATH 22235 do 22236 IFS=$as_save_IFS 22237 case $as_dir in #((( 22238 '') as_dir=./ ;; 22239 */) ;; 22240 *) as_dir=$as_dir/ ;; 22241 esac 22242 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 22243 done 22244 IFS=$as_save_IFS 22245 22246 ;; 22247 esac 22248 # We did not find ourselves, most probably we were run as 'sh COMMAND' 22249 # in which case we are not to be found in the path. 22250 if test "x$as_myself" = x; then 22251 as_myself=$0 22252 fi 22253 if test ! -f "$as_myself"; then 22254 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22255 exit 1 22256 fi 22257 22258 22259 22260 # as_fn_error STATUS ERROR [LINENO LOG_FD] 22261 # ---------------------------------------- 22262 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22263 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22264 # script with STATUS, using 1 if that was 0. 22265 as_fn_error () 22266 { 22267 as_status=$1; test $as_status -eq 0 && as_status=1 22268 if test "$4"; then 22269 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22271 fi 22272 printf "%s\n" "$as_me: error: $2" >&2 22273 as_fn_exit $as_status 22274 } # as_fn_error 22275 22276 22277 # as_fn_set_status STATUS 22278 # ----------------------- 22279 # Set $? to STATUS, without forking. 22280 as_fn_set_status () 22281 { 22282 return $1 22283 } # as_fn_set_status 22284 22285 # as_fn_exit STATUS 22286 # ----------------- 22287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22288 as_fn_exit () 22289 { 22290 set +e 22291 as_fn_set_status $1 22292 exit $1 22293 } # as_fn_exit 22294 22295 # as_fn_unset VAR 22296 # --------------- 22297 # Portably unset VAR. 22298 as_fn_unset () 22299 { 22300 { eval $1=; unset $1;} 22301 } 22302 as_unset=as_fn_unset 22303 22304 # as_fn_append VAR VALUE 22305 # ---------------------- 22306 # Append the text in VALUE to the end of the definition contained in VAR. Take 22307 # advantage of any shell optimizations that allow amortized linear growth over 22308 # repeated appends, instead of the typical quadratic growth present in naive 22309 # implementations. 22310 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22311 then : 22312 eval 'as_fn_append () 22313 { 22314 eval $1+=\$2 22315 }' 22316 else case e in #( 22317 e) as_fn_append () 22318 { 22319 eval $1=\$$1\$2 22320 } ;; 22321 esac 22322 fi # as_fn_append 22323 22324 # as_fn_arith ARG... 22325 # ------------------ 22326 # Perform arithmetic evaluation on the ARGs, and store the result in the 22327 # global $as_val. Take advantage of shells that can avoid forks. The arguments 22328 # must be portable across $(()) and expr. 22329 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22330 then : 22331 eval 'as_fn_arith () 22332 { 22333 as_val=$(( $* )) 22334 }' 22335 else case e in #( 22336 e) as_fn_arith () 22337 { 22338 as_val=`expr "$@" || test $? -eq 1` 22339 } ;; 22340 esac 22341 fi # as_fn_arith 22342 22343 22344 if expr a : '\(a\)' >/dev/null 2>&1 && 22345 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22346 as_expr=expr 22347 else 22348 as_expr=false 22349 fi 22350 22351 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22352 as_basename=basename 22353 else 22354 as_basename=false 22355 fi 22356 22357 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22358 as_dirname=dirname 22359 else 22360 as_dirname=false 22361 fi 22362 22363 as_me=`$as_basename -- "$0" || 22364 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22365 X"$0" : 'X\(//\)$' \| \ 22366 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22367 printf "%s\n" X/"$0" | 22368 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22369 s//\1/ 22370 q 22371 } 22372 /^X\/\(\/\/\)$/{ 22373 s//\1/ 22374 q 22375 } 22376 /^X\/\(\/\).*/{ 22377 s//\1/ 22378 q 22379 } 22380 s/.*/./; q'` 22381 22382 # Avoid depending upon Character Ranges. 22383 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22386 as_cr_digits='0123456789' 22387 as_cr_alnum=$as_cr_Letters$as_cr_digits 22388 22389 22390 # Determine whether it's possible to make 'echo' print without a newline. 22391 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22392 # for compatibility with existing Makefiles. 22393 ECHO_C= ECHO_N= ECHO_T= 22394 case `echo -n x` in #((((( 22395 -n*) 22396 case `echo 'xy\c'` in 22397 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22398 xy) ECHO_C='\c';; 22399 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22400 ECHO_T=' ';; 22401 esac;; 22402 *) 22403 ECHO_N='-n';; 22404 esac 22405 22406 # For backward compatibility with old third-party macros, we provide 22407 # the shell variables $as_echo and $as_echo_n. New code should use 22408 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22409 as_echo='printf %s\n' 22410 as_echo_n='printf %s' 22411 22412 rm -f conf$$ conf$$.exe conf$$.file 22413 if test -d conf$$.dir; then 22414 rm -f conf$$.dir/conf$$.file 22415 else 22416 rm -f conf$$.dir 22417 mkdir conf$$.dir 2>/dev/null 22418 fi 22419 if (echo >conf$$.file) 2>/dev/null; then 22420 if ln -s conf$$.file conf$$ 2>/dev/null; then 22421 as_ln_s='ln -s' 22422 # ... but there are two gotchas: 22423 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22424 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22425 # In both cases, we have to default to 'cp -pR'. 22426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22427 as_ln_s='cp -pR' 22428 elif ln conf$$.file conf$$ 2>/dev/null; then 22429 as_ln_s=ln 22430 else 22431 as_ln_s='cp -pR' 22432 fi 22433 else 22434 as_ln_s='cp -pR' 22435 fi 22436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22437 rmdir conf$$.dir 2>/dev/null 22438 22439 22440 # as_fn_mkdir_p 22441 # ------------- 22442 # Create "$as_dir" as a directory, including parents if necessary. 22443 as_fn_mkdir_p () 22444 { 22445 22446 case $as_dir in #( 22447 -*) as_dir=./$as_dir;; 22448 esac 22449 test -d "$as_dir" || eval $as_mkdir_p || { 22450 as_dirs= 22451 while :; do 22452 case $as_dir in #( 22453 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22454 *) as_qdir=$as_dir;; 22455 esac 22456 as_dirs="'$as_qdir' $as_dirs" 22457 as_dir=`$as_dirname -- "$as_dir" || 22458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22459 X"$as_dir" : 'X\(//\)[^/]' \| \ 22460 X"$as_dir" : 'X\(//\)$' \| \ 22461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22462 printf "%s\n" X"$as_dir" | 22463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22464 s//\1/ 22465 q 22466 } 22467 /^X\(\/\/\)[^/].*/{ 22468 s//\1/ 22469 q 22470 } 22471 /^X\(\/\/\)$/{ 22472 s//\1/ 22473 q 22474 } 22475 /^X\(\/\).*/{ 22476 s//\1/ 22477 q 22478 } 22479 s/.*/./; q'` 22480 test -d "$as_dir" && break 22481 done 22482 test -z "$as_dirs" || eval "mkdir $as_dirs" 22483 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22484 22485 22486 } # as_fn_mkdir_p 22487 if mkdir -p . 2>/dev/null; then 22488 as_mkdir_p='mkdir -p "$as_dir"' 22489 else 22490 test -d ./-p && rmdir ./-p 22491 as_mkdir_p=false 22492 fi 22493 22494 22495 # as_fn_executable_p FILE 22496 # ----------------------- 22497 # Test if FILE is an executable regular file. 22498 as_fn_executable_p () 22499 { 22500 test -f "$1" && test -x "$1" 22501 } # as_fn_executable_p 22502 as_test_x='test -x' 22503 as_executable_p=as_fn_executable_p 22504 22505 # Sed expression to map a string onto a valid CPP name. 22506 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22507 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22508 22509 # Sed expression to map a string onto a valid variable name. 22510 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22511 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22512 22513 22514 exec 6>&1 22515 ## ----------------------------------- ## 22516 ## Main body of $CONFIG_STATUS script. ## 22517 ## ----------------------------------- ## 22518 _ASEOF 22519 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22520 22521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22522 # Save the log message, to keep $0 and so on meaningful, and to 22523 # report actual input values of CONFIG_FILES etc. instead of their 22524 # values after options handling. 22525 ac_log=" 22526 This file was extended by libXmu $as_me 1.3.1, which was 22527 generated by GNU Autoconf 2.72. Invocation command line was 22528 22529 CONFIG_FILES = $CONFIG_FILES 22530 CONFIG_HEADERS = $CONFIG_HEADERS 22531 CONFIG_LINKS = $CONFIG_LINKS 22532 CONFIG_COMMANDS = $CONFIG_COMMANDS 22533 $ $0 $@ 22534 22535 on `(hostname || uname -n) 2>/dev/null | sed 1q` 22536 " 22537 22538 _ACEOF 22539 22540 case $ac_config_files in *" 22541 "*) set x $ac_config_files; shift; ac_config_files=$*;; 22542 esac 22543 22544 case $ac_config_headers in *" 22545 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22546 esac 22547 22548 22549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22550 # Files that config.status was made for. 22551 config_files="$ac_config_files" 22552 config_headers="$ac_config_headers" 22553 config_commands="$ac_config_commands" 22554 22555 _ACEOF 22556 22557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22558 ac_cs_usage="\ 22559 '$as_me' instantiates files and other configuration actions 22560 from templates according to the current configuration. Unless the files 22561 and actions are specified as TAGs, all are instantiated by default. 22562 22563 Usage: $0 [OPTION]... [TAG]... 22564 22565 -h, --help print this help, then exit 22566 -V, --version print version number and configuration settings, then exit 22567 --config print configuration, then exit 22568 -q, --quiet, --silent 22569 do not print progress messages 22570 -d, --debug don't remove temporary files 22571 --recheck update $as_me by reconfiguring in the same conditions 22572 --file=FILE[:TEMPLATE] 22573 instantiate the configuration file FILE 22574 --header=FILE[:TEMPLATE] 22575 instantiate the configuration header FILE 22576 22577 Configuration files: 22578 $config_files 22579 22580 Configuration headers: 22581 $config_headers 22582 22583 Configuration commands: 22584 $config_commands 22585 22586 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxmu/-/issues/>." 22587 22588 _ACEOF 22589 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22590 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22592 ac_cs_config='$ac_cs_config_escaped' 22593 ac_cs_version="\\ 22594 libXmu config.status 1.3.1 22595 configured by $0, generated by GNU Autoconf 2.72, 22596 with options \\"\$ac_cs_config\\" 22597 22598 Copyright (C) 2023 Free Software Foundation, Inc. 22599 This config.status script is free software; the Free Software Foundation 22600 gives unlimited permission to copy, distribute and modify it." 22601 22602 ac_pwd='$ac_pwd' 22603 srcdir='$srcdir' 22604 INSTALL='$INSTALL' 22605 MKDIR_P='$MKDIR_P' 22606 AWK='$AWK' 22607 test -n "\$AWK" || AWK=awk 22608 _ACEOF 22609 22610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22611 # The default lists apply if the user does not specify any file. 22612 ac_need_defaults=: 22613 while test $# != 0 22614 do 22615 case $1 in 22616 --*=?*) 22617 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22618 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22619 ac_shift=: 22620 ;; 22621 --*=) 22622 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22623 ac_optarg= 22624 ac_shift=: 22625 ;; 22626 *) 22627 ac_option=$1 22628 ac_optarg=$2 22629 ac_shift=shift 22630 ;; 22631 esac 22632 22633 case $ac_option in 22634 # Handling of the options. 22635 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22636 ac_cs_recheck=: ;; 22637 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22638 printf "%s\n" "$ac_cs_version"; exit ;; 22639 --config | --confi | --conf | --con | --co | --c ) 22640 printf "%s\n" "$ac_cs_config"; exit ;; 22641 --debug | --debu | --deb | --de | --d | -d ) 22642 debug=: ;; 22643 --file | --fil | --fi | --f ) 22644 $ac_shift 22645 case $ac_optarg in 22646 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22647 '') as_fn_error $? "missing file argument" ;; 22648 esac 22649 as_fn_append CONFIG_FILES " '$ac_optarg'" 22650 ac_need_defaults=false;; 22651 --header | --heade | --head | --hea ) 22652 $ac_shift 22653 case $ac_optarg in 22654 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22655 esac 22656 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22657 ac_need_defaults=false;; 22658 --he | --h) 22659 # Conflict between --help and --header 22660 as_fn_error $? "ambiguous option: '$1' 22661 Try '$0 --help' for more information.";; 22662 --help | --hel | -h ) 22663 printf "%s\n" "$ac_cs_usage"; exit ;; 22664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22665 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22666 ac_cs_silent=: ;; 22667 22668 # This is an error. 22669 -*) as_fn_error $? "unrecognized option: '$1' 22670 Try '$0 --help' for more information." ;; 22671 22672 *) as_fn_append ac_config_targets " $1" 22673 ac_need_defaults=false ;; 22674 22675 esac 22676 shift 22677 done 22678 22679 ac_configure_extra_args= 22680 22681 if $ac_cs_silent; then 22682 exec 6>/dev/null 22683 ac_configure_extra_args="$ac_configure_extra_args --silent" 22684 fi 22685 22686 _ACEOF 22687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22688 if \$ac_cs_recheck; then 22689 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22690 shift 22691 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22692 CONFIG_SHELL='$SHELL' 22693 export CONFIG_SHELL 22694 exec "\$@" 22695 fi 22696 22697 _ACEOF 22698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22699 exec 5>>config.log 22700 { 22701 echo 22702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22703 ## Running $as_me. ## 22704 _ASBOX 22705 printf "%s\n" "$ac_log" 22706 } >&5 22707 22708 _ACEOF 22709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22710 # 22711 # INIT-COMMANDS 22712 # 22713 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22714 22715 22716 # The HP-UX ksh and POSIX shell print the target directory to stdout 22717 # if CDPATH is set. 22718 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22719 22720 sed_quote_subst='$sed_quote_subst' 22721 double_quote_subst='$double_quote_subst' 22722 delay_variable_subst='$delay_variable_subst' 22723 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 22724 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 22725 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 22726 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 22727 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 22728 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 22729 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 22730 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 22731 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 22732 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 22733 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 22734 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 22735 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 22736 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 22737 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 22738 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 22739 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 22740 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 22741 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 22742 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 22743 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 22744 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 22745 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 22746 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 22747 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 22748 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 22749 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22750 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22751 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22752 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22753 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22754 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22755 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22756 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22757 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 22758 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 22759 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22760 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22761 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22762 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22763 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 22764 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22765 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22766 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 22767 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22768 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22769 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22770 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22771 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22772 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22773 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22774 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22775 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22776 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22777 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22778 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22779 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22780 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22781 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22782 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22783 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"`' 22784 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22785 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22786 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22787 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22788 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22789 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22790 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22791 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22792 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22793 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22794 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22795 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22796 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22797 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22798 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22799 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22800 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22801 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22802 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22803 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22804 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22805 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22806 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22807 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22808 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22809 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22810 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22811 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22812 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22813 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22814 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22815 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22816 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22817 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22818 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22819 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22820 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22821 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22822 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22823 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22824 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22825 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22826 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22827 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22828 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22829 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22830 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22831 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22832 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22833 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22834 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22835 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22836 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22837 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22838 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22839 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22840 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22841 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22842 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22843 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22844 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22845 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22846 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22847 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22848 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22849 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22850 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22851 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22852 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22853 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22854 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22855 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22856 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22857 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22858 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22859 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22860 22861 LTCC='$LTCC' 22862 LTCFLAGS='$LTCFLAGS' 22863 compiler='$compiler_DEFAULT' 22864 22865 # A function that is used when there is no print builtin or printf. 22866 func_fallback_echo () 22867 { 22868 eval 'cat <<_LTECHO_EOF 22869 \$1 22870 _LTECHO_EOF' 22871 } 22872 22873 # Quote evaled strings. 22874 for var in SHELL \ 22875 ECHO \ 22876 PATH_SEPARATOR \ 22877 SED \ 22878 GREP \ 22879 EGREP \ 22880 FGREP \ 22881 LD \ 22882 NM \ 22883 LN_S \ 22884 lt_SP2NL \ 22885 lt_NL2SP \ 22886 reload_flag \ 22887 FILECMD \ 22888 OBJDUMP \ 22889 deplibs_check_method \ 22890 file_magic_cmd \ 22891 file_magic_glob \ 22892 want_nocaseglob \ 22893 DLLTOOL \ 22894 sharedlib_from_linklib_cmd \ 22895 AR \ 22896 archiver_list_spec \ 22897 STRIP \ 22898 RANLIB \ 22899 CC \ 22900 CFLAGS \ 22901 compiler \ 22902 lt_cv_sys_global_symbol_pipe \ 22903 lt_cv_sys_global_symbol_to_cdecl \ 22904 lt_cv_sys_global_symbol_to_import \ 22905 lt_cv_sys_global_symbol_to_c_name_address \ 22906 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22907 lt_cv_nm_interface \ 22908 nm_file_list_spec \ 22909 lt_cv_truncate_bin \ 22910 lt_prog_compiler_no_builtin_flag \ 22911 lt_prog_compiler_pic \ 22912 lt_prog_compiler_wl \ 22913 lt_prog_compiler_static \ 22914 lt_cv_prog_compiler_c_o \ 22915 need_locks \ 22916 MANIFEST_TOOL \ 22917 DSYMUTIL \ 22918 NMEDIT \ 22919 LIPO \ 22920 OTOOL \ 22921 OTOOL64 \ 22922 shrext_cmds \ 22923 export_dynamic_flag_spec \ 22924 whole_archive_flag_spec \ 22925 compiler_needs_object \ 22926 with_gnu_ld \ 22927 allow_undefined_flag \ 22928 no_undefined_flag \ 22929 hardcode_libdir_flag_spec \ 22930 hardcode_libdir_separator \ 22931 exclude_expsyms \ 22932 include_expsyms \ 22933 file_list_spec \ 22934 variables_saved_for_relink \ 22935 libname_spec \ 22936 library_names_spec \ 22937 soname_spec \ 22938 install_override_mode \ 22939 finish_eval \ 22940 old_striplib \ 22941 striplib; do 22942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22943 *[\\\\\\\`\\"\\\$]*) 22944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22945 ;; 22946 *) 22947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22948 ;; 22949 esac 22950 done 22951 22952 # Double-quote double-evaled strings. 22953 for var in reload_cmds \ 22954 old_postinstall_cmds \ 22955 old_postuninstall_cmds \ 22956 old_archive_cmds \ 22957 extract_expsyms_cmds \ 22958 old_archive_from_new_cmds \ 22959 old_archive_from_expsyms_cmds \ 22960 archive_cmds \ 22961 archive_expsym_cmds \ 22962 module_cmds \ 22963 module_expsym_cmds \ 22964 export_symbols_cmds \ 22965 prelink_cmds \ 22966 postlink_cmds \ 22967 postinstall_cmds \ 22968 postuninstall_cmds \ 22969 finish_cmds \ 22970 sys_lib_search_path_spec \ 22971 configure_time_dlsearch_path \ 22972 configure_time_lt_sys_library_path; do 22973 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22974 *[\\\\\\\`\\"\\\$]*) 22975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22976 ;; 22977 *) 22978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22979 ;; 22980 esac 22981 done 22982 22983 ac_aux_dir='$ac_aux_dir' 22984 22985 # See if we are running on zsh, and set the options that allow our 22986 # commands through without removal of \ escapes INIT. 22987 if test -n "\${ZSH_VERSION+set}"; then 22988 setopt NO_GLOB_SUBST 22989 fi 22990 22991 22992 PACKAGE='$PACKAGE' 22993 VERSION='$VERSION' 22994 RM='$RM' 22995 ofile='$ofile' 22996 22997 22998 22999 23000 _ACEOF 23001 23002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23003 23004 # Handling of arguments. 23005 for ac_config_target in $ac_config_targets 23006 do 23007 case $ac_config_target in 23008 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23009 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23010 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23011 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23012 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23013 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 23014 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23015 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 23016 "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;; 23017 "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;; 23018 23019 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 23020 esac 23021 done 23022 23023 23024 # If the user did not use the arguments to specify the items to instantiate, 23025 # then the envvar interface is used. Set only those that are not. 23026 # We use the long form for the default assignment because of an extremely 23027 # bizarre bug on SunOS 4.1.3. 23028 if $ac_need_defaults; then 23029 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 23030 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 23031 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 23032 fi 23033 23034 # Have a temporary directory for convenience. Make it in the build tree 23035 # simply because there is no reason against having it here, and in addition, 23036 # creating and moving files from /tmp can sometimes cause problems. 23037 # Hook for its removal unless debugging. 23038 # Note that there is a small window in which the directory will not be cleaned: 23039 # after its creation but before its name has been assigned to '$tmp'. 23040 $debug || 23041 { 23042 tmp= ac_tmp= 23043 trap 'exit_status=$? 23044 : "${ac_tmp:=$tmp}" 23045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23046 ' 0 23047 trap 'as_fn_exit 1' 1 2 13 15 23048 } 23049 # Create a (secure) tmp directory for tmp files. 23050 23051 { 23052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23053 test -d "$tmp" 23054 } || 23055 { 23056 tmp=./conf$$-$RANDOM 23057 (umask 077 && mkdir "$tmp") 23058 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23059 ac_tmp=$tmp 23060 23061 # Set up the scripts for CONFIG_FILES section. 23062 # No need to generate them if there are no CONFIG_FILES. 23063 # This happens for instance with './config.status config.h'. 23064 if test -n "$CONFIG_FILES"; then 23065 23066 23067 ac_cr=`echo X | tr X '\015'` 23068 # On cygwin, bash can eat \r inside `` if the user requested igncr. 23069 # But we know of no other shell where ac_cr would be empty at this 23070 # point, so we can use a bashism as a fallback. 23071 if test "x$ac_cr" = x; then 23072 eval ac_cr=\$\'\\r\' 23073 fi 23074 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23075 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23076 ac_cs_awk_cr='\\r' 23077 else 23078 ac_cs_awk_cr=$ac_cr 23079 fi 23080 23081 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23082 _ACEOF 23083 23084 23085 { 23086 echo "cat >conf$$subs.awk <<_ACEOF" && 23087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23088 echo "_ACEOF" 23089 } >conf$$subs.sh || 23090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23091 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23092 ac_delim='%!_!# ' 23093 for ac_last_try in false false false false false :; do 23094 . ./conf$$subs.sh || 23095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23096 23097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23098 if test $ac_delim_n = $ac_delim_num; then 23099 break 23100 elif $ac_last_try; then 23101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23102 else 23103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23104 fi 23105 done 23106 rm -f conf$$subs.sh 23107 23108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23109 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23110 _ACEOF 23111 sed -n ' 23112 h 23113 s/^/S["/; s/!.*/"]=/ 23114 p 23115 g 23116 s/^[^!]*!// 23117 :repl 23118 t repl 23119 s/'"$ac_delim"'$// 23120 t delim 23121 :nl 23122 h 23123 s/\(.\{148\}\)..*/\1/ 23124 t more1 23125 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23126 p 23127 n 23128 b repl 23129 :more1 23130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23131 p 23132 g 23133 s/.\{148\}// 23134 t nl 23135 :delim 23136 h 23137 s/\(.\{148\}\)..*/\1/ 23138 t more2 23139 s/["\\]/\\&/g; s/^/"/; s/$/"/ 23140 p 23141 b 23142 :more2 23143 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23144 p 23145 g 23146 s/.\{148\}// 23147 t delim 23148 ' <conf$$subs.awk | sed ' 23149 /^[^""]/{ 23150 N 23151 s/\n// 23152 } 23153 ' >>$CONFIG_STATUS || ac_write_fail=1 23154 rm -f conf$$subs.awk 23155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23156 _ACAWK 23157 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23158 for (key in S) S_is_set[key] = 1 23159 FS = "" 23160 23161 } 23162 { 23163 line = $ 0 23164 nfields = split(line, field, "@") 23165 substed = 0 23166 len = length(field[1]) 23167 for (i = 2; i < nfields; i++) { 23168 key = field[i] 23169 keylen = length(key) 23170 if (S_is_set[key]) { 23171 value = S[key] 23172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23173 len += length(value) + length(field[++i]) 23174 substed = 1 23175 } else 23176 len += 1 + keylen 23177 } 23178 23179 print line 23180 } 23181 23182 _ACAWK 23183 _ACEOF 23184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23185 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23187 else 23188 cat 23189 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23191 _ACEOF 23192 23193 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23194 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23195 # trailing colons and then remove the whole line if VPATH becomes empty 23196 # (actually we leave an empty line to preserve line numbers). 23197 if test "x$srcdir" = x.; then 23198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23199 h 23200 s/// 23201 s/^/:/ 23202 s/[ ]*$/:/ 23203 s/:\$(srcdir):/:/g 23204 s/:\${srcdir}:/:/g 23205 s/:@srcdir@:/:/g 23206 s/^:*// 23207 s/:*$// 23208 x 23209 s/\(=[ ]*\).*/\1/ 23210 G 23211 s/\n// 23212 s/^[^=]*=[ ]*$// 23213 }' 23214 fi 23215 23216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23217 fi # test -n "$CONFIG_FILES" 23218 23219 # Set up the scripts for CONFIG_HEADERS section. 23220 # No need to generate them if there are no CONFIG_HEADERS. 23221 # This happens for instance with './config.status Makefile'. 23222 if test -n "$CONFIG_HEADERS"; then 23223 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23224 BEGIN { 23225 _ACEOF 23226 23227 # Transform confdefs.h into an awk script 'defines.awk', embedded as 23228 # here-document in config.status, that substitutes the proper values into 23229 # config.h.in to produce config.h. 23230 23231 # Create a delimiter string that does not exist in confdefs.h, to ease 23232 # handling of long lines. 23233 ac_delim='%!_!# ' 23234 for ac_last_try in false false :; do 23235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23236 if test -z "$ac_tt"; then 23237 break 23238 elif $ac_last_try; then 23239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23240 else 23241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23242 fi 23243 done 23244 23245 # For the awk script, D is an array of macro values keyed by name, 23246 # likewise P contains macro parameters if any. Preserve backslash 23247 # newline sequences. 23248 23249 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23250 sed -n ' 23251 s/.\{148\}/&'"$ac_delim"'/g 23252 t rset 23253 :rset 23254 s/^[ ]*#[ ]*define[ ][ ]*/ / 23255 t def 23256 d 23257 :def 23258 s/\\$// 23259 t bsnl 23260 s/["\\]/\\&/g 23261 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23262 D["\1"]=" \3"/p 23263 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23264 d 23265 :bsnl 23266 s/["\\]/\\&/g 23267 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23268 D["\1"]=" \3\\\\\\n"\\/p 23269 t cont 23270 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23271 t cont 23272 d 23273 :cont 23274 n 23275 s/.\{148\}/&'"$ac_delim"'/g 23276 t clear 23277 :clear 23278 s/\\$// 23279 t bsnlc 23280 s/["\\]/\\&/g; s/^/"/; s/$/"/p 23281 d 23282 :bsnlc 23283 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23284 b cont 23285 ' <confdefs.h | sed ' 23286 s/'"$ac_delim"'/"\\\ 23287 "/g' >>$CONFIG_STATUS || ac_write_fail=1 23288 23289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23290 for (key in D) D_is_set[key] = 1 23291 FS = "" 23292 } 23293 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23294 line = \$ 0 23295 split(line, arg, " ") 23296 if (arg[1] == "#") { 23297 defundef = arg[2] 23298 mac1 = arg[3] 23299 } else { 23300 defundef = substr(arg[1], 2) 23301 mac1 = arg[2] 23302 } 23303 split(mac1, mac2, "(") #) 23304 macro = mac2[1] 23305 prefix = substr(line, 1, index(line, defundef) - 1) 23306 if (D_is_set[macro]) { 23307 # Preserve the white space surrounding the "#". 23308 print prefix "define", macro P[macro] D[macro] 23309 next 23310 } else { 23311 # Replace #undef with comments. This is necessary, for example, 23312 # in the case of _POSIX_SOURCE, which is predefined and required 23313 # on some systems where configure will not decide to define it. 23314 if (defundef == "undef") { 23315 print "/*", prefix defundef, macro, "*/" 23316 next 23317 } 23318 } 23319 } 23320 { print } 23321 _ACAWK 23322 _ACEOF 23323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23325 fi # test -n "$CONFIG_HEADERS" 23326 23327 23328 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23329 shift 23330 for ac_tag 23331 do 23332 case $ac_tag in 23333 :[FHLC]) ac_mode=$ac_tag; continue;; 23334 esac 23335 case $ac_mode$ac_tag in 23336 :[FHL]*:*);; 23337 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 23338 :[FH]-) ac_tag=-:-;; 23339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23340 esac 23341 ac_save_IFS=$IFS 23342 IFS=: 23343 set x $ac_tag 23344 IFS=$ac_save_IFS 23345 shift 23346 ac_file=$1 23347 shift 23348 23349 case $ac_mode in 23350 :L) ac_source=$1;; 23351 :[FH]) 23352 ac_file_inputs= 23353 for ac_f 23354 do 23355 case $ac_f in 23356 -) ac_f="$ac_tmp/stdin";; 23357 *) # Look for the file first in the build tree, then in the source tree 23358 # (if the path is not absolute). The absolute path cannot be DOS-style, 23359 # because $ac_f cannot contain ':'. 23360 test -f "$ac_f" || 23361 case $ac_f in 23362 [\\/$]*) false;; 23363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23364 esac || 23365 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 23366 esac 23367 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23368 as_fn_append ac_file_inputs " '$ac_f'" 23369 done 23370 23371 # Let's still pretend it is 'configure' which instantiates (i.e., don't 23372 # use $as_me), people would be surprised to read: 23373 # /* config.h. Generated by config.status. */ 23374 configure_input='Generated from '` 23375 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23376 `' by configure.' 23377 if test x"$ac_file" != x-; then 23378 configure_input="$ac_file. $configure_input" 23379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23380 printf "%s\n" "$as_me: creating $ac_file" >&6;} 23381 fi 23382 # Neutralize special characters interpreted by sed in replacement strings. 23383 case $configure_input in #( 23384 *\&* | *\|* | *\\* ) 23385 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23386 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23387 *) ac_sed_conf_input=$configure_input;; 23388 esac 23389 23390 case $ac_tag in 23391 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23393 esac 23394 ;; 23395 esac 23396 23397 ac_dir=`$as_dirname -- "$ac_file" || 23398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23399 X"$ac_file" : 'X\(//\)[^/]' \| \ 23400 X"$ac_file" : 'X\(//\)$' \| \ 23401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23402 printf "%s\n" X"$ac_file" | 23403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23404 s//\1/ 23405 q 23406 } 23407 /^X\(\/\/\)[^/].*/{ 23408 s//\1/ 23409 q 23410 } 23411 /^X\(\/\/\)$/{ 23412 s//\1/ 23413 q 23414 } 23415 /^X\(\/\).*/{ 23416 s//\1/ 23417 q 23418 } 23419 s/.*/./; q'` 23420 as_dir="$ac_dir"; as_fn_mkdir_p 23421 ac_builddir=. 23422 23423 case "$ac_dir" in 23424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23425 *) 23426 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23427 # A ".." for each directory in $ac_dir_suffix. 23428 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23429 case $ac_top_builddir_sub in 23430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23432 esac ;; 23433 esac 23434 ac_abs_top_builddir=$ac_pwd 23435 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23436 # for backward compatibility: 23437 ac_top_builddir=$ac_top_build_prefix 23438 23439 case $srcdir in 23440 .) # We are building in place. 23441 ac_srcdir=. 23442 ac_top_srcdir=$ac_top_builddir_sub 23443 ac_abs_top_srcdir=$ac_pwd ;; 23444 [\\/]* | ?:[\\/]* ) # Absolute name. 23445 ac_srcdir=$srcdir$ac_dir_suffix; 23446 ac_top_srcdir=$srcdir 23447 ac_abs_top_srcdir=$srcdir ;; 23448 *) # Relative name. 23449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23450 ac_top_srcdir=$ac_top_build_prefix$srcdir 23451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23452 esac 23453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23454 23455 23456 case $ac_mode in 23457 :F) 23458 # 23459 # CONFIG_FILE 23460 # 23461 23462 case $INSTALL in 23463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23465 esac 23466 ac_MKDIR_P=$MKDIR_P 23467 case $MKDIR_P in 23468 [\\/$]* | ?:[\\/]* ) ;; 23469 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23470 esac 23471 _ACEOF 23472 23473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23474 # If the template does not know about datarootdir, expand it. 23475 # FIXME: This hack should be removed a few years after 2.60. 23476 ac_datarootdir_hack=; ac_datarootdir_seen= 23477 ac_sed_dataroot=' 23478 /datarootdir/ { 23479 p 23480 q 23481 } 23482 /@datadir@/p 23483 /@docdir@/p 23484 /@infodir@/p 23485 /@localedir@/p 23486 /@mandir@/p' 23487 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23488 *datarootdir*) ac_datarootdir_seen=yes;; 23489 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23491 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23492 _ACEOF 23493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23494 ac_datarootdir_hack=' 23495 s&@datadir@&$datadir&g 23496 s&@docdir@&$docdir&g 23497 s&@infodir@&$infodir&g 23498 s&@localedir@&$localedir&g 23499 s&@mandir@&$mandir&g 23500 s&\\\${datarootdir}&$datarootdir&g' ;; 23501 esac 23502 _ACEOF 23503 23504 # Neutralize VPATH when '$srcdir' = '.'. 23505 # Shell code in configure.ac might set extrasub. 23506 # FIXME: do we really want to maintain this feature? 23507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23508 ac_sed_extra="$ac_vpsub 23509 $extrasub 23510 _ACEOF 23511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23512 :t 23513 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23514 s|@configure_input@|$ac_sed_conf_input|;t t 23515 s&@top_builddir@&$ac_top_builddir_sub&;t t 23516 s&@top_build_prefix@&$ac_top_build_prefix&;t t 23517 s&@srcdir@&$ac_srcdir&;t t 23518 s&@abs_srcdir@&$ac_abs_srcdir&;t t 23519 s&@top_srcdir@&$ac_top_srcdir&;t t 23520 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23521 s&@builddir@&$ac_builddir&;t t 23522 s&@abs_builddir@&$ac_abs_builddir&;t t 23523 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23524 s&@INSTALL@&$ac_INSTALL&;t t 23525 s&@MKDIR_P@&$ac_MKDIR_P&;t t 23526 $ac_datarootdir_hack 23527 " 23528 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23529 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23530 23531 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23532 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23533 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23534 "$ac_tmp/out"`; test -z "$ac_out"; } && 23535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23536 which seems to be undefined. Please make sure it is defined" >&5 23537 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23538 which seems to be undefined. Please make sure it is defined" >&2;} 23539 23540 rm -f "$ac_tmp/stdin" 23541 case $ac_file in 23542 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23543 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23544 esac \ 23545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23546 ;; 23547 :H) 23548 # 23549 # CONFIG_HEADER 23550 # 23551 if test x"$ac_file" != x-; then 23552 { 23553 printf "%s\n" "/* $configure_input */" >&1 \ 23554 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23555 } >"$ac_tmp/config.h" \ 23556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23557 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23559 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23560 else 23561 rm -f "$ac_file" 23562 mv "$ac_tmp/config.h" "$ac_file" \ 23563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23564 fi 23565 else 23566 printf "%s\n" "/* $configure_input */" >&1 \ 23567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23568 || as_fn_error $? "could not create -" "$LINENO" 5 23569 fi 23570 # Compute "$ac_file"'s index in $config_headers. 23571 _am_arg="$ac_file" 23572 _am_stamp_count=1 23573 for _am_header in $config_headers :; do 23574 case $_am_header in 23575 $_am_arg | $_am_arg:* ) 23576 break ;; 23577 * ) 23578 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23579 esac 23580 done 23581 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23582 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23583 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23584 X"$_am_arg" : 'X\(//\)$' \| \ 23585 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23586 printf "%s\n" X"$_am_arg" | 23587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23588 s//\1/ 23589 q 23590 } 23591 /^X\(\/\/\)[^/].*/{ 23592 s//\1/ 23593 q 23594 } 23595 /^X\(\/\/\)$/{ 23596 s//\1/ 23597 q 23598 } 23599 /^X\(\/\).*/{ 23600 s//\1/ 23601 q 23602 } 23603 s/.*/./; q'`/stamp-h$_am_stamp_count 23604 ;; 23605 23606 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23607 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23608 ;; 23609 esac 23610 23611 23612 case $ac_file$ac_mode in 23613 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23614 # Older Autoconf quotes --file arguments for eval, but not when files 23615 # are listed without --file. Let's play safe and only enable the eval 23616 # if we detect the quoting. 23617 # TODO: see whether this extra hack can be removed once we start 23618 # requiring Autoconf 2.70 or later. 23619 case $CONFIG_FILES in #( 23620 *\'*) : 23621 eval set x "$CONFIG_FILES" ;; #( 23622 *) : 23623 set x $CONFIG_FILES ;; #( 23624 *) : 23625 ;; 23626 esac 23627 shift 23628 # Used to flag and report bootstrapping failures. 23629 am_rc=0 23630 for am_mf 23631 do 23632 # Strip MF so we end up with the name of the file. 23633 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23634 # Check whether this is an Automake generated Makefile which includes 23635 # dependency-tracking related rules and includes. 23636 # Grep'ing the whole file directly is not great: AIX grep has a line 23637 # limit of 2048, but all sed's we know have understand at least 4000. 23638 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23639 || continue 23640 am_dirpart=`$as_dirname -- "$am_mf" || 23641 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23642 X"$am_mf" : 'X\(//\)[^/]' \| \ 23643 X"$am_mf" : 'X\(//\)$' \| \ 23644 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23645 printf "%s\n" X"$am_mf" | 23646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23647 s//\1/ 23648 q 23649 } 23650 /^X\(\/\/\)[^/].*/{ 23651 s//\1/ 23652 q 23653 } 23654 /^X\(\/\/\)$/{ 23655 s//\1/ 23656 q 23657 } 23658 /^X\(\/\).*/{ 23659 s//\1/ 23660 q 23661 } 23662 s/.*/./; q'` 23663 am_filepart=`$as_basename -- "$am_mf" || 23664 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23665 X"$am_mf" : 'X\(//\)$' \| \ 23666 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23667 printf "%s\n" X/"$am_mf" | 23668 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23669 s//\1/ 23670 q 23671 } 23672 /^X\/\(\/\/\)$/{ 23673 s//\1/ 23674 q 23675 } 23676 /^X\/\(\/\).*/{ 23677 s//\1/ 23678 q 23679 } 23680 s/.*/./; q'` 23681 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23682 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23683 | $MAKE -f - am--depfiles" >&5 23684 (cd "$am_dirpart" \ 23685 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23686 | $MAKE -f - am--depfiles) >&5 2>&5 23687 ac_status=$? 23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23689 (exit $ac_status); } || am_rc=$? 23690 done 23691 if test $am_rc -ne 0; then 23692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23693 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23694 as_fn_error $? "Something went wrong bootstrapping makefile fragments 23695 for automatic dependency tracking. If GNU make was not used, consider 23696 re-running the configure script with MAKE=\"gmake\" (or whatever is 23697 necessary). You can also try re-running configure with the 23698 '--disable-dependency-tracking' option to at least be able to build 23699 the package (albeit without support for automatic dependency tracking). 23700 See 'config.log' for more details" "$LINENO" 5; } 23701 fi 23702 { am_dirpart=; unset am_dirpart;} 23703 { am_filepart=; unset am_filepart;} 23704 { am_mf=; unset am_mf;} 23705 { am_rc=; unset am_rc;} 23706 rm -f conftest-deps.mk 23707 } 23708 ;; 23709 "libtool":C) 23710 23711 # See if we are running on zsh, and set the options that allow our 23712 # commands through without removal of \ escapes. 23713 if test -n "${ZSH_VERSION+set}"; then 23714 setopt NO_GLOB_SUBST 23715 fi 23716 23717 cfgfile=${ofile}T 23718 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23719 $RM "$cfgfile" 23720 23721 cat <<_LT_EOF >> "$cfgfile" 23722 #! $SHELL 23723 # Generated automatically by $as_me ($PACKAGE) $VERSION 23724 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 23725 23726 # Provide generalized library-building support services. 23727 # Written by Gordon Matzigkeit, 1996 23728 23729 # Copyright (C) 2024 Free Software Foundation, Inc. 23730 # This is free software; see the source for copying conditions. There is NO 23731 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23732 23733 # GNU Libtool is free software; you can redistribute it and/or modify 23734 # it under the terms of the GNU General Public License as published by 23735 # the Free Software Foundation; either version 2 of the License, or 23736 # (at your option) any later version. 23737 # 23738 # As a special exception to the GNU General Public License, if you 23739 # distribute this file as part of a program or library that is built 23740 # using GNU Libtool, you may include this file under the same 23741 # distribution terms that you use for the rest of that program. 23742 # 23743 # GNU Libtool is distributed in the hope that it will be useful, but 23744 # WITHOUT ANY WARRANTY; without even the implied warranty of 23745 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23746 # GNU General Public License for more details. 23747 # 23748 # You should have received a copy of the GNU General Public License 23749 # along with this program. If not, see <http://www.gnu.org/licenses/>. 23750 23751 23752 # The names of the tagged configurations supported by this script. 23753 available_tags='' 23754 23755 # Configured defaults for sys_lib_dlsearch_path munging. 23756 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23757 23758 # ### BEGIN LIBTOOL CONFIG 23759 23760 # Which release of libtool.m4 was used? 23761 macro_version=$macro_version 23762 macro_revision=$macro_revision 23763 23764 # Whether or not to build shared libraries. 23765 build_libtool_libs=$enable_shared 23766 23767 # Whether or not to build static libraries. 23768 build_old_libs=$enable_static 23769 23770 # What type of objects to build. 23771 pic_mode=$pic_mode 23772 23773 # Whether or not to optimize for fast installation. 23774 fast_install=$enable_fast_install 23775 23776 # Shared archive member basename,for filename based shared library versioning on AIX. 23777 shared_archive_member_spec=$shared_archive_member_spec 23778 23779 # Shell to use when invoking shell scripts. 23780 SHELL=$lt_SHELL 23781 23782 # An echo program that protects backslashes. 23783 ECHO=$lt_ECHO 23784 23785 # The PATH separator for the build system. 23786 PATH_SEPARATOR=$lt_PATH_SEPARATOR 23787 23788 # The host system. 23789 host_alias=$host_alias 23790 host=$host 23791 host_os=$host_os 23792 23793 # The build system. 23794 build_alias=$build_alias 23795 build=$build 23796 build_os=$build_os 23797 23798 # A sed program that does not truncate output. 23799 SED=$lt_SED 23800 23801 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 23802 Xsed="\$SED -e 1s/^X//" 23803 23804 # A grep program that handles long lines. 23805 GREP=$lt_GREP 23806 23807 # An ERE matcher. 23808 EGREP=$lt_EGREP 23809 23810 # A literal string matcher. 23811 FGREP=$lt_FGREP 23812 23813 # A BSD- or MS-compatible name lister. 23814 NM=$lt_NM 23815 23816 # Whether we need soft or hard links. 23817 LN_S=$lt_LN_S 23818 23819 # What is the maximum length of a command? 23820 max_cmd_len=$max_cmd_len 23821 23822 # Object file suffix (normally "o"). 23823 objext=$ac_objext 23824 23825 # Executable file suffix (normally ""). 23826 exeext=$exeext 23827 23828 # whether the shell understands "unset". 23829 lt_unset=$lt_unset 23830 23831 # turn spaces into newlines. 23832 SP2NL=$lt_lt_SP2NL 23833 23834 # turn newlines into spaces. 23835 NL2SP=$lt_lt_NL2SP 23836 23837 # convert \$build file names to \$host format. 23838 to_host_file_cmd=$lt_cv_to_host_file_cmd 23839 23840 # convert \$build files to toolchain format. 23841 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23842 23843 # A file(cmd) program that detects file types. 23844 FILECMD=$lt_FILECMD 23845 23846 # An object symbol dumper. 23847 OBJDUMP=$lt_OBJDUMP 23848 23849 # Method to check whether dependent libraries are shared objects. 23850 deplibs_check_method=$lt_deplibs_check_method 23851 23852 # Command to use when deplibs_check_method = "file_magic". 23853 file_magic_cmd=$lt_file_magic_cmd 23854 23855 # How to find potential files when deplibs_check_method = "file_magic". 23856 file_magic_glob=$lt_file_magic_glob 23857 23858 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23859 want_nocaseglob=$lt_want_nocaseglob 23860 23861 # DLL creation program. 23862 DLLTOOL=$lt_DLLTOOL 23863 23864 # Command to associate shared and link libraries. 23865 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23866 23867 # The archiver. 23868 AR=$lt_AR 23869 23870 # Flags to create an archive (by configure). 23871 lt_ar_flags=$lt_ar_flags 23872 23873 # Flags to create an archive. 23874 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 23875 23876 # How to feed a file listing to the archiver. 23877 archiver_list_spec=$lt_archiver_list_spec 23878 23879 # A symbol stripping program. 23880 STRIP=$lt_STRIP 23881 23882 # Commands used to install an old-style archive. 23883 RANLIB=$lt_RANLIB 23884 old_postinstall_cmds=$lt_old_postinstall_cmds 23885 old_postuninstall_cmds=$lt_old_postuninstall_cmds 23886 23887 # Whether to use a lock for old archive extraction. 23888 lock_old_archive_extraction=$lock_old_archive_extraction 23889 23890 # A C compiler. 23891 LTCC=$lt_CC 23892 23893 # LTCC compiler flags. 23894 LTCFLAGS=$lt_CFLAGS 23895 23896 # Take the output of nm and produce a listing of raw symbols and C names. 23897 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23898 23899 # Transform the output of nm in a proper C declaration. 23900 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23901 23902 # Transform the output of nm into a list of symbols to manually relocate. 23903 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23904 23905 # Transform the output of nm in a C name address pair. 23906 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23907 23908 # Transform the output of nm in a C name address pair when lib prefix is needed. 23909 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23910 23911 # The name lister interface. 23912 nm_interface=$lt_lt_cv_nm_interface 23913 23914 # Specify filename containing input files for \$NM. 23915 nm_file_list_spec=$lt_nm_file_list_spec 23916 23917 # The root where to search for dependent libraries,and where our libraries should be installed. 23918 lt_sysroot=$lt_sysroot 23919 23920 # Command to truncate a binary pipe. 23921 lt_truncate_bin=$lt_lt_cv_truncate_bin 23922 23923 # The name of the directory that contains temporary libtool files. 23924 objdir=$objdir 23925 23926 # Used to examine libraries when file_magic_cmd begins with "file". 23927 MAGIC_CMD=$MAGIC_CMD 23928 23929 # Must we lock files when doing compilation? 23930 need_locks=$lt_need_locks 23931 23932 # Manifest tool. 23933 MANIFEST_TOOL=$lt_MANIFEST_TOOL 23934 23935 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23936 DSYMUTIL=$lt_DSYMUTIL 23937 23938 # Tool to change global to local symbols on Mac OS X. 23939 NMEDIT=$lt_NMEDIT 23940 23941 # Tool to manipulate fat objects and archives on Mac OS X. 23942 LIPO=$lt_LIPO 23943 23944 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 23945 OTOOL=$lt_OTOOL 23946 23947 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23948 OTOOL64=$lt_OTOOL64 23949 23950 # Old archive suffix (normally "a"). 23951 libext=$libext 23952 23953 # Shared library suffix (normally ".so"). 23954 shrext_cmds=$lt_shrext_cmds 23955 23956 # The commands to extract the exported symbol list from a shared archive. 23957 extract_expsyms_cmds=$lt_extract_expsyms_cmds 23958 23959 # Variables whose values should be saved in libtool wrapper scripts and 23960 # restored at link time. 23961 variables_saved_for_relink=$lt_variables_saved_for_relink 23962 23963 # Do we need the "lib" prefix for modules? 23964 need_lib_prefix=$need_lib_prefix 23965 23966 # Do we need a version for libraries? 23967 need_version=$need_version 23968 23969 # Library versioning type. 23970 version_type=$version_type 23971 23972 # Shared library runtime path variable. 23973 runpath_var=$runpath_var 23974 23975 # Shared library path variable. 23976 shlibpath_var=$shlibpath_var 23977 23978 # Is shlibpath searched before the hard-coded library search path? 23979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23980 23981 # Format of library name prefix. 23982 libname_spec=$lt_libname_spec 23983 23984 # List of archive names. First name is the real one, the rest are links. 23985 # The last name is the one that the linker finds with -lNAME 23986 library_names_spec=$lt_library_names_spec 23987 23988 # The coded name of the library, if different from the real name. 23989 soname_spec=$lt_soname_spec 23990 23991 # Permission mode override for installation of shared libraries. 23992 install_override_mode=$lt_install_override_mode 23993 23994 # Command to use after installation of a shared archive. 23995 postinstall_cmds=$lt_postinstall_cmds 23996 23997 # Command to use after uninstallation of a shared archive. 23998 postuninstall_cmds=$lt_postuninstall_cmds 23999 24000 # Commands used to finish a libtool library installation in a directory. 24001 finish_cmds=$lt_finish_cmds 24002 24003 # As "finish_cmds", except a single script fragment to be evaled but 24004 # not shown. 24005 finish_eval=$lt_finish_eval 24006 24007 # Whether we should hardcode library paths into libraries. 24008 hardcode_into_libs=$hardcode_into_libs 24009 24010 # Compile-time system search path for libraries. 24011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24012 24013 # Detected run-time system search path for libraries. 24014 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24015 24016 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24017 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24018 24019 # Whether dlopen is supported. 24020 dlopen_support=$enable_dlopen 24021 24022 # Whether dlopen of programs is supported. 24023 dlopen_self=$enable_dlopen_self 24024 24025 # Whether dlopen of statically linked programs is supported. 24026 dlopen_self_static=$enable_dlopen_self_static 24027 24028 # Commands to strip libraries. 24029 old_striplib=$lt_old_striplib 24030 striplib=$lt_striplib 24031 24032 24033 # The linker used to build libraries. 24034 LD=$lt_LD 24035 24036 # How to create reloadable object files. 24037 reload_flag=$lt_reload_flag 24038 reload_cmds=$lt_reload_cmds 24039 24040 # Commands used to build an old-style archive. 24041 old_archive_cmds=$lt_old_archive_cmds 24042 24043 # A language specific compiler. 24044 CC=$lt_compiler 24045 24046 # Is the compiler the GNU compiler? 24047 with_gcc=$GCC 24048 24049 # Compiler flag to turn off builtin functions. 24050 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24051 24052 # Additional compiler flags for building library objects. 24053 pic_flag=$lt_lt_prog_compiler_pic 24054 24055 # How to pass a linker flag through the compiler. 24056 wl=$lt_lt_prog_compiler_wl 24057 24058 # Compiler flag to prevent dynamic linking. 24059 link_static_flag=$lt_lt_prog_compiler_static 24060 24061 # Does compiler simultaneously support -c and -o options? 24062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24063 24064 # Whether or not to add -lc for building shared libraries. 24065 build_libtool_need_lc=$archive_cmds_need_lc 24066 24067 # Whether or not to disallow shared libs when runtime libs are static. 24068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24069 24070 # Compiler flag to allow reflexive dlopens. 24071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24072 24073 # Compiler flag to generate shared objects directly from archives. 24074 whole_archive_flag_spec=$lt_whole_archive_flag_spec 24075 24076 # Whether the compiler copes with passing no objects directly. 24077 compiler_needs_object=$lt_compiler_needs_object 24078 24079 # Create an old-style archive from a shared archive. 24080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24081 24082 # Create a temporary old-style archive to link instead of a shared archive. 24083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24084 24085 # Commands used to build a shared archive. 24086 archive_cmds=$lt_archive_cmds 24087 archive_expsym_cmds=$lt_archive_expsym_cmds 24088 24089 # Commands used to build a loadable module if different from building 24090 # a shared archive. 24091 module_cmds=$lt_module_cmds 24092 module_expsym_cmds=$lt_module_expsym_cmds 24093 24094 # Whether we are building with GNU ld or not. 24095 with_gnu_ld=$lt_with_gnu_ld 24096 24097 # Flag that allows shared libraries with undefined symbols to be built. 24098 allow_undefined_flag=$lt_allow_undefined_flag 24099 24100 # Flag that enforces no undefined symbols. 24101 no_undefined_flag=$lt_no_undefined_flag 24102 24103 # Flag to hardcode \$libdir into a binary during linking. 24104 # This must work even if \$libdir does not exist 24105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24106 24107 # Whether we need a single "-rpath" flag with a separated argument. 24108 hardcode_libdir_separator=$lt_hardcode_libdir_separator 24109 24110 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24111 # DIR into the resulting binary. 24112 hardcode_direct=$hardcode_direct 24113 24114 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24115 # DIR into the resulting binary and the resulting library dependency is 24116 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the 24117 # library is relocated. 24118 hardcode_direct_absolute=$hardcode_direct_absolute 24119 24120 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24121 # into the resulting binary. 24122 hardcode_minus_L=$hardcode_minus_L 24123 24124 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24125 # into the resulting binary. 24126 hardcode_shlibpath_var=$hardcode_shlibpath_var 24127 24128 # Set to "yes" if building a shared library automatically hardcodes DIR 24129 # into the library and all subsequent libraries and executables linked 24130 # against it. 24131 hardcode_automatic=$hardcode_automatic 24132 24133 # Set to yes if linker adds runtime paths of dependent libraries 24134 # to runtime path list. 24135 inherit_rpath=$inherit_rpath 24136 24137 # Whether libtool must link a program against all its dependency libraries. 24138 link_all_deplibs=$link_all_deplibs 24139 24140 # Set to "yes" if exported symbols are required. 24141 always_export_symbols=$always_export_symbols 24142 24143 # The commands to list exported symbols. 24144 export_symbols_cmds=$lt_export_symbols_cmds 24145 24146 # Symbols that should not be listed in the preloaded symbols. 24147 exclude_expsyms=$lt_exclude_expsyms 24148 24149 # Symbols that must always be exported. 24150 include_expsyms=$lt_include_expsyms 24151 24152 # Commands necessary for linking programs (against libraries) with templates. 24153 prelink_cmds=$lt_prelink_cmds 24154 24155 # Commands necessary for finishing linking programs. 24156 postlink_cmds=$lt_postlink_cmds 24157 24158 # Specify filename containing input files. 24159 file_list_spec=$lt_file_list_spec 24160 24161 # How to hardcode a shared library path into an executable. 24162 hardcode_action=$hardcode_action 24163 24164 # ### END LIBTOOL CONFIG 24165 24166 _LT_EOF 24167 24168 cat <<'_LT_EOF' >> "$cfgfile" 24169 24170 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24171 24172 # func_munge_path_list VARIABLE PATH 24173 # ----------------------------------- 24174 # VARIABLE is name of variable containing _space_ separated list of 24175 # directories to be munged by the contents of PATH, which is string 24176 # having a format: 24177 # "DIR[:DIR]:" 24178 # string "DIR[ DIR]" will be prepended to VARIABLE 24179 # ":DIR[:DIR]" 24180 # string "DIR[ DIR]" will be appended to VARIABLE 24181 # "DIRP[:DIRP]::[DIRA:]DIRA" 24182 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24183 # "DIRA[ DIRA]" will be appended to VARIABLE 24184 # "DIR[:DIR]" 24185 # VARIABLE will be replaced by "DIR[ DIR]" 24186 func_munge_path_list () 24187 { 24188 case x$2 in 24189 x) 24190 ;; 24191 *:) 24192 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24193 ;; 24194 x:*) 24195 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24196 ;; 24197 *::*) 24198 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24199 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24200 ;; 24201 *) 24202 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24203 ;; 24204 esac 24205 } 24206 24207 24208 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24209 func_cc_basename () 24210 { 24211 for cc_temp in $*""; do 24212 case $cc_temp in 24213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24215 \-*) ;; 24216 *) break;; 24217 esac 24218 done 24219 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24220 } 24221 24222 24223 # ### END FUNCTIONS SHARED WITH CONFIGURE 24224 24225 _LT_EOF 24226 24227 case $host_os in 24228 aix3*) 24229 cat <<\_LT_EOF >> "$cfgfile" 24230 # AIX sometimes has problems with the GCC collect2 program. For some 24231 # reason, if we set the COLLECT_NAMES environment variable, the problems 24232 # vanish in a puff of smoke. 24233 if test set != "${COLLECT_NAMES+set}"; then 24234 COLLECT_NAMES= 24235 export COLLECT_NAMES 24236 fi 24237 _LT_EOF 24238 ;; 24239 esac 24240 24241 24242 24243 ltmain=$ac_aux_dir/ltmain.sh 24244 24245 24246 # We use sed instead of cat because bash on DJGPP gets confused if 24247 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24248 # text mode, it properly converts lines to CR/LF. This bash problem 24249 # is reportedly fixed, but why not run on old versions too? 24250 $SED '$q' "$ltmain" >> "$cfgfile" \ 24251 || (rm -f "$cfgfile"; exit 1) 24252 24253 mv -f "$cfgfile" "$ofile" || 24254 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24255 chmod +x "$ofile" 24256 24257 ;; 24258 24259 esac 24260 done # for ac_tag 24261 24262 24263 as_fn_exit 0 24264 _ACEOF 24265 ac_clean_files=$ac_clean_files_save 24266 24267 test $ac_write_fail = 0 || 24268 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24269 24270 24271 # configure is writing to config.log, and then calls config.status. 24272 # config.status does its own redirection, appending to config.log. 24273 # Unfortunately, on DOS this fails, as config.log is still kept open 24274 # by configure, so config.status won't be able to write to it; its 24275 # output is simply discarded. So we exec the FD to /dev/null, 24276 # effectively closing config.log, so it can be properly (re)opened and 24277 # appended to by config.status. When coming back to configure, we 24278 # need to make the FD available again. 24279 if test "$no_create" != yes; then 24280 ac_cs_success=: 24281 ac_config_status_args= 24282 test "$silent" = yes && 24283 ac_config_status_args="$ac_config_status_args --quiet" 24284 exec 5>/dev/null 24285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24286 exec 5>>config.log 24287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24288 # would make configure fail if this is the last instruction. 24289 $ac_cs_success || as_fn_exit 1 24290 fi 24291 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24293 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24294 fi 24295 24296 24297