1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for libXfont2 2.0.7. 4 # 5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/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/libxfont/-/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='libXfont2' 677 PACKAGE_TARNAME='libXfont2' 678 PACKAGE_VERSION='2.0.7' 679 PACKAGE_STRING='libXfont2 2.0.7' 680 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxfont/-/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_config_libobj_dir=src/util 717 enable_year2038=no 718 ac_subst_vars='am__EXEEXT_FALSE 719 am__EXEEXT_TRUE 720 LTLIBOBJS 721 OS_CFLAGS 722 XFONT_LIBS 723 XFONT_CFLAGS 724 MATH_LIBS 725 XFONT_FC_FALSE 726 XFONT_FC_TRUE 727 XFONT_FONTFILE_FALSE 728 XFONT_FONTFILE_TRUE 729 XFONT_BITMAP_FALSE 730 XFONT_BITMAP_TRUE 731 XFONT_SNFFORMAT_FALSE 732 XFONT_SNFFORMAT_TRUE 733 XFONT_BDFFORMAT_FALSE 734 XFONT_BDFFORMAT_TRUE 735 XFONT_PCF_OR_BUILTIN_FALSE 736 XFONT_PCF_OR_BUILTIN_TRUE 737 XFONT_PCFFORMAT_FALSE 738 XFONT_PCFFORMAT_TRUE 739 XFONT_BUILTINS_FALSE 740 XFONT_BUILTINS_TRUE 741 Z_LIBS 742 X_BZIP2_FONT_COMPRESSION_FALSE 743 X_BZIP2_FONT_COMPRESSION_TRUE 744 Z_REQUIRES 745 ZLIB_LIBS 746 ZLIB_CFLAGS 747 X_GZIP_FONT_COMPRESSION 748 FREETYPE_REQUIRES 749 ft_config 750 FREETYPE_LIBS 751 FREETYPE_CFLAGS 752 XFONT_FREETYPE_FALSE 753 XFONT_FREETYPE_TRUE 754 LIBOBJS 755 LIBBSD_LIBS 756 LIBBSD_CFLAGS 757 HAVE_STYLESHEETS_FALSE 758 HAVE_STYLESHEETS_TRUE 759 XSL_STYLESHEET 760 STYLESHEET_SRCDIR 761 XORG_SGML_PATH 762 HAVE_FOP_FALSE 763 HAVE_FOP_TRUE 764 FOP 765 HAVE_XMLTO_FALSE 766 HAVE_XMLTO_TRUE 767 HAVE_XMLTO_TEXT_FALSE 768 HAVE_XMLTO_TEXT_TRUE 769 XMLTO 770 ENABLE_DEVEL_DOCS_FALSE 771 ENABLE_DEVEL_DOCS_TRUE 772 MAN_SUBSTS 773 XORG_MAN_PAGE 774 ADMIN_MAN_DIR 775 DRIVER_MAN_DIR 776 MISC_MAN_DIR 777 FILE_MAN_DIR 778 LIB_MAN_DIR 779 APP_MAN_DIR 780 ADMIN_MAN_SUFFIX 781 DRIVER_MAN_SUFFIX 782 MISC_MAN_SUFFIX 783 FILE_MAN_SUFFIX 784 LIB_MAN_SUFFIX 785 APP_MAN_SUFFIX 786 INSTALL_CMD 787 PKG_CONFIG_LIBDIR 788 PKG_CONFIG_PATH 789 PKG_CONFIG 790 CHANGELOG_CMD 791 STRICT_CFLAGS 792 CWARNFLAGS 793 BASE_CFLAGS 794 LT_SYS_LIBRARY_PATH 795 OTOOL64 796 OTOOL 797 LIPO 798 NMEDIT 799 DSYMUTIL 800 MANIFEST_TOOL 801 RANLIB 802 ac_ct_AR 803 AR 804 DLLTOOL 805 OBJDUMP 806 FILECMD 807 LN_S 808 NM 809 ac_ct_DUMPBIN 810 DUMPBIN 811 LD 812 FGREP 813 EGREP 814 GREP 815 SED 816 host_os 817 host_vendor 818 host_cpu 819 host 820 build_os 821 build_vendor 822 build_cpu 823 build 824 LIBTOOL 825 am__fastdepCC_FALSE 826 am__fastdepCC_TRUE 827 CCDEPMODE 828 am__nodep 829 AMDEPBACKSLASH 830 AMDEP_FALSE 831 AMDEP_TRUE 832 am__include 833 DEPDIR 834 OBJEXT 835 EXEEXT 836 ac_ct_CC 837 CPPFLAGS 838 LDFLAGS 839 CFLAGS 840 CC 841 am__xargs_n 842 am__rm_f_notfound 843 AM_BACKSLASH 844 AM_DEFAULT_VERBOSITY 845 AM_DEFAULT_V 846 AM_V 847 CSCOPE 848 ETAGS 849 CTAGS 850 am__untar 851 am__tar 852 AMTAR 853 am__leading_dot 854 SET_MAKE 855 AWK 856 mkdir_p 857 MKDIR_P 858 INSTALL_STRIP_PROGRAM 859 STRIP 860 install_sh 861 MAKEINFO 862 AUTOHEADER 863 AUTOMAKE 864 AUTOCONF 865 ACLOCAL 866 VERSION 867 PACKAGE 868 CYGPATH_W 869 am__isrc 870 INSTALL_DATA 871 INSTALL_SCRIPT 872 INSTALL_PROGRAM 873 target_alias 874 host_alias 875 build_alias 876 LIBS 877 ECHO_T 878 ECHO_N 879 ECHO_C 880 DEFS 881 mandir 882 localedir 883 libdir 884 psdir 885 pdfdir 886 dvidir 887 htmldir 888 infodir 889 docdir 890 oldincludedir 891 includedir 892 runstatedir 893 localstatedir 894 sharedstatedir 895 sysconfdir 896 datadir 897 datarootdir 898 libexecdir 899 sbindir 900 bindir 901 program_transform_name 902 prefix 903 exec_prefix 904 PACKAGE_URL 905 PACKAGE_BUGREPORT 906 PACKAGE_STRING 907 PACKAGE_VERSION 908 PACKAGE_TARNAME 909 PACKAGE_NAME 910 PATH_SEPARATOR 911 SHELL 912 am__quote' 913 ac_subst_files='' 914 ac_user_opts=' 915 enable_option_checking 916 enable_silent_rules 917 enable_dependency_tracking 918 enable_shared 919 enable_static 920 with_pic 921 enable_fast_install 922 with_aix_soname 923 with_gnu_ld 924 with_sysroot 925 enable_libtool_lock 926 enable_selective_werror 927 enable_strict_compilation 928 enable_devel_docs 929 with_xmlto 930 with_fop 931 enable_largefile 932 enable_freetype 933 with_freetype_config 934 with_bzip2 935 enable_builtins 936 enable_pcfformat 937 enable_bdfformat 938 enable_snfformat 939 enable_fc 940 enable_unix_transport 941 enable_tcp_transport 942 enable_ipv6 943 enable_local_transport 944 enable_year2038 945 ' 946 ac_precious_vars='build_alias 947 host_alias 948 target_alias 949 CC 950 CFLAGS 951 LDFLAGS 952 LIBS 953 CPPFLAGS 954 LT_SYS_LIBRARY_PATH 955 PKG_CONFIG 956 PKG_CONFIG_PATH 957 PKG_CONFIG_LIBDIR 958 XMLTO 959 FOP 960 LIBBSD_CFLAGS 961 LIBBSD_LIBS 962 FREETYPE_CFLAGS 963 FREETYPE_LIBS 964 ZLIB_CFLAGS 965 ZLIB_LIBS 966 XFONT_CFLAGS 967 XFONT_LIBS' 968 969 970 # Initialize some variables set by options. 971 ac_init_help= 972 ac_init_version=false 973 ac_unrecognized_opts= 974 ac_unrecognized_sep= 975 # The variables have the same names as the options, with 976 # dashes changed to underlines. 977 cache_file=/dev/null 978 exec_prefix=NONE 979 no_create= 980 no_recursion= 981 prefix=NONE 982 program_prefix=NONE 983 program_suffix=NONE 984 program_transform_name=s,x,x, 985 silent= 986 site= 987 srcdir= 988 verbose= 989 x_includes=NONE 990 x_libraries=NONE 991 992 # Installation directory options. 993 # These are left unexpanded so users can "make install exec_prefix=/foo" 994 # and all the variables that are supposed to be based on exec_prefix 995 # by default will actually change. 996 # Use braces instead of parens because sh, perl, etc. also accept them. 997 # (The list follows the same order as the GNU Coding Standards.) 998 bindir='${exec_prefix}/bin' 999 sbindir='${exec_prefix}/sbin' 1000 libexecdir='${exec_prefix}/libexec' 1001 datarootdir='${prefix}/share' 1002 datadir='${datarootdir}' 1003 sysconfdir='${prefix}/etc' 1004 sharedstatedir='${prefix}/com' 1005 localstatedir='${prefix}/var' 1006 runstatedir='${localstatedir}/run' 1007 includedir='${prefix}/include' 1008 oldincludedir='/usr/include' 1009 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1010 infodir='${datarootdir}/info' 1011 htmldir='${docdir}' 1012 dvidir='${docdir}' 1013 pdfdir='${docdir}' 1014 psdir='${docdir}' 1015 libdir='${exec_prefix}/lib' 1016 localedir='${datarootdir}/locale' 1017 mandir='${datarootdir}/man' 1018 1019 ac_prev= 1020 ac_dashdash= 1021 for ac_option 1022 do 1023 # If the previous option needs an argument, assign it. 1024 if test -n "$ac_prev"; then 1025 eval $ac_prev=\$ac_option 1026 ac_prev= 1027 continue 1028 fi 1029 1030 case $ac_option in 1031 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1032 *=) ac_optarg= ;; 1033 *) ac_optarg=yes ;; 1034 esac 1035 1036 case $ac_dashdash$ac_option in 1037 --) 1038 ac_dashdash=yes ;; 1039 1040 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1041 ac_prev=bindir ;; 1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1043 bindir=$ac_optarg ;; 1044 1045 -build | --build | --buil | --bui | --bu) 1046 ac_prev=build_alias ;; 1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1048 build_alias=$ac_optarg ;; 1049 1050 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1052 ac_prev=cache_file ;; 1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1055 cache_file=$ac_optarg ;; 1056 1057 --config-cache | -C) 1058 cache_file=config.cache ;; 1059 1060 -datadir | --datadir | --datadi | --datad) 1061 ac_prev=datadir ;; 1062 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1063 datadir=$ac_optarg ;; 1064 1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1066 | --dataroo | --dataro | --datar) 1067 ac_prev=datarootdir ;; 1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1070 datarootdir=$ac_optarg ;; 1071 1072 -disable-* | --disable-*) 1073 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1074 # Reject names that are not valid shell variable names. 1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1076 as_fn_error $? "invalid feature name: '$ac_useropt'" 1077 ac_useropt_orig=$ac_useropt 1078 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1079 case $ac_user_opts in 1080 *" 1081 "enable_$ac_useropt" 1082 "*) ;; 1083 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1084 ac_unrecognized_sep=', ';; 1085 esac 1086 eval enable_$ac_useropt=no ;; 1087 1088 -docdir | --docdir | --docdi | --doc | --do) 1089 ac_prev=docdir ;; 1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1091 docdir=$ac_optarg ;; 1092 1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1094 ac_prev=dvidir ;; 1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1096 dvidir=$ac_optarg ;; 1097 1098 -enable-* | --enable-*) 1099 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1100 # Reject names that are not valid shell variable names. 1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 as_fn_error $? "invalid feature name: '$ac_useropt'" 1103 ac_useropt_orig=$ac_useropt 1104 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1105 case $ac_user_opts in 1106 *" 1107 "enable_$ac_useropt" 1108 "*) ;; 1109 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1110 ac_unrecognized_sep=', ';; 1111 esac 1112 eval enable_$ac_useropt=\$ac_optarg ;; 1113 1114 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1115 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1116 | --exec | --exe | --ex) 1117 ac_prev=exec_prefix ;; 1118 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1119 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1120 | --exec=* | --exe=* | --ex=*) 1121 exec_prefix=$ac_optarg ;; 1122 1123 -gas | --gas | --ga | --g) 1124 # Obsolete; use --with-gas. 1125 with_gas=yes ;; 1126 1127 -help | --help | --hel | --he | -h) 1128 ac_init_help=long ;; 1129 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1130 ac_init_help=recursive ;; 1131 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1132 ac_init_help=short ;; 1133 1134 -host | --host | --hos | --ho) 1135 ac_prev=host_alias ;; 1136 -host=* | --host=* | --hos=* | --ho=*) 1137 host_alias=$ac_optarg ;; 1138 1139 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1140 ac_prev=htmldir ;; 1141 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1142 | --ht=*) 1143 htmldir=$ac_optarg ;; 1144 1145 -includedir | --includedir | --includedi | --included | --include \ 1146 | --includ | --inclu | --incl | --inc) 1147 ac_prev=includedir ;; 1148 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1149 | --includ=* | --inclu=* | --incl=* | --inc=*) 1150 includedir=$ac_optarg ;; 1151 1152 -infodir | --infodir | --infodi | --infod | --info | --inf) 1153 ac_prev=infodir ;; 1154 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1155 infodir=$ac_optarg ;; 1156 1157 -libdir | --libdir | --libdi | --libd) 1158 ac_prev=libdir ;; 1159 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1160 libdir=$ac_optarg ;; 1161 1162 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1163 | --libexe | --libex | --libe) 1164 ac_prev=libexecdir ;; 1165 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1166 | --libexe=* | --libex=* | --libe=*) 1167 libexecdir=$ac_optarg ;; 1168 1169 -localedir | --localedir | --localedi | --localed | --locale) 1170 ac_prev=localedir ;; 1171 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1172 localedir=$ac_optarg ;; 1173 1174 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1175 | --localstate | --localstat | --localsta | --localst | --locals) 1176 ac_prev=localstatedir ;; 1177 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1178 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1179 localstatedir=$ac_optarg ;; 1180 1181 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1182 ac_prev=mandir ;; 1183 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1184 mandir=$ac_optarg ;; 1185 1186 -nfp | --nfp | --nf) 1187 # Obsolete; use --without-fp. 1188 with_fp=no ;; 1189 1190 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1191 | --no-cr | --no-c | -n) 1192 no_create=yes ;; 1193 1194 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1195 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1196 no_recursion=yes ;; 1197 1198 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1199 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1200 | --oldin | --oldi | --old | --ol | --o) 1201 ac_prev=oldincludedir ;; 1202 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1203 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1204 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1205 oldincludedir=$ac_optarg ;; 1206 1207 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1208 ac_prev=prefix ;; 1209 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1210 prefix=$ac_optarg ;; 1211 1212 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1213 | --program-pre | --program-pr | --program-p) 1214 ac_prev=program_prefix ;; 1215 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1216 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1217 program_prefix=$ac_optarg ;; 1218 1219 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1220 | --program-suf | --program-su | --program-s) 1221 ac_prev=program_suffix ;; 1222 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1223 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1224 program_suffix=$ac_optarg ;; 1225 1226 -program-transform-name | --program-transform-name \ 1227 | --program-transform-nam | --program-transform-na \ 1228 | --program-transform-n | --program-transform- \ 1229 | --program-transform | --program-transfor \ 1230 | --program-transfo | --program-transf \ 1231 | --program-trans | --program-tran \ 1232 | --progr-tra | --program-tr | --program-t) 1233 ac_prev=program_transform_name ;; 1234 -program-transform-name=* | --program-transform-name=* \ 1235 | --program-transform-nam=* | --program-transform-na=* \ 1236 | --program-transform-n=* | --program-transform-=* \ 1237 | --program-transform=* | --program-transfor=* \ 1238 | --program-transfo=* | --program-transf=* \ 1239 | --program-trans=* | --program-tran=* \ 1240 | --progr-tra=* | --program-tr=* | --program-t=*) 1241 program_transform_name=$ac_optarg ;; 1242 1243 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1244 ac_prev=pdfdir ;; 1245 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1246 pdfdir=$ac_optarg ;; 1247 1248 -psdir | --psdir | --psdi | --psd | --ps) 1249 ac_prev=psdir ;; 1250 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1251 psdir=$ac_optarg ;; 1252 1253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1254 | -silent | --silent | --silen | --sile | --sil) 1255 silent=yes ;; 1256 1257 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1258 | --runstate | --runstat | --runsta | --runst | --runs \ 1259 | --run | --ru | --r) 1260 ac_prev=runstatedir ;; 1261 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1262 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1263 | --run=* | --ru=* | --r=*) 1264 runstatedir=$ac_optarg ;; 1265 1266 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1267 ac_prev=sbindir ;; 1268 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1269 | --sbi=* | --sb=*) 1270 sbindir=$ac_optarg ;; 1271 1272 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1273 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1274 | --sharedst | --shareds | --shared | --share | --shar \ 1275 | --sha | --sh) 1276 ac_prev=sharedstatedir ;; 1277 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1278 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1279 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1280 | --sha=* | --sh=*) 1281 sharedstatedir=$ac_optarg ;; 1282 1283 -site | --site | --sit) 1284 ac_prev=site ;; 1285 -site=* | --site=* | --sit=*) 1286 site=$ac_optarg ;; 1287 1288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1289 ac_prev=srcdir ;; 1290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1291 srcdir=$ac_optarg ;; 1292 1293 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1294 | --syscon | --sysco | --sysc | --sys | --sy) 1295 ac_prev=sysconfdir ;; 1296 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1297 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1298 sysconfdir=$ac_optarg ;; 1299 1300 -target | --target | --targe | --targ | --tar | --ta | --t) 1301 ac_prev=target_alias ;; 1302 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1303 target_alias=$ac_optarg ;; 1304 1305 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1306 verbose=yes ;; 1307 1308 -version | --version | --versio | --versi | --vers | -V) 1309 ac_init_version=: ;; 1310 1311 -with-* | --with-*) 1312 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1313 # Reject names that are not valid shell variable names. 1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1315 as_fn_error $? "invalid package name: '$ac_useropt'" 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320 "with_$ac_useropt" 1321 "*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval with_$ac_useropt=\$ac_optarg ;; 1326 1327 -without-* | --without-*) 1328 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1329 # Reject names that are not valid shell variable names. 1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1331 as_fn_error $? "invalid package name: '$ac_useropt'" 1332 ac_useropt_orig=$ac_useropt 1333 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1334 case $ac_user_opts in 1335 *" 1336 "with_$ac_useropt" 1337 "*) ;; 1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1339 ac_unrecognized_sep=', ';; 1340 esac 1341 eval with_$ac_useropt=no ;; 1342 1343 --x) 1344 # Obsolete; use --with-x. 1345 with_x=yes ;; 1346 1347 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1348 | --x-incl | --x-inc | --x-in | --x-i) 1349 ac_prev=x_includes ;; 1350 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1351 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1352 x_includes=$ac_optarg ;; 1353 1354 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1355 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1356 ac_prev=x_libraries ;; 1357 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1358 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1359 x_libraries=$ac_optarg ;; 1360 1361 -*) as_fn_error $? "unrecognized option: '$ac_option' 1362 Try '$0 --help' for more information" 1363 ;; 1364 1365 *=*) 1366 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1367 # Reject names that are not valid shell variable names. 1368 case $ac_envvar in #( 1369 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1370 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1371 esac 1372 eval $ac_envvar=\$ac_optarg 1373 export $ac_envvar ;; 1374 1375 *) 1376 # FIXME: should be removed in autoconf 3.0. 1377 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1378 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1379 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1380 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1381 ;; 1382 1383 esac 1384 done 1385 1386 if test -n "$ac_prev"; then 1387 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1388 as_fn_error $? "missing argument to $ac_option" 1389 fi 1390 1391 if test -n "$ac_unrecognized_opts"; then 1392 case $enable_option_checking in 1393 no) ;; 1394 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1395 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1396 esac 1397 fi 1398 1399 # Check all directory arguments for consistency. 1400 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1401 datadir sysconfdir sharedstatedir localstatedir includedir \ 1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1403 libdir localedir mandir runstatedir 1404 do 1405 eval ac_val=\$$ac_var 1406 # Remove trailing slashes. 1407 case $ac_val in 1408 */ ) 1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1410 eval $ac_var=\$ac_val;; 1411 esac 1412 # Be sure to have absolute directory names. 1413 case $ac_val in 1414 [\\/$]* | ?:[\\/]* ) continue;; 1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1416 esac 1417 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1418 done 1419 1420 # There might be people who depend on the old broken behavior: '$host' 1421 # used to hold the argument of --host etc. 1422 # FIXME: To remove some day. 1423 build=$build_alias 1424 host=$host_alias 1425 target=$target_alias 1426 1427 # FIXME: To remove some day. 1428 if test "x$host_alias" != x; then 1429 if test "x$build_alias" = x; then 1430 cross_compiling=maybe 1431 elif test "x$build_alias" != "x$host_alias"; then 1432 cross_compiling=yes 1433 fi 1434 fi 1435 1436 ac_tool_prefix= 1437 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1438 1439 test "$silent" = yes && exec 6>/dev/null 1440 1441 1442 ac_pwd=`pwd` && test -n "$ac_pwd" && 1443 ac_ls_di=`ls -di .` && 1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1445 as_fn_error $? "working directory cannot be determined" 1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1447 as_fn_error $? "pwd does not report name of working directory" 1448 1449 1450 # Find the source files, if location was not specified. 1451 if test -z "$srcdir"; then 1452 ac_srcdir_defaulted=yes 1453 # Try the directory containing this script, then the parent directory. 1454 ac_confdir=`$as_dirname -- "$as_myself" || 1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1456 X"$as_myself" : 'X\(//\)[^/]' \| \ 1457 X"$as_myself" : 'X\(//\)$' \| \ 1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1459 printf "%s\n" X"$as_myself" | 1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1461 s//\1/ 1462 q 1463 } 1464 /^X\(\/\/\)[^/].*/{ 1465 s//\1/ 1466 q 1467 } 1468 /^X\(\/\/\)$/{ 1469 s//\1/ 1470 q 1471 } 1472 /^X\(\/\).*/{ 1473 s//\1/ 1474 q 1475 } 1476 s/.*/./; q'` 1477 srcdir=$ac_confdir 1478 if test ! -r "$srcdir/$ac_unique_file"; then 1479 srcdir=.. 1480 fi 1481 else 1482 ac_srcdir_defaulted=no 1483 fi 1484 if test ! -r "$srcdir/$ac_unique_file"; then 1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1486 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1487 fi 1488 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1489 ac_abs_confdir=`( 1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1491 pwd)` 1492 # When building in place, set srcdir=. 1493 if test "$ac_abs_confdir" = "$ac_pwd"; then 1494 srcdir=. 1495 fi 1496 # Remove unnecessary trailing slashes from srcdir. 1497 # Double slashes in file names in object file debugging info 1498 # mess up M-x gdb in Emacs. 1499 case $srcdir in 1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1501 esac 1502 for ac_var in $ac_precious_vars; do 1503 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1504 eval ac_env_${ac_var}_value=\$${ac_var} 1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1506 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1507 done 1508 1509 # 1510 # Report the --help message. 1511 # 1512 if test "$ac_init_help" = "long"; then 1513 # Omit some internal or obsolete options to make the list less imposing. 1514 # This message is too long to be a string in the A/UX 3.1 sh. 1515 cat <<_ACEOF 1516 'configure' configures libXfont2 2.0.7 to adapt to many kinds of systems. 1517 1518 Usage: $0 [OPTION]... [VAR=VALUE]... 1519 1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1521 VAR=VALUE. See below for descriptions of some of the useful variables. 1522 1523 Defaults for the options are specified in brackets. 1524 1525 Configuration: 1526 -h, --help display this help and exit 1527 --help=short display options specific to this package 1528 --help=recursive display the short help of all the included packages 1529 -V, --version display version information and exit 1530 -q, --quiet, --silent do not print 'checking ...' messages 1531 --cache-file=FILE cache test results in FILE [disabled] 1532 -C, --config-cache alias for '--cache-file=config.cache' 1533 -n, --no-create do not create output files 1534 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1535 1536 Installation directories: 1537 --prefix=PREFIX install architecture-independent files in PREFIX 1538 [$ac_default_prefix] 1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1540 [PREFIX] 1541 1542 By default, 'make install' will install all the files in 1543 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1544 an installation prefix other than '$ac_default_prefix' using '--prefix', 1545 for instance '--prefix=\$HOME'. 1546 1547 For better control, use the options below. 1548 1549 Fine tuning of the installation directories: 1550 --bindir=DIR user executables [EPREFIX/bin] 1551 --sbindir=DIR system admin executables [EPREFIX/sbin] 1552 --libexecdir=DIR program executables [EPREFIX/libexec] 1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1556 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1557 --libdir=DIR object code libraries [EPREFIX/lib] 1558 --includedir=DIR C header files [PREFIX/include] 1559 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1560 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1561 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1562 --infodir=DIR info documentation [DATAROOTDIR/info] 1563 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1564 --mandir=DIR man documentation [DATAROOTDIR/man] 1565 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont2] 1566 --htmldir=DIR html documentation [DOCDIR] 1567 --dvidir=DIR dvi documentation [DOCDIR] 1568 --pdfdir=DIR pdf documentation [DOCDIR] 1569 --psdir=DIR ps documentation [DOCDIR] 1570 _ACEOF 1571 1572 cat <<\_ACEOF 1573 1574 Program names: 1575 --program-prefix=PREFIX prepend PREFIX to installed program names 1576 --program-suffix=SUFFIX append SUFFIX to installed program names 1577 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1578 1579 System types: 1580 --build=BUILD configure for building on BUILD [guessed] 1581 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1582 _ACEOF 1583 fi 1584 1585 if test -n "$ac_init_help"; then 1586 case $ac_init_help in 1587 short | recursive ) echo "Configuration of libXfont2 2.0.7:";; 1588 esac 1589 cat <<\_ACEOF 1590 1591 Optional Features: 1592 --disable-option-checking ignore unrecognized --enable/--with options 1593 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1594 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1595 --enable-silent-rules less verbose build output (undo: "make V=1") 1596 --disable-silent-rules verbose build output (undo: "make V=0") 1597 --enable-dependency-tracking 1598 do not reject slow dependency extractors 1599 --disable-dependency-tracking 1600 speeds up one-time build 1601 --enable-shared[=PKGS] build shared libraries [default=yes] 1602 --enable-static[=PKGS] build static libraries [default=yes] 1603 --enable-fast-install[=PKGS] 1604 optimize for fast installation [default=yes] 1605 --disable-libtool-lock avoid locking (might break parallel builds) 1606 --disable-selective-werror 1607 Turn off selective compiler errors. (default: 1608 enabled) 1609 --enable-strict-compilation 1610 Enable all warnings from compiler and make them 1611 errors (default: disabled) 1612 --enable-devel-docs Enable building the developer documentation 1613 (default: yes) 1614 --disable-largefile omit support for large files 1615 --disable-freetype Build freetype backend (default: enabled) 1616 --disable-builtins Support builtin fonts (default: enabled) 1617 --disable-pcfformat Support PCF format bitmap fonts (default: enabled) 1618 --disable-bdfformat Support BDF format bitmap fonts (default: enabled) 1619 --enable-snfformat Support SNF format bitmap fonts (default: disabled) 1620 --disable-fc Support connections to xfs servers (default: 1621 enabled) 1622 --enable-unix-transport Enable UNIX domain socket transport 1623 --enable-tcp-transport Enable TCP socket transport 1624 --enable-ipv6 Enable IPv6 support 1625 --enable-local-transport 1626 Enable os-specific local transport 1627 --enable-year2038 support timestamps after 2038 1628 1629 Optional Packages: 1630 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1631 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1632 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1633 both] 1634 --with-aix-soname=aix|svr4|both 1635 shared library versioning (aka "SONAME") variant to 1636 provide on AIX, [default=aix]. 1637 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1638 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1639 compiler's sysroot if not specified). 1640 --with-xmlto Use xmlto to regenerate documentation (default: 1641 auto) 1642 --with-fop Use fop to regenerate documentation (default: auto) 1643 --with-freetype-config=PROG 1644 Use FreeType configuration program PROG 1645 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts 1646 (default: no) 1647 1648 Some influential environment variables: 1649 CC C compiler command 1650 CFLAGS C compiler flags 1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1652 nonstandard directory <lib dir> 1653 LIBS libraries to pass to the linker, e.g. -l<library> 1654 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1655 you have headers in a nonstandard directory <include dir> 1656 LT_SYS_LIBRARY_PATH 1657 User-defined run-time library search path. 1658 PKG_CONFIG path to pkg-config utility 1659 PKG_CONFIG_PATH 1660 directories to add to pkg-config's search path 1661 PKG_CONFIG_LIBDIR 1662 path overriding pkg-config's built-in search path 1663 XMLTO Path to xmlto command 1664 FOP Path to fop command 1665 LIBBSD_CFLAGS 1666 C compiler flags for LIBBSD, overriding pkg-config 1667 LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config 1668 FREETYPE_CFLAGS 1669 C compiler flags for FREETYPE, overriding pkg-config 1670 FREETYPE_LIBS 1671 linker flags for FREETYPE, overriding pkg-config 1672 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1673 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 1674 XFONT_CFLAGS 1675 C compiler flags for XFONT, overriding pkg-config 1676 XFONT_LIBS linker flags for XFONT, overriding pkg-config 1677 1678 Use these variables to override the choices made by 'configure' or to help 1679 it to find libraries and programs with nonstandard names/locations. 1680 1681 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues>. 1682 _ACEOF 1683 ac_status=$? 1684 fi 1685 1686 if test "$ac_init_help" = "recursive"; then 1687 # If there are subdirs, report their specific --help. 1688 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1689 test -d "$ac_dir" || 1690 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1691 continue 1692 ac_builddir=. 1693 1694 case "$ac_dir" in 1695 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1696 *) 1697 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1698 # A ".." for each directory in $ac_dir_suffix. 1699 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1700 case $ac_top_builddir_sub in 1701 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1702 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1703 esac ;; 1704 esac 1705 ac_abs_top_builddir=$ac_pwd 1706 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1707 # for backward compatibility: 1708 ac_top_builddir=$ac_top_build_prefix 1709 1710 case $srcdir in 1711 .) # We are building in place. 1712 ac_srcdir=. 1713 ac_top_srcdir=$ac_top_builddir_sub 1714 ac_abs_top_srcdir=$ac_pwd ;; 1715 [\\/]* | ?:[\\/]* ) # Absolute name. 1716 ac_srcdir=$srcdir$ac_dir_suffix; 1717 ac_top_srcdir=$srcdir 1718 ac_abs_top_srcdir=$srcdir ;; 1719 *) # Relative name. 1720 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1721 ac_top_srcdir=$ac_top_build_prefix$srcdir 1722 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1723 esac 1724 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1725 1726 cd "$ac_dir" || { ac_status=$?; continue; } 1727 # Check for configure.gnu first; this name is used for a wrapper for 1728 # Metaconfig's "Configure" on case-insensitive file systems. 1729 if test -f "$ac_srcdir/configure.gnu"; then 1730 echo && 1731 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1732 elif test -f "$ac_srcdir/configure"; then 1733 echo && 1734 $SHELL "$ac_srcdir/configure" --help=recursive 1735 else 1736 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1737 fi || ac_status=$? 1738 cd "$ac_pwd" || { ac_status=$?; break; } 1739 done 1740 fi 1741 1742 test -n "$ac_init_help" && exit $ac_status 1743 if $ac_init_version; then 1744 cat <<\_ACEOF 1745 libXfont2 configure 2.0.7 1746 generated by GNU Autoconf 2.72 1747 1748 Copyright (C) 2023 Free Software Foundation, Inc. 1749 This configure script is free software; the Free Software Foundation 1750 gives unlimited permission to copy, distribute and modify it. 1751 _ACEOF 1752 exit 1753 fi 1754 1755 ## ------------------------ ## 1756 ## Autoconf initialization. ## 1757 ## ------------------------ ## 1758 1759 # ac_fn_c_try_compile LINENO 1760 # -------------------------- 1761 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1762 ac_fn_c_try_compile () 1763 { 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 rm -f conftest.$ac_objext conftest.beam 1766 if { { ac_try="$ac_compile" 1767 case "(($ac_try" in 1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1769 *) ac_try_echo=$ac_try;; 1770 esac 1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1772 printf "%s\n" "$ac_try_echo"; } >&5 1773 (eval "$ac_compile") 2>conftest.err 1774 ac_status=$? 1775 if test -s conftest.err; then 1776 grep -v '^ *+' conftest.err >conftest.er1 1777 cat conftest.er1 >&5 1778 mv -f conftest.er1 conftest.err 1779 fi 1780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1781 test $ac_status = 0; } && { 1782 test -z "$ac_c_werror_flag" || 1783 test ! -s conftest.err 1784 } && test -s conftest.$ac_objext 1785 then : 1786 ac_retval=0 1787 else case e in #( 1788 e) printf "%s\n" "$as_me: failed program was:" >&5 1789 sed 's/^/| /' conftest.$ac_ext >&5 1790 1791 ac_retval=1 ;; 1792 esac 1793 fi 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1795 as_fn_set_status $ac_retval 1796 1797 } # ac_fn_c_try_compile 1798 1799 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1800 # ------------------------------------------------------- 1801 # Tests whether HEADER exists and can be compiled using the include files in 1802 # INCLUDES, setting the cache variable VAR accordingly. 1803 ac_fn_c_check_header_compile () 1804 { 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807 printf %s "checking for $2... " >&6; } 1808 if eval test \${$3+y} 1809 then : 1810 printf %s "(cached) " >&6 1811 else case e in #( 1812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1813 /* end confdefs.h. */ 1814 $4 1815 #include <$2> 1816 _ACEOF 1817 if ac_fn_c_try_compile "$LINENO" 1818 then : 1819 eval "$3=yes" 1820 else case e in #( 1821 e) eval "$3=no" ;; 1822 esac 1823 fi 1824 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1825 esac 1826 fi 1827 eval ac_res=\$$3 1828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1829 printf "%s\n" "$ac_res" >&6; } 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 1832 } # ac_fn_c_check_header_compile 1833 1834 # ac_fn_c_try_link LINENO 1835 # ----------------------- 1836 # Try to link conftest.$ac_ext, and return whether this succeeded. 1837 ac_fn_c_try_link () 1838 { 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1841 if { { ac_try="$ac_link" 1842 case "(($ac_try" in 1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1844 *) ac_try_echo=$ac_try;; 1845 esac 1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1847 printf "%s\n" "$ac_try_echo"; } >&5 1848 (eval "$ac_link") 2>conftest.err 1849 ac_status=$? 1850 if test -s conftest.err; then 1851 grep -v '^ *+' conftest.err >conftest.er1 1852 cat conftest.er1 >&5 1853 mv -f conftest.er1 conftest.err 1854 fi 1855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1856 test $ac_status = 0; } && { 1857 test -z "$ac_c_werror_flag" || 1858 test ! -s conftest.err 1859 } && test -s conftest$ac_exeext && { 1860 test "$cross_compiling" = yes || 1861 test -x conftest$ac_exeext 1862 } 1863 then : 1864 ac_retval=0 1865 else case e in #( 1866 e) printf "%s\n" "$as_me: failed program was:" >&5 1867 sed 's/^/| /' conftest.$ac_ext >&5 1868 1869 ac_retval=1 ;; 1870 esac 1871 fi 1872 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1873 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1874 # interfere with the next link command; also delete a directory that is 1875 # left behind by Apple's compiler. We do this before executing the actions. 1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1878 as_fn_set_status $ac_retval 1879 1880 } # ac_fn_c_try_link 1881 1882 # ac_fn_c_check_func LINENO FUNC VAR 1883 # ---------------------------------- 1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1885 ac_fn_c_check_func () 1886 { 1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1889 printf %s "checking for $2... " >&6; } 1890 if eval test \${$3+y} 1891 then : 1892 printf %s "(cached) " >&6 1893 else case e in #( 1894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1895 /* end confdefs.h. */ 1896 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1897 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1898 #define $2 innocuous_$2 1899 1900 /* System header to define __stub macros and hopefully few prototypes, 1901 which can conflict with char $2 (void); below. */ 1902 1903 #include <limits.h> 1904 #undef $2 1905 1906 /* Override any GCC internal prototype to avoid an error. 1907 Use char because int might match the return type of a GCC 1908 builtin and then its argument prototype would still apply. */ 1909 #ifdef __cplusplus 1910 extern "C" 1911 #endif 1912 char $2 (void); 1913 /* The GNU C library defines this for functions which it implements 1914 to always fail with ENOSYS. Some functions are actually named 1915 something starting with __ and the normal name is an alias. */ 1916 #if defined __stub_$2 || defined __stub___$2 1917 choke me 1918 #endif 1919 1920 int 1921 main (void) 1922 { 1923 return $2 (); 1924 ; 1925 return 0; 1926 } 1927 _ACEOF 1928 if ac_fn_c_try_link "$LINENO" 1929 then : 1930 eval "$3=yes" 1931 else case e in #( 1932 e) eval "$3=no" ;; 1933 esac 1934 fi 1935 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1936 conftest$ac_exeext conftest.$ac_ext ;; 1937 esac 1938 fi 1939 eval ac_res=\$$3 1940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1941 printf "%s\n" "$ac_res" >&6; } 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1943 1944 } # ac_fn_c_check_func 1945 1946 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1947 # ------------------------------------------------------------------ 1948 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1949 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1950 ac_fn_check_decl () 1951 { 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 as_decl_name=`echo $2|sed 's/ *(.*//'` 1954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1955 printf %s "checking whether $as_decl_name is declared... " >&6; } 1956 if eval test \${$3+y} 1957 then : 1958 printf %s "(cached) " >&6 1959 else case e in #( 1960 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1961 eval ac_save_FLAGS=\$$6 1962 as_fn_append $6 " $5" 1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1964 /* end confdefs.h. */ 1965 $4 1966 int 1967 main (void) 1968 { 1969 #ifndef $as_decl_name 1970 #ifdef __cplusplus 1971 (void) $as_decl_use; 1972 #else 1973 (void) $as_decl_name; 1974 #endif 1975 #endif 1976 1977 ; 1978 return 0; 1979 } 1980 _ACEOF 1981 if ac_fn_c_try_compile "$LINENO" 1982 then : 1983 eval "$3=yes" 1984 else case e in #( 1985 e) eval "$3=no" ;; 1986 esac 1987 fi 1988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1989 eval $6=\$ac_save_FLAGS 1990 ;; 1991 esac 1992 fi 1993 eval ac_res=\$$3 1994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1995 printf "%s\n" "$ac_res" >&6; } 1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1997 1998 } # ac_fn_check_decl 1999 2000 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2001 # ---------------------------------------------------- 2002 # Tries to find if the field MEMBER exists in type AGGR, after including 2003 # INCLUDES, setting cache variable VAR accordingly. 2004 ac_fn_c_check_member () 2005 { 2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2008 printf %s "checking for $2.$3... " >&6; } 2009 if eval test \${$4+y} 2010 then : 2011 printf %s "(cached) " >&6 2012 else case e in #( 2013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014 /* end confdefs.h. */ 2015 $5 2016 int 2017 main (void) 2018 { 2019 static $2 ac_aggr; 2020 if (ac_aggr.$3) 2021 return 0; 2022 ; 2023 return 0; 2024 } 2025 _ACEOF 2026 if ac_fn_c_try_compile "$LINENO" 2027 then : 2028 eval "$4=yes" 2029 else case e in #( 2030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031 /* end confdefs.h. */ 2032 $5 2033 int 2034 main (void) 2035 { 2036 static $2 ac_aggr; 2037 if (sizeof ac_aggr.$3) 2038 return 0; 2039 ; 2040 return 0; 2041 } 2042 _ACEOF 2043 if ac_fn_c_try_compile "$LINENO" 2044 then : 2045 eval "$4=yes" 2046 else case e in #( 2047 e) eval "$4=no" ;; 2048 esac 2049 fi 2050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2051 esac 2052 fi 2053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2054 esac 2055 fi 2056 eval ac_res=\$$4 2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2058 printf "%s\n" "$ac_res" >&6; } 2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2060 2061 } # ac_fn_c_check_member 2062 2063 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2064 # ------------------------------------------- 2065 # Tests whether TYPE exists after having included INCLUDES, setting cache 2066 # variable VAR accordingly. 2067 ac_fn_c_check_type () 2068 { 2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2071 printf %s "checking for $2... " >&6; } 2072 if eval test \${$3+y} 2073 then : 2074 printf %s "(cached) " >&6 2075 else case e in #( 2076 e) eval "$3=no" 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2078 /* end confdefs.h. */ 2079 $4 2080 int 2081 main (void) 2082 { 2083 if (sizeof ($2)) 2084 return 0; 2085 ; 2086 return 0; 2087 } 2088 _ACEOF 2089 if ac_fn_c_try_compile "$LINENO" 2090 then : 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092 /* end confdefs.h. */ 2093 $4 2094 int 2095 main (void) 2096 { 2097 if (sizeof (($2))) 2098 return 0; 2099 ; 2100 return 0; 2101 } 2102 _ACEOF 2103 if ac_fn_c_try_compile "$LINENO" 2104 then : 2105 2106 else case e in #( 2107 e) eval "$3=yes" ;; 2108 esac 2109 fi 2110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2111 fi 2112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 2113 esac 2114 fi 2115 eval ac_res=\$$3 2116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2117 printf "%s\n" "$ac_res" >&6; } 2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2119 2120 } # ac_fn_c_check_type 2121 ac_configure_args_raw= 2122 for ac_arg 2123 do 2124 case $ac_arg in 2125 *\'*) 2126 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2127 esac 2128 as_fn_append ac_configure_args_raw " '$ac_arg'" 2129 done 2130 2131 case $ac_configure_args_raw in 2132 *$as_nl*) 2133 ac_safe_unquote= ;; 2134 *) 2135 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2136 ac_unsafe_a="$ac_unsafe_z#~" 2137 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2138 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2139 esac 2140 2141 cat >config.log <<_ACEOF 2142 This file contains any messages produced by compilers while 2143 running configure, to aid debugging if configure makes a mistake. 2144 2145 It was created by libXfont2 $as_me 2.0.7, which was 2146 generated by GNU Autoconf 2.72. Invocation command line was 2147 2148 $ $0$ac_configure_args_raw 2149 2150 _ACEOF 2151 exec 5>>config.log 2152 { 2153 cat <<_ASUNAME 2154 ## --------- ## 2155 ## Platform. ## 2156 ## --------- ## 2157 2158 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2159 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2160 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2161 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2162 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2163 2164 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2165 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2166 2167 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2168 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2169 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2170 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2171 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2172 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2173 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2174 2175 _ASUNAME 2176 2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2178 for as_dir in $PATH 2179 do 2180 IFS=$as_save_IFS 2181 case $as_dir in #((( 2182 '') as_dir=./ ;; 2183 */) ;; 2184 *) as_dir=$as_dir/ ;; 2185 esac 2186 printf "%s\n" "PATH: $as_dir" 2187 done 2188 IFS=$as_save_IFS 2189 2190 } >&5 2191 2192 cat >&5 <<_ACEOF 2193 2194 2195 ## ----------- ## 2196 ## Core tests. ## 2197 ## ----------- ## 2198 2199 _ACEOF 2200 2201 2202 # Keep a trace of the command line. 2203 # Strip out --no-create and --no-recursion so they do not pile up. 2204 # Strip out --silent because we don't want to record it for future runs. 2205 # Also quote any args containing shell meta-characters. 2206 # Make two passes to allow for proper duplicate-argument suppression. 2207 ac_configure_args= 2208 ac_configure_args0= 2209 ac_configure_args1= 2210 ac_must_keep_next=false 2211 for ac_pass in 1 2 2212 do 2213 for ac_arg 2214 do 2215 case $ac_arg in 2216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2218 | -silent | --silent | --silen | --sile | --sil) 2219 continue ;; 2220 *\'*) 2221 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2222 esac 2223 case $ac_pass in 2224 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2225 2) 2226 as_fn_append ac_configure_args1 " '$ac_arg'" 2227 if test $ac_must_keep_next = true; then 2228 ac_must_keep_next=false # Got value, back to normal. 2229 else 2230 case $ac_arg in 2231 *=* | --config-cache | -C | -disable-* | --disable-* \ 2232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2234 | -with-* | --with-* | -without-* | --without-* | --x) 2235 case "$ac_configure_args0 " in 2236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2237 esac 2238 ;; 2239 -* ) ac_must_keep_next=true ;; 2240 esac 2241 fi 2242 as_fn_append ac_configure_args " '$ac_arg'" 2243 ;; 2244 esac 2245 done 2246 done 2247 { ac_configure_args0=; unset ac_configure_args0;} 2248 { ac_configure_args1=; unset ac_configure_args1;} 2249 2250 # When interrupted or exit'd, cleanup temporary files, and complete 2251 # config.log. We remove comments because anyway the quotes in there 2252 # would cause problems or look ugly. 2253 # WARNING: Use '\'' to represent an apostrophe within the trap. 2254 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2255 trap 'exit_status=$? 2256 # Sanitize IFS. 2257 IFS=" "" $as_nl" 2258 # Save into config.log some information that might help in debugging. 2259 { 2260 echo 2261 2262 printf "%s\n" "## ---------------- ## 2263 ## Cache variables. ## 2264 ## ---------------- ##" 2265 echo 2266 # The following way of writing the cache mishandles newlines in values, 2267 ( 2268 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2269 eval ac_val=\$$ac_var 2270 case $ac_val in #( 2271 *${as_nl}*) 2272 case $ac_var in #( 2273 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2274 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2275 esac 2276 case $ac_var in #( 2277 _ | IFS | as_nl) ;; #( 2278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2279 *) { eval $ac_var=; unset $ac_var;} ;; 2280 esac ;; 2281 esac 2282 done 2283 (set) 2>&1 | 2284 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2285 *${as_nl}ac_space=\ *) 2286 sed -n \ 2287 "s/'\''/'\''\\\\'\'''\''/g; 2288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2289 ;; #( 2290 *) 2291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2292 ;; 2293 esac | 2294 sort 2295 ) 2296 echo 2297 2298 printf "%s\n" "## ----------------- ## 2299 ## Output variables. ## 2300 ## ----------------- ##" 2301 echo 2302 for ac_var in $ac_subst_vars 2303 do 2304 eval ac_val=\$$ac_var 2305 case $ac_val in 2306 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2307 esac 2308 printf "%s\n" "$ac_var='\''$ac_val'\''" 2309 done | sort 2310 echo 2311 2312 if test -n "$ac_subst_files"; then 2313 printf "%s\n" "## ------------------- ## 2314 ## File substitutions. ## 2315 ## ------------------- ##" 2316 echo 2317 for ac_var in $ac_subst_files 2318 do 2319 eval ac_val=\$$ac_var 2320 case $ac_val in 2321 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2322 esac 2323 printf "%s\n" "$ac_var='\''$ac_val'\''" 2324 done | sort 2325 echo 2326 fi 2327 2328 if test -s confdefs.h; then 2329 printf "%s\n" "## ----------- ## 2330 ## confdefs.h. ## 2331 ## ----------- ##" 2332 echo 2333 cat confdefs.h 2334 echo 2335 fi 2336 test "$ac_signal" != 0 && 2337 printf "%s\n" "$as_me: caught signal $ac_signal" 2338 printf "%s\n" "$as_me: exit $exit_status" 2339 } >&5 2340 rm -f core *.core core.conftest.* && 2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2342 exit $exit_status 2343 ' 0 2344 for ac_signal in 1 2 13 15; do 2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2346 done 2347 ac_signal=0 2348 2349 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2350 rm -f -r conftest* confdefs.h 2351 2352 printf "%s\n" "/* confdefs.h */" > confdefs.h 2353 2354 # Predefined preprocessor variables. 2355 2356 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2357 2358 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2359 2360 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2361 2362 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2363 2364 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2365 2366 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2367 2368 2369 # Let the site file select an alternate cache file if it wants to. 2370 # Prefer an explicitly selected file to automatically selected ones. 2371 if test -n "$CONFIG_SITE"; then 2372 ac_site_files="$CONFIG_SITE" 2373 elif test "x$prefix" != xNONE; then 2374 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2375 else 2376 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2377 fi 2378 2379 for ac_site_file in $ac_site_files 2380 do 2381 case $ac_site_file in #( 2382 */*) : 2383 ;; #( 2384 *) : 2385 ac_site_file=./$ac_site_file ;; 2386 esac 2387 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2389 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2390 sed 's/^/| /' "$ac_site_file" >&5 2391 . "$ac_site_file" \ 2392 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2393 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2394 as_fn_error $? "failed to load site script $ac_site_file 2395 See 'config.log' for more details" "$LINENO" 5; } 2396 fi 2397 done 2398 2399 if test -r "$cache_file"; then 2400 # Some versions of bash will fail to source /dev/null (special files 2401 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2402 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2404 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2405 case $cache_file in 2406 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2407 *) . "./$cache_file";; 2408 esac 2409 fi 2410 else 2411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2412 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2413 >$cache_file 2414 fi 2415 2416 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2417 # Test code for whether the C compiler supports C89 (global declarations) 2418 ac_c_conftest_c89_globals=' 2419 /* Does the compiler advertise C89 conformance? 2420 Do not test the value of __STDC__, because some compilers set it to 0 2421 while being otherwise adequately conformant. */ 2422 #if !defined __STDC__ 2423 # error "Compiler does not advertise C89 conformance" 2424 #endif 2425 2426 #include <stddef.h> 2427 #include <stdarg.h> 2428 struct stat; 2429 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2430 struct buf { int x; }; 2431 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2432 static char *e (char **p, int i) 2433 { 2434 return p[i]; 2435 } 2436 static char *f (char * (*g) (char **, int), char **p, ...) 2437 { 2438 char *s; 2439 va_list v; 2440 va_start (v,p); 2441 s = g (p, va_arg (v,int)); 2442 va_end (v); 2443 return s; 2444 } 2445 2446 /* C89 style stringification. */ 2447 #define noexpand_stringify(a) #a 2448 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2449 2450 /* C89 style token pasting. Exercises some of the corner cases that 2451 e.g. old MSVC gets wrong, but not very hard. */ 2452 #define noexpand_concat(a,b) a##b 2453 #define expand_concat(a,b) noexpand_concat(a,b) 2454 extern int vA; 2455 extern int vbee; 2456 #define aye A 2457 #define bee B 2458 int *pvA = &expand_concat(v,aye); 2459 int *pvbee = &noexpand_concat(v,bee); 2460 2461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2462 function prototypes and stuff, but not \xHH hex character constants. 2463 These do not provoke an error unfortunately, instead are silently treated 2464 as an "x". The following induces an error, until -std is added to get 2465 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2466 array size at least. It is necessary to write \x00 == 0 to get something 2467 that is true only with -std. */ 2468 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2469 2470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2471 inside strings and character constants. */ 2472 #define FOO(x) '\''x'\'' 2473 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2474 2475 int test (int i, double x); 2476 struct s1 {int (*f) (int a);}; 2477 struct s2 {int (*f) (double a);}; 2478 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2479 int, int);' 2480 2481 # Test code for whether the C compiler supports C89 (body of main). 2482 ac_c_conftest_c89_main=' 2483 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2484 ' 2485 2486 # Test code for whether the C compiler supports C99 (global declarations) 2487 ac_c_conftest_c99_globals=' 2488 /* Does the compiler advertise C99 conformance? */ 2489 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2490 # error "Compiler does not advertise C99 conformance" 2491 #endif 2492 2493 // See if C++-style comments work. 2494 2495 #include <stdbool.h> 2496 extern int puts (const char *); 2497 extern int printf (const char *, ...); 2498 extern int dprintf (int, const char *, ...); 2499 extern void *malloc (size_t); 2500 extern void free (void *); 2501 2502 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2503 // dprintf is used instead of fprintf to avoid needing to declare 2504 // FILE and stderr. 2505 #define debug(...) dprintf (2, __VA_ARGS__) 2506 #define showlist(...) puts (#__VA_ARGS__) 2507 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2508 static void 2509 test_varargs_macros (void) 2510 { 2511 int x = 1234; 2512 int y = 5678; 2513 debug ("Flag"); 2514 debug ("X = %d\n", x); 2515 showlist (The first, second, and third items.); 2516 report (x>y, "x is %d but y is %d", x, y); 2517 } 2518 2519 // Check long long types. 2520 #define BIG64 18446744073709551615ull 2521 #define BIG32 4294967295ul 2522 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2523 #if !BIG_OK 2524 #error "your preprocessor is broken" 2525 #endif 2526 #if BIG_OK 2527 #else 2528 #error "your preprocessor is broken" 2529 #endif 2530 static long long int bignum = -9223372036854775807LL; 2531 static unsigned long long int ubignum = BIG64; 2532 2533 struct incomplete_array 2534 { 2535 int datasize; 2536 double data[]; 2537 }; 2538 2539 struct named_init { 2540 int number; 2541 const wchar_t *name; 2542 double average; 2543 }; 2544 2545 typedef const char *ccp; 2546 2547 static inline int 2548 test_restrict (ccp restrict text) 2549 { 2550 // Iterate through items via the restricted pointer. 2551 // Also check for declarations in for loops. 2552 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2553 continue; 2554 return 0; 2555 } 2556 2557 // Check varargs and va_copy. 2558 static bool 2559 test_varargs (const char *format, ...) 2560 { 2561 va_list args; 2562 va_start (args, format); 2563 va_list args_copy; 2564 va_copy (args_copy, args); 2565 2566 const char *str = ""; 2567 int number = 0; 2568 float fnumber = 0; 2569 2570 while (*format) 2571 { 2572 switch (*format++) 2573 { 2574 case '\''s'\'': // string 2575 str = va_arg (args_copy, const char *); 2576 break; 2577 case '\''d'\'': // int 2578 number = va_arg (args_copy, int); 2579 break; 2580 case '\''f'\'': // float 2581 fnumber = va_arg (args_copy, double); 2582 break; 2583 default: 2584 break; 2585 } 2586 } 2587 va_end (args_copy); 2588 va_end (args); 2589 2590 return *str && number && fnumber; 2591 } 2592 ' 2593 2594 # Test code for whether the C compiler supports C99 (body of main). 2595 ac_c_conftest_c99_main=' 2596 // Check bool. 2597 _Bool success = false; 2598 success |= (argc != 0); 2599 2600 // Check restrict. 2601 if (test_restrict ("String literal") == 0) 2602 success = true; 2603 char *restrict newvar = "Another string"; 2604 2605 // Check varargs. 2606 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2607 test_varargs_macros (); 2608 2609 // Check flexible array members. 2610 struct incomplete_array *ia = 2611 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2612 ia->datasize = 10; 2613 for (int i = 0; i < ia->datasize; ++i) 2614 ia->data[i] = i * 1.234; 2615 // Work around memory leak warnings. 2616 free (ia); 2617 2618 // Check named initializers. 2619 struct named_init ni = { 2620 .number = 34, 2621 .name = L"Test wide string", 2622 .average = 543.34343, 2623 }; 2624 2625 ni.number = 58; 2626 2627 int dynamic_array[ni.number]; 2628 dynamic_array[0] = argv[0][0]; 2629 dynamic_array[ni.number - 1] = 543; 2630 2631 // work around unused variable warnings 2632 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2633 || dynamic_array[ni.number - 1] != 543); 2634 ' 2635 2636 # Test code for whether the C compiler supports C11 (global declarations) 2637 ac_c_conftest_c11_globals=' 2638 /* Does the compiler advertise C11 conformance? */ 2639 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2640 # error "Compiler does not advertise C11 conformance" 2641 #endif 2642 2643 // Check _Alignas. 2644 char _Alignas (double) aligned_as_double; 2645 char _Alignas (0) no_special_alignment; 2646 extern char aligned_as_int; 2647 char _Alignas (0) _Alignas (int) aligned_as_int; 2648 2649 // Check _Alignof. 2650 enum 2651 { 2652 int_alignment = _Alignof (int), 2653 int_array_alignment = _Alignof (int[100]), 2654 char_alignment = _Alignof (char) 2655 }; 2656 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2657 2658 // Check _Noreturn. 2659 int _Noreturn does_not_return (void) { for (;;) continue; } 2660 2661 // Check _Static_assert. 2662 struct test_static_assert 2663 { 2664 int x; 2665 _Static_assert (sizeof (int) <= sizeof (long int), 2666 "_Static_assert does not work in struct"); 2667 long int y; 2668 }; 2669 2670 // Check UTF-8 literals. 2671 #define u8 syntax error! 2672 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2673 2674 // Check duplicate typedefs. 2675 typedef long *long_ptr; 2676 typedef long int *long_ptr; 2677 typedef long_ptr long_ptr; 2678 2679 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2680 struct anonymous 2681 { 2682 union { 2683 struct { int i; int j; }; 2684 struct { int k; long int l; } w; 2685 }; 2686 int m; 2687 } v1; 2688 ' 2689 2690 # Test code for whether the C compiler supports C11 (body of main). 2691 ac_c_conftest_c11_main=' 2692 _Static_assert ((offsetof (struct anonymous, i) 2693 == offsetof (struct anonymous, w.k)), 2694 "Anonymous union alignment botch"); 2695 v1.i = 2; 2696 v1.w.k = 5; 2697 ok |= v1.i != 5; 2698 ' 2699 2700 # Test code for whether the C compiler supports C11 (complete). 2701 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2702 ${ac_c_conftest_c99_globals} 2703 ${ac_c_conftest_c11_globals} 2704 2705 int 2706 main (int argc, char **argv) 2707 { 2708 int ok = 0; 2709 ${ac_c_conftest_c89_main} 2710 ${ac_c_conftest_c99_main} 2711 ${ac_c_conftest_c11_main} 2712 return ok; 2713 } 2714 " 2715 2716 # Test code for whether the C compiler supports C99 (complete). 2717 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2718 ${ac_c_conftest_c99_globals} 2719 2720 int 2721 main (int argc, char **argv) 2722 { 2723 int ok = 0; 2724 ${ac_c_conftest_c89_main} 2725 ${ac_c_conftest_c99_main} 2726 return ok; 2727 } 2728 " 2729 2730 # Test code for whether the C compiler supports C89 (complete). 2731 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2732 2733 int 2734 main (int argc, char **argv) 2735 { 2736 int ok = 0; 2737 ${ac_c_conftest_c89_main} 2738 return ok; 2739 } 2740 " 2741 2742 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2743 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2744 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2745 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2746 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2747 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2748 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2749 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2750 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2751 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2752 2753 # Auxiliary files required by this configure script. 2754 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh" 2755 2756 # Locations in which to look for auxiliary files. 2757 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2758 2759 # Search for a directory containing all of the required auxiliary files, 2760 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2761 # If we don't find one directory that contains all the files we need, 2762 # we report the set of missing files from the *first* directory in 2763 # $ac_aux_dir_candidates and give up. 2764 ac_missing_aux_files="" 2765 ac_first_candidate=: 2766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2768 as_found=false 2769 for as_dir in $ac_aux_dir_candidates 2770 do 2771 IFS=$as_save_IFS 2772 case $as_dir in #((( 2773 '') as_dir=./ ;; 2774 */) ;; 2775 *) as_dir=$as_dir/ ;; 2776 esac 2777 as_found=: 2778 2779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2780 ac_aux_dir_found=yes 2781 ac_install_sh= 2782 for ac_aux in $ac_aux_files 2783 do 2784 # As a special case, if "install-sh" is required, that requirement 2785 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2786 # and $ac_install_sh is set appropriately for whichever one is found. 2787 if test x"$ac_aux" = x"install-sh" 2788 then 2789 if test -f "${as_dir}install-sh"; then 2790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2791 ac_install_sh="${as_dir}install-sh -c" 2792 elif test -f "${as_dir}install.sh"; then 2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2794 ac_install_sh="${as_dir}install.sh -c" 2795 elif test -f "${as_dir}shtool"; then 2796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2797 ac_install_sh="${as_dir}shtool install -c" 2798 else 2799 ac_aux_dir_found=no 2800 if $ac_first_candidate; then 2801 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2802 else 2803 break 2804 fi 2805 fi 2806 else 2807 if test -f "${as_dir}${ac_aux}"; then 2808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2809 else 2810 ac_aux_dir_found=no 2811 if $ac_first_candidate; then 2812 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2813 else 2814 break 2815 fi 2816 fi 2817 fi 2818 done 2819 if test "$ac_aux_dir_found" = yes; then 2820 ac_aux_dir="$as_dir" 2821 break 2822 fi 2823 ac_first_candidate=false 2824 2825 as_found=false 2826 done 2827 IFS=$as_save_IFS 2828 if $as_found 2829 then : 2830 2831 else case e in #( 2832 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2833 esac 2834 fi 2835 2836 2837 # These three variables are undocumented and unsupported, 2838 # and are intended to be withdrawn in a future Autoconf release. 2839 # They can cause serious problems if a builder's source tree is in a directory 2840 # whose full name contains unusual characters. 2841 if test -f "${ac_aux_dir}config.guess"; then 2842 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2843 fi 2844 if test -f "${ac_aux_dir}config.sub"; then 2845 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2846 fi 2847 if test -f "$ac_aux_dir/configure"; then 2848 ac_configure="$SHELL ${ac_aux_dir}configure" 2849 fi 2850 2851 # Check that the precious variables saved in the cache have kept the same 2852 # value. 2853 ac_cache_corrupted=false 2854 for ac_var in $ac_precious_vars; do 2855 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2856 eval ac_new_set=\$ac_env_${ac_var}_set 2857 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2858 eval ac_new_val=\$ac_env_${ac_var}_value 2859 case $ac_old_set,$ac_new_set in 2860 set,) 2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2862 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2863 ac_cache_corrupted=: ;; 2864 ,set) 2865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2866 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2867 ac_cache_corrupted=: ;; 2868 ,);; 2869 *) 2870 if test "x$ac_old_val" != "x$ac_new_val"; then 2871 # differences in whitespace do not lead to failure. 2872 ac_old_val_w=`echo x $ac_old_val` 2873 ac_new_val_w=`echo x $ac_new_val` 2874 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2876 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2877 ac_cache_corrupted=: 2878 else 2879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2880 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2881 eval $ac_var=\$ac_old_val 2882 fi 2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2884 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2886 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2887 fi;; 2888 esac 2889 # Pass precious variables to config.status. 2890 if test "$ac_new_set" = set; then 2891 case $ac_new_val in 2892 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2893 *) ac_arg=$ac_var=$ac_new_val ;; 2894 esac 2895 case " $ac_configure_args " in 2896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2897 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2898 esac 2899 fi 2900 done 2901 if $ac_cache_corrupted; then 2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2903 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2905 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2906 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2907 and start over" "$LINENO" 5 2908 fi 2909 ## -------------------- ## 2910 ## Main body of script. ## 2911 ## -------------------- ## 2912 2913 ac_ext=c 2914 ac_cpp='$CPP $CPPFLAGS' 2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2918 2919 2920 2921 ac_config_headers="$ac_config_headers config.h" 2922 2923 2924 2925 # Initialize Automake 2926 am__api_version='1.17' 2927 2928 2929 2930 # Find a good install program. We prefer a C program (faster), 2931 # so one script is as good as another. But avoid the broken or 2932 # incompatible versions: 2933 # SysV /etc/install, /usr/sbin/install 2934 # SunOS /usr/etc/install 2935 # IRIX /sbin/install 2936 # AIX /bin/install 2937 # AmigaOS /C/install, which installs bootblocks on floppy discs 2938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2941 # OS/2's system install, which has a completely different semantic 2942 # ./install, which can be erroneously created by make from ./install.sh. 2943 # Reject install programs that cannot install multiple files. 2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2945 printf %s "checking for a BSD-compatible install... " >&6; } 2946 if test -z "$INSTALL"; then 2947 if test ${ac_cv_path_install+y} 2948 then : 2949 printf %s "(cached) " >&6 2950 else case e in #( 2951 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952 for as_dir in $PATH 2953 do 2954 IFS=$as_save_IFS 2955 case $as_dir in #((( 2956 '') as_dir=./ ;; 2957 */) ;; 2958 *) as_dir=$as_dir/ ;; 2959 esac 2960 # Account for fact that we put trailing slashes in our PATH walk. 2961 case $as_dir in #(( 2962 ./ | /[cC]/* | \ 2963 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2964 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2965 /usr/ucb/* ) ;; 2966 *) 2967 # OSF1 and SCO ODT 3.0 have their own names for install. 2968 # Don't use installbsd from OSF since it installs stuff as root 2969 # by default. 2970 for ac_prog in ginstall scoinst install; do 2971 for ac_exec_ext in '' $ac_executable_extensions; do 2972 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2973 if test $ac_prog = install && 2974 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2975 # AIX install. It has an incompatible calling convention. 2976 : 2977 elif test $ac_prog = install && 2978 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2979 # program-specific install script used by HP pwplus--don't use. 2980 : 2981 else 2982 rm -rf conftest.one conftest.two conftest.dir 2983 echo one > conftest.one 2984 echo two > conftest.two 2985 mkdir conftest.dir 2986 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2987 test -s conftest.one && test -s conftest.two && 2988 test -s conftest.dir/conftest.one && 2989 test -s conftest.dir/conftest.two 2990 then 2991 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2992 break 3 2993 fi 2994 fi 2995 fi 2996 done 2997 done 2998 ;; 2999 esac 3000 3001 done 3002 IFS=$as_save_IFS 3003 3004 rm -rf conftest.one conftest.two conftest.dir 3005 ;; 3006 esac 3007 fi 3008 if test ${ac_cv_path_install+y}; then 3009 INSTALL=$ac_cv_path_install 3010 else 3011 # As a last resort, use the slow shell script. Don't cache a 3012 # value for INSTALL within a source directory, because that will 3013 # break other packages using the cache if that directory is 3014 # removed, or if the value is a relative name. 3015 INSTALL=$ac_install_sh 3016 fi 3017 fi 3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3019 printf "%s\n" "$INSTALL" >&6; } 3020 3021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3022 # It thinks the first close brace ends the variable substitution. 3023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3024 3025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3026 3027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3028 3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 3030 printf %s "checking whether sleep supports fractional seconds... " >&6; } 3031 if test ${am_cv_sleep_fractional_seconds+y} 3032 then : 3033 printf %s "(cached) " >&6 3034 else case e in #( 3035 e) if sleep 0.001 2>/dev/null 3036 then : 3037 am_cv_sleep_fractional_seconds=yes 3038 else case e in #( 3039 e) am_cv_sleep_fractional_seconds=no ;; 3040 esac 3041 fi 3042 ;; 3043 esac 3044 fi 3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3046 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 3047 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3049 printf %s "checking filesystem timestamp resolution... " >&6; } 3050 if test ${am_cv_filesystem_timestamp_resolution+y} 3051 then : 3052 printf %s "(cached) " >&6 3053 else case e in #( 3054 e) # Default to the worst case. 3055 am_cv_filesystem_timestamp_resolution=2 3056 3057 # Only try to go finer than 1 sec if sleep can do it. 3058 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3059 # - 1 sec is not much of a win compared to 2 sec, and 3060 # - it takes 2 seconds to perform the test whether 1 sec works. 3061 # 3062 # Instead, just use the default 2s on platforms that have 1s resolution, 3063 # accept the extra 1s delay when using $sleep in the Automake tests, in 3064 # exchange for not incurring the 2s delay for running the test for all 3065 # packages. 3066 # 3067 am_try_resolutions= 3068 if test "$am_cv_sleep_fractional_seconds" = yes; then 3069 # Even a millisecond often causes a bunch of false positives, 3070 # so just try a hundredth of a second. The time saved between .001 and 3071 # .01 is not terribly consequential. 3072 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3073 fi 3074 3075 # In order to catch current-generation FAT out, we must *modify* files 3076 # that already exist; the *creation* timestamp is finer. Use names 3077 # that make ls -t sort them differently when they have equal 3078 # timestamps than when they have distinct timestamps, keeping 3079 # in mind that ls -t prints the *newest* file first. 3080 rm -f conftest.ts? 3081 : > conftest.ts1 3082 : > conftest.ts2 3083 : > conftest.ts3 3084 3085 # Make sure ls -t actually works. Do 'set' in a subshell so we don't 3086 # clobber the current shell's arguments. (Outer-level square brackets 3087 # are removed by m4; they're present so that m4 does not expand 3088 # <dollar><star>; be careful, easy to get confused.) 3089 if ( 3090 set X `ls -t conftest.ts[12]` && 3091 { 3092 test "$*" != "X conftest.ts1 conftest.ts2" || 3093 test "$*" != "X conftest.ts2 conftest.ts1"; 3094 } 3095 ); then :; else 3096 # If neither matched, then we have a broken ls. This can happen 3097 # if, for instance, CONFIG_SHELL is bash and it inherits a 3098 # broken ls alias from the environment. This has actually 3099 # happened. Such a system could not be considered "sane". 3100 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 3101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3102 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3103 as_fn_error $? "ls -t produces unexpected output. 3104 Make sure there is not a broken ls alias in your environment. 3105 See 'config.log' for more details" "$LINENO" 5; } 3106 fi 3107 3108 for am_try_res in $am_try_resolutions; do 3109 # Any one fine-grained sleep might happen to cross the boundary 3110 # between two values of a coarser actual resolution, but if we do 3111 # two fine-grained sleeps in a row, at least one of them will fall 3112 # entirely within a coarse interval. 3113 echo alpha > conftest.ts1 3114 sleep $am_try_res 3115 echo beta > conftest.ts2 3116 sleep $am_try_res 3117 echo gamma > conftest.ts3 3118 3119 # We assume that 'ls -t' will make use of high-resolution 3120 # timestamps if the operating system supports them at all. 3121 if (set X `ls -t conftest.ts?` && 3122 test "$2" = conftest.ts3 && 3123 test "$3" = conftest.ts2 && 3124 test "$4" = conftest.ts1); then 3125 # 3126 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 3127 # because we don't need to test make. 3128 make_ok=true 3129 if test $am_try_res != 1; then 3130 # But if we've succeeded so far with a subsecond resolution, we 3131 # have one more thing to check: make. It can happen that 3132 # everything else supports the subsecond mtimes, but make doesn't; 3133 # notably on macOS, which ships make 3.81 from 2006 (the last one 3134 # released under GPLv2). https://bugs.gnu.org/68808 3135 # 3136 # We test $MAKE if it is defined in the environment, else "make". 3137 # It might get overridden later, but our hope is that in practice 3138 # it does not matter: it is the system "make" which is (by far) 3139 # the most likely to be broken, whereas if the user overrides it, 3140 # probably they did so with a better, or at least not worse, make. 3141 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 3142 # 3143 # Create a Makefile (real tab character here): 3144 rm -f conftest.mk 3145 echo 'conftest.ts1: conftest.ts2' >conftest.mk 3146 echo ' touch conftest.ts2' >>conftest.mk 3147 # 3148 # Now, running 3149 # touch conftest.ts1; touch conftest.ts2; make 3150 # should touch ts1 because ts2 is newer. This could happen by luck, 3151 # but most often, it will fail if make's support is insufficient. So 3152 # test for several consecutive successes. 3153 # 3154 # (We reuse conftest.ts[12] because we still want to modify existing 3155 # files, not create new ones, per above.) 3156 n=0 3157 make=${MAKE-make} 3158 until test $n -eq 3; do 3159 echo one > conftest.ts1 3160 sleep $am_try_res 3161 echo two > conftest.ts2 # ts2 should now be newer than ts1 3162 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 3163 make_ok=false 3164 break # out of $n loop 3165 fi 3166 n=`expr $n + 1` 3167 done 3168 fi 3169 # 3170 if $make_ok; then 3171 # Everything we know to check worked out, so call this resolution good. 3172 am_cv_filesystem_timestamp_resolution=$am_try_res 3173 break # out of $am_try_res loop 3174 fi 3175 # Otherwise, we'll go on to check the next resolution. 3176 fi 3177 done 3178 rm -f conftest.ts? 3179 # (end _am_filesystem_timestamp_resolution) 3180 ;; 3181 esac 3182 fi 3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3184 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3185 3186 # This check should not be cached, as it may vary across builds of 3187 # different projects. 3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3189 printf %s "checking whether build environment is sane... " >&6; } 3190 # Reject unsafe characters in $srcdir or the absolute working directory 3191 # name. Accept space and tab only in the latter. 3192 am_lf=' 3193 ' 3194 case `pwd` in 3195 *[\\\"\#\$\&\'\`$am_lf]*) 3196 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3197 esac 3198 case $srcdir in 3199 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3200 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3201 esac 3202 3203 # Do 'set' in a subshell so we don't clobber the current shell's 3204 # arguments. Must try -L first in case configure is actually a 3205 # symlink; some systems play weird games with the mod time of symlinks 3206 # (eg FreeBSD returns the mod time of the symlink's containing 3207 # directory). 3208 am_build_env_is_sane=no 3209 am_has_slept=no 3210 rm -f conftest.file 3211 for am_try in 1 2; do 3212 echo "timestamp, slept: $am_has_slept" > conftest.file 3213 if ( 3214 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3215 if test "$*" = "X"; then 3216 # -L didn't work. 3217 set X `ls -t "$srcdir/configure" conftest.file` 3218 fi 3219 test "$2" = conftest.file 3220 ); then 3221 am_build_env_is_sane=yes 3222 break 3223 fi 3224 # Just in case. 3225 sleep "$am_cv_filesystem_timestamp_resolution" 3226 am_has_slept=yes 3227 done 3228 3229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3230 printf "%s\n" "$am_build_env_is_sane" >&6; } 3231 if test "$am_build_env_is_sane" = no; then 3232 as_fn_error $? "newly created file is older than distributed files! 3233 Check your system clock" "$LINENO" 5 3234 fi 3235 3236 # If we didn't sleep, we still need to ensure time stamps of config.status and 3237 # generated files are strictly newer. 3238 am_sleep_pid= 3239 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3240 then : 3241 3242 else case e in #( 3243 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3244 am_sleep_pid=$! 3245 ;; 3246 esac 3247 fi 3248 3249 rm -f conftest.file 3250 3251 test "$program_prefix" != NONE && 3252 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3253 # Use a double $ so make ignores it. 3254 test "$program_suffix" != NONE && 3255 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3256 # Double any \ or $. 3257 # By default was 's,x,x', remove it if useless. 3258 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3259 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3260 3261 3262 # Expand $ac_aux_dir to an absolute path. 3263 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3264 3265 3266 if test x"${MISSING+set}" != xset; then 3267 MISSING="\${SHELL} '$am_aux_dir/missing'" 3268 fi 3269 # Use eval to expand $SHELL 3270 if eval "$MISSING --is-lightweight"; then 3271 am_missing_run="$MISSING " 3272 else 3273 am_missing_run= 3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3275 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3276 fi 3277 3278 if test x"${install_sh+set}" != xset; then 3279 case $am_aux_dir in 3280 *\ * | *\ *) 3281 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3282 *) 3283 install_sh="\${SHELL} $am_aux_dir/install-sh" 3284 esac 3285 fi 3286 3287 # Installed binaries are usually stripped using 'strip' when the user 3288 # run "make install-strip". However 'strip' might not be the right 3289 # tool to use in cross-compilation environments, therefore Automake 3290 # will honor the 'STRIP' environment variable to overrule this program. 3291 if test "$cross_compiling" != no; then 3292 if test -n "$ac_tool_prefix"; then 3293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3294 set dummy ${ac_tool_prefix}strip; ac_word=$2 3295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3296 printf %s "checking for $ac_word... " >&6; } 3297 if test ${ac_cv_prog_STRIP+y} 3298 then : 3299 printf %s "(cached) " >&6 3300 else case e in #( 3301 e) if test -n "$STRIP"; then 3302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3303 else 3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3305 for as_dir in $PATH 3306 do 3307 IFS=$as_save_IFS 3308 case $as_dir in #((( 3309 '') as_dir=./ ;; 3310 */) ;; 3311 *) as_dir=$as_dir/ ;; 3312 esac 3313 for ac_exec_ext in '' $ac_executable_extensions; do 3314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3315 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3317 break 2 3318 fi 3319 done 3320 done 3321 IFS=$as_save_IFS 3322 3323 fi ;; 3324 esac 3325 fi 3326 STRIP=$ac_cv_prog_STRIP 3327 if test -n "$STRIP"; then 3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3329 printf "%s\n" "$STRIP" >&6; } 3330 else 3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3332 printf "%s\n" "no" >&6; } 3333 fi 3334 3335 3336 fi 3337 if test -z "$ac_cv_prog_STRIP"; then 3338 ac_ct_STRIP=$STRIP 3339 # Extract the first word of "strip", so it can be a program name with args. 3340 set dummy strip; ac_word=$2 3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3342 printf %s "checking for $ac_word... " >&6; } 3343 if test ${ac_cv_prog_ac_ct_STRIP+y} 3344 then : 3345 printf %s "(cached) " >&6 3346 else case e in #( 3347 e) if test -n "$ac_ct_STRIP"; then 3348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3349 else 3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351 for as_dir in $PATH 3352 do 3353 IFS=$as_save_IFS 3354 case $as_dir in #((( 3355 '') as_dir=./ ;; 3356 */) ;; 3357 *) as_dir=$as_dir/ ;; 3358 esac 3359 for ac_exec_ext in '' $ac_executable_extensions; do 3360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3361 ac_cv_prog_ac_ct_STRIP="strip" 3362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3363 break 2 3364 fi 3365 done 3366 done 3367 IFS=$as_save_IFS 3368 3369 fi ;; 3370 esac 3371 fi 3372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3373 if test -n "$ac_ct_STRIP"; then 3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3375 printf "%s\n" "$ac_ct_STRIP" >&6; } 3376 else 3377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3378 printf "%s\n" "no" >&6; } 3379 fi 3380 3381 if test "x$ac_ct_STRIP" = x; then 3382 STRIP=":" 3383 else 3384 case $cross_compiling:$ac_tool_warned in 3385 yes:) 3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3387 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3388 ac_tool_warned=yes ;; 3389 esac 3390 STRIP=$ac_ct_STRIP 3391 fi 3392 else 3393 STRIP="$ac_cv_prog_STRIP" 3394 fi 3395 3396 fi 3397 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3398 3399 3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3401 printf %s "checking for a race-free mkdir -p... " >&6; } 3402 if test -z "$MKDIR_P"; then 3403 if test ${ac_cv_path_mkdir+y} 3404 then : 3405 printf %s "(cached) " >&6 3406 else case e in #( 3407 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3408 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3409 do 3410 IFS=$as_save_IFS 3411 case $as_dir in #((( 3412 '') as_dir=./ ;; 3413 */) ;; 3414 *) as_dir=$as_dir/ ;; 3415 esac 3416 for ac_prog in mkdir gmkdir; do 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3419 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3420 'mkdir ('*'coreutils) '* | \ 3421 *'BusyBox '* | \ 3422 'mkdir (fileutils) '4.1*) 3423 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3424 break 3;; 3425 esac 3426 done 3427 done 3428 done 3429 IFS=$as_save_IFS 3430 ;; 3431 esac 3432 fi 3433 3434 test -d ./--version && rmdir ./--version 3435 if test ${ac_cv_path_mkdir+y}; then 3436 MKDIR_P="$ac_cv_path_mkdir -p" 3437 else 3438 # As a last resort, use plain mkdir -p, 3439 # in the hope it doesn't have the bugs of ancient mkdir. 3440 MKDIR_P='mkdir -p' 3441 fi 3442 fi 3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3444 printf "%s\n" "$MKDIR_P" >&6; } 3445 3446 for ac_prog in gawk mawk nawk awk 3447 do 3448 # Extract the first word of "$ac_prog", so it can be a program name with args. 3449 set dummy $ac_prog; ac_word=$2 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3451 printf %s "checking for $ac_word... " >&6; } 3452 if test ${ac_cv_prog_AWK+y} 3453 then : 3454 printf %s "(cached) " >&6 3455 else case e in #( 3456 e) if test -n "$AWK"; then 3457 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3458 else 3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3460 for as_dir in $PATH 3461 do 3462 IFS=$as_save_IFS 3463 case $as_dir in #((( 3464 '') as_dir=./ ;; 3465 */) ;; 3466 *) as_dir=$as_dir/ ;; 3467 esac 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3470 ac_cv_prog_AWK="$ac_prog" 3471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474 done 3475 done 3476 IFS=$as_save_IFS 3477 3478 fi ;; 3479 esac 3480 fi 3481 AWK=$ac_cv_prog_AWK 3482 if test -n "$AWK"; then 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3484 printf "%s\n" "$AWK" >&6; } 3485 else 3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3487 printf "%s\n" "no" >&6; } 3488 fi 3489 3490 3491 test -n "$AWK" && break 3492 done 3493 3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3495 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3496 set x ${MAKE-make} 3497 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3498 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3499 then : 3500 printf %s "(cached) " >&6 3501 else case e in #( 3502 e) cat >conftest.make <<\_ACEOF 3503 SHELL = /bin/sh 3504 all: 3505 @echo '@@@%%%=$(MAKE)=@@@%%%' 3506 _ACEOF 3507 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3508 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3509 *@@@%%%=?*=@@@%%%*) 3510 eval ac_cv_prog_make_${ac_make}_set=yes;; 3511 *) 3512 eval ac_cv_prog_make_${ac_make}_set=no;; 3513 esac 3514 rm -f conftest.make ;; 3515 esac 3516 fi 3517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3519 printf "%s\n" "yes" >&6; } 3520 SET_MAKE= 3521 else 3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3523 printf "%s\n" "no" >&6; } 3524 SET_MAKE="MAKE=${MAKE-make}" 3525 fi 3526 3527 rm -rf .tst 2>/dev/null 3528 mkdir .tst 2>/dev/null 3529 if test -d .tst; then 3530 am__leading_dot=. 3531 else 3532 am__leading_dot=_ 3533 fi 3534 rmdir .tst 2>/dev/null 3535 3536 AM_DEFAULT_VERBOSITY=1 3537 # Check whether --enable-silent-rules was given. 3538 if test ${enable_silent_rules+y} 3539 then : 3540 enableval=$enable_silent_rules; 3541 fi 3542 3543 am_make=${MAKE-make} 3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3545 printf %s "checking whether $am_make supports nested variables... " >&6; } 3546 if test ${am_cv_make_support_nested_variables+y} 3547 then : 3548 printf %s "(cached) " >&6 3549 else case e in #( 3550 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3551 BAR0=false 3552 BAR1=true 3553 V=1 3554 am__doit: 3555 @$(TRUE) 3556 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3557 am_cv_make_support_nested_variables=yes 3558 else 3559 am_cv_make_support_nested_variables=no 3560 fi ;; 3561 esac 3562 fi 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3564 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3565 AM_BACKSLASH='\' 3566 3567 am__rm_f_notfound= 3568 if (rm -f && rm -fr && rm -rf) 2>/dev/null 3569 then : 3570 3571 else case e in #( 3572 e) am__rm_f_notfound='""' ;; 3573 esac 3574 fi 3575 3576 3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3578 printf %s "checking xargs -n works... " >&6; } 3579 if test ${am_cv_xargs_n_works+y} 3580 then : 3581 printf %s "(cached) " >&6 3582 else case e in #( 3583 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 3584 3" 3585 then : 3586 am_cv_xargs_n_works=yes 3587 else case e in #( 3588 e) am_cv_xargs_n_works=no ;; 3589 esac 3590 fi ;; 3591 esac 3592 fi 3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3594 printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3595 if test "$am_cv_xargs_n_works" = yes 3596 then : 3597 am__xargs_n='xargs -n' 3598 else case e in #( 3599 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3600 ;; 3601 esac 3602 fi 3603 3604 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3605 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3606 # is not polluted with repeated "-I." 3607 am__isrc=' -I$(srcdir)' 3608 # test to see if srcdir already configured 3609 if test -f $srcdir/config.status; then 3610 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3611 fi 3612 fi 3613 3614 # test whether we have cygpath 3615 if test -z "$CYGPATH_W"; then 3616 if (cygpath --version) >/dev/null 2>/dev/null; then 3617 CYGPATH_W='cygpath -w' 3618 else 3619 CYGPATH_W=echo 3620 fi 3621 fi 3622 3623 3624 # Define the identity of the package. 3625 PACKAGE='libXfont2' 3626 VERSION='2.0.7' 3627 3628 3629 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3630 3631 3632 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3633 3634 # Some tools Automake needs. 3635 3636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3637 3638 3639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3640 3641 3642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3643 3644 3645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3646 3647 3648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3649 3650 # For better backward compatibility. To be removed once Automake 1.9.x 3651 # dies out for good. For more background, see: 3652 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3653 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3654 mkdir_p='$(MKDIR_P)' 3655 3656 # We need awk for the "check" target (and possibly the TAP driver). The 3657 # system "awk" is bad on some platforms. 3658 # Always define AMTAR for backward compatibility. Yes, it's still used 3659 # in the wild :-( We should find a proper way to deprecate it ... 3660 AMTAR='$${TAR-tar}' 3661 3662 3663 # We'll loop over all known methods to create a tar archive until one works. 3664 _am_tools='gnutar pax cpio none' 3665 3666 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3667 3668 3669 3670 3671 3672 # Variables for tags utilities; see am/tags.am 3673 if test -z "$CTAGS"; then 3674 CTAGS=ctags 3675 fi 3676 3677 if test -z "$ETAGS"; then 3678 ETAGS=etags 3679 fi 3680 3681 if test -z "$CSCOPE"; then 3682 CSCOPE=cscope 3683 fi 3684 3685 3686 3687 3688 3689 3690 3691 3692 # Set common system defines for POSIX extensions, such as _GNU_SOURCE 3693 # Must be called before any macros that run the compiler (like 3694 # LT_INIT) to avoid autoconf errors. 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 DEPDIR="${am__leading_dot}deps" 3705 3706 ac_config_commands="$ac_config_commands depfiles" 3707 3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3709 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3710 cat > confinc.mk << 'END' 3711 am__doit: 3712 @echo this is the am__doit target >confinc.out 3713 .PHONY: am__doit 3714 END 3715 am__include="#" 3716 am__quote= 3717 # BSD make does it like this. 3718 echo '.include "confinc.mk" # ignored' > confmf.BSD 3719 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3720 echo 'include confinc.mk # ignored' > confmf.GNU 3721 _am_result=no 3722 for s in GNU BSD; do 3723 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3724 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3725 ac_status=$? 3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3727 (exit $ac_status); } 3728 case $?:`cat confinc.out 2>/dev/null` in #( 3729 '0:this is the am__doit target') : 3730 case $s in #( 3731 BSD) : 3732 am__include='.include' am__quote='"' ;; #( 3733 *) : 3734 am__include='include' am__quote='' ;; 3735 esac ;; #( 3736 *) : 3737 ;; 3738 esac 3739 if test "$am__include" != "#"; then 3740 _am_result="yes ($s style)" 3741 break 3742 fi 3743 done 3744 rm -f confinc.* confmf.* 3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3746 printf "%s\n" "${_am_result}" >&6; } 3747 3748 # Check whether --enable-dependency-tracking was given. 3749 if test ${enable_dependency_tracking+y} 3750 then : 3751 enableval=$enable_dependency_tracking; 3752 fi 3753 3754 if test "x$enable_dependency_tracking" != xno; then 3755 am_depcomp="$ac_aux_dir/depcomp" 3756 AMDEPBACKSLASH='\' 3757 am__nodep='_no' 3758 fi 3759 if test "x$enable_dependency_tracking" != xno; then 3760 AMDEP_TRUE= 3761 AMDEP_FALSE='#' 3762 else 3763 AMDEP_TRUE='#' 3764 AMDEP_FALSE= 3765 fi 3766 3767 3768 ac_ext=c 3769 ac_cpp='$CPP $CPPFLAGS' 3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3773 if test -n "$ac_tool_prefix"; then 3774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3775 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3777 printf %s "checking for $ac_word... " >&6; } 3778 if test ${ac_cv_prog_CC+y} 3779 then : 3780 printf %s "(cached) " >&6 3781 else case e in #( 3782 e) if test -n "$CC"; then 3783 ac_cv_prog_CC="$CC" # Let the user override the test. 3784 else 3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3786 for as_dir in $PATH 3787 do 3788 IFS=$as_save_IFS 3789 case $as_dir in #((( 3790 '') as_dir=./ ;; 3791 */) ;; 3792 *) as_dir=$as_dir/ ;; 3793 esac 3794 for ac_exec_ext in '' $ac_executable_extensions; do 3795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3796 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3798 break 2 3799 fi 3800 done 3801 done 3802 IFS=$as_save_IFS 3803 3804 fi ;; 3805 esac 3806 fi 3807 CC=$ac_cv_prog_CC 3808 if test -n "$CC"; then 3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3810 printf "%s\n" "$CC" >&6; } 3811 else 3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3813 printf "%s\n" "no" >&6; } 3814 fi 3815 3816 3817 fi 3818 if test -z "$ac_cv_prog_CC"; then 3819 ac_ct_CC=$CC 3820 # Extract the first word of "gcc", so it can be a program name with args. 3821 set dummy gcc; ac_word=$2 3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3823 printf %s "checking for $ac_word... " >&6; } 3824 if test ${ac_cv_prog_ac_ct_CC+y} 3825 then : 3826 printf %s "(cached) " >&6 3827 else case e in #( 3828 e) if test -n "$ac_ct_CC"; then 3829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3830 else 3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3832 for as_dir in $PATH 3833 do 3834 IFS=$as_save_IFS 3835 case $as_dir in #((( 3836 '') as_dir=./ ;; 3837 */) ;; 3838 *) as_dir=$as_dir/ ;; 3839 esac 3840 for ac_exec_ext in '' $ac_executable_extensions; do 3841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3842 ac_cv_prog_ac_ct_CC="gcc" 3843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3844 break 2 3845 fi 3846 done 3847 done 3848 IFS=$as_save_IFS 3849 3850 fi ;; 3851 esac 3852 fi 3853 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3854 if test -n "$ac_ct_CC"; then 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3856 printf "%s\n" "$ac_ct_CC" >&6; } 3857 else 3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3859 printf "%s\n" "no" >&6; } 3860 fi 3861 3862 if test "x$ac_ct_CC" = x; then 3863 CC="" 3864 else 3865 case $cross_compiling:$ac_tool_warned in 3866 yes:) 3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3868 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3869 ac_tool_warned=yes ;; 3870 esac 3871 CC=$ac_ct_CC 3872 fi 3873 else 3874 CC="$ac_cv_prog_CC" 3875 fi 3876 3877 if test -z "$CC"; then 3878 if test -n "$ac_tool_prefix"; then 3879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3880 set dummy ${ac_tool_prefix}cc; ac_word=$2 3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882 printf %s "checking for $ac_word... " >&6; } 3883 if test ${ac_cv_prog_CC+y} 3884 then : 3885 printf %s "(cached) " >&6 3886 else case e in #( 3887 e) if test -n "$CC"; then 3888 ac_cv_prog_CC="$CC" # Let the user override the test. 3889 else 3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3891 for as_dir in $PATH 3892 do 3893 IFS=$as_save_IFS 3894 case $as_dir in #((( 3895 '') as_dir=./ ;; 3896 */) ;; 3897 *) as_dir=$as_dir/ ;; 3898 esac 3899 for ac_exec_ext in '' $ac_executable_extensions; do 3900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3901 ac_cv_prog_CC="${ac_tool_prefix}cc" 3902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3903 break 2 3904 fi 3905 done 3906 done 3907 IFS=$as_save_IFS 3908 3909 fi ;; 3910 esac 3911 fi 3912 CC=$ac_cv_prog_CC 3913 if test -n "$CC"; then 3914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3915 printf "%s\n" "$CC" >&6; } 3916 else 3917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3918 printf "%s\n" "no" >&6; } 3919 fi 3920 3921 3922 fi 3923 fi 3924 if test -z "$CC"; then 3925 # Extract the first word of "cc", so it can be a program name with args. 3926 set dummy cc; ac_word=$2 3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3928 printf %s "checking for $ac_word... " >&6; } 3929 if test ${ac_cv_prog_CC+y} 3930 then : 3931 printf %s "(cached) " >&6 3932 else case e in #( 3933 e) if test -n "$CC"; then 3934 ac_cv_prog_CC="$CC" # Let the user override the test. 3935 else 3936 ac_prog_rejected=no 3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3938 for as_dir in $PATH 3939 do 3940 IFS=$as_save_IFS 3941 case $as_dir in #((( 3942 '') as_dir=./ ;; 3943 */) ;; 3944 *) as_dir=$as_dir/ ;; 3945 esac 3946 for ac_exec_ext in '' $ac_executable_extensions; do 3947 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3948 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3949 ac_prog_rejected=yes 3950 continue 3951 fi 3952 ac_cv_prog_CC="cc" 3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3954 break 2 3955 fi 3956 done 3957 done 3958 IFS=$as_save_IFS 3959 3960 if test $ac_prog_rejected = yes; then 3961 # We found a bogon in the path, so make sure we never use it. 3962 set dummy $ac_cv_prog_CC 3963 shift 3964 if test $# != 0; then 3965 # We chose a different compiler from the bogus one. 3966 # However, it has the same basename, so the bogon will be chosen 3967 # first if we set CC to just the basename; use the full file name. 3968 shift 3969 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3970 fi 3971 fi 3972 fi ;; 3973 esac 3974 fi 3975 CC=$ac_cv_prog_CC 3976 if test -n "$CC"; then 3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3978 printf "%s\n" "$CC" >&6; } 3979 else 3980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3981 printf "%s\n" "no" >&6; } 3982 fi 3983 3984 3985 fi 3986 if test -z "$CC"; then 3987 if test -n "$ac_tool_prefix"; then 3988 for ac_prog in cl.exe 3989 do 3990 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3991 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3993 printf %s "checking for $ac_word... " >&6; } 3994 if test ${ac_cv_prog_CC+y} 3995 then : 3996 printf %s "(cached) " >&6 3997 else case e in #( 3998 e) if test -n "$CC"; then 3999 ac_cv_prog_CC="$CC" # Let the user override the test. 4000 else 4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4002 for as_dir in $PATH 4003 do 4004 IFS=$as_save_IFS 4005 case $as_dir in #((( 4006 '') as_dir=./ ;; 4007 */) ;; 4008 *) as_dir=$as_dir/ ;; 4009 esac 4010 for ac_exec_ext in '' $ac_executable_extensions; do 4011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4014 break 2 4015 fi 4016 done 4017 done 4018 IFS=$as_save_IFS 4019 4020 fi ;; 4021 esac 4022 fi 4023 CC=$ac_cv_prog_CC 4024 if test -n "$CC"; then 4025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4026 printf "%s\n" "$CC" >&6; } 4027 else 4028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4029 printf "%s\n" "no" >&6; } 4030 fi 4031 4032 4033 test -n "$CC" && break 4034 done 4035 fi 4036 if test -z "$CC"; then 4037 ac_ct_CC=$CC 4038 for ac_prog in cl.exe 4039 do 4040 # Extract the first word of "$ac_prog", so it can be a program name with args. 4041 set dummy $ac_prog; ac_word=$2 4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4043 printf %s "checking for $ac_word... " >&6; } 4044 if test ${ac_cv_prog_ac_ct_CC+y} 4045 then : 4046 printf %s "(cached) " >&6 4047 else case e in #( 4048 e) if test -n "$ac_ct_CC"; then 4049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4050 else 4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4052 for as_dir in $PATH 4053 do 4054 IFS=$as_save_IFS 4055 case $as_dir in #((( 4056 '') as_dir=./ ;; 4057 */) ;; 4058 *) as_dir=$as_dir/ ;; 4059 esac 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4062 ac_cv_prog_ac_ct_CC="$ac_prog" 4063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4064 break 2 4065 fi 4066 done 4067 done 4068 IFS=$as_save_IFS 4069 4070 fi ;; 4071 esac 4072 fi 4073 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4074 if test -n "$ac_ct_CC"; then 4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4076 printf "%s\n" "$ac_ct_CC" >&6; } 4077 else 4078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4079 printf "%s\n" "no" >&6; } 4080 fi 4081 4082 4083 test -n "$ac_ct_CC" && break 4084 done 4085 4086 if test "x$ac_ct_CC" = x; then 4087 CC="" 4088 else 4089 case $cross_compiling:$ac_tool_warned in 4090 yes:) 4091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4092 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4093 ac_tool_warned=yes ;; 4094 esac 4095 CC=$ac_ct_CC 4096 fi 4097 fi 4098 4099 fi 4100 if test -z "$CC"; then 4101 if test -n "$ac_tool_prefix"; then 4102 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4103 set dummy ${ac_tool_prefix}clang; ac_word=$2 4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4105 printf %s "checking for $ac_word... " >&6; } 4106 if test ${ac_cv_prog_CC+y} 4107 then : 4108 printf %s "(cached) " >&6 4109 else case e in #( 4110 e) if test -n "$CC"; then 4111 ac_cv_prog_CC="$CC" # Let the user override the test. 4112 else 4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4114 for as_dir in $PATH 4115 do 4116 IFS=$as_save_IFS 4117 case $as_dir in #((( 4118 '') as_dir=./ ;; 4119 */) ;; 4120 *) as_dir=$as_dir/ ;; 4121 esac 4122 for ac_exec_ext in '' $ac_executable_extensions; do 4123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4124 ac_cv_prog_CC="${ac_tool_prefix}clang" 4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4126 break 2 4127 fi 4128 done 4129 done 4130 IFS=$as_save_IFS 4131 4132 fi ;; 4133 esac 4134 fi 4135 CC=$ac_cv_prog_CC 4136 if test -n "$CC"; then 4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4138 printf "%s\n" "$CC" >&6; } 4139 else 4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4141 printf "%s\n" "no" >&6; } 4142 fi 4143 4144 4145 fi 4146 if test -z "$ac_cv_prog_CC"; then 4147 ac_ct_CC=$CC 4148 # Extract the first word of "clang", so it can be a program name with args. 4149 set dummy clang; ac_word=$2 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4151 printf %s "checking for $ac_word... " >&6; } 4152 if test ${ac_cv_prog_ac_ct_CC+y} 4153 then : 4154 printf %s "(cached) " >&6 4155 else case e in #( 4156 e) if test -n "$ac_ct_CC"; then 4157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4158 else 4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4160 for as_dir in $PATH 4161 do 4162 IFS=$as_save_IFS 4163 case $as_dir in #((( 4164 '') as_dir=./ ;; 4165 */) ;; 4166 *) as_dir=$as_dir/ ;; 4167 esac 4168 for ac_exec_ext in '' $ac_executable_extensions; do 4169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4170 ac_cv_prog_ac_ct_CC="clang" 4171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4172 break 2 4173 fi 4174 done 4175 done 4176 IFS=$as_save_IFS 4177 4178 fi ;; 4179 esac 4180 fi 4181 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4182 if test -n "$ac_ct_CC"; then 4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4184 printf "%s\n" "$ac_ct_CC" >&6; } 4185 else 4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4187 printf "%s\n" "no" >&6; } 4188 fi 4189 4190 if test "x$ac_ct_CC" = x; then 4191 CC="" 4192 else 4193 case $cross_compiling:$ac_tool_warned in 4194 yes:) 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4197 ac_tool_warned=yes ;; 4198 esac 4199 CC=$ac_ct_CC 4200 fi 4201 else 4202 CC="$ac_cv_prog_CC" 4203 fi 4204 4205 fi 4206 4207 4208 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4209 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4210 as_fn_error $? "no acceptable C compiler found in \$PATH 4211 See 'config.log' for more details" "$LINENO" 5; } 4212 4213 # Provide some information about the compiler. 4214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4215 set X $ac_compile 4216 ac_compiler=$2 4217 for ac_option in --version -v -V -qversion -version; do 4218 { { ac_try="$ac_compiler $ac_option >&5" 4219 case "(($ac_try" in 4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4221 *) ac_try_echo=$ac_try;; 4222 esac 4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4224 printf "%s\n" "$ac_try_echo"; } >&5 4225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4226 ac_status=$? 4227 if test -s conftest.err; then 4228 sed '10a\ 4229 ... rest of stderr output deleted ... 4230 10q' conftest.err >conftest.er1 4231 cat conftest.er1 >&5 4232 fi 4233 rm -f conftest.er1 conftest.err 4234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4235 test $ac_status = 0; } 4236 done 4237 4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4239 /* end confdefs.h. */ 4240 4241 int 4242 main (void) 4243 { 4244 4245 ; 4246 return 0; 4247 } 4248 _ACEOF 4249 ac_clean_files_save=$ac_clean_files 4250 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4251 # Try to create an executable without -o first, disregard a.out. 4252 # It will help us diagnose broken compilers, and finding out an intuition 4253 # of exeext. 4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4255 printf %s "checking whether the C compiler works... " >&6; } 4256 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4257 4258 # The possible output files: 4259 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4260 4261 ac_rmfiles= 4262 for ac_file in $ac_files 4263 do 4264 case $ac_file in 4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4266 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4267 esac 4268 done 4269 rm -f $ac_rmfiles 4270 4271 if { { ac_try="$ac_link_default" 4272 case "(($ac_try" in 4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4274 *) ac_try_echo=$ac_try;; 4275 esac 4276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4277 printf "%s\n" "$ac_try_echo"; } >&5 4278 (eval "$ac_link_default") 2>&5 4279 ac_status=$? 4280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4281 test $ac_status = 0; } 4282 then : 4283 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4284 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4285 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4286 # so that the user can short-circuit this test for compilers unknown to 4287 # Autoconf. 4288 for ac_file in $ac_files '' 4289 do 4290 test -f "$ac_file" || continue 4291 case $ac_file in 4292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4293 ;; 4294 [ab].out ) 4295 # We found the default executable, but exeext='' is most 4296 # certainly right. 4297 break;; 4298 *.* ) 4299 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4300 then :; else 4301 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4302 fi 4303 # We set ac_cv_exeext here because the later test for it is not 4304 # safe: cross compilers may not add the suffix if given an '-o' 4305 # argument, so we may need to know it at that point already. 4306 # Even if this section looks crufty: it has the advantage of 4307 # actually working. 4308 break;; 4309 * ) 4310 break;; 4311 esac 4312 done 4313 test "$ac_cv_exeext" = no && ac_cv_exeext= 4314 4315 else case e in #( 4316 e) ac_file='' ;; 4317 esac 4318 fi 4319 if test -z "$ac_file" 4320 then : 4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4322 printf "%s\n" "no" >&6; } 4323 printf "%s\n" "$as_me: failed program was:" >&5 4324 sed 's/^/| /' conftest.$ac_ext >&5 4325 4326 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4327 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4328 as_fn_error 77 "C compiler cannot create executables 4329 See 'config.log' for more details" "$LINENO" 5; } 4330 else case e in #( 4331 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4332 printf "%s\n" "yes" >&6; } ;; 4333 esac 4334 fi 4335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4336 printf %s "checking for C compiler default output file name... " >&6; } 4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4338 printf "%s\n" "$ac_file" >&6; } 4339 ac_exeext=$ac_cv_exeext 4340 4341 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4342 ac_clean_files=$ac_clean_files_save 4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4344 printf %s "checking for suffix of executables... " >&6; } 4345 if { { ac_try="$ac_link" 4346 case "(($ac_try" in 4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4348 *) ac_try_echo=$ac_try;; 4349 esac 4350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4351 printf "%s\n" "$ac_try_echo"; } >&5 4352 (eval "$ac_link") 2>&5 4353 ac_status=$? 4354 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4355 test $ac_status = 0; } 4356 then : 4357 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4358 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4359 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4360 # 'rm'. 4361 for ac_file in conftest.exe conftest conftest.*; do 4362 test -f "$ac_file" || continue 4363 case $ac_file in 4364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4366 break;; 4367 * ) break;; 4368 esac 4369 done 4370 else case e in #( 4371 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4372 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4373 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4374 See 'config.log' for more details" "$LINENO" 5; } ;; 4375 esac 4376 fi 4377 rm -f conftest conftest$ac_cv_exeext 4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4379 printf "%s\n" "$ac_cv_exeext" >&6; } 4380 4381 rm -f conftest.$ac_ext 4382 EXEEXT=$ac_cv_exeext 4383 ac_exeext=$EXEEXT 4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4385 /* end confdefs.h. */ 4386 #include <stdio.h> 4387 int 4388 main (void) 4389 { 4390 FILE *f = fopen ("conftest.out", "w"); 4391 if (!f) 4392 return 1; 4393 return ferror (f) || fclose (f) != 0; 4394 4395 ; 4396 return 0; 4397 } 4398 _ACEOF 4399 ac_clean_files="$ac_clean_files conftest.out" 4400 # Check that the compiler produces executables we can run. If not, either 4401 # the compiler is broken, or we cross compile. 4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4403 printf %s "checking whether we are cross compiling... " >&6; } 4404 if test "$cross_compiling" != yes; then 4405 { { ac_try="$ac_link" 4406 case "(($ac_try" in 4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4408 *) ac_try_echo=$ac_try;; 4409 esac 4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4411 printf "%s\n" "$ac_try_echo"; } >&5 4412 (eval "$ac_link") 2>&5 4413 ac_status=$? 4414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4415 test $ac_status = 0; } 4416 if { ac_try='./conftest$ac_cv_exeext' 4417 { { case "(($ac_try" in 4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4419 *) ac_try_echo=$ac_try;; 4420 esac 4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4422 printf "%s\n" "$ac_try_echo"; } >&5 4423 (eval "$ac_try") 2>&5 4424 ac_status=$? 4425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4426 test $ac_status = 0; }; }; then 4427 cross_compiling=no 4428 else 4429 if test "$cross_compiling" = maybe; then 4430 cross_compiling=yes 4431 else 4432 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4433 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4434 as_fn_error 77 "cannot run C compiled programs. 4435 If you meant to cross compile, use '--host'. 4436 See 'config.log' for more details" "$LINENO" 5; } 4437 fi 4438 fi 4439 fi 4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4441 printf "%s\n" "$cross_compiling" >&6; } 4442 4443 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4444 conftest.o conftest.obj conftest.out 4445 ac_clean_files=$ac_clean_files_save 4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4447 printf %s "checking for suffix of object files... " >&6; } 4448 if test ${ac_cv_objext+y} 4449 then : 4450 printf %s "(cached) " >&6 4451 else case e in #( 4452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4453 /* end confdefs.h. */ 4454 4455 int 4456 main (void) 4457 { 4458 4459 ; 4460 return 0; 4461 } 4462 _ACEOF 4463 rm -f conftest.o conftest.obj 4464 if { { ac_try="$ac_compile" 4465 case "(($ac_try" in 4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4467 *) ac_try_echo=$ac_try;; 4468 esac 4469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4470 printf "%s\n" "$ac_try_echo"; } >&5 4471 (eval "$ac_compile") 2>&5 4472 ac_status=$? 4473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4474 test $ac_status = 0; } 4475 then : 4476 for ac_file in conftest.o conftest.obj conftest.*; do 4477 test -f "$ac_file" || continue; 4478 case $ac_file in 4479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4480 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4481 break;; 4482 esac 4483 done 4484 else case e in #( 4485 e) printf "%s\n" "$as_me: failed program was:" >&5 4486 sed 's/^/| /' conftest.$ac_ext >&5 4487 4488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4489 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4490 as_fn_error $? "cannot compute suffix of object files: cannot compile 4491 See 'config.log' for more details" "$LINENO" 5; } ;; 4492 esac 4493 fi 4494 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4495 esac 4496 fi 4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4498 printf "%s\n" "$ac_cv_objext" >&6; } 4499 OBJEXT=$ac_cv_objext 4500 ac_objext=$OBJEXT 4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4502 printf %s "checking whether the compiler supports GNU C... " >&6; } 4503 if test ${ac_cv_c_compiler_gnu+y} 4504 then : 4505 printf %s "(cached) " >&6 4506 else case e in #( 4507 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4508 /* end confdefs.h. */ 4509 4510 int 4511 main (void) 4512 { 4513 #ifndef __GNUC__ 4514 choke me 4515 #endif 4516 4517 ; 4518 return 0; 4519 } 4520 _ACEOF 4521 if ac_fn_c_try_compile "$LINENO" 4522 then : 4523 ac_compiler_gnu=yes 4524 else case e in #( 4525 e) ac_compiler_gnu=no ;; 4526 esac 4527 fi 4528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4529 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4530 ;; 4531 esac 4532 fi 4533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4534 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4535 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4536 4537 if test $ac_compiler_gnu = yes; then 4538 GCC=yes 4539 else 4540 GCC= 4541 fi 4542 ac_test_CFLAGS=${CFLAGS+y} 4543 ac_save_CFLAGS=$CFLAGS 4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4545 printf %s "checking whether $CC accepts -g... " >&6; } 4546 if test ${ac_cv_prog_cc_g+y} 4547 then : 4548 printf %s "(cached) " >&6 4549 else case e in #( 4550 e) ac_save_c_werror_flag=$ac_c_werror_flag 4551 ac_c_werror_flag=yes 4552 ac_cv_prog_cc_g=no 4553 CFLAGS="-g" 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4555 /* end confdefs.h. */ 4556 4557 int 4558 main (void) 4559 { 4560 4561 ; 4562 return 0; 4563 } 4564 _ACEOF 4565 if ac_fn_c_try_compile "$LINENO" 4566 then : 4567 ac_cv_prog_cc_g=yes 4568 else case e in #( 4569 e) CFLAGS="" 4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4571 /* end confdefs.h. */ 4572 4573 int 4574 main (void) 4575 { 4576 4577 ; 4578 return 0; 4579 } 4580 _ACEOF 4581 if ac_fn_c_try_compile "$LINENO" 4582 then : 4583 4584 else case e in #( 4585 e) ac_c_werror_flag=$ac_save_c_werror_flag 4586 CFLAGS="-g" 4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588 /* end confdefs.h. */ 4589 4590 int 4591 main (void) 4592 { 4593 4594 ; 4595 return 0; 4596 } 4597 _ACEOF 4598 if ac_fn_c_try_compile "$LINENO" 4599 then : 4600 ac_cv_prog_cc_g=yes 4601 fi 4602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4603 esac 4604 fi 4605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4606 esac 4607 fi 4608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4609 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4610 esac 4611 fi 4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4613 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4614 if test $ac_test_CFLAGS; then 4615 CFLAGS=$ac_save_CFLAGS 4616 elif test $ac_cv_prog_cc_g = yes; then 4617 if test "$GCC" = yes; then 4618 CFLAGS="-g -O2" 4619 else 4620 CFLAGS="-g" 4621 fi 4622 else 4623 if test "$GCC" = yes; then 4624 CFLAGS="-O2" 4625 else 4626 CFLAGS= 4627 fi 4628 fi 4629 ac_prog_cc_stdc=no 4630 if test x$ac_prog_cc_stdc = xno 4631 then : 4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4633 printf %s "checking for $CC option to enable C11 features... " >&6; } 4634 if test ${ac_cv_prog_cc_c11+y} 4635 then : 4636 printf %s "(cached) " >&6 4637 else case e in #( 4638 e) ac_cv_prog_cc_c11=no 4639 ac_save_CC=$CC 4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641 /* end confdefs.h. */ 4642 $ac_c_conftest_c11_program 4643 _ACEOF 4644 for ac_arg in '' -std=gnu11 4645 do 4646 CC="$ac_save_CC $ac_arg" 4647 if ac_fn_c_try_compile "$LINENO" 4648 then : 4649 ac_cv_prog_cc_c11=$ac_arg 4650 fi 4651 rm -f core conftest.err conftest.$ac_objext conftest.beam 4652 test "x$ac_cv_prog_cc_c11" != "xno" && break 4653 done 4654 rm -f conftest.$ac_ext 4655 CC=$ac_save_CC ;; 4656 esac 4657 fi 4658 4659 if test "x$ac_cv_prog_cc_c11" = xno 4660 then : 4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4662 printf "%s\n" "unsupported" >&6; } 4663 else case e in #( 4664 e) if test "x$ac_cv_prog_cc_c11" = x 4665 then : 4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4667 printf "%s\n" "none needed" >&6; } 4668 else case e in #( 4669 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4670 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4671 CC="$CC $ac_cv_prog_cc_c11" ;; 4672 esac 4673 fi 4674 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4675 ac_prog_cc_stdc=c11 ;; 4676 esac 4677 fi 4678 fi 4679 if test x$ac_prog_cc_stdc = xno 4680 then : 4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4682 printf %s "checking for $CC option to enable C99 features... " >&6; } 4683 if test ${ac_cv_prog_cc_c99+y} 4684 then : 4685 printf %s "(cached) " >&6 4686 else case e in #( 4687 e) ac_cv_prog_cc_c99=no 4688 ac_save_CC=$CC 4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4690 /* end confdefs.h. */ 4691 $ac_c_conftest_c99_program 4692 _ACEOF 4693 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4694 do 4695 CC="$ac_save_CC $ac_arg" 4696 if ac_fn_c_try_compile "$LINENO" 4697 then : 4698 ac_cv_prog_cc_c99=$ac_arg 4699 fi 4700 rm -f core conftest.err conftest.$ac_objext conftest.beam 4701 test "x$ac_cv_prog_cc_c99" != "xno" && break 4702 done 4703 rm -f conftest.$ac_ext 4704 CC=$ac_save_CC ;; 4705 esac 4706 fi 4707 4708 if test "x$ac_cv_prog_cc_c99" = xno 4709 then : 4710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4711 printf "%s\n" "unsupported" >&6; } 4712 else case e in #( 4713 e) if test "x$ac_cv_prog_cc_c99" = x 4714 then : 4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4716 printf "%s\n" "none needed" >&6; } 4717 else case e in #( 4718 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4719 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4720 CC="$CC $ac_cv_prog_cc_c99" ;; 4721 esac 4722 fi 4723 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4724 ac_prog_cc_stdc=c99 ;; 4725 esac 4726 fi 4727 fi 4728 if test x$ac_prog_cc_stdc = xno 4729 then : 4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4731 printf %s "checking for $CC option to enable C89 features... " >&6; } 4732 if test ${ac_cv_prog_cc_c89+y} 4733 then : 4734 printf %s "(cached) " >&6 4735 else case e in #( 4736 e) ac_cv_prog_cc_c89=no 4737 ac_save_CC=$CC 4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4739 /* end confdefs.h. */ 4740 $ac_c_conftest_c89_program 4741 _ACEOF 4742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4743 do 4744 CC="$ac_save_CC $ac_arg" 4745 if ac_fn_c_try_compile "$LINENO" 4746 then : 4747 ac_cv_prog_cc_c89=$ac_arg 4748 fi 4749 rm -f core conftest.err conftest.$ac_objext conftest.beam 4750 test "x$ac_cv_prog_cc_c89" != "xno" && break 4751 done 4752 rm -f conftest.$ac_ext 4753 CC=$ac_save_CC ;; 4754 esac 4755 fi 4756 4757 if test "x$ac_cv_prog_cc_c89" = xno 4758 then : 4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4760 printf "%s\n" "unsupported" >&6; } 4761 else case e in #( 4762 e) if test "x$ac_cv_prog_cc_c89" = x 4763 then : 4764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4765 printf "%s\n" "none needed" >&6; } 4766 else case e in #( 4767 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4768 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4769 CC="$CC $ac_cv_prog_cc_c89" ;; 4770 esac 4771 fi 4772 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4773 ac_prog_cc_stdc=c89 ;; 4774 esac 4775 fi 4776 fi 4777 4778 ac_ext=c 4779 ac_cpp='$CPP $CPPFLAGS' 4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4783 4784 4785 ac_ext=c 4786 ac_cpp='$CPP $CPPFLAGS' 4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4791 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4792 if test ${am_cv_prog_cc_c_o+y} 4793 then : 4794 printf %s "(cached) " >&6 4795 else case e in #( 4796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4797 /* end confdefs.h. */ 4798 4799 int 4800 main (void) 4801 { 4802 4803 ; 4804 return 0; 4805 } 4806 _ACEOF 4807 # Make sure it works both with $CC and with simple cc. 4808 # Following AC_PROG_CC_C_O, we do the test twice because some 4809 # compilers refuse to overwrite an existing .o file with -o, 4810 # though they will create one. 4811 am_cv_prog_cc_c_o=yes 4812 for am_i in 1 2; do 4813 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4814 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4815 ac_status=$? 4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4817 (exit $ac_status); } \ 4818 && test -f conftest2.$ac_objext; then 4819 : OK 4820 else 4821 am_cv_prog_cc_c_o=no 4822 break 4823 fi 4824 done 4825 rm -f core conftest* 4826 unset am_i ;; 4827 esac 4828 fi 4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4830 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4831 if test "$am_cv_prog_cc_c_o" != yes; then 4832 # Losing compiler, so override with the script. 4833 # FIXME: It is wrong to rewrite CC. 4834 # But if we don't then we get into trouble of one sort or another. 4835 # A longer-term fix would be to have automake use am__CC in this case, 4836 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4837 CC="$am_aux_dir/compile $CC" 4838 fi 4839 ac_ext=c 4840 ac_cpp='$CPP $CPPFLAGS' 4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4844 4845 4846 depcc="$CC" am_compiler_list= 4847 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4849 printf %s "checking dependency style of $depcc... " >&6; } 4850 if test ${am_cv_CC_dependencies_compiler_type+y} 4851 then : 4852 printf %s "(cached) " >&6 4853 else case e in #( 4854 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4855 # We make a subdir and do the tests there. Otherwise we can end up 4856 # making bogus files that we don't know about and never remove. For 4857 # instance it was reported that on HP-UX the gcc test will end up 4858 # making a dummy file named 'D' -- because '-MD' means "put the output 4859 # in D". 4860 rm -rf conftest.dir 4861 mkdir conftest.dir 4862 # Copy depcomp to subdir because otherwise we won't find it if we're 4863 # using a relative directory. 4864 cp "$am_depcomp" conftest.dir 4865 cd conftest.dir 4866 # We will build objects and dependencies in a subdirectory because 4867 # it helps to detect inapplicable dependency modes. For instance 4868 # both Tru64's cc and ICC support -MD to output dependencies as a 4869 # side effect of compilation, but ICC will put the dependencies in 4870 # the current directory while Tru64 will put them in the object 4871 # directory. 4872 mkdir sub 4873 4874 am_cv_CC_dependencies_compiler_type=none 4875 if test "$am_compiler_list" = ""; then 4876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4877 fi 4878 am__universal=false 4879 case " $depcc " in #( 4880 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4881 esac 4882 4883 for depmode in $am_compiler_list; do 4884 # Setup a source with many dependencies, because some compilers 4885 # like to wrap large dependency lists on column 80 (with \), and 4886 # we should not choose a depcomp mode which is confused by this. 4887 # 4888 # We need to recreate these files for each test, as the compiler may 4889 # overwrite some of them when testing with obscure command lines. 4890 # This happens at least with the AIX C compiler. 4891 : > sub/conftest.c 4892 for i in 1 2 3 4 5 6; do 4893 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4894 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4895 # Solaris 10 /bin/sh. 4896 echo '/* dummy */' > sub/conftst$i.h 4897 done 4898 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4899 4900 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4901 # mode. It turns out that the SunPro C++ compiler does not properly 4902 # handle '-M -o', and we need to detect this. Also, some Intel 4903 # versions had trouble with output in subdirs. 4904 am__obj=sub/conftest.${OBJEXT-o} 4905 am__minus_obj="-o $am__obj" 4906 case $depmode in 4907 gcc) 4908 # This depmode causes a compiler race in universal mode. 4909 test "$am__universal" = false || continue 4910 ;; 4911 nosideeffect) 4912 # After this tag, mechanisms are not by side-effect, so they'll 4913 # only be used when explicitly requested. 4914 if test "x$enable_dependency_tracking" = xyes; then 4915 continue 4916 else 4917 break 4918 fi 4919 ;; 4920 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4921 # This compiler won't grok '-c -o', but also, the minuso test has 4922 # not run yet. These depmodes are late enough in the game, and 4923 # so weak that their functioning should not be impacted. 4924 am__obj=conftest.${OBJEXT-o} 4925 am__minus_obj= 4926 ;; 4927 none) break ;; 4928 esac 4929 if depmode=$depmode \ 4930 source=sub/conftest.c object=$am__obj \ 4931 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4932 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4933 >/dev/null 2>conftest.err && 4934 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4935 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4936 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4937 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4938 # icc doesn't choke on unknown options, it will just issue warnings 4939 # or remarks (even with -Werror). So we grep stderr for any message 4940 # that says an option was ignored or not supported. 4941 # When given -MP, icc 7.0 and 7.1 complain thus: 4942 # icc: Command line warning: ignoring option '-M'; no argument required 4943 # The diagnosis changed in icc 8.0: 4944 # icc: Command line remark: option '-MP' not supported 4945 if (grep 'ignoring option' conftest.err || 4946 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4947 am_cv_CC_dependencies_compiler_type=$depmode 4948 break 4949 fi 4950 fi 4951 done 4952 4953 cd .. 4954 rm -rf conftest.dir 4955 else 4956 am_cv_CC_dependencies_compiler_type=none 4957 fi 4958 ;; 4959 esac 4960 fi 4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4962 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4963 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4964 4965 if 4966 test "x$enable_dependency_tracking" != xno \ 4967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4968 am__fastdepCC_TRUE= 4969 am__fastdepCC_FALSE='#' 4970 else 4971 am__fastdepCC_TRUE='#' 4972 am__fastdepCC_FALSE= 4973 fi 4974 4975 4976 4977 ac_header= ac_cache= 4978 for ac_item in $ac_header_c_list 4979 do 4980 if test $ac_cache; then 4981 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4982 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4983 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4984 fi 4985 ac_header= ac_cache= 4986 elif test $ac_header; then 4987 ac_cache=$ac_item 4988 else 4989 ac_header=$ac_item 4990 fi 4991 done 4992 4993 4994 4995 4996 4997 4998 4999 5000 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5001 then : 5002 5003 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5004 5005 fi 5006 5007 5008 5009 5010 5011 5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5013 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5014 if test ${ac_cv_safe_to_define___extensions__+y} 5015 then : 5016 printf %s "(cached) " >&6 5017 else case e in #( 5018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5019 /* end confdefs.h. */ 5020 5021 # define __EXTENSIONS__ 1 5022 $ac_includes_default 5023 int 5024 main (void) 5025 { 5026 5027 ; 5028 return 0; 5029 } 5030 _ACEOF 5031 if ac_fn_c_try_compile "$LINENO" 5032 then : 5033 ac_cv_safe_to_define___extensions__=yes 5034 else case e in #( 5035 e) ac_cv_safe_to_define___extensions__=no ;; 5036 esac 5037 fi 5038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5039 esac 5040 fi 5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5042 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5043 5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5045 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5046 if test ${ac_cv_should_define__xopen_source+y} 5047 then : 5048 printf %s "(cached) " >&6 5049 else case e in #( 5050 e) ac_cv_should_define__xopen_source=no 5051 if test $ac_cv_header_wchar_h = yes 5052 then : 5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5054 /* end confdefs.h. */ 5055 5056 #include <wchar.h> 5057 mbstate_t x; 5058 int 5059 main (void) 5060 { 5061 5062 ; 5063 return 0; 5064 } 5065 _ACEOF 5066 if ac_fn_c_try_compile "$LINENO" 5067 then : 5068 5069 else case e in #( 5070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5071 /* end confdefs.h. */ 5072 5073 #define _XOPEN_SOURCE 500 5074 #include <wchar.h> 5075 mbstate_t x; 5076 int 5077 main (void) 5078 { 5079 5080 ; 5081 return 0; 5082 } 5083 _ACEOF 5084 if ac_fn_c_try_compile "$LINENO" 5085 then : 5086 ac_cv_should_define__xopen_source=yes 5087 fi 5088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5089 esac 5090 fi 5091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5092 fi ;; 5093 esac 5094 fi 5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5096 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5097 5098 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5099 5100 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5101 5102 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5103 5104 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5105 5106 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5107 5108 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5109 5110 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5111 5112 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5113 5114 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5115 5116 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5117 5118 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5119 5120 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5121 5122 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5123 5124 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5125 5126 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5127 5128 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5129 5130 if test $ac_cv_header_minix_config_h = yes 5131 then : 5132 MINIX=yes 5133 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5134 5135 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5136 5137 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5138 5139 else case e in #( 5140 e) MINIX= ;; 5141 esac 5142 fi 5143 if test $ac_cv_safe_to_define___extensions__ = yes 5144 then : 5145 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5146 5147 fi 5148 if test $ac_cv_should_define__xopen_source = yes 5149 then : 5150 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5151 5152 fi 5153 5154 5155 # Initialize libtool 5156 case `pwd` in 5157 *\ * | *\ *) 5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5159 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5160 esac 5161 5162 5163 5164 macro_version='2.4.7' 5165 macro_revision='2.4.7' 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 ltmain=$ac_aux_dir/ltmain.sh 5181 5182 5183 5184 # Make sure we can run config.sub. 5185 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 5186 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 5187 5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5189 printf %s "checking build system type... " >&6; } 5190 if test ${ac_cv_build+y} 5191 then : 5192 printf %s "(cached) " >&6 5193 else case e in #( 5194 e) ac_build_alias=$build_alias 5195 test "x$ac_build_alias" = x && 5196 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 5197 test "x$ac_build_alias" = x && 5198 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5199 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 5200 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 5201 ;; 5202 esac 5203 fi 5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5205 printf "%s\n" "$ac_cv_build" >&6; } 5206 case $ac_cv_build in 5207 *-*-*) ;; 5208 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5209 esac 5210 build=$ac_cv_build 5211 ac_save_IFS=$IFS; IFS='-' 5212 set x $ac_cv_build 5213 shift 5214 build_cpu=$1 5215 build_vendor=$2 5216 shift; shift 5217 # Remember, the first character of IFS is used to create $*, 5218 # except with old shells: 5219 build_os=$* 5220 IFS=$ac_save_IFS 5221 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5222 5223 5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5225 printf %s "checking host system type... " >&6; } 5226 if test ${ac_cv_host+y} 5227 then : 5228 printf %s "(cached) " >&6 5229 else case e in #( 5230 e) if test "x$host_alias" = x; then 5231 ac_cv_host=$ac_cv_build 5232 else 5233 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 5234 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 5235 fi 5236 ;; 5237 esac 5238 fi 5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5240 printf "%s\n" "$ac_cv_host" >&6; } 5241 case $ac_cv_host in 5242 *-*-*) ;; 5243 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5244 esac 5245 host=$ac_cv_host 5246 ac_save_IFS=$IFS; IFS='-' 5247 set x $ac_cv_host 5248 shift 5249 host_cpu=$1 5250 host_vendor=$2 5251 shift; shift 5252 # Remember, the first character of IFS is used to create $*, 5253 # except with old shells: 5254 host_os=$* 5255 IFS=$ac_save_IFS 5256 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5257 5258 5259 # Backslashify metacharacters that are still active within 5260 # double-quoted strings. 5261 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5262 5263 # Same as above, but do not quote variable references. 5264 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5265 5266 # Sed substitution to delay expansion of an escaped shell variable in a 5267 # double_quote_subst'ed string. 5268 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5269 5270 # Sed substitution to delay expansion of an escaped single quote. 5271 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5272 5273 # Sed substitution to avoid accidental globbing in evaled expressions 5274 no_glob_subst='s/\*/\\\*/g' 5275 5276 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5277 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5278 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5279 5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5281 printf %s "checking how to print strings... " >&6; } 5282 # Test print first, because it will be a builtin if present. 5283 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5284 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5285 ECHO='print -r --' 5286 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5287 ECHO='printf %s\n' 5288 else 5289 # Use this function as a fallback that always works. 5290 func_fallback_echo () 5291 { 5292 eval 'cat <<_LTECHO_EOF 5293 $1 5294 _LTECHO_EOF' 5295 } 5296 ECHO='func_fallback_echo' 5297 fi 5298 5299 # func_echo_all arg... 5300 # Invoke $ECHO with all args, space-separated. 5301 func_echo_all () 5302 { 5303 $ECHO "" 5304 } 5305 5306 case $ECHO in 5307 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5308 printf "%s\n" "printf" >&6; } ;; 5309 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5310 printf "%s\n" "print -r" >&6; } ;; 5311 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5312 printf "%s\n" "cat" >&6; } ;; 5313 esac 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5329 printf %s "checking for a sed that does not truncate output... " >&6; } 5330 if test ${ac_cv_path_SED+y} 5331 then : 5332 printf %s "(cached) " >&6 5333 else case e in #( 5334 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5335 for ac_i in 1 2 3 4 5 6 7; do 5336 ac_script="$ac_script$as_nl$ac_script" 5337 done 5338 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5339 { ac_script=; unset ac_script;} 5340 if test -z "$SED"; then 5341 ac_path_SED_found=false 5342 # Loop through the user's path and test for each of PROGNAME-LIST 5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5344 for as_dir in $PATH 5345 do 5346 IFS=$as_save_IFS 5347 case $as_dir in #((( 5348 '') as_dir=./ ;; 5349 */) ;; 5350 *) as_dir=$as_dir/ ;; 5351 esac 5352 for ac_prog in sed gsed 5353 do 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5356 as_fn_executable_p "$ac_path_SED" || continue 5357 # Check for GNU ac_path_SED and select it if it is found. 5358 # Check for GNU $ac_path_SED 5359 case `"$ac_path_SED" --version 2>&1` in #( 5360 *GNU*) 5361 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5362 #( 5363 *) 5364 ac_count=0 5365 printf %s 0123456789 >"conftest.in" 5366 while : 5367 do 5368 cat "conftest.in" "conftest.in" >"conftest.tmp" 5369 mv "conftest.tmp" "conftest.in" 5370 cp "conftest.in" "conftest.nl" 5371 printf "%s\n" '' >> "conftest.nl" 5372 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5373 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5374 as_fn_arith $ac_count + 1 && ac_count=$as_val 5375 if test $ac_count -gt ${ac_path_SED_max-0}; then 5376 # Best one so far, save it but keep looking for a better one 5377 ac_cv_path_SED="$ac_path_SED" 5378 ac_path_SED_max=$ac_count 5379 fi 5380 # 10*(2^10) chars as input seems more than enough 5381 test $ac_count -gt 10 && break 5382 done 5383 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5384 esac 5385 5386 $ac_path_SED_found && break 3 5387 done 5388 done 5389 done 5390 IFS=$as_save_IFS 5391 if test -z "$ac_cv_path_SED"; then 5392 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5393 fi 5394 else 5395 ac_cv_path_SED=$SED 5396 fi 5397 ;; 5398 esac 5399 fi 5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5401 printf "%s\n" "$ac_cv_path_SED" >&6; } 5402 SED="$ac_cv_path_SED" 5403 rm -f conftest.sed 5404 5405 test -z "$SED" && SED=sed 5406 Xsed="$SED -e 1s/^X//" 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5419 printf %s "checking for grep that handles long lines and -e... " >&6; } 5420 if test ${ac_cv_path_GREP+y} 5421 then : 5422 printf %s "(cached) " >&6 5423 else case e in #( 5424 e) if test -z "$GREP"; then 5425 ac_path_GREP_found=false 5426 # Loop through the user's path and test for each of PROGNAME-LIST 5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5429 do 5430 IFS=$as_save_IFS 5431 case $as_dir in #((( 5432 '') as_dir=./ ;; 5433 */) ;; 5434 *) as_dir=$as_dir/ ;; 5435 esac 5436 for ac_prog in grep ggrep 5437 do 5438 for ac_exec_ext in '' $ac_executable_extensions; do 5439 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5440 as_fn_executable_p "$ac_path_GREP" || continue 5441 # Check for GNU ac_path_GREP and select it if it is found. 5442 # Check for GNU $ac_path_GREP 5443 case `"$ac_path_GREP" --version 2>&1` in #( 5444 *GNU*) 5445 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5446 #( 5447 *) 5448 ac_count=0 5449 printf %s 0123456789 >"conftest.in" 5450 while : 5451 do 5452 cat "conftest.in" "conftest.in" >"conftest.tmp" 5453 mv "conftest.tmp" "conftest.in" 5454 cp "conftest.in" "conftest.nl" 5455 printf "%s\n" 'GREP' >> "conftest.nl" 5456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5458 as_fn_arith $ac_count + 1 && ac_count=$as_val 5459 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5460 # Best one so far, save it but keep looking for a better one 5461 ac_cv_path_GREP="$ac_path_GREP" 5462 ac_path_GREP_max=$ac_count 5463 fi 5464 # 10*(2^10) chars as input seems more than enough 5465 test $ac_count -gt 10 && break 5466 done 5467 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5468 esac 5469 5470 $ac_path_GREP_found && break 3 5471 done 5472 done 5473 done 5474 IFS=$as_save_IFS 5475 if test -z "$ac_cv_path_GREP"; then 5476 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5477 fi 5478 else 5479 ac_cv_path_GREP=$GREP 5480 fi 5481 ;; 5482 esac 5483 fi 5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5485 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5486 GREP="$ac_cv_path_GREP" 5487 5488 5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5490 printf %s "checking for egrep... " >&6; } 5491 if test ${ac_cv_path_EGREP+y} 5492 then : 5493 printf %s "(cached) " >&6 5494 else case e in #( 5495 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5496 then ac_cv_path_EGREP="$GREP -E" 5497 else 5498 if test -z "$EGREP"; then 5499 ac_path_EGREP_found=false 5500 # Loop through the user's path and test for each of PROGNAME-LIST 5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5503 do 5504 IFS=$as_save_IFS 5505 case $as_dir in #((( 5506 '') as_dir=./ ;; 5507 */) ;; 5508 *) as_dir=$as_dir/ ;; 5509 esac 5510 for ac_prog in egrep 5511 do 5512 for ac_exec_ext in '' $ac_executable_extensions; do 5513 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5514 as_fn_executable_p "$ac_path_EGREP" || continue 5515 # Check for GNU ac_path_EGREP and select it if it is found. 5516 # Check for GNU $ac_path_EGREP 5517 case `"$ac_path_EGREP" --version 2>&1` in #( 5518 *GNU*) 5519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5520 #( 5521 *) 5522 ac_count=0 5523 printf %s 0123456789 >"conftest.in" 5524 while : 5525 do 5526 cat "conftest.in" "conftest.in" >"conftest.tmp" 5527 mv "conftest.tmp" "conftest.in" 5528 cp "conftest.in" "conftest.nl" 5529 printf "%s\n" 'EGREP' >> "conftest.nl" 5530 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5532 as_fn_arith $ac_count + 1 && ac_count=$as_val 5533 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5534 # Best one so far, save it but keep looking for a better one 5535 ac_cv_path_EGREP="$ac_path_EGREP" 5536 ac_path_EGREP_max=$ac_count 5537 fi 5538 # 10*(2^10) chars as input seems more than enough 5539 test $ac_count -gt 10 && break 5540 done 5541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5542 esac 5543 5544 $ac_path_EGREP_found && break 3 5545 done 5546 done 5547 done 5548 IFS=$as_save_IFS 5549 if test -z "$ac_cv_path_EGREP"; then 5550 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5551 fi 5552 else 5553 ac_cv_path_EGREP=$EGREP 5554 fi 5555 5556 fi ;; 5557 esac 5558 fi 5559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5560 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5561 EGREP="$ac_cv_path_EGREP" 5562 5563 EGREP_TRADITIONAL=$EGREP 5564 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5565 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5567 printf %s "checking for fgrep... " >&6; } 5568 if test ${ac_cv_path_FGREP+y} 5569 then : 5570 printf %s "(cached) " >&6 5571 else case e in #( 5572 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5573 then ac_cv_path_FGREP="$GREP -F" 5574 else 5575 if test -z "$FGREP"; then 5576 ac_path_FGREP_found=false 5577 # Loop through the user's path and test for each of PROGNAME-LIST 5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5579 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5580 do 5581 IFS=$as_save_IFS 5582 case $as_dir in #((( 5583 '') as_dir=./ ;; 5584 */) ;; 5585 *) as_dir=$as_dir/ ;; 5586 esac 5587 for ac_prog in fgrep 5588 do 5589 for ac_exec_ext in '' $ac_executable_extensions; do 5590 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5591 as_fn_executable_p "$ac_path_FGREP" || continue 5592 # Check for GNU ac_path_FGREP and select it if it is found. 5593 # Check for GNU $ac_path_FGREP 5594 case `"$ac_path_FGREP" --version 2>&1` in #( 5595 *GNU*) 5596 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5597 #( 5598 *) 5599 ac_count=0 5600 printf %s 0123456789 >"conftest.in" 5601 while : 5602 do 5603 cat "conftest.in" "conftest.in" >"conftest.tmp" 5604 mv "conftest.tmp" "conftest.in" 5605 cp "conftest.in" "conftest.nl" 5606 printf "%s\n" 'FGREP' >> "conftest.nl" 5607 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5609 as_fn_arith $ac_count + 1 && ac_count=$as_val 5610 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5611 # Best one so far, save it but keep looking for a better one 5612 ac_cv_path_FGREP="$ac_path_FGREP" 5613 ac_path_FGREP_max=$ac_count 5614 fi 5615 # 10*(2^10) chars as input seems more than enough 5616 test $ac_count -gt 10 && break 5617 done 5618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5619 esac 5620 5621 $ac_path_FGREP_found && break 3 5622 done 5623 done 5624 done 5625 IFS=$as_save_IFS 5626 if test -z "$ac_cv_path_FGREP"; then 5627 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5628 fi 5629 else 5630 ac_cv_path_FGREP=$FGREP 5631 fi 5632 5633 fi ;; 5634 esac 5635 fi 5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5637 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 5638 FGREP="$ac_cv_path_FGREP" 5639 5640 5641 test -z "$GREP" && GREP=grep 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 # Check whether --with-gnu-ld was given. 5662 if test ${with_gnu_ld+y} 5663 then : 5664 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5665 else case e in #( 5666 e) with_gnu_ld=no ;; 5667 esac 5668 fi 5669 5670 ac_prog=ld 5671 if test yes = "$GCC"; then 5672 # Check if gcc -print-prog-name=ld gives a path. 5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5674 printf %s "checking for ld used by $CC... " >&6; } 5675 case $host in 5676 *-*-mingw*) 5677 # gcc leaves a trailing carriage return, which upsets mingw 5678 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5679 *) 5680 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5681 esac 5682 case $ac_prog in 5683 # Accept absolute paths. 5684 [\\/]* | ?:[\\/]*) 5685 re_direlt='/[^/][^/]*/\.\./' 5686 # Canonicalize the pathname of ld 5687 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5688 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5689 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5690 done 5691 test -z "$LD" && LD=$ac_prog 5692 ;; 5693 "") 5694 # If it fails, then pretend we aren't using GCC. 5695 ac_prog=ld 5696 ;; 5697 *) 5698 # If it is relative, then search for the first ld in PATH. 5699 with_gnu_ld=unknown 5700 ;; 5701 esac 5702 elif test yes = "$with_gnu_ld"; then 5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5704 printf %s "checking for GNU ld... " >&6; } 5705 else 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5707 printf %s "checking for non-GNU ld... " >&6; } 5708 fi 5709 if test ${lt_cv_path_LD+y} 5710 then : 5711 printf %s "(cached) " >&6 5712 else case e in #( 5713 e) if test -z "$LD"; then 5714 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5715 for ac_dir in $PATH; do 5716 IFS=$lt_save_ifs 5717 test -z "$ac_dir" && ac_dir=. 5718 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5719 lt_cv_path_LD=$ac_dir/$ac_prog 5720 # Check to see if the program is GNU ld. I'd rather use --version, 5721 # but apparently some variants of GNU ld only accept -v. 5722 # Break only if it was the GNU/non-GNU ld that we prefer. 5723 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5724 *GNU* | *'with BFD'*) 5725 test no != "$with_gnu_ld" && break 5726 ;; 5727 *) 5728 test yes != "$with_gnu_ld" && break 5729 ;; 5730 esac 5731 fi 5732 done 5733 IFS=$lt_save_ifs 5734 else 5735 lt_cv_path_LD=$LD # Let the user override the test with a path. 5736 fi ;; 5737 esac 5738 fi 5739 5740 LD=$lt_cv_path_LD 5741 if test -n "$LD"; then 5742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5743 printf "%s\n" "$LD" >&6; } 5744 else 5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5746 printf "%s\n" "no" >&6; } 5747 fi 5748 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5750 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 5751 if test ${lt_cv_prog_gnu_ld+y} 5752 then : 5753 printf %s "(cached) " >&6 5754 else case e in #( 5755 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 5756 case `$LD -v 2>&1 </dev/null` in 5757 *GNU* | *'with BFD'*) 5758 lt_cv_prog_gnu_ld=yes 5759 ;; 5760 *) 5761 lt_cv_prog_gnu_ld=no 5762 ;; 5763 esac ;; 5764 esac 5765 fi 5766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5767 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 5768 with_gnu_ld=$lt_cv_prog_gnu_ld 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5779 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5780 if test ${lt_cv_path_NM+y} 5781 then : 5782 printf %s "(cached) " >&6 5783 else case e in #( 5784 e) if test -n "$NM"; then 5785 # Let the user override the test. 5786 lt_cv_path_NM=$NM 5787 else 5788 lt_nm_to_check=${ac_tool_prefix}nm 5789 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5790 lt_nm_to_check="$lt_nm_to_check nm" 5791 fi 5792 for lt_tmp_nm in $lt_nm_to_check; do 5793 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5794 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5795 IFS=$lt_save_ifs 5796 test -z "$ac_dir" && ac_dir=. 5797 tmp_nm=$ac_dir/$lt_tmp_nm 5798 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5799 # Check to see if the nm accepts a BSD-compat flag. 5800 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5801 # nm: unknown option "B" ignored 5802 # Tru64's nm complains that /dev/null is an invalid object file 5803 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5804 case $build_os in 5805 mingw*) lt_bad_file=conftest.nm/nofile ;; 5806 *) lt_bad_file=/dev/null ;; 5807 esac 5808 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 5809 *$lt_bad_file* | *'Invalid file or object type'*) 5810 lt_cv_path_NM="$tmp_nm -B" 5811 break 2 5812 ;; 5813 *) 5814 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 5815 */dev/null*) 5816 lt_cv_path_NM="$tmp_nm -p" 5817 break 2 5818 ;; 5819 *) 5820 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5821 continue # so that we can try to find one that supports BSD flags 5822 ;; 5823 esac 5824 ;; 5825 esac 5826 fi 5827 done 5828 IFS=$lt_save_ifs 5829 done 5830 : ${lt_cv_path_NM=no} 5831 fi ;; 5832 esac 5833 fi 5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5835 printf "%s\n" "$lt_cv_path_NM" >&6; } 5836 if test no != "$lt_cv_path_NM"; then 5837 NM=$lt_cv_path_NM 5838 else 5839 # Didn't find any BSD compatible name lister, look for dumpbin. 5840 if test -n "$DUMPBIN"; then : 5841 # Let the user override the test. 5842 else 5843 if test -n "$ac_tool_prefix"; then 5844 for ac_prog in dumpbin "link -dump" 5845 do 5846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5849 printf %s "checking for $ac_word... " >&6; } 5850 if test ${ac_cv_prog_DUMPBIN+y} 5851 then : 5852 printf %s "(cached) " >&6 5853 else case e in #( 5854 e) if test -n "$DUMPBIN"; then 5855 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5856 else 5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5858 for as_dir in $PATH 5859 do 5860 IFS=$as_save_IFS 5861 case $as_dir in #((( 5862 '') as_dir=./ ;; 5863 */) ;; 5864 *) as_dir=$as_dir/ ;; 5865 esac 5866 for ac_exec_ext in '' $ac_executable_extensions; do 5867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5868 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5870 break 2 5871 fi 5872 done 5873 done 5874 IFS=$as_save_IFS 5875 5876 fi ;; 5877 esac 5878 fi 5879 DUMPBIN=$ac_cv_prog_DUMPBIN 5880 if test -n "$DUMPBIN"; then 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5882 printf "%s\n" "$DUMPBIN" >&6; } 5883 else 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5885 printf "%s\n" "no" >&6; } 5886 fi 5887 5888 5889 test -n "$DUMPBIN" && break 5890 done 5891 fi 5892 if test -z "$DUMPBIN"; then 5893 ac_ct_DUMPBIN=$DUMPBIN 5894 for ac_prog in dumpbin "link -dump" 5895 do 5896 # Extract the first word of "$ac_prog", so it can be a program name with args. 5897 set dummy $ac_prog; ac_word=$2 5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5899 printf %s "checking for $ac_word... " >&6; } 5900 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 5901 then : 5902 printf %s "(cached) " >&6 5903 else case e in #( 5904 e) if test -n "$ac_ct_DUMPBIN"; then 5905 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5906 else 5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908 for as_dir in $PATH 5909 do 5910 IFS=$as_save_IFS 5911 case $as_dir in #((( 5912 '') as_dir=./ ;; 5913 */) ;; 5914 *) as_dir=$as_dir/ ;; 5915 esac 5916 for ac_exec_ext in '' $ac_executable_extensions; do 5917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5918 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5920 break 2 5921 fi 5922 done 5923 done 5924 IFS=$as_save_IFS 5925 5926 fi ;; 5927 esac 5928 fi 5929 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5930 if test -n "$ac_ct_DUMPBIN"; then 5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5932 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 5933 else 5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5935 printf "%s\n" "no" >&6; } 5936 fi 5937 5938 5939 test -n "$ac_ct_DUMPBIN" && break 5940 done 5941 5942 if test "x$ac_ct_DUMPBIN" = x; then 5943 DUMPBIN=":" 5944 else 5945 case $cross_compiling:$ac_tool_warned in 5946 yes:) 5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5948 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5949 ac_tool_warned=yes ;; 5950 esac 5951 DUMPBIN=$ac_ct_DUMPBIN 5952 fi 5953 fi 5954 5955 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 5956 *COFF*) 5957 DUMPBIN="$DUMPBIN -symbols -headers" 5958 ;; 5959 *) 5960 DUMPBIN=: 5961 ;; 5962 esac 5963 fi 5964 5965 if test : != "$DUMPBIN"; then 5966 NM=$DUMPBIN 5967 fi 5968 fi 5969 test -z "$NM" && NM=nm 5970 5971 5972 5973 5974 5975 5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5977 printf %s "checking the name lister ($NM) interface... " >&6; } 5978 if test ${lt_cv_nm_interface+y} 5979 then : 5980 printf %s "(cached) " >&6 5981 else case e in #( 5982 e) lt_cv_nm_interface="BSD nm" 5983 echo "int some_variable = 0;" > conftest.$ac_ext 5984 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5985 (eval "$ac_compile" 2>conftest.err) 5986 cat conftest.err >&5 5987 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5988 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5989 cat conftest.err >&5 5990 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5991 cat conftest.out >&5 5992 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5993 lt_cv_nm_interface="MS dumpbin" 5994 fi 5995 rm -f conftest* ;; 5996 esac 5997 fi 5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5999 printf "%s\n" "$lt_cv_nm_interface" >&6; } 6000 6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6002 printf %s "checking whether ln -s works... " >&6; } 6003 LN_S=$as_ln_s 6004 if test "$LN_S" = "ln -s"; then 6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6006 printf "%s\n" "yes" >&6; } 6007 else 6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6009 printf "%s\n" "no, using $LN_S" >&6; } 6010 fi 6011 6012 # find the maximum length of command line arguments 6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6014 printf %s "checking the maximum length of command line arguments... " >&6; } 6015 if test ${lt_cv_sys_max_cmd_len+y} 6016 then : 6017 printf %s "(cached) " >&6 6018 else case e in #( 6019 e) i=0 6020 teststring=ABCD 6021 6022 case $build_os in 6023 msdosdjgpp*) 6024 # On DJGPP, this test can blow up pretty badly due to problems in libc 6025 # (any single argument exceeding 2000 bytes causes a buffer overrun 6026 # during glob expansion). Even if it were fixed, the result of this 6027 # check would be larger than it should be. 6028 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6029 ;; 6030 6031 gnu*) 6032 # Under GNU Hurd, this test is not required because there is 6033 # no limit to the length of command line arguments. 6034 # Libtool will interpret -1 as no limit whatsoever 6035 lt_cv_sys_max_cmd_len=-1; 6036 ;; 6037 6038 cygwin* | mingw* | cegcc*) 6039 # On Win9x/ME, this test blows up -- it succeeds, but takes 6040 # about 5 minutes as the teststring grows exponentially. 6041 # Worse, since 9x/ME are not pre-emptively multitasking, 6042 # you end up with a "frozen" computer, even though with patience 6043 # the test eventually succeeds (with a max line length of 256k). 6044 # Instead, let's just punt: use the minimum linelength reported by 6045 # all of the supported platforms: 8192 (on NT/2K/XP). 6046 lt_cv_sys_max_cmd_len=8192; 6047 ;; 6048 6049 mint*) 6050 # On MiNT this can take a long time and run out of memory. 6051 lt_cv_sys_max_cmd_len=8192; 6052 ;; 6053 6054 amigaos*) 6055 # On AmigaOS with pdksh, this test takes hours, literally. 6056 # So we just punt and use a minimum line length of 8192. 6057 lt_cv_sys_max_cmd_len=8192; 6058 ;; 6059 6060 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6061 # This has been around since 386BSD, at least. Likely further. 6062 if test -x /sbin/sysctl; then 6063 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6064 elif test -x /usr/sbin/sysctl; then 6065 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6066 else 6067 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6068 fi 6069 # And add a safety zone 6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6071 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6072 ;; 6073 6074 interix*) 6075 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6076 lt_cv_sys_max_cmd_len=196608 6077 ;; 6078 6079 os2*) 6080 # The test takes a long time on OS/2. 6081 lt_cv_sys_max_cmd_len=8192 6082 ;; 6083 6084 osf*) 6085 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6086 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6087 # nice to cause kernel panics so lets avoid the loop below. 6088 # First set a reasonable default. 6089 lt_cv_sys_max_cmd_len=16384 6090 # 6091 if test -x /sbin/sysconfig; then 6092 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6093 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6094 esac 6095 fi 6096 ;; 6097 sco3.2v5*) 6098 lt_cv_sys_max_cmd_len=102400 6099 ;; 6100 sysv5* | sco5v6* | sysv4.2uw2*) 6101 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6102 if test -n "$kargmax"; then 6103 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6104 else 6105 lt_cv_sys_max_cmd_len=32768 6106 fi 6107 ;; 6108 *) 6109 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6110 if test -n "$lt_cv_sys_max_cmd_len" && \ 6111 test undefined != "$lt_cv_sys_max_cmd_len"; then 6112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6114 else 6115 # Make teststring a little bigger before we do anything with it. 6116 # a 1K string should be a reasonable start. 6117 for i in 1 2 3 4 5 6 7 8; do 6118 teststring=$teststring$teststring 6119 done 6120 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6121 # If test is not a shell built-in, we'll probably end up computing a 6122 # maximum length that is only half of the actual maximum length, but 6123 # we can't tell. 6124 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6125 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6126 test 17 != "$i" # 1/2 MB should be enough 6127 do 6128 i=`expr $i + 1` 6129 teststring=$teststring$teststring 6130 done 6131 # Only check the string length outside the loop. 6132 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6133 teststring= 6134 # Add a significant safety factor because C++ compilers can tack on 6135 # massive amounts of additional arguments before passing them to the 6136 # linker. It appears as though 1/2 is a usable value. 6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6138 fi 6139 ;; 6140 esac 6141 ;; 6142 esac 6143 fi 6144 6145 if test -n "$lt_cv_sys_max_cmd_len"; then 6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6147 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6148 else 6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6150 printf "%s\n" "none" >&6; } 6151 fi 6152 max_cmd_len=$lt_cv_sys_max_cmd_len 6153 6154 6155 6156 6157 6158 6159 : ${CP="cp -f"} 6160 : ${MV="mv -f"} 6161 : ${RM="rm -f"} 6162 6163 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6164 lt_unset=unset 6165 else 6166 lt_unset=false 6167 fi 6168 6169 6170 6171 6172 6173 # test EBCDIC or ASCII 6174 case `echo X|tr X '\101'` in 6175 A) # ASCII based system 6176 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6177 lt_SP2NL='tr \040 \012' 6178 lt_NL2SP='tr \015\012 \040\040' 6179 ;; 6180 *) # EBCDIC based system 6181 lt_SP2NL='tr \100 \n' 6182 lt_NL2SP='tr \r\n \100\100' 6183 ;; 6184 esac 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6195 printf %s "checking how to convert $build file names to $host format... " >&6; } 6196 if test ${lt_cv_to_host_file_cmd+y} 6197 then : 6198 printf %s "(cached) " >&6 6199 else case e in #( 6200 e) case $host in 6201 *-*-mingw* ) 6202 case $build in 6203 *-*-mingw* ) # actually msys 6204 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6205 ;; 6206 *-*-cygwin* ) 6207 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6208 ;; 6209 * ) # otherwise, assume *nix 6210 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6211 ;; 6212 esac 6213 ;; 6214 *-*-cygwin* ) 6215 case $build in 6216 *-*-mingw* ) # actually msys 6217 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6218 ;; 6219 *-*-cygwin* ) 6220 lt_cv_to_host_file_cmd=func_convert_file_noop 6221 ;; 6222 * ) # otherwise, assume *nix 6223 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6224 ;; 6225 esac 6226 ;; 6227 * ) # unhandled hosts (and "normal" native builds) 6228 lt_cv_to_host_file_cmd=func_convert_file_noop 6229 ;; 6230 esac 6231 ;; 6232 esac 6233 fi 6234 6235 to_host_file_cmd=$lt_cv_to_host_file_cmd 6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6237 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6238 6239 6240 6241 6242 6243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6244 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6245 if test ${lt_cv_to_tool_file_cmd+y} 6246 then : 6247 printf %s "(cached) " >&6 6248 else case e in #( 6249 e) #assume ordinary cross tools, or native build. 6250 lt_cv_to_tool_file_cmd=func_convert_file_noop 6251 case $host in 6252 *-*-mingw* ) 6253 case $build in 6254 *-*-mingw* ) # actually msys 6255 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6256 ;; 6257 esac 6258 ;; 6259 esac 6260 ;; 6261 esac 6262 fi 6263 6264 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6266 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6267 6268 6269 6270 6271 6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6273 printf %s "checking for $LD option to reload object files... " >&6; } 6274 if test ${lt_cv_ld_reload_flag+y} 6275 then : 6276 printf %s "(cached) " >&6 6277 else case e in #( 6278 e) lt_cv_ld_reload_flag='-r' ;; 6279 esac 6280 fi 6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6282 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6283 reload_flag=$lt_cv_ld_reload_flag 6284 case $reload_flag in 6285 "" | " "*) ;; 6286 *) reload_flag=" $reload_flag" ;; 6287 esac 6288 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6289 case $host_os in 6290 cygwin* | mingw* | pw32* | cegcc*) 6291 if test yes != "$GCC"; then 6292 reload_cmds=false 6293 fi 6294 ;; 6295 darwin*) 6296 if test yes = "$GCC"; then 6297 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6298 else 6299 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6300 fi 6301 ;; 6302 esac 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 if test -n "$ac_tool_prefix"; then 6313 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6314 set dummy ${ac_tool_prefix}file; ac_word=$2 6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6316 printf %s "checking for $ac_word... " >&6; } 6317 if test ${ac_cv_prog_FILECMD+y} 6318 then : 6319 printf %s "(cached) " >&6 6320 else case e in #( 6321 e) if test -n "$FILECMD"; then 6322 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6323 else 6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6325 for as_dir in $PATH 6326 do 6327 IFS=$as_save_IFS 6328 case $as_dir in #((( 6329 '') as_dir=./ ;; 6330 */) ;; 6331 *) as_dir=$as_dir/ ;; 6332 esac 6333 for ac_exec_ext in '' $ac_executable_extensions; do 6334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6335 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6337 break 2 6338 fi 6339 done 6340 done 6341 IFS=$as_save_IFS 6342 6343 fi ;; 6344 esac 6345 fi 6346 FILECMD=$ac_cv_prog_FILECMD 6347 if test -n "$FILECMD"; then 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6349 printf "%s\n" "$FILECMD" >&6; } 6350 else 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6352 printf "%s\n" "no" >&6; } 6353 fi 6354 6355 6356 fi 6357 if test -z "$ac_cv_prog_FILECMD"; then 6358 ac_ct_FILECMD=$FILECMD 6359 # Extract the first word of "file", so it can be a program name with args. 6360 set dummy file; ac_word=$2 6361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6362 printf %s "checking for $ac_word... " >&6; } 6363 if test ${ac_cv_prog_ac_ct_FILECMD+y} 6364 then : 6365 printf %s "(cached) " >&6 6366 else case e in #( 6367 e) if test -n "$ac_ct_FILECMD"; then 6368 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6369 else 6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371 for as_dir in $PATH 6372 do 6373 IFS=$as_save_IFS 6374 case $as_dir in #((( 6375 '') as_dir=./ ;; 6376 */) ;; 6377 *) as_dir=$as_dir/ ;; 6378 esac 6379 for ac_exec_ext in '' $ac_executable_extensions; do 6380 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6381 ac_cv_prog_ac_ct_FILECMD="file" 6382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6383 break 2 6384 fi 6385 done 6386 done 6387 IFS=$as_save_IFS 6388 6389 fi ;; 6390 esac 6391 fi 6392 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6393 if test -n "$ac_ct_FILECMD"; then 6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6395 printf "%s\n" "$ac_ct_FILECMD" >&6; } 6396 else 6397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6398 printf "%s\n" "no" >&6; } 6399 fi 6400 6401 if test "x$ac_ct_FILECMD" = x; then 6402 FILECMD=":" 6403 else 6404 case $cross_compiling:$ac_tool_warned in 6405 yes:) 6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6407 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6408 ac_tool_warned=yes ;; 6409 esac 6410 FILECMD=$ac_ct_FILECMD 6411 fi 6412 else 6413 FILECMD="$ac_cv_prog_FILECMD" 6414 fi 6415 6416 6417 6418 6419 6420 6421 6422 if test -n "$ac_tool_prefix"; then 6423 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6424 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6426 printf %s "checking for $ac_word... " >&6; } 6427 if test ${ac_cv_prog_OBJDUMP+y} 6428 then : 6429 printf %s "(cached) " >&6 6430 else case e in #( 6431 e) if test -n "$OBJDUMP"; then 6432 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6433 else 6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6435 for as_dir in $PATH 6436 do 6437 IFS=$as_save_IFS 6438 case $as_dir in #((( 6439 '') as_dir=./ ;; 6440 */) ;; 6441 *) as_dir=$as_dir/ ;; 6442 esac 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6445 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449 done 6450 done 6451 IFS=$as_save_IFS 6452 6453 fi ;; 6454 esac 6455 fi 6456 OBJDUMP=$ac_cv_prog_OBJDUMP 6457 if test -n "$OBJDUMP"; then 6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6459 printf "%s\n" "$OBJDUMP" >&6; } 6460 else 6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462 printf "%s\n" "no" >&6; } 6463 fi 6464 6465 6466 fi 6467 if test -z "$ac_cv_prog_OBJDUMP"; then 6468 ac_ct_OBJDUMP=$OBJDUMP 6469 # Extract the first word of "objdump", so it can be a program name with args. 6470 set dummy objdump; ac_word=$2 6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6472 printf %s "checking for $ac_word... " >&6; } 6473 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6474 then : 6475 printf %s "(cached) " >&6 6476 else case e in #( 6477 e) if test -n "$ac_ct_OBJDUMP"; then 6478 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6479 else 6480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6481 for as_dir in $PATH 6482 do 6483 IFS=$as_save_IFS 6484 case $as_dir in #((( 6485 '') as_dir=./ ;; 6486 */) ;; 6487 *) as_dir=$as_dir/ ;; 6488 esac 6489 for ac_exec_ext in '' $ac_executable_extensions; do 6490 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6491 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6493 break 2 6494 fi 6495 done 6496 done 6497 IFS=$as_save_IFS 6498 6499 fi ;; 6500 esac 6501 fi 6502 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6503 if test -n "$ac_ct_OBJDUMP"; then 6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6505 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6506 else 6507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6508 printf "%s\n" "no" >&6; } 6509 fi 6510 6511 if test "x$ac_ct_OBJDUMP" = x; then 6512 OBJDUMP="false" 6513 else 6514 case $cross_compiling:$ac_tool_warned in 6515 yes:) 6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6517 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6518 ac_tool_warned=yes ;; 6519 esac 6520 OBJDUMP=$ac_ct_OBJDUMP 6521 fi 6522 else 6523 OBJDUMP="$ac_cv_prog_OBJDUMP" 6524 fi 6525 6526 test -z "$OBJDUMP" && OBJDUMP=objdump 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6537 printf %s "checking how to recognize dependent libraries... " >&6; } 6538 if test ${lt_cv_deplibs_check_method+y} 6539 then : 6540 printf %s "(cached) " >&6 6541 else case e in #( 6542 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6543 lt_cv_file_magic_test_file= 6544 lt_cv_deplibs_check_method='unknown' 6545 # Need to set the preceding variable on all platforms that support 6546 # interlibrary dependencies. 6547 # 'none' -- dependencies not supported. 6548 # 'unknown' -- same as none, but documents that we really don't know. 6549 # 'pass_all' -- all dependencies passed with no checks. 6550 # 'test_compile' -- check by making test program. 6551 # 'file_magic [[regex]]' -- check by looking for files in library path 6552 # that responds to the $file_magic_cmd with a given extended regex. 6553 # If you have 'file' or equivalent on your system and you're not sure 6554 # whether 'pass_all' will *always* work, you probably want this one. 6555 6556 case $host_os in 6557 aix[4-9]*) 6558 lt_cv_deplibs_check_method=pass_all 6559 ;; 6560 6561 beos*) 6562 lt_cv_deplibs_check_method=pass_all 6563 ;; 6564 6565 bsdi[45]*) 6566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6567 lt_cv_file_magic_cmd='$FILECMD -L' 6568 lt_cv_file_magic_test_file=/shlib/libc.so 6569 ;; 6570 6571 cygwin*) 6572 # func_win32_libid is a shell function defined in ltmain.sh 6573 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6574 lt_cv_file_magic_cmd='func_win32_libid' 6575 ;; 6576 6577 mingw* | pw32*) 6578 # Base MSYS/MinGW do not provide the 'file' command needed by 6579 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6580 # unless we find 'file', for example because we are cross-compiling. 6581 if ( file / ) >/dev/null 2>&1; then 6582 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6583 lt_cv_file_magic_cmd='func_win32_libid' 6584 else 6585 # Keep this pattern in sync with the one in func_win32_libid. 6586 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6587 lt_cv_file_magic_cmd='$OBJDUMP -f' 6588 fi 6589 ;; 6590 6591 cegcc*) 6592 # use the weaker test based on 'objdump'. See mingw*. 6593 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6594 lt_cv_file_magic_cmd='$OBJDUMP -f' 6595 ;; 6596 6597 darwin* | rhapsody*) 6598 lt_cv_deplibs_check_method=pass_all 6599 ;; 6600 6601 freebsd* | dragonfly* | midnightbsd*) 6602 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6603 case $host_cpu in 6604 i*86 ) 6605 # Not sure whether the presence of OpenBSD here was a mistake. 6606 # Let's accept both of them until this is cleared up. 6607 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6608 lt_cv_file_magic_cmd=$FILECMD 6609 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6610 ;; 6611 esac 6612 else 6613 lt_cv_deplibs_check_method=pass_all 6614 fi 6615 ;; 6616 6617 haiku*) 6618 lt_cv_deplibs_check_method=pass_all 6619 ;; 6620 6621 hpux10.20* | hpux11*) 6622 lt_cv_file_magic_cmd=$FILECMD 6623 case $host_cpu in 6624 ia64*) 6625 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6626 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6627 ;; 6628 hppa*64*) 6629 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]' 6630 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6631 ;; 6632 *) 6633 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6634 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6635 ;; 6636 esac 6637 ;; 6638 6639 interix[3-9]*) 6640 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6642 ;; 6643 6644 irix5* | irix6* | nonstopux*) 6645 case $LD in 6646 *-32|*"-32 ") libmagic=32-bit;; 6647 *-n32|*"-n32 ") libmagic=N32;; 6648 *-64|*"-64 ") libmagic=64-bit;; 6649 *) libmagic=never-match;; 6650 esac 6651 lt_cv_deplibs_check_method=pass_all 6652 ;; 6653 6654 # This must be glibc/ELF. 6655 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6656 lt_cv_deplibs_check_method=pass_all 6657 ;; 6658 6659 netbsd*) 6660 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6662 else 6663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6664 fi 6665 ;; 6666 6667 newos6*) 6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6669 lt_cv_file_magic_cmd=$FILECMD 6670 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6671 ;; 6672 6673 *nto* | *qnx*) 6674 lt_cv_deplibs_check_method=pass_all 6675 ;; 6676 6677 openbsd* | bitrig*) 6678 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6680 else 6681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6682 fi 6683 ;; 6684 6685 osf3* | osf4* | osf5*) 6686 lt_cv_deplibs_check_method=pass_all 6687 ;; 6688 6689 rdos*) 6690 lt_cv_deplibs_check_method=pass_all 6691 ;; 6692 6693 solaris*) 6694 lt_cv_deplibs_check_method=pass_all 6695 ;; 6696 6697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6698 lt_cv_deplibs_check_method=pass_all 6699 ;; 6700 6701 sysv4 | sysv4.3*) 6702 case $host_vendor in 6703 motorola) 6704 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]' 6705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6706 ;; 6707 ncr) 6708 lt_cv_deplibs_check_method=pass_all 6709 ;; 6710 sequent) 6711 lt_cv_file_magic_cmd='/bin/file' 6712 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6713 ;; 6714 sni) 6715 lt_cv_file_magic_cmd='/bin/file' 6716 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6717 lt_cv_file_magic_test_file=/lib/libc.so 6718 ;; 6719 siemens) 6720 lt_cv_deplibs_check_method=pass_all 6721 ;; 6722 pc) 6723 lt_cv_deplibs_check_method=pass_all 6724 ;; 6725 esac 6726 ;; 6727 6728 tpf*) 6729 lt_cv_deplibs_check_method=pass_all 6730 ;; 6731 os2*) 6732 lt_cv_deplibs_check_method=pass_all 6733 ;; 6734 esac 6735 ;; 6736 esac 6737 fi 6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6739 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 6740 6741 file_magic_glob= 6742 want_nocaseglob=no 6743 if test "$build" = "$host"; then 6744 case $host_os in 6745 mingw* | pw32*) 6746 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6747 want_nocaseglob=yes 6748 else 6749 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6750 fi 6751 ;; 6752 esac 6753 fi 6754 6755 file_magic_cmd=$lt_cv_file_magic_cmd 6756 deplibs_check_method=$lt_cv_deplibs_check_method 6757 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 if test -n "$ac_tool_prefix"; then 6781 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6782 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6784 printf %s "checking for $ac_word... " >&6; } 6785 if test ${ac_cv_prog_DLLTOOL+y} 6786 then : 6787 printf %s "(cached) " >&6 6788 else case e in #( 6789 e) if test -n "$DLLTOOL"; then 6790 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6791 else 6792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6793 for as_dir in $PATH 6794 do 6795 IFS=$as_save_IFS 6796 case $as_dir in #((( 6797 '') as_dir=./ ;; 6798 */) ;; 6799 *) as_dir=$as_dir/ ;; 6800 esac 6801 for ac_exec_ext in '' $ac_executable_extensions; do 6802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6803 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6805 break 2 6806 fi 6807 done 6808 done 6809 IFS=$as_save_IFS 6810 6811 fi ;; 6812 esac 6813 fi 6814 DLLTOOL=$ac_cv_prog_DLLTOOL 6815 if test -n "$DLLTOOL"; then 6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6817 printf "%s\n" "$DLLTOOL" >&6; } 6818 else 6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6820 printf "%s\n" "no" >&6; } 6821 fi 6822 6823 6824 fi 6825 if test -z "$ac_cv_prog_DLLTOOL"; then 6826 ac_ct_DLLTOOL=$DLLTOOL 6827 # Extract the first word of "dlltool", so it can be a program name with args. 6828 set dummy dlltool; ac_word=$2 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6830 printf %s "checking for $ac_word... " >&6; } 6831 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 6832 then : 6833 printf %s "(cached) " >&6 6834 else case e in #( 6835 e) if test -n "$ac_ct_DLLTOOL"; then 6836 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6837 else 6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6839 for as_dir in $PATH 6840 do 6841 IFS=$as_save_IFS 6842 case $as_dir in #((( 6843 '') as_dir=./ ;; 6844 */) ;; 6845 *) as_dir=$as_dir/ ;; 6846 esac 6847 for ac_exec_ext in '' $ac_executable_extensions; do 6848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6849 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6851 break 2 6852 fi 6853 done 6854 done 6855 IFS=$as_save_IFS 6856 6857 fi ;; 6858 esac 6859 fi 6860 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6861 if test -n "$ac_ct_DLLTOOL"; then 6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6863 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 6864 else 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6866 printf "%s\n" "no" >&6; } 6867 fi 6868 6869 if test "x$ac_ct_DLLTOOL" = x; then 6870 DLLTOOL="false" 6871 else 6872 case $cross_compiling:$ac_tool_warned in 6873 yes:) 6874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6875 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6876 ac_tool_warned=yes ;; 6877 esac 6878 DLLTOOL=$ac_ct_DLLTOOL 6879 fi 6880 else 6881 DLLTOOL="$ac_cv_prog_DLLTOOL" 6882 fi 6883 6884 test -z "$DLLTOOL" && DLLTOOL=dlltool 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6896 printf %s "checking how to associate runtime and link libraries... " >&6; } 6897 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 6898 then : 6899 printf %s "(cached) " >&6 6900 else case e in #( 6901 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 6902 6903 case $host_os in 6904 cygwin* | mingw* | pw32* | cegcc*) 6905 # two different shell functions defined in ltmain.sh; 6906 # decide which one to use based on capabilities of $DLLTOOL 6907 case `$DLLTOOL --help 2>&1` in 6908 *--identify-strict*) 6909 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6910 ;; 6911 *) 6912 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6913 ;; 6914 esac 6915 ;; 6916 *) 6917 # fallback: assume linklib IS sharedlib 6918 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6919 ;; 6920 esac 6921 ;; 6922 esac 6923 fi 6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6925 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6926 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6927 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6928 6929 6930 6931 6932 6933 6934 6935 if test -n "$ac_tool_prefix"; then 6936 for ac_prog in ar 6937 do 6938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941 printf %s "checking for $ac_word... " >&6; } 6942 if test ${ac_cv_prog_AR+y} 6943 then : 6944 printf %s "(cached) " >&6 6945 else case e in #( 6946 e) if test -n "$AR"; then 6947 ac_cv_prog_AR="$AR" # Let the user override the test. 6948 else 6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6950 for as_dir in $PATH 6951 do 6952 IFS=$as_save_IFS 6953 case $as_dir in #((( 6954 '') as_dir=./ ;; 6955 */) ;; 6956 *) as_dir=$as_dir/ ;; 6957 esac 6958 for ac_exec_ext in '' $ac_executable_extensions; do 6959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6960 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6962 break 2 6963 fi 6964 done 6965 done 6966 IFS=$as_save_IFS 6967 6968 fi ;; 6969 esac 6970 fi 6971 AR=$ac_cv_prog_AR 6972 if test -n "$AR"; then 6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6974 printf "%s\n" "$AR" >&6; } 6975 else 6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6977 printf "%s\n" "no" >&6; } 6978 fi 6979 6980 6981 test -n "$AR" && break 6982 done 6983 fi 6984 if test -z "$AR"; then 6985 ac_ct_AR=$AR 6986 for ac_prog in ar 6987 do 6988 # Extract the first word of "$ac_prog", so it can be a program name with args. 6989 set dummy $ac_prog; ac_word=$2 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6991 printf %s "checking for $ac_word... " >&6; } 6992 if test ${ac_cv_prog_ac_ct_AR+y} 6993 then : 6994 printf %s "(cached) " >&6 6995 else case e in #( 6996 e) if test -n "$ac_ct_AR"; then 6997 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6998 else 6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000 for as_dir in $PATH 7001 do 7002 IFS=$as_save_IFS 7003 case $as_dir in #((( 7004 '') as_dir=./ ;; 7005 */) ;; 7006 *) as_dir=$as_dir/ ;; 7007 esac 7008 for ac_exec_ext in '' $ac_executable_extensions; do 7009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7010 ac_cv_prog_ac_ct_AR="$ac_prog" 7011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7012 break 2 7013 fi 7014 done 7015 done 7016 IFS=$as_save_IFS 7017 7018 fi ;; 7019 esac 7020 fi 7021 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7022 if test -n "$ac_ct_AR"; then 7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7024 printf "%s\n" "$ac_ct_AR" >&6; } 7025 else 7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7027 printf "%s\n" "no" >&6; } 7028 fi 7029 7030 7031 test -n "$ac_ct_AR" && break 7032 done 7033 7034 if test "x$ac_ct_AR" = x; then 7035 AR="false" 7036 else 7037 case $cross_compiling:$ac_tool_warned in 7038 yes:) 7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7040 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7041 ac_tool_warned=yes ;; 7042 esac 7043 AR=$ac_ct_AR 7044 fi 7045 fi 7046 7047 : ${AR=ar} 7048 7049 7050 7051 7052 7053 7054 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 7055 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7056 # higher priority because thats what people were doing historically (setting 7057 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7058 # variable obsoleted/removed. 7059 7060 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7061 lt_ar_flags=$AR_FLAGS 7062 7063 7064 7065 7066 7067 7068 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7069 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7070 7071 7072 7073 7074 7075 7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7077 printf %s "checking for archiver @FILE support... " >&6; } 7078 if test ${lt_cv_ar_at_file+y} 7079 then : 7080 printf %s "(cached) " >&6 7081 else case e in #( 7082 e) lt_cv_ar_at_file=no 7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7084 /* end confdefs.h. */ 7085 7086 int 7087 main (void) 7088 { 7089 7090 ; 7091 return 0; 7092 } 7093 _ACEOF 7094 if ac_fn_c_try_compile "$LINENO" 7095 then : 7096 echo conftest.$ac_objext > conftest.lst 7097 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7099 (eval $lt_ar_try) 2>&5 7100 ac_status=$? 7101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7102 test $ac_status = 0; } 7103 if test 0 -eq "$ac_status"; then 7104 # Ensure the archiver fails upon bogus file names. 7105 rm -f conftest.$ac_objext libconftest.a 7106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7107 (eval $lt_ar_try) 2>&5 7108 ac_status=$? 7109 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7110 test $ac_status = 0; } 7111 if test 0 -ne "$ac_status"; then 7112 lt_cv_ar_at_file=@ 7113 fi 7114 fi 7115 rm -f conftest.* libconftest.a 7116 7117 fi 7118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7119 ;; 7120 esac 7121 fi 7122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7123 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7124 7125 if test no = "$lt_cv_ar_at_file"; then 7126 archiver_list_spec= 7127 else 7128 archiver_list_spec=$lt_cv_ar_at_file 7129 fi 7130 7131 7132 7133 7134 7135 7136 7137 if test -n "$ac_tool_prefix"; then 7138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7139 set dummy ${ac_tool_prefix}strip; ac_word=$2 7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7141 printf %s "checking for $ac_word... " >&6; } 7142 if test ${ac_cv_prog_STRIP+y} 7143 then : 7144 printf %s "(cached) " >&6 7145 else case e in #( 7146 e) if test -n "$STRIP"; then 7147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7148 else 7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150 for as_dir in $PATH 7151 do 7152 IFS=$as_save_IFS 7153 case $as_dir in #((( 7154 '') as_dir=./ ;; 7155 */) ;; 7156 *) as_dir=$as_dir/ ;; 7157 esac 7158 for ac_exec_ext in '' $ac_executable_extensions; do 7159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7160 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7162 break 2 7163 fi 7164 done 7165 done 7166 IFS=$as_save_IFS 7167 7168 fi ;; 7169 esac 7170 fi 7171 STRIP=$ac_cv_prog_STRIP 7172 if test -n "$STRIP"; then 7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7174 printf "%s\n" "$STRIP" >&6; } 7175 else 7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7177 printf "%s\n" "no" >&6; } 7178 fi 7179 7180 7181 fi 7182 if test -z "$ac_cv_prog_STRIP"; then 7183 ac_ct_STRIP=$STRIP 7184 # Extract the first word of "strip", so it can be a program name with args. 7185 set dummy strip; ac_word=$2 7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7187 printf %s "checking for $ac_word... " >&6; } 7188 if test ${ac_cv_prog_ac_ct_STRIP+y} 7189 then : 7190 printf %s "(cached) " >&6 7191 else case e in #( 7192 e) if test -n "$ac_ct_STRIP"; then 7193 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7194 else 7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7196 for as_dir in $PATH 7197 do 7198 IFS=$as_save_IFS 7199 case $as_dir in #((( 7200 '') as_dir=./ ;; 7201 */) ;; 7202 *) as_dir=$as_dir/ ;; 7203 esac 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7206 ac_cv_prog_ac_ct_STRIP="strip" 7207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210 done 7211 done 7212 IFS=$as_save_IFS 7213 7214 fi ;; 7215 esac 7216 fi 7217 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7218 if test -n "$ac_ct_STRIP"; then 7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7220 printf "%s\n" "$ac_ct_STRIP" >&6; } 7221 else 7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7223 printf "%s\n" "no" >&6; } 7224 fi 7225 7226 if test "x$ac_ct_STRIP" = x; then 7227 STRIP=":" 7228 else 7229 case $cross_compiling:$ac_tool_warned in 7230 yes:) 7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7232 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7233 ac_tool_warned=yes ;; 7234 esac 7235 STRIP=$ac_ct_STRIP 7236 fi 7237 else 7238 STRIP="$ac_cv_prog_STRIP" 7239 fi 7240 7241 test -z "$STRIP" && STRIP=: 7242 7243 7244 7245 7246 7247 7248 if test -n "$ac_tool_prefix"; then 7249 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7250 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7252 printf %s "checking for $ac_word... " >&6; } 7253 if test ${ac_cv_prog_RANLIB+y} 7254 then : 7255 printf %s "(cached) " >&6 7256 else case e in #( 7257 e) if test -n "$RANLIB"; then 7258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7259 else 7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261 for as_dir in $PATH 7262 do 7263 IFS=$as_save_IFS 7264 case $as_dir in #((( 7265 '') as_dir=./ ;; 7266 */) ;; 7267 *) as_dir=$as_dir/ ;; 7268 esac 7269 for ac_exec_ext in '' $ac_executable_extensions; do 7270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7273 break 2 7274 fi 7275 done 7276 done 7277 IFS=$as_save_IFS 7278 7279 fi ;; 7280 esac 7281 fi 7282 RANLIB=$ac_cv_prog_RANLIB 7283 if test -n "$RANLIB"; then 7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7285 printf "%s\n" "$RANLIB" >&6; } 7286 else 7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7288 printf "%s\n" "no" >&6; } 7289 fi 7290 7291 7292 fi 7293 if test -z "$ac_cv_prog_RANLIB"; then 7294 ac_ct_RANLIB=$RANLIB 7295 # Extract the first word of "ranlib", so it can be a program name with args. 7296 set dummy ranlib; ac_word=$2 7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7298 printf %s "checking for $ac_word... " >&6; } 7299 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7300 then : 7301 printf %s "(cached) " >&6 7302 else case e in #( 7303 e) if test -n "$ac_ct_RANLIB"; then 7304 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7305 else 7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7307 for as_dir in $PATH 7308 do 7309 IFS=$as_save_IFS 7310 case $as_dir in #((( 7311 '') as_dir=./ ;; 7312 */) ;; 7313 *) as_dir=$as_dir/ ;; 7314 esac 7315 for ac_exec_ext in '' $ac_executable_extensions; do 7316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7317 ac_cv_prog_ac_ct_RANLIB="ranlib" 7318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7319 break 2 7320 fi 7321 done 7322 done 7323 IFS=$as_save_IFS 7324 7325 fi ;; 7326 esac 7327 fi 7328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7329 if test -n "$ac_ct_RANLIB"; then 7330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7331 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7332 else 7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7334 printf "%s\n" "no" >&6; } 7335 fi 7336 7337 if test "x$ac_ct_RANLIB" = x; then 7338 RANLIB=":" 7339 else 7340 case $cross_compiling:$ac_tool_warned in 7341 yes:) 7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7343 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7344 ac_tool_warned=yes ;; 7345 esac 7346 RANLIB=$ac_ct_RANLIB 7347 fi 7348 else 7349 RANLIB="$ac_cv_prog_RANLIB" 7350 fi 7351 7352 test -z "$RANLIB" && RANLIB=: 7353 7354 7355 7356 7357 7358 7359 # Determine commands to create old-style static archives. 7360 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7361 old_postinstall_cmds='chmod 644 $oldlib' 7362 old_postuninstall_cmds= 7363 7364 if test -n "$RANLIB"; then 7365 case $host_os in 7366 bitrig* | openbsd*) 7367 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7368 ;; 7369 *) 7370 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7371 ;; 7372 esac 7373 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7374 fi 7375 7376 case $host_os in 7377 darwin*) 7378 lock_old_archive_extraction=yes ;; 7379 *) 7380 lock_old_archive_extraction=no ;; 7381 esac 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 # If no C compiler was specified, use CC. 7422 LTCC=${LTCC-"$CC"} 7423 7424 # If no C compiler flags were specified, use CFLAGS. 7425 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7426 7427 # Allow CC to be a program name with arguments. 7428 compiler=$CC 7429 7430 7431 # Check for command to grab the raw symbol name followed by C symbol from nm. 7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7433 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7434 if test ${lt_cv_sys_global_symbol_pipe+y} 7435 then : 7436 printf %s "(cached) " >&6 7437 else case e in #( 7438 e) 7439 # These are sane defaults that work on at least a few old systems. 7440 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7441 7442 # Character class describing NM global symbol codes. 7443 symcode='[BCDEGRST]' 7444 7445 # Regexp to match symbols that can be accessed directly from C. 7446 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7447 7448 # Define system-specific variables. 7449 case $host_os in 7450 aix*) 7451 symcode='[BCDT]' 7452 ;; 7453 cygwin* | mingw* | pw32* | cegcc*) 7454 symcode='[ABCDGISTW]' 7455 ;; 7456 hpux*) 7457 if test ia64 = "$host_cpu"; then 7458 symcode='[ABCDEGRST]' 7459 fi 7460 ;; 7461 irix* | nonstopux*) 7462 symcode='[BCDEGRST]' 7463 ;; 7464 osf*) 7465 symcode='[BCDEGQRST]' 7466 ;; 7467 solaris*) 7468 symcode='[BDRT]' 7469 ;; 7470 sco3.2v5*) 7471 symcode='[DT]' 7472 ;; 7473 sysv4.2uw2*) 7474 symcode='[DT]' 7475 ;; 7476 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7477 symcode='[ABDT]' 7478 ;; 7479 sysv4) 7480 symcode='[DFNSTU]' 7481 ;; 7482 esac 7483 7484 # If we're using GNU nm, then use its standard symbol codes. 7485 case `$NM -V 2>&1` in 7486 *GNU* | *'with BFD'*) 7487 symcode='[ABCDGIRSTW]' ;; 7488 esac 7489 7490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7491 # Gets list of data symbols to import. 7492 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7493 # Adjust the below global symbol transforms to fixup imported variables. 7494 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7495 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7496 lt_c_name_lib_hook="\ 7497 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7498 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7499 else 7500 # Disable hooks by default. 7501 lt_cv_sys_global_symbol_to_import= 7502 lt_cdecl_hook= 7503 lt_c_name_hook= 7504 lt_c_name_lib_hook= 7505 fi 7506 7507 # Transform an extracted symbol line into a proper C declaration. 7508 # Some systems (esp. on ia64) link data and code symbols differently, 7509 # so use this general approach. 7510 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7511 $lt_cdecl_hook\ 7512 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7513 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7514 7515 # Transform an extracted symbol line into symbol name and symbol address 7516 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7517 $lt_c_name_hook\ 7518 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7519 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7520 7521 # Transform an extracted symbol line into symbol name with lib prefix and 7522 # symbol address. 7523 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7524 $lt_c_name_lib_hook\ 7525 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7526 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7527 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7528 7529 # Handle CRLF in mingw tool chain 7530 opt_cr= 7531 case $build_os in 7532 mingw*) 7533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7534 ;; 7535 esac 7536 7537 # Try without a prefix underscore, then with it. 7538 for ac_symprfx in "" "_"; do 7539 7540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7541 symxfrm="\\1 $ac_symprfx\\2 \\2" 7542 7543 # Write the raw and C identifiers. 7544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7545 # Fake it for dumpbin and say T for any non-static function, 7546 # D for any global variable and I for any imported variable. 7547 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7548 # which start with @ or ?. 7549 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7550 " {last_section=section; section=\$ 3};"\ 7551 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7552 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7553 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7554 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7555 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7556 " \$ 0!~/External *\|/{next};"\ 7557 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7558 " {if(hide[section]) next};"\ 7559 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7560 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7561 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7562 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7563 " ' prfx=^$ac_symprfx" 7564 else 7565 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7566 fi 7567 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7568 7569 # Check to see that the pipe works correctly. 7570 pipe_works=no 7571 7572 rm -f conftest* 7573 cat > conftest.$ac_ext <<_LT_EOF 7574 #ifdef __cplusplus 7575 extern "C" { 7576 #endif 7577 char nm_test_var; 7578 void nm_test_func(void); 7579 void nm_test_func(void){} 7580 #ifdef __cplusplus 7581 } 7582 #endif 7583 int main(){nm_test_var='a';nm_test_func();return(0);} 7584 _LT_EOF 7585 7586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7587 (eval $ac_compile) 2>&5 7588 ac_status=$? 7589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7590 test $ac_status = 0; }; then 7591 # Now try to grab the symbols. 7592 nlist=conftest.nm 7593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7594 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7595 ac_status=$? 7596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7597 test $ac_status = 0; } && test -s "$nlist"; then 7598 # Try sorting and uniquifying the output. 7599 if sort "$nlist" | uniq > "$nlist"T; then 7600 mv -f "$nlist"T "$nlist" 7601 else 7602 rm -f "$nlist"T 7603 fi 7604 7605 # Make sure that we snagged all the symbols we need. 7606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7608 cat <<_LT_EOF > conftest.$ac_ext 7609 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7610 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7611 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7612 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7613 # define LT_DLSYM_CONST 7614 #elif defined __osf__ 7615 /* This system does not cope well with relocations in const data. */ 7616 # define LT_DLSYM_CONST 7617 #else 7618 # define LT_DLSYM_CONST const 7619 #endif 7620 7621 #ifdef __cplusplus 7622 extern "C" { 7623 #endif 7624 7625 _LT_EOF 7626 # Now generate the symbol file. 7627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7628 7629 cat <<_LT_EOF >> conftest.$ac_ext 7630 7631 /* The mapping between symbol names and symbols. */ 7632 LT_DLSYM_CONST struct { 7633 const char *name; 7634 void *address; 7635 } 7636 lt__PROGRAM__LTX_preloaded_symbols[] = 7637 { 7638 { "@PROGRAM@", (void *) 0 }, 7639 _LT_EOF 7640 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7641 cat <<\_LT_EOF >> conftest.$ac_ext 7642 {0, (void *) 0} 7643 }; 7644 7645 /* This works around a problem in FreeBSD linker */ 7646 #ifdef FREEBSD_WORKAROUND 7647 static const void *lt_preloaded_setup() { 7648 return lt__PROGRAM__LTX_preloaded_symbols; 7649 } 7650 #endif 7651 7652 #ifdef __cplusplus 7653 } 7654 #endif 7655 _LT_EOF 7656 # Now try linking the two files. 7657 mv conftest.$ac_objext conftstm.$ac_objext 7658 lt_globsym_save_LIBS=$LIBS 7659 lt_globsym_save_CFLAGS=$CFLAGS 7660 LIBS=conftstm.$ac_objext 7661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7663 (eval $ac_link) 2>&5 7664 ac_status=$? 7665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7666 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7667 pipe_works=yes 7668 fi 7669 LIBS=$lt_globsym_save_LIBS 7670 CFLAGS=$lt_globsym_save_CFLAGS 7671 else 7672 echo "cannot find nm_test_func in $nlist" >&5 7673 fi 7674 else 7675 echo "cannot find nm_test_var in $nlist" >&5 7676 fi 7677 else 7678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7679 fi 7680 else 7681 echo "$progname: failed program was:" >&5 7682 cat conftest.$ac_ext >&5 7683 fi 7684 rm -rf conftest* conftst* 7685 7686 # Do not use the global_symbol_pipe unless it works. 7687 if test yes = "$pipe_works"; then 7688 break 7689 else 7690 lt_cv_sys_global_symbol_pipe= 7691 fi 7692 done 7693 ;; 7694 esac 7695 fi 7696 7697 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7698 lt_cv_sys_global_symbol_to_cdecl= 7699 fi 7700 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7702 printf "%s\n" "failed" >&6; } 7703 else 7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7705 printf "%s\n" "ok" >&6; } 7706 fi 7707 7708 # Response file support. 7709 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7710 nm_file_list_spec='@' 7711 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7712 nm_file_list_spec='@' 7713 fi 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7752 printf %s "checking for sysroot... " >&6; } 7753 7754 # Check whether --with-sysroot was given. 7755 if test ${with_sysroot+y} 7756 then : 7757 withval=$with_sysroot; 7758 else case e in #( 7759 e) with_sysroot=no ;; 7760 esac 7761 fi 7762 7763 7764 lt_sysroot= 7765 case $with_sysroot in #( 7766 yes) 7767 if test yes = "$GCC"; then 7768 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7769 fi 7770 ;; #( 7771 /*) 7772 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 7773 ;; #( 7774 no|'') 7775 ;; #( 7776 *) 7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7778 printf "%s\n" "$with_sysroot" >&6; } 7779 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7780 ;; 7781 esac 7782 7783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7784 printf "%s\n" "${lt_sysroot:-no}" >&6; } 7785 7786 7787 7788 7789 7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7791 printf %s "checking for a working dd... " >&6; } 7792 if test ${ac_cv_path_lt_DD+y} 7793 then : 7794 printf %s "(cached) " >&6 7795 else case e in #( 7796 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7797 cat conftest.i conftest.i >conftest2.i 7798 : ${lt_DD:=$DD} 7799 if test -z "$lt_DD"; then 7800 ac_path_lt_DD_found=false 7801 # Loop through the user's path and test for each of PROGNAME-LIST 7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7803 for as_dir in $PATH 7804 do 7805 IFS=$as_save_IFS 7806 case $as_dir in #((( 7807 '') as_dir=./ ;; 7808 */) ;; 7809 *) as_dir=$as_dir/ ;; 7810 esac 7811 for ac_prog in dd 7812 do 7813 for ac_exec_ext in '' $ac_executable_extensions; do 7814 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 7815 as_fn_executable_p "$ac_path_lt_DD" || continue 7816 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7817 cmp -s conftest.i conftest.out \ 7818 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7819 fi 7820 $ac_path_lt_DD_found && break 3 7821 done 7822 done 7823 done 7824 IFS=$as_save_IFS 7825 if test -z "$ac_cv_path_lt_DD"; then 7826 : 7827 fi 7828 else 7829 ac_cv_path_lt_DD=$lt_DD 7830 fi 7831 7832 rm -f conftest.i conftest2.i conftest.out ;; 7833 esac 7834 fi 7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7836 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 7837 7838 7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7840 printf %s "checking how to truncate binary pipes... " >&6; } 7841 if test ${lt_cv_truncate_bin+y} 7842 then : 7843 printf %s "(cached) " >&6 7844 else case e in #( 7845 e) printf 0123456789abcdef0123456789abcdef >conftest.i 7846 cat conftest.i conftest.i >conftest2.i 7847 lt_cv_truncate_bin= 7848 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7849 cmp -s conftest.i conftest.out \ 7850 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7851 fi 7852 rm -f conftest.i conftest2.i conftest.out 7853 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 7854 esac 7855 fi 7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7857 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 7858 7859 7860 7861 7862 7863 7864 7865 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7866 func_cc_basename () 7867 { 7868 for cc_temp in $*""; do 7869 case $cc_temp in 7870 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7871 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7872 \-*) ;; 7873 *) break;; 7874 esac 7875 done 7876 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7877 } 7878 7879 # Check whether --enable-libtool-lock was given. 7880 if test ${enable_libtool_lock+y} 7881 then : 7882 enableval=$enable_libtool_lock; 7883 fi 7884 7885 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7886 7887 # Some flags need to be propagated to the compiler or linker for good 7888 # libtool support. 7889 case $host in 7890 ia64-*-hpux*) 7891 # Find out what ABI is being produced by ac_compile, and set mode 7892 # options accordingly. 7893 echo 'int i;' > conftest.$ac_ext 7894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7895 (eval $ac_compile) 2>&5 7896 ac_status=$? 7897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7898 test $ac_status = 0; }; then 7899 case `$FILECMD conftest.$ac_objext` in 7900 *ELF-32*) 7901 HPUX_IA64_MODE=32 7902 ;; 7903 *ELF-64*) 7904 HPUX_IA64_MODE=64 7905 ;; 7906 esac 7907 fi 7908 rm -rf conftest* 7909 ;; 7910 *-*-irix6*) 7911 # Find out what ABI is being produced by ac_compile, and set linker 7912 # options accordingly. 7913 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7915 (eval $ac_compile) 2>&5 7916 ac_status=$? 7917 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7918 test $ac_status = 0; }; then 7919 if test yes = "$lt_cv_prog_gnu_ld"; then 7920 case `$FILECMD conftest.$ac_objext` in 7921 *32-bit*) 7922 LD="${LD-ld} -melf32bsmip" 7923 ;; 7924 *N32*) 7925 LD="${LD-ld} -melf32bmipn32" 7926 ;; 7927 *64-bit*) 7928 LD="${LD-ld} -melf64bmip" 7929 ;; 7930 esac 7931 else 7932 case `$FILECMD conftest.$ac_objext` in 7933 *32-bit*) 7934 LD="${LD-ld} -32" 7935 ;; 7936 *N32*) 7937 LD="${LD-ld} -n32" 7938 ;; 7939 *64-bit*) 7940 LD="${LD-ld} -64" 7941 ;; 7942 esac 7943 fi 7944 fi 7945 rm -rf conftest* 7946 ;; 7947 7948 mips64*-*linux*) 7949 # Find out what ABI is being produced by ac_compile, and set linker 7950 # options accordingly. 7951 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7953 (eval $ac_compile) 2>&5 7954 ac_status=$? 7955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7956 test $ac_status = 0; }; then 7957 emul=elf 7958 case `$FILECMD conftest.$ac_objext` in 7959 *32-bit*) 7960 emul="${emul}32" 7961 ;; 7962 *64-bit*) 7963 emul="${emul}64" 7964 ;; 7965 esac 7966 case `$FILECMD conftest.$ac_objext` in 7967 *MSB*) 7968 emul="${emul}btsmip" 7969 ;; 7970 *LSB*) 7971 emul="${emul}ltsmip" 7972 ;; 7973 esac 7974 case `$FILECMD conftest.$ac_objext` in 7975 *N32*) 7976 emul="${emul}n32" 7977 ;; 7978 esac 7979 LD="${LD-ld} -m $emul" 7980 fi 7981 rm -rf conftest* 7982 ;; 7983 7984 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7985 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7986 # Find out what ABI is being produced by ac_compile, and set linker 7987 # options accordingly. Note that the listed cases only cover the 7988 # situations where additional linker options are needed (such as when 7989 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7990 # vice versa); the common cases where no linker options are needed do 7991 # not appear in the list. 7992 echo 'int i;' > conftest.$ac_ext 7993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7994 (eval $ac_compile) 2>&5 7995 ac_status=$? 7996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7997 test $ac_status = 0; }; then 7998 case `$FILECMD conftest.o` in 7999 *32-bit*) 8000 case $host in 8001 x86_64-*kfreebsd*-gnu) 8002 LD="${LD-ld} -m elf_i386_fbsd" 8003 ;; 8004 x86_64-*linux*) 8005 case `$FILECMD conftest.o` in 8006 *x86-64*) 8007 LD="${LD-ld} -m elf32_x86_64" 8008 ;; 8009 *) 8010 LD="${LD-ld} -m elf_i386" 8011 ;; 8012 esac 8013 ;; 8014 powerpc64le-*linux*) 8015 LD="${LD-ld} -m elf32lppclinux" 8016 ;; 8017 powerpc64-*linux*) 8018 LD="${LD-ld} -m elf32ppclinux" 8019 ;; 8020 s390x-*linux*) 8021 LD="${LD-ld} -m elf_s390" 8022 ;; 8023 sparc64-*linux*) 8024 LD="${LD-ld} -m elf32_sparc" 8025 ;; 8026 esac 8027 ;; 8028 *64-bit*) 8029 case $host in 8030 x86_64-*kfreebsd*-gnu) 8031 LD="${LD-ld} -m elf_x86_64_fbsd" 8032 ;; 8033 x86_64-*linux*) 8034 LD="${LD-ld} -m elf_x86_64" 8035 ;; 8036 powerpcle-*linux*) 8037 LD="${LD-ld} -m elf64lppc" 8038 ;; 8039 powerpc-*linux*) 8040 LD="${LD-ld} -m elf64ppc" 8041 ;; 8042 s390*-*linux*|s390*-*tpf*) 8043 LD="${LD-ld} -m elf64_s390" 8044 ;; 8045 sparc*-*linux*) 8046 LD="${LD-ld} -m elf64_sparc" 8047 ;; 8048 esac 8049 ;; 8050 esac 8051 fi 8052 rm -rf conftest* 8053 ;; 8054 8055 *-*-sco3.2v5*) 8056 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8057 SAVE_CFLAGS=$CFLAGS 8058 CFLAGS="$CFLAGS -belf" 8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8060 printf %s "checking whether the C compiler needs -belf... " >&6; } 8061 if test ${lt_cv_cc_needs_belf+y} 8062 then : 8063 printf %s "(cached) " >&6 8064 else case e in #( 8065 e) ac_ext=c 8066 ac_cpp='$CPP $CPPFLAGS' 8067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8069 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8070 8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8072 /* end confdefs.h. */ 8073 8074 int 8075 main (void) 8076 { 8077 8078 ; 8079 return 0; 8080 } 8081 _ACEOF 8082 if ac_fn_c_try_link "$LINENO" 8083 then : 8084 lt_cv_cc_needs_belf=yes 8085 else case e in #( 8086 e) lt_cv_cc_needs_belf=no ;; 8087 esac 8088 fi 8089 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8090 conftest$ac_exeext conftest.$ac_ext 8091 ac_ext=c 8092 ac_cpp='$CPP $CPPFLAGS' 8093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8095 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8096 ;; 8097 esac 8098 fi 8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8100 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8101 if test yes != "$lt_cv_cc_needs_belf"; then 8102 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8103 CFLAGS=$SAVE_CFLAGS 8104 fi 8105 ;; 8106 *-*solaris*) 8107 # Find out what ABI is being produced by ac_compile, and set linker 8108 # options accordingly. 8109 echo 'int i;' > conftest.$ac_ext 8110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8111 (eval $ac_compile) 2>&5 8112 ac_status=$? 8113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8114 test $ac_status = 0; }; then 8115 case `$FILECMD conftest.o` in 8116 *64-bit*) 8117 case $lt_cv_prog_gnu_ld in 8118 yes*) 8119 case $host in 8120 i?86-*-solaris*|x86_64-*-solaris*) 8121 LD="${LD-ld} -m elf_x86_64" 8122 ;; 8123 sparc*-*-solaris*) 8124 LD="${LD-ld} -m elf64_sparc" 8125 ;; 8126 esac 8127 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8128 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8129 LD=${LD-ld}_sol2 8130 fi 8131 ;; 8132 *) 8133 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8134 LD="${LD-ld} -64" 8135 fi 8136 ;; 8137 esac 8138 ;; 8139 esac 8140 fi 8141 rm -rf conftest* 8142 ;; 8143 esac 8144 8145 need_locks=$enable_libtool_lock 8146 8147 if test -n "$ac_tool_prefix"; then 8148 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8149 set dummy ${ac_tool_prefix}mt; ac_word=$2 8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8151 printf %s "checking for $ac_word... " >&6; } 8152 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8153 then : 8154 printf %s "(cached) " >&6 8155 else case e in #( 8156 e) if test -n "$MANIFEST_TOOL"; then 8157 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8158 else 8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8160 for as_dir in $PATH 8161 do 8162 IFS=$as_save_IFS 8163 case $as_dir in #((( 8164 '') as_dir=./ ;; 8165 */) ;; 8166 *) as_dir=$as_dir/ ;; 8167 esac 8168 for ac_exec_ext in '' $ac_executable_extensions; do 8169 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8170 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8172 break 2 8173 fi 8174 done 8175 done 8176 IFS=$as_save_IFS 8177 8178 fi ;; 8179 esac 8180 fi 8181 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8182 if test -n "$MANIFEST_TOOL"; then 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8184 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8185 else 8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8187 printf "%s\n" "no" >&6; } 8188 fi 8189 8190 8191 fi 8192 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8193 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8194 # Extract the first word of "mt", so it can be a program name with args. 8195 set dummy mt; ac_word=$2 8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8197 printf %s "checking for $ac_word... " >&6; } 8198 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8199 then : 8200 printf %s "(cached) " >&6 8201 else case e in #( 8202 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8203 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8204 else 8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8206 for as_dir in $PATH 8207 do 8208 IFS=$as_save_IFS 8209 case $as_dir in #((( 8210 '') as_dir=./ ;; 8211 */) ;; 8212 *) as_dir=$as_dir/ ;; 8213 esac 8214 for ac_exec_ext in '' $ac_executable_extensions; do 8215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8216 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8218 break 2 8219 fi 8220 done 8221 done 8222 IFS=$as_save_IFS 8223 8224 fi ;; 8225 esac 8226 fi 8227 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8228 if test -n "$ac_ct_MANIFEST_TOOL"; then 8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8230 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8231 else 8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8233 printf "%s\n" "no" >&6; } 8234 fi 8235 8236 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8237 MANIFEST_TOOL=":" 8238 else 8239 case $cross_compiling:$ac_tool_warned in 8240 yes:) 8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8243 ac_tool_warned=yes ;; 8244 esac 8245 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8246 fi 8247 else 8248 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8249 fi 8250 8251 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8253 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8254 if test ${lt_cv_path_mainfest_tool+y} 8255 then : 8256 printf %s "(cached) " >&6 8257 else case e in #( 8258 e) lt_cv_path_mainfest_tool=no 8259 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8260 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8261 cat conftest.err >&5 8262 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8263 lt_cv_path_mainfest_tool=yes 8264 fi 8265 rm -f conftest* ;; 8266 esac 8267 fi 8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8269 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8270 if test yes != "$lt_cv_path_mainfest_tool"; then 8271 MANIFEST_TOOL=: 8272 fi 8273 8274 8275 8276 8277 8278 8279 case $host_os in 8280 rhapsody* | darwin*) 8281 if test -n "$ac_tool_prefix"; then 8282 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8283 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8285 printf %s "checking for $ac_word... " >&6; } 8286 if test ${ac_cv_prog_DSYMUTIL+y} 8287 then : 8288 printf %s "(cached) " >&6 8289 else case e in #( 8290 e) if test -n "$DSYMUTIL"; then 8291 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8292 else 8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8294 for as_dir in $PATH 8295 do 8296 IFS=$as_save_IFS 8297 case $as_dir in #((( 8298 '') as_dir=./ ;; 8299 */) ;; 8300 *) as_dir=$as_dir/ ;; 8301 esac 8302 for ac_exec_ext in '' $ac_executable_extensions; do 8303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8306 break 2 8307 fi 8308 done 8309 done 8310 IFS=$as_save_IFS 8311 8312 fi ;; 8313 esac 8314 fi 8315 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8316 if test -n "$DSYMUTIL"; then 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8318 printf "%s\n" "$DSYMUTIL" >&6; } 8319 else 8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8321 printf "%s\n" "no" >&6; } 8322 fi 8323 8324 8325 fi 8326 if test -z "$ac_cv_prog_DSYMUTIL"; then 8327 ac_ct_DSYMUTIL=$DSYMUTIL 8328 # Extract the first word of "dsymutil", so it can be a program name with args. 8329 set dummy dsymutil; ac_word=$2 8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8331 printf %s "checking for $ac_word... " >&6; } 8332 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8333 then : 8334 printf %s "(cached) " >&6 8335 else case e in #( 8336 e) if test -n "$ac_ct_DSYMUTIL"; then 8337 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8338 else 8339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8340 for as_dir in $PATH 8341 do 8342 IFS=$as_save_IFS 8343 case $as_dir in #((( 8344 '') as_dir=./ ;; 8345 */) ;; 8346 *) as_dir=$as_dir/ ;; 8347 esac 8348 for ac_exec_ext in '' $ac_executable_extensions; do 8349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8350 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8352 break 2 8353 fi 8354 done 8355 done 8356 IFS=$as_save_IFS 8357 8358 fi ;; 8359 esac 8360 fi 8361 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8362 if test -n "$ac_ct_DSYMUTIL"; then 8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8364 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8365 else 8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8367 printf "%s\n" "no" >&6; } 8368 fi 8369 8370 if test "x$ac_ct_DSYMUTIL" = x; then 8371 DSYMUTIL=":" 8372 else 8373 case $cross_compiling:$ac_tool_warned in 8374 yes:) 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8376 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8377 ac_tool_warned=yes ;; 8378 esac 8379 DSYMUTIL=$ac_ct_DSYMUTIL 8380 fi 8381 else 8382 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8383 fi 8384 8385 if test -n "$ac_tool_prefix"; then 8386 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8387 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8389 printf %s "checking for $ac_word... " >&6; } 8390 if test ${ac_cv_prog_NMEDIT+y} 8391 then : 8392 printf %s "(cached) " >&6 8393 else case e in #( 8394 e) if test -n "$NMEDIT"; then 8395 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8396 else 8397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8398 for as_dir in $PATH 8399 do 8400 IFS=$as_save_IFS 8401 case $as_dir in #((( 8402 '') as_dir=./ ;; 8403 */) ;; 8404 *) as_dir=$as_dir/ ;; 8405 esac 8406 for ac_exec_ext in '' $ac_executable_extensions; do 8407 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8408 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8410 break 2 8411 fi 8412 done 8413 done 8414 IFS=$as_save_IFS 8415 8416 fi ;; 8417 esac 8418 fi 8419 NMEDIT=$ac_cv_prog_NMEDIT 8420 if test -n "$NMEDIT"; then 8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8422 printf "%s\n" "$NMEDIT" >&6; } 8423 else 8424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8425 printf "%s\n" "no" >&6; } 8426 fi 8427 8428 8429 fi 8430 if test -z "$ac_cv_prog_NMEDIT"; then 8431 ac_ct_NMEDIT=$NMEDIT 8432 # Extract the first word of "nmedit", so it can be a program name with args. 8433 set dummy nmedit; ac_word=$2 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8435 printf %s "checking for $ac_word... " >&6; } 8436 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8437 then : 8438 printf %s "(cached) " >&6 8439 else case e in #( 8440 e) if test -n "$ac_ct_NMEDIT"; then 8441 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8442 else 8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8444 for as_dir in $PATH 8445 do 8446 IFS=$as_save_IFS 8447 case $as_dir in #((( 8448 '') as_dir=./ ;; 8449 */) ;; 8450 *) as_dir=$as_dir/ ;; 8451 esac 8452 for ac_exec_ext in '' $ac_executable_extensions; do 8453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8454 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8456 break 2 8457 fi 8458 done 8459 done 8460 IFS=$as_save_IFS 8461 8462 fi ;; 8463 esac 8464 fi 8465 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8466 if test -n "$ac_ct_NMEDIT"; then 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8468 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8469 else 8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8471 printf "%s\n" "no" >&6; } 8472 fi 8473 8474 if test "x$ac_ct_NMEDIT" = x; then 8475 NMEDIT=":" 8476 else 8477 case $cross_compiling:$ac_tool_warned in 8478 yes:) 8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8480 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8481 ac_tool_warned=yes ;; 8482 esac 8483 NMEDIT=$ac_ct_NMEDIT 8484 fi 8485 else 8486 NMEDIT="$ac_cv_prog_NMEDIT" 8487 fi 8488 8489 if test -n "$ac_tool_prefix"; then 8490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8491 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8493 printf %s "checking for $ac_word... " >&6; } 8494 if test ${ac_cv_prog_LIPO+y} 8495 then : 8496 printf %s "(cached) " >&6 8497 else case e in #( 8498 e) if test -n "$LIPO"; then 8499 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8500 else 8501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8502 for as_dir in $PATH 8503 do 8504 IFS=$as_save_IFS 8505 case $as_dir in #((( 8506 '') as_dir=./ ;; 8507 */) ;; 8508 *) as_dir=$as_dir/ ;; 8509 esac 8510 for ac_exec_ext in '' $ac_executable_extensions; do 8511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8512 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8514 break 2 8515 fi 8516 done 8517 done 8518 IFS=$as_save_IFS 8519 8520 fi ;; 8521 esac 8522 fi 8523 LIPO=$ac_cv_prog_LIPO 8524 if test -n "$LIPO"; then 8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8526 printf "%s\n" "$LIPO" >&6; } 8527 else 8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8529 printf "%s\n" "no" >&6; } 8530 fi 8531 8532 8533 fi 8534 if test -z "$ac_cv_prog_LIPO"; then 8535 ac_ct_LIPO=$LIPO 8536 # Extract the first word of "lipo", so it can be a program name with args. 8537 set dummy lipo; ac_word=$2 8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8539 printf %s "checking for $ac_word... " >&6; } 8540 if test ${ac_cv_prog_ac_ct_LIPO+y} 8541 then : 8542 printf %s "(cached) " >&6 8543 else case e in #( 8544 e) if test -n "$ac_ct_LIPO"; then 8545 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8546 else 8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8548 for as_dir in $PATH 8549 do 8550 IFS=$as_save_IFS 8551 case $as_dir in #((( 8552 '') as_dir=./ ;; 8553 */) ;; 8554 *) as_dir=$as_dir/ ;; 8555 esac 8556 for ac_exec_ext in '' $ac_executable_extensions; do 8557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8558 ac_cv_prog_ac_ct_LIPO="lipo" 8559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8560 break 2 8561 fi 8562 done 8563 done 8564 IFS=$as_save_IFS 8565 8566 fi ;; 8567 esac 8568 fi 8569 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8570 if test -n "$ac_ct_LIPO"; then 8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8572 printf "%s\n" "$ac_ct_LIPO" >&6; } 8573 else 8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8575 printf "%s\n" "no" >&6; } 8576 fi 8577 8578 if test "x$ac_ct_LIPO" = x; then 8579 LIPO=":" 8580 else 8581 case $cross_compiling:$ac_tool_warned in 8582 yes:) 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8585 ac_tool_warned=yes ;; 8586 esac 8587 LIPO=$ac_ct_LIPO 8588 fi 8589 else 8590 LIPO="$ac_cv_prog_LIPO" 8591 fi 8592 8593 if test -n "$ac_tool_prefix"; then 8594 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8595 set dummy ${ac_tool_prefix}otool; ac_word=$2 8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8597 printf %s "checking for $ac_word... " >&6; } 8598 if test ${ac_cv_prog_OTOOL+y} 8599 then : 8600 printf %s "(cached) " >&6 8601 else case e in #( 8602 e) if test -n "$OTOOL"; then 8603 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8604 else 8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8606 for as_dir in $PATH 8607 do 8608 IFS=$as_save_IFS 8609 case $as_dir in #((( 8610 '') as_dir=./ ;; 8611 */) ;; 8612 *) as_dir=$as_dir/ ;; 8613 esac 8614 for ac_exec_ext in '' $ac_executable_extensions; do 8615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8616 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8618 break 2 8619 fi 8620 done 8621 done 8622 IFS=$as_save_IFS 8623 8624 fi ;; 8625 esac 8626 fi 8627 OTOOL=$ac_cv_prog_OTOOL 8628 if test -n "$OTOOL"; then 8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8630 printf "%s\n" "$OTOOL" >&6; } 8631 else 8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8633 printf "%s\n" "no" >&6; } 8634 fi 8635 8636 8637 fi 8638 if test -z "$ac_cv_prog_OTOOL"; then 8639 ac_ct_OTOOL=$OTOOL 8640 # Extract the first word of "otool", so it can be a program name with args. 8641 set dummy otool; ac_word=$2 8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8643 printf %s "checking for $ac_word... " >&6; } 8644 if test ${ac_cv_prog_ac_ct_OTOOL+y} 8645 then : 8646 printf %s "(cached) " >&6 8647 else case e in #( 8648 e) if test -n "$ac_ct_OTOOL"; then 8649 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8650 else 8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8652 for as_dir in $PATH 8653 do 8654 IFS=$as_save_IFS 8655 case $as_dir in #((( 8656 '') as_dir=./ ;; 8657 */) ;; 8658 *) as_dir=$as_dir/ ;; 8659 esac 8660 for ac_exec_ext in '' $ac_executable_extensions; do 8661 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8662 ac_cv_prog_ac_ct_OTOOL="otool" 8663 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8664 break 2 8665 fi 8666 done 8667 done 8668 IFS=$as_save_IFS 8669 8670 fi ;; 8671 esac 8672 fi 8673 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8674 if test -n "$ac_ct_OTOOL"; then 8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8676 printf "%s\n" "$ac_ct_OTOOL" >&6; } 8677 else 8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8679 printf "%s\n" "no" >&6; } 8680 fi 8681 8682 if test "x$ac_ct_OTOOL" = x; then 8683 OTOOL=":" 8684 else 8685 case $cross_compiling:$ac_tool_warned in 8686 yes:) 8687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8688 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8689 ac_tool_warned=yes ;; 8690 esac 8691 OTOOL=$ac_ct_OTOOL 8692 fi 8693 else 8694 OTOOL="$ac_cv_prog_OTOOL" 8695 fi 8696 8697 if test -n "$ac_tool_prefix"; then 8698 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8699 set dummy ${ac_tool_prefix}otool64; ac_word=$2 8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8701 printf %s "checking for $ac_word... " >&6; } 8702 if test ${ac_cv_prog_OTOOL64+y} 8703 then : 8704 printf %s "(cached) " >&6 8705 else case e in #( 8706 e) if test -n "$OTOOL64"; then 8707 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8708 else 8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8710 for as_dir in $PATH 8711 do 8712 IFS=$as_save_IFS 8713 case $as_dir in #((( 8714 '') as_dir=./ ;; 8715 */) ;; 8716 *) as_dir=$as_dir/ ;; 8717 esac 8718 for ac_exec_ext in '' $ac_executable_extensions; do 8719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8720 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8722 break 2 8723 fi 8724 done 8725 done 8726 IFS=$as_save_IFS 8727 8728 fi ;; 8729 esac 8730 fi 8731 OTOOL64=$ac_cv_prog_OTOOL64 8732 if test -n "$OTOOL64"; then 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8734 printf "%s\n" "$OTOOL64" >&6; } 8735 else 8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8737 printf "%s\n" "no" >&6; } 8738 fi 8739 8740 8741 fi 8742 if test -z "$ac_cv_prog_OTOOL64"; then 8743 ac_ct_OTOOL64=$OTOOL64 8744 # Extract the first word of "otool64", so it can be a program name with args. 8745 set dummy otool64; ac_word=$2 8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8747 printf %s "checking for $ac_word... " >&6; } 8748 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 8749 then : 8750 printf %s "(cached) " >&6 8751 else case e in #( 8752 e) if test -n "$ac_ct_OTOOL64"; then 8753 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8754 else 8755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8756 for as_dir in $PATH 8757 do 8758 IFS=$as_save_IFS 8759 case $as_dir in #((( 8760 '') as_dir=./ ;; 8761 */) ;; 8762 *) as_dir=$as_dir/ ;; 8763 esac 8764 for ac_exec_ext in '' $ac_executable_extensions; do 8765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8766 ac_cv_prog_ac_ct_OTOOL64="otool64" 8767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8768 break 2 8769 fi 8770 done 8771 done 8772 IFS=$as_save_IFS 8773 8774 fi ;; 8775 esac 8776 fi 8777 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8778 if test -n "$ac_ct_OTOOL64"; then 8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8780 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 8781 else 8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8783 printf "%s\n" "no" >&6; } 8784 fi 8785 8786 if test "x$ac_ct_OTOOL64" = x; then 8787 OTOOL64=":" 8788 else 8789 case $cross_compiling:$ac_tool_warned in 8790 yes:) 8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8792 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8793 ac_tool_warned=yes ;; 8794 esac 8795 OTOOL64=$ac_ct_OTOOL64 8796 fi 8797 else 8798 OTOOL64="$ac_cv_prog_OTOOL64" 8799 fi 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8828 printf %s "checking for -single_module linker flag... " >&6; } 8829 if test ${lt_cv_apple_cc_single_mod+y} 8830 then : 8831 printf %s "(cached) " >&6 8832 else case e in #( 8833 e) lt_cv_apple_cc_single_mod=no 8834 if test -z "$LT_MULTI_MODULE"; then 8835 # By default we will add the -single_module flag. You can override 8836 # by either setting the environment variable LT_MULTI_MODULE 8837 # non-empty at configure time, or by adding -multi_module to the 8838 # link flags. 8839 rm -rf libconftest.dylib* 8840 echo "int foo(void){return 1;}" > conftest.c 8841 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8842 -dynamiclib -Wl,-single_module conftest.c" >&5 8843 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8844 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8845 _lt_result=$? 8846 # If there is a non-empty error log, and "single_module" 8847 # appears in it, assume the flag caused a linker warning 8848 if test -s conftest.err && $GREP single_module conftest.err; then 8849 cat conftest.err >&5 8850 # Otherwise, if the output was created with a 0 exit code from 8851 # the compiler, it worked. 8852 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8853 lt_cv_apple_cc_single_mod=yes 8854 else 8855 cat conftest.err >&5 8856 fi 8857 rm -rf libconftest.dylib* 8858 rm -f conftest.* 8859 fi ;; 8860 esac 8861 fi 8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8863 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 8864 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8866 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 8867 if test ${lt_cv_ld_exported_symbols_list+y} 8868 then : 8869 printf %s "(cached) " >&6 8870 else case e in #( 8871 e) lt_cv_ld_exported_symbols_list=no 8872 save_LDFLAGS=$LDFLAGS 8873 echo "_main" > conftest.sym 8874 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8876 /* end confdefs.h. */ 8877 8878 int 8879 main (void) 8880 { 8881 8882 ; 8883 return 0; 8884 } 8885 _ACEOF 8886 if ac_fn_c_try_link "$LINENO" 8887 then : 8888 lt_cv_ld_exported_symbols_list=yes 8889 else case e in #( 8890 e) lt_cv_ld_exported_symbols_list=no ;; 8891 esac 8892 fi 8893 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8894 conftest$ac_exeext conftest.$ac_ext 8895 LDFLAGS=$save_LDFLAGS 8896 ;; 8897 esac 8898 fi 8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8900 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 8901 8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8903 printf %s "checking for -force_load linker flag... " >&6; } 8904 if test ${lt_cv_ld_force_load+y} 8905 then : 8906 printf %s "(cached) " >&6 8907 else case e in #( 8908 e) lt_cv_ld_force_load=no 8909 cat > conftest.c << _LT_EOF 8910 int forced_loaded() { return 2;} 8911 _LT_EOF 8912 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8913 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8914 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8915 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8916 echo "$RANLIB libconftest.a" >&5 8917 $RANLIB libconftest.a 2>&5 8918 cat > conftest.c << _LT_EOF 8919 int main() { return 0;} 8920 _LT_EOF 8921 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8922 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8923 _lt_result=$? 8924 if test -s conftest.err && $GREP force_load conftest.err; then 8925 cat conftest.err >&5 8926 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8927 lt_cv_ld_force_load=yes 8928 else 8929 cat conftest.err >&5 8930 fi 8931 rm -f conftest.err libconftest.a conftest conftest.c 8932 rm -rf conftest.dSYM 8933 ;; 8934 esac 8935 fi 8936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8937 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 8938 case $host_os in 8939 rhapsody* | darwin1.[012]) 8940 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8941 darwin1.*) 8942 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8943 darwin*) 8944 case $MACOSX_DEPLOYMENT_TARGET,$host in 8945 10.[012],*|,*powerpc*-darwin[5-8]*) 8946 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8947 *) 8948 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8949 esac 8950 ;; 8951 esac 8952 if test yes = "$lt_cv_apple_cc_single_mod"; then 8953 _lt_dar_single_mod='$single_module' 8954 fi 8955 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8956 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8957 else 8958 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8959 fi 8960 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8961 _lt_dsymutil='~$DSYMUTIL $lib || :' 8962 else 8963 _lt_dsymutil= 8964 fi 8965 ;; 8966 esac 8967 8968 # func_munge_path_list VARIABLE PATH 8969 # ----------------------------------- 8970 # VARIABLE is name of variable containing _space_ separated list of 8971 # directories to be munged by the contents of PATH, which is string 8972 # having a format: 8973 # "DIR[:DIR]:" 8974 # string "DIR[ DIR]" will be prepended to VARIABLE 8975 # ":DIR[:DIR]" 8976 # string "DIR[ DIR]" will be appended to VARIABLE 8977 # "DIRP[:DIRP]::[DIRA:]DIRA" 8978 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8979 # "DIRA[ DIRA]" will be appended to VARIABLE 8980 # "DIR[:DIR]" 8981 # VARIABLE will be replaced by "DIR[ DIR]" 8982 func_munge_path_list () 8983 { 8984 case x$2 in 8985 x) 8986 ;; 8987 *:) 8988 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8989 ;; 8990 x:*) 8991 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8992 ;; 8993 *::*) 8994 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8995 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8996 ;; 8997 *) 8998 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8999 ;; 9000 esac 9001 } 9002 9003 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9004 " 9005 if test "x$ac_cv_header_dlfcn_h" = xyes 9006 then : 9007 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9008 9009 fi 9010 9011 9012 9013 9014 9015 # Set options 9016 9017 9018 9019 enable_dlopen=no 9020 9021 9022 enable_win32_dll=no 9023 9024 9025 # Check whether --enable-shared was given. 9026 if test ${enable_shared+y} 9027 then : 9028 enableval=$enable_shared; p=${PACKAGE-default} 9029 case $enableval in 9030 yes) enable_shared=yes ;; 9031 no) enable_shared=no ;; 9032 *) 9033 enable_shared=no 9034 # Look at the argument we got. We use all the common list separators. 9035 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9036 for pkg in $enableval; do 9037 IFS=$lt_save_ifs 9038 if test "X$pkg" = "X$p"; then 9039 enable_shared=yes 9040 fi 9041 done 9042 IFS=$lt_save_ifs 9043 ;; 9044 esac 9045 else case e in #( 9046 e) enable_shared=yes ;; 9047 esac 9048 fi 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 # Check whether --enable-static was given. 9059 if test ${enable_static+y} 9060 then : 9061 enableval=$enable_static; p=${PACKAGE-default} 9062 case $enableval in 9063 yes) enable_static=yes ;; 9064 no) enable_static=no ;; 9065 *) 9066 enable_static=no 9067 # Look at the argument we got. We use all the common list separators. 9068 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9069 for pkg in $enableval; do 9070 IFS=$lt_save_ifs 9071 if test "X$pkg" = "X$p"; then 9072 enable_static=yes 9073 fi 9074 done 9075 IFS=$lt_save_ifs 9076 ;; 9077 esac 9078 else case e in #( 9079 e) enable_static=yes ;; 9080 esac 9081 fi 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 # Check whether --with-pic was given. 9093 if test ${with_pic+y} 9094 then : 9095 withval=$with_pic; lt_p=${PACKAGE-default} 9096 case $withval in 9097 yes|no) pic_mode=$withval ;; 9098 *) 9099 pic_mode=default 9100 # Look at the argument we got. We use all the common list separators. 9101 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9102 for lt_pkg in $withval; do 9103 IFS=$lt_save_ifs 9104 if test "X$lt_pkg" = "X$lt_p"; then 9105 pic_mode=yes 9106 fi 9107 done 9108 IFS=$lt_save_ifs 9109 ;; 9110 esac 9111 else case e in #( 9112 e) pic_mode=default ;; 9113 esac 9114 fi 9115 9116 9117 9118 9119 9120 9121 9122 9123 # Check whether --enable-fast-install was given. 9124 if test ${enable_fast_install+y} 9125 then : 9126 enableval=$enable_fast_install; p=${PACKAGE-default} 9127 case $enableval in 9128 yes) enable_fast_install=yes ;; 9129 no) enable_fast_install=no ;; 9130 *) 9131 enable_fast_install=no 9132 # Look at the argument we got. We use all the common list separators. 9133 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9134 for pkg in $enableval; do 9135 IFS=$lt_save_ifs 9136 if test "X$pkg" = "X$p"; then 9137 enable_fast_install=yes 9138 fi 9139 done 9140 IFS=$lt_save_ifs 9141 ;; 9142 esac 9143 else case e in #( 9144 e) enable_fast_install=yes ;; 9145 esac 9146 fi 9147 9148 9149 9150 9151 9152 9153 9154 9155 shared_archive_member_spec= 9156 case $host,$enable_shared in 9157 power*-*-aix[5-9]*,yes) 9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9159 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9160 9161 # Check whether --with-aix-soname was given. 9162 if test ${with_aix_soname+y} 9163 then : 9164 withval=$with_aix_soname; case $withval in 9165 aix|svr4|both) 9166 ;; 9167 *) 9168 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9169 ;; 9170 esac 9171 lt_cv_with_aix_soname=$with_aix_soname 9172 else case e in #( 9173 e) if test ${lt_cv_with_aix_soname+y} 9174 then : 9175 printf %s "(cached) " >&6 9176 else case e in #( 9177 e) lt_cv_with_aix_soname=aix ;; 9178 esac 9179 fi 9180 9181 with_aix_soname=$lt_cv_with_aix_soname ;; 9182 esac 9183 fi 9184 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9186 printf "%s\n" "$with_aix_soname" >&6; } 9187 if test aix != "$with_aix_soname"; then 9188 # For the AIX way of multilib, we name the shared archive member 9189 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9190 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9191 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9192 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9193 if test 64 = "${OBJECT_MODE-32}"; then 9194 shared_archive_member_spec=shr_64 9195 else 9196 shared_archive_member_spec=shr 9197 fi 9198 fi 9199 ;; 9200 *) 9201 with_aix_soname=aix 9202 ;; 9203 esac 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 # This can be used to rebuild libtool when needed 9215 LIBTOOL_DEPS=$ltmain 9216 9217 # Always use our own libtool. 9218 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 test -z "$LN_S" && LN_S="ln -s" 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 if test -n "${ZSH_VERSION+set}"; then 9265 setopt NO_GLOB_SUBST 9266 fi 9267 9268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9269 printf %s "checking for objdir... " >&6; } 9270 if test ${lt_cv_objdir+y} 9271 then : 9272 printf %s "(cached) " >&6 9273 else case e in #( 9274 e) rm -f .libs 2>/dev/null 9275 mkdir .libs 2>/dev/null 9276 if test -d .libs; then 9277 lt_cv_objdir=.libs 9278 else 9279 # MS-DOS does not allow filenames that begin with a dot. 9280 lt_cv_objdir=_libs 9281 fi 9282 rmdir .libs 2>/dev/null ;; 9283 esac 9284 fi 9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9286 printf "%s\n" "$lt_cv_objdir" >&6; } 9287 objdir=$lt_cv_objdir 9288 9289 9290 9291 9292 9293 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9294 9295 9296 9297 9298 case $host_os in 9299 aix3*) 9300 # AIX sometimes has problems with the GCC collect2 program. For some 9301 # reason, if we set the COLLECT_NAMES environment variable, the problems 9302 # vanish in a puff of smoke. 9303 if test set != "${COLLECT_NAMES+set}"; then 9304 COLLECT_NAMES= 9305 export COLLECT_NAMES 9306 fi 9307 ;; 9308 esac 9309 9310 # Global variables: 9311 ofile=libtool 9312 can_build_shared=yes 9313 9314 # All known linkers require a '.a' archive for static linking (except MSVC and 9315 # ICC, which need '.lib'). 9316 libext=a 9317 9318 with_gnu_ld=$lt_cv_prog_gnu_ld 9319 9320 old_CC=$CC 9321 old_CFLAGS=$CFLAGS 9322 9323 # Set sane defaults for various variables 9324 test -z "$CC" && CC=cc 9325 test -z "$LTCC" && LTCC=$CC 9326 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9327 test -z "$LD" && LD=ld 9328 test -z "$ac_objext" && ac_objext=o 9329 9330 func_cc_basename $compiler 9331 cc_basename=$func_cc_basename_result 9332 9333 9334 # Only perform the check for file, if the check method requires it 9335 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9336 case $deplibs_check_method in 9337 file_magic*) 9338 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9340 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9341 if test ${lt_cv_path_MAGIC_CMD+y} 9342 then : 9343 printf %s "(cached) " >&6 9344 else case e in #( 9345 e) case $MAGIC_CMD in 9346 [\\/*] | ?:[\\/]*) 9347 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9348 ;; 9349 *) 9350 lt_save_MAGIC_CMD=$MAGIC_CMD 9351 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9353 for ac_dir in $ac_dummy; do 9354 IFS=$lt_save_ifs 9355 test -z "$ac_dir" && ac_dir=. 9356 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9357 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9358 if test -n "$file_magic_test_file"; then 9359 case $deplibs_check_method in 9360 "file_magic "*) 9361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9362 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9364 $EGREP "$file_magic_regex" > /dev/null; then 9365 : 9366 else 9367 cat <<_LT_EOF 1>&2 9368 9369 *** Warning: the command libtool uses to detect shared libraries, 9370 *** $file_magic_cmd, produces output that libtool cannot recognize. 9371 *** The result is that libtool may fail to recognize shared libraries 9372 *** as such. This will affect the creation of libtool libraries that 9373 *** depend on shared libraries, but programs linked with such libtool 9374 *** libraries will work regardless of this problem. Nevertheless, you 9375 *** may want to report the problem to your system manager and/or to 9376 *** bug-libtool@gnu.org 9377 9378 _LT_EOF 9379 fi ;; 9380 esac 9381 fi 9382 break 9383 fi 9384 done 9385 IFS=$lt_save_ifs 9386 MAGIC_CMD=$lt_save_MAGIC_CMD 9387 ;; 9388 esac ;; 9389 esac 9390 fi 9391 9392 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9393 if test -n "$MAGIC_CMD"; then 9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9395 printf "%s\n" "$MAGIC_CMD" >&6; } 9396 else 9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9398 printf "%s\n" "no" >&6; } 9399 fi 9400 9401 9402 9403 9404 9405 if test -z "$lt_cv_path_MAGIC_CMD"; then 9406 if test -n "$ac_tool_prefix"; then 9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9408 printf %s "checking for file... " >&6; } 9409 if test ${lt_cv_path_MAGIC_CMD+y} 9410 then : 9411 printf %s "(cached) " >&6 9412 else case e in #( 9413 e) case $MAGIC_CMD in 9414 [\\/*] | ?:[\\/]*) 9415 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9416 ;; 9417 *) 9418 lt_save_MAGIC_CMD=$MAGIC_CMD 9419 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9421 for ac_dir in $ac_dummy; do 9422 IFS=$lt_save_ifs 9423 test -z "$ac_dir" && ac_dir=. 9424 if test -f "$ac_dir/file"; then 9425 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9426 if test -n "$file_magic_test_file"; then 9427 case $deplibs_check_method in 9428 "file_magic "*) 9429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9430 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9432 $EGREP "$file_magic_regex" > /dev/null; then 9433 : 9434 else 9435 cat <<_LT_EOF 1>&2 9436 9437 *** Warning: the command libtool uses to detect shared libraries, 9438 *** $file_magic_cmd, produces output that libtool cannot recognize. 9439 *** The result is that libtool may fail to recognize shared libraries 9440 *** as such. This will affect the creation of libtool libraries that 9441 *** depend on shared libraries, but programs linked with such libtool 9442 *** libraries will work regardless of this problem. Nevertheless, you 9443 *** may want to report the problem to your system manager and/or to 9444 *** bug-libtool@gnu.org 9445 9446 _LT_EOF 9447 fi ;; 9448 esac 9449 fi 9450 break 9451 fi 9452 done 9453 IFS=$lt_save_ifs 9454 MAGIC_CMD=$lt_save_MAGIC_CMD 9455 ;; 9456 esac ;; 9457 esac 9458 fi 9459 9460 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9461 if test -n "$MAGIC_CMD"; then 9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9463 printf "%s\n" "$MAGIC_CMD" >&6; } 9464 else 9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9466 printf "%s\n" "no" >&6; } 9467 fi 9468 9469 9470 else 9471 MAGIC_CMD=: 9472 fi 9473 fi 9474 9475 fi 9476 ;; 9477 esac 9478 9479 # Use C for the default configuration in the libtool script 9480 9481 lt_save_CC=$CC 9482 ac_ext=c 9483 ac_cpp='$CPP $CPPFLAGS' 9484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9486 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9487 9488 9489 # Source file extension for C test sources. 9490 ac_ext=c 9491 9492 # Object file extension for compiled C test sources. 9493 objext=o 9494 objext=$objext 9495 9496 # Code to be used in simple compile tests 9497 lt_simple_compile_test_code="int some_variable = 0;" 9498 9499 # Code to be used in simple link tests 9500 lt_simple_link_test_code='int main(){return(0);}' 9501 9502 9503 9504 9505 9506 9507 9508 # If no C compiler was specified, use CC. 9509 LTCC=${LTCC-"$CC"} 9510 9511 # If no C compiler flags were specified, use CFLAGS. 9512 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9513 9514 # Allow CC to be a program name with arguments. 9515 compiler=$CC 9516 9517 # Save the default compiler, since it gets overwritten when the other 9518 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9519 compiler_DEFAULT=$CC 9520 9521 # save warnings/boilerplate of simple test code 9522 ac_outfile=conftest.$ac_objext 9523 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9524 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9525 _lt_compiler_boilerplate=`cat conftest.err` 9526 $RM conftest* 9527 9528 ac_outfile=conftest.$ac_objext 9529 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9530 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9531 _lt_linker_boilerplate=`cat conftest.err` 9532 $RM -r conftest* 9533 9534 9535 ## CAVEAT EMPTOR: 9536 ## There is no encapsulation within the following macros, do not change 9537 ## the running order or otherwise move them around unless you know exactly 9538 ## what you are doing... 9539 if test -n "$compiler"; then 9540 9541 lt_prog_compiler_no_builtin_flag= 9542 9543 if test yes = "$GCC"; then 9544 case $cc_basename in 9545 nvcc*) 9546 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9547 *) 9548 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9549 esac 9550 9551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9552 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9553 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9554 then : 9555 printf %s "(cached) " >&6 9556 else case e in #( 9557 e) lt_cv_prog_compiler_rtti_exceptions=no 9558 ac_outfile=conftest.$ac_objext 9559 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9560 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9561 # Insert the option either (1) after the last *FLAGS variable, or 9562 # (2) before a word containing "conftest.", or (3) at the end. 9563 # Note that $ac_compile itself does not contain backslashes and begins 9564 # with a dollar sign (not a hyphen), so the echo should work correctly. 9565 # The option is referenced via a variable to avoid confusing sed. 9566 lt_compile=`echo "$ac_compile" | $SED \ 9567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9569 -e 's:$: $lt_compiler_flag:'` 9570 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9571 (eval "$lt_compile" 2>conftest.err) 9572 ac_status=$? 9573 cat conftest.err >&5 9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9575 if (exit $ac_status) && test -s "$ac_outfile"; then 9576 # The compiler can only warn and ignore the option if not recognized 9577 # So say no if there are warnings other than the usual output. 9578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9580 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9581 lt_cv_prog_compiler_rtti_exceptions=yes 9582 fi 9583 fi 9584 $RM conftest* 9585 ;; 9586 esac 9587 fi 9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9589 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9590 9591 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9593 else 9594 : 9595 fi 9596 9597 fi 9598 9599 9600 9601 9602 9603 9604 lt_prog_compiler_wl= 9605 lt_prog_compiler_pic= 9606 lt_prog_compiler_static= 9607 9608 9609 if test yes = "$GCC"; then 9610 lt_prog_compiler_wl='-Wl,' 9611 lt_prog_compiler_static='-static' 9612 9613 case $host_os in 9614 aix*) 9615 # All AIX code is PIC. 9616 if test ia64 = "$host_cpu"; then 9617 # AIX 5 now supports IA64 processor 9618 lt_prog_compiler_static='-Bstatic' 9619 fi 9620 lt_prog_compiler_pic='-fPIC' 9621 ;; 9622 9623 amigaos*) 9624 case $host_cpu in 9625 powerpc) 9626 # see comment about AmigaOS4 .so support 9627 lt_prog_compiler_pic='-fPIC' 9628 ;; 9629 m68k) 9630 # FIXME: we need at least 68020 code to build shared libraries, but 9631 # adding the '-m68020' flag to GCC prevents building anything better, 9632 # like '-m68040'. 9633 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9634 ;; 9635 esac 9636 ;; 9637 9638 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9639 # PIC is the default for these OSes. 9640 ;; 9641 9642 mingw* | cygwin* | pw32* | os2* | cegcc*) 9643 # This hack is so that the source file can tell whether it is being 9644 # built for inclusion in a dll (and should export symbols for example). 9645 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9646 # (--disable-auto-import) libraries 9647 lt_prog_compiler_pic='-DDLL_EXPORT' 9648 case $host_os in 9649 os2*) 9650 lt_prog_compiler_static='$wl-static' 9651 ;; 9652 esac 9653 ;; 9654 9655 darwin* | rhapsody*) 9656 # PIC is the default on this platform 9657 # Common symbols not allowed in MH_DYLIB files 9658 lt_prog_compiler_pic='-fno-common' 9659 ;; 9660 9661 haiku*) 9662 # PIC is the default for Haiku. 9663 # The "-static" flag exists, but is broken. 9664 lt_prog_compiler_static= 9665 ;; 9666 9667 hpux*) 9668 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9669 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9670 # sets the default TLS model and affects inlining. 9671 case $host_cpu in 9672 hppa*64*) 9673 # +Z the default 9674 ;; 9675 *) 9676 lt_prog_compiler_pic='-fPIC' 9677 ;; 9678 esac 9679 ;; 9680 9681 interix[3-9]*) 9682 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9683 # Instead, we relocate shared libraries at runtime. 9684 ;; 9685 9686 msdosdjgpp*) 9687 # Just because we use GCC doesn't mean we suddenly get shared libraries 9688 # on systems that don't support them. 9689 lt_prog_compiler_can_build_shared=no 9690 enable_shared=no 9691 ;; 9692 9693 *nto* | *qnx*) 9694 # QNX uses GNU C++, but need to define -shared option too, otherwise 9695 # it will coredump. 9696 lt_prog_compiler_pic='-fPIC -shared' 9697 ;; 9698 9699 sysv4*MP*) 9700 if test -d /usr/nec; then 9701 lt_prog_compiler_pic=-Kconform_pic 9702 fi 9703 ;; 9704 9705 *) 9706 lt_prog_compiler_pic='-fPIC' 9707 ;; 9708 esac 9709 9710 case $cc_basename in 9711 nvcc*) # Cuda Compiler Driver 2.2 9712 lt_prog_compiler_wl='-Xlinker ' 9713 if test -n "$lt_prog_compiler_pic"; then 9714 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9715 fi 9716 ;; 9717 esac 9718 else 9719 # PORTME Check for flag to pass linker flags through the system compiler. 9720 case $host_os in 9721 aix*) 9722 lt_prog_compiler_wl='-Wl,' 9723 if test ia64 = "$host_cpu"; then 9724 # AIX 5 now supports IA64 processor 9725 lt_prog_compiler_static='-Bstatic' 9726 else 9727 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9728 fi 9729 ;; 9730 9731 darwin* | rhapsody*) 9732 # PIC is the default on this platform 9733 # Common symbols not allowed in MH_DYLIB files 9734 lt_prog_compiler_pic='-fno-common' 9735 case $cc_basename in 9736 nagfor*) 9737 # NAG Fortran compiler 9738 lt_prog_compiler_wl='-Wl,-Wl,,' 9739 lt_prog_compiler_pic='-PIC' 9740 lt_prog_compiler_static='-Bstatic' 9741 ;; 9742 esac 9743 ;; 9744 9745 mingw* | cygwin* | pw32* | os2* | cegcc*) 9746 # This hack is so that the source file can tell whether it is being 9747 # built for inclusion in a dll (and should export symbols for example). 9748 lt_prog_compiler_pic='-DDLL_EXPORT' 9749 case $host_os in 9750 os2*) 9751 lt_prog_compiler_static='$wl-static' 9752 ;; 9753 esac 9754 ;; 9755 9756 hpux9* | hpux10* | hpux11*) 9757 lt_prog_compiler_wl='-Wl,' 9758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9759 # not for PA HP-UX. 9760 case $host_cpu in 9761 hppa*64*|ia64*) 9762 # +Z the default 9763 ;; 9764 *) 9765 lt_prog_compiler_pic='+Z' 9766 ;; 9767 esac 9768 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9769 lt_prog_compiler_static='$wl-a ${wl}archive' 9770 ;; 9771 9772 irix5* | irix6* | nonstopux*) 9773 lt_prog_compiler_wl='-Wl,' 9774 # PIC (with -KPIC) is the default. 9775 lt_prog_compiler_static='-non_shared' 9776 ;; 9777 9778 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9779 case $cc_basename in 9780 # old Intel for x86_64, which still supported -KPIC. 9781 ecc*) 9782 lt_prog_compiler_wl='-Wl,' 9783 lt_prog_compiler_pic='-KPIC' 9784 lt_prog_compiler_static='-static' 9785 ;; 9786 # icc used to be incompatible with GCC. 9787 # ICC 10 doesn't accept -KPIC any more. 9788 icc* | ifort*) 9789 lt_prog_compiler_wl='-Wl,' 9790 lt_prog_compiler_pic='-fPIC' 9791 lt_prog_compiler_static='-static' 9792 ;; 9793 # Lahey Fortran 8.1. 9794 lf95*) 9795 lt_prog_compiler_wl='-Wl,' 9796 lt_prog_compiler_pic='--shared' 9797 lt_prog_compiler_static='--static' 9798 ;; 9799 nagfor*) 9800 # NAG Fortran compiler 9801 lt_prog_compiler_wl='-Wl,-Wl,,' 9802 lt_prog_compiler_pic='-PIC' 9803 lt_prog_compiler_static='-Bstatic' 9804 ;; 9805 tcc*) 9806 # Fabrice Bellard et al's Tiny C Compiler 9807 lt_prog_compiler_wl='-Wl,' 9808 lt_prog_compiler_pic='-fPIC' 9809 lt_prog_compiler_static='-static' 9810 ;; 9811 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9812 # Portland Group compilers (*not* the Pentium gcc compiler, 9813 # which looks to be a dead project) 9814 lt_prog_compiler_wl='-Wl,' 9815 lt_prog_compiler_pic='-fpic' 9816 lt_prog_compiler_static='-Bstatic' 9817 ;; 9818 ccc*) 9819 lt_prog_compiler_wl='-Wl,' 9820 # All Alpha code is PIC. 9821 lt_prog_compiler_static='-non_shared' 9822 ;; 9823 xl* | bgxl* | bgf* | mpixl*) 9824 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9825 lt_prog_compiler_wl='-Wl,' 9826 lt_prog_compiler_pic='-qpic' 9827 lt_prog_compiler_static='-qstaticlink' 9828 ;; 9829 *) 9830 case `$CC -V 2>&1 | $SED 5q` in 9831 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9832 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9833 lt_prog_compiler_pic='-KPIC' 9834 lt_prog_compiler_static='-Bstatic' 9835 lt_prog_compiler_wl='' 9836 ;; 9837 *Sun\ F* | *Sun*Fortran*) 9838 lt_prog_compiler_pic='-KPIC' 9839 lt_prog_compiler_static='-Bstatic' 9840 lt_prog_compiler_wl='-Qoption ld ' 9841 ;; 9842 *Sun\ C*) 9843 # Sun C 5.9 9844 lt_prog_compiler_pic='-KPIC' 9845 lt_prog_compiler_static='-Bstatic' 9846 lt_prog_compiler_wl='-Wl,' 9847 ;; 9848 *Intel*\ [CF]*Compiler*) 9849 lt_prog_compiler_wl='-Wl,' 9850 lt_prog_compiler_pic='-fPIC' 9851 lt_prog_compiler_static='-static' 9852 ;; 9853 *Portland\ Group*) 9854 lt_prog_compiler_wl='-Wl,' 9855 lt_prog_compiler_pic='-fpic' 9856 lt_prog_compiler_static='-Bstatic' 9857 ;; 9858 esac 9859 ;; 9860 esac 9861 ;; 9862 9863 newsos6) 9864 lt_prog_compiler_pic='-KPIC' 9865 lt_prog_compiler_static='-Bstatic' 9866 ;; 9867 9868 *nto* | *qnx*) 9869 # QNX uses GNU C++, but need to define -shared option too, otherwise 9870 # it will coredump. 9871 lt_prog_compiler_pic='-fPIC -shared' 9872 ;; 9873 9874 osf3* | osf4* | osf5*) 9875 lt_prog_compiler_wl='-Wl,' 9876 # All OSF/1 code is PIC. 9877 lt_prog_compiler_static='-non_shared' 9878 ;; 9879 9880 rdos*) 9881 lt_prog_compiler_static='-non_shared' 9882 ;; 9883 9884 solaris*) 9885 lt_prog_compiler_pic='-KPIC' 9886 lt_prog_compiler_static='-Bstatic' 9887 case $cc_basename in 9888 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9889 lt_prog_compiler_wl='-Qoption ld ';; 9890 *) 9891 lt_prog_compiler_wl='-Wl,';; 9892 esac 9893 ;; 9894 9895 sunos4*) 9896 lt_prog_compiler_wl='-Qoption ld ' 9897 lt_prog_compiler_pic='-PIC' 9898 lt_prog_compiler_static='-Bstatic' 9899 ;; 9900 9901 sysv4 | sysv4.2uw2* | sysv4.3*) 9902 lt_prog_compiler_wl='-Wl,' 9903 lt_prog_compiler_pic='-KPIC' 9904 lt_prog_compiler_static='-Bstatic' 9905 ;; 9906 9907 sysv4*MP*) 9908 if test -d /usr/nec; then 9909 lt_prog_compiler_pic='-Kconform_pic' 9910 lt_prog_compiler_static='-Bstatic' 9911 fi 9912 ;; 9913 9914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9915 lt_prog_compiler_wl='-Wl,' 9916 lt_prog_compiler_pic='-KPIC' 9917 lt_prog_compiler_static='-Bstatic' 9918 ;; 9919 9920 unicos*) 9921 lt_prog_compiler_wl='-Wl,' 9922 lt_prog_compiler_can_build_shared=no 9923 ;; 9924 9925 uts4*) 9926 lt_prog_compiler_pic='-pic' 9927 lt_prog_compiler_static='-Bstatic' 9928 ;; 9929 9930 *) 9931 lt_prog_compiler_can_build_shared=no 9932 ;; 9933 esac 9934 fi 9935 9936 case $host_os in 9937 # For platforms that do not support PIC, -DPIC is meaningless: 9938 *djgpp*) 9939 lt_prog_compiler_pic= 9940 ;; 9941 *) 9942 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9943 ;; 9944 esac 9945 9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9947 printf %s "checking for $compiler option to produce PIC... " >&6; } 9948 if test ${lt_cv_prog_compiler_pic+y} 9949 then : 9950 printf %s "(cached) " >&6 9951 else case e in #( 9952 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 9953 esac 9954 fi 9955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9956 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 9957 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9958 9959 # 9960 # Check to make sure the PIC flag actually works. 9961 # 9962 if test -n "$lt_prog_compiler_pic"; then 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9964 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9965 if test ${lt_cv_prog_compiler_pic_works+y} 9966 then : 9967 printf %s "(cached) " >&6 9968 else case e in #( 9969 e) lt_cv_prog_compiler_pic_works=no 9970 ac_outfile=conftest.$ac_objext 9971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9973 # Insert the option either (1) after the last *FLAGS variable, or 9974 # (2) before a word containing "conftest.", or (3) at the end. 9975 # Note that $ac_compile itself does not contain backslashes and begins 9976 # with a dollar sign (not a hyphen), so the echo should work correctly. 9977 # The option is referenced via a variable to avoid confusing sed. 9978 lt_compile=`echo "$ac_compile" | $SED \ 9979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9981 -e 's:$: $lt_compiler_flag:'` 9982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9983 (eval "$lt_compile" 2>conftest.err) 9984 ac_status=$? 9985 cat conftest.err >&5 9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9987 if (exit $ac_status) && test -s "$ac_outfile"; then 9988 # The compiler can only warn and ignore the option if not recognized 9989 # So say no if there are warnings other than the usual output. 9990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9993 lt_cv_prog_compiler_pic_works=yes 9994 fi 9995 fi 9996 $RM conftest* 9997 ;; 9998 esac 9999 fi 10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10001 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10002 10003 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10004 case $lt_prog_compiler_pic in 10005 "" | " "*) ;; 10006 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10007 esac 10008 else 10009 lt_prog_compiler_pic= 10010 lt_prog_compiler_can_build_shared=no 10011 fi 10012 10013 fi 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 # 10026 # Check to make sure the static flag actually works. 10027 # 10028 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10030 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10031 if test ${lt_cv_prog_compiler_static_works+y} 10032 then : 10033 printf %s "(cached) " >&6 10034 else case e in #( 10035 e) lt_cv_prog_compiler_static_works=no 10036 save_LDFLAGS=$LDFLAGS 10037 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10038 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10039 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10040 # The linker can only warn and ignore the option if not recognized 10041 # So say no if there are warnings 10042 if test -s conftest.err; then 10043 # Append any errors to the config.log. 10044 cat conftest.err 1>&5 10045 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10047 if diff conftest.exp conftest.er2 >/dev/null; then 10048 lt_cv_prog_compiler_static_works=yes 10049 fi 10050 else 10051 lt_cv_prog_compiler_static_works=yes 10052 fi 10053 fi 10054 $RM -r conftest* 10055 LDFLAGS=$save_LDFLAGS 10056 ;; 10057 esac 10058 fi 10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10060 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10061 10062 if test yes = "$lt_cv_prog_compiler_static_works"; then 10063 : 10064 else 10065 lt_prog_compiler_static= 10066 fi 10067 10068 10069 10070 10071 10072 10073 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10075 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10076 if test ${lt_cv_prog_compiler_c_o+y} 10077 then : 10078 printf %s "(cached) " >&6 10079 else case e in #( 10080 e) lt_cv_prog_compiler_c_o=no 10081 $RM -r conftest 2>/dev/null 10082 mkdir conftest 10083 cd conftest 10084 mkdir out 10085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10086 10087 lt_compiler_flag="-o out/conftest2.$ac_objext" 10088 # Insert the option either (1) after the last *FLAGS variable, or 10089 # (2) before a word containing "conftest.", or (3) at the end. 10090 # Note that $ac_compile itself does not contain backslashes and begins 10091 # with a dollar sign (not a hyphen), so the echo should work correctly. 10092 lt_compile=`echo "$ac_compile" | $SED \ 10093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10095 -e 's:$: $lt_compiler_flag:'` 10096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10097 (eval "$lt_compile" 2>out/conftest.err) 10098 ac_status=$? 10099 cat out/conftest.err >&5 10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10101 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10102 then 10103 # The compiler can only warn and ignore the option if not recognized 10104 # So say no if there are warnings 10105 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10106 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10107 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10108 lt_cv_prog_compiler_c_o=yes 10109 fi 10110 fi 10111 chmod u+w . 2>&5 10112 $RM conftest* 10113 # SGI C++ compiler will create directory out/ii_files/ for 10114 # template instantiation 10115 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10116 $RM out/* && rmdir out 10117 cd .. 10118 $RM -r conftest 10119 $RM conftest* 10120 ;; 10121 esac 10122 fi 10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10124 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10125 10126 10127 10128 10129 10130 10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10132 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10133 if test ${lt_cv_prog_compiler_c_o+y} 10134 then : 10135 printf %s "(cached) " >&6 10136 else case e in #( 10137 e) lt_cv_prog_compiler_c_o=no 10138 $RM -r conftest 2>/dev/null 10139 mkdir conftest 10140 cd conftest 10141 mkdir out 10142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10143 10144 lt_compiler_flag="-o out/conftest2.$ac_objext" 10145 # Insert the option either (1) after the last *FLAGS variable, or 10146 # (2) before a word containing "conftest.", or (3) at the end. 10147 # Note that $ac_compile itself does not contain backslashes and begins 10148 # with a dollar sign (not a hyphen), so the echo should work correctly. 10149 lt_compile=`echo "$ac_compile" | $SED \ 10150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10152 -e 's:$: $lt_compiler_flag:'` 10153 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10154 (eval "$lt_compile" 2>out/conftest.err) 10155 ac_status=$? 10156 cat out/conftest.err >&5 10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10158 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10159 then 10160 # The compiler can only warn and ignore the option if not recognized 10161 # So say no if there are warnings 10162 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10165 lt_cv_prog_compiler_c_o=yes 10166 fi 10167 fi 10168 chmod u+w . 2>&5 10169 $RM conftest* 10170 # SGI C++ compiler will create directory out/ii_files/ for 10171 # template instantiation 10172 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10173 $RM out/* && rmdir out 10174 cd .. 10175 $RM -r conftest 10176 $RM conftest* 10177 ;; 10178 esac 10179 fi 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10181 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10182 10183 10184 10185 10186 hard_links=nottested 10187 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10188 # do not overwrite the value of need_locks provided by the user 10189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10190 printf %s "checking if we can lock with hard links... " >&6; } 10191 hard_links=yes 10192 $RM conftest* 10193 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10194 touch conftest.a 10195 ln conftest.a conftest.b 2>&5 || hard_links=no 10196 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10198 printf "%s\n" "$hard_links" >&6; } 10199 if test no = "$hard_links"; then 10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10201 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10202 need_locks=warn 10203 fi 10204 else 10205 need_locks=no 10206 fi 10207 10208 10209 10210 10211 10212 10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10214 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10215 10216 runpath_var= 10217 allow_undefined_flag= 10218 always_export_symbols=no 10219 archive_cmds= 10220 archive_expsym_cmds= 10221 compiler_needs_object=no 10222 enable_shared_with_static_runtimes=no 10223 export_dynamic_flag_spec= 10224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10225 hardcode_automatic=no 10226 hardcode_direct=no 10227 hardcode_direct_absolute=no 10228 hardcode_libdir_flag_spec= 10229 hardcode_libdir_separator= 10230 hardcode_minus_L=no 10231 hardcode_shlibpath_var=unsupported 10232 inherit_rpath=no 10233 link_all_deplibs=unknown 10234 module_cmds= 10235 module_expsym_cmds= 10236 old_archive_from_new_cmds= 10237 old_archive_from_expsyms_cmds= 10238 thread_safe_flag_spec= 10239 whole_archive_flag_spec= 10240 # include_expsyms should be a list of space-separated symbols to be *always* 10241 # included in the symbol list 10242 include_expsyms= 10243 # exclude_expsyms can be an extended regexp of symbols to exclude 10244 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10245 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10246 # as well as any symbol that contains 'd'. 10247 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10248 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10249 # platforms (ab)use it in PIC code, but their linkers get confused if 10250 # the symbol is explicitly referenced. Since portable code cannot 10251 # rely on this symbol name, it's probably fine to never include it in 10252 # preloaded symbol tables. 10253 # Exclude shared library initialization/finalization symbols. 10254 extract_expsyms_cmds= 10255 10256 case $host_os in 10257 cygwin* | mingw* | pw32* | cegcc*) 10258 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10259 # When not using gcc, we currently assume that we are using 10260 # Microsoft Visual C++ or Intel C++ Compiler. 10261 if test yes != "$GCC"; then 10262 with_gnu_ld=no 10263 fi 10264 ;; 10265 interix*) 10266 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10267 with_gnu_ld=yes 10268 ;; 10269 openbsd* | bitrig*) 10270 with_gnu_ld=no 10271 ;; 10272 esac 10273 10274 ld_shlibs=yes 10275 10276 # On some targets, GNU ld is compatible enough with the native linker 10277 # that we're better off using the native interface for both. 10278 lt_use_gnu_ld_interface=no 10279 if test yes = "$with_gnu_ld"; then 10280 case $host_os in 10281 aix*) 10282 # The AIX port of GNU ld has always aspired to compatibility 10283 # with the native linker. However, as the warning in the GNU ld 10284 # block says, versions before 2.19.5* couldn't really create working 10285 # shared libraries, regardless of the interface used. 10286 case `$LD -v 2>&1` in 10287 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10288 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10289 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10290 *) 10291 lt_use_gnu_ld_interface=yes 10292 ;; 10293 esac 10294 ;; 10295 *) 10296 lt_use_gnu_ld_interface=yes 10297 ;; 10298 esac 10299 fi 10300 10301 if test yes = "$lt_use_gnu_ld_interface"; then 10302 # If archive_cmds runs LD, not CC, wlarc should be empty 10303 wlarc='$wl' 10304 10305 # Set some defaults for GNU ld with shared library support. These 10306 # are reset later if shared libraries are not supported. Putting them 10307 # here allows them to be overridden if necessary. 10308 runpath_var=LD_RUN_PATH 10309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10310 export_dynamic_flag_spec='$wl--export-dynamic' 10311 # ancient GNU ld didn't support --whole-archive et. al. 10312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10313 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10314 else 10315 whole_archive_flag_spec= 10316 fi 10317 supports_anon_versioning=no 10318 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10319 *GNU\ gold*) supports_anon_versioning=yes ;; 10320 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10321 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10322 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10323 *\ 2.11.*) ;; # other 2.11 versions 10324 *) supports_anon_versioning=yes ;; 10325 esac 10326 10327 # See if GNU ld supports shared libraries. 10328 case $host_os in 10329 aix[3-9]*) 10330 # On AIX/PPC, the GNU linker is very broken 10331 if test ia64 != "$host_cpu"; then 10332 ld_shlibs=no 10333 cat <<_LT_EOF 1>&2 10334 10335 *** Warning: the GNU linker, at least up to release 2.19, is reported 10336 *** to be unable to reliably create shared libraries on AIX. 10337 *** Therefore, libtool is disabling shared libraries support. If you 10338 *** really care for shared libraries, you may want to install binutils 10339 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10340 *** You will then need to restart the configuration process. 10341 10342 _LT_EOF 10343 fi 10344 ;; 10345 10346 amigaos*) 10347 case $host_cpu in 10348 powerpc) 10349 # see comment about AmigaOS4 .so support 10350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10351 archive_expsym_cmds='' 10352 ;; 10353 m68k) 10354 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)' 10355 hardcode_libdir_flag_spec='-L$libdir' 10356 hardcode_minus_L=yes 10357 ;; 10358 esac 10359 ;; 10360 10361 beos*) 10362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10363 allow_undefined_flag=unsupported 10364 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10365 # support --undefined. This deserves some investigation. FIXME 10366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10367 else 10368 ld_shlibs=no 10369 fi 10370 ;; 10371 10372 cygwin* | mingw* | pw32* | cegcc*) 10373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10374 # as there is no search path for DLLs. 10375 hardcode_libdir_flag_spec='-L$libdir' 10376 export_dynamic_flag_spec='$wl--export-all-symbols' 10377 allow_undefined_flag=unsupported 10378 always_export_symbols=no 10379 enable_shared_with_static_runtimes=yes 10380 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' 10381 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10382 10383 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10385 # If the export-symbols file already is a .def file, use it as 10386 # is; otherwise, prepend EXPORTS... 10387 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10388 cp $export_symbols $output_objdir/$soname.def; 10389 else 10390 echo EXPORTS > $output_objdir/$soname.def; 10391 cat $export_symbols >> $output_objdir/$soname.def; 10392 fi~ 10393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10394 else 10395 ld_shlibs=no 10396 fi 10397 ;; 10398 10399 haiku*) 10400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10401 link_all_deplibs=yes 10402 ;; 10403 10404 os2*) 10405 hardcode_libdir_flag_spec='-L$libdir' 10406 hardcode_minus_L=yes 10407 allow_undefined_flag=unsupported 10408 shrext_cmds=.dll 10409 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10410 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10411 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10412 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10413 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10414 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10415 emximp -o $lib $output_objdir/$libname.def' 10416 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10417 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10418 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10419 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10420 prefix_cmds="$SED"~ 10421 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10422 prefix_cmds="$prefix_cmds -e 1d"; 10423 fi~ 10424 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10425 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10426 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10427 emximp -o $lib $output_objdir/$libname.def' 10428 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10429 enable_shared_with_static_runtimes=yes 10430 file_list_spec='@' 10431 ;; 10432 10433 interix[3-9]*) 10434 hardcode_direct=no 10435 hardcode_shlibpath_var=no 10436 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10437 export_dynamic_flag_spec='$wl-E' 10438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10439 # Instead, shared libraries are loaded at an image base (0x10000000 by 10440 # default) and relocated if they conflict, which is a slow very memory 10441 # consuming and fragmenting process. To avoid this, we pick a random, 10442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10443 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10445 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' 10446 ;; 10447 10448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10449 tmp_diet=no 10450 if test linux-dietlibc = "$host_os"; then 10451 case $cc_basename in 10452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10453 esac 10454 fi 10455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10456 && test no = "$tmp_diet" 10457 then 10458 tmp_addflag=' $pic_flag' 10459 tmp_sharedflag='-shared' 10460 case $cc_basename,$host_cpu in 10461 pgcc*) # Portland Group C compiler 10462 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' 10463 tmp_addflag=' $pic_flag' 10464 ;; 10465 pgf77* | pgf90* | pgf95* | pgfortran*) 10466 # Portland Group f77 and f90 compilers 10467 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' 10468 tmp_addflag=' $pic_flag -Mnomain' ;; 10469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10470 tmp_addflag=' -i_dynamic' ;; 10471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10472 tmp_addflag=' -i_dynamic -nofor_main' ;; 10473 ifc* | ifort*) # Intel Fortran compiler 10474 tmp_addflag=' -nofor_main' ;; 10475 lf95*) # Lahey Fortran 8.1 10476 whole_archive_flag_spec= 10477 tmp_sharedflag='--shared' ;; 10478 nagfor*) # NAGFOR 5.3 10479 tmp_sharedflag='-Wl,-shared' ;; 10480 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10481 tmp_sharedflag='-qmkshrobj' 10482 tmp_addflag= ;; 10483 nvcc*) # Cuda Compiler Driver 2.2 10484 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' 10485 compiler_needs_object=yes 10486 ;; 10487 esac 10488 case `$CC -V 2>&1 | $SED 5q` in 10489 *Sun\ C*) # Sun C 5.9 10490 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' 10491 compiler_needs_object=yes 10492 tmp_sharedflag='-G' ;; 10493 *Sun\ F*) # Sun Fortran 8.3 10494 tmp_sharedflag='-G' ;; 10495 esac 10496 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10497 10498 if test yes = "$supports_anon_versioning"; then 10499 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10500 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10501 echo "local: *; };" >> $output_objdir/$libname.ver~ 10502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10503 fi 10504 10505 case $cc_basename in 10506 tcc*) 10507 export_dynamic_flag_spec='-rdynamic' 10508 ;; 10509 xlf* | bgf* | bgxlf* | mpixlf*) 10510 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10511 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10512 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10513 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10514 if test yes = "$supports_anon_versioning"; then 10515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10516 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10517 echo "local: *; };" >> $output_objdir/$libname.ver~ 10518 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10519 fi 10520 ;; 10521 esac 10522 else 10523 ld_shlibs=no 10524 fi 10525 ;; 10526 10527 netbsd*) 10528 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10529 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10530 wlarc= 10531 else 10532 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10533 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10534 fi 10535 ;; 10536 10537 solaris*) 10538 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10539 ld_shlibs=no 10540 cat <<_LT_EOF 1>&2 10541 10542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10543 *** create shared libraries on Solaris systems. Therefore, libtool 10544 *** is disabling shared libraries support. We urge you to upgrade GNU 10545 *** binutils to release 2.9.1 or newer. Another option is to modify 10546 *** your PATH or compiler configuration so that the native linker is 10547 *** used, and then restart. 10548 10549 _LT_EOF 10550 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10552 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10553 else 10554 ld_shlibs=no 10555 fi 10556 ;; 10557 10558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10559 case `$LD -v 2>&1` in 10560 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10561 ld_shlibs=no 10562 cat <<_LT_EOF 1>&2 10563 10564 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10565 *** reliably create shared libraries on SCO systems. Therefore, libtool 10566 *** is disabling shared libraries support. We urge you to upgrade GNU 10567 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10568 *** your PATH or compiler configuration so that the native linker is 10569 *** used, and then restart. 10570 10571 _LT_EOF 10572 ;; 10573 *) 10574 # For security reasons, it is highly recommended that you always 10575 # use absolute paths for naming shared libraries, and exclude the 10576 # DT_RUNPATH tag from executables and libraries. But doing so 10577 # requires that you compile everything twice, which is a pain. 10578 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10579 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10582 else 10583 ld_shlibs=no 10584 fi 10585 ;; 10586 esac 10587 ;; 10588 10589 sunos4*) 10590 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10591 wlarc= 10592 hardcode_direct=yes 10593 hardcode_shlibpath_var=no 10594 ;; 10595 10596 *) 10597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10598 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10599 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10600 else 10601 ld_shlibs=no 10602 fi 10603 ;; 10604 esac 10605 10606 if test no = "$ld_shlibs"; then 10607 runpath_var= 10608 hardcode_libdir_flag_spec= 10609 export_dynamic_flag_spec= 10610 whole_archive_flag_spec= 10611 fi 10612 else 10613 # PORTME fill in a description of your system's linker (not GNU ld) 10614 case $host_os in 10615 aix3*) 10616 allow_undefined_flag=unsupported 10617 always_export_symbols=yes 10618 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' 10619 # Note: this linker hardcodes the directories in LIBPATH if there 10620 # are no directories specified by -L. 10621 hardcode_minus_L=yes 10622 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10623 # Neither direct hardcoding nor static linking is supported with a 10624 # broken collect2. 10625 hardcode_direct=unsupported 10626 fi 10627 ;; 10628 10629 aix[4-9]*) 10630 if test ia64 = "$host_cpu"; then 10631 # On IA64, the linker does run time linking by default, so we don't 10632 # have to do anything special. 10633 aix_use_runtimelinking=no 10634 exp_sym_flag='-Bexport' 10635 no_entry_flag= 10636 else 10637 # If we're using GNU nm, then we don't want the "-C" option. 10638 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10639 # Without the "-l" option, or with the "-B" option, AIX nm treats 10640 # weak defined symbols like other global defined symbols, whereas 10641 # GNU nm marks them as "W". 10642 # While the 'weak' keyword is ignored in the Export File, we need 10643 # it in the Import File for the 'aix-soname' feature, so we have 10644 # to replace the "-B" option with "-P" for AIX nm. 10645 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10646 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' 10647 else 10648 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' 10649 fi 10650 aix_use_runtimelinking=no 10651 10652 # Test if we are trying to use run time linking or normal 10653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10654 # have runtime linking enabled, and use it for executables. 10655 # For shared libraries, we enable/disable runtime linking 10656 # depending on the kind of the shared library created - 10657 # when "with_aix_soname,aix_use_runtimelinking" is: 10658 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10659 # "aix,yes" lib.so shared, rtl:yes, for executables 10660 # lib.a static archive 10661 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10662 # lib.a(lib.so.V) shared, rtl:no, for executables 10663 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10664 # lib.a(lib.so.V) shared, rtl:no 10665 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10666 # lib.a static archive 10667 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10668 for ld_flag in $LDFLAGS; do 10669 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10670 aix_use_runtimelinking=yes 10671 break 10672 fi 10673 done 10674 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10675 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10676 # so we don't have lib.a shared libs to link our executables. 10677 # We have to force runtime linking in this case. 10678 aix_use_runtimelinking=yes 10679 LDFLAGS="$LDFLAGS -Wl,-brtl" 10680 fi 10681 ;; 10682 esac 10683 10684 exp_sym_flag='-bexport' 10685 no_entry_flag='-bnoentry' 10686 fi 10687 10688 # When large executables or shared objects are built, AIX ld can 10689 # have problems creating the table of contents. If linking a library 10690 # or program results in "error TOC overflow" add -mminimal-toc to 10691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10693 10694 archive_cmds='' 10695 hardcode_direct=yes 10696 hardcode_direct_absolute=yes 10697 hardcode_libdir_separator=':' 10698 link_all_deplibs=yes 10699 file_list_spec='$wl-f,' 10700 case $with_aix_soname,$aix_use_runtimelinking in 10701 aix,*) ;; # traditional, no import file 10702 svr4,* | *,yes) # use import file 10703 # The Import File defines what to hardcode. 10704 hardcode_direct=no 10705 hardcode_direct_absolute=no 10706 ;; 10707 esac 10708 10709 if test yes = "$GCC"; then 10710 case $host_os in aix4.[012]|aix4.[012].*) 10711 # We only want to do this on AIX 4.2 and lower, the check 10712 # below for broken collect2 doesn't work under 4.3+ 10713 collect2name=`$CC -print-prog-name=collect2` 10714 if test -f "$collect2name" && 10715 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10716 then 10717 # We have reworked collect2 10718 : 10719 else 10720 # We have old collect2 10721 hardcode_direct=unsupported 10722 # It fails to find uninstalled libraries when the uninstalled 10723 # path is not listed in the libpath. Setting hardcode_minus_L 10724 # to unsupported forces relinking 10725 hardcode_minus_L=yes 10726 hardcode_libdir_flag_spec='-L$libdir' 10727 hardcode_libdir_separator= 10728 fi 10729 ;; 10730 esac 10731 shared_flag='-shared' 10732 if test yes = "$aix_use_runtimelinking"; then 10733 shared_flag="$shared_flag "'$wl-G' 10734 fi 10735 # Need to ensure runtime linking is disabled for the traditional 10736 # shared library, or the linker may eventually find shared libraries 10737 # /with/ Import File - we do not want to mix them. 10738 shared_flag_aix='-shared' 10739 shared_flag_svr4='-shared $wl-G' 10740 else 10741 # not using gcc 10742 if test ia64 = "$host_cpu"; then 10743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10744 # chokes on -Wl,-G. The following line is correct: 10745 shared_flag='-G' 10746 else 10747 if test yes = "$aix_use_runtimelinking"; then 10748 shared_flag='$wl-G' 10749 else 10750 shared_flag='$wl-bM:SRE' 10751 fi 10752 shared_flag_aix='$wl-bM:SRE' 10753 shared_flag_svr4='$wl-G' 10754 fi 10755 fi 10756 10757 export_dynamic_flag_spec='$wl-bexpall' 10758 # It seems that -bexpall does not export symbols beginning with 10759 # underscore (_), so it is better to generate a list of symbols to export. 10760 always_export_symbols=yes 10761 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10762 # Warning - without using the other runtime loading flags (-brtl), 10763 # -berok will link without error, but may produce a broken library. 10764 allow_undefined_flag='-berok' 10765 # Determine the default libpath from the value encoded in an 10766 # empty executable. 10767 if test set = "${lt_cv_aix_libpath+set}"; then 10768 aix_libpath=$lt_cv_aix_libpath 10769 else 10770 if test ${lt_cv_aix_libpath_+y} 10771 then : 10772 printf %s "(cached) " >&6 10773 else case e in #( 10774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10775 /* end confdefs.h. */ 10776 10777 int 10778 main (void) 10779 { 10780 10781 ; 10782 return 0; 10783 } 10784 _ACEOF 10785 if ac_fn_c_try_link "$LINENO" 10786 then : 10787 10788 lt_aix_libpath_sed=' 10789 /Import File Strings/,/^$/ { 10790 /^0/ { 10791 s/^0 *\([^ ]*\) *$/\1/ 10792 p 10793 } 10794 }' 10795 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10796 # Check for a 64-bit object if we didn't find anything. 10797 if test -z "$lt_cv_aix_libpath_"; then 10798 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10799 fi 10800 fi 10801 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10802 conftest$ac_exeext conftest.$ac_ext 10803 if test -z "$lt_cv_aix_libpath_"; then 10804 lt_cv_aix_libpath_=/usr/lib:/lib 10805 fi 10806 ;; 10807 esac 10808 fi 10809 10810 aix_libpath=$lt_cv_aix_libpath_ 10811 fi 10812 10813 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10814 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 10815 else 10816 if test ia64 = "$host_cpu"; then 10817 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10818 allow_undefined_flag="-z nodefs" 10819 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" 10820 else 10821 # Determine the default libpath from the value encoded in an 10822 # empty executable. 10823 if test set = "${lt_cv_aix_libpath+set}"; then 10824 aix_libpath=$lt_cv_aix_libpath 10825 else 10826 if test ${lt_cv_aix_libpath_+y} 10827 then : 10828 printf %s "(cached) " >&6 10829 else case e in #( 10830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10831 /* end confdefs.h. */ 10832 10833 int 10834 main (void) 10835 { 10836 10837 ; 10838 return 0; 10839 } 10840 _ACEOF 10841 if ac_fn_c_try_link "$LINENO" 10842 then : 10843 10844 lt_aix_libpath_sed=' 10845 /Import File Strings/,/^$/ { 10846 /^0/ { 10847 s/^0 *\([^ ]*\) *$/\1/ 10848 p 10849 } 10850 }' 10851 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10852 # Check for a 64-bit object if we didn't find anything. 10853 if test -z "$lt_cv_aix_libpath_"; then 10854 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10855 fi 10856 fi 10857 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10858 conftest$ac_exeext conftest.$ac_ext 10859 if test -z "$lt_cv_aix_libpath_"; then 10860 lt_cv_aix_libpath_=/usr/lib:/lib 10861 fi 10862 ;; 10863 esac 10864 fi 10865 10866 aix_libpath=$lt_cv_aix_libpath_ 10867 fi 10868 10869 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10870 # Warning - without using the other run time loading flags, 10871 # -berok will link without error, but may produce a broken library. 10872 no_undefined_flag=' $wl-bernotok' 10873 allow_undefined_flag=' $wl-berok' 10874 if test yes = "$with_gnu_ld"; then 10875 # We only use this code for GNU lds that support --whole-archive. 10876 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10877 else 10878 # Exported symbols can be pulled into shared objects from archives 10879 whole_archive_flag_spec='$convenience' 10880 fi 10881 archive_cmds_need_lc=yes 10882 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10883 # -brtl affects multiple linker settings, -berok does not and is overridden later 10884 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10885 if test svr4 != "$with_aix_soname"; then 10886 # This is similar to how AIX traditionally builds its shared libraries. 10887 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' 10888 fi 10889 if test aix != "$with_aix_soname"; then 10890 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' 10891 else 10892 # used by -dlpreopen to get the symbols 10893 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10894 fi 10895 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10896 fi 10897 fi 10898 ;; 10899 10900 amigaos*) 10901 case $host_cpu in 10902 powerpc) 10903 # see comment about AmigaOS4 .so support 10904 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10905 archive_expsym_cmds='' 10906 ;; 10907 m68k) 10908 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)' 10909 hardcode_libdir_flag_spec='-L$libdir' 10910 hardcode_minus_L=yes 10911 ;; 10912 esac 10913 ;; 10914 10915 bsdi[45]*) 10916 export_dynamic_flag_spec=-rdynamic 10917 ;; 10918 10919 cygwin* | mingw* | pw32* | cegcc*) 10920 # When not using gcc, we currently assume that we are using 10921 # Microsoft Visual C++ or Intel C++ Compiler. 10922 # hardcode_libdir_flag_spec is actually meaningless, as there is 10923 # no search path for DLLs. 10924 case $cc_basename in 10925 cl* | icl*) 10926 # Native MSVC or ICC 10927 hardcode_libdir_flag_spec=' ' 10928 allow_undefined_flag=unsupported 10929 always_export_symbols=yes 10930 file_list_spec='@' 10931 # Tell ltmain to make .lib files, not .a files. 10932 libext=lib 10933 # Tell ltmain to make .dll files, not .so files. 10934 shrext_cmds=.dll 10935 # FIXME: Setting linknames here is a bad hack. 10936 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10937 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10938 cp "$export_symbols" "$output_objdir/$soname.def"; 10939 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10940 else 10941 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10942 fi~ 10943 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10944 linknames=' 10945 # The linker will not automatically build a static lib if we build a DLL. 10946 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10947 enable_shared_with_static_runtimes=yes 10948 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10949 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10950 # Don't use ranlib 10951 old_postinstall_cmds='chmod 644 $oldlib' 10952 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10953 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10954 case $lt_outputfile in 10955 *.exe|*.EXE) ;; 10956 *) 10957 lt_outputfile=$lt_outputfile.exe 10958 lt_tool_outputfile=$lt_tool_outputfile.exe 10959 ;; 10960 esac~ 10961 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10962 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10963 $RM "$lt_outputfile.manifest"; 10964 fi' 10965 ;; 10966 *) 10967 # Assume MSVC and ICC wrapper 10968 hardcode_libdir_flag_spec=' ' 10969 allow_undefined_flag=unsupported 10970 # Tell ltmain to make .lib files, not .a files. 10971 libext=lib 10972 # Tell ltmain to make .dll files, not .so files. 10973 shrext_cmds=.dll 10974 # FIXME: Setting linknames here is a bad hack. 10975 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10976 # The linker will automatically build a .lib file if we build a DLL. 10977 old_archive_from_new_cmds='true' 10978 # FIXME: Should let the user specify the lib program. 10979 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10980 enable_shared_with_static_runtimes=yes 10981 ;; 10982 esac 10983 ;; 10984 10985 darwin* | rhapsody*) 10986 10987 10988 archive_cmds_need_lc=no 10989 hardcode_direct=no 10990 hardcode_automatic=yes 10991 hardcode_shlibpath_var=unsupported 10992 if test yes = "$lt_cv_ld_force_load"; then 10993 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\"`' 10994 10995 else 10996 whole_archive_flag_spec='' 10997 fi 10998 link_all_deplibs=yes 10999 allow_undefined_flag=$_lt_dar_allow_undefined 11000 case $cc_basename in 11001 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11002 *) _lt_dar_can_shared=$GCC ;; 11003 esac 11004 if test yes = "$_lt_dar_can_shared"; then 11005 output_verbose_link_cmd=func_echo_all 11006 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11007 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11008 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" 11009 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" 11010 11011 else 11012 ld_shlibs=no 11013 fi 11014 11015 ;; 11016 11017 dgux*) 11018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11019 hardcode_libdir_flag_spec='-L$libdir' 11020 hardcode_shlibpath_var=no 11021 ;; 11022 11023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11024 # support. Future versions do this automatically, but an explicit c++rt0.o 11025 # does not break anything, and helps significantly (at the cost of a little 11026 # extra space). 11027 freebsd2.2*) 11028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11029 hardcode_libdir_flag_spec='-R$libdir' 11030 hardcode_direct=yes 11031 hardcode_shlibpath_var=no 11032 ;; 11033 11034 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11035 freebsd2.*) 11036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11037 hardcode_direct=yes 11038 hardcode_minus_L=yes 11039 hardcode_shlibpath_var=no 11040 ;; 11041 11042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11043 freebsd* | dragonfly* | midnightbsd*) 11044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11045 hardcode_libdir_flag_spec='-R$libdir' 11046 hardcode_direct=yes 11047 hardcode_shlibpath_var=no 11048 ;; 11049 11050 hpux9*) 11051 if test yes = "$GCC"; then 11052 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' 11053 else 11054 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' 11055 fi 11056 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11057 hardcode_libdir_separator=: 11058 hardcode_direct=yes 11059 11060 # hardcode_minus_L: Not really in the search PATH, 11061 # but as the default location of the library. 11062 hardcode_minus_L=yes 11063 export_dynamic_flag_spec='$wl-E' 11064 ;; 11065 11066 hpux10*) 11067 if test yes,no = "$GCC,$with_gnu_ld"; then 11068 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11069 else 11070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11071 fi 11072 if test no = "$with_gnu_ld"; then 11073 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11074 hardcode_libdir_separator=: 11075 hardcode_direct=yes 11076 hardcode_direct_absolute=yes 11077 export_dynamic_flag_spec='$wl-E' 11078 # hardcode_minus_L: Not really in the search PATH, 11079 # but as the default location of the library. 11080 hardcode_minus_L=yes 11081 fi 11082 ;; 11083 11084 hpux11*) 11085 if test yes,no = "$GCC,$with_gnu_ld"; then 11086 case $host_cpu in 11087 hppa*64*) 11088 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11089 ;; 11090 ia64*) 11091 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11092 ;; 11093 *) 11094 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11095 ;; 11096 esac 11097 else 11098 case $host_cpu in 11099 hppa*64*) 11100 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11101 ;; 11102 ia64*) 11103 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11104 ;; 11105 *) 11106 11107 # Older versions of the 11.00 compiler do not understand -b yet 11108 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11110 printf %s "checking if $CC understands -b... " >&6; } 11111 if test ${lt_cv_prog_compiler__b+y} 11112 then : 11113 printf %s "(cached) " >&6 11114 else case e in #( 11115 e) lt_cv_prog_compiler__b=no 11116 save_LDFLAGS=$LDFLAGS 11117 LDFLAGS="$LDFLAGS -b" 11118 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11120 # The linker can only warn and ignore the option if not recognized 11121 # So say no if there are warnings 11122 if test -s conftest.err; then 11123 # Append any errors to the config.log. 11124 cat conftest.err 1>&5 11125 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11127 if diff conftest.exp conftest.er2 >/dev/null; then 11128 lt_cv_prog_compiler__b=yes 11129 fi 11130 else 11131 lt_cv_prog_compiler__b=yes 11132 fi 11133 fi 11134 $RM -r conftest* 11135 LDFLAGS=$save_LDFLAGS 11136 ;; 11137 esac 11138 fi 11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11140 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11141 11142 if test yes = "$lt_cv_prog_compiler__b"; then 11143 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11144 else 11145 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11146 fi 11147 11148 ;; 11149 esac 11150 fi 11151 if test no = "$with_gnu_ld"; then 11152 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11153 hardcode_libdir_separator=: 11154 11155 case $host_cpu in 11156 hppa*64*|ia64*) 11157 hardcode_direct=no 11158 hardcode_shlibpath_var=no 11159 ;; 11160 *) 11161 hardcode_direct=yes 11162 hardcode_direct_absolute=yes 11163 export_dynamic_flag_spec='$wl-E' 11164 11165 # hardcode_minus_L: Not really in the search PATH, 11166 # but as the default location of the library. 11167 hardcode_minus_L=yes 11168 ;; 11169 esac 11170 fi 11171 ;; 11172 11173 irix5* | irix6* | nonstopux*) 11174 if test yes = "$GCC"; then 11175 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' 11176 # Try to use the -exported_symbol ld option, if it does not 11177 # work, assume that -exports_file does not work either and 11178 # implicitly export all symbols. 11179 # This should be the same for all languages, so no per-tag cache variable. 11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11181 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11182 if test ${lt_cv_irix_exported_symbol+y} 11183 then : 11184 printf %s "(cached) " >&6 11185 else case e in #( 11186 e) save_LDFLAGS=$LDFLAGS 11187 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11189 /* end confdefs.h. */ 11190 int foo (void) { return 0; } 11191 _ACEOF 11192 if ac_fn_c_try_link "$LINENO" 11193 then : 11194 lt_cv_irix_exported_symbol=yes 11195 else case e in #( 11196 e) lt_cv_irix_exported_symbol=no ;; 11197 esac 11198 fi 11199 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11200 conftest$ac_exeext conftest.$ac_ext 11201 LDFLAGS=$save_LDFLAGS ;; 11202 esac 11203 fi 11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11205 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11206 if test yes = "$lt_cv_irix_exported_symbol"; then 11207 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' 11208 fi 11209 else 11210 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' 11211 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' 11212 fi 11213 archive_cmds_need_lc='no' 11214 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11215 hardcode_libdir_separator=: 11216 inherit_rpath=yes 11217 link_all_deplibs=yes 11218 ;; 11219 11220 linux*) 11221 case $cc_basename in 11222 tcc*) 11223 # Fabrice Bellard et al's Tiny C Compiler 11224 ld_shlibs=yes 11225 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11226 ;; 11227 esac 11228 ;; 11229 11230 netbsd*) 11231 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11232 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11233 else 11234 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11235 fi 11236 hardcode_libdir_flag_spec='-R$libdir' 11237 hardcode_direct=yes 11238 hardcode_shlibpath_var=no 11239 ;; 11240 11241 newsos6) 11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11243 hardcode_direct=yes 11244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11245 hardcode_libdir_separator=: 11246 hardcode_shlibpath_var=no 11247 ;; 11248 11249 *nto* | *qnx*) 11250 ;; 11251 11252 openbsd* | bitrig*) 11253 if test -f /usr/libexec/ld.so; then 11254 hardcode_direct=yes 11255 hardcode_shlibpath_var=no 11256 hardcode_direct_absolute=yes 11257 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11258 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11259 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11260 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11261 export_dynamic_flag_spec='$wl-E' 11262 else 11263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11264 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11265 fi 11266 else 11267 ld_shlibs=no 11268 fi 11269 ;; 11270 11271 os2*) 11272 hardcode_libdir_flag_spec='-L$libdir' 11273 hardcode_minus_L=yes 11274 allow_undefined_flag=unsupported 11275 shrext_cmds=.dll 11276 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11277 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11278 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11279 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11280 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11281 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11282 emximp -o $lib $output_objdir/$libname.def' 11283 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11284 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11285 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11286 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11287 prefix_cmds="$SED"~ 11288 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11289 prefix_cmds="$prefix_cmds -e 1d"; 11290 fi~ 11291 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11292 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11293 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11294 emximp -o $lib $output_objdir/$libname.def' 11295 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11296 enable_shared_with_static_runtimes=yes 11297 file_list_spec='@' 11298 ;; 11299 11300 osf3*) 11301 if test yes = "$GCC"; then 11302 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11303 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' 11304 else 11305 allow_undefined_flag=' -expect_unresolved \*' 11306 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' 11307 fi 11308 archive_cmds_need_lc='no' 11309 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11310 hardcode_libdir_separator=: 11311 ;; 11312 11313 osf4* | osf5*) # as osf3* with the addition of -msym flag 11314 if test yes = "$GCC"; then 11315 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11316 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' 11317 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11318 else 11319 allow_undefined_flag=' -expect_unresolved \*' 11320 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' 11321 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~ 11322 $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' 11323 11324 # Both c and cxx compiler support -rpath directly 11325 hardcode_libdir_flag_spec='-rpath $libdir' 11326 fi 11327 archive_cmds_need_lc='no' 11328 hardcode_libdir_separator=: 11329 ;; 11330 11331 solaris*) 11332 no_undefined_flag=' -z defs' 11333 if test yes = "$GCC"; then 11334 wlarc='$wl' 11335 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11336 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11337 $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' 11338 else 11339 case `$CC -V 2>&1` in 11340 *"Compilers 5.0"*) 11341 wlarc='' 11342 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11343 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11344 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11345 ;; 11346 *) 11347 wlarc='$wl' 11348 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11350 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11351 ;; 11352 esac 11353 fi 11354 hardcode_libdir_flag_spec='-R$libdir' 11355 hardcode_shlibpath_var=no 11356 case $host_os in 11357 solaris2.[0-5] | solaris2.[0-5].*) ;; 11358 *) 11359 # The compiler driver will combine and reorder linker options, 11360 # but understands '-z linker_flag'. GCC discards it without '$wl', 11361 # but is careful enough not to reorder. 11362 # Supported since Solaris 2.6 (maybe 2.5.1?) 11363 if test yes = "$GCC"; then 11364 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11365 else 11366 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11367 fi 11368 ;; 11369 esac 11370 link_all_deplibs=yes 11371 ;; 11372 11373 sunos4*) 11374 if test sequent = "$host_vendor"; then 11375 # Use $CC to link under sequent, because it throws in some extra .o 11376 # files that make .init and .fini sections work. 11377 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11378 else 11379 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11380 fi 11381 hardcode_libdir_flag_spec='-L$libdir' 11382 hardcode_direct=yes 11383 hardcode_minus_L=yes 11384 hardcode_shlibpath_var=no 11385 ;; 11386 11387 sysv4) 11388 case $host_vendor in 11389 sni) 11390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11391 hardcode_direct=yes # is this really true??? 11392 ;; 11393 siemens) 11394 ## LD is ld it makes a PLAMLIB 11395 ## CC just makes a GrossModule. 11396 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11397 reload_cmds='$CC -r -o $output$reload_objs' 11398 hardcode_direct=no 11399 ;; 11400 motorola) 11401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11402 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11403 ;; 11404 esac 11405 runpath_var='LD_RUN_PATH' 11406 hardcode_shlibpath_var=no 11407 ;; 11408 11409 sysv4.3*) 11410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11411 hardcode_shlibpath_var=no 11412 export_dynamic_flag_spec='-Bexport' 11413 ;; 11414 11415 sysv4*MP*) 11416 if test -d /usr/nec; then 11417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11418 hardcode_shlibpath_var=no 11419 runpath_var=LD_RUN_PATH 11420 hardcode_runpath_var=yes 11421 ld_shlibs=yes 11422 fi 11423 ;; 11424 11425 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11426 no_undefined_flag='$wl-z,text' 11427 archive_cmds_need_lc=no 11428 hardcode_shlibpath_var=no 11429 runpath_var='LD_RUN_PATH' 11430 11431 if test yes = "$GCC"; then 11432 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11433 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11434 else 11435 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11436 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11437 fi 11438 ;; 11439 11440 sysv5* | sco3.2v5* | sco5v6*) 11441 # Note: We CANNOT use -z defs as we might desire, because we do not 11442 # link with -lc, and that would cause any symbols used from libc to 11443 # always be unresolved, which means just about no library would 11444 # ever link correctly. If we're not using GNU ld we use -z text 11445 # though, which does catch some bad symbols but isn't as heavy-handed 11446 # as -z defs. 11447 no_undefined_flag='$wl-z,text' 11448 allow_undefined_flag='$wl-z,nodefs' 11449 archive_cmds_need_lc=no 11450 hardcode_shlibpath_var=no 11451 hardcode_libdir_flag_spec='$wl-R,$libdir' 11452 hardcode_libdir_separator=':' 11453 link_all_deplibs=yes 11454 export_dynamic_flag_spec='$wl-Bexport' 11455 runpath_var='LD_RUN_PATH' 11456 11457 if test yes = "$GCC"; then 11458 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11459 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11460 else 11461 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11462 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11463 fi 11464 ;; 11465 11466 uts4*) 11467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11468 hardcode_libdir_flag_spec='-L$libdir' 11469 hardcode_shlibpath_var=no 11470 ;; 11471 11472 *) 11473 ld_shlibs=no 11474 ;; 11475 esac 11476 11477 if test sni = "$host_vendor"; then 11478 case $host in 11479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11480 export_dynamic_flag_spec='$wl-Blargedynsym' 11481 ;; 11482 esac 11483 fi 11484 fi 11485 11486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11487 printf "%s\n" "$ld_shlibs" >&6; } 11488 test no = "$ld_shlibs" && can_build_shared=no 11489 11490 with_gnu_ld=$with_gnu_ld 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 # 11507 # Do we need to explicitly link libc? 11508 # 11509 case "x$archive_cmds_need_lc" in 11510 x|xyes) 11511 # Assume -lc should be added 11512 archive_cmds_need_lc=yes 11513 11514 if test yes,yes = "$GCC,$enable_shared"; then 11515 case $archive_cmds in 11516 *'~'*) 11517 # FIXME: we may have to deal with multi-command sequences. 11518 ;; 11519 '$CC '*) 11520 # Test whether the compiler implicitly links with -lc since on some 11521 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11522 # to ld, don't add -lc before -lgcc. 11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11524 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11525 if test ${lt_cv_archive_cmds_need_lc+y} 11526 then : 11527 printf %s "(cached) " >&6 11528 else case e in #( 11529 e) $RM conftest* 11530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11531 11532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11533 (eval $ac_compile) 2>&5 11534 ac_status=$? 11535 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11536 test $ac_status = 0; } 2>conftest.err; then 11537 soname=conftest 11538 lib=conftest 11539 libobjs=conftest.$ac_objext 11540 deplibs= 11541 wl=$lt_prog_compiler_wl 11542 pic_flag=$lt_prog_compiler_pic 11543 compiler_flags=-v 11544 linker_flags=-v 11545 verstring= 11546 output_objdir=. 11547 libname=conftest 11548 lt_save_allow_undefined_flag=$allow_undefined_flag 11549 allow_undefined_flag= 11550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11551 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11552 ac_status=$? 11553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11554 test $ac_status = 0; } 11555 then 11556 lt_cv_archive_cmds_need_lc=no 11557 else 11558 lt_cv_archive_cmds_need_lc=yes 11559 fi 11560 allow_undefined_flag=$lt_save_allow_undefined_flag 11561 else 11562 cat conftest.err 1>&5 11563 fi 11564 $RM conftest* 11565 ;; 11566 esac 11567 fi 11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11569 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11570 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11571 ;; 11572 esac 11573 fi 11574 ;; 11575 esac 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11729 printf %s "checking dynamic linker characteristics... " >&6; } 11730 11731 if test yes = "$GCC"; then 11732 case $host_os in 11733 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11734 *) lt_awk_arg='/^libraries:/' ;; 11735 esac 11736 case $host_os in 11737 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11738 *) lt_sed_strip_eq='s|=/|/|g' ;; 11739 esac 11740 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11741 case $lt_search_path_spec in 11742 *\;*) 11743 # if the path contains ";" then we assume it to be the separator 11744 # otherwise default to the standard path separator (i.e. ":") - it is 11745 # assumed that no part of a normal pathname contains ";" but that should 11746 # okay in the real world where ";" in dirpaths is itself problematic. 11747 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11748 ;; 11749 *) 11750 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11751 ;; 11752 esac 11753 # Ok, now we have the path, separated by spaces, we can step through it 11754 # and add multilib dir if necessary... 11755 lt_tmp_lt_search_path_spec= 11756 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11757 # ...but if some path component already ends with the multilib dir we assume 11758 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11759 case "$lt_multi_os_dir; $lt_search_path_spec " in 11760 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11761 lt_multi_os_dir= 11762 ;; 11763 esac 11764 for lt_sys_path in $lt_search_path_spec; do 11765 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11766 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11767 elif test -n "$lt_multi_os_dir"; then 11768 test -d "$lt_sys_path" && \ 11769 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11770 fi 11771 done 11772 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11773 BEGIN {RS = " "; FS = "/|\n";} { 11774 lt_foo = ""; 11775 lt_count = 0; 11776 for (lt_i = NF; lt_i > 0; lt_i--) { 11777 if ($lt_i != "" && $lt_i != ".") { 11778 if ($lt_i == "..") { 11779 lt_count++; 11780 } else { 11781 if (lt_count == 0) { 11782 lt_foo = "/" $lt_i lt_foo; 11783 } else { 11784 lt_count--; 11785 } 11786 } 11787 } 11788 } 11789 if (lt_foo != "") { lt_freq[lt_foo]++; } 11790 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11791 }'` 11792 # AWK program above erroneously prepends '/' to C:/dos/paths 11793 # for these hosts. 11794 case $host_os in 11795 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11796 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11797 esac 11798 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11799 else 11800 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11801 fi 11802 library_names_spec= 11803 libname_spec='lib$name' 11804 soname_spec= 11805 shrext_cmds=.so 11806 postinstall_cmds= 11807 postuninstall_cmds= 11808 finish_cmds= 11809 finish_eval= 11810 shlibpath_var= 11811 shlibpath_overrides_runpath=unknown 11812 version_type=none 11813 dynamic_linker="$host_os ld.so" 11814 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11815 need_lib_prefix=unknown 11816 hardcode_into_libs=no 11817 11818 # when you set need_version to no, make sure it does not cause -set_version 11819 # flags to be left without arguments 11820 need_version=unknown 11821 11822 11823 11824 case $host_os in 11825 aix3*) 11826 version_type=linux # correct to gnu/linux during the next big refactor 11827 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11828 shlibpath_var=LIBPATH 11829 11830 # AIX 3 has no versioning support, so we append a major version to the name. 11831 soname_spec='$libname$release$shared_ext$major' 11832 ;; 11833 11834 aix[4-9]*) 11835 version_type=linux # correct to gnu/linux during the next big refactor 11836 need_lib_prefix=no 11837 need_version=no 11838 hardcode_into_libs=yes 11839 if test ia64 = "$host_cpu"; then 11840 # AIX 5 supports IA64 11841 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11842 shlibpath_var=LD_LIBRARY_PATH 11843 else 11844 # With GCC up to 2.95.x, collect2 would create an import file 11845 # for dependence libraries. The import file would start with 11846 # the line '#! .'. This would cause the generated library to 11847 # depend on '.', always an invalid library. This was fixed in 11848 # development snapshots of GCC prior to 3.0. 11849 case $host_os in 11850 aix4 | aix4.[01] | aix4.[01].*) 11851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11852 echo ' yes ' 11853 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11854 : 11855 else 11856 can_build_shared=no 11857 fi 11858 ;; 11859 esac 11860 # Using Import Files as archive members, it is possible to support 11861 # filename-based versioning of shared library archives on AIX. While 11862 # this would work for both with and without runtime linking, it will 11863 # prevent static linking of such archives. So we do filename-based 11864 # shared library versioning with .so extension only, which is used 11865 # when both runtime linking and shared linking is enabled. 11866 # Unfortunately, runtime linking may impact performance, so we do 11867 # not want this to be the default eventually. Also, we use the 11868 # versioned .so libs for executables only if there is the -brtl 11869 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11870 # To allow for filename-based versioning support, we need to create 11871 # libNAME.so.V as an archive file, containing: 11872 # *) an Import File, referring to the versioned filename of the 11873 # archive as well as the shared archive member, telling the 11874 # bitwidth (32 or 64) of that shared object, and providing the 11875 # list of exported symbols of that shared object, eventually 11876 # decorated with the 'weak' keyword 11877 # *) the shared object with the F_LOADONLY flag set, to really avoid 11878 # it being seen by the linker. 11879 # At run time we better use the real file rather than another symlink, 11880 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11881 11882 case $with_aix_soname,$aix_use_runtimelinking in 11883 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11884 # soname into executable. Probably we can add versioning support to 11885 # collect2, so additional links can be useful in future. 11886 aix,yes) # traditional libtool 11887 dynamic_linker='AIX unversionable lib.so' 11888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11889 # instead of lib<name>.a to let people know that these are not 11890 # typical AIX shared libraries. 11891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11892 ;; 11893 aix,no) # traditional AIX only 11894 dynamic_linker='AIX lib.a(lib.so.V)' 11895 # We preserve .a as extension for shared libraries through AIX4.2 11896 # and later when we are not doing run time linking. 11897 library_names_spec='$libname$release.a $libname.a' 11898 soname_spec='$libname$release$shared_ext$major' 11899 ;; 11900 svr4,*) # full svr4 only 11901 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11902 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11903 # We do not specify a path in Import Files, so LIBPATH fires. 11904 shlibpath_overrides_runpath=yes 11905 ;; 11906 *,yes) # both, prefer svr4 11907 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11908 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11909 # unpreferred sharedlib libNAME.a needs extra handling 11910 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"' 11911 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"' 11912 # We do not specify a path in Import Files, so LIBPATH fires. 11913 shlibpath_overrides_runpath=yes 11914 ;; 11915 *,no) # both, prefer aix 11916 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11917 library_names_spec='$libname$release.a $libname.a' 11918 soname_spec='$libname$release$shared_ext$major' 11919 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11920 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)' 11921 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"' 11922 ;; 11923 esac 11924 shlibpath_var=LIBPATH 11925 fi 11926 ;; 11927 11928 amigaos*) 11929 case $host_cpu in 11930 powerpc) 11931 # Since July 2007 AmigaOS4 officially supports .so libraries. 11932 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11933 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11934 ;; 11935 m68k) 11936 library_names_spec='$libname.ixlibrary $libname.a' 11937 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11938 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' 11939 ;; 11940 esac 11941 ;; 11942 11943 beos*) 11944 library_names_spec='$libname$shared_ext' 11945 dynamic_linker="$host_os ld.so" 11946 shlibpath_var=LIBRARY_PATH 11947 ;; 11948 11949 bsdi[45]*) 11950 version_type=linux # correct to gnu/linux during the next big refactor 11951 need_version=no 11952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11953 soname_spec='$libname$release$shared_ext$major' 11954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11955 shlibpath_var=LD_LIBRARY_PATH 11956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11958 # the default ld.so.conf also contains /usr/contrib/lib and 11959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11960 # libtool to hard-code these into programs 11961 ;; 11962 11963 cygwin* | mingw* | pw32* | cegcc*) 11964 version_type=windows 11965 shrext_cmds=.dll 11966 need_version=no 11967 need_lib_prefix=no 11968 11969 case $GCC,$cc_basename in 11970 yes,*) 11971 # gcc 11972 library_names_spec='$libname.dll.a' 11973 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11974 postinstall_cmds='base_file=`basename \$file`~ 11975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11976 dldir=$destdir/`dirname \$dlpath`~ 11977 test -d \$dldir || mkdir -p \$dldir~ 11978 $install_prog $dir/$dlname \$dldir/$dlname~ 11979 chmod a+x \$dldir/$dlname~ 11980 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11981 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11982 fi' 11983 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11984 dlpath=$dir/\$dldll~ 11985 $RM \$dlpath' 11986 shlibpath_overrides_runpath=yes 11987 11988 case $host_os in 11989 cygwin*) 11990 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11991 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11992 11993 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11994 ;; 11995 mingw* | cegcc*) 11996 # MinGW DLLs use traditional 'lib' prefix 11997 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11998 ;; 11999 pw32*) 12000 # pw32 DLLs use 'pw' prefix rather than 'lib' 12001 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12002 ;; 12003 esac 12004 dynamic_linker='Win32 ld.exe' 12005 ;; 12006 12007 *,cl* | *,icl*) 12008 # Native MSVC or ICC 12009 libname_spec='$name' 12010 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12011 library_names_spec='$libname.dll.lib' 12012 12013 case $build_os in 12014 mingw*) 12015 sys_lib_search_path_spec= 12016 lt_save_ifs=$IFS 12017 IFS=';' 12018 for lt_path in $LIB 12019 do 12020 IFS=$lt_save_ifs 12021 # Let DOS variable expansion print the short 8.3 style file name. 12022 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12023 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12024 done 12025 IFS=$lt_save_ifs 12026 # Convert to MSYS style. 12027 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12028 ;; 12029 cygwin*) 12030 # Convert to unix form, then to dos form, then back to unix form 12031 # but this time dos style (no spaces!) so that the unix form looks 12032 # like /cygdrive/c/PROGRA~1:/cygdr... 12033 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12034 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12035 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12036 ;; 12037 *) 12038 sys_lib_search_path_spec=$LIB 12039 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12040 # It is most probably a Windows format PATH. 12041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12042 else 12043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12044 fi 12045 # FIXME: find the short name or the path components, as spaces are 12046 # common. (e.g. "Program Files" -> "PROGRA~1") 12047 ;; 12048 esac 12049 12050 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12051 postinstall_cmds='base_file=`basename \$file`~ 12052 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12053 dldir=$destdir/`dirname \$dlpath`~ 12054 test -d \$dldir || mkdir -p \$dldir~ 12055 $install_prog $dir/$dlname \$dldir/$dlname' 12056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12057 dlpath=$dir/\$dldll~ 12058 $RM \$dlpath' 12059 shlibpath_overrides_runpath=yes 12060 dynamic_linker='Win32 link.exe' 12061 ;; 12062 12063 *) 12064 # Assume MSVC and ICC wrapper 12065 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12066 dynamic_linker='Win32 ld.exe' 12067 ;; 12068 esac 12069 # FIXME: first we should search . and the directory the executable is in 12070 shlibpath_var=PATH 12071 ;; 12072 12073 darwin* | rhapsody*) 12074 dynamic_linker="$host_os dyld" 12075 version_type=darwin 12076 need_lib_prefix=no 12077 need_version=no 12078 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12079 soname_spec='$libname$release$major$shared_ext' 12080 shlibpath_overrides_runpath=yes 12081 shlibpath_var=DYLD_LIBRARY_PATH 12082 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12083 12084 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12086 ;; 12087 12088 dgux*) 12089 version_type=linux # correct to gnu/linux during the next big refactor 12090 need_lib_prefix=no 12091 need_version=no 12092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12093 soname_spec='$libname$release$shared_ext$major' 12094 shlibpath_var=LD_LIBRARY_PATH 12095 ;; 12096 12097 freebsd* | dragonfly* | midnightbsd*) 12098 # DragonFly does not have aout. When/if they implement a new 12099 # versioning mechanism, adjust this. 12100 if test -x /usr/bin/objformat; then 12101 objformat=`/usr/bin/objformat` 12102 else 12103 case $host_os in 12104 freebsd[23].*) objformat=aout ;; 12105 *) objformat=elf ;; 12106 esac 12107 fi 12108 version_type=freebsd-$objformat 12109 case $version_type in 12110 freebsd-elf*) 12111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12112 soname_spec='$libname$release$shared_ext$major' 12113 need_version=no 12114 need_lib_prefix=no 12115 ;; 12116 freebsd-*) 12117 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12118 need_version=yes 12119 ;; 12120 esac 12121 shlibpath_var=LD_LIBRARY_PATH 12122 case $host_os in 12123 freebsd2.*) 12124 shlibpath_overrides_runpath=yes 12125 ;; 12126 freebsd3.[01]* | freebsdelf3.[01]*) 12127 shlibpath_overrides_runpath=yes 12128 hardcode_into_libs=yes 12129 ;; 12130 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12131 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12132 shlibpath_overrides_runpath=no 12133 hardcode_into_libs=yes 12134 ;; 12135 *) # from 4.6 on, and DragonFly 12136 shlibpath_overrides_runpath=yes 12137 hardcode_into_libs=yes 12138 ;; 12139 esac 12140 ;; 12141 12142 haiku*) 12143 version_type=linux # correct to gnu/linux during the next big refactor 12144 need_lib_prefix=no 12145 need_version=no 12146 dynamic_linker="$host_os runtime_loader" 12147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12148 soname_spec='$libname$release$shared_ext$major' 12149 shlibpath_var=LIBRARY_PATH 12150 shlibpath_overrides_runpath=no 12151 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12152 hardcode_into_libs=yes 12153 ;; 12154 12155 hpux9* | hpux10* | hpux11*) 12156 # Give a soname corresponding to the major version so that dld.sl refuses to 12157 # link against other versions. 12158 version_type=sunos 12159 need_lib_prefix=no 12160 need_version=no 12161 case $host_cpu in 12162 ia64*) 12163 shrext_cmds='.so' 12164 hardcode_into_libs=yes 12165 dynamic_linker="$host_os dld.so" 12166 shlibpath_var=LD_LIBRARY_PATH 12167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12169 soname_spec='$libname$release$shared_ext$major' 12170 if test 32 = "$HPUX_IA64_MODE"; then 12171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12172 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12173 else 12174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12175 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12176 fi 12177 ;; 12178 hppa*64*) 12179 shrext_cmds='.sl' 12180 hardcode_into_libs=yes 12181 dynamic_linker="$host_os dld.sl" 12182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12185 soname_spec='$libname$release$shared_ext$major' 12186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12188 ;; 12189 *) 12190 shrext_cmds='.sl' 12191 dynamic_linker="$host_os dld.sl" 12192 shlibpath_var=SHLIB_PATH 12193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12195 soname_spec='$libname$release$shared_ext$major' 12196 ;; 12197 esac 12198 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12199 postinstall_cmds='chmod 555 $lib' 12200 # or fails outright, so override atomically: 12201 install_override_mode=555 12202 ;; 12203 12204 interix[3-9]*) 12205 version_type=linux # correct to gnu/linux during the next big refactor 12206 need_lib_prefix=no 12207 need_version=no 12208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12209 soname_spec='$libname$release$shared_ext$major' 12210 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12211 shlibpath_var=LD_LIBRARY_PATH 12212 shlibpath_overrides_runpath=no 12213 hardcode_into_libs=yes 12214 ;; 12215 12216 irix5* | irix6* | nonstopux*) 12217 case $host_os in 12218 nonstopux*) version_type=nonstopux ;; 12219 *) 12220 if test yes = "$lt_cv_prog_gnu_ld"; then 12221 version_type=linux # correct to gnu/linux during the next big refactor 12222 else 12223 version_type=irix 12224 fi ;; 12225 esac 12226 need_lib_prefix=no 12227 need_version=no 12228 soname_spec='$libname$release$shared_ext$major' 12229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12230 case $host_os in 12231 irix5* | nonstopux*) 12232 libsuff= shlibsuff= 12233 ;; 12234 *) 12235 case $LD in # libtool.m4 will add one of these switches to LD 12236 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12237 libsuff= shlibsuff= libmagic=32-bit;; 12238 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12239 libsuff=32 shlibsuff=N32 libmagic=N32;; 12240 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12241 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12242 *) libsuff= shlibsuff= libmagic=never-match;; 12243 esac 12244 ;; 12245 esac 12246 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12247 shlibpath_overrides_runpath=no 12248 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12249 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12250 hardcode_into_libs=yes 12251 ;; 12252 12253 # No shared lib support for Linux oldld, aout, or coff. 12254 linux*oldld* | linux*aout* | linux*coff*) 12255 dynamic_linker=no 12256 ;; 12257 12258 linux*android*) 12259 version_type=none # Android doesn't support versioned libraries. 12260 need_lib_prefix=no 12261 need_version=no 12262 library_names_spec='$libname$release$shared_ext' 12263 soname_spec='$libname$release$shared_ext' 12264 finish_cmds= 12265 shlibpath_var=LD_LIBRARY_PATH 12266 shlibpath_overrides_runpath=yes 12267 12268 # This implies no fast_install, which is unacceptable. 12269 # Some rework will be needed to allow for fast_install 12270 # before this can be enabled. 12271 hardcode_into_libs=yes 12272 12273 dynamic_linker='Android linker' 12274 # Don't embed -rpath directories since the linker doesn't support them. 12275 hardcode_libdir_flag_spec='-L$libdir' 12276 ;; 12277 12278 # This must be glibc/ELF. 12279 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12280 version_type=linux # correct to gnu/linux during the next big refactor 12281 need_lib_prefix=no 12282 need_version=no 12283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12284 soname_spec='$libname$release$shared_ext$major' 12285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12286 shlibpath_var=LD_LIBRARY_PATH 12287 shlibpath_overrides_runpath=no 12288 12289 # Some binutils ld are patched to set DT_RUNPATH 12290 if test ${lt_cv_shlibpath_overrides_runpath+y} 12291 then : 12292 printf %s "(cached) " >&6 12293 else case e in #( 12294 e) lt_cv_shlibpath_overrides_runpath=no 12295 save_LDFLAGS=$LDFLAGS 12296 save_libdir=$libdir 12297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12300 /* end confdefs.h. */ 12301 12302 int 12303 main (void) 12304 { 12305 12306 ; 12307 return 0; 12308 } 12309 _ACEOF 12310 if ac_fn_c_try_link "$LINENO" 12311 then : 12312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12313 then : 12314 lt_cv_shlibpath_overrides_runpath=yes 12315 fi 12316 fi 12317 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12318 conftest$ac_exeext conftest.$ac_ext 12319 LDFLAGS=$save_LDFLAGS 12320 libdir=$save_libdir 12321 ;; 12322 esac 12323 fi 12324 12325 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12326 12327 # This implies no fast_install, which is unacceptable. 12328 # Some rework will be needed to allow for fast_install 12329 # before this can be enabled. 12330 hardcode_into_libs=yes 12331 12332 # Ideally, we could use ldconfig to report *all* directores which are 12333 # searched for libraries, however this is still not possible. Aside from not 12334 # being certain /sbin/ldconfig is available, command 12335 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12336 # even though it is searched at run-time. Try to do the best guess by 12337 # appending ld.so.conf contents (and includes) to the search path. 12338 if test -f /etc/ld.so.conf; then 12339 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' ' '` 12340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12341 fi 12342 12343 # We used to test for /lib/ld.so.1 and disable shared libraries on 12344 # powerpc, because MkLinux only supported shared libraries with the 12345 # GNU dynamic linker. Since this was broken with cross compilers, 12346 # most powerpc-linux boxes support dynamic linking these days and 12347 # people can always --disable-shared, the test was removed, and we 12348 # assume the GNU/Linux dynamic linker is in use. 12349 dynamic_linker='GNU/Linux ld.so' 12350 ;; 12351 12352 netbsd*) 12353 version_type=sunos 12354 need_lib_prefix=no 12355 need_version=no 12356 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12357 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12359 dynamic_linker='NetBSD (a.out) ld.so' 12360 else 12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12362 soname_spec='$libname$release$shared_ext$major' 12363 dynamic_linker='NetBSD ld.elf_so' 12364 fi 12365 shlibpath_var=LD_LIBRARY_PATH 12366 shlibpath_overrides_runpath=yes 12367 hardcode_into_libs=yes 12368 ;; 12369 12370 newsos6) 12371 version_type=linux # correct to gnu/linux during the next big refactor 12372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12373 shlibpath_var=LD_LIBRARY_PATH 12374 shlibpath_overrides_runpath=yes 12375 ;; 12376 12377 *nto* | *qnx*) 12378 version_type=qnx 12379 need_lib_prefix=no 12380 need_version=no 12381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12382 soname_spec='$libname$release$shared_ext$major' 12383 shlibpath_var=LD_LIBRARY_PATH 12384 shlibpath_overrides_runpath=no 12385 hardcode_into_libs=yes 12386 dynamic_linker='ldqnx.so' 12387 ;; 12388 12389 openbsd* | bitrig*) 12390 version_type=sunos 12391 sys_lib_dlsearch_path_spec=/usr/lib 12392 need_lib_prefix=no 12393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12394 need_version=no 12395 else 12396 need_version=yes 12397 fi 12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12399 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12400 shlibpath_var=LD_LIBRARY_PATH 12401 shlibpath_overrides_runpath=yes 12402 ;; 12403 12404 os2*) 12405 libname_spec='$name' 12406 version_type=windows 12407 shrext_cmds=.dll 12408 need_version=no 12409 need_lib_prefix=no 12410 # OS/2 can only load a DLL with a base name of 8 characters or less. 12411 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12412 v=$($ECHO $release$versuffix | tr -d .-); 12413 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12414 $ECHO $n$v`$shared_ext' 12415 library_names_spec='${libname}_dll.$libext' 12416 dynamic_linker='OS/2 ld.exe' 12417 shlibpath_var=BEGINLIBPATH 12418 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12419 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12420 postinstall_cmds='base_file=`basename \$file`~ 12421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12422 dldir=$destdir/`dirname \$dlpath`~ 12423 test -d \$dldir || mkdir -p \$dldir~ 12424 $install_prog $dir/$dlname \$dldir/$dlname~ 12425 chmod a+x \$dldir/$dlname~ 12426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12428 fi' 12429 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12430 dlpath=$dir/\$dldll~ 12431 $RM \$dlpath' 12432 ;; 12433 12434 osf3* | osf4* | osf5*) 12435 version_type=osf 12436 need_lib_prefix=no 12437 need_version=no 12438 soname_spec='$libname$release$shared_ext$major' 12439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12440 shlibpath_var=LD_LIBRARY_PATH 12441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12443 ;; 12444 12445 rdos*) 12446 dynamic_linker=no 12447 ;; 12448 12449 solaris*) 12450 version_type=linux # correct to gnu/linux during the next big refactor 12451 need_lib_prefix=no 12452 need_version=no 12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12454 soname_spec='$libname$release$shared_ext$major' 12455 shlibpath_var=LD_LIBRARY_PATH 12456 shlibpath_overrides_runpath=yes 12457 hardcode_into_libs=yes 12458 # ldd complains unless libraries are executable 12459 postinstall_cmds='chmod +x $lib' 12460 ;; 12461 12462 sunos4*) 12463 version_type=sunos 12464 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12465 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12466 shlibpath_var=LD_LIBRARY_PATH 12467 shlibpath_overrides_runpath=yes 12468 if test yes = "$with_gnu_ld"; then 12469 need_lib_prefix=no 12470 fi 12471 need_version=yes 12472 ;; 12473 12474 sysv4 | sysv4.3*) 12475 version_type=linux # correct to gnu/linux during the next big refactor 12476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12477 soname_spec='$libname$release$shared_ext$major' 12478 shlibpath_var=LD_LIBRARY_PATH 12479 case $host_vendor in 12480 sni) 12481 shlibpath_overrides_runpath=no 12482 need_lib_prefix=no 12483 runpath_var=LD_RUN_PATH 12484 ;; 12485 siemens) 12486 need_lib_prefix=no 12487 ;; 12488 motorola) 12489 need_lib_prefix=no 12490 need_version=no 12491 shlibpath_overrides_runpath=no 12492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12493 ;; 12494 esac 12495 ;; 12496 12497 sysv4*MP*) 12498 if test -d /usr/nec; then 12499 version_type=linux # correct to gnu/linux during the next big refactor 12500 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12501 soname_spec='$libname$shared_ext.$major' 12502 shlibpath_var=LD_LIBRARY_PATH 12503 fi 12504 ;; 12505 12506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12507 version_type=sco 12508 need_lib_prefix=no 12509 need_version=no 12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12511 soname_spec='$libname$release$shared_ext$major' 12512 shlibpath_var=LD_LIBRARY_PATH 12513 shlibpath_overrides_runpath=yes 12514 hardcode_into_libs=yes 12515 if test yes = "$with_gnu_ld"; then 12516 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12517 else 12518 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12519 case $host_os in 12520 sco3.2v5*) 12521 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12522 ;; 12523 esac 12524 fi 12525 sys_lib_dlsearch_path_spec='/usr/lib' 12526 ;; 12527 12528 tpf*) 12529 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12530 version_type=linux # correct to gnu/linux during the next big refactor 12531 need_lib_prefix=no 12532 need_version=no 12533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12534 shlibpath_var=LD_LIBRARY_PATH 12535 shlibpath_overrides_runpath=no 12536 hardcode_into_libs=yes 12537 ;; 12538 12539 uts4*) 12540 version_type=linux # correct to gnu/linux during the next big refactor 12541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12542 soname_spec='$libname$release$shared_ext$major' 12543 shlibpath_var=LD_LIBRARY_PATH 12544 ;; 12545 12546 *) 12547 dynamic_linker=no 12548 ;; 12549 esac 12550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12551 printf "%s\n" "$dynamic_linker" >&6; } 12552 test no = "$dynamic_linker" && can_build_shared=no 12553 12554 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12555 if test yes = "$GCC"; then 12556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12557 fi 12558 12559 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12560 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12561 fi 12562 12563 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12564 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12565 fi 12566 12567 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12568 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12569 12570 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12571 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12572 12573 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12574 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12673 printf %s "checking how to hardcode library paths into programs... " >&6; } 12674 hardcode_action= 12675 if test -n "$hardcode_libdir_flag_spec" || 12676 test -n "$runpath_var" || 12677 test yes = "$hardcode_automatic"; then 12678 12679 # We can hardcode non-existent directories. 12680 if test no != "$hardcode_direct" && 12681 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12682 # have to relink, otherwise we might link with an installed library 12683 # when we should be linking with a yet-to-be-installed one 12684 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12685 test no != "$hardcode_minus_L"; then 12686 # Linking always hardcodes the temporary library directory. 12687 hardcode_action=relink 12688 else 12689 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12690 hardcode_action=immediate 12691 fi 12692 else 12693 # We cannot hardcode anything, or else we can only hardcode existing 12694 # directories. 12695 hardcode_action=unsupported 12696 fi 12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12698 printf "%s\n" "$hardcode_action" >&6; } 12699 12700 if test relink = "$hardcode_action" || 12701 test yes = "$inherit_rpath"; then 12702 # Fast installation is not supported 12703 enable_fast_install=no 12704 elif test yes = "$shlibpath_overrides_runpath" || 12705 test no = "$enable_shared"; then 12706 # Fast installation is not necessary 12707 enable_fast_install=needless 12708 fi 12709 12710 12711 12712 12713 12714 12715 if test yes != "$enable_dlopen"; then 12716 enable_dlopen=unknown 12717 enable_dlopen_self=unknown 12718 enable_dlopen_self_static=unknown 12719 else 12720 lt_cv_dlopen=no 12721 lt_cv_dlopen_libs= 12722 12723 case $host_os in 12724 beos*) 12725 lt_cv_dlopen=load_add_on 12726 lt_cv_dlopen_libs= 12727 lt_cv_dlopen_self=yes 12728 ;; 12729 12730 mingw* | pw32* | cegcc*) 12731 lt_cv_dlopen=LoadLibrary 12732 lt_cv_dlopen_libs= 12733 ;; 12734 12735 cygwin*) 12736 lt_cv_dlopen=dlopen 12737 lt_cv_dlopen_libs= 12738 ;; 12739 12740 darwin*) 12741 # if libdl is installed we need to link against it 12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12743 printf %s "checking for dlopen in -ldl... " >&6; } 12744 if test ${ac_cv_lib_dl_dlopen+y} 12745 then : 12746 printf %s "(cached) " >&6 12747 else case e in #( 12748 e) ac_check_lib_save_LIBS=$LIBS 12749 LIBS="-ldl $LIBS" 12750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12751 /* end confdefs.h. */ 12752 12753 /* Override any GCC internal prototype to avoid an error. 12754 Use char because int might match the return type of a GCC 12755 builtin and then its argument prototype would still apply. 12756 The 'extern "C"' is for builds by C++ compilers; 12757 although this is not generally supported in C code supporting it here 12758 has little cost and some practical benefit (sr 110532). */ 12759 #ifdef __cplusplus 12760 extern "C" 12761 #endif 12762 char dlopen (void); 12763 int 12764 main (void) 12765 { 12766 return dlopen (); 12767 ; 12768 return 0; 12769 } 12770 _ACEOF 12771 if ac_fn_c_try_link "$LINENO" 12772 then : 12773 ac_cv_lib_dl_dlopen=yes 12774 else case e in #( 12775 e) ac_cv_lib_dl_dlopen=no ;; 12776 esac 12777 fi 12778 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12779 conftest$ac_exeext conftest.$ac_ext 12780 LIBS=$ac_check_lib_save_LIBS ;; 12781 esac 12782 fi 12783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12784 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12785 if test "x$ac_cv_lib_dl_dlopen" = xyes 12786 then : 12787 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12788 else case e in #( 12789 e) 12790 lt_cv_dlopen=dyld 12791 lt_cv_dlopen_libs= 12792 lt_cv_dlopen_self=yes 12793 ;; 12794 esac 12795 fi 12796 12797 ;; 12798 12799 tpf*) 12800 # Don't try to run any link tests for TPF. We know it's impossible 12801 # because TPF is a cross-compiler, and we know how we open DSOs. 12802 lt_cv_dlopen=dlopen 12803 lt_cv_dlopen_libs= 12804 lt_cv_dlopen_self=no 12805 ;; 12806 12807 *) 12808 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12809 if test "x$ac_cv_func_shl_load" = xyes 12810 then : 12811 lt_cv_dlopen=shl_load 12812 else case e in #( 12813 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12814 printf %s "checking for shl_load in -ldld... " >&6; } 12815 if test ${ac_cv_lib_dld_shl_load+y} 12816 then : 12817 printf %s "(cached) " >&6 12818 else case e in #( 12819 e) ac_check_lib_save_LIBS=$LIBS 12820 LIBS="-ldld $LIBS" 12821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12822 /* end confdefs.h. */ 12823 12824 /* Override any GCC internal prototype to avoid an error. 12825 Use char because int might match the return type of a GCC 12826 builtin and then its argument prototype would still apply. 12827 The 'extern "C"' is for builds by C++ compilers; 12828 although this is not generally supported in C code supporting it here 12829 has little cost and some practical benefit (sr 110532). */ 12830 #ifdef __cplusplus 12831 extern "C" 12832 #endif 12833 char shl_load (void); 12834 int 12835 main (void) 12836 { 12837 return shl_load (); 12838 ; 12839 return 0; 12840 } 12841 _ACEOF 12842 if ac_fn_c_try_link "$LINENO" 12843 then : 12844 ac_cv_lib_dld_shl_load=yes 12845 else case e in #( 12846 e) ac_cv_lib_dld_shl_load=no ;; 12847 esac 12848 fi 12849 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12850 conftest$ac_exeext conftest.$ac_ext 12851 LIBS=$ac_check_lib_save_LIBS ;; 12852 esac 12853 fi 12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12855 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 12856 if test "x$ac_cv_lib_dld_shl_load" = xyes 12857 then : 12858 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12859 else case e in #( 12860 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12861 if test "x$ac_cv_func_dlopen" = xyes 12862 then : 12863 lt_cv_dlopen=dlopen 12864 else case e in #( 12865 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12866 printf %s "checking for dlopen in -ldl... " >&6; } 12867 if test ${ac_cv_lib_dl_dlopen+y} 12868 then : 12869 printf %s "(cached) " >&6 12870 else case e in #( 12871 e) ac_check_lib_save_LIBS=$LIBS 12872 LIBS="-ldl $LIBS" 12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12874 /* end confdefs.h. */ 12875 12876 /* Override any GCC internal prototype to avoid an error. 12877 Use char because int might match the return type of a GCC 12878 builtin and then its argument prototype would still apply. 12879 The 'extern "C"' is for builds by C++ compilers; 12880 although this is not generally supported in C code supporting it here 12881 has little cost and some practical benefit (sr 110532). */ 12882 #ifdef __cplusplus 12883 extern "C" 12884 #endif 12885 char dlopen (void); 12886 int 12887 main (void) 12888 { 12889 return dlopen (); 12890 ; 12891 return 0; 12892 } 12893 _ACEOF 12894 if ac_fn_c_try_link "$LINENO" 12895 then : 12896 ac_cv_lib_dl_dlopen=yes 12897 else case e in #( 12898 e) ac_cv_lib_dl_dlopen=no ;; 12899 esac 12900 fi 12901 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12902 conftest$ac_exeext conftest.$ac_ext 12903 LIBS=$ac_check_lib_save_LIBS ;; 12904 esac 12905 fi 12906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12907 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 12908 if test "x$ac_cv_lib_dl_dlopen" = xyes 12909 then : 12910 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12911 else case e in #( 12912 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12913 printf %s "checking for dlopen in -lsvld... " >&6; } 12914 if test ${ac_cv_lib_svld_dlopen+y} 12915 then : 12916 printf %s "(cached) " >&6 12917 else case e in #( 12918 e) ac_check_lib_save_LIBS=$LIBS 12919 LIBS="-lsvld $LIBS" 12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12921 /* end confdefs.h. */ 12922 12923 /* Override any GCC internal prototype to avoid an error. 12924 Use char because int might match the return type of a GCC 12925 builtin and then its argument prototype would still apply. 12926 The 'extern "C"' is for builds by C++ compilers; 12927 although this is not generally supported in C code supporting it here 12928 has little cost and some practical benefit (sr 110532). */ 12929 #ifdef __cplusplus 12930 extern "C" 12931 #endif 12932 char dlopen (void); 12933 int 12934 main (void) 12935 { 12936 return dlopen (); 12937 ; 12938 return 0; 12939 } 12940 _ACEOF 12941 if ac_fn_c_try_link "$LINENO" 12942 then : 12943 ac_cv_lib_svld_dlopen=yes 12944 else case e in #( 12945 e) ac_cv_lib_svld_dlopen=no ;; 12946 esac 12947 fi 12948 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12949 conftest$ac_exeext conftest.$ac_ext 12950 LIBS=$ac_check_lib_save_LIBS ;; 12951 esac 12952 fi 12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12954 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 12955 if test "x$ac_cv_lib_svld_dlopen" = xyes 12956 then : 12957 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12958 else case e in #( 12959 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12960 printf %s "checking for dld_link in -ldld... " >&6; } 12961 if test ${ac_cv_lib_dld_dld_link+y} 12962 then : 12963 printf %s "(cached) " >&6 12964 else case e in #( 12965 e) ac_check_lib_save_LIBS=$LIBS 12966 LIBS="-ldld $LIBS" 12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12968 /* end confdefs.h. */ 12969 12970 /* Override any GCC internal prototype to avoid an error. 12971 Use char because int might match the return type of a GCC 12972 builtin and then its argument prototype would still apply. 12973 The 'extern "C"' is for builds by C++ compilers; 12974 although this is not generally supported in C code supporting it here 12975 has little cost and some practical benefit (sr 110532). */ 12976 #ifdef __cplusplus 12977 extern "C" 12978 #endif 12979 char dld_link (void); 12980 int 12981 main (void) 12982 { 12983 return dld_link (); 12984 ; 12985 return 0; 12986 } 12987 _ACEOF 12988 if ac_fn_c_try_link "$LINENO" 12989 then : 12990 ac_cv_lib_dld_dld_link=yes 12991 else case e in #( 12992 e) ac_cv_lib_dld_dld_link=no ;; 12993 esac 12994 fi 12995 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12996 conftest$ac_exeext conftest.$ac_ext 12997 LIBS=$ac_check_lib_save_LIBS ;; 12998 esac 12999 fi 13000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13001 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13002 if test "x$ac_cv_lib_dld_dld_link" = xyes 13003 then : 13004 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13005 fi 13006 13007 ;; 13008 esac 13009 fi 13010 13011 ;; 13012 esac 13013 fi 13014 13015 ;; 13016 esac 13017 fi 13018 13019 ;; 13020 esac 13021 fi 13022 13023 ;; 13024 esac 13025 fi 13026 13027 ;; 13028 esac 13029 13030 if test no = "$lt_cv_dlopen"; then 13031 enable_dlopen=no 13032 else 13033 enable_dlopen=yes 13034 fi 13035 13036 case $lt_cv_dlopen in 13037 dlopen) 13038 save_CPPFLAGS=$CPPFLAGS 13039 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13040 13041 save_LDFLAGS=$LDFLAGS 13042 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13043 13044 save_LIBS=$LIBS 13045 LIBS="$lt_cv_dlopen_libs $LIBS" 13046 13047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13048 printf %s "checking whether a program can dlopen itself... " >&6; } 13049 if test ${lt_cv_dlopen_self+y} 13050 then : 13051 printf %s "(cached) " >&6 13052 else case e in #( 13053 e) if test yes = "$cross_compiling"; then : 13054 lt_cv_dlopen_self=cross 13055 else 13056 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13057 lt_status=$lt_dlunknown 13058 cat > conftest.$ac_ext <<_LT_EOF 13059 #line $LINENO "configure" 13060 #include "confdefs.h" 13061 13062 #if HAVE_DLFCN_H 13063 #include <dlfcn.h> 13064 #endif 13065 13066 #include <stdio.h> 13067 13068 #ifdef RTLD_GLOBAL 13069 # define LT_DLGLOBAL RTLD_GLOBAL 13070 #else 13071 # ifdef DL_GLOBAL 13072 # define LT_DLGLOBAL DL_GLOBAL 13073 # else 13074 # define LT_DLGLOBAL 0 13075 # endif 13076 #endif 13077 13078 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13079 find out it does not work in some platform. */ 13080 #ifndef LT_DLLAZY_OR_NOW 13081 # ifdef RTLD_LAZY 13082 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13083 # else 13084 # ifdef DL_LAZY 13085 # define LT_DLLAZY_OR_NOW DL_LAZY 13086 # else 13087 # ifdef RTLD_NOW 13088 # define LT_DLLAZY_OR_NOW RTLD_NOW 13089 # else 13090 # ifdef DL_NOW 13091 # define LT_DLLAZY_OR_NOW DL_NOW 13092 # else 13093 # define LT_DLLAZY_OR_NOW 0 13094 # endif 13095 # endif 13096 # endif 13097 # endif 13098 #endif 13099 13100 /* When -fvisibility=hidden is used, assume the code has been annotated 13101 correspondingly for the symbols needed. */ 13102 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13103 int fnord () __attribute__((visibility("default"))); 13104 #endif 13105 13106 int fnord () { return 42; } 13107 int main () 13108 { 13109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13110 int status = $lt_dlunknown; 13111 13112 if (self) 13113 { 13114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13115 else 13116 { 13117 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13118 else puts (dlerror ()); 13119 } 13120 /* dlclose (self); */ 13121 } 13122 else 13123 puts (dlerror ()); 13124 13125 return status; 13126 } 13127 _LT_EOF 13128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13129 (eval $ac_link) 2>&5 13130 ac_status=$? 13131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13132 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13133 (./conftest; exit; ) >&5 2>/dev/null 13134 lt_status=$? 13135 case x$lt_status in 13136 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13137 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13138 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13139 esac 13140 else : 13141 # compilation failed 13142 lt_cv_dlopen_self=no 13143 fi 13144 fi 13145 rm -fr conftest* 13146 13147 ;; 13148 esac 13149 fi 13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13151 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13152 13153 if test yes = "$lt_cv_dlopen_self"; then 13154 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13156 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13157 if test ${lt_cv_dlopen_self_static+y} 13158 then : 13159 printf %s "(cached) " >&6 13160 else case e in #( 13161 e) if test yes = "$cross_compiling"; then : 13162 lt_cv_dlopen_self_static=cross 13163 else 13164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13165 lt_status=$lt_dlunknown 13166 cat > conftest.$ac_ext <<_LT_EOF 13167 #line $LINENO "configure" 13168 #include "confdefs.h" 13169 13170 #if HAVE_DLFCN_H 13171 #include <dlfcn.h> 13172 #endif 13173 13174 #include <stdio.h> 13175 13176 #ifdef RTLD_GLOBAL 13177 # define LT_DLGLOBAL RTLD_GLOBAL 13178 #else 13179 # ifdef DL_GLOBAL 13180 # define LT_DLGLOBAL DL_GLOBAL 13181 # else 13182 # define LT_DLGLOBAL 0 13183 # endif 13184 #endif 13185 13186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13187 find out it does not work in some platform. */ 13188 #ifndef LT_DLLAZY_OR_NOW 13189 # ifdef RTLD_LAZY 13190 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13191 # else 13192 # ifdef DL_LAZY 13193 # define LT_DLLAZY_OR_NOW DL_LAZY 13194 # else 13195 # ifdef RTLD_NOW 13196 # define LT_DLLAZY_OR_NOW RTLD_NOW 13197 # else 13198 # ifdef DL_NOW 13199 # define LT_DLLAZY_OR_NOW DL_NOW 13200 # else 13201 # define LT_DLLAZY_OR_NOW 0 13202 # endif 13203 # endif 13204 # endif 13205 # endif 13206 #endif 13207 13208 /* When -fvisibility=hidden is used, assume the code has been annotated 13209 correspondingly for the symbols needed. */ 13210 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13211 int fnord () __attribute__((visibility("default"))); 13212 #endif 13213 13214 int fnord () { return 42; } 13215 int main () 13216 { 13217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13218 int status = $lt_dlunknown; 13219 13220 if (self) 13221 { 13222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13223 else 13224 { 13225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13226 else puts (dlerror ()); 13227 } 13228 /* dlclose (self); */ 13229 } 13230 else 13231 puts (dlerror ()); 13232 13233 return status; 13234 } 13235 _LT_EOF 13236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13237 (eval $ac_link) 2>&5 13238 ac_status=$? 13239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13240 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13241 (./conftest; exit; ) >&5 2>/dev/null 13242 lt_status=$? 13243 case x$lt_status in 13244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13246 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13247 esac 13248 else : 13249 # compilation failed 13250 lt_cv_dlopen_self_static=no 13251 fi 13252 fi 13253 rm -fr conftest* 13254 13255 ;; 13256 esac 13257 fi 13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13259 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13260 fi 13261 13262 CPPFLAGS=$save_CPPFLAGS 13263 LDFLAGS=$save_LDFLAGS 13264 LIBS=$save_LIBS 13265 ;; 13266 esac 13267 13268 case $lt_cv_dlopen_self in 13269 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13270 *) enable_dlopen_self=unknown ;; 13271 esac 13272 13273 case $lt_cv_dlopen_self_static in 13274 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13275 *) enable_dlopen_self_static=unknown ;; 13276 esac 13277 fi 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 striplib= 13296 old_striplib= 13297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13298 printf %s "checking whether stripping libraries is possible... " >&6; } 13299 if test -z "$STRIP"; then 13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13301 printf "%s\n" "no" >&6; } 13302 else 13303 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13304 old_striplib="$STRIP --strip-debug" 13305 striplib="$STRIP --strip-unneeded" 13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13307 printf "%s\n" "yes" >&6; } 13308 else 13309 case $host_os in 13310 darwin*) 13311 # FIXME - insert some real tests, host_os isn't really good enough 13312 striplib="$STRIP -x" 13313 old_striplib="$STRIP -S" 13314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13315 printf "%s\n" "yes" >&6; } 13316 ;; 13317 freebsd*) 13318 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13319 old_striplib="$STRIP --strip-debug" 13320 striplib="$STRIP --strip-unneeded" 13321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13322 printf "%s\n" "yes" >&6; } 13323 else 13324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13325 printf "%s\n" "no" >&6; } 13326 fi 13327 ;; 13328 *) 13329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13330 printf "%s\n" "no" >&6; } 13331 ;; 13332 esac 13333 fi 13334 fi 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 # Report what library types will actually be built 13348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13349 printf %s "checking if libtool supports shared libraries... " >&6; } 13350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13351 printf "%s\n" "$can_build_shared" >&6; } 13352 13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13354 printf %s "checking whether to build shared libraries... " >&6; } 13355 test no = "$can_build_shared" && enable_shared=no 13356 13357 # On AIX, shared libraries and static libraries use the same namespace, and 13358 # are all built from PIC. 13359 case $host_os in 13360 aix3*) 13361 test yes = "$enable_shared" && enable_static=no 13362 if test -n "$RANLIB"; then 13363 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13364 postinstall_cmds='$RANLIB $lib' 13365 fi 13366 ;; 13367 13368 aix[4-9]*) 13369 if test ia64 != "$host_cpu"; then 13370 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13371 yes,aix,yes) ;; # shared object as lib.so file only 13372 yes,svr4,*) ;; # shared object as lib.so archive member only 13373 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13374 esac 13375 fi 13376 ;; 13377 esac 13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13379 printf "%s\n" "$enable_shared" >&6; } 13380 13381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13382 printf %s "checking whether to build static libraries... " >&6; } 13383 # Make sure either enable_shared or enable_static is yes. 13384 test yes = "$enable_shared" || enable_static=yes 13385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13386 printf "%s\n" "$enable_static" >&6; } 13387 13388 13389 13390 13391 fi 13392 ac_ext=c 13393 ac_cpp='$CPP $CPPFLAGS' 13394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13396 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13397 13398 CC=$lt_save_CC 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 ac_config_commands="$ac_config_commands libtool" 13415 13416 13417 13418 13419 # Only expand once: 13420 13421 13422 13423 # Require xorg-macros minimum of 1.10 for DocBook XML documentation 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 13436 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 13437 if test ${ac_cv_c_undeclared_builtin_options+y} 13438 then : 13439 printf %s "(cached) " >&6 13440 else case e in #( 13441 e) ac_save_CFLAGS=$CFLAGS 13442 ac_cv_c_undeclared_builtin_options='cannot detect' 13443 for ac_arg in '' -fno-builtin; do 13444 CFLAGS="$ac_save_CFLAGS $ac_arg" 13445 # This test program should *not* compile successfully. 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447 /* end confdefs.h. */ 13448 13449 int 13450 main (void) 13451 { 13452 (void) strchr; 13453 ; 13454 return 0; 13455 } 13456 _ACEOF 13457 if ac_fn_c_try_compile "$LINENO" 13458 then : 13459 13460 else case e in #( 13461 e) # This test program should compile successfully. 13462 # No library function is consistently available on 13463 # freestanding implementations, so test against a dummy 13464 # declaration. Include always-available headers on the 13465 # off chance that they somehow elicit warnings. 13466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13467 /* end confdefs.h. */ 13468 #include <float.h> 13469 #include <limits.h> 13470 #include <stdarg.h> 13471 #include <stddef.h> 13472 extern void ac_decl (int, char *); 13473 13474 int 13475 main (void) 13476 { 13477 (void) ac_decl (0, (char *) 0); 13478 (void) ac_decl; 13479 13480 ; 13481 return 0; 13482 } 13483 _ACEOF 13484 if ac_fn_c_try_compile "$LINENO" 13485 then : 13486 if test x"$ac_arg" = x 13487 then : 13488 ac_cv_c_undeclared_builtin_options='none needed' 13489 else case e in #( 13490 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 13491 esac 13492 fi 13493 break 13494 fi 13495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13496 esac 13497 fi 13498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13499 done 13500 CFLAGS=$ac_save_CFLAGS 13501 ;; 13502 esac 13503 fi 13504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 13505 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 13506 case $ac_cv_c_undeclared_builtin_options in #( 13507 'cannot detect') : 13508 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13509 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13510 as_fn_error $? "cannot make $CC report undeclared builtins 13511 See 'config.log' for more details" "$LINENO" 5; } ;; #( 13512 'none needed') : 13513 ac_c_undeclared_builtin_options='' ;; #( 13514 *) : 13515 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 13516 esac 13517 13518 13519 13520 13521 13522 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13523 if test "x$ac_cv_have_decl___clang__" = xyes 13524 then : 13525 CLANGCC="yes" 13526 else case e in #( 13527 e) CLANGCC="no" ;; 13528 esac 13529 fi 13530 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13531 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 13532 then : 13533 INTELCC="yes" 13534 else case e in #( 13535 e) INTELCC="no" ;; 13536 esac 13537 fi 13538 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 13539 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 13540 then : 13541 SUNCC="yes" 13542 else case e in #( 13543 e) SUNCC="no" ;; 13544 esac 13545 fi 13546 13547 13548 13549 13550 13551 13552 13553 13554 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13555 if test -n "$ac_tool_prefix"; then 13556 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13557 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13559 printf %s "checking for $ac_word... " >&6; } 13560 if test ${ac_cv_path_PKG_CONFIG+y} 13561 then : 13562 printf %s "(cached) " >&6 13563 else case e in #( 13564 e) case $PKG_CONFIG in 13565 [\\/]* | ?:[\\/]*) 13566 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13567 ;; 13568 *) 13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13570 for as_dir in $PATH 13571 do 13572 IFS=$as_save_IFS 13573 case $as_dir in #((( 13574 '') as_dir=./ ;; 13575 */) ;; 13576 *) as_dir=$as_dir/ ;; 13577 esac 13578 for ac_exec_ext in '' $ac_executable_extensions; do 13579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13580 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13582 break 2 13583 fi 13584 done 13585 done 13586 IFS=$as_save_IFS 13587 13588 ;; 13589 esac ;; 13590 esac 13591 fi 13592 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13593 if test -n "$PKG_CONFIG"; then 13594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13595 printf "%s\n" "$PKG_CONFIG" >&6; } 13596 else 13597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13598 printf "%s\n" "no" >&6; } 13599 fi 13600 13601 13602 fi 13603 if test -z "$ac_cv_path_PKG_CONFIG"; then 13604 ac_pt_PKG_CONFIG=$PKG_CONFIG 13605 # Extract the first word of "pkg-config", so it can be a program name with args. 13606 set dummy pkg-config; ac_word=$2 13607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13608 printf %s "checking for $ac_word... " >&6; } 13609 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 13610 then : 13611 printf %s "(cached) " >&6 13612 else case e in #( 13613 e) case $ac_pt_PKG_CONFIG in 13614 [\\/]* | ?:[\\/]*) 13615 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13616 ;; 13617 *) 13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13619 for as_dir in $PATH 13620 do 13621 IFS=$as_save_IFS 13622 case $as_dir in #((( 13623 '') as_dir=./ ;; 13624 */) ;; 13625 *) as_dir=$as_dir/ ;; 13626 esac 13627 for ac_exec_ext in '' $ac_executable_extensions; do 13628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 13629 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 13630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 13631 break 2 13632 fi 13633 done 13634 done 13635 IFS=$as_save_IFS 13636 13637 ;; 13638 esac ;; 13639 esac 13640 fi 13641 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13642 if test -n "$ac_pt_PKG_CONFIG"; then 13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13644 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 13645 else 13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13647 printf "%s\n" "no" >&6; } 13648 fi 13649 13650 if test "x$ac_pt_PKG_CONFIG" = x; then 13651 PKG_CONFIG="" 13652 else 13653 case $cross_compiling:$ac_tool_warned in 13654 yes:) 13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13656 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13657 ac_tool_warned=yes ;; 13658 esac 13659 PKG_CONFIG=$ac_pt_PKG_CONFIG 13660 fi 13661 else 13662 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13663 fi 13664 13665 fi 13666 if test -n "$PKG_CONFIG"; then 13667 _pkg_min_version=0.9.0 13668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13669 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13670 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13672 printf "%s\n" "yes" >&6; } 13673 else 13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13675 printf "%s\n" "no" >&6; } 13676 PKG_CONFIG="" 13677 fi 13678 fi 13679 13680 13681 13682 13683 13684 # Check whether --enable-selective-werror was given. 13685 if test ${enable_selective_werror+y} 13686 then : 13687 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13688 else case e in #( 13689 e) SELECTIVE_WERROR=yes ;; 13690 esac 13691 fi 13692 13693 13694 13695 13696 13697 # -v is too short to test reliably with XORG_TESTSET_CFLAG 13698 if test "x$SUNCC" = "xyes"; then 13699 BASE_CFLAGS="-v" 13700 else 13701 BASE_CFLAGS="" 13702 fi 13703 13704 # This chunk of warnings were those that existed in the legacy CWARNFLAGS 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 xorg_testset_save_CFLAGS="$CFLAGS" 13719 13720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13724 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13725 then : 13726 printf %s "(cached) " >&6 13727 else case e in #( 13728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13729 /* end confdefs.h. */ 13730 int i; 13731 _ACEOF 13732 if ac_fn_c_try_compile "$LINENO" 13733 then : 13734 xorg_cv_cc_flag_unknown_warning_option=yes 13735 else case e in #( 13736 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13737 esac 13738 fi 13739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13740 esac 13741 fi 13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13743 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13745 CFLAGS="$xorg_testset_save_CFLAGS" 13746 fi 13747 13748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13751 fi 13752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13754 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13755 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13756 then : 13757 printf %s "(cached) " >&6 13758 else case e in #( 13759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13760 /* end confdefs.h. */ 13761 int i; 13762 _ACEOF 13763 if ac_fn_c_try_compile "$LINENO" 13764 then : 13765 xorg_cv_cc_flag_unused_command_line_argument=yes 13766 else case e in #( 13767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13768 esac 13769 fi 13770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13771 esac 13772 fi 13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13774 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13776 CFLAGS="$xorg_testset_save_CFLAGS" 13777 fi 13778 13779 found="no" 13780 13781 if test $found = "no" ; then 13782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13784 fi 13785 13786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13788 fi 13789 13790 CFLAGS="$CFLAGS -Wall" 13791 13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13793 printf %s "checking if $CC supports -Wall... " >&6; } 13794 cacheid=xorg_cv_cc_flag__Wall 13795 if eval test \${$cacheid+y} 13796 then : 13797 printf %s "(cached) " >&6 13798 else case e in #( 13799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13800 /* end confdefs.h. */ 13801 int i; 13802 int 13803 main (void) 13804 { 13805 13806 ; 13807 return 0; 13808 } 13809 _ACEOF 13810 if ac_fn_c_try_link "$LINENO" 13811 then : 13812 eval $cacheid=yes 13813 else case e in #( 13814 e) eval $cacheid=no ;; 13815 esac 13816 fi 13817 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13818 conftest$ac_exeext conftest.$ac_ext ;; 13819 esac 13820 fi 13821 13822 13823 CFLAGS="$xorg_testset_save_CFLAGS" 13824 13825 eval supported=\$$cacheid 13826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13827 printf "%s\n" "$supported" >&6; } 13828 if test "$supported" = "yes" ; then 13829 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13830 found="yes" 13831 fi 13832 fi 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 xorg_testset_save_CFLAGS="$CFLAGS" 13849 13850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13853 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13854 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13855 then : 13856 printf %s "(cached) " >&6 13857 else case e in #( 13858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13859 /* end confdefs.h. */ 13860 int i; 13861 _ACEOF 13862 if ac_fn_c_try_compile "$LINENO" 13863 then : 13864 xorg_cv_cc_flag_unknown_warning_option=yes 13865 else case e in #( 13866 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13867 esac 13868 fi 13869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13870 esac 13871 fi 13872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13873 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13875 CFLAGS="$xorg_testset_save_CFLAGS" 13876 fi 13877 13878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13881 fi 13882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 13886 then : 13887 printf %s "(cached) " >&6 13888 else case e in #( 13889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13890 /* end confdefs.h. */ 13891 int i; 13892 _ACEOF 13893 if ac_fn_c_try_compile "$LINENO" 13894 then : 13895 xorg_cv_cc_flag_unused_command_line_argument=yes 13896 else case e in #( 13897 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 13898 esac 13899 fi 13900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13901 esac 13902 fi 13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13904 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13906 CFLAGS="$xorg_testset_save_CFLAGS" 13907 fi 13908 13909 found="no" 13910 13911 if test $found = "no" ; then 13912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13914 fi 13915 13916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13918 fi 13919 13920 CFLAGS="$CFLAGS -Wpointer-arith" 13921 13922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13923 printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 13924 cacheid=xorg_cv_cc_flag__Wpointer_arith 13925 if eval test \${$cacheid+y} 13926 then : 13927 printf %s "(cached) " >&6 13928 else case e in #( 13929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13930 /* end confdefs.h. */ 13931 int i; 13932 int 13933 main (void) 13934 { 13935 13936 ; 13937 return 0; 13938 } 13939 _ACEOF 13940 if ac_fn_c_try_link "$LINENO" 13941 then : 13942 eval $cacheid=yes 13943 else case e in #( 13944 e) eval $cacheid=no ;; 13945 esac 13946 fi 13947 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13948 conftest$ac_exeext conftest.$ac_ext ;; 13949 esac 13950 fi 13951 13952 13953 CFLAGS="$xorg_testset_save_CFLAGS" 13954 13955 eval supported=\$$cacheid 13956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13957 printf "%s\n" "$supported" >&6; } 13958 if test "$supported" = "yes" ; then 13959 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13960 found="yes" 13961 fi 13962 fi 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 xorg_testset_save_CFLAGS="$CFLAGS" 13979 13980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13984 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 13985 then : 13986 printf %s "(cached) " >&6 13987 else case e in #( 13988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13989 /* end confdefs.h. */ 13990 int i; 13991 _ACEOF 13992 if ac_fn_c_try_compile "$LINENO" 13993 then : 13994 xorg_cv_cc_flag_unknown_warning_option=yes 13995 else case e in #( 13996 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 13997 esac 13998 fi 13999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14000 esac 14001 fi 14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14003 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14005 CFLAGS="$xorg_testset_save_CFLAGS" 14006 fi 14007 14008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14011 fi 14012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14014 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14015 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14016 then : 14017 printf %s "(cached) " >&6 14018 else case e in #( 14019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14020 /* end confdefs.h. */ 14021 int i; 14022 _ACEOF 14023 if ac_fn_c_try_compile "$LINENO" 14024 then : 14025 xorg_cv_cc_flag_unused_command_line_argument=yes 14026 else case e in #( 14027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14028 esac 14029 fi 14030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14031 esac 14032 fi 14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14036 CFLAGS="$xorg_testset_save_CFLAGS" 14037 fi 14038 14039 found="no" 14040 14041 if test $found = "no" ; then 14042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14044 fi 14045 14046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14048 fi 14049 14050 CFLAGS="$CFLAGS -Wmissing-declarations" 14051 14052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 14053 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 14054 cacheid=xorg_cv_cc_flag__Wmissing_declarations 14055 if eval test \${$cacheid+y} 14056 then : 14057 printf %s "(cached) " >&6 14058 else case e in #( 14059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14060 /* end confdefs.h. */ 14061 int i; 14062 int 14063 main (void) 14064 { 14065 14066 ; 14067 return 0; 14068 } 14069 _ACEOF 14070 if ac_fn_c_try_link "$LINENO" 14071 then : 14072 eval $cacheid=yes 14073 else case e in #( 14074 e) eval $cacheid=no ;; 14075 esac 14076 fi 14077 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14078 conftest$ac_exeext conftest.$ac_ext ;; 14079 esac 14080 fi 14081 14082 14083 CFLAGS="$xorg_testset_save_CFLAGS" 14084 14085 eval supported=\$$cacheid 14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14087 printf "%s\n" "$supported" >&6; } 14088 if test "$supported" = "yes" ; then 14089 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 14090 found="yes" 14091 fi 14092 fi 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 xorg_testset_save_CFLAGS="$CFLAGS" 14109 14110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14114 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14115 then : 14116 printf %s "(cached) " >&6 14117 else case e in #( 14118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14119 /* end confdefs.h. */ 14120 int i; 14121 _ACEOF 14122 if ac_fn_c_try_compile "$LINENO" 14123 then : 14124 xorg_cv_cc_flag_unknown_warning_option=yes 14125 else case e in #( 14126 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14127 esac 14128 fi 14129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14130 esac 14131 fi 14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14133 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14135 CFLAGS="$xorg_testset_save_CFLAGS" 14136 fi 14137 14138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14141 fi 14142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14146 then : 14147 printf %s "(cached) " >&6 14148 else case e in #( 14149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14150 /* end confdefs.h. */ 14151 int i; 14152 _ACEOF 14153 if ac_fn_c_try_compile "$LINENO" 14154 then : 14155 xorg_cv_cc_flag_unused_command_line_argument=yes 14156 else case e in #( 14157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14158 esac 14159 fi 14160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14161 esac 14162 fi 14163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14164 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14166 CFLAGS="$xorg_testset_save_CFLAGS" 14167 fi 14168 14169 found="no" 14170 14171 if test $found = "no" ; then 14172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14174 fi 14175 14176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14178 fi 14179 14180 CFLAGS="$CFLAGS -Wformat=2" 14181 14182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 14183 printf %s "checking if $CC supports -Wformat=2... " >&6; } 14184 cacheid=xorg_cv_cc_flag__Wformat_2 14185 if eval test \${$cacheid+y} 14186 then : 14187 printf %s "(cached) " >&6 14188 else case e in #( 14189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190 /* end confdefs.h. */ 14191 int i; 14192 int 14193 main (void) 14194 { 14195 14196 ; 14197 return 0; 14198 } 14199 _ACEOF 14200 if ac_fn_c_try_link "$LINENO" 14201 then : 14202 eval $cacheid=yes 14203 else case e in #( 14204 e) eval $cacheid=no ;; 14205 esac 14206 fi 14207 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14208 conftest$ac_exeext conftest.$ac_ext ;; 14209 esac 14210 fi 14211 14212 14213 CFLAGS="$xorg_testset_save_CFLAGS" 14214 14215 eval supported=\$$cacheid 14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14217 printf "%s\n" "$supported" >&6; } 14218 if test "$supported" = "yes" ; then 14219 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 14220 found="yes" 14221 fi 14222 fi 14223 14224 if test $found = "no" ; then 14225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14227 fi 14228 14229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14231 fi 14232 14233 CFLAGS="$CFLAGS -Wformat" 14234 14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 14236 printf %s "checking if $CC supports -Wformat... " >&6; } 14237 cacheid=xorg_cv_cc_flag__Wformat 14238 if eval test \${$cacheid+y} 14239 then : 14240 printf %s "(cached) " >&6 14241 else case e in #( 14242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14243 /* end confdefs.h. */ 14244 int i; 14245 int 14246 main (void) 14247 { 14248 14249 ; 14250 return 0; 14251 } 14252 _ACEOF 14253 if ac_fn_c_try_link "$LINENO" 14254 then : 14255 eval $cacheid=yes 14256 else case e in #( 14257 e) eval $cacheid=no ;; 14258 esac 14259 fi 14260 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14261 conftest$ac_exeext conftest.$ac_ext ;; 14262 esac 14263 fi 14264 14265 14266 CFLAGS="$xorg_testset_save_CFLAGS" 14267 14268 eval supported=\$$cacheid 14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14270 printf "%s\n" "$supported" >&6; } 14271 if test "$supported" = "yes" ; then 14272 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 14273 found="yes" 14274 fi 14275 fi 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 xorg_testset_save_CFLAGS="$CFLAGS" 14294 14295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14298 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14299 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14300 then : 14301 printf %s "(cached) " >&6 14302 else case e in #( 14303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14304 /* end confdefs.h. */ 14305 int i; 14306 _ACEOF 14307 if ac_fn_c_try_compile "$LINENO" 14308 then : 14309 xorg_cv_cc_flag_unknown_warning_option=yes 14310 else case e in #( 14311 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14312 esac 14313 fi 14314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14315 esac 14316 fi 14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14318 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14320 CFLAGS="$xorg_testset_save_CFLAGS" 14321 fi 14322 14323 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14326 fi 14327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14329 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14330 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14331 then : 14332 printf %s "(cached) " >&6 14333 else case e in #( 14334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14335 /* end confdefs.h. */ 14336 int i; 14337 _ACEOF 14338 if ac_fn_c_try_compile "$LINENO" 14339 then : 14340 xorg_cv_cc_flag_unused_command_line_argument=yes 14341 else case e in #( 14342 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14343 esac 14344 fi 14345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14346 esac 14347 fi 14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14349 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14351 CFLAGS="$xorg_testset_save_CFLAGS" 14352 fi 14353 14354 found="no" 14355 14356 if test $found = "no" ; then 14357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14359 fi 14360 14361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14363 fi 14364 14365 CFLAGS="$CFLAGS -Wstrict-prototypes" 14366 14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 14368 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 14369 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 14370 if eval test \${$cacheid+y} 14371 then : 14372 printf %s "(cached) " >&6 14373 else case e in #( 14374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14375 /* end confdefs.h. */ 14376 int i; 14377 int 14378 main (void) 14379 { 14380 14381 ; 14382 return 0; 14383 } 14384 _ACEOF 14385 if ac_fn_c_try_link "$LINENO" 14386 then : 14387 eval $cacheid=yes 14388 else case e in #( 14389 e) eval $cacheid=no ;; 14390 esac 14391 fi 14392 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14393 conftest$ac_exeext conftest.$ac_ext ;; 14394 esac 14395 fi 14396 14397 14398 CFLAGS="$xorg_testset_save_CFLAGS" 14399 14400 eval supported=\$$cacheid 14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14402 printf "%s\n" "$supported" >&6; } 14403 if test "$supported" = "yes" ; then 14404 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 14405 found="yes" 14406 fi 14407 fi 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 xorg_testset_save_CFLAGS="$CFLAGS" 14424 14425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14428 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14429 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14430 then : 14431 printf %s "(cached) " >&6 14432 else case e in #( 14433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14434 /* end confdefs.h. */ 14435 int i; 14436 _ACEOF 14437 if ac_fn_c_try_compile "$LINENO" 14438 then : 14439 xorg_cv_cc_flag_unknown_warning_option=yes 14440 else case e in #( 14441 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14442 esac 14443 fi 14444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14445 esac 14446 fi 14447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14448 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14450 CFLAGS="$xorg_testset_save_CFLAGS" 14451 fi 14452 14453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14456 fi 14457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14459 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14460 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14461 then : 14462 printf %s "(cached) " >&6 14463 else case e in #( 14464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14465 /* end confdefs.h. */ 14466 int i; 14467 _ACEOF 14468 if ac_fn_c_try_compile "$LINENO" 14469 then : 14470 xorg_cv_cc_flag_unused_command_line_argument=yes 14471 else case e in #( 14472 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14473 esac 14474 fi 14475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14476 esac 14477 fi 14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14479 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14481 CFLAGS="$xorg_testset_save_CFLAGS" 14482 fi 14483 14484 found="no" 14485 14486 if test $found = "no" ; then 14487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14489 fi 14490 14491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14493 fi 14494 14495 CFLAGS="$CFLAGS -Wmissing-prototypes" 14496 14497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 14498 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 14499 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 14500 if eval test \${$cacheid+y} 14501 then : 14502 printf %s "(cached) " >&6 14503 else case e in #( 14504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14505 /* end confdefs.h. */ 14506 int i; 14507 int 14508 main (void) 14509 { 14510 14511 ; 14512 return 0; 14513 } 14514 _ACEOF 14515 if ac_fn_c_try_link "$LINENO" 14516 then : 14517 eval $cacheid=yes 14518 else case e in #( 14519 e) eval $cacheid=no ;; 14520 esac 14521 fi 14522 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14523 conftest$ac_exeext conftest.$ac_ext ;; 14524 esac 14525 fi 14526 14527 14528 CFLAGS="$xorg_testset_save_CFLAGS" 14529 14530 eval supported=\$$cacheid 14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14532 printf "%s\n" "$supported" >&6; } 14533 if test "$supported" = "yes" ; then 14534 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14535 found="yes" 14536 fi 14537 fi 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 xorg_testset_save_CFLAGS="$CFLAGS" 14554 14555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14559 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14560 then : 14561 printf %s "(cached) " >&6 14562 else case e in #( 14563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14564 /* end confdefs.h. */ 14565 int i; 14566 _ACEOF 14567 if ac_fn_c_try_compile "$LINENO" 14568 then : 14569 xorg_cv_cc_flag_unknown_warning_option=yes 14570 else case e in #( 14571 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14572 esac 14573 fi 14574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14575 esac 14576 fi 14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14578 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14580 CFLAGS="$xorg_testset_save_CFLAGS" 14581 fi 14582 14583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14586 fi 14587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14589 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14590 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14591 then : 14592 printf %s "(cached) " >&6 14593 else case e in #( 14594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14595 /* end confdefs.h. */ 14596 int i; 14597 _ACEOF 14598 if ac_fn_c_try_compile "$LINENO" 14599 then : 14600 xorg_cv_cc_flag_unused_command_line_argument=yes 14601 else case e in #( 14602 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14603 esac 14604 fi 14605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14606 esac 14607 fi 14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14609 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14611 CFLAGS="$xorg_testset_save_CFLAGS" 14612 fi 14613 14614 found="no" 14615 14616 if test $found = "no" ; then 14617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14619 fi 14620 14621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14623 fi 14624 14625 CFLAGS="$CFLAGS -Wnested-externs" 14626 14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14628 printf %s "checking if $CC supports -Wnested-externs... " >&6; } 14629 cacheid=xorg_cv_cc_flag__Wnested_externs 14630 if eval test \${$cacheid+y} 14631 then : 14632 printf %s "(cached) " >&6 14633 else case e in #( 14634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14635 /* end confdefs.h. */ 14636 int i; 14637 int 14638 main (void) 14639 { 14640 14641 ; 14642 return 0; 14643 } 14644 _ACEOF 14645 if ac_fn_c_try_link "$LINENO" 14646 then : 14647 eval $cacheid=yes 14648 else case e in #( 14649 e) eval $cacheid=no ;; 14650 esac 14651 fi 14652 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14653 conftest$ac_exeext conftest.$ac_ext ;; 14654 esac 14655 fi 14656 14657 14658 CFLAGS="$xorg_testset_save_CFLAGS" 14659 14660 eval supported=\$$cacheid 14661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14662 printf "%s\n" "$supported" >&6; } 14663 if test "$supported" = "yes" ; then 14664 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14665 found="yes" 14666 fi 14667 fi 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 xorg_testset_save_CFLAGS="$CFLAGS" 14684 14685 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14688 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14689 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14690 then : 14691 printf %s "(cached) " >&6 14692 else case e in #( 14693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14694 /* end confdefs.h. */ 14695 int i; 14696 _ACEOF 14697 if ac_fn_c_try_compile "$LINENO" 14698 then : 14699 xorg_cv_cc_flag_unknown_warning_option=yes 14700 else case e in #( 14701 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14702 esac 14703 fi 14704 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14705 esac 14706 fi 14707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14708 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14710 CFLAGS="$xorg_testset_save_CFLAGS" 14711 fi 14712 14713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14716 fi 14717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14719 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14720 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14721 then : 14722 printf %s "(cached) " >&6 14723 else case e in #( 14724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725 /* end confdefs.h. */ 14726 int i; 14727 _ACEOF 14728 if ac_fn_c_try_compile "$LINENO" 14729 then : 14730 xorg_cv_cc_flag_unused_command_line_argument=yes 14731 else case e in #( 14732 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14733 esac 14734 fi 14735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14736 esac 14737 fi 14738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14739 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14741 CFLAGS="$xorg_testset_save_CFLAGS" 14742 fi 14743 14744 found="no" 14745 14746 if test $found = "no" ; then 14747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14749 fi 14750 14751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14753 fi 14754 14755 CFLAGS="$CFLAGS -Wbad-function-cast" 14756 14757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14758 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 14759 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14760 if eval test \${$cacheid+y} 14761 then : 14762 printf %s "(cached) " >&6 14763 else case e in #( 14764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14765 /* end confdefs.h. */ 14766 int i; 14767 int 14768 main (void) 14769 { 14770 14771 ; 14772 return 0; 14773 } 14774 _ACEOF 14775 if ac_fn_c_try_link "$LINENO" 14776 then : 14777 eval $cacheid=yes 14778 else case e in #( 14779 e) eval $cacheid=no ;; 14780 esac 14781 fi 14782 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14783 conftest$ac_exeext conftest.$ac_ext ;; 14784 esac 14785 fi 14786 14787 14788 CFLAGS="$xorg_testset_save_CFLAGS" 14789 14790 eval supported=\$$cacheid 14791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14792 printf "%s\n" "$supported" >&6; } 14793 if test "$supported" = "yes" ; then 14794 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14795 found="yes" 14796 fi 14797 fi 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 xorg_testset_save_CFLAGS="$CFLAGS" 14814 14815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14818 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14819 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 14820 then : 14821 printf %s "(cached) " >&6 14822 else case e in #( 14823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14824 /* end confdefs.h. */ 14825 int i; 14826 _ACEOF 14827 if ac_fn_c_try_compile "$LINENO" 14828 then : 14829 xorg_cv_cc_flag_unknown_warning_option=yes 14830 else case e in #( 14831 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 14832 esac 14833 fi 14834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14835 esac 14836 fi 14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14838 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14840 CFLAGS="$xorg_testset_save_CFLAGS" 14841 fi 14842 14843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14846 fi 14847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14849 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14850 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 14851 then : 14852 printf %s "(cached) " >&6 14853 else case e in #( 14854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855 /* end confdefs.h. */ 14856 int i; 14857 _ACEOF 14858 if ac_fn_c_try_compile "$LINENO" 14859 then : 14860 xorg_cv_cc_flag_unused_command_line_argument=yes 14861 else case e in #( 14862 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 14863 esac 14864 fi 14865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14866 esac 14867 fi 14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14869 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14871 CFLAGS="$xorg_testset_save_CFLAGS" 14872 fi 14873 14874 found="no" 14875 14876 if test $found = "no" ; then 14877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14879 fi 14880 14881 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14883 fi 14884 14885 CFLAGS="$CFLAGS -Wold-style-definition" 14886 14887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14888 printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 14889 cacheid=xorg_cv_cc_flag__Wold_style_definition 14890 if eval test \${$cacheid+y} 14891 then : 14892 printf %s "(cached) " >&6 14893 else case e in #( 14894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14895 /* end confdefs.h. */ 14896 int i; 14897 int 14898 main (void) 14899 { 14900 14901 ; 14902 return 0; 14903 } 14904 _ACEOF 14905 if ac_fn_c_try_link "$LINENO" 14906 then : 14907 eval $cacheid=yes 14908 else case e in #( 14909 e) eval $cacheid=no ;; 14910 esac 14911 fi 14912 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14913 conftest$ac_exeext conftest.$ac_ext ;; 14914 esac 14915 fi 14916 14917 14918 CFLAGS="$xorg_testset_save_CFLAGS" 14919 14920 eval supported=\$$cacheid 14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14922 printf "%s\n" "$supported" >&6; } 14923 if test "$supported" = "yes" ; then 14924 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14925 found="yes" 14926 fi 14927 fi 14928 14929 if test $found = "no" ; then 14930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14932 fi 14933 14934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14936 fi 14937 14938 CFLAGS="$CFLAGS -fd" 14939 14940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14941 printf %s "checking if $CC supports -fd... " >&6; } 14942 cacheid=xorg_cv_cc_flag__fd 14943 if eval test \${$cacheid+y} 14944 then : 14945 printf %s "(cached) " >&6 14946 else case e in #( 14947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14948 /* end confdefs.h. */ 14949 int i; 14950 int 14951 main (void) 14952 { 14953 14954 ; 14955 return 0; 14956 } 14957 _ACEOF 14958 if ac_fn_c_try_link "$LINENO" 14959 then : 14960 eval $cacheid=yes 14961 else case e in #( 14962 e) eval $cacheid=no ;; 14963 esac 14964 fi 14965 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14966 conftest$ac_exeext conftest.$ac_ext ;; 14967 esac 14968 fi 14969 14970 14971 CFLAGS="$xorg_testset_save_CFLAGS" 14972 14973 eval supported=\$$cacheid 14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14975 printf "%s\n" "$supported" >&6; } 14976 if test "$supported" = "yes" ; then 14977 BASE_CFLAGS="$BASE_CFLAGS -fd" 14978 found="yes" 14979 fi 14980 fi 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 xorg_testset_save_CFLAGS="$CFLAGS" 14997 14998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15001 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15002 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15003 then : 15004 printf %s "(cached) " >&6 15005 else case e in #( 15006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15007 /* end confdefs.h. */ 15008 int i; 15009 _ACEOF 15010 if ac_fn_c_try_compile "$LINENO" 15011 then : 15012 xorg_cv_cc_flag_unknown_warning_option=yes 15013 else case e in #( 15014 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15015 esac 15016 fi 15017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15018 esac 15019 fi 15020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15021 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15023 CFLAGS="$xorg_testset_save_CFLAGS" 15024 fi 15025 15026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15029 fi 15030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15032 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15033 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15034 then : 15035 printf %s "(cached) " >&6 15036 else case e in #( 15037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15038 /* end confdefs.h. */ 15039 int i; 15040 _ACEOF 15041 if ac_fn_c_try_compile "$LINENO" 15042 then : 15043 xorg_cv_cc_flag_unused_command_line_argument=yes 15044 else case e in #( 15045 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15046 esac 15047 fi 15048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15049 esac 15050 fi 15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15052 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15054 CFLAGS="$xorg_testset_save_CFLAGS" 15055 fi 15056 15057 found="no" 15058 15059 if test $found = "no" ; then 15060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15062 fi 15063 15064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15066 fi 15067 15068 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 15069 15070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 15071 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 15072 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 15073 if eval test \${$cacheid+y} 15074 then : 15075 printf %s "(cached) " >&6 15076 else case e in #( 15077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15078 /* end confdefs.h. */ 15079 int i; 15080 int 15081 main (void) 15082 { 15083 15084 ; 15085 return 0; 15086 } 15087 _ACEOF 15088 if ac_fn_c_try_link "$LINENO" 15089 then : 15090 eval $cacheid=yes 15091 else case e in #( 15092 e) eval $cacheid=no ;; 15093 esac 15094 fi 15095 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15096 conftest$ac_exeext conftest.$ac_ext ;; 15097 esac 15098 fi 15099 15100 15101 CFLAGS="$xorg_testset_save_CFLAGS" 15102 15103 eval supported=\$$cacheid 15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15105 printf "%s\n" "$supported" >&6; } 15106 if test "$supported" = "yes" ; then 15107 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 15108 found="yes" 15109 fi 15110 fi 15111 15112 15113 15114 15115 15116 # This chunk adds additional warnings that could catch undesired effects. 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 xorg_testset_save_CFLAGS="$CFLAGS" 15131 15132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15136 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15137 then : 15138 printf %s "(cached) " >&6 15139 else case e in #( 15140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141 /* end confdefs.h. */ 15142 int i; 15143 _ACEOF 15144 if ac_fn_c_try_compile "$LINENO" 15145 then : 15146 xorg_cv_cc_flag_unknown_warning_option=yes 15147 else case e in #( 15148 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15149 esac 15150 fi 15151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15152 esac 15153 fi 15154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15155 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15157 CFLAGS="$xorg_testset_save_CFLAGS" 15158 fi 15159 15160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15163 fi 15164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15166 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15167 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15168 then : 15169 printf %s "(cached) " >&6 15170 else case e in #( 15171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15172 /* end confdefs.h. */ 15173 int i; 15174 _ACEOF 15175 if ac_fn_c_try_compile "$LINENO" 15176 then : 15177 xorg_cv_cc_flag_unused_command_line_argument=yes 15178 else case e in #( 15179 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15180 esac 15181 fi 15182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15183 esac 15184 fi 15185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15188 CFLAGS="$xorg_testset_save_CFLAGS" 15189 fi 15190 15191 found="no" 15192 15193 if test $found = "no" ; then 15194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15196 fi 15197 15198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15200 fi 15201 15202 CFLAGS="$CFLAGS -Wunused" 15203 15204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 15205 printf %s "checking if $CC supports -Wunused... " >&6; } 15206 cacheid=xorg_cv_cc_flag__Wunused 15207 if eval test \${$cacheid+y} 15208 then : 15209 printf %s "(cached) " >&6 15210 else case e in #( 15211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15212 /* end confdefs.h. */ 15213 int i; 15214 int 15215 main (void) 15216 { 15217 15218 ; 15219 return 0; 15220 } 15221 _ACEOF 15222 if ac_fn_c_try_link "$LINENO" 15223 then : 15224 eval $cacheid=yes 15225 else case e in #( 15226 e) eval $cacheid=no ;; 15227 esac 15228 fi 15229 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15230 conftest$ac_exeext conftest.$ac_ext ;; 15231 esac 15232 fi 15233 15234 15235 CFLAGS="$xorg_testset_save_CFLAGS" 15236 15237 eval supported=\$$cacheid 15238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15239 printf "%s\n" "$supported" >&6; } 15240 if test "$supported" = "yes" ; then 15241 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 15242 found="yes" 15243 fi 15244 fi 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 xorg_testset_save_CFLAGS="$CFLAGS" 15261 15262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15265 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15266 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15267 then : 15268 printf %s "(cached) " >&6 15269 else case e in #( 15270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15271 /* end confdefs.h. */ 15272 int i; 15273 _ACEOF 15274 if ac_fn_c_try_compile "$LINENO" 15275 then : 15276 xorg_cv_cc_flag_unknown_warning_option=yes 15277 else case e in #( 15278 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15279 esac 15280 fi 15281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15282 esac 15283 fi 15284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15285 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15287 CFLAGS="$xorg_testset_save_CFLAGS" 15288 fi 15289 15290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15293 fi 15294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15296 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15297 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15298 then : 15299 printf %s "(cached) " >&6 15300 else case e in #( 15301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15302 /* end confdefs.h. */ 15303 int i; 15304 _ACEOF 15305 if ac_fn_c_try_compile "$LINENO" 15306 then : 15307 xorg_cv_cc_flag_unused_command_line_argument=yes 15308 else case e in #( 15309 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15310 esac 15311 fi 15312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15313 esac 15314 fi 15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15316 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15318 CFLAGS="$xorg_testset_save_CFLAGS" 15319 fi 15320 15321 found="no" 15322 15323 if test $found = "no" ; then 15324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15326 fi 15327 15328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15330 fi 15331 15332 CFLAGS="$CFLAGS -Wuninitialized" 15333 15334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 15335 printf %s "checking if $CC supports -Wuninitialized... " >&6; } 15336 cacheid=xorg_cv_cc_flag__Wuninitialized 15337 if eval test \${$cacheid+y} 15338 then : 15339 printf %s "(cached) " >&6 15340 else case e in #( 15341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15342 /* end confdefs.h. */ 15343 int i; 15344 int 15345 main (void) 15346 { 15347 15348 ; 15349 return 0; 15350 } 15351 _ACEOF 15352 if ac_fn_c_try_link "$LINENO" 15353 then : 15354 eval $cacheid=yes 15355 else case e in #( 15356 e) eval $cacheid=no ;; 15357 esac 15358 fi 15359 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15360 conftest$ac_exeext conftest.$ac_ext ;; 15361 esac 15362 fi 15363 15364 15365 CFLAGS="$xorg_testset_save_CFLAGS" 15366 15367 eval supported=\$$cacheid 15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15369 printf "%s\n" "$supported" >&6; } 15370 if test "$supported" = "yes" ; then 15371 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 15372 found="yes" 15373 fi 15374 fi 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 xorg_testset_save_CFLAGS="$CFLAGS" 15391 15392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15395 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15396 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15397 then : 15398 printf %s "(cached) " >&6 15399 else case e in #( 15400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15401 /* end confdefs.h. */ 15402 int i; 15403 _ACEOF 15404 if ac_fn_c_try_compile "$LINENO" 15405 then : 15406 xorg_cv_cc_flag_unknown_warning_option=yes 15407 else case e in #( 15408 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15409 esac 15410 fi 15411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15412 esac 15413 fi 15414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15415 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15417 CFLAGS="$xorg_testset_save_CFLAGS" 15418 fi 15419 15420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15423 fi 15424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15426 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15427 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15428 then : 15429 printf %s "(cached) " >&6 15430 else case e in #( 15431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15432 /* end confdefs.h. */ 15433 int i; 15434 _ACEOF 15435 if ac_fn_c_try_compile "$LINENO" 15436 then : 15437 xorg_cv_cc_flag_unused_command_line_argument=yes 15438 else case e in #( 15439 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15440 esac 15441 fi 15442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15443 esac 15444 fi 15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15448 CFLAGS="$xorg_testset_save_CFLAGS" 15449 fi 15450 15451 found="no" 15452 15453 if test $found = "no" ; then 15454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15455 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15456 fi 15457 15458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15460 fi 15461 15462 CFLAGS="$CFLAGS -Wshadow" 15463 15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 15465 printf %s "checking if $CC supports -Wshadow... " >&6; } 15466 cacheid=xorg_cv_cc_flag__Wshadow 15467 if eval test \${$cacheid+y} 15468 then : 15469 printf %s "(cached) " >&6 15470 else case e in #( 15471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15472 /* end confdefs.h. */ 15473 int i; 15474 int 15475 main (void) 15476 { 15477 15478 ; 15479 return 0; 15480 } 15481 _ACEOF 15482 if ac_fn_c_try_link "$LINENO" 15483 then : 15484 eval $cacheid=yes 15485 else case e in #( 15486 e) eval $cacheid=no ;; 15487 esac 15488 fi 15489 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15490 conftest$ac_exeext conftest.$ac_ext ;; 15491 esac 15492 fi 15493 15494 15495 CFLAGS="$xorg_testset_save_CFLAGS" 15496 15497 eval supported=\$$cacheid 15498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15499 printf "%s\n" "$supported" >&6; } 15500 if test "$supported" = "yes" ; then 15501 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 15502 found="yes" 15503 fi 15504 fi 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 xorg_testset_save_CFLAGS="$CFLAGS" 15521 15522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15525 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15526 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15527 then : 15528 printf %s "(cached) " >&6 15529 else case e in #( 15530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15531 /* end confdefs.h. */ 15532 int i; 15533 _ACEOF 15534 if ac_fn_c_try_compile "$LINENO" 15535 then : 15536 xorg_cv_cc_flag_unknown_warning_option=yes 15537 else case e in #( 15538 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15539 esac 15540 fi 15541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15542 esac 15543 fi 15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15545 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15547 CFLAGS="$xorg_testset_save_CFLAGS" 15548 fi 15549 15550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15553 fi 15554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15556 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15557 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15558 then : 15559 printf %s "(cached) " >&6 15560 else case e in #( 15561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15562 /* end confdefs.h. */ 15563 int i; 15564 _ACEOF 15565 if ac_fn_c_try_compile "$LINENO" 15566 then : 15567 xorg_cv_cc_flag_unused_command_line_argument=yes 15568 else case e in #( 15569 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15570 esac 15571 fi 15572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15573 esac 15574 fi 15575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15576 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15578 CFLAGS="$xorg_testset_save_CFLAGS" 15579 fi 15580 15581 found="no" 15582 15583 if test $found = "no" ; then 15584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15586 fi 15587 15588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15590 fi 15591 15592 CFLAGS="$CFLAGS -Wmissing-noreturn" 15593 15594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 15595 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 15596 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 15597 if eval test \${$cacheid+y} 15598 then : 15599 printf %s "(cached) " >&6 15600 else case e in #( 15601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15602 /* end confdefs.h. */ 15603 int i; 15604 int 15605 main (void) 15606 { 15607 15608 ; 15609 return 0; 15610 } 15611 _ACEOF 15612 if ac_fn_c_try_link "$LINENO" 15613 then : 15614 eval $cacheid=yes 15615 else case e in #( 15616 e) eval $cacheid=no ;; 15617 esac 15618 fi 15619 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15620 conftest$ac_exeext conftest.$ac_ext ;; 15621 esac 15622 fi 15623 15624 15625 CFLAGS="$xorg_testset_save_CFLAGS" 15626 15627 eval supported=\$$cacheid 15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15629 printf "%s\n" "$supported" >&6; } 15630 if test "$supported" = "yes" ; then 15631 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15632 found="yes" 15633 fi 15634 fi 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 xorg_testset_save_CFLAGS="$CFLAGS" 15651 15652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15655 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15656 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15657 then : 15658 printf %s "(cached) " >&6 15659 else case e in #( 15660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15661 /* end confdefs.h. */ 15662 int i; 15663 _ACEOF 15664 if ac_fn_c_try_compile "$LINENO" 15665 then : 15666 xorg_cv_cc_flag_unknown_warning_option=yes 15667 else case e in #( 15668 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15669 esac 15670 fi 15671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15672 esac 15673 fi 15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15675 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15677 CFLAGS="$xorg_testset_save_CFLAGS" 15678 fi 15679 15680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15683 fi 15684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15686 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15687 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15688 then : 15689 printf %s "(cached) " >&6 15690 else case e in #( 15691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15692 /* end confdefs.h. */ 15693 int i; 15694 _ACEOF 15695 if ac_fn_c_try_compile "$LINENO" 15696 then : 15697 xorg_cv_cc_flag_unused_command_line_argument=yes 15698 else case e in #( 15699 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15700 esac 15701 fi 15702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15703 esac 15704 fi 15705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15706 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15708 CFLAGS="$xorg_testset_save_CFLAGS" 15709 fi 15710 15711 found="no" 15712 15713 if test $found = "no" ; then 15714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15716 fi 15717 15718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15720 fi 15721 15722 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15723 15724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15725 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15726 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15727 if eval test \${$cacheid+y} 15728 then : 15729 printf %s "(cached) " >&6 15730 else case e in #( 15731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15732 /* end confdefs.h. */ 15733 int i; 15734 int 15735 main (void) 15736 { 15737 15738 ; 15739 return 0; 15740 } 15741 _ACEOF 15742 if ac_fn_c_try_link "$LINENO" 15743 then : 15744 eval $cacheid=yes 15745 else case e in #( 15746 e) eval $cacheid=no ;; 15747 esac 15748 fi 15749 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15750 conftest$ac_exeext conftest.$ac_ext ;; 15751 esac 15752 fi 15753 15754 15755 CFLAGS="$xorg_testset_save_CFLAGS" 15756 15757 eval supported=\$$cacheid 15758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15759 printf "%s\n" "$supported" >&6; } 15760 if test "$supported" = "yes" ; then 15761 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15762 found="yes" 15763 fi 15764 fi 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 xorg_testset_save_CFLAGS="$CFLAGS" 15781 15782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15785 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15786 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15787 then : 15788 printf %s "(cached) " >&6 15789 else case e in #( 15790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15791 /* end confdefs.h. */ 15792 int i; 15793 _ACEOF 15794 if ac_fn_c_try_compile "$LINENO" 15795 then : 15796 xorg_cv_cc_flag_unknown_warning_option=yes 15797 else case e in #( 15798 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15799 esac 15800 fi 15801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15802 esac 15803 fi 15804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15805 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15807 CFLAGS="$xorg_testset_save_CFLAGS" 15808 fi 15809 15810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15813 fi 15814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15816 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15817 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15818 then : 15819 printf %s "(cached) " >&6 15820 else case e in #( 15821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15822 /* end confdefs.h. */ 15823 int i; 15824 _ACEOF 15825 if ac_fn_c_try_compile "$LINENO" 15826 then : 15827 xorg_cv_cc_flag_unused_command_line_argument=yes 15828 else case e in #( 15829 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15830 esac 15831 fi 15832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15833 esac 15834 fi 15835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15836 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15838 CFLAGS="$xorg_testset_save_CFLAGS" 15839 fi 15840 15841 found="no" 15842 15843 if test $found = "no" ; then 15844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15846 fi 15847 15848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15850 fi 15851 15852 CFLAGS="$CFLAGS -Wredundant-decls" 15853 15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15855 printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 15856 cacheid=xorg_cv_cc_flag__Wredundant_decls 15857 if eval test \${$cacheid+y} 15858 then : 15859 printf %s "(cached) " >&6 15860 else case e in #( 15861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862 /* end confdefs.h. */ 15863 int i; 15864 int 15865 main (void) 15866 { 15867 15868 ; 15869 return 0; 15870 } 15871 _ACEOF 15872 if ac_fn_c_try_link "$LINENO" 15873 then : 15874 eval $cacheid=yes 15875 else case e in #( 15876 e) eval $cacheid=no ;; 15877 esac 15878 fi 15879 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15880 conftest$ac_exeext conftest.$ac_ext ;; 15881 esac 15882 fi 15883 15884 15885 CFLAGS="$xorg_testset_save_CFLAGS" 15886 15887 eval supported=\$$cacheid 15888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15889 printf "%s\n" "$supported" >&6; } 15890 if test "$supported" = "yes" ; then 15891 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15892 found="yes" 15893 fi 15894 fi 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 xorg_testset_save_CFLAGS="$CFLAGS" 15911 15912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15916 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 15917 then : 15918 printf %s "(cached) " >&6 15919 else case e in #( 15920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15921 /* end confdefs.h. */ 15922 int i; 15923 _ACEOF 15924 if ac_fn_c_try_compile "$LINENO" 15925 then : 15926 xorg_cv_cc_flag_unknown_warning_option=yes 15927 else case e in #( 15928 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 15929 esac 15930 fi 15931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15932 esac 15933 fi 15934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15935 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15937 CFLAGS="$xorg_testset_save_CFLAGS" 15938 fi 15939 15940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15943 fi 15944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15946 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15947 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 15948 then : 15949 printf %s "(cached) " >&6 15950 else case e in #( 15951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15952 /* end confdefs.h. */ 15953 int i; 15954 _ACEOF 15955 if ac_fn_c_try_compile "$LINENO" 15956 then : 15957 xorg_cv_cc_flag_unused_command_line_argument=yes 15958 else case e in #( 15959 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 15960 esac 15961 fi 15962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15963 esac 15964 fi 15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15966 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15968 CFLAGS="$xorg_testset_save_CFLAGS" 15969 fi 15970 15971 found="no" 15972 15973 if test $found = "no" ; then 15974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15976 fi 15977 15978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15980 fi 15981 15982 CFLAGS="$CFLAGS -Wlogical-op" 15983 15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15985 printf %s "checking if $CC supports -Wlogical-op... " >&6; } 15986 cacheid=xorg_cv_cc_flag__Wlogical_op 15987 if eval test \${$cacheid+y} 15988 then : 15989 printf %s "(cached) " >&6 15990 else case e in #( 15991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15992 /* end confdefs.h. */ 15993 int i; 15994 int 15995 main (void) 15996 { 15997 15998 ; 15999 return 0; 16000 } 16001 _ACEOF 16002 if ac_fn_c_try_link "$LINENO" 16003 then : 16004 eval $cacheid=yes 16005 else case e in #( 16006 e) eval $cacheid=no ;; 16007 esac 16008 fi 16009 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16010 conftest$ac_exeext conftest.$ac_ext ;; 16011 esac 16012 fi 16013 16014 16015 CFLAGS="$xorg_testset_save_CFLAGS" 16016 16017 eval supported=\$$cacheid 16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16019 printf "%s\n" "$supported" >&6; } 16020 if test "$supported" = "yes" ; then 16021 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 16022 found="yes" 16023 fi 16024 fi 16025 16026 16027 16028 # These are currently disabled because they are noisy. They will be enabled 16029 # in the future once the codebase is sufficiently modernized to silence 16030 # them. For now, I don't want them to drown out the other warnings. 16031 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 16032 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 16033 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 16034 16035 # Turn some warnings into errors, so we don't accidentally get successful builds 16036 # when there are problems that should be fixed. 16037 16038 if test "x$SELECTIVE_WERROR" = "xyes" ; then 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 xorg_testset_save_CFLAGS="$CFLAGS" 16053 16054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16057 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16058 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16059 then : 16060 printf %s "(cached) " >&6 16061 else case e in #( 16062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16063 /* end confdefs.h. */ 16064 int i; 16065 _ACEOF 16066 if ac_fn_c_try_compile "$LINENO" 16067 then : 16068 xorg_cv_cc_flag_unknown_warning_option=yes 16069 else case e in #( 16070 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16071 esac 16072 fi 16073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16074 esac 16075 fi 16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16077 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16079 CFLAGS="$xorg_testset_save_CFLAGS" 16080 fi 16081 16082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16085 fi 16086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16088 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16089 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16090 then : 16091 printf %s "(cached) " >&6 16092 else case e in #( 16093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094 /* end confdefs.h. */ 16095 int i; 16096 _ACEOF 16097 if ac_fn_c_try_compile "$LINENO" 16098 then : 16099 xorg_cv_cc_flag_unused_command_line_argument=yes 16100 else case e in #( 16101 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16102 esac 16103 fi 16104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16105 esac 16106 fi 16107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16108 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16110 CFLAGS="$xorg_testset_save_CFLAGS" 16111 fi 16112 16113 found="no" 16114 16115 if test $found = "no" ; then 16116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16118 fi 16119 16120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16122 fi 16123 16124 CFLAGS="$CFLAGS -Werror=implicit" 16125 16126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 16127 printf %s "checking if $CC supports -Werror=implicit... " >&6; } 16128 cacheid=xorg_cv_cc_flag__Werror_implicit 16129 if eval test \${$cacheid+y} 16130 then : 16131 printf %s "(cached) " >&6 16132 else case e in #( 16133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16134 /* end confdefs.h. */ 16135 int i; 16136 int 16137 main (void) 16138 { 16139 16140 ; 16141 return 0; 16142 } 16143 _ACEOF 16144 if ac_fn_c_try_link "$LINENO" 16145 then : 16146 eval $cacheid=yes 16147 else case e in #( 16148 e) eval $cacheid=no ;; 16149 esac 16150 fi 16151 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16152 conftest$ac_exeext conftest.$ac_ext ;; 16153 esac 16154 fi 16155 16156 16157 CFLAGS="$xorg_testset_save_CFLAGS" 16158 16159 eval supported=\$$cacheid 16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16161 printf "%s\n" "$supported" >&6; } 16162 if test "$supported" = "yes" ; then 16163 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 16164 found="yes" 16165 fi 16166 fi 16167 16168 if test $found = "no" ; then 16169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16171 fi 16172 16173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16175 fi 16176 16177 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16178 16179 { 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 16180 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 16181 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 16182 if eval test \${$cacheid+y} 16183 then : 16184 printf %s "(cached) " >&6 16185 else case e in #( 16186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16187 /* end confdefs.h. */ 16188 int i; 16189 int 16190 main (void) 16191 { 16192 16193 ; 16194 return 0; 16195 } 16196 _ACEOF 16197 if ac_fn_c_try_link "$LINENO" 16198 then : 16199 eval $cacheid=yes 16200 else case e in #( 16201 e) eval $cacheid=no ;; 16202 esac 16203 fi 16204 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16205 conftest$ac_exeext conftest.$ac_ext ;; 16206 esac 16207 fi 16208 16209 16210 CFLAGS="$xorg_testset_save_CFLAGS" 16211 16212 eval supported=\$$cacheid 16213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16214 printf "%s\n" "$supported" >&6; } 16215 if test "$supported" = "yes" ; then 16216 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 16217 found="yes" 16218 fi 16219 fi 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 xorg_testset_save_CFLAGS="$CFLAGS" 16236 16237 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16240 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16241 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16242 then : 16243 printf %s "(cached) " >&6 16244 else case e in #( 16245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16246 /* end confdefs.h. */ 16247 int i; 16248 _ACEOF 16249 if ac_fn_c_try_compile "$LINENO" 16250 then : 16251 xorg_cv_cc_flag_unknown_warning_option=yes 16252 else case e in #( 16253 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16254 esac 16255 fi 16256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16257 esac 16258 fi 16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16260 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16262 CFLAGS="$xorg_testset_save_CFLAGS" 16263 fi 16264 16265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16268 fi 16269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16271 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16272 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16273 then : 16274 printf %s "(cached) " >&6 16275 else case e in #( 16276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16277 /* end confdefs.h. */ 16278 int i; 16279 _ACEOF 16280 if ac_fn_c_try_compile "$LINENO" 16281 then : 16282 xorg_cv_cc_flag_unused_command_line_argument=yes 16283 else case e in #( 16284 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16285 esac 16286 fi 16287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16288 esac 16289 fi 16290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16291 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16293 CFLAGS="$xorg_testset_save_CFLAGS" 16294 fi 16295 16296 found="no" 16297 16298 if test $found = "no" ; then 16299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16301 fi 16302 16303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16305 fi 16306 16307 CFLAGS="$CFLAGS -Werror=nonnull" 16308 16309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 16310 printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 16311 cacheid=xorg_cv_cc_flag__Werror_nonnull 16312 if eval test \${$cacheid+y} 16313 then : 16314 printf %s "(cached) " >&6 16315 else case e in #( 16316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16317 /* end confdefs.h. */ 16318 int i; 16319 int 16320 main (void) 16321 { 16322 16323 ; 16324 return 0; 16325 } 16326 _ACEOF 16327 if ac_fn_c_try_link "$LINENO" 16328 then : 16329 eval $cacheid=yes 16330 else case e in #( 16331 e) eval $cacheid=no ;; 16332 esac 16333 fi 16334 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16335 conftest$ac_exeext conftest.$ac_ext ;; 16336 esac 16337 fi 16338 16339 16340 CFLAGS="$xorg_testset_save_CFLAGS" 16341 16342 eval supported=\$$cacheid 16343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16344 printf "%s\n" "$supported" >&6; } 16345 if test "$supported" = "yes" ; then 16346 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 16347 found="yes" 16348 fi 16349 fi 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 xorg_testset_save_CFLAGS="$CFLAGS" 16366 16367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16371 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16372 then : 16373 printf %s "(cached) " >&6 16374 else case e in #( 16375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16376 /* end confdefs.h. */ 16377 int i; 16378 _ACEOF 16379 if ac_fn_c_try_compile "$LINENO" 16380 then : 16381 xorg_cv_cc_flag_unknown_warning_option=yes 16382 else case e in #( 16383 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16384 esac 16385 fi 16386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16387 esac 16388 fi 16389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16390 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16392 CFLAGS="$xorg_testset_save_CFLAGS" 16393 fi 16394 16395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16398 fi 16399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16401 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16402 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16403 then : 16404 printf %s "(cached) " >&6 16405 else case e in #( 16406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16407 /* end confdefs.h. */ 16408 int i; 16409 _ACEOF 16410 if ac_fn_c_try_compile "$LINENO" 16411 then : 16412 xorg_cv_cc_flag_unused_command_line_argument=yes 16413 else case e in #( 16414 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16415 esac 16416 fi 16417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16418 esac 16419 fi 16420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16421 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16423 CFLAGS="$xorg_testset_save_CFLAGS" 16424 fi 16425 16426 found="no" 16427 16428 if test $found = "no" ; then 16429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16431 fi 16432 16433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16435 fi 16436 16437 CFLAGS="$CFLAGS -Werror=init-self" 16438 16439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 16440 printf %s "checking if $CC supports -Werror=init-self... " >&6; } 16441 cacheid=xorg_cv_cc_flag__Werror_init_self 16442 if eval test \${$cacheid+y} 16443 then : 16444 printf %s "(cached) " >&6 16445 else case e in #( 16446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16447 /* end confdefs.h. */ 16448 int i; 16449 int 16450 main (void) 16451 { 16452 16453 ; 16454 return 0; 16455 } 16456 _ACEOF 16457 if ac_fn_c_try_link "$LINENO" 16458 then : 16459 eval $cacheid=yes 16460 else case e in #( 16461 e) eval $cacheid=no ;; 16462 esac 16463 fi 16464 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16465 conftest$ac_exeext conftest.$ac_ext ;; 16466 esac 16467 fi 16468 16469 16470 CFLAGS="$xorg_testset_save_CFLAGS" 16471 16472 eval supported=\$$cacheid 16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16474 printf "%s\n" "$supported" >&6; } 16475 if test "$supported" = "yes" ; then 16476 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 16477 found="yes" 16478 fi 16479 fi 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 xorg_testset_save_CFLAGS="$CFLAGS" 16496 16497 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16500 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16501 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16502 then : 16503 printf %s "(cached) " >&6 16504 else case e in #( 16505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16506 /* end confdefs.h. */ 16507 int i; 16508 _ACEOF 16509 if ac_fn_c_try_compile "$LINENO" 16510 then : 16511 xorg_cv_cc_flag_unknown_warning_option=yes 16512 else case e in #( 16513 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16514 esac 16515 fi 16516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16517 esac 16518 fi 16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16520 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16522 CFLAGS="$xorg_testset_save_CFLAGS" 16523 fi 16524 16525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16528 fi 16529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16531 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16532 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16533 then : 16534 printf %s "(cached) " >&6 16535 else case e in #( 16536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16537 /* end confdefs.h. */ 16538 int i; 16539 _ACEOF 16540 if ac_fn_c_try_compile "$LINENO" 16541 then : 16542 xorg_cv_cc_flag_unused_command_line_argument=yes 16543 else case e in #( 16544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16545 esac 16546 fi 16547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16548 esac 16549 fi 16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16551 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16553 CFLAGS="$xorg_testset_save_CFLAGS" 16554 fi 16555 16556 found="no" 16557 16558 if test $found = "no" ; then 16559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16561 fi 16562 16563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16565 fi 16566 16567 CFLAGS="$CFLAGS -Werror=main" 16568 16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 16570 printf %s "checking if $CC supports -Werror=main... " >&6; } 16571 cacheid=xorg_cv_cc_flag__Werror_main 16572 if eval test \${$cacheid+y} 16573 then : 16574 printf %s "(cached) " >&6 16575 else case e in #( 16576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16577 /* end confdefs.h. */ 16578 int i; 16579 int 16580 main (void) 16581 { 16582 16583 ; 16584 return 0; 16585 } 16586 _ACEOF 16587 if ac_fn_c_try_link "$LINENO" 16588 then : 16589 eval $cacheid=yes 16590 else case e in #( 16591 e) eval $cacheid=no ;; 16592 esac 16593 fi 16594 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16595 conftest$ac_exeext conftest.$ac_ext ;; 16596 esac 16597 fi 16598 16599 16600 CFLAGS="$xorg_testset_save_CFLAGS" 16601 16602 eval supported=\$$cacheid 16603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16604 printf "%s\n" "$supported" >&6; } 16605 if test "$supported" = "yes" ; then 16606 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 16607 found="yes" 16608 fi 16609 fi 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 xorg_testset_save_CFLAGS="$CFLAGS" 16626 16627 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16630 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16631 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16632 then : 16633 printf %s "(cached) " >&6 16634 else case e in #( 16635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16636 /* end confdefs.h. */ 16637 int i; 16638 _ACEOF 16639 if ac_fn_c_try_compile "$LINENO" 16640 then : 16641 xorg_cv_cc_flag_unknown_warning_option=yes 16642 else case e in #( 16643 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16644 esac 16645 fi 16646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16647 esac 16648 fi 16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16650 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16652 CFLAGS="$xorg_testset_save_CFLAGS" 16653 fi 16654 16655 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16658 fi 16659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16661 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16662 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16663 then : 16664 printf %s "(cached) " >&6 16665 else case e in #( 16666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16667 /* end confdefs.h. */ 16668 int i; 16669 _ACEOF 16670 if ac_fn_c_try_compile "$LINENO" 16671 then : 16672 xorg_cv_cc_flag_unused_command_line_argument=yes 16673 else case e in #( 16674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16675 esac 16676 fi 16677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16678 esac 16679 fi 16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16681 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16683 CFLAGS="$xorg_testset_save_CFLAGS" 16684 fi 16685 16686 found="no" 16687 16688 if test $found = "no" ; then 16689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16691 fi 16692 16693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16695 fi 16696 16697 CFLAGS="$CFLAGS -Werror=missing-braces" 16698 16699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 16700 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 16701 cacheid=xorg_cv_cc_flag__Werror_missing_braces 16702 if eval test \${$cacheid+y} 16703 then : 16704 printf %s "(cached) " >&6 16705 else case e in #( 16706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16707 /* end confdefs.h. */ 16708 int i; 16709 int 16710 main (void) 16711 { 16712 16713 ; 16714 return 0; 16715 } 16716 _ACEOF 16717 if ac_fn_c_try_link "$LINENO" 16718 then : 16719 eval $cacheid=yes 16720 else case e in #( 16721 e) eval $cacheid=no ;; 16722 esac 16723 fi 16724 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16725 conftest$ac_exeext conftest.$ac_ext ;; 16726 esac 16727 fi 16728 16729 16730 CFLAGS="$xorg_testset_save_CFLAGS" 16731 16732 eval supported=\$$cacheid 16733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16734 printf "%s\n" "$supported" >&6; } 16735 if test "$supported" = "yes" ; then 16736 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16737 found="yes" 16738 fi 16739 fi 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 xorg_testset_save_CFLAGS="$CFLAGS" 16756 16757 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16760 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16761 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16762 then : 16763 printf %s "(cached) " >&6 16764 else case e in #( 16765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16766 /* end confdefs.h. */ 16767 int i; 16768 _ACEOF 16769 if ac_fn_c_try_compile "$LINENO" 16770 then : 16771 xorg_cv_cc_flag_unknown_warning_option=yes 16772 else case e in #( 16773 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16774 esac 16775 fi 16776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16777 esac 16778 fi 16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16782 CFLAGS="$xorg_testset_save_CFLAGS" 16783 fi 16784 16785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16788 fi 16789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16793 then : 16794 printf %s "(cached) " >&6 16795 else case e in #( 16796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16797 /* end confdefs.h. */ 16798 int i; 16799 _ACEOF 16800 if ac_fn_c_try_compile "$LINENO" 16801 then : 16802 xorg_cv_cc_flag_unused_command_line_argument=yes 16803 else case e in #( 16804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16805 esac 16806 fi 16807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16808 esac 16809 fi 16810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16811 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16813 CFLAGS="$xorg_testset_save_CFLAGS" 16814 fi 16815 16816 found="no" 16817 16818 if test $found = "no" ; then 16819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16821 fi 16822 16823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16825 fi 16826 16827 CFLAGS="$CFLAGS -Werror=sequence-point" 16828 16829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16830 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 16831 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16832 if eval test \${$cacheid+y} 16833 then : 16834 printf %s "(cached) " >&6 16835 else case e in #( 16836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16837 /* end confdefs.h. */ 16838 int i; 16839 int 16840 main (void) 16841 { 16842 16843 ; 16844 return 0; 16845 } 16846 _ACEOF 16847 if ac_fn_c_try_link "$LINENO" 16848 then : 16849 eval $cacheid=yes 16850 else case e in #( 16851 e) eval $cacheid=no ;; 16852 esac 16853 fi 16854 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16855 conftest$ac_exeext conftest.$ac_ext ;; 16856 esac 16857 fi 16858 16859 16860 CFLAGS="$xorg_testset_save_CFLAGS" 16861 16862 eval supported=\$$cacheid 16863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16864 printf "%s\n" "$supported" >&6; } 16865 if test "$supported" = "yes" ; then 16866 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16867 found="yes" 16868 fi 16869 fi 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 xorg_testset_save_CFLAGS="$CFLAGS" 16886 16887 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16890 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16891 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 16892 then : 16893 printf %s "(cached) " >&6 16894 else case e in #( 16895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16896 /* end confdefs.h. */ 16897 int i; 16898 _ACEOF 16899 if ac_fn_c_try_compile "$LINENO" 16900 then : 16901 xorg_cv_cc_flag_unknown_warning_option=yes 16902 else case e in #( 16903 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 16904 esac 16905 fi 16906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16907 esac 16908 fi 16909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16910 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16912 CFLAGS="$xorg_testset_save_CFLAGS" 16913 fi 16914 16915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16918 fi 16919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16921 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16922 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 16923 then : 16924 printf %s "(cached) " >&6 16925 else case e in #( 16926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16927 /* end confdefs.h. */ 16928 int i; 16929 _ACEOF 16930 if ac_fn_c_try_compile "$LINENO" 16931 then : 16932 xorg_cv_cc_flag_unused_command_line_argument=yes 16933 else case e in #( 16934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 16935 esac 16936 fi 16937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 16938 esac 16939 fi 16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16941 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16943 CFLAGS="$xorg_testset_save_CFLAGS" 16944 fi 16945 16946 found="no" 16947 16948 if test $found = "no" ; then 16949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16951 fi 16952 16953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16955 fi 16956 16957 CFLAGS="$CFLAGS -Werror=return-type" 16958 16959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16960 printf %s "checking if $CC supports -Werror=return-type... " >&6; } 16961 cacheid=xorg_cv_cc_flag__Werror_return_type 16962 if eval test \${$cacheid+y} 16963 then : 16964 printf %s "(cached) " >&6 16965 else case e in #( 16966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16967 /* end confdefs.h. */ 16968 int i; 16969 int 16970 main (void) 16971 { 16972 16973 ; 16974 return 0; 16975 } 16976 _ACEOF 16977 if ac_fn_c_try_link "$LINENO" 16978 then : 16979 eval $cacheid=yes 16980 else case e in #( 16981 e) eval $cacheid=no ;; 16982 esac 16983 fi 16984 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16985 conftest$ac_exeext conftest.$ac_ext ;; 16986 esac 16987 fi 16988 16989 16990 CFLAGS="$xorg_testset_save_CFLAGS" 16991 16992 eval supported=\$$cacheid 16993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16994 printf "%s\n" "$supported" >&6; } 16995 if test "$supported" = "yes" ; then 16996 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16997 found="yes" 16998 fi 16999 fi 17000 17001 if test $found = "no" ; then 17002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17003 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17004 fi 17005 17006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17008 fi 17009 17010 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17011 17012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 17013 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 17014 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 17015 if eval test \${$cacheid+y} 17016 then : 17017 printf %s "(cached) " >&6 17018 else case e in #( 17019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17020 /* end confdefs.h. */ 17021 int i; 17022 int 17023 main (void) 17024 { 17025 17026 ; 17027 return 0; 17028 } 17029 _ACEOF 17030 if ac_fn_c_try_link "$LINENO" 17031 then : 17032 eval $cacheid=yes 17033 else case e in #( 17034 e) eval $cacheid=no ;; 17035 esac 17036 fi 17037 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17038 conftest$ac_exeext conftest.$ac_ext ;; 17039 esac 17040 fi 17041 17042 17043 CFLAGS="$xorg_testset_save_CFLAGS" 17044 17045 eval supported=\$$cacheid 17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17047 printf "%s\n" "$supported" >&6; } 17048 if test "$supported" = "yes" ; then 17049 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 17050 found="yes" 17051 fi 17052 fi 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 xorg_testset_save_CFLAGS="$CFLAGS" 17069 17070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17074 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17075 then : 17076 printf %s "(cached) " >&6 17077 else case e in #( 17078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17079 /* end confdefs.h. */ 17080 int i; 17081 _ACEOF 17082 if ac_fn_c_try_compile "$LINENO" 17083 then : 17084 xorg_cv_cc_flag_unknown_warning_option=yes 17085 else case e in #( 17086 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17087 esac 17088 fi 17089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17090 esac 17091 fi 17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17093 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17095 CFLAGS="$xorg_testset_save_CFLAGS" 17096 fi 17097 17098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17101 fi 17102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17104 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17105 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17106 then : 17107 printf %s "(cached) " >&6 17108 else case e in #( 17109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17110 /* end confdefs.h. */ 17111 int i; 17112 _ACEOF 17113 if ac_fn_c_try_compile "$LINENO" 17114 then : 17115 xorg_cv_cc_flag_unused_command_line_argument=yes 17116 else case e in #( 17117 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17118 esac 17119 fi 17120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17121 esac 17122 fi 17123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17124 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17126 CFLAGS="$xorg_testset_save_CFLAGS" 17127 fi 17128 17129 found="no" 17130 17131 if test $found = "no" ; then 17132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17134 fi 17135 17136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17138 fi 17139 17140 CFLAGS="$CFLAGS -Werror=trigraphs" 17141 17142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 17143 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 17144 cacheid=xorg_cv_cc_flag__Werror_trigraphs 17145 if eval test \${$cacheid+y} 17146 then : 17147 printf %s "(cached) " >&6 17148 else case e in #( 17149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17150 /* end confdefs.h. */ 17151 int i; 17152 int 17153 main (void) 17154 { 17155 17156 ; 17157 return 0; 17158 } 17159 _ACEOF 17160 if ac_fn_c_try_link "$LINENO" 17161 then : 17162 eval $cacheid=yes 17163 else case e in #( 17164 e) eval $cacheid=no ;; 17165 esac 17166 fi 17167 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17168 conftest$ac_exeext conftest.$ac_ext ;; 17169 esac 17170 fi 17171 17172 17173 CFLAGS="$xorg_testset_save_CFLAGS" 17174 17175 eval supported=\$$cacheid 17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17177 printf "%s\n" "$supported" >&6; } 17178 if test "$supported" = "yes" ; then 17179 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 17180 found="yes" 17181 fi 17182 fi 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 xorg_testset_save_CFLAGS="$CFLAGS" 17199 17200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17201 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17203 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17204 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17205 then : 17206 printf %s "(cached) " >&6 17207 else case e in #( 17208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17209 /* end confdefs.h. */ 17210 int i; 17211 _ACEOF 17212 if ac_fn_c_try_compile "$LINENO" 17213 then : 17214 xorg_cv_cc_flag_unknown_warning_option=yes 17215 else case e in #( 17216 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17217 esac 17218 fi 17219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17220 esac 17221 fi 17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17225 CFLAGS="$xorg_testset_save_CFLAGS" 17226 fi 17227 17228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17231 fi 17232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17236 then : 17237 printf %s "(cached) " >&6 17238 else case e in #( 17239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17240 /* end confdefs.h. */ 17241 int i; 17242 _ACEOF 17243 if ac_fn_c_try_compile "$LINENO" 17244 then : 17245 xorg_cv_cc_flag_unused_command_line_argument=yes 17246 else case e in #( 17247 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17248 esac 17249 fi 17250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17251 esac 17252 fi 17253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17256 CFLAGS="$xorg_testset_save_CFLAGS" 17257 fi 17258 17259 found="no" 17260 17261 if test $found = "no" ; then 17262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17264 fi 17265 17266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17268 fi 17269 17270 CFLAGS="$CFLAGS -Werror=array-bounds" 17271 17272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 17273 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 17274 cacheid=xorg_cv_cc_flag__Werror_array_bounds 17275 if eval test \${$cacheid+y} 17276 then : 17277 printf %s "(cached) " >&6 17278 else case e in #( 17279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280 /* end confdefs.h. */ 17281 int i; 17282 int 17283 main (void) 17284 { 17285 17286 ; 17287 return 0; 17288 } 17289 _ACEOF 17290 if ac_fn_c_try_link "$LINENO" 17291 then : 17292 eval $cacheid=yes 17293 else case e in #( 17294 e) eval $cacheid=no ;; 17295 esac 17296 fi 17297 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17298 conftest$ac_exeext conftest.$ac_ext ;; 17299 esac 17300 fi 17301 17302 17303 CFLAGS="$xorg_testset_save_CFLAGS" 17304 17305 eval supported=\$$cacheid 17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17307 printf "%s\n" "$supported" >&6; } 17308 if test "$supported" = "yes" ; then 17309 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 17310 found="yes" 17311 fi 17312 fi 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 xorg_testset_save_CFLAGS="$CFLAGS" 17329 17330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17333 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17334 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17335 then : 17336 printf %s "(cached) " >&6 17337 else case e in #( 17338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17339 /* end confdefs.h. */ 17340 int i; 17341 _ACEOF 17342 if ac_fn_c_try_compile "$LINENO" 17343 then : 17344 xorg_cv_cc_flag_unknown_warning_option=yes 17345 else case e in #( 17346 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17347 esac 17348 fi 17349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17350 esac 17351 fi 17352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17353 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17355 CFLAGS="$xorg_testset_save_CFLAGS" 17356 fi 17357 17358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17361 fi 17362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17364 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17365 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17366 then : 17367 printf %s "(cached) " >&6 17368 else case e in #( 17369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17370 /* end confdefs.h. */ 17371 int i; 17372 _ACEOF 17373 if ac_fn_c_try_compile "$LINENO" 17374 then : 17375 xorg_cv_cc_flag_unused_command_line_argument=yes 17376 else case e in #( 17377 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17378 esac 17379 fi 17380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17381 esac 17382 fi 17383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17386 CFLAGS="$xorg_testset_save_CFLAGS" 17387 fi 17388 17389 found="no" 17390 17391 if test $found = "no" ; then 17392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17394 fi 17395 17396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17398 fi 17399 17400 CFLAGS="$CFLAGS -Werror=write-strings" 17401 17402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 17403 printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 17404 cacheid=xorg_cv_cc_flag__Werror_write_strings 17405 if eval test \${$cacheid+y} 17406 then : 17407 printf %s "(cached) " >&6 17408 else case e in #( 17409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17410 /* end confdefs.h. */ 17411 int i; 17412 int 17413 main (void) 17414 { 17415 17416 ; 17417 return 0; 17418 } 17419 _ACEOF 17420 if ac_fn_c_try_link "$LINENO" 17421 then : 17422 eval $cacheid=yes 17423 else case e in #( 17424 e) eval $cacheid=no ;; 17425 esac 17426 fi 17427 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17428 conftest$ac_exeext conftest.$ac_ext ;; 17429 esac 17430 fi 17431 17432 17433 CFLAGS="$xorg_testset_save_CFLAGS" 17434 17435 eval supported=\$$cacheid 17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17437 printf "%s\n" "$supported" >&6; } 17438 if test "$supported" = "yes" ; then 17439 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 17440 found="yes" 17441 fi 17442 fi 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 xorg_testset_save_CFLAGS="$CFLAGS" 17459 17460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17463 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17464 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17465 then : 17466 printf %s "(cached) " >&6 17467 else case e in #( 17468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17469 /* end confdefs.h. */ 17470 int i; 17471 _ACEOF 17472 if ac_fn_c_try_compile "$LINENO" 17473 then : 17474 xorg_cv_cc_flag_unknown_warning_option=yes 17475 else case e in #( 17476 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17477 esac 17478 fi 17479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17480 esac 17481 fi 17482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17483 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17485 CFLAGS="$xorg_testset_save_CFLAGS" 17486 fi 17487 17488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17491 fi 17492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17494 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17495 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17496 then : 17497 printf %s "(cached) " >&6 17498 else case e in #( 17499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17500 /* end confdefs.h. */ 17501 int i; 17502 _ACEOF 17503 if ac_fn_c_try_compile "$LINENO" 17504 then : 17505 xorg_cv_cc_flag_unused_command_line_argument=yes 17506 else case e in #( 17507 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17508 esac 17509 fi 17510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17511 esac 17512 fi 17513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17516 CFLAGS="$xorg_testset_save_CFLAGS" 17517 fi 17518 17519 found="no" 17520 17521 if test $found = "no" ; then 17522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17524 fi 17525 17526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17528 fi 17529 17530 CFLAGS="$CFLAGS -Werror=address" 17531 17532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 17533 printf %s "checking if $CC supports -Werror=address... " >&6; } 17534 cacheid=xorg_cv_cc_flag__Werror_address 17535 if eval test \${$cacheid+y} 17536 then : 17537 printf %s "(cached) " >&6 17538 else case e in #( 17539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17540 /* end confdefs.h. */ 17541 int i; 17542 int 17543 main (void) 17544 { 17545 17546 ; 17547 return 0; 17548 } 17549 _ACEOF 17550 if ac_fn_c_try_link "$LINENO" 17551 then : 17552 eval $cacheid=yes 17553 else case e in #( 17554 e) eval $cacheid=no ;; 17555 esac 17556 fi 17557 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17558 conftest$ac_exeext conftest.$ac_ext ;; 17559 esac 17560 fi 17561 17562 17563 CFLAGS="$xorg_testset_save_CFLAGS" 17564 17565 eval supported=\$$cacheid 17566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17567 printf "%s\n" "$supported" >&6; } 17568 if test "$supported" = "yes" ; then 17569 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 17570 found="yes" 17571 fi 17572 fi 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 xorg_testset_save_CFLAGS="$CFLAGS" 17589 17590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17594 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17595 then : 17596 printf %s "(cached) " >&6 17597 else case e in #( 17598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17599 /* end confdefs.h. */ 17600 int i; 17601 _ACEOF 17602 if ac_fn_c_try_compile "$LINENO" 17603 then : 17604 xorg_cv_cc_flag_unknown_warning_option=yes 17605 else case e in #( 17606 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17607 esac 17608 fi 17609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17610 esac 17611 fi 17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17615 CFLAGS="$xorg_testset_save_CFLAGS" 17616 fi 17617 17618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17620 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17621 fi 17622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17626 then : 17627 printf %s "(cached) " >&6 17628 else case e in #( 17629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17630 /* end confdefs.h. */ 17631 int i; 17632 _ACEOF 17633 if ac_fn_c_try_compile "$LINENO" 17634 then : 17635 xorg_cv_cc_flag_unused_command_line_argument=yes 17636 else case e in #( 17637 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17638 esac 17639 fi 17640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17641 esac 17642 fi 17643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17644 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17646 CFLAGS="$xorg_testset_save_CFLAGS" 17647 fi 17648 17649 found="no" 17650 17651 if test $found = "no" ; then 17652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17654 fi 17655 17656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17658 fi 17659 17660 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 17661 17662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 17663 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 17664 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 17665 if eval test \${$cacheid+y} 17666 then : 17667 printf %s "(cached) " >&6 17668 else case e in #( 17669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17670 /* end confdefs.h. */ 17671 int i; 17672 int 17673 main (void) 17674 { 17675 17676 ; 17677 return 0; 17678 } 17679 _ACEOF 17680 if ac_fn_c_try_link "$LINENO" 17681 then : 17682 eval $cacheid=yes 17683 else case e in #( 17684 e) eval $cacheid=no ;; 17685 esac 17686 fi 17687 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17688 conftest$ac_exeext conftest.$ac_ext ;; 17689 esac 17690 fi 17691 17692 17693 CFLAGS="$xorg_testset_save_CFLAGS" 17694 17695 eval supported=\$$cacheid 17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17697 printf "%s\n" "$supported" >&6; } 17698 if test "$supported" = "yes" ; then 17699 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 17700 found="yes" 17701 fi 17702 fi 17703 17704 if test $found = "no" ; then 17705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17707 fi 17708 17709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17711 fi 17712 17713 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17714 17715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 17716 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 17717 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 17718 if eval test \${$cacheid+y} 17719 then : 17720 printf %s "(cached) " >&6 17721 else case e in #( 17722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723 /* end confdefs.h. */ 17724 int i; 17725 int 17726 main (void) 17727 { 17728 17729 ; 17730 return 0; 17731 } 17732 _ACEOF 17733 if ac_fn_c_try_link "$LINENO" 17734 then : 17735 eval $cacheid=yes 17736 else case e in #( 17737 e) eval $cacheid=no ;; 17738 esac 17739 fi 17740 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17741 conftest$ac_exeext conftest.$ac_ext ;; 17742 esac 17743 fi 17744 17745 17746 CFLAGS="$xorg_testset_save_CFLAGS" 17747 17748 eval supported=\$$cacheid 17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17750 printf "%s\n" "$supported" >&6; } 17751 if test "$supported" = "yes" ; then 17752 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 17753 found="yes" 17754 fi 17755 fi 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 xorg_testset_save_CFLAGS="$CFLAGS" 17772 17773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17776 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17777 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17778 then : 17779 printf %s "(cached) " >&6 17780 else case e in #( 17781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17782 /* end confdefs.h. */ 17783 int i; 17784 _ACEOF 17785 if ac_fn_c_try_compile "$LINENO" 17786 then : 17787 xorg_cv_cc_flag_unknown_warning_option=yes 17788 else case e in #( 17789 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17790 esac 17791 fi 17792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17793 esac 17794 fi 17795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17796 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17798 CFLAGS="$xorg_testset_save_CFLAGS" 17799 fi 17800 17801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17804 fi 17805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17807 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17808 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17809 then : 17810 printf %s "(cached) " >&6 17811 else case e in #( 17812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17813 /* end confdefs.h. */ 17814 int i; 17815 _ACEOF 17816 if ac_fn_c_try_compile "$LINENO" 17817 then : 17818 xorg_cv_cc_flag_unused_command_line_argument=yes 17819 else case e in #( 17820 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17821 esac 17822 fi 17823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17824 esac 17825 fi 17826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17827 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17829 CFLAGS="$xorg_testset_save_CFLAGS" 17830 fi 17831 17832 found="no" 17833 17834 if test $found = "no" ; then 17835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17837 fi 17838 17839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17841 fi 17842 17843 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17844 17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17846 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17847 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17848 if eval test \${$cacheid+y} 17849 then : 17850 printf %s "(cached) " >&6 17851 else case e in #( 17852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17853 /* end confdefs.h. */ 17854 int i; 17855 int 17856 main (void) 17857 { 17858 17859 ; 17860 return 0; 17861 } 17862 _ACEOF 17863 if ac_fn_c_try_link "$LINENO" 17864 then : 17865 eval $cacheid=yes 17866 else case e in #( 17867 e) eval $cacheid=no ;; 17868 esac 17869 fi 17870 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17871 conftest$ac_exeext conftest.$ac_ext ;; 17872 esac 17873 fi 17874 17875 17876 CFLAGS="$xorg_testset_save_CFLAGS" 17877 17878 eval supported=\$$cacheid 17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17880 printf "%s\n" "$supported" >&6; } 17881 if test "$supported" = "yes" ; then 17882 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17883 found="yes" 17884 fi 17885 fi 17886 17887 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17888 else 17889 { 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 17890 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;} 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 xorg_testset_save_CFLAGS="$CFLAGS" 17905 17906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17909 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17910 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 17911 then : 17912 printf %s "(cached) " >&6 17913 else case e in #( 17914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17915 /* end confdefs.h. */ 17916 int i; 17917 _ACEOF 17918 if ac_fn_c_try_compile "$LINENO" 17919 then : 17920 xorg_cv_cc_flag_unknown_warning_option=yes 17921 else case e in #( 17922 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 17923 esac 17924 fi 17925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17926 esac 17927 fi 17928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17929 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17931 CFLAGS="$xorg_testset_save_CFLAGS" 17932 fi 17933 17934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17937 fi 17938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17940 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17941 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 17942 then : 17943 printf %s "(cached) " >&6 17944 else case e in #( 17945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17946 /* end confdefs.h. */ 17947 int i; 17948 _ACEOF 17949 if ac_fn_c_try_compile "$LINENO" 17950 then : 17951 xorg_cv_cc_flag_unused_command_line_argument=yes 17952 else case e in #( 17953 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 17954 esac 17955 fi 17956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 17957 esac 17958 fi 17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17960 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17962 CFLAGS="$xorg_testset_save_CFLAGS" 17963 fi 17964 17965 found="no" 17966 17967 if test $found = "no" ; then 17968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17970 fi 17971 17972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17974 fi 17975 17976 CFLAGS="$CFLAGS -Wimplicit" 17977 17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17979 printf %s "checking if $CC supports -Wimplicit... " >&6; } 17980 cacheid=xorg_cv_cc_flag__Wimplicit 17981 if eval test \${$cacheid+y} 17982 then : 17983 printf %s "(cached) " >&6 17984 else case e in #( 17985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17986 /* end confdefs.h. */ 17987 int i; 17988 int 17989 main (void) 17990 { 17991 17992 ; 17993 return 0; 17994 } 17995 _ACEOF 17996 if ac_fn_c_try_link "$LINENO" 17997 then : 17998 eval $cacheid=yes 17999 else case e in #( 18000 e) eval $cacheid=no ;; 18001 esac 18002 fi 18003 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18004 conftest$ac_exeext conftest.$ac_ext ;; 18005 esac 18006 fi 18007 18008 18009 CFLAGS="$xorg_testset_save_CFLAGS" 18010 18011 eval supported=\$$cacheid 18012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18013 printf "%s\n" "$supported" >&6; } 18014 if test "$supported" = "yes" ; then 18015 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 18016 found="yes" 18017 fi 18018 fi 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 xorg_testset_save_CFLAGS="$CFLAGS" 18035 18036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18039 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18040 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18041 then : 18042 printf %s "(cached) " >&6 18043 else case e in #( 18044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18045 /* end confdefs.h. */ 18046 int i; 18047 _ACEOF 18048 if ac_fn_c_try_compile "$LINENO" 18049 then : 18050 xorg_cv_cc_flag_unknown_warning_option=yes 18051 else case e in #( 18052 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18053 esac 18054 fi 18055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18056 esac 18057 fi 18058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18059 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18061 CFLAGS="$xorg_testset_save_CFLAGS" 18062 fi 18063 18064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18067 fi 18068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18070 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18071 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18072 then : 18073 printf %s "(cached) " >&6 18074 else case e in #( 18075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18076 /* end confdefs.h. */ 18077 int i; 18078 _ACEOF 18079 if ac_fn_c_try_compile "$LINENO" 18080 then : 18081 xorg_cv_cc_flag_unused_command_line_argument=yes 18082 else case e in #( 18083 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18084 esac 18085 fi 18086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18087 esac 18088 fi 18089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18090 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18092 CFLAGS="$xorg_testset_save_CFLAGS" 18093 fi 18094 18095 found="no" 18096 18097 if test $found = "no" ; then 18098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18100 fi 18101 18102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18104 fi 18105 18106 CFLAGS="$CFLAGS -Wnonnull" 18107 18108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 18109 printf %s "checking if $CC supports -Wnonnull... " >&6; } 18110 cacheid=xorg_cv_cc_flag__Wnonnull 18111 if eval test \${$cacheid+y} 18112 then : 18113 printf %s "(cached) " >&6 18114 else case e in #( 18115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18116 /* end confdefs.h. */ 18117 int i; 18118 int 18119 main (void) 18120 { 18121 18122 ; 18123 return 0; 18124 } 18125 _ACEOF 18126 if ac_fn_c_try_link "$LINENO" 18127 then : 18128 eval $cacheid=yes 18129 else case e in #( 18130 e) eval $cacheid=no ;; 18131 esac 18132 fi 18133 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18134 conftest$ac_exeext conftest.$ac_ext ;; 18135 esac 18136 fi 18137 18138 18139 CFLAGS="$xorg_testset_save_CFLAGS" 18140 18141 eval supported=\$$cacheid 18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18143 printf "%s\n" "$supported" >&6; } 18144 if test "$supported" = "yes" ; then 18145 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 18146 found="yes" 18147 fi 18148 fi 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 xorg_testset_save_CFLAGS="$CFLAGS" 18165 18166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18169 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18170 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18171 then : 18172 printf %s "(cached) " >&6 18173 else case e in #( 18174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18175 /* end confdefs.h. */ 18176 int i; 18177 _ACEOF 18178 if ac_fn_c_try_compile "$LINENO" 18179 then : 18180 xorg_cv_cc_flag_unknown_warning_option=yes 18181 else case e in #( 18182 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18183 esac 18184 fi 18185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18186 esac 18187 fi 18188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18189 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18191 CFLAGS="$xorg_testset_save_CFLAGS" 18192 fi 18193 18194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18197 fi 18198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18200 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18201 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18202 then : 18203 printf %s "(cached) " >&6 18204 else case e in #( 18205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18206 /* end confdefs.h. */ 18207 int i; 18208 _ACEOF 18209 if ac_fn_c_try_compile "$LINENO" 18210 then : 18211 xorg_cv_cc_flag_unused_command_line_argument=yes 18212 else case e in #( 18213 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18214 esac 18215 fi 18216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18217 esac 18218 fi 18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18220 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18222 CFLAGS="$xorg_testset_save_CFLAGS" 18223 fi 18224 18225 found="no" 18226 18227 if test $found = "no" ; then 18228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18229 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18230 fi 18231 18232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18234 fi 18235 18236 CFLAGS="$CFLAGS -Winit-self" 18237 18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 18239 printf %s "checking if $CC supports -Winit-self... " >&6; } 18240 cacheid=xorg_cv_cc_flag__Winit_self 18241 if eval test \${$cacheid+y} 18242 then : 18243 printf %s "(cached) " >&6 18244 else case e in #( 18245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18246 /* end confdefs.h. */ 18247 int i; 18248 int 18249 main (void) 18250 { 18251 18252 ; 18253 return 0; 18254 } 18255 _ACEOF 18256 if ac_fn_c_try_link "$LINENO" 18257 then : 18258 eval $cacheid=yes 18259 else case e in #( 18260 e) eval $cacheid=no ;; 18261 esac 18262 fi 18263 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18264 conftest$ac_exeext conftest.$ac_ext ;; 18265 esac 18266 fi 18267 18268 18269 CFLAGS="$xorg_testset_save_CFLAGS" 18270 18271 eval supported=\$$cacheid 18272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18273 printf "%s\n" "$supported" >&6; } 18274 if test "$supported" = "yes" ; then 18275 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 18276 found="yes" 18277 fi 18278 fi 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 xorg_testset_save_CFLAGS="$CFLAGS" 18295 18296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18299 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18300 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18301 then : 18302 printf %s "(cached) " >&6 18303 else case e in #( 18304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18305 /* end confdefs.h. */ 18306 int i; 18307 _ACEOF 18308 if ac_fn_c_try_compile "$LINENO" 18309 then : 18310 xorg_cv_cc_flag_unknown_warning_option=yes 18311 else case e in #( 18312 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18313 esac 18314 fi 18315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18316 esac 18317 fi 18318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18319 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18321 CFLAGS="$xorg_testset_save_CFLAGS" 18322 fi 18323 18324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18327 fi 18328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18330 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18331 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18332 then : 18333 printf %s "(cached) " >&6 18334 else case e in #( 18335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18336 /* end confdefs.h. */ 18337 int i; 18338 _ACEOF 18339 if ac_fn_c_try_compile "$LINENO" 18340 then : 18341 xorg_cv_cc_flag_unused_command_line_argument=yes 18342 else case e in #( 18343 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18344 esac 18345 fi 18346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18347 esac 18348 fi 18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18350 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18352 CFLAGS="$xorg_testset_save_CFLAGS" 18353 fi 18354 18355 found="no" 18356 18357 if test $found = "no" ; then 18358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18360 fi 18361 18362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18364 fi 18365 18366 CFLAGS="$CFLAGS -Wmain" 18367 18368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 18369 printf %s "checking if $CC supports -Wmain... " >&6; } 18370 cacheid=xorg_cv_cc_flag__Wmain 18371 if eval test \${$cacheid+y} 18372 then : 18373 printf %s "(cached) " >&6 18374 else case e in #( 18375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18376 /* end confdefs.h. */ 18377 int i; 18378 int 18379 main (void) 18380 { 18381 18382 ; 18383 return 0; 18384 } 18385 _ACEOF 18386 if ac_fn_c_try_link "$LINENO" 18387 then : 18388 eval $cacheid=yes 18389 else case e in #( 18390 e) eval $cacheid=no ;; 18391 esac 18392 fi 18393 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18394 conftest$ac_exeext conftest.$ac_ext ;; 18395 esac 18396 fi 18397 18398 18399 CFLAGS="$xorg_testset_save_CFLAGS" 18400 18401 eval supported=\$$cacheid 18402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18403 printf "%s\n" "$supported" >&6; } 18404 if test "$supported" = "yes" ; then 18405 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 18406 found="yes" 18407 fi 18408 fi 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 xorg_testset_save_CFLAGS="$CFLAGS" 18425 18426 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18429 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18430 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18431 then : 18432 printf %s "(cached) " >&6 18433 else case e in #( 18434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18435 /* end confdefs.h. */ 18436 int i; 18437 _ACEOF 18438 if ac_fn_c_try_compile "$LINENO" 18439 then : 18440 xorg_cv_cc_flag_unknown_warning_option=yes 18441 else case e in #( 18442 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18443 esac 18444 fi 18445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18446 esac 18447 fi 18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18449 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18451 CFLAGS="$xorg_testset_save_CFLAGS" 18452 fi 18453 18454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18457 fi 18458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18460 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18461 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18462 then : 18463 printf %s "(cached) " >&6 18464 else case e in #( 18465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18466 /* end confdefs.h. */ 18467 int i; 18468 _ACEOF 18469 if ac_fn_c_try_compile "$LINENO" 18470 then : 18471 xorg_cv_cc_flag_unused_command_line_argument=yes 18472 else case e in #( 18473 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18474 esac 18475 fi 18476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18477 esac 18478 fi 18479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18480 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18482 CFLAGS="$xorg_testset_save_CFLAGS" 18483 fi 18484 18485 found="no" 18486 18487 if test $found = "no" ; then 18488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18490 fi 18491 18492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18494 fi 18495 18496 CFLAGS="$CFLAGS -Wmissing-braces" 18497 18498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 18499 printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 18500 cacheid=xorg_cv_cc_flag__Wmissing_braces 18501 if eval test \${$cacheid+y} 18502 then : 18503 printf %s "(cached) " >&6 18504 else case e in #( 18505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18506 /* end confdefs.h. */ 18507 int i; 18508 int 18509 main (void) 18510 { 18511 18512 ; 18513 return 0; 18514 } 18515 _ACEOF 18516 if ac_fn_c_try_link "$LINENO" 18517 then : 18518 eval $cacheid=yes 18519 else case e in #( 18520 e) eval $cacheid=no ;; 18521 esac 18522 fi 18523 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18524 conftest$ac_exeext conftest.$ac_ext ;; 18525 esac 18526 fi 18527 18528 18529 CFLAGS="$xorg_testset_save_CFLAGS" 18530 18531 eval supported=\$$cacheid 18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18533 printf "%s\n" "$supported" >&6; } 18534 if test "$supported" = "yes" ; then 18535 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 18536 found="yes" 18537 fi 18538 fi 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 xorg_testset_save_CFLAGS="$CFLAGS" 18555 18556 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18559 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18560 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18561 then : 18562 printf %s "(cached) " >&6 18563 else case e in #( 18564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18565 /* end confdefs.h. */ 18566 int i; 18567 _ACEOF 18568 if ac_fn_c_try_compile "$LINENO" 18569 then : 18570 xorg_cv_cc_flag_unknown_warning_option=yes 18571 else case e in #( 18572 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18573 esac 18574 fi 18575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18576 esac 18577 fi 18578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18579 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18581 CFLAGS="$xorg_testset_save_CFLAGS" 18582 fi 18583 18584 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18585 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18587 fi 18588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18590 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18591 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18592 then : 18593 printf %s "(cached) " >&6 18594 else case e in #( 18595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18596 /* end confdefs.h. */ 18597 int i; 18598 _ACEOF 18599 if ac_fn_c_try_compile "$LINENO" 18600 then : 18601 xorg_cv_cc_flag_unused_command_line_argument=yes 18602 else case e in #( 18603 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18604 esac 18605 fi 18606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18607 esac 18608 fi 18609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18610 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18612 CFLAGS="$xorg_testset_save_CFLAGS" 18613 fi 18614 18615 found="no" 18616 18617 if test $found = "no" ; then 18618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18620 fi 18621 18622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18624 fi 18625 18626 CFLAGS="$CFLAGS -Wsequence-point" 18627 18628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 18629 printf %s "checking if $CC supports -Wsequence-point... " >&6; } 18630 cacheid=xorg_cv_cc_flag__Wsequence_point 18631 if eval test \${$cacheid+y} 18632 then : 18633 printf %s "(cached) " >&6 18634 else case e in #( 18635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18636 /* end confdefs.h. */ 18637 int i; 18638 int 18639 main (void) 18640 { 18641 18642 ; 18643 return 0; 18644 } 18645 _ACEOF 18646 if ac_fn_c_try_link "$LINENO" 18647 then : 18648 eval $cacheid=yes 18649 else case e in #( 18650 e) eval $cacheid=no ;; 18651 esac 18652 fi 18653 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18654 conftest$ac_exeext conftest.$ac_ext ;; 18655 esac 18656 fi 18657 18658 18659 CFLAGS="$xorg_testset_save_CFLAGS" 18660 18661 eval supported=\$$cacheid 18662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18663 printf "%s\n" "$supported" >&6; } 18664 if test "$supported" = "yes" ; then 18665 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 18666 found="yes" 18667 fi 18668 fi 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 xorg_testset_save_CFLAGS="$CFLAGS" 18685 18686 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18689 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18690 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18691 then : 18692 printf %s "(cached) " >&6 18693 else case e in #( 18694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18695 /* end confdefs.h. */ 18696 int i; 18697 _ACEOF 18698 if ac_fn_c_try_compile "$LINENO" 18699 then : 18700 xorg_cv_cc_flag_unknown_warning_option=yes 18701 else case e in #( 18702 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18703 esac 18704 fi 18705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18706 esac 18707 fi 18708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18709 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18711 CFLAGS="$xorg_testset_save_CFLAGS" 18712 fi 18713 18714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18717 fi 18718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18720 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18721 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18722 then : 18723 printf %s "(cached) " >&6 18724 else case e in #( 18725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18726 /* end confdefs.h. */ 18727 int i; 18728 _ACEOF 18729 if ac_fn_c_try_compile "$LINENO" 18730 then : 18731 xorg_cv_cc_flag_unused_command_line_argument=yes 18732 else case e in #( 18733 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18734 esac 18735 fi 18736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18737 esac 18738 fi 18739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18740 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18741 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18742 CFLAGS="$xorg_testset_save_CFLAGS" 18743 fi 18744 18745 found="no" 18746 18747 if test $found = "no" ; then 18748 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18750 fi 18751 18752 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18754 fi 18755 18756 CFLAGS="$CFLAGS -Wreturn-type" 18757 18758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 18759 printf %s "checking if $CC supports -Wreturn-type... " >&6; } 18760 cacheid=xorg_cv_cc_flag__Wreturn_type 18761 if eval test \${$cacheid+y} 18762 then : 18763 printf %s "(cached) " >&6 18764 else case e in #( 18765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18766 /* end confdefs.h. */ 18767 int i; 18768 int 18769 main (void) 18770 { 18771 18772 ; 18773 return 0; 18774 } 18775 _ACEOF 18776 if ac_fn_c_try_link "$LINENO" 18777 then : 18778 eval $cacheid=yes 18779 else case e in #( 18780 e) eval $cacheid=no ;; 18781 esac 18782 fi 18783 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18784 conftest$ac_exeext conftest.$ac_ext ;; 18785 esac 18786 fi 18787 18788 18789 CFLAGS="$xorg_testset_save_CFLAGS" 18790 18791 eval supported=\$$cacheid 18792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18793 printf "%s\n" "$supported" >&6; } 18794 if test "$supported" = "yes" ; then 18795 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 18796 found="yes" 18797 fi 18798 fi 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 xorg_testset_save_CFLAGS="$CFLAGS" 18815 18816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18819 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18820 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18821 then : 18822 printf %s "(cached) " >&6 18823 else case e in #( 18824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18825 /* end confdefs.h. */ 18826 int i; 18827 _ACEOF 18828 if ac_fn_c_try_compile "$LINENO" 18829 then : 18830 xorg_cv_cc_flag_unknown_warning_option=yes 18831 else case e in #( 18832 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18833 esac 18834 fi 18835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18836 esac 18837 fi 18838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18839 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18841 CFLAGS="$xorg_testset_save_CFLAGS" 18842 fi 18843 18844 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18847 fi 18848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18850 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18851 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18852 then : 18853 printf %s "(cached) " >&6 18854 else case e in #( 18855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18856 /* end confdefs.h. */ 18857 int i; 18858 _ACEOF 18859 if ac_fn_c_try_compile "$LINENO" 18860 then : 18861 xorg_cv_cc_flag_unused_command_line_argument=yes 18862 else case e in #( 18863 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18864 esac 18865 fi 18866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18867 esac 18868 fi 18869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18870 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18871 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18872 CFLAGS="$xorg_testset_save_CFLAGS" 18873 fi 18874 18875 found="no" 18876 18877 if test $found = "no" ; then 18878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18880 fi 18881 18882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18884 fi 18885 18886 CFLAGS="$CFLAGS -Wtrigraphs" 18887 18888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 18889 printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 18890 cacheid=xorg_cv_cc_flag__Wtrigraphs 18891 if eval test \${$cacheid+y} 18892 then : 18893 printf %s "(cached) " >&6 18894 else case e in #( 18895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18896 /* end confdefs.h. */ 18897 int i; 18898 int 18899 main (void) 18900 { 18901 18902 ; 18903 return 0; 18904 } 18905 _ACEOF 18906 if ac_fn_c_try_link "$LINENO" 18907 then : 18908 eval $cacheid=yes 18909 else case e in #( 18910 e) eval $cacheid=no ;; 18911 esac 18912 fi 18913 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 18914 conftest$ac_exeext conftest.$ac_ext ;; 18915 esac 18916 fi 18917 18918 18919 CFLAGS="$xorg_testset_save_CFLAGS" 18920 18921 eval supported=\$$cacheid 18922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18923 printf "%s\n" "$supported" >&6; } 18924 if test "$supported" = "yes" ; then 18925 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18926 found="yes" 18927 fi 18928 fi 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 xorg_testset_save_CFLAGS="$CFLAGS" 18945 18946 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18949 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18950 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 18951 then : 18952 printf %s "(cached) " >&6 18953 else case e in #( 18954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18955 /* end confdefs.h. */ 18956 int i; 18957 _ACEOF 18958 if ac_fn_c_try_compile "$LINENO" 18959 then : 18960 xorg_cv_cc_flag_unknown_warning_option=yes 18961 else case e in #( 18962 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 18963 esac 18964 fi 18965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18966 esac 18967 fi 18968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18969 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18971 CFLAGS="$xorg_testset_save_CFLAGS" 18972 fi 18973 18974 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18977 fi 18978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18980 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18981 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 18982 then : 18983 printf %s "(cached) " >&6 18984 else case e in #( 18985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18986 /* end confdefs.h. */ 18987 int i; 18988 _ACEOF 18989 if ac_fn_c_try_compile "$LINENO" 18990 then : 18991 xorg_cv_cc_flag_unused_command_line_argument=yes 18992 else case e in #( 18993 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 18994 esac 18995 fi 18996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 18997 esac 18998 fi 18999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19000 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19002 CFLAGS="$xorg_testset_save_CFLAGS" 19003 fi 19004 19005 found="no" 19006 19007 if test $found = "no" ; then 19008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19010 fi 19011 19012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19014 fi 19015 19016 CFLAGS="$CFLAGS -Warray-bounds" 19017 19018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 19019 printf %s "checking if $CC supports -Warray-bounds... " >&6; } 19020 cacheid=xorg_cv_cc_flag__Warray_bounds 19021 if eval test \${$cacheid+y} 19022 then : 19023 printf %s "(cached) " >&6 19024 else case e in #( 19025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19026 /* end confdefs.h. */ 19027 int i; 19028 int 19029 main (void) 19030 { 19031 19032 ; 19033 return 0; 19034 } 19035 _ACEOF 19036 if ac_fn_c_try_link "$LINENO" 19037 then : 19038 eval $cacheid=yes 19039 else case e in #( 19040 e) eval $cacheid=no ;; 19041 esac 19042 fi 19043 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19044 conftest$ac_exeext conftest.$ac_ext ;; 19045 esac 19046 fi 19047 19048 19049 CFLAGS="$xorg_testset_save_CFLAGS" 19050 19051 eval supported=\$$cacheid 19052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19053 printf "%s\n" "$supported" >&6; } 19054 if test "$supported" = "yes" ; then 19055 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 19056 found="yes" 19057 fi 19058 fi 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 xorg_testset_save_CFLAGS="$CFLAGS" 19075 19076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19079 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19080 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19081 then : 19082 printf %s "(cached) " >&6 19083 else case e in #( 19084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19085 /* end confdefs.h. */ 19086 int i; 19087 _ACEOF 19088 if ac_fn_c_try_compile "$LINENO" 19089 then : 19090 xorg_cv_cc_flag_unknown_warning_option=yes 19091 else case e in #( 19092 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19093 esac 19094 fi 19095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19096 esac 19097 fi 19098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19099 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19101 CFLAGS="$xorg_testset_save_CFLAGS" 19102 fi 19103 19104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19107 fi 19108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19110 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19111 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19112 then : 19113 printf %s "(cached) " >&6 19114 else case e in #( 19115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19116 /* end confdefs.h. */ 19117 int i; 19118 _ACEOF 19119 if ac_fn_c_try_compile "$LINENO" 19120 then : 19121 xorg_cv_cc_flag_unused_command_line_argument=yes 19122 else case e in #( 19123 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19124 esac 19125 fi 19126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19127 esac 19128 fi 19129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19130 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19131 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19132 CFLAGS="$xorg_testset_save_CFLAGS" 19133 fi 19134 19135 found="no" 19136 19137 if test $found = "no" ; then 19138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19140 fi 19141 19142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19144 fi 19145 19146 CFLAGS="$CFLAGS -Wwrite-strings" 19147 19148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 19149 printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 19150 cacheid=xorg_cv_cc_flag__Wwrite_strings 19151 if eval test \${$cacheid+y} 19152 then : 19153 printf %s "(cached) " >&6 19154 else case e in #( 19155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19156 /* end confdefs.h. */ 19157 int i; 19158 int 19159 main (void) 19160 { 19161 19162 ; 19163 return 0; 19164 } 19165 _ACEOF 19166 if ac_fn_c_try_link "$LINENO" 19167 then : 19168 eval $cacheid=yes 19169 else case e in #( 19170 e) eval $cacheid=no ;; 19171 esac 19172 fi 19173 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19174 conftest$ac_exeext conftest.$ac_ext ;; 19175 esac 19176 fi 19177 19178 19179 CFLAGS="$xorg_testset_save_CFLAGS" 19180 19181 eval supported=\$$cacheid 19182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19183 printf "%s\n" "$supported" >&6; } 19184 if test "$supported" = "yes" ; then 19185 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 19186 found="yes" 19187 fi 19188 fi 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 xorg_testset_save_CFLAGS="$CFLAGS" 19205 19206 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19209 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19210 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19211 then : 19212 printf %s "(cached) " >&6 19213 else case e in #( 19214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19215 /* end confdefs.h. */ 19216 int i; 19217 _ACEOF 19218 if ac_fn_c_try_compile "$LINENO" 19219 then : 19220 xorg_cv_cc_flag_unknown_warning_option=yes 19221 else case e in #( 19222 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19223 esac 19224 fi 19225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19226 esac 19227 fi 19228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19229 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19231 CFLAGS="$xorg_testset_save_CFLAGS" 19232 fi 19233 19234 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19237 fi 19238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19240 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19241 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19242 then : 19243 printf %s "(cached) " >&6 19244 else case e in #( 19245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19246 /* end confdefs.h. */ 19247 int i; 19248 _ACEOF 19249 if ac_fn_c_try_compile "$LINENO" 19250 then : 19251 xorg_cv_cc_flag_unused_command_line_argument=yes 19252 else case e in #( 19253 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19254 esac 19255 fi 19256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19257 esac 19258 fi 19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19260 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19262 CFLAGS="$xorg_testset_save_CFLAGS" 19263 fi 19264 19265 found="no" 19266 19267 if test $found = "no" ; then 19268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19270 fi 19271 19272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19274 fi 19275 19276 CFLAGS="$CFLAGS -Waddress" 19277 19278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 19279 printf %s "checking if $CC supports -Waddress... " >&6; } 19280 cacheid=xorg_cv_cc_flag__Waddress 19281 if eval test \${$cacheid+y} 19282 then : 19283 printf %s "(cached) " >&6 19284 else case e in #( 19285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286 /* end confdefs.h. */ 19287 int i; 19288 int 19289 main (void) 19290 { 19291 19292 ; 19293 return 0; 19294 } 19295 _ACEOF 19296 if ac_fn_c_try_link "$LINENO" 19297 then : 19298 eval $cacheid=yes 19299 else case e in #( 19300 e) eval $cacheid=no ;; 19301 esac 19302 fi 19303 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19304 conftest$ac_exeext conftest.$ac_ext ;; 19305 esac 19306 fi 19307 19308 19309 CFLAGS="$xorg_testset_save_CFLAGS" 19310 19311 eval supported=\$$cacheid 19312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19313 printf "%s\n" "$supported" >&6; } 19314 if test "$supported" = "yes" ; then 19315 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 19316 found="yes" 19317 fi 19318 fi 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 xorg_testset_save_CFLAGS="$CFLAGS" 19335 19336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19337 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19340 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19341 then : 19342 printf %s "(cached) " >&6 19343 else case e in #( 19344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19345 /* end confdefs.h. */ 19346 int i; 19347 _ACEOF 19348 if ac_fn_c_try_compile "$LINENO" 19349 then : 19350 xorg_cv_cc_flag_unknown_warning_option=yes 19351 else case e in #( 19352 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19353 esac 19354 fi 19355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19356 esac 19357 fi 19358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19359 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19361 CFLAGS="$xorg_testset_save_CFLAGS" 19362 fi 19363 19364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19367 fi 19368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19370 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19371 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19372 then : 19373 printf %s "(cached) " >&6 19374 else case e in #( 19375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19376 /* end confdefs.h. */ 19377 int i; 19378 _ACEOF 19379 if ac_fn_c_try_compile "$LINENO" 19380 then : 19381 xorg_cv_cc_flag_unused_command_line_argument=yes 19382 else case e in #( 19383 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19384 esac 19385 fi 19386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19387 esac 19388 fi 19389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19390 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19392 CFLAGS="$xorg_testset_save_CFLAGS" 19393 fi 19394 19395 found="no" 19396 19397 if test $found = "no" ; then 19398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19400 fi 19401 19402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19404 fi 19405 19406 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 19407 19408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 19409 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 19410 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 19411 if eval test \${$cacheid+y} 19412 then : 19413 printf %s "(cached) " >&6 19414 else case e in #( 19415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19416 /* end confdefs.h. */ 19417 int i; 19418 int 19419 main (void) 19420 { 19421 19422 ; 19423 return 0; 19424 } 19425 _ACEOF 19426 if ac_fn_c_try_link "$LINENO" 19427 then : 19428 eval $cacheid=yes 19429 else case e in #( 19430 e) eval $cacheid=no ;; 19431 esac 19432 fi 19433 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19434 conftest$ac_exeext conftest.$ac_ext ;; 19435 esac 19436 fi 19437 19438 19439 CFLAGS="$xorg_testset_save_CFLAGS" 19440 19441 eval supported=\$$cacheid 19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19443 printf "%s\n" "$supported" >&6; } 19444 if test "$supported" = "yes" ; then 19445 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 19446 found="yes" 19447 fi 19448 fi 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 xorg_testset_save_CFLAGS="$CFLAGS" 19465 19466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19470 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19471 then : 19472 printf %s "(cached) " >&6 19473 else case e in #( 19474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19475 /* end confdefs.h. */ 19476 int i; 19477 _ACEOF 19478 if ac_fn_c_try_compile "$LINENO" 19479 then : 19480 xorg_cv_cc_flag_unknown_warning_option=yes 19481 else case e in #( 19482 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19483 esac 19484 fi 19485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19486 esac 19487 fi 19488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19491 CFLAGS="$xorg_testset_save_CFLAGS" 19492 fi 19493 19494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19496 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19497 fi 19498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19502 then : 19503 printf %s "(cached) " >&6 19504 else case e in #( 19505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19506 /* end confdefs.h. */ 19507 int i; 19508 _ACEOF 19509 if ac_fn_c_try_compile "$LINENO" 19510 then : 19511 xorg_cv_cc_flag_unused_command_line_argument=yes 19512 else case e in #( 19513 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19514 esac 19515 fi 19516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19517 esac 19518 fi 19519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19520 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19522 CFLAGS="$xorg_testset_save_CFLAGS" 19523 fi 19524 19525 found="no" 19526 19527 if test $found = "no" ; then 19528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19530 fi 19531 19532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19534 fi 19535 19536 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 19537 19538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 19539 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 19540 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 19541 if eval test \${$cacheid+y} 19542 then : 19543 printf %s "(cached) " >&6 19544 else case e in #( 19545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19546 /* end confdefs.h. */ 19547 int i; 19548 int 19549 main (void) 19550 { 19551 19552 ; 19553 return 0; 19554 } 19555 _ACEOF 19556 if ac_fn_c_try_link "$LINENO" 19557 then : 19558 eval $cacheid=yes 19559 else case e in #( 19560 e) eval $cacheid=no ;; 19561 esac 19562 fi 19563 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19564 conftest$ac_exeext conftest.$ac_ext ;; 19565 esac 19566 fi 19567 19568 19569 CFLAGS="$xorg_testset_save_CFLAGS" 19570 19571 eval supported=\$$cacheid 19572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19573 printf "%s\n" "$supported" >&6; } 19574 if test "$supported" = "yes" ; then 19575 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 19576 found="yes" 19577 fi 19578 fi 19579 19580 19581 fi 19582 19583 19584 19585 19586 19587 19588 19589 CWARNFLAGS="$BASE_CFLAGS" 19590 if test "x$GCC" = xyes ; then 19591 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 19592 fi 19593 19594 19595 19596 19597 19598 19599 19600 19601 # Check whether --enable-strict-compilation was given. 19602 if test ${enable_strict_compilation+y} 19603 then : 19604 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 19605 else case e in #( 19606 e) STRICT_COMPILE=no ;; 19607 esac 19608 fi 19609 19610 19611 19612 19613 19614 19615 STRICT_CFLAGS="" 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 xorg_testset_save_CFLAGS="$CFLAGS" 19630 19631 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19634 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19635 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19636 then : 19637 printf %s "(cached) " >&6 19638 else case e in #( 19639 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19640 /* end confdefs.h. */ 19641 int i; 19642 _ACEOF 19643 if ac_fn_c_try_compile "$LINENO" 19644 then : 19645 xorg_cv_cc_flag_unknown_warning_option=yes 19646 else case e in #( 19647 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19648 esac 19649 fi 19650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19651 esac 19652 fi 19653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19654 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19656 CFLAGS="$xorg_testset_save_CFLAGS" 19657 fi 19658 19659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19662 fi 19663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19667 then : 19668 printf %s "(cached) " >&6 19669 else case e in #( 19670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19671 /* end confdefs.h. */ 19672 int i; 19673 _ACEOF 19674 if ac_fn_c_try_compile "$LINENO" 19675 then : 19676 xorg_cv_cc_flag_unused_command_line_argument=yes 19677 else case e in #( 19678 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19679 esac 19680 fi 19681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19682 esac 19683 fi 19684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19687 CFLAGS="$xorg_testset_save_CFLAGS" 19688 fi 19689 19690 found="no" 19691 19692 if test $found = "no" ; then 19693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19695 fi 19696 19697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19699 fi 19700 19701 CFLAGS="$CFLAGS -pedantic" 19702 19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 19704 printf %s "checking if $CC supports -pedantic... " >&6; } 19705 cacheid=xorg_cv_cc_flag__pedantic 19706 if eval test \${$cacheid+y} 19707 then : 19708 printf %s "(cached) " >&6 19709 else case e in #( 19710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19711 /* end confdefs.h. */ 19712 int i; 19713 int 19714 main (void) 19715 { 19716 19717 ; 19718 return 0; 19719 } 19720 _ACEOF 19721 if ac_fn_c_try_link "$LINENO" 19722 then : 19723 eval $cacheid=yes 19724 else case e in #( 19725 e) eval $cacheid=no ;; 19726 esac 19727 fi 19728 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19729 conftest$ac_exeext conftest.$ac_ext ;; 19730 esac 19731 fi 19732 19733 19734 CFLAGS="$xorg_testset_save_CFLAGS" 19735 19736 eval supported=\$$cacheid 19737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19738 printf "%s\n" "$supported" >&6; } 19739 if test "$supported" = "yes" ; then 19740 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 19741 found="yes" 19742 fi 19743 fi 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 xorg_testset_save_CFLAGS="$CFLAGS" 19760 19761 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19764 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19765 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19766 then : 19767 printf %s "(cached) " >&6 19768 else case e in #( 19769 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19770 /* end confdefs.h. */ 19771 int i; 19772 _ACEOF 19773 if ac_fn_c_try_compile "$LINENO" 19774 then : 19775 xorg_cv_cc_flag_unknown_warning_option=yes 19776 else case e in #( 19777 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19778 esac 19779 fi 19780 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19781 esac 19782 fi 19783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19784 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19785 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19786 CFLAGS="$xorg_testset_save_CFLAGS" 19787 fi 19788 19789 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19792 fi 19793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19795 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19796 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19797 then : 19798 printf %s "(cached) " >&6 19799 else case e in #( 19800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19801 /* end confdefs.h. */ 19802 int i; 19803 _ACEOF 19804 if ac_fn_c_try_compile "$LINENO" 19805 then : 19806 xorg_cv_cc_flag_unused_command_line_argument=yes 19807 else case e in #( 19808 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19809 esac 19810 fi 19811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19812 esac 19813 fi 19814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 19815 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 19816 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 19817 CFLAGS="$xorg_testset_save_CFLAGS" 19818 fi 19819 19820 found="no" 19821 19822 if test $found = "no" ; then 19823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19825 fi 19826 19827 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19829 fi 19830 19831 CFLAGS="$CFLAGS -Werror" 19832 19833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 19834 printf %s "checking if $CC supports -Werror... " >&6; } 19835 cacheid=xorg_cv_cc_flag__Werror 19836 if eval test \${$cacheid+y} 19837 then : 19838 printf %s "(cached) " >&6 19839 else case e in #( 19840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19841 /* end confdefs.h. */ 19842 int i; 19843 int 19844 main (void) 19845 { 19846 19847 ; 19848 return 0; 19849 } 19850 _ACEOF 19851 if ac_fn_c_try_link "$LINENO" 19852 then : 19853 eval $cacheid=yes 19854 else case e in #( 19855 e) eval $cacheid=no ;; 19856 esac 19857 fi 19858 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19859 conftest$ac_exeext conftest.$ac_ext ;; 19860 esac 19861 fi 19862 19863 19864 CFLAGS="$xorg_testset_save_CFLAGS" 19865 19866 eval supported=\$$cacheid 19867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19868 printf "%s\n" "$supported" >&6; } 19869 if test "$supported" = "yes" ; then 19870 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 19871 found="yes" 19872 fi 19873 fi 19874 19875 if test $found = "no" ; then 19876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19878 fi 19879 19880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19882 fi 19883 19884 CFLAGS="$CFLAGS -errwarn" 19885 19886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 19887 printf %s "checking if $CC supports -errwarn... " >&6; } 19888 cacheid=xorg_cv_cc_flag__errwarn 19889 if eval test \${$cacheid+y} 19890 then : 19891 printf %s "(cached) " >&6 19892 else case e in #( 19893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19894 /* end confdefs.h. */ 19895 int i; 19896 int 19897 main (void) 19898 { 19899 19900 ; 19901 return 0; 19902 } 19903 _ACEOF 19904 if ac_fn_c_try_link "$LINENO" 19905 then : 19906 eval $cacheid=yes 19907 else case e in #( 19908 e) eval $cacheid=no ;; 19909 esac 19910 fi 19911 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19912 conftest$ac_exeext conftest.$ac_ext ;; 19913 esac 19914 fi 19915 19916 19917 CFLAGS="$xorg_testset_save_CFLAGS" 19918 19919 eval supported=\$$cacheid 19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19921 printf "%s\n" "$supported" >&6; } 19922 if test "$supported" = "yes" ; then 19923 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 19924 found="yes" 19925 fi 19926 fi 19927 19928 19929 19930 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 19931 # activate it with -Werror, so we add it here explicitly. 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 xorg_testset_save_CFLAGS="$CFLAGS" 19946 19947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 19948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 19950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 19951 if test ${xorg_cv_cc_flag_unknown_warning_option+y} 19952 then : 19953 printf %s "(cached) " >&6 19954 else case e in #( 19955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19956 /* end confdefs.h. */ 19957 int i; 19958 _ACEOF 19959 if ac_fn_c_try_compile "$LINENO" 19960 then : 19961 xorg_cv_cc_flag_unknown_warning_option=yes 19962 else case e in #( 19963 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 19964 esac 19965 fi 19966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19967 esac 19968 fi 19969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 19970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 19971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 19972 CFLAGS="$xorg_testset_save_CFLAGS" 19973 fi 19974 19975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 19976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19978 fi 19979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 19981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 19982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 19983 then : 19984 printf %s "(cached) " >&6 19985 else case e in #( 19986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19987 /* end confdefs.h. */ 19988 int i; 19989 _ACEOF 19990 if ac_fn_c_try_compile "$LINENO" 19991 then : 19992 xorg_cv_cc_flag_unused_command_line_argument=yes 19993 else case e in #( 19994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 19995 esac 19996 fi 19997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 19998 esac 19999 fi 20000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 20001 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 20002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 20003 CFLAGS="$xorg_testset_save_CFLAGS" 20004 fi 20005 20006 found="no" 20007 20008 if test $found = "no" ; then 20009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 20010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 20011 fi 20012 20013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 20014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 20015 fi 20016 20017 CFLAGS="$CFLAGS -Werror=attributes" 20018 20019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 20020 printf %s "checking if $CC supports -Werror=attributes... " >&6; } 20021 cacheid=xorg_cv_cc_flag__Werror_attributes 20022 if eval test \${$cacheid+y} 20023 then : 20024 printf %s "(cached) " >&6 20025 else case e in #( 20026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20027 /* end confdefs.h. */ 20028 int i; 20029 int 20030 main (void) 20031 { 20032 20033 ; 20034 return 0; 20035 } 20036 _ACEOF 20037 if ac_fn_c_try_link "$LINENO" 20038 then : 20039 eval $cacheid=yes 20040 else case e in #( 20041 e) eval $cacheid=no ;; 20042 esac 20043 fi 20044 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20045 conftest$ac_exeext conftest.$ac_ext ;; 20046 esac 20047 fi 20048 20049 20050 CFLAGS="$xorg_testset_save_CFLAGS" 20051 20052 eval supported=\$$cacheid 20053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 20054 printf "%s\n" "$supported" >&6; } 20055 if test "$supported" = "yes" ; then 20056 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 20057 found="yes" 20058 fi 20059 fi 20060 20061 20062 20063 if test "x$STRICT_COMPILE" = "xyes"; then 20064 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 20065 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 20066 fi 20067 20068 20069 20070 20071 20072 20073 20074 20075 cat >>confdefs.h <<_ACEOF 20076 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 20077 _ACEOF 20078 20079 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 20080 if test "x$PVM" = "x"; then 20081 PVM="0" 20082 fi 20083 20084 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 20085 20086 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 20087 if test "x$PVP" = "x"; then 20088 PVP="0" 20089 fi 20090 20091 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 20092 20093 20094 20095 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 20096 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 20097 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 20098 touch \$(top_srcdir)/ChangeLog; \ 20099 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 20100 20101 20102 20103 20104 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 20105 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 20106 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 20107 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 20108 touch \$(top_srcdir)/INSTALL; \ 20109 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 20110 20111 20112 20113 20114 20115 20116 case $host_os in 20117 solaris*) 20118 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 20119 # check for a man page file found in later versions that use 20120 # traditional section numbers instead 20121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 20122 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 20123 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 20124 then : 20125 printf %s "(cached) " >&6 20126 else case e in #( 20127 e) test "$cross_compiling" = yes && 20128 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 20129 if test -r "/usr/share/man/man7/attributes.7"; then 20130 ac_cv_file__usr_share_man_man7_attributes_7=yes 20131 else 20132 ac_cv_file__usr_share_man_man7_attributes_7=no 20133 fi ;; 20134 esac 20135 fi 20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 20137 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 20138 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 20139 then : 20140 SYSV_MAN_SECTIONS=false 20141 else case e in #( 20142 e) SYSV_MAN_SECTIONS=true ;; 20143 esac 20144 fi 20145 20146 ;; 20147 *) SYSV_MAN_SECTIONS=false ;; 20148 esac 20149 20150 if test x$APP_MAN_SUFFIX = x ; then 20151 APP_MAN_SUFFIX=1 20152 fi 20153 if test x$APP_MAN_DIR = x ; then 20154 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 20155 fi 20156 20157 if test x$LIB_MAN_SUFFIX = x ; then 20158 LIB_MAN_SUFFIX=3 20159 fi 20160 if test x$LIB_MAN_DIR = x ; then 20161 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 20162 fi 20163 20164 if test x$FILE_MAN_SUFFIX = x ; then 20165 case $SYSV_MAN_SECTIONS in 20166 true) FILE_MAN_SUFFIX=4 ;; 20167 *) FILE_MAN_SUFFIX=5 ;; 20168 esac 20169 fi 20170 if test x$FILE_MAN_DIR = x ; then 20171 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 20172 fi 20173 20174 if test x$MISC_MAN_SUFFIX = x ; then 20175 case $SYSV_MAN_SECTIONS in 20176 true) MISC_MAN_SUFFIX=5 ;; 20177 *) MISC_MAN_SUFFIX=7 ;; 20178 esac 20179 fi 20180 if test x$MISC_MAN_DIR = x ; then 20181 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 20182 fi 20183 20184 if test x$DRIVER_MAN_SUFFIX = x ; then 20185 case $SYSV_MAN_SECTIONS in 20186 true) DRIVER_MAN_SUFFIX=7 ;; 20187 *) DRIVER_MAN_SUFFIX=4 ;; 20188 esac 20189 fi 20190 if test x$DRIVER_MAN_DIR = x ; then 20191 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 20192 fi 20193 20194 if test x$ADMIN_MAN_SUFFIX = x ; then 20195 case $SYSV_MAN_SECTIONS in 20196 true) ADMIN_MAN_SUFFIX=1m ;; 20197 *) ADMIN_MAN_SUFFIX=8 ;; 20198 esac 20199 fi 20200 if test x$ADMIN_MAN_DIR = x ; then 20201 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 20202 fi 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 XORG_MAN_PAGE="X Version 11" 20219 20220 MAN_SUBSTS="\ 20221 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20222 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 20223 -e 's|__xservername__|Xorg|g' \ 20224 -e 's|__xconfigfile__|xorg.conf|g' \ 20225 -e 's|__projectroot__|\$(prefix)|g' \ 20226 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 20227 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 20228 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 20229 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 20230 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 20231 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 20232 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 20233 20234 20235 20236 20237 AM_DEFAULT_VERBOSITY=0 20238 20239 20240 20241 20242 # Check whether --enable-devel-docs was given. 20243 if test ${enable_devel_docs+y} 20244 then : 20245 enableval=$enable_devel_docs; build_devel_docs=$enableval 20246 else case e in #( 20247 e) build_devel_docs=yes ;; 20248 esac 20249 fi 20250 20251 20252 if test x$build_devel_docs = xyes; then 20253 ENABLE_DEVEL_DOCS_TRUE= 20254 ENABLE_DEVEL_DOCS_FALSE='#' 20255 else 20256 ENABLE_DEVEL_DOCS_TRUE='#' 20257 ENABLE_DEVEL_DOCS_FALSE= 20258 fi 20259 20260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 20261 printf %s "checking whether to build developer documentation... " >&6; } 20262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 20263 printf "%s\n" "$build_devel_docs" >&6; } 20264 20265 20266 20267 20268 20269 # Check whether --with-xmlto was given. 20270 if test ${with_xmlto+y} 20271 then : 20272 withval=$with_xmlto; use_xmlto=$withval 20273 else case e in #( 20274 e) use_xmlto=auto ;; 20275 esac 20276 fi 20277 20278 20279 20280 if test "x$use_xmlto" = x"auto"; then 20281 # Extract the first word of "xmlto", so it can be a program name with args. 20282 set dummy xmlto; ac_word=$2 20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20284 printf %s "checking for $ac_word... " >&6; } 20285 if test ${ac_cv_path_XMLTO+y} 20286 then : 20287 printf %s "(cached) " >&6 20288 else case e in #( 20289 e) case $XMLTO in 20290 [\\/]* | ?:[\\/]*) 20291 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20292 ;; 20293 *) 20294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20295 for as_dir in $PATH 20296 do 20297 IFS=$as_save_IFS 20298 case $as_dir in #((( 20299 '') as_dir=./ ;; 20300 */) ;; 20301 *) as_dir=$as_dir/ ;; 20302 esac 20303 for ac_exec_ext in '' $ac_executable_extensions; do 20304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20305 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20307 break 2 20308 fi 20309 done 20310 done 20311 IFS=$as_save_IFS 20312 20313 ;; 20314 esac ;; 20315 esac 20316 fi 20317 XMLTO=$ac_cv_path_XMLTO 20318 if test -n "$XMLTO"; then 20319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20320 printf "%s\n" "$XMLTO" >&6; } 20321 else 20322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20323 printf "%s\n" "no" >&6; } 20324 fi 20325 20326 20327 if test "x$XMLTO" = "x"; then 20328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 20329 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 20330 have_xmlto=no 20331 else 20332 have_xmlto=yes 20333 fi 20334 elif test "x$use_xmlto" = x"yes" ; then 20335 # Extract the first word of "xmlto", so it can be a program name with args. 20336 set dummy xmlto; ac_word=$2 20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20338 printf %s "checking for $ac_word... " >&6; } 20339 if test ${ac_cv_path_XMLTO+y} 20340 then : 20341 printf %s "(cached) " >&6 20342 else case e in #( 20343 e) case $XMLTO in 20344 [\\/]* | ?:[\\/]*) 20345 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 20346 ;; 20347 *) 20348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20349 for as_dir in $PATH 20350 do 20351 IFS=$as_save_IFS 20352 case $as_dir in #((( 20353 '') as_dir=./ ;; 20354 */) ;; 20355 *) as_dir=$as_dir/ ;; 20356 esac 20357 for ac_exec_ext in '' $ac_executable_extensions; do 20358 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20359 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext" 20360 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20361 break 2 20362 fi 20363 done 20364 done 20365 IFS=$as_save_IFS 20366 20367 ;; 20368 esac ;; 20369 esac 20370 fi 20371 XMLTO=$ac_cv_path_XMLTO 20372 if test -n "$XMLTO"; then 20373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 20374 printf "%s\n" "$XMLTO" >&6; } 20375 else 20376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20377 printf "%s\n" "no" >&6; } 20378 fi 20379 20380 20381 if test "x$XMLTO" = "x"; then 20382 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 20383 fi 20384 have_xmlto=yes 20385 elif test "x$use_xmlto" = x"no" ; then 20386 if test "x$XMLTO" != "x"; then 20387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 20388 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 20389 fi 20390 have_xmlto=no 20391 else 20392 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 20393 fi 20394 20395 # Test for a minimum version of xmlto, if provided. 20396 if test "$have_xmlto" = yes; then 20397 # scrape the xmlto version 20398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 20399 printf %s "checking the xmlto version... " >&6; } 20400 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 20401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 20402 printf "%s\n" "$xmlto_version" >&6; } 20403 as_arg_v1=$xmlto_version 20404 as_arg_v2=0.0.22 20405 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 20406 case $? in #( 20407 1) : 20408 if test "x$use_xmlto" = xauto; then 20409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 20410 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 20411 have_xmlto=no 20412 else 20413 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 20414 fi ;; #( 20415 0) : 20416 ;; #( 20417 2) : 20418 ;; #( 20419 *) : 20420 ;; 20421 esac 20422 fi 20423 20424 # Test for the ability of xmlto to generate a text target 20425 # 20426 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 20427 # following test for empty XML docbook files. 20428 # For compatibility reasons use the following empty XML docbook file and if 20429 # it fails try it again with a non-empty XML file. 20430 have_xmlto_text=no 20431 cat > conftest.xml << "EOF" 20432 EOF 20433 if test "$have_xmlto" = yes 20434 then : 20435 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20436 then : 20437 have_xmlto_text=yes 20438 else case e in #( 20439 e) # Try it again with a non-empty XML file. 20440 cat > conftest.xml << "EOF" 20441 <x></x> 20442 EOF 20443 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1 20444 then : 20445 have_xmlto_text=yes 20446 else case e in #( 20447 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 20448 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;; 20449 esac 20450 fi ;; 20451 esac 20452 fi 20453 fi 20454 rm -f conftest.xml 20455 if test $have_xmlto_text = yes; then 20456 HAVE_XMLTO_TEXT_TRUE= 20457 HAVE_XMLTO_TEXT_FALSE='#' 20458 else 20459 HAVE_XMLTO_TEXT_TRUE='#' 20460 HAVE_XMLTO_TEXT_FALSE= 20461 fi 20462 20463 if test "$have_xmlto" = yes; then 20464 HAVE_XMLTO_TRUE= 20465 HAVE_XMLTO_FALSE='#' 20466 else 20467 HAVE_XMLTO_TRUE='#' 20468 HAVE_XMLTO_FALSE= 20469 fi 20470 20471 20472 20473 20474 20475 20476 # Check whether --with-fop was given. 20477 if test ${with_fop+y} 20478 then : 20479 withval=$with_fop; use_fop=$withval 20480 else case e in #( 20481 e) use_fop=auto ;; 20482 esac 20483 fi 20484 20485 20486 20487 if test "x$use_fop" = x"auto"; then 20488 # Extract the first word of "fop", so it can be a program name with args. 20489 set dummy fop; ac_word=$2 20490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20491 printf %s "checking for $ac_word... " >&6; } 20492 if test ${ac_cv_path_FOP+y} 20493 then : 20494 printf %s "(cached) " >&6 20495 else case e in #( 20496 e) case $FOP in 20497 [\\/]* | ?:[\\/]*) 20498 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20499 ;; 20500 *) 20501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20502 for as_dir in $PATH 20503 do 20504 IFS=$as_save_IFS 20505 case $as_dir in #((( 20506 '') as_dir=./ ;; 20507 */) ;; 20508 *) as_dir=$as_dir/ ;; 20509 esac 20510 for ac_exec_ext in '' $ac_executable_extensions; do 20511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20512 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20514 break 2 20515 fi 20516 done 20517 done 20518 IFS=$as_save_IFS 20519 20520 ;; 20521 esac ;; 20522 esac 20523 fi 20524 FOP=$ac_cv_path_FOP 20525 if test -n "$FOP"; then 20526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20527 printf "%s\n" "$FOP" >&6; } 20528 else 20529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20530 printf "%s\n" "no" >&6; } 20531 fi 20532 20533 20534 if test "x$FOP" = "x"; then 20535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 20536 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 20537 have_fop=no 20538 else 20539 have_fop=yes 20540 fi 20541 elif test "x$use_fop" = x"yes" ; then 20542 # Extract the first word of "fop", so it can be a program name with args. 20543 set dummy fop; ac_word=$2 20544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20545 printf %s "checking for $ac_word... " >&6; } 20546 if test ${ac_cv_path_FOP+y} 20547 then : 20548 printf %s "(cached) " >&6 20549 else case e in #( 20550 e) case $FOP in 20551 [\\/]* | ?:[\\/]*) 20552 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 20553 ;; 20554 *) 20555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20556 for as_dir in $PATH 20557 do 20558 IFS=$as_save_IFS 20559 case $as_dir in #((( 20560 '') as_dir=./ ;; 20561 */) ;; 20562 *) as_dir=$as_dir/ ;; 20563 esac 20564 for ac_exec_ext in '' $ac_executable_extensions; do 20565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 20566 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext" 20567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 20568 break 2 20569 fi 20570 done 20571 done 20572 IFS=$as_save_IFS 20573 20574 ;; 20575 esac ;; 20576 esac 20577 fi 20578 FOP=$ac_cv_path_FOP 20579 if test -n "$FOP"; then 20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 20581 printf "%s\n" "$FOP" >&6; } 20582 else 20583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20584 printf "%s\n" "no" >&6; } 20585 fi 20586 20587 20588 if test "x$FOP" = "x"; then 20589 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 20590 fi 20591 have_fop=yes 20592 elif test "x$use_fop" = x"no" ; then 20593 if test "x$FOP" != "x"; then 20594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 20595 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 20596 fi 20597 have_fop=no 20598 else 20599 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 20600 fi 20601 20602 # Test for a minimum version of fop, if provided. 20603 20604 if test "$have_fop" = yes; then 20605 HAVE_FOP_TRUE= 20606 HAVE_FOP_FALSE='#' 20607 else 20608 HAVE_FOP_TRUE='#' 20609 HAVE_FOP_FALSE= 20610 fi 20611 20612 20613 20614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5 20615 printf %s "checking for X.Org SGML entities >= 1.7... " >&6; } 20616 XORG_SGML_PATH= 20617 if test -n "$PKG_CONFIG" && \ 20618 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5 20619 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5 20620 ac_status=$? 20621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20622 test $ac_status = 0; }; then 20623 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 20624 else 20625 : 20626 20627 fi 20628 20629 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 20630 # the path and the name of the doc stylesheet 20631 if test "x$XORG_SGML_PATH" != "x" ; then 20632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 20633 printf "%s\n" "$XORG_SGML_PATH" >&6; } 20634 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 20635 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 20636 else 20637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20638 printf "%s\n" "no" >&6; } 20639 fi 20640 20641 20642 20643 20644 if test "x$XSL_STYLESHEET" != "x"; then 20645 HAVE_STYLESHEETS_TRUE= 20646 HAVE_STYLESHEETS_FALSE='#' 20647 else 20648 HAVE_STYLESHEETS_TRUE='#' 20649 HAVE_STYLESHEETS_FALSE= 20650 fi 20651 20652 20653 20654 # Checks for header files. 20655 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 20656 if test "x$ac_cv_header_endian_h" = xyes 20657 then : 20658 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 20659 20660 fi 20661 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 20662 if test "x$ac_cv_header_poll_h" = xyes 20663 then : 20664 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 20665 20666 fi 20667 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 20668 if test "x$ac_cv_header_sys_poll_h" = xyes 20669 then : 20670 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h 20671 20672 fi 20673 20674 20675 # Checks for non-standard functions and fallback to libbsd if we can 20676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20677 /* end confdefs.h. */ 20678 20679 /* Override any GCC internal prototype to avoid an error. 20680 Use char because int might match the return type of a GCC 20681 builtin and then its argument prototype would still apply. 20682 The 'extern "C"' is for builds by C++ compilers; 20683 although this is not generally supported in C code supporting it here 20684 has little cost and some practical benefit (sr 110532). */ 20685 #ifdef __cplusplus 20686 extern "C" 20687 #endif 20688 char reallocarray (void); 20689 int 20690 main (void) 20691 { 20692 return reallocarray (); 20693 ; 20694 return 0; 20695 } 20696 _ACEOF 20697 if ac_fn_c_try_link "$LINENO" 20698 then : 20699 TRY_LIBBSD="no" 20700 else case e in #( 20701 e) TRY_LIBBSD="yes" ;; 20702 esac 20703 fi 20704 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20705 conftest$ac_exeext conftest.$ac_ext 20706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20707 /* end confdefs.h. */ 20708 20709 /* Override any GCC internal prototype to avoid an error. 20710 Use char because int might match the return type of a GCC 20711 builtin and then its argument prototype would still apply. 20712 The 'extern "C"' is for builds by C++ compilers; 20713 although this is not generally supported in C code supporting it here 20714 has little cost and some practical benefit (sr 110532). */ 20715 #ifdef __cplusplus 20716 extern "C" 20717 #endif 20718 char strlcat (void); 20719 int 20720 main (void) 20721 { 20722 return strlcat (); 20723 ; 20724 return 0; 20725 } 20726 _ACEOF 20727 if ac_fn_c_try_link "$LINENO" 20728 then : 20729 TRY_LIBBSD="no" 20730 else case e in #( 20731 e) TRY_LIBBSD="yes" ;; 20732 esac 20733 fi 20734 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20735 conftest$ac_exeext conftest.$ac_ext 20736 if test "x$TRY_LIBBSD" = "xyes" 20737 then : 20738 20739 pkg_failed=no 20740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBBSD" >&5 20741 printf %s "checking for LIBBSD... " >&6; } 20742 20743 if test -n "$LIBBSD_CFLAGS"; then 20744 pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS" 20745 elif test -n "$PKG_CONFIG"; then 20746 if test -n "$PKG_CONFIG" && \ 20747 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 20748 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 20749 ac_status=$? 20750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20751 test $ac_status = 0; }; then 20752 pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null` 20753 test "x$?" != "x0" && pkg_failed=yes 20754 else 20755 pkg_failed=yes 20756 fi 20757 else 20758 pkg_failed=untried 20759 fi 20760 if test -n "$LIBBSD_LIBS"; then 20761 pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS" 20762 elif test -n "$PKG_CONFIG"; then 20763 if test -n "$PKG_CONFIG" && \ 20764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5 20765 ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5 20766 ac_status=$? 20767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20768 test $ac_status = 0; }; then 20769 pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null` 20770 test "x$?" != "x0" && pkg_failed=yes 20771 else 20772 pkg_failed=yes 20773 fi 20774 else 20775 pkg_failed=untried 20776 fi 20777 20778 20779 20780 if test $pkg_failed = yes; then 20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20782 printf "%s\n" "no" >&6; } 20783 20784 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20785 _pkg_short_errors_supported=yes 20786 else 20787 _pkg_short_errors_supported=no 20788 fi 20789 if test $_pkg_short_errors_supported = yes; then 20790 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1` 20791 else 20792 LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1` 20793 fi 20794 # Put the nasty error message in config.log where it belongs 20795 echo "$LIBBSD_PKG_ERRORS" >&5 20796 20797 : 20798 elif test $pkg_failed = untried; then 20799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20800 printf "%s\n" "no" >&6; } 20801 : 20802 else 20803 LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS 20804 LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS 20805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20806 printf "%s\n" "yes" >&6; } 20807 20808 CFLAGS="$CFLAGS $LIBBSD_CFLAGS" 20809 LIBS="$LIBS $LIBBSD_LIBS" 20810 20811 fi 20812 fi 20813 20814 # Checks for library functions. 20815 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20816 if test "x$ac_cv_func_poll" = xyes 20817 then : 20818 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 20819 20820 fi 20821 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" 20822 if test "x$ac_cv_func_readlink" = xyes 20823 then : 20824 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h 20825 20826 fi 20827 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20828 if test "x$ac_cv_func_strlcat" = xyes 20829 then : 20830 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 20831 20832 fi 20833 20834 20835 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray" 20836 if test "x$ac_cv_func_reallocarray" = xyes 20837 then : 20838 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h 20839 20840 else case e in #( 20841 e) case " $LIBOBJS " in 20842 *" reallocarray.$ac_objext "* ) ;; 20843 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext" 20844 ;; 20845 esac 20846 ;; 20847 esac 20848 fi 20849 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 20850 if test "x$ac_cv_func_realpath" = xyes 20851 then : 20852 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h 20853 20854 else case e in #( 20855 e) case " $LIBOBJS " in 20856 *" realpath.$ac_objext "* ) ;; 20857 *) LIBOBJS="$LIBOBJS realpath.$ac_objext" 20858 ;; 20859 esac 20860 ;; 20861 esac 20862 fi 20863 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 20864 if test "x$ac_cv_func_strlcat" = xyes 20865 then : 20866 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 20867 20868 else case e in #( 20869 e) case " $LIBOBJS " in 20870 *" strlcat.$ac_objext "* ) ;; 20871 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 20872 ;; 20873 esac 20874 ;; 20875 esac 20876 fi 20877 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 20878 if test "x$ac_cv_func_strlcpy" = xyes 20879 then : 20880 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 20881 20882 else case e in #( 20883 e) case " $LIBOBJS " in 20884 *" strlcpy.$ac_objext "* ) ;; 20885 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 20886 ;; 20887 esac 20888 ;; 20889 esac 20890 fi 20891 20892 20893 # Checks for header files. 20894 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 20895 if test "x$ac_cv_header_err_h" = xyes 20896 then : 20897 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 20898 20899 fi 20900 ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 20901 if test "x$ac_cv_header_float_h" = xyes 20902 then : 20903 printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h 20904 20905 fi 20906 20907 20908 # Checks for typedefs, structures, and compiler characteristics. 20909 # Check whether --enable-largefile was given. 20910 if test ${enable_largefile+y} 20911 then : 20912 enableval=$enable_largefile; 20913 fi 20914 if test "$enable_largefile,$enable_year2038" != no,no 20915 then : 20916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 20917 printf %s "checking for $CC option to enable large file support... " >&6; } 20918 if test ${ac_cv_sys_largefile_opts+y} 20919 then : 20920 printf %s "(cached) " >&6 20921 else case e in #( 20922 e) ac_save_CC="$CC" 20923 ac_opt_found=no 20924 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 20925 if test x"$ac_opt" != x"none needed" 20926 then : 20927 CC="$ac_save_CC $ac_opt" 20928 fi 20929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20930 /* end confdefs.h. */ 20931 #include <sys/types.h> 20932 #ifndef FTYPE 20933 # define FTYPE off_t 20934 #endif 20935 /* Check that FTYPE can represent 2**63 - 1 correctly. 20936 We can't simply define LARGE_FTYPE to be 9223372036854775807, 20937 since some C++ compilers masquerading as C compilers 20938 incorrectly reject 9223372036854775807. */ 20939 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 20940 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 20941 && LARGE_FTYPE % 2147483647 == 1) 20942 ? 1 : -1]; 20943 int 20944 main (void) 20945 { 20946 20947 ; 20948 return 0; 20949 } 20950 _ACEOF 20951 if ac_fn_c_try_compile "$LINENO" 20952 then : 20953 if test x"$ac_opt" = x"none needed" 20954 then : 20955 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 20956 CC="$CC -DFTYPE=ino_t" 20957 if ac_fn_c_try_compile "$LINENO" 20958 then : 20959 20960 else case e in #( 20961 e) CC="$CC -D_FILE_OFFSET_BITS=64" 20962 if ac_fn_c_try_compile "$LINENO" 20963 then : 20964 ac_opt='-D_FILE_OFFSET_BITS=64' 20965 fi 20966 rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 20967 esac 20968 fi 20969 rm -f core conftest.err conftest.$ac_objext conftest.beam 20970 fi 20971 ac_cv_sys_largefile_opts=$ac_opt 20972 ac_opt_found=yes 20973 fi 20974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 20975 test $ac_opt_found = no || break 20976 done 20977 CC="$ac_save_CC" 20978 20979 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 20980 esac 20981 fi 20982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 20983 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 20984 20985 ac_have_largefile=yes 20986 case $ac_cv_sys_largefile_opts in #( 20987 "none needed") : 20988 ;; #( 20989 "supported through gnulib") : 20990 ;; #( 20991 "support not detected") : 20992 ac_have_largefile=no ;; #( 20993 "-D_FILE_OFFSET_BITS=64") : 20994 20995 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 20996 ;; #( 20997 "-D_LARGE_FILES=1") : 20998 20999 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 21000 ;; #( 21001 "-n32") : 21002 CC="$CC -n32" ;; #( 21003 *) : 21004 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 21005 esac 21006 21007 if test "$enable_year2038" != no 21008 then : 21009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 21010 printf %s "checking for $CC option for timestamps after 2038... " >&6; } 21011 if test ${ac_cv_sys_year2038_opts+y} 21012 then : 21013 printf %s "(cached) " >&6 21014 else case e in #( 21015 e) ac_save_CPPFLAGS="$CPPFLAGS" 21016 ac_opt_found=no 21017 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 21018 if test x"$ac_opt" != x"none needed" 21019 then : 21020 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 21021 fi 21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21023 /* end confdefs.h. */ 21024 21025 #include <time.h> 21026 /* Check that time_t can represent 2**32 - 1 correctly. */ 21027 #define LARGE_TIME_T \\ 21028 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 21029 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 21030 && LARGE_TIME_T % 65537 == 0) 21031 ? 1 : -1]; 21032 21033 int 21034 main (void) 21035 { 21036 21037 ; 21038 return 0; 21039 } 21040 _ACEOF 21041 if ac_fn_c_try_compile "$LINENO" 21042 then : 21043 ac_cv_sys_year2038_opts="$ac_opt" 21044 ac_opt_found=yes 21045 fi 21046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21047 test $ac_opt_found = no || break 21048 done 21049 CPPFLAGS="$ac_save_CPPFLAGS" 21050 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 21051 esac 21052 fi 21053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 21054 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 21055 21056 ac_have_year2038=yes 21057 case $ac_cv_sys_year2038_opts in #( 21058 "none needed") : 21059 ;; #( 21060 "support not detected") : 21061 ac_have_year2038=no ;; #( 21062 "-D_TIME_BITS=64") : 21063 21064 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 21065 ;; #( 21066 "-D__MINGW_USE_VC2005_COMPAT") : 21067 21068 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 21069 ;; #( 21070 "-U_USE_32_BIT_TIME_T"*) : 21071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21072 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21073 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 21074 will stop working after mid-January 2038. Remove 21075 _USE_32BIT_TIME_T from the compiler flags. 21076 See 'config.log' for more details" "$LINENO" 5; } ;; #( 21077 *) : 21078 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 21079 esac 21080 21081 fi 21082 21083 fi 21084 21085 # 21086 # select libraries to include 21087 # 21088 21089 XFONT_FONTFILE=no 21090 21091 # 21092 # FreeType for all scalable (OpenType, TrueType, PostScript) and 21093 # some bitmap formats (BDF & PCF) 21094 # 21095 # Check whether --enable-freetype was given. 21096 if test ${enable_freetype+y} 21097 then : 21098 enableval=$enable_freetype; XFONT_FREETYPE=$enableval 21099 else case e in #( 21100 e) XFONT_FREETYPE=yes ;; 21101 esac 21102 fi 21103 21104 if test x$XFONT_FREETYPE = xyes; then 21105 XFONT_FREETYPE_TRUE= 21106 XFONT_FREETYPE_FALSE='#' 21107 else 21108 XFONT_FREETYPE_TRUE='#' 21109 XFONT_FREETYPE_FALSE= 21110 fi 21111 21112 if test x$XFONT_FREETYPE = xyes; then 21113 21114 printf "%s\n" "#define XFONT_FREETYPE 1" >>confdefs.h 21115 21116 21117 # Check whether --with-freetype-config was given. 21118 if test ${with_freetype_config+y} 21119 then : 21120 withval=$with_freetype_config; freetype_config=$withval 21121 else case e in #( 21122 e) freetype_config=auto ;; 21123 esac 21124 fi 21125 21126 21127 if test "$freetype_config" = "auto" ; then 21128 21129 pkg_failed=no 21130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 21131 printf %s "checking for FREETYPE... " >&6; } 21132 21133 if test -n "$FREETYPE_CFLAGS"; then 21134 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 21135 elif test -n "$PKG_CONFIG"; then 21136 if test -n "$PKG_CONFIG" && \ 21137 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 21138 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 21139 ac_status=$? 21140 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21141 test $ac_status = 0; }; then 21142 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 21143 test "x$?" != "x0" && pkg_failed=yes 21144 else 21145 pkg_failed=yes 21146 fi 21147 else 21148 pkg_failed=untried 21149 fi 21150 if test -n "$FREETYPE_LIBS"; then 21151 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 21152 elif test -n "$PKG_CONFIG"; then 21153 if test -n "$PKG_CONFIG" && \ 21154 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 21155 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 21156 ac_status=$? 21157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21158 test $ac_status = 0; }; then 21159 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 21160 test "x$?" != "x0" && pkg_failed=yes 21161 else 21162 pkg_failed=yes 21163 fi 21164 else 21165 pkg_failed=untried 21166 fi 21167 21168 21169 21170 if test $pkg_failed = yes; then 21171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21172 printf "%s\n" "no" >&6; } 21173 21174 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21175 _pkg_short_errors_supported=yes 21176 else 21177 _pkg_short_errors_supported=no 21178 fi 21179 if test $_pkg_short_errors_supported = yes; then 21180 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1` 21181 else 21182 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1` 21183 fi 21184 # Put the nasty error message in config.log where it belongs 21185 echo "$FREETYPE_PKG_ERRORS" >&5 21186 21187 freetype_config=yes 21188 elif test $pkg_failed = untried; then 21189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21190 printf "%s\n" "no" >&6; } 21191 freetype_config=yes 21192 else 21193 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 21194 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 21195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21196 printf "%s\n" "yes" >&6; } 21197 freetype_config=no 21198 fi 21199 fi 21200 21201 if test "$freetype_config" = "yes"; then 21202 # Extract the first word of "freetype-config", so it can be a program name with args. 21203 set dummy freetype-config; ac_word=$2 21204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21205 printf %s "checking for $ac_word... " >&6; } 21206 if test ${ac_cv_path_ft_config+y} 21207 then : 21208 printf %s "(cached) " >&6 21209 else case e in #( 21210 e) case $ft_config in 21211 [\\/]* | ?:[\\/]*) 21212 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path. 21213 ;; 21214 *) 21215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21216 for as_dir in $PATH 21217 do 21218 IFS=$as_save_IFS 21219 case $as_dir in #((( 21220 '') as_dir=./ ;; 21221 */) ;; 21222 *) as_dir=$as_dir/ ;; 21223 esac 21224 for ac_exec_ext in '' $ac_executable_extensions; do 21225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 21226 ac_cv_path_ft_config="$as_dir$ac_word$ac_exec_ext" 21227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 21228 break 2 21229 fi 21230 done 21231 done 21232 IFS=$as_save_IFS 21233 21234 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no" 21235 ;; 21236 esac ;; 21237 esac 21238 fi 21239 ft_config=$ac_cv_path_ft_config 21240 if test -n "$ft_config"; then 21241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5 21242 printf "%s\n" "$ft_config" >&6; } 21243 else 21244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21245 printf "%s\n" "no" >&6; } 21246 fi 21247 21248 21249 if test "$ft_config" = "no"; then 21250 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5 21251 fi 21252 else 21253 ft_config="$freetype_config" 21254 fi 21255 21256 if test "$freetype_config" != "no"; then 21257 FREETYPE_CFLAGS="`$ft_config --cflags`" 21258 FREETYPE_LIBS="`$ft_config --libs`" 21259 fi 21260 FREETYPE_REQUIRES="freetype2" 21261 XFONT_FONTFILE=yes 21262 else 21263 FREETYPE_CFLAGS="" 21264 FREETYPE_LIBS="" 21265 FREETYPE_REQUIRES="" 21266 fi 21267 21268 21269 21270 21271 # 21272 # Bitmap fonts in files: 21273 # Builtins (gzipped pcf format in .text segment) 21274 # PCF 21275 # BDF 21276 # SNF 21277 # 21278 21279 21280 printf "%s\n" "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h 21281 21282 X_GZIP_FONT_COMPRESSION=1 21283 21284 21285 pkg_failed=no 21286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5 21287 printf %s "checking for ZLIB... " >&6; } 21288 21289 if test -n "$ZLIB_CFLAGS"; then 21290 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 21291 elif test -n "$PKG_CONFIG"; then 21292 if test -n "$PKG_CONFIG" && \ 21293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 21294 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 21295 ac_status=$? 21296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21297 test $ac_status = 0; }; then 21298 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null` 21299 test "x$?" != "x0" && pkg_failed=yes 21300 else 21301 pkg_failed=yes 21302 fi 21303 else 21304 pkg_failed=untried 21305 fi 21306 if test -n "$ZLIB_LIBS"; then 21307 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 21308 elif test -n "$PKG_CONFIG"; then 21309 if test -n "$PKG_CONFIG" && \ 21310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5 21311 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5 21312 ac_status=$? 21313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21314 test $ac_status = 0; }; then 21315 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null` 21316 test "x$?" != "x0" && pkg_failed=yes 21317 else 21318 pkg_failed=yes 21319 fi 21320 else 21321 pkg_failed=untried 21322 fi 21323 21324 21325 21326 if test $pkg_failed = yes; then 21327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21328 printf "%s\n" "no" >&6; } 21329 21330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21331 _pkg_short_errors_supported=yes 21332 else 21333 _pkg_short_errors_supported=no 21334 fi 21335 if test $_pkg_short_errors_supported = yes; then 21336 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1` 21337 else 21338 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1` 21339 fi 21340 # Put the nasty error message in config.log where it belongs 21341 echo "$ZLIB_PKG_ERRORS" >&5 21342 21343 Z_REQUIRES="" 21344 elif test $pkg_failed = untried; then 21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21346 printf "%s\n" "no" >&6; } 21347 Z_REQUIRES="" 21348 else 21349 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 21350 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 21351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21352 printf "%s\n" "yes" >&6; } 21353 Z_REQUIRES=zlib 21354 fi 21355 if test "x$Z_REQUIRES" = "x"; then 21356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 21357 printf %s "checking for gzopen in -lz... " >&6; } 21358 if test ${ac_cv_lib_z_gzopen+y} 21359 then : 21360 printf %s "(cached) " >&6 21361 else case e in #( 21362 e) ac_check_lib_save_LIBS=$LIBS 21363 LIBS="-lz $LIBS" 21364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21365 /* end confdefs.h. */ 21366 21367 /* Override any GCC internal prototype to avoid an error. 21368 Use char because int might match the return type of a GCC 21369 builtin and then its argument prototype would still apply. 21370 The 'extern "C"' is for builds by C++ compilers; 21371 although this is not generally supported in C code supporting it here 21372 has little cost and some practical benefit (sr 110532). */ 21373 #ifdef __cplusplus 21374 extern "C" 21375 #endif 21376 char gzopen (void); 21377 int 21378 main (void) 21379 { 21380 return gzopen (); 21381 ; 21382 return 0; 21383 } 21384 _ACEOF 21385 if ac_fn_c_try_link "$LINENO" 21386 then : 21387 ac_cv_lib_z_gzopen=yes 21388 else case e in #( 21389 e) ac_cv_lib_z_gzopen=no ;; 21390 esac 21391 fi 21392 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21393 conftest$ac_exeext conftest.$ac_ext 21394 LIBS=$ac_check_lib_save_LIBS ;; 21395 esac 21396 fi 21397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 21398 printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; } 21399 if test "x$ac_cv_lib_z_gzopen" = xyes 21400 then : 21401 Z_LIBS=-lz 21402 else case e in #( 21403 e) as_fn_error $? "*** zlib is required" "$LINENO" 5 ;; 21404 esac 21405 fi 21406 21407 fi 21408 21409 21410 21411 # Check whether --with-bzip2 was given. 21412 if test ${with_bzip2+y} 21413 then : 21414 withval=$with_bzip2; 21415 else case e in #( 21416 e) with_bzip2=no ;; 21417 esac 21418 fi 21419 21420 if test "x$with_bzip2" = xyes; then 21421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5 21422 printf %s "checking for BZ2_bzopen in -lbz2... " >&6; } 21423 if test ${ac_cv_lib_bz2_BZ2_bzopen+y} 21424 then : 21425 printf %s "(cached) " >&6 21426 else case e in #( 21427 e) ac_check_lib_save_LIBS=$LIBS 21428 LIBS="-lbz2 $LIBS" 21429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21430 /* end confdefs.h. */ 21431 21432 /* Override any GCC internal prototype to avoid an error. 21433 Use char because int might match the return type of a GCC 21434 builtin and then its argument prototype would still apply. 21435 The 'extern "C"' is for builds by C++ compilers; 21436 although this is not generally supported in C code supporting it here 21437 has little cost and some practical benefit (sr 110532). */ 21438 #ifdef __cplusplus 21439 extern "C" 21440 #endif 21441 char BZ2_bzopen (void); 21442 int 21443 main (void) 21444 { 21445 return BZ2_bzopen (); 21446 ; 21447 return 0; 21448 } 21449 _ACEOF 21450 if ac_fn_c_try_link "$LINENO" 21451 then : 21452 ac_cv_lib_bz2_BZ2_bzopen=yes 21453 else case e in #( 21454 e) ac_cv_lib_bz2_BZ2_bzopen=no ;; 21455 esac 21456 fi 21457 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21458 conftest$ac_exeext conftest.$ac_ext 21459 LIBS=$ac_check_lib_save_LIBS ;; 21460 esac 21461 fi 21462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5 21463 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzopen" >&6; } 21464 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes 21465 then : 21466 Z_LIBS="$Z_LIBS -lbz2" 21467 else case e in #( 21468 e) as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5 ;; 21469 esac 21470 fi 21471 21472 21473 printf "%s\n" "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h 21474 21475 fi 21476 if test "x$with_bzip2" = xyes ; then 21477 X_BZIP2_FONT_COMPRESSION_TRUE= 21478 X_BZIP2_FONT_COMPRESSION_FALSE='#' 21479 else 21480 X_BZIP2_FONT_COMPRESSION_TRUE='#' 21481 X_BZIP2_FONT_COMPRESSION_FALSE= 21482 fi 21483 21484 21485 21486 # Check whether --enable-builtins was given. 21487 if test ${enable_builtins+y} 21488 then : 21489 enableval=$enable_builtins; XFONT_BUILTINS=$enableval 21490 else case e in #( 21491 e) XFONT_BUILTINS=yes ;; 21492 esac 21493 fi 21494 21495 if test "x$XFONT_BUILTINS" = xyes ; then 21496 XFONT_BUILTINS_TRUE= 21497 XFONT_BUILTINS_FALSE='#' 21498 else 21499 XFONT_BUILTINS_TRUE='#' 21500 XFONT_BUILTINS_FALSE= 21501 fi 21502 21503 if test "x$XFONT_BUILTINS" = xyes; then 21504 21505 printf "%s\n" "#define XFONT_BUILTINS 1" >>confdefs.h 21506 21507 XFONT_BITMAP=yes 21508 fi 21509 21510 # Check whether --enable-pcfformat was given. 21511 if test ${enable_pcfformat+y} 21512 then : 21513 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval 21514 else case e in #( 21515 e) XFONT_PCFFORMAT=yes ;; 21516 esac 21517 fi 21518 21519 if test "x$XFONT_PCFFORMAT" = xyes; then 21520 XFONT_PCFFORMAT_TRUE= 21521 XFONT_PCFFORMAT_FALSE='#' 21522 else 21523 XFONT_PCFFORMAT_TRUE='#' 21524 XFONT_PCFFORMAT_FALSE= 21525 fi 21526 21527 if test "x$XFONT_PCFFORMAT" = xyes; then 21528 21529 printf "%s\n" "#define XFONT_PCFFORMAT 1" >>confdefs.h 21530 21531 XFONT_BITMAP=yes 21532 fi 21533 21534 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then 21535 XFONT_PCF_OR_BUILTIN_TRUE= 21536 XFONT_PCF_OR_BUILTIN_FALSE='#' 21537 else 21538 XFONT_PCF_OR_BUILTIN_TRUE='#' 21539 XFONT_PCF_OR_BUILTIN_FALSE= 21540 fi 21541 21542 21543 # Check whether --enable-bdfformat was given. 21544 if test ${enable_bdfformat+y} 21545 then : 21546 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval 21547 else case e in #( 21548 e) XFONT_BDFFORMAT=yes ;; 21549 esac 21550 fi 21551 21552 if test "x$XFONT_BDFFORMAT" = xyes; then 21553 XFONT_BDFFORMAT_TRUE= 21554 XFONT_BDFFORMAT_FALSE='#' 21555 else 21556 XFONT_BDFFORMAT_TRUE='#' 21557 XFONT_BDFFORMAT_FALSE= 21558 fi 21559 21560 if test "x$XFONT_BDFFORMAT" = xyes; then 21561 21562 printf "%s\n" "#define XFONT_BDFFORMAT 1" >>confdefs.h 21563 21564 XFONT_BITMAP=yes 21565 fi 21566 21567 # Check whether --enable-snfformat was given. 21568 if test ${enable_snfformat+y} 21569 then : 21570 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval 21571 else case e in #( 21572 e) XFONT_SNFFORMAT=no ;; 21573 esac 21574 fi 21575 21576 if test "x$XFONT_SNFFORMAT" = xyes; then 21577 XFONT_SNFFORMAT_TRUE= 21578 XFONT_SNFFORMAT_FALSE='#' 21579 else 21580 XFONT_SNFFORMAT_TRUE='#' 21581 XFONT_SNFFORMAT_FALSE= 21582 fi 21583 21584 if test "x$XFONT_SNFFORMAT" = xyes; then 21585 21586 printf "%s\n" "#define XFONT_SNFFORMAT 1" >>confdefs.h 21587 21588 XFONT_BITMAP=yes 21589 fi 21590 21591 if test "x$XFONT_BITMAP" = xyes ; then 21592 XFONT_BITMAP_TRUE= 21593 XFONT_BITMAP_FALSE='#' 21594 else 21595 XFONT_BITMAP_TRUE='#' 21596 XFONT_BITMAP_FALSE= 21597 fi 21598 21599 if test "x$XFONT_BITMAP" = xyes; then 21600 21601 printf "%s\n" "#define XFONT_BITMAP 1" >>confdefs.h 21602 21603 XFONT_FONTFILE=yes 21604 fi 21605 21606 if test "x$XFONT_FONTFILE" = xyes; then 21607 XFONT_FONTFILE_TRUE= 21608 XFONT_FONTFILE_FALSE='#' 21609 else 21610 XFONT_FONTFILE_TRUE='#' 21611 XFONT_FONTFILE_FALSE= 21612 fi 21613 21614 if test "x$XFONT_FONTFILE" = xyes; then 21615 21616 printf "%s\n" "#define XFONT_FONTFILE 1" >>confdefs.h 21617 21618 fi 21619 21620 # 21621 # Support connection to font servers? 21622 # 21623 21624 # Check whether --enable-fc was given. 21625 if test ${enable_fc+y} 21626 then : 21627 enableval=$enable_fc; XFONT_FC=$enableval 21628 else case e in #( 21629 e) XFONT_FC=yes ;; 21630 esac 21631 fi 21632 21633 if test "x$XFONT_FC" = xyes; then 21634 XFONT_FC_TRUE= 21635 XFONT_FC_FALSE='#' 21636 else 21637 XFONT_FC_TRUE='#' 21638 XFONT_FC_FALSE= 21639 fi 21640 21641 if test "x$XFONT_FC" = xyes; then 21642 21643 printf "%s\n" "#define XFONT_FC 1" >>confdefs.h 21644 21645 fi 21646 21647 21648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5 21649 printf %s "checking for hypot in -lm... " >&6; } 21650 if test ${ac_cv_lib_m_hypot+y} 21651 then : 21652 printf %s "(cached) " >&6 21653 else case e in #( 21654 e) ac_check_lib_save_LIBS=$LIBS 21655 LIBS="-lm $LIBS" 21656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21657 /* end confdefs.h. */ 21658 21659 /* Override any GCC internal prototype to avoid an error. 21660 Use char because int might match the return type of a GCC 21661 builtin and then its argument prototype would still apply. 21662 The 'extern "C"' is for builds by C++ compilers; 21663 although this is not generally supported in C code supporting it here 21664 has little cost and some practical benefit (sr 110532). */ 21665 #ifdef __cplusplus 21666 extern "C" 21667 #endif 21668 char hypot (void); 21669 int 21670 main (void) 21671 { 21672 return hypot (); 21673 ; 21674 return 0; 21675 } 21676 _ACEOF 21677 if ac_fn_c_try_link "$LINENO" 21678 then : 21679 ac_cv_lib_m_hypot=yes 21680 else case e in #( 21681 e) ac_cv_lib_m_hypot=no ;; 21682 esac 21683 fi 21684 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21685 conftest$ac_exeext conftest.$ac_ext 21686 LIBS=$ac_check_lib_save_LIBS ;; 21687 esac 21688 fi 21689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5 21690 printf "%s\n" "$ac_cv_lib_m_hypot" >&6; } 21691 if test "x$ac_cv_lib_m_hypot" = xyes 21692 then : 21693 MATH_LIBS=-lm 21694 21695 else case e in #( 21696 e) as_fn_error $? "*** libm is required" "$LINENO" 5 ;; 21697 esac 21698 fi 21699 21700 21701 21702 pkg_failed=no 21703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5 21704 printf %s "checking for XFONT... " >&6; } 21705 21706 if test -n "$XFONT_CFLAGS"; then 21707 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS" 21708 elif test -n "$PKG_CONFIG"; then 21709 if test -n "$PKG_CONFIG" && \ 21710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 21711 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 21712 ac_status=$? 21713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21714 test $ac_status = 0; }; then 21715 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 21716 test "x$?" != "x0" && pkg_failed=yes 21717 else 21718 pkg_failed=yes 21719 fi 21720 else 21721 pkg_failed=untried 21722 fi 21723 if test -n "$XFONT_LIBS"; then 21724 pkg_cv_XFONT_LIBS="$XFONT_LIBS" 21725 elif test -n "$PKG_CONFIG"; then 21726 if test -n "$PKG_CONFIG" && \ 21727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5 21728 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5 21729 ac_status=$? 21730 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21731 test $ac_status = 0; }; then 21732 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null` 21733 test "x$?" != "x0" && pkg_failed=yes 21734 else 21735 pkg_failed=yes 21736 fi 21737 else 21738 pkg_failed=untried 21739 fi 21740 21741 21742 21743 if test $pkg_failed = yes; then 21744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21745 printf "%s\n" "no" >&6; } 21746 21747 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21748 _pkg_short_errors_supported=yes 21749 else 21750 _pkg_short_errors_supported=no 21751 fi 21752 if test $_pkg_short_errors_supported = yes; then 21753 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 21754 else 21755 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1` 21756 fi 21757 # Put the nasty error message in config.log where it belongs 21758 echo "$XFONT_PKG_ERRORS" >&5 21759 21760 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met: 21761 21762 $XFONT_PKG_ERRORS 21763 21764 Consider adjusting the PKG_CONFIG_PATH environment variable if you 21765 installed software in a non-standard prefix. 21766 21767 Alternatively, you may set the environment variables XFONT_CFLAGS 21768 and XFONT_LIBS to avoid the need to call pkg-config. 21769 See the pkg-config man page for more details." "$LINENO" 5 21770 elif test $pkg_failed = untried; then 21771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 21772 printf "%s\n" "no" >&6; } 21773 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 21774 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 21775 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21776 is in your PATH or set the PKG_CONFIG environment variable to the full 21777 path to pkg-config. 21778 21779 Alternatively, you may set the environment variables XFONT_CFLAGS 21780 and XFONT_LIBS to avoid the need to call pkg-config. 21781 See the pkg-config man page for more details. 21782 21783 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21784 See 'config.log' for more details" "$LINENO" 5; } 21785 else 21786 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS 21787 XFONT_LIBS=$pkg_cv_XFONT_LIBS 21788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21789 printf "%s\n" "yes" >&6; } 21790 21791 fi 21792 21793 # Transport selection macro from xtrans.m4 21794 21795 21796 case $host_os in 21797 mingw*) unixdef="no" ;; 21798 *) unixdef="yes" ;; 21799 esac 21800 # Check whether --enable-unix-transport was given. 21801 if test ${enable_unix_transport+y} 21802 then : 21803 enableval=$enable_unix_transport; UNIXCONN=$enableval 21804 else case e in #( 21805 e) UNIXCONN=$unixdef ;; 21806 esac 21807 fi 21808 21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 21810 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; } 21811 if test "$UNIXCONN" = "yes"; then 21812 21813 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h 21814 21815 fi 21816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 21817 printf "%s\n" "$UNIXCONN" >&6; } 21818 # Check whether --enable-tcp-transport was given. 21819 if test ${enable_tcp_transport+y} 21820 then : 21821 enableval=$enable_tcp_transport; TCPCONN=$enableval 21822 else case e in #( 21823 e) TCPCONN=yes ;; 21824 esac 21825 fi 21826 21827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 21828 printf %s "checking if Xtrans should support TCP socket connections... " >&6; } 21829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 21830 printf "%s\n" "$TCPCONN" >&6; } 21831 if test "$TCPCONN" = "yes"; then 21832 21833 printf "%s\n" "#define TCPCONN 1" >>confdefs.h 21834 21835 21836 # SVR4 hides these in libraries other than libc 21837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 21838 printf %s "checking for library containing socket... " >&6; } 21839 if test ${ac_cv_search_socket+y} 21840 then : 21841 printf %s "(cached) " >&6 21842 else case e in #( 21843 e) ac_func_search_save_LIBS=$LIBS 21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21845 /* end confdefs.h. */ 21846 21847 /* Override any GCC internal prototype to avoid an error. 21848 Use char because int might match the return type of a GCC 21849 builtin and then its argument prototype would still apply. 21850 The 'extern "C"' is for builds by C++ compilers; 21851 although this is not generally supported in C code supporting it here 21852 has little cost and some practical benefit (sr 110532). */ 21853 #ifdef __cplusplus 21854 extern "C" 21855 #endif 21856 char socket (void); 21857 int 21858 main (void) 21859 { 21860 return socket (); 21861 ; 21862 return 0; 21863 } 21864 _ACEOF 21865 for ac_lib in '' socket 21866 do 21867 if test -z "$ac_lib"; then 21868 ac_res="none required" 21869 else 21870 ac_res=-l$ac_lib 21871 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21872 fi 21873 if ac_fn_c_try_link "$LINENO" 21874 then : 21875 ac_cv_search_socket=$ac_res 21876 fi 21877 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21878 conftest$ac_exeext 21879 if test ${ac_cv_search_socket+y} 21880 then : 21881 break 21882 fi 21883 done 21884 if test ${ac_cv_search_socket+y} 21885 then : 21886 21887 else case e in #( 21888 e) ac_cv_search_socket=no ;; 21889 esac 21890 fi 21891 rm conftest.$ac_ext 21892 LIBS=$ac_func_search_save_LIBS ;; 21893 esac 21894 fi 21895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 21896 printf "%s\n" "$ac_cv_search_socket" >&6; } 21897 ac_res=$ac_cv_search_socket 21898 if test "$ac_res" != no 21899 then : 21900 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21901 21902 fi 21903 21904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 21905 printf %s "checking for library containing gethostbyname... " >&6; } 21906 if test ${ac_cv_search_gethostbyname+y} 21907 then : 21908 printf %s "(cached) " >&6 21909 else case e in #( 21910 e) ac_func_search_save_LIBS=$LIBS 21911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21912 /* end confdefs.h. */ 21913 21914 /* Override any GCC internal prototype to avoid an error. 21915 Use char because int might match the return type of a GCC 21916 builtin and then its argument prototype would still apply. 21917 The 'extern "C"' is for builds by C++ compilers; 21918 although this is not generally supported in C code supporting it here 21919 has little cost and some practical benefit (sr 110532). */ 21920 #ifdef __cplusplus 21921 extern "C" 21922 #endif 21923 char gethostbyname (void); 21924 int 21925 main (void) 21926 { 21927 return gethostbyname (); 21928 ; 21929 return 0; 21930 } 21931 _ACEOF 21932 for ac_lib in '' nsl 21933 do 21934 if test -z "$ac_lib"; then 21935 ac_res="none required" 21936 else 21937 ac_res=-l$ac_lib 21938 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21939 fi 21940 if ac_fn_c_try_link "$LINENO" 21941 then : 21942 ac_cv_search_gethostbyname=$ac_res 21943 fi 21944 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21945 conftest$ac_exeext 21946 if test ${ac_cv_search_gethostbyname+y} 21947 then : 21948 break 21949 fi 21950 done 21951 if test ${ac_cv_search_gethostbyname+y} 21952 then : 21953 21954 else case e in #( 21955 e) ac_cv_search_gethostbyname=no ;; 21956 esac 21957 fi 21958 rm conftest.$ac_ext 21959 LIBS=$ac_func_search_save_LIBS ;; 21960 esac 21961 fi 21962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 21963 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } 21964 ac_res=$ac_cv_search_gethostbyname 21965 if test "$ac_res" != no 21966 then : 21967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21968 21969 fi 21970 21971 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 21972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 21973 printf %s "checking for main in -lws2_32... " >&6; } 21974 if test ${ac_cv_lib_ws2_32_main+y} 21975 then : 21976 printf %s "(cached) " >&6 21977 else case e in #( 21978 e) ac_check_lib_save_LIBS=$LIBS 21979 LIBS="-lws2_32 $LIBS" 21980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21981 /* end confdefs.h. */ 21982 21983 21984 int 21985 main (void) 21986 { 21987 return main (); 21988 ; 21989 return 0; 21990 } 21991 _ACEOF 21992 if ac_fn_c_try_link "$LINENO" 21993 then : 21994 ac_cv_lib_ws2_32_main=yes 21995 else case e in #( 21996 e) ac_cv_lib_ws2_32_main=no ;; 21997 esac 21998 fi 21999 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22000 conftest$ac_exeext conftest.$ac_ext 22001 LIBS=$ac_check_lib_save_LIBS ;; 22002 esac 22003 fi 22004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 22005 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; } 22006 if test "x$ac_cv_lib_ws2_32_main" = xyes 22007 then : 22008 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h 22009 22010 LIBS="-lws2_32 $LIBS" 22011 22012 fi 22013 22014 fi 22015 22016 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 22017 # Check whether --enable-ipv6 was given. 22018 if test ${enable_ipv6+y} 22019 then : 22020 enableval=$enable_ipv6; IPV6CONN=$enableval 22021 else case e in #( 22022 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 22023 if test "x$ac_cv_func_getaddrinfo" = xyes 22024 then : 22025 IPV6CONN=yes 22026 else case e in #( 22027 e) IPV6CONN=no ;; 22028 esac 22029 fi 22030 ;; 22031 esac 22032 fi 22033 22034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 22035 printf %s "checking if IPv6 support should be built... " >&6; } 22036 if test "$IPV6CONN" = "yes"; then 22037 22038 printf "%s\n" "#define IPv6 1" >>confdefs.h 22039 22040 fi 22041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 22042 printf "%s\n" "$IPV6CONN" >&6; } 22043 22044 # 4.3BSD-Reno added a new member to struct sockaddr_in 22045 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 22046 #include <sys/types.h> 22047 #include <sys/socket.h> 22048 #include <netinet/in.h> 22049 22050 " 22051 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes 22052 then : 22053 22054 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h 22055 22056 fi 22057 22058 22059 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 22060 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 22061 $ac_includes_default 22062 #include <sys/socket.h> 22063 " 22064 if test "x$ac_cv_type_socklen_t" = xyes 22065 then : 22066 22067 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 22068 22069 22070 fi 22071 22072 22073 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 22074 # _XOPEN_SOURCE to get it (such as on Solaris) 22075 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22076 $ac_includes_default 22077 #include <sys/socket.h> 22078 22079 " 22080 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22081 then : 22082 22083 fi 22084 22085 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 22086 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22087 unset ac_cv_member_struct_msghdr_msg_control 22088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 22089 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 22090 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22091 #define _XOPEN_SOURCE 600 22092 $ac_includes_default 22093 #include <sys/socket.h> 22094 22095 " 22096 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22097 then : 22098 22099 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h 22100 22101 22102 fi 22103 22104 fi 22105 # If that didn't work, fall back to XPG5/UNIX98 with C89 22106 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 22107 unset ac_cv_member_struct_msghdr_msg_control 22108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 22109 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 22110 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 22111 #define _XOPEN_SOURCE 500 22112 $ac_includes_default 22113 #include <sys/socket.h> 22114 22115 " 22116 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes 22117 then : 22118 22119 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 22120 22121 22122 fi 22123 22124 fi 22125 22126 22127 22128 fi 22129 case $host_os in 22130 solaris*) localdef="yes" ;; 22131 *) localdef="no" ;; 22132 esac 22133 # Check whether --enable-local-transport was given. 22134 if test ${enable_local_transport+y} 22135 then : 22136 enableval=$enable_local_transport; LOCALCONN=$enableval 22137 else case e in #( 22138 e) LOCALCONN=$localdef ;; 22139 esac 22140 fi 22141 22142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 22143 printf %s "checking if Xtrans should support os-specific local connections... " >&6; } 22144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 22145 printf "%s\n" "$LOCALCONN" >&6; } 22146 if test "$LOCALCONN" = "yes"; then 22147 22148 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h 22149 22150 fi 22151 22152 # Other functions Xtrans may need 22153 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 22154 if test "x$ac_cv_func_strcasecmp" = xyes 22155 then : 22156 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 22157 22158 fi 22159 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 22160 if test "x$ac_cv_func_strlcpy" = xyes 22161 then : 22162 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 22163 22164 fi 22165 22166 22167 22168 22169 case $host_os in 22170 linux*) 22171 OS_CFLAGS="-D_XOPEN_SOURCE" 22172 ;; 22173 *) 22174 OS_CFLAGS= 22175 ;; 22176 esac 22177 22178 save_CFLAGS="$CFLAGS" 22179 CFLAGS="$CFLAGS -fvisibility=hidden" 22180 CFLAGS_VISIBILITY= 22181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22182 /* end confdefs.h. */ 22183 22184 #if defined(__CYGWIN__) || defined(__MINGW32__) 22185 #error No visibility support 22186 #endif 22187 extern __attribute__((__visibility__("default"))) int x; 22188 22189 _ACEOF 22190 if ac_fn_c_try_compile "$LINENO" 22191 then : 22192 CFLAGS_VISIBILITY=-fvisibility=hidden 22193 fi 22194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22195 CFLAGS="$save_CFLAGS" 22196 OS_CFLAGS="$OS_CFLAGS $CFLAGS_VISIBILITY" 22197 22198 22199 22200 ac_config_files="$ac_config_files Makefile doc/Makefile xfont2.pc" 22201 22202 cat >confcache <<\_ACEOF 22203 # This file is a shell script that caches the results of configure 22204 # tests run on this system so they can be shared between configure 22205 # scripts and configure runs, see configure's option --config-cache. 22206 # It is not useful on other systems. If it contains results you don't 22207 # want to keep, you may remove or edit it. 22208 # 22209 # config.status only pays attention to the cache file if you give it 22210 # the --recheck option to rerun configure. 22211 # 22212 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 22213 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 22214 # following values. 22215 22216 _ACEOF 22217 22218 # The following way of writing the cache mishandles newlines in values, 22219 # but we know of no workaround that is simple, portable, and efficient. 22220 # So, we kill variables containing newlines. 22221 # Ultrix sh set writes to stderr and can't be redirected directly, 22222 # and sets the high bit in the cache file unless we assign to the vars. 22223 ( 22224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22225 eval ac_val=\$$ac_var 22226 case $ac_val in #( 22227 *${as_nl}*) 22228 case $ac_var in #( 22229 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22230 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22231 esac 22232 case $ac_var in #( 22233 _ | IFS | as_nl) ;; #( 22234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22235 *) { eval $ac_var=; unset $ac_var;} ;; 22236 esac ;; 22237 esac 22238 done 22239 22240 (set) 2>&1 | 22241 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22242 *${as_nl}ac_space=\ *) 22243 # 'set' does not quote correctly, so add quotes: double-quote 22244 # substitution turns \\\\ into \\, and sed turns \\ into \. 22245 sed -n \ 22246 "s/'/'\\\\''/g; 22247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22248 ;; #( 22249 *) 22250 # 'set' quotes correctly as required by POSIX, so do not add quotes. 22251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22252 ;; 22253 esac | 22254 sort 22255 ) | 22256 sed ' 22257 /^ac_cv_env_/b end 22258 t clear 22259 :clear 22260 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 22261 t end 22262 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22263 :end' >>confcache 22264 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22265 if test -w "$cache_file"; then 22266 if test "x$cache_file" != "x/dev/null"; then 22267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22268 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 22269 if test ! -f "$cache_file" || test -h "$cache_file"; then 22270 cat confcache >"$cache_file" 22271 else 22272 case $cache_file in #( 22273 */* | ?:*) 22274 mv -f confcache "$cache_file"$$ && 22275 mv -f "$cache_file"$$ "$cache_file" ;; #( 22276 *) 22277 mv -f confcache "$cache_file" ;; 22278 esac 22279 fi 22280 fi 22281 else 22282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22283 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 22284 fi 22285 fi 22286 rm -f confcache 22287 22288 test "x$prefix" = xNONE && prefix=$ac_default_prefix 22289 # Let make expand exec_prefix. 22290 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22291 22292 DEFS=-DHAVE_CONFIG_H 22293 22294 ac_libobjs= 22295 ac_ltlibobjs= 22296 U= 22297 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22298 # 1. Remove the extension, and $U if already installed. 22299 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22300 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 22301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22302 # will be set to the directory where LIBOBJS objects are built. 22303 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22304 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22305 done 22306 LIBOBJS=$ac_libobjs 22307 22308 LTLIBOBJS=$ac_ltlibobjs 22309 22310 22311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22312 printf %s "checking that generated files are newer than configure... " >&6; } 22313 if test -n "$am_sleep_pid"; then 22314 # Hide warnings about reused PIDs. 22315 wait $am_sleep_pid 2>/dev/null 22316 fi 22317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 22318 printf "%s\n" "done" >&6; } 22319 case $enable_silent_rules in # ((( 22320 yes) AM_DEFAULT_VERBOSITY=0;; 22321 no) AM_DEFAULT_VERBOSITY=1;; 22322 esac 22323 if test $am_cv_make_support_nested_variables = yes; then 22324 AM_V='$(V)' 22325 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 22326 else 22327 AM_V=$AM_DEFAULT_VERBOSITY 22328 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 22329 fi 22330 22331 if test -n "$EXEEXT"; then 22332 am__EXEEXT_TRUE= 22333 am__EXEEXT_FALSE='#' 22334 else 22335 am__EXEEXT_TRUE='#' 22336 am__EXEEXT_FALSE= 22337 fi 22338 22339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22340 as_fn_error $? "conditional \"AMDEP\" was never defined. 22341 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22342 fi 22343 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22344 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22345 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22346 fi 22347 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 22348 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 22349 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22350 fi 22351 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 22352 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 22353 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22354 fi 22355 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 22356 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 22357 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22358 fi 22359 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 22360 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 22361 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22362 fi 22363 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 22364 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 22365 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22366 fi 22367 # Check whether --enable-year2038 was given. 22368 if test ${enable_year2038+y} 22369 then : 22370 enableval=$enable_year2038; 22371 fi 22372 22373 if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then 22374 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined. 22375 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22376 fi 22377 if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then 22378 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined. 22379 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22380 fi 22381 if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then 22382 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined. 22383 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22384 fi 22385 if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then 22386 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined. 22387 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22388 fi 22389 if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then 22390 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined. 22391 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22392 fi 22393 if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then 22394 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined. 22395 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22396 fi 22397 if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then 22398 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined. 22399 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22400 fi 22401 if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then 22402 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined. 22403 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22404 fi 22405 if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then 22406 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined. 22407 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22408 fi 22409 if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then 22410 as_fn_error $? "conditional \"XFONT_FC\" was never defined. 22411 Usually this means the macro was only invoked conditionally." "$LINENO" 5 22412 fi 22413 22414 : "${CONFIG_STATUS=./config.status}" 22415 ac_write_fail=0 22416 ac_clean_files_save=$ac_clean_files 22417 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22419 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 22420 as_write_fail=0 22421 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22422 #! $SHELL 22423 # Generated by $as_me. 22424 # Run this file to recreate the current configuration. 22425 # Compiler output produced by configure, useful for debugging 22426 # configure, is in config.log if it exists. 22427 22428 debug=false 22429 ac_cs_recheck=false 22430 ac_cs_silent=false 22431 22432 SHELL=\${CONFIG_SHELL-$SHELL} 22433 export SHELL 22434 _ASEOF 22435 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22436 ## -------------------- ## 22437 ## M4sh Initialization. ## 22438 ## -------------------- ## 22439 22440 # Be more Bourne compatible 22441 DUALCASE=1; export DUALCASE # for MKS sh 22442 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22443 then : 22444 emulate sh 22445 NULLCMD=: 22446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22447 # is contrary to our usage. Disable this feature. 22448 alias -g '${1+"$@"}'='"$@"' 22449 setopt NO_GLOB_SUBST 22450 else case e in #( 22451 e) case `(set -o) 2>/dev/null` in #( 22452 *posix*) : 22453 set -o posix ;; #( 22454 *) : 22455 ;; 22456 esac ;; 22457 esac 22458 fi 22459 22460 22461 22462 # Reset variables that may have inherited troublesome values from 22463 # the environment. 22464 22465 # IFS needs to be set, to space, tab, and newline, in precisely that order. 22466 # (If _AS_PATH_WALK were called with IFS unset, it would have the 22467 # side effect of setting IFS to empty, thus disabling word splitting.) 22468 # Quoting is to prevent editors from complaining about space-tab. 22469 as_nl=' 22470 ' 22471 export as_nl 22472 IFS=" "" $as_nl" 22473 22474 PS1='$ ' 22475 PS2='> ' 22476 PS4='+ ' 22477 22478 # Ensure predictable behavior from utilities with locale-dependent output. 22479 LC_ALL=C 22480 export LC_ALL 22481 LANGUAGE=C 22482 export LANGUAGE 22483 22484 # We cannot yet rely on "unset" to work, but we need these variables 22485 # to be unset--not just set to an empty or harmless value--now, to 22486 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 22487 # also avoids known problems related to "unset" and subshell syntax 22488 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 22489 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 22490 do eval test \${$as_var+y} \ 22491 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22492 done 22493 22494 # Ensure that fds 0, 1, and 2 are open. 22495 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 22496 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 22497 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 22498 22499 # The user is always right. 22500 if ${PATH_SEPARATOR+false} :; then 22501 PATH_SEPARATOR=: 22502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22503 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22504 PATH_SEPARATOR=';' 22505 } 22506 fi 22507 22508 22509 # Find who we are. Look in the path if we contain no directory separator. 22510 as_myself= 22511 case $0 in #(( 22512 *[\\/]* ) as_myself=$0 ;; 22513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22514 for as_dir in $PATH 22515 do 22516 IFS=$as_save_IFS 22517 case $as_dir in #((( 22518 '') as_dir=./ ;; 22519 */) ;; 22520 *) as_dir=$as_dir/ ;; 22521 esac 22522 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 22523 done 22524 IFS=$as_save_IFS 22525 22526 ;; 22527 esac 22528 # We did not find ourselves, most probably we were run as 'sh COMMAND' 22529 # in which case we are not to be found in the path. 22530 if test "x$as_myself" = x; then 22531 as_myself=$0 22532 fi 22533 if test ! -f "$as_myself"; then 22534 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22535 exit 1 22536 fi 22537 22538 22539 22540 # as_fn_error STATUS ERROR [LINENO LOG_FD] 22541 # ---------------------------------------- 22542 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22543 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22544 # script with STATUS, using 1 if that was 0. 22545 as_fn_error () 22546 { 22547 as_status=$1; test $as_status -eq 0 && as_status=1 22548 if test "$4"; then 22549 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22551 fi 22552 printf "%s\n" "$as_me: error: $2" >&2 22553 as_fn_exit $as_status 22554 } # as_fn_error 22555 22556 22557 # as_fn_set_status STATUS 22558 # ----------------------- 22559 # Set $? to STATUS, without forking. 22560 as_fn_set_status () 22561 { 22562 return $1 22563 } # as_fn_set_status 22564 22565 # as_fn_exit STATUS 22566 # ----------------- 22567 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22568 as_fn_exit () 22569 { 22570 set +e 22571 as_fn_set_status $1 22572 exit $1 22573 } # as_fn_exit 22574 22575 # as_fn_unset VAR 22576 # --------------- 22577 # Portably unset VAR. 22578 as_fn_unset () 22579 { 22580 { eval $1=; unset $1;} 22581 } 22582 as_unset=as_fn_unset 22583 22584 # as_fn_append VAR VALUE 22585 # ---------------------- 22586 # Append the text in VALUE to the end of the definition contained in VAR. Take 22587 # advantage of any shell optimizations that allow amortized linear growth over 22588 # repeated appends, instead of the typical quadratic growth present in naive 22589 # implementations. 22590 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 22591 then : 22592 eval 'as_fn_append () 22593 { 22594 eval $1+=\$2 22595 }' 22596 else case e in #( 22597 e) as_fn_append () 22598 { 22599 eval $1=\$$1\$2 22600 } ;; 22601 esac 22602 fi # as_fn_append 22603 22604 # as_fn_arith ARG... 22605 # ------------------ 22606 # Perform arithmetic evaluation on the ARGs, and store the result in the 22607 # global $as_val. Take advantage of shells that can avoid forks. The arguments 22608 # must be portable across $(()) and expr. 22609 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 22610 then : 22611 eval 'as_fn_arith () 22612 { 22613 as_val=$(( $* )) 22614 }' 22615 else case e in #( 22616 e) as_fn_arith () 22617 { 22618 as_val=`expr "$@" || test $? -eq 1` 22619 } ;; 22620 esac 22621 fi # as_fn_arith 22622 22623 22624 if expr a : '\(a\)' >/dev/null 2>&1 && 22625 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22626 as_expr=expr 22627 else 22628 as_expr=false 22629 fi 22630 22631 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22632 as_basename=basename 22633 else 22634 as_basename=false 22635 fi 22636 22637 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22638 as_dirname=dirname 22639 else 22640 as_dirname=false 22641 fi 22642 22643 as_me=`$as_basename -- "$0" || 22644 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22645 X"$0" : 'X\(//\)$' \| \ 22646 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22647 printf "%s\n" X/"$0" | 22648 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22649 s//\1/ 22650 q 22651 } 22652 /^X\/\(\/\/\)$/{ 22653 s//\1/ 22654 q 22655 } 22656 /^X\/\(\/\).*/{ 22657 s//\1/ 22658 q 22659 } 22660 s/.*/./; q'` 22661 22662 # Avoid depending upon Character Ranges. 22663 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22664 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22665 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22666 as_cr_digits='0123456789' 22667 as_cr_alnum=$as_cr_Letters$as_cr_digits 22668 22669 22670 # Determine whether it's possible to make 'echo' print without a newline. 22671 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 22672 # for compatibility with existing Makefiles. 22673 ECHO_C= ECHO_N= ECHO_T= 22674 case `echo -n x` in #((((( 22675 -n*) 22676 case `echo 'xy\c'` in 22677 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22678 xy) ECHO_C='\c';; 22679 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22680 ECHO_T=' ';; 22681 esac;; 22682 *) 22683 ECHO_N='-n';; 22684 esac 22685 22686 # For backward compatibility with old third-party macros, we provide 22687 # the shell variables $as_echo and $as_echo_n. New code should use 22688 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 22689 as_echo='printf %s\n' 22690 as_echo_n='printf %s' 22691 22692 rm -f conf$$ conf$$.exe conf$$.file 22693 if test -d conf$$.dir; then 22694 rm -f conf$$.dir/conf$$.file 22695 else 22696 rm -f conf$$.dir 22697 mkdir conf$$.dir 2>/dev/null 22698 fi 22699 if (echo >conf$$.file) 2>/dev/null; then 22700 if ln -s conf$$.file conf$$ 2>/dev/null; then 22701 as_ln_s='ln -s' 22702 # ... but there are two gotchas: 22703 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 22704 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 22705 # In both cases, we have to default to 'cp -pR'. 22706 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 22707 as_ln_s='cp -pR' 22708 elif ln conf$$.file conf$$ 2>/dev/null; then 22709 as_ln_s=ln 22710 else 22711 as_ln_s='cp -pR' 22712 fi 22713 else 22714 as_ln_s='cp -pR' 22715 fi 22716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 22717 rmdir conf$$.dir 2>/dev/null 22718 22719 22720 # as_fn_mkdir_p 22721 # ------------- 22722 # Create "$as_dir" as a directory, including parents if necessary. 22723 as_fn_mkdir_p () 22724 { 22725 22726 case $as_dir in #( 22727 -*) as_dir=./$as_dir;; 22728 esac 22729 test -d "$as_dir" || eval $as_mkdir_p || { 22730 as_dirs= 22731 while :; do 22732 case $as_dir in #( 22733 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 22734 *) as_qdir=$as_dir;; 22735 esac 22736 as_dirs="'$as_qdir' $as_dirs" 22737 as_dir=`$as_dirname -- "$as_dir" || 22738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22739 X"$as_dir" : 'X\(//\)[^/]' \| \ 22740 X"$as_dir" : 'X\(//\)$' \| \ 22741 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 22742 printf "%s\n" X"$as_dir" | 22743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22744 s//\1/ 22745 q 22746 } 22747 /^X\(\/\/\)[^/].*/{ 22748 s//\1/ 22749 q 22750 } 22751 /^X\(\/\/\)$/{ 22752 s//\1/ 22753 q 22754 } 22755 /^X\(\/\).*/{ 22756 s//\1/ 22757 q 22758 } 22759 s/.*/./; q'` 22760 test -d "$as_dir" && break 22761 done 22762 test -z "$as_dirs" || eval "mkdir $as_dirs" 22763 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 22764 22765 22766 } # as_fn_mkdir_p 22767 if mkdir -p . 2>/dev/null; then 22768 as_mkdir_p='mkdir -p "$as_dir"' 22769 else 22770 test -d ./-p && rmdir ./-p 22771 as_mkdir_p=false 22772 fi 22773 22774 22775 # as_fn_executable_p FILE 22776 # ----------------------- 22777 # Test if FILE is an executable regular file. 22778 as_fn_executable_p () 22779 { 22780 test -f "$1" && test -x "$1" 22781 } # as_fn_executable_p 22782 as_test_x='test -x' 22783 as_executable_p=as_fn_executable_p 22784 22785 # Sed expression to map a string onto a valid CPP name. 22786 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 22787 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 22788 22789 # Sed expression to map a string onto a valid variable name. 22790 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 22791 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 22792 22793 22794 exec 6>&1 22795 ## ----------------------------------- ## 22796 ## Main body of $CONFIG_STATUS script. ## 22797 ## ----------------------------------- ## 22798 _ASEOF 22799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 22800 22801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22802 # Save the log message, to keep $0 and so on meaningful, and to 22803 # report actual input values of CONFIG_FILES etc. instead of their 22804 # values after options handling. 22805 ac_log=" 22806 This file was extended by libXfont2 $as_me 2.0.7, which was 22807 generated by GNU Autoconf 2.72. Invocation command line was 22808 22809 CONFIG_FILES = $CONFIG_FILES 22810 CONFIG_HEADERS = $CONFIG_HEADERS 22811 CONFIG_LINKS = $CONFIG_LINKS 22812 CONFIG_COMMANDS = $CONFIG_COMMANDS 22813 $ $0 $@ 22814 22815 on `(hostname || uname -n) 2>/dev/null | sed 1q` 22816 " 22817 22818 _ACEOF 22819 22820 case $ac_config_files in *" 22821 "*) set x $ac_config_files; shift; ac_config_files=$*;; 22822 esac 22823 22824 case $ac_config_headers in *" 22825 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 22826 esac 22827 22828 22829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22830 # Files that config.status was made for. 22831 config_files="$ac_config_files" 22832 config_headers="$ac_config_headers" 22833 config_commands="$ac_config_commands" 22834 22835 _ACEOF 22836 22837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22838 ac_cs_usage="\ 22839 '$as_me' instantiates files and other configuration actions 22840 from templates according to the current configuration. Unless the files 22841 and actions are specified as TAGs, all are instantiated by default. 22842 22843 Usage: $0 [OPTION]... [TAG]... 22844 22845 -h, --help print this help, then exit 22846 -V, --version print version number and configuration settings, then exit 22847 --config print configuration, then exit 22848 -q, --quiet, --silent 22849 do not print progress messages 22850 -d, --debug don't remove temporary files 22851 --recheck update $as_me by reconfiguring in the same conditions 22852 --file=FILE[:TEMPLATE] 22853 instantiate the configuration file FILE 22854 --header=FILE[:TEMPLATE] 22855 instantiate the configuration header FILE 22856 22857 Configuration files: 22858 $config_files 22859 22860 Configuration headers: 22861 $config_headers 22862 22863 Configuration commands: 22864 $config_commands 22865 22866 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues>." 22867 22868 _ACEOF 22869 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 22870 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 22871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22872 ac_cs_config='$ac_cs_config_escaped' 22873 ac_cs_version="\\ 22874 libXfont2 config.status 2.0.7 22875 configured by $0, generated by GNU Autoconf 2.72, 22876 with options \\"\$ac_cs_config\\" 22877 22878 Copyright (C) 2023 Free Software Foundation, Inc. 22879 This config.status script is free software; the Free Software Foundation 22880 gives unlimited permission to copy, distribute and modify it." 22881 22882 ac_pwd='$ac_pwd' 22883 srcdir='$srcdir' 22884 INSTALL='$INSTALL' 22885 MKDIR_P='$MKDIR_P' 22886 AWK='$AWK' 22887 test -n "\$AWK" || AWK=awk 22888 _ACEOF 22889 22890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22891 # The default lists apply if the user does not specify any file. 22892 ac_need_defaults=: 22893 while test $# != 0 22894 do 22895 case $1 in 22896 --*=?*) 22897 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22898 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 22899 ac_shift=: 22900 ;; 22901 --*=) 22902 ac_option=`expr "X$1" : 'X\([^=]*\)='` 22903 ac_optarg= 22904 ac_shift=: 22905 ;; 22906 *) 22907 ac_option=$1 22908 ac_optarg=$2 22909 ac_shift=shift 22910 ;; 22911 esac 22912 22913 case $ac_option in 22914 # Handling of the options. 22915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 22916 ac_cs_recheck=: ;; 22917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 22918 printf "%s\n" "$ac_cs_version"; exit ;; 22919 --config | --confi | --conf | --con | --co | --c ) 22920 printf "%s\n" "$ac_cs_config"; exit ;; 22921 --debug | --debu | --deb | --de | --d | -d ) 22922 debug=: ;; 22923 --file | --fil | --fi | --f ) 22924 $ac_shift 22925 case $ac_optarg in 22926 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22927 '') as_fn_error $? "missing file argument" ;; 22928 esac 22929 as_fn_append CONFIG_FILES " '$ac_optarg'" 22930 ac_need_defaults=false;; 22931 --header | --heade | --head | --hea ) 22932 $ac_shift 22933 case $ac_optarg in 22934 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 22935 esac 22936 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 22937 ac_need_defaults=false;; 22938 --he | --h) 22939 # Conflict between --help and --header 22940 as_fn_error $? "ambiguous option: '$1' 22941 Try '$0 --help' for more information.";; 22942 --help | --hel | -h ) 22943 printf "%s\n" "$ac_cs_usage"; exit ;; 22944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 22945 | -silent | --silent | --silen | --sile | --sil | --si | --s) 22946 ac_cs_silent=: ;; 22947 22948 # This is an error. 22949 -*) as_fn_error $? "unrecognized option: '$1' 22950 Try '$0 --help' for more information." ;; 22951 22952 *) as_fn_append ac_config_targets " $1" 22953 ac_need_defaults=false ;; 22954 22955 esac 22956 shift 22957 done 22958 22959 ac_configure_extra_args= 22960 22961 if $ac_cs_silent; then 22962 exec 6>/dev/null 22963 ac_configure_extra_args="$ac_configure_extra_args --silent" 22964 fi 22965 22966 _ACEOF 22967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22968 if \$ac_cs_recheck; then 22969 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 22970 shift 22971 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 22972 CONFIG_SHELL='$SHELL' 22973 export CONFIG_SHELL 22974 exec "\$@" 22975 fi 22976 22977 _ACEOF 22978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22979 exec 5>>config.log 22980 { 22981 echo 22982 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 22983 ## Running $as_me. ## 22984 _ASBOX 22985 printf "%s\n" "$ac_log" 22986 } >&5 22987 22988 _ACEOF 22989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22990 # 22991 # INIT-COMMANDS 22992 # 22993 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 22994 22995 22996 # The HP-UX ksh and POSIX shell print the target directory to stdout 22997 # if CDPATH is set. 22998 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22999 23000 sed_quote_subst='$sed_quote_subst' 23001 double_quote_subst='$double_quote_subst' 23002 delay_variable_subst='$delay_variable_subst' 23003 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23004 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23005 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23006 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23007 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23008 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23009 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23010 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23011 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23012 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23013 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23014 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23015 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23016 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23017 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23018 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23019 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23020 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23021 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23022 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23023 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23024 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23025 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23026 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23027 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23028 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23029 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23030 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23031 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23032 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23033 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23034 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23035 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23036 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23037 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 23038 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23039 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23040 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23041 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23042 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23043 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23044 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23045 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23046 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 23047 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23048 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23049 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23050 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23051 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23052 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23053 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23054 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23055 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23056 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23057 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23058 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23059 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23060 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23061 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23062 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23063 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"`' 23064 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23065 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23066 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23067 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23068 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23069 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23070 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23071 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23072 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23073 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23074 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23075 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23076 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23077 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23078 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23079 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23080 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23081 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23082 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23083 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23084 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23085 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23086 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23087 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23088 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23089 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23090 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23091 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23092 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23093 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23094 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23095 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23096 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23097 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23098 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23099 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23100 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23101 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23102 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23103 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23104 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23105 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23106 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23107 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23108 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23109 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23110 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23111 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23112 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23113 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23114 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23115 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23116 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23117 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23118 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23119 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23120 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23121 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23122 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23123 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23124 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23125 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23126 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23127 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23128 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23129 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23130 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23131 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23132 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23133 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23134 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23135 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23136 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23137 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23138 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23139 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23140 23141 LTCC='$LTCC' 23142 LTCFLAGS='$LTCFLAGS' 23143 compiler='$compiler_DEFAULT' 23144 23145 # A function that is used when there is no print builtin or printf. 23146 func_fallback_echo () 23147 { 23148 eval 'cat <<_LTECHO_EOF 23149 \$1 23150 _LTECHO_EOF' 23151 } 23152 23153 # Quote evaled strings. 23154 for var in SHELL \ 23155 ECHO \ 23156 PATH_SEPARATOR \ 23157 SED \ 23158 GREP \ 23159 EGREP \ 23160 FGREP \ 23161 LD \ 23162 NM \ 23163 LN_S \ 23164 lt_SP2NL \ 23165 lt_NL2SP \ 23166 reload_flag \ 23167 FILECMD \ 23168 OBJDUMP \ 23169 deplibs_check_method \ 23170 file_magic_cmd \ 23171 file_magic_glob \ 23172 want_nocaseglob \ 23173 DLLTOOL \ 23174 sharedlib_from_linklib_cmd \ 23175 AR \ 23176 archiver_list_spec \ 23177 STRIP \ 23178 RANLIB \ 23179 CC \ 23180 CFLAGS \ 23181 compiler \ 23182 lt_cv_sys_global_symbol_pipe \ 23183 lt_cv_sys_global_symbol_to_cdecl \ 23184 lt_cv_sys_global_symbol_to_import \ 23185 lt_cv_sys_global_symbol_to_c_name_address \ 23186 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23187 lt_cv_nm_interface \ 23188 nm_file_list_spec \ 23189 lt_cv_truncate_bin \ 23190 lt_prog_compiler_no_builtin_flag \ 23191 lt_prog_compiler_pic \ 23192 lt_prog_compiler_wl \ 23193 lt_prog_compiler_static \ 23194 lt_cv_prog_compiler_c_o \ 23195 need_locks \ 23196 MANIFEST_TOOL \ 23197 DSYMUTIL \ 23198 NMEDIT \ 23199 LIPO \ 23200 OTOOL \ 23201 OTOOL64 \ 23202 shrext_cmds \ 23203 export_dynamic_flag_spec \ 23204 whole_archive_flag_spec \ 23205 compiler_needs_object \ 23206 with_gnu_ld \ 23207 allow_undefined_flag \ 23208 no_undefined_flag \ 23209 hardcode_libdir_flag_spec \ 23210 hardcode_libdir_separator \ 23211 exclude_expsyms \ 23212 include_expsyms \ 23213 file_list_spec \ 23214 variables_saved_for_relink \ 23215 libname_spec \ 23216 library_names_spec \ 23217 soname_spec \ 23218 install_override_mode \ 23219 finish_eval \ 23220 old_striplib \ 23221 striplib; do 23222 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23223 *[\\\\\\\`\\"\\\$]*) 23224 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23225 ;; 23226 *) 23227 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23228 ;; 23229 esac 23230 done 23231 23232 # Double-quote double-evaled strings. 23233 for var in reload_cmds \ 23234 old_postinstall_cmds \ 23235 old_postuninstall_cmds \ 23236 old_archive_cmds \ 23237 extract_expsyms_cmds \ 23238 old_archive_from_new_cmds \ 23239 old_archive_from_expsyms_cmds \ 23240 archive_cmds \ 23241 archive_expsym_cmds \ 23242 module_cmds \ 23243 module_expsym_cmds \ 23244 export_symbols_cmds \ 23245 prelink_cmds \ 23246 postlink_cmds \ 23247 postinstall_cmds \ 23248 postuninstall_cmds \ 23249 finish_cmds \ 23250 sys_lib_search_path_spec \ 23251 configure_time_dlsearch_path \ 23252 configure_time_lt_sys_library_path; do 23253 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23254 *[\\\\\\\`\\"\\\$]*) 23255 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23256 ;; 23257 *) 23258 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23259 ;; 23260 esac 23261 done 23262 23263 ac_aux_dir='$ac_aux_dir' 23264 23265 # See if we are running on zsh, and set the options that allow our 23266 # commands through without removal of \ escapes INIT. 23267 if test -n "\${ZSH_VERSION+set}"; then 23268 setopt NO_GLOB_SUBST 23269 fi 23270 23271 23272 PACKAGE='$PACKAGE' 23273 VERSION='$VERSION' 23274 RM='$RM' 23275 ofile='$ofile' 23276 23277 23278 23279 23280 _ACEOF 23281 23282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23283 23284 # Handling of arguments. 23285 for ac_config_target in $ac_config_targets 23286 do 23287 case $ac_config_target in 23288 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 23289 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23290 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23291 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23292 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 23293 "xfont2.pc") CONFIG_FILES="$CONFIG_FILES xfont2.pc" ;; 23294 23295 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 23296 esac 23297 done 23298 23299 23300 # If the user did not use the arguments to specify the items to instantiate, 23301 # then the envvar interface is used. Set only those that are not. 23302 # We use the long form for the default assignment because of an extremely 23303 # bizarre bug on SunOS 4.1.3. 23304 if $ac_need_defaults; then 23305 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 23306 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 23307 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 23308 fi 23309 23310 # Have a temporary directory for convenience. Make it in the build tree 23311 # simply because there is no reason against having it here, and in addition, 23312 # creating and moving files from /tmp can sometimes cause problems. 23313 # Hook for its removal unless debugging. 23314 # Note that there is a small window in which the directory will not be cleaned: 23315 # after its creation but before its name has been assigned to '$tmp'. 23316 $debug || 23317 { 23318 tmp= ac_tmp= 23319 trap 'exit_status=$? 23320 : "${ac_tmp:=$tmp}" 23321 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23322 ' 0 23323 trap 'as_fn_exit 1' 1 2 13 15 23324 } 23325 # Create a (secure) tmp directory for tmp files. 23326 23327 { 23328 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23329 test -d "$tmp" 23330 } || 23331 { 23332 tmp=./conf$$-$RANDOM 23333 (umask 077 && mkdir "$tmp") 23334 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23335 ac_tmp=$tmp 23336 23337 # Set up the scripts for CONFIG_FILES section. 23338 # No need to generate them if there are no CONFIG_FILES. 23339 # This happens for instance with './config.status config.h'. 23340 if test -n "$CONFIG_FILES"; then 23341 23342 23343 ac_cr=`echo X | tr X '\015'` 23344 # On cygwin, bash can eat \r inside `` if the user requested igncr. 23345 # But we know of no other shell where ac_cr would be empty at this 23346 # point, so we can use a bashism as a fallback. 23347 if test "x$ac_cr" = x; then 23348 eval ac_cr=\$\'\\r\' 23349 fi 23350 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23351 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23352 ac_cs_awk_cr='\\r' 23353 else 23354 ac_cs_awk_cr=$ac_cr 23355 fi 23356 23357 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23358 _ACEOF 23359 23360 23361 { 23362 echo "cat >conf$$subs.awk <<_ACEOF" && 23363 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23364 echo "_ACEOF" 23365 } >conf$$subs.sh || 23366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23367 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23368 ac_delim='%!_!# ' 23369 for ac_last_try in false false false false false :; do 23370 . ./conf$$subs.sh || 23371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23372 23373 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23374 if test $ac_delim_n = $ac_delim_num; then 23375 break 23376 elif $ac_last_try; then 23377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23378 else 23379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23380 fi 23381 done 23382 rm -f conf$$subs.sh 23383 23384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23385 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23386 _ACEOF 23387 sed -n ' 23388 h 23389 s/^/S["/; s/!.*/"]=/ 23390 p 23391 g 23392 s/^[^!]*!// 23393 :repl 23394 t repl 23395 s/'"$ac_delim"'$// 23396 t delim 23397 :nl 23398 h 23399 s/\(.\{148\}\)..*/\1/ 23400 t more1 23401 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23402 p 23403 n 23404 b repl 23405 :more1 23406 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23407 p 23408 g 23409 s/.\{148\}// 23410 t nl 23411 :delim 23412 h 23413 s/\(.\{148\}\)..*/\1/ 23414 t more2 23415 s/["\\]/\\&/g; s/^/"/; s/$/"/ 23416 p 23417 b 23418 :more2 23419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23420 p 23421 g 23422 s/.\{148\}// 23423 t delim 23424 ' <conf$$subs.awk | sed ' 23425 /^[^""]/{ 23426 N 23427 s/\n// 23428 } 23429 ' >>$CONFIG_STATUS || ac_write_fail=1 23430 rm -f conf$$subs.awk 23431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23432 _ACAWK 23433 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23434 for (key in S) S_is_set[key] = 1 23435 FS = "" 23436 23437 } 23438 { 23439 line = $ 0 23440 nfields = split(line, field, "@") 23441 substed = 0 23442 len = length(field[1]) 23443 for (i = 2; i < nfields; i++) { 23444 key = field[i] 23445 keylen = length(key) 23446 if (S_is_set[key]) { 23447 value = S[key] 23448 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23449 len += length(value) + length(field[++i]) 23450 substed = 1 23451 } else 23452 len += 1 + keylen 23453 } 23454 23455 print line 23456 } 23457 23458 _ACAWK 23459 _ACEOF 23460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23461 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23462 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23463 else 23464 cat 23465 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23466 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23467 _ACEOF 23468 23469 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23470 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23471 # trailing colons and then remove the whole line if VPATH becomes empty 23472 # (actually we leave an empty line to preserve line numbers). 23473 if test "x$srcdir" = x.; then 23474 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23475 h 23476 s/// 23477 s/^/:/ 23478 s/[ ]*$/:/ 23479 s/:\$(srcdir):/:/g 23480 s/:\${srcdir}:/:/g 23481 s/:@srcdir@:/:/g 23482 s/^:*// 23483 s/:*$// 23484 x 23485 s/\(=[ ]*\).*/\1/ 23486 G 23487 s/\n// 23488 s/^[^=]*=[ ]*$// 23489 }' 23490 fi 23491 23492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23493 fi # test -n "$CONFIG_FILES" 23494 23495 # Set up the scripts for CONFIG_HEADERS section. 23496 # No need to generate them if there are no CONFIG_HEADERS. 23497 # This happens for instance with './config.status Makefile'. 23498 if test -n "$CONFIG_HEADERS"; then 23499 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23500 BEGIN { 23501 _ACEOF 23502 23503 # Transform confdefs.h into an awk script 'defines.awk', embedded as 23504 # here-document in config.status, that substitutes the proper values into 23505 # config.h.in to produce config.h. 23506 23507 # Create a delimiter string that does not exist in confdefs.h, to ease 23508 # handling of long lines. 23509 ac_delim='%!_!# ' 23510 for ac_last_try in false false :; do 23511 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23512 if test -z "$ac_tt"; then 23513 break 23514 elif $ac_last_try; then 23515 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23516 else 23517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23518 fi 23519 done 23520 23521 # For the awk script, D is an array of macro values keyed by name, 23522 # likewise P contains macro parameters if any. Preserve backslash 23523 # newline sequences. 23524 23525 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23526 sed -n ' 23527 s/.\{148\}/&'"$ac_delim"'/g 23528 t rset 23529 :rset 23530 s/^[ ]*#[ ]*define[ ][ ]*/ / 23531 t def 23532 d 23533 :def 23534 s/\\$// 23535 t bsnl 23536 s/["\\]/\\&/g 23537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23538 D["\1"]=" \3"/p 23539 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23540 d 23541 :bsnl 23542 s/["\\]/\\&/g 23543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23544 D["\1"]=" \3\\\\\\n"\\/p 23545 t cont 23546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23547 t cont 23548 d 23549 :cont 23550 n 23551 s/.\{148\}/&'"$ac_delim"'/g 23552 t clear 23553 :clear 23554 s/\\$// 23555 t bsnlc 23556 s/["\\]/\\&/g; s/^/"/; s/$/"/p 23557 d 23558 :bsnlc 23559 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23560 b cont 23561 ' <confdefs.h | sed ' 23562 s/'"$ac_delim"'/"\\\ 23563 "/g' >>$CONFIG_STATUS || ac_write_fail=1 23564 23565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23566 for (key in D) D_is_set[key] = 1 23567 FS = "" 23568 } 23569 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23570 line = \$ 0 23571 split(line, arg, " ") 23572 if (arg[1] == "#") { 23573 defundef = arg[2] 23574 mac1 = arg[3] 23575 } else { 23576 defundef = substr(arg[1], 2) 23577 mac1 = arg[2] 23578 } 23579 split(mac1, mac2, "(") #) 23580 macro = mac2[1] 23581 prefix = substr(line, 1, index(line, defundef) - 1) 23582 if (D_is_set[macro]) { 23583 # Preserve the white space surrounding the "#". 23584 print prefix "define", macro P[macro] D[macro] 23585 next 23586 } else { 23587 # Replace #undef with comments. This is necessary, for example, 23588 # in the case of _POSIX_SOURCE, which is predefined and required 23589 # on some systems where configure will not decide to define it. 23590 if (defundef == "undef") { 23591 print "/*", prefix defundef, macro, "*/" 23592 next 23593 } 23594 } 23595 } 23596 { print } 23597 _ACAWK 23598 _ACEOF 23599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23600 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23601 fi # test -n "$CONFIG_HEADERS" 23602 23603 23604 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 23605 shift 23606 for ac_tag 23607 do 23608 case $ac_tag in 23609 :[FHLC]) ac_mode=$ac_tag; continue;; 23610 esac 23611 case $ac_mode$ac_tag in 23612 :[FHL]*:*);; 23613 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 23614 :[FH]-) ac_tag=-:-;; 23615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 23616 esac 23617 ac_save_IFS=$IFS 23618 IFS=: 23619 set x $ac_tag 23620 IFS=$ac_save_IFS 23621 shift 23622 ac_file=$1 23623 shift 23624 23625 case $ac_mode in 23626 :L) ac_source=$1;; 23627 :[FH]) 23628 ac_file_inputs= 23629 for ac_f 23630 do 23631 case $ac_f in 23632 -) ac_f="$ac_tmp/stdin";; 23633 *) # Look for the file first in the build tree, then in the source tree 23634 # (if the path is not absolute). The absolute path cannot be DOS-style, 23635 # because $ac_f cannot contain ':'. 23636 test -f "$ac_f" || 23637 case $ac_f in 23638 [\\/$]*) false;; 23639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 23640 esac || 23641 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 23642 esac 23643 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 23644 as_fn_append ac_file_inputs " '$ac_f'" 23645 done 23646 23647 # Let's still pretend it is 'configure' which instantiates (i.e., don't 23648 # use $as_me), people would be surprised to read: 23649 # /* config.h. Generated by config.status. */ 23650 configure_input='Generated from '` 23651 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 23652 `' by configure.' 23653 if test x"$ac_file" != x-; then 23654 configure_input="$ac_file. $configure_input" 23655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 23656 printf "%s\n" "$as_me: creating $ac_file" >&6;} 23657 fi 23658 # Neutralize special characters interpreted by sed in replacement strings. 23659 case $configure_input in #( 23660 *\&* | *\|* | *\\* ) 23661 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 23662 sed 's/[\\\\&|]/\\\\&/g'`;; #( 23663 *) ac_sed_conf_input=$configure_input;; 23664 esac 23665 23666 case $ac_tag in 23667 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 23668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 23669 esac 23670 ;; 23671 esac 23672 23673 ac_dir=`$as_dirname -- "$ac_file" || 23674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23675 X"$ac_file" : 'X\(//\)[^/]' \| \ 23676 X"$ac_file" : 'X\(//\)$' \| \ 23677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 23678 printf "%s\n" X"$ac_file" | 23679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23680 s//\1/ 23681 q 23682 } 23683 /^X\(\/\/\)[^/].*/{ 23684 s//\1/ 23685 q 23686 } 23687 /^X\(\/\/\)$/{ 23688 s//\1/ 23689 q 23690 } 23691 /^X\(\/\).*/{ 23692 s//\1/ 23693 q 23694 } 23695 s/.*/./; q'` 23696 as_dir="$ac_dir"; as_fn_mkdir_p 23697 ac_builddir=. 23698 23699 case "$ac_dir" in 23700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 23701 *) 23702 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 23703 # A ".." for each directory in $ac_dir_suffix. 23704 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 23705 case $ac_top_builddir_sub in 23706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 23707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 23708 esac ;; 23709 esac 23710 ac_abs_top_builddir=$ac_pwd 23711 ac_abs_builddir=$ac_pwd$ac_dir_suffix 23712 # for backward compatibility: 23713 ac_top_builddir=$ac_top_build_prefix 23714 23715 case $srcdir in 23716 .) # We are building in place. 23717 ac_srcdir=. 23718 ac_top_srcdir=$ac_top_builddir_sub 23719 ac_abs_top_srcdir=$ac_pwd ;; 23720 [\\/]* | ?:[\\/]* ) # Absolute name. 23721 ac_srcdir=$srcdir$ac_dir_suffix; 23722 ac_top_srcdir=$srcdir 23723 ac_abs_top_srcdir=$srcdir ;; 23724 *) # Relative name. 23725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 23726 ac_top_srcdir=$ac_top_build_prefix$srcdir 23727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 23728 esac 23729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 23730 23731 23732 case $ac_mode in 23733 :F) 23734 # 23735 # CONFIG_FILE 23736 # 23737 23738 case $INSTALL in 23739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 23740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 23741 esac 23742 ac_MKDIR_P=$MKDIR_P 23743 case $MKDIR_P in 23744 [\\/$]* | ?:[\\/]* ) ;; 23745 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 23746 esac 23747 _ACEOF 23748 23749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23750 # If the template does not know about datarootdir, expand it. 23751 # FIXME: This hack should be removed a few years after 2.60. 23752 ac_datarootdir_hack=; ac_datarootdir_seen= 23753 ac_sed_dataroot=' 23754 /datarootdir/ { 23755 p 23756 q 23757 } 23758 /@datadir@/p 23759 /@docdir@/p 23760 /@infodir@/p 23761 /@localedir@/p 23762 /@mandir@/p' 23763 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 23764 *datarootdir*) ac_datarootdir_seen=yes;; 23765 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 23766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 23767 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 23768 _ACEOF 23769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23770 ac_datarootdir_hack=' 23771 s&@datadir@&$datadir&g 23772 s&@docdir@&$docdir&g 23773 s&@infodir@&$infodir&g 23774 s&@localedir@&$localedir&g 23775 s&@mandir@&$mandir&g 23776 s&\\\${datarootdir}&$datarootdir&g' ;; 23777 esac 23778 _ACEOF 23779 23780 # Neutralize VPATH when '$srcdir' = '.'. 23781 # Shell code in configure.ac might set extrasub. 23782 # FIXME: do we really want to maintain this feature? 23783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23784 ac_sed_extra="$ac_vpsub 23785 $extrasub 23786 _ACEOF 23787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23788 :t 23789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 23790 s|@configure_input@|$ac_sed_conf_input|;t t 23791 s&@top_builddir@&$ac_top_builddir_sub&;t t 23792 s&@top_build_prefix@&$ac_top_build_prefix&;t t 23793 s&@srcdir@&$ac_srcdir&;t t 23794 s&@abs_srcdir@&$ac_abs_srcdir&;t t 23795 s&@top_srcdir@&$ac_top_srcdir&;t t 23796 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 23797 s&@builddir@&$ac_builddir&;t t 23798 s&@abs_builddir@&$ac_abs_builddir&;t t 23799 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 23800 s&@INSTALL@&$ac_INSTALL&;t t 23801 s&@MKDIR_P@&$ac_MKDIR_P&;t t 23802 $ac_datarootdir_hack 23803 " 23804 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 23805 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23806 23807 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 23808 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 23809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 23810 "$ac_tmp/out"`; test -z "$ac_out"; } && 23811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23812 which seems to be undefined. Please make sure it is defined" >&5 23813 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 23814 which seems to be undefined. Please make sure it is defined" >&2;} 23815 23816 rm -f "$ac_tmp/stdin" 23817 case $ac_file in 23818 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 23819 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 23820 esac \ 23821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23822 ;; 23823 :H) 23824 # 23825 # CONFIG_HEADER 23826 # 23827 if test x"$ac_file" != x-; then 23828 { 23829 printf "%s\n" "/* $configure_input */" >&1 \ 23830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 23831 } >"$ac_tmp/config.h" \ 23832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23833 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 23834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 23835 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 23836 else 23837 rm -f "$ac_file" 23838 mv "$ac_tmp/config.h" "$ac_file" \ 23839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 23840 fi 23841 else 23842 printf "%s\n" "/* $configure_input */" >&1 \ 23843 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 23844 || as_fn_error $? "could not create -" "$LINENO" 5 23845 fi 23846 # Compute "$ac_file"'s index in $config_headers. 23847 _am_arg="$ac_file" 23848 _am_stamp_count=1 23849 for _am_header in $config_headers :; do 23850 case $_am_header in 23851 $_am_arg | $_am_arg:* ) 23852 break ;; 23853 * ) 23854 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 23855 esac 23856 done 23857 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 23858 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23859 X"$_am_arg" : 'X\(//\)[^/]' \| \ 23860 X"$_am_arg" : 'X\(//\)$' \| \ 23861 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 23862 printf "%s\n" X"$_am_arg" | 23863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23864 s//\1/ 23865 q 23866 } 23867 /^X\(\/\/\)[^/].*/{ 23868 s//\1/ 23869 q 23870 } 23871 /^X\(\/\/\)$/{ 23872 s//\1/ 23873 q 23874 } 23875 /^X\(\/\).*/{ 23876 s//\1/ 23877 q 23878 } 23879 s/.*/./; q'`/stamp-h$_am_stamp_count 23880 ;; 23881 23882 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 23883 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 23884 ;; 23885 esac 23886 23887 23888 case $ac_file$ac_mode in 23889 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 23890 # Older Autoconf quotes --file arguments for eval, but not when files 23891 # are listed without --file. Let's play safe and only enable the eval 23892 # if we detect the quoting. 23893 # TODO: see whether this extra hack can be removed once we start 23894 # requiring Autoconf 2.70 or later. 23895 case $CONFIG_FILES in #( 23896 *\'*) : 23897 eval set x "$CONFIG_FILES" ;; #( 23898 *) : 23899 set x $CONFIG_FILES ;; #( 23900 *) : 23901 ;; 23902 esac 23903 shift 23904 # Used to flag and report bootstrapping failures. 23905 am_rc=0 23906 for am_mf 23907 do 23908 # Strip MF so we end up with the name of the file. 23909 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 23910 # Check whether this is an Automake generated Makefile which includes 23911 # dependency-tracking related rules and includes. 23912 # Grep'ing the whole file directly is not great: AIX grep has a line 23913 # limit of 2048, but all sed's we know have understand at least 4000. 23914 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 23915 || continue 23916 am_dirpart=`$as_dirname -- "$am_mf" || 23917 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23918 X"$am_mf" : 'X\(//\)[^/]' \| \ 23919 X"$am_mf" : 'X\(//\)$' \| \ 23920 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23921 printf "%s\n" X"$am_mf" | 23922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23923 s//\1/ 23924 q 23925 } 23926 /^X\(\/\/\)[^/].*/{ 23927 s//\1/ 23928 q 23929 } 23930 /^X\(\/\/\)$/{ 23931 s//\1/ 23932 q 23933 } 23934 /^X\(\/\).*/{ 23935 s//\1/ 23936 q 23937 } 23938 s/.*/./; q'` 23939 am_filepart=`$as_basename -- "$am_mf" || 23940 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 23941 X"$am_mf" : 'X\(//\)$' \| \ 23942 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 23943 printf "%s\n" X/"$am_mf" | 23944 sed '/^.*\/\([^/][^/]*\)\/*$/{ 23945 s//\1/ 23946 q 23947 } 23948 /^X\/\(\/\/\)$/{ 23949 s//\1/ 23950 q 23951 } 23952 /^X\/\(\/\).*/{ 23953 s//\1/ 23954 q 23955 } 23956 s/.*/./; q'` 23957 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 23958 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23959 | $MAKE -f - am--depfiles" >&5 23960 (cd "$am_dirpart" \ 23961 && sed -e '/# am--include-marker/d' "$am_filepart" \ 23962 | $MAKE -f - am--depfiles) >&5 2>&5 23963 ac_status=$? 23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23965 (exit $ac_status); } || am_rc=$? 23966 done 23967 if test $am_rc -ne 0; then 23968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 23969 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 23970 as_fn_error $? "Something went wrong bootstrapping makefile fragments 23971 for automatic dependency tracking. If GNU make was not used, consider 23972 re-running the configure script with MAKE=\"gmake\" (or whatever is 23973 necessary). You can also try re-running configure with the 23974 '--disable-dependency-tracking' option to at least be able to build 23975 the package (albeit without support for automatic dependency tracking). 23976 See 'config.log' for more details" "$LINENO" 5; } 23977 fi 23978 { am_dirpart=; unset am_dirpart;} 23979 { am_filepart=; unset am_filepart;} 23980 { am_mf=; unset am_mf;} 23981 { am_rc=; unset am_rc;} 23982 rm -f conftest-deps.mk 23983 } 23984 ;; 23985 "libtool":C) 23986 23987 # See if we are running on zsh, and set the options that allow our 23988 # commands through without removal of \ escapes. 23989 if test -n "${ZSH_VERSION+set}"; then 23990 setopt NO_GLOB_SUBST 23991 fi 23992 23993 cfgfile=${ofile}T 23994 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 23995 $RM "$cfgfile" 23996 23997 cat <<_LT_EOF >> "$cfgfile" 23998 #! $SHELL 23999 # Generated automatically by $as_me ($PACKAGE) $VERSION 24000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 24001 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 24002 24003 # Provide generalized library-building support services. 24004 # Written by Gordon Matzigkeit, 1996 24005 24006 # Copyright (C) 2014 Free Software Foundation, Inc. 24007 # This is free software; see the source for copying conditions. There is NO 24008 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24009 24010 # GNU Libtool is free software; you can redistribute it and/or modify 24011 # it under the terms of the GNU General Public License as published by 24012 # the Free Software Foundation; either version 2 of of the License, or 24013 # (at your option) any later version. 24014 # 24015 # As a special exception to the GNU General Public License, if you 24016 # distribute this file as part of a program or library that is built 24017 # using GNU Libtool, you may include this file under the same 24018 # distribution terms that you use for the rest of that program. 24019 # 24020 # GNU Libtool is distributed in the hope that it will be useful, but 24021 # WITHOUT ANY WARRANTY; without even the implied warranty of 24022 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24023 # GNU General Public License for more details. 24024 # 24025 # You should have received a copy of the GNU General Public License 24026 # along with this program. If not, see <http://www.gnu.org/licenses/>. 24027 24028 24029 # The names of the tagged configurations supported by this script. 24030 available_tags='' 24031 24032 # Configured defaults for sys_lib_dlsearch_path munging. 24033 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24034 24035 # ### BEGIN LIBTOOL CONFIG 24036 24037 # Which release of libtool.m4 was used? 24038 macro_version=$macro_version 24039 macro_revision=$macro_revision 24040 24041 # Whether or not to build shared libraries. 24042 build_libtool_libs=$enable_shared 24043 24044 # Whether or not to build static libraries. 24045 build_old_libs=$enable_static 24046 24047 # What type of objects to build. 24048 pic_mode=$pic_mode 24049 24050 # Whether or not to optimize for fast installation. 24051 fast_install=$enable_fast_install 24052 24053 # Shared archive member basename,for filename based shared library versioning on AIX. 24054 shared_archive_member_spec=$shared_archive_member_spec 24055 24056 # Shell to use when invoking shell scripts. 24057 SHELL=$lt_SHELL 24058 24059 # An echo program that protects backslashes. 24060 ECHO=$lt_ECHO 24061 24062 # The PATH separator for the build system. 24063 PATH_SEPARATOR=$lt_PATH_SEPARATOR 24064 24065 # The host system. 24066 host_alias=$host_alias 24067 host=$host 24068 host_os=$host_os 24069 24070 # The build system. 24071 build_alias=$build_alias 24072 build=$build 24073 build_os=$build_os 24074 24075 # A sed program that does not truncate output. 24076 SED=$lt_SED 24077 24078 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 24079 Xsed="\$SED -e 1s/^X//" 24080 24081 # A grep program that handles long lines. 24082 GREP=$lt_GREP 24083 24084 # An ERE matcher. 24085 EGREP=$lt_EGREP 24086 24087 # A literal string matcher. 24088 FGREP=$lt_FGREP 24089 24090 # A BSD- or MS-compatible name lister. 24091 NM=$lt_NM 24092 24093 # Whether we need soft or hard links. 24094 LN_S=$lt_LN_S 24095 24096 # What is the maximum length of a command? 24097 max_cmd_len=$max_cmd_len 24098 24099 # Object file suffix (normally "o"). 24100 objext=$ac_objext 24101 24102 # Executable file suffix (normally ""). 24103 exeext=$exeext 24104 24105 # whether the shell understands "unset". 24106 lt_unset=$lt_unset 24107 24108 # turn spaces into newlines. 24109 SP2NL=$lt_lt_SP2NL 24110 24111 # turn newlines into spaces. 24112 NL2SP=$lt_lt_NL2SP 24113 24114 # convert \$build file names to \$host format. 24115 to_host_file_cmd=$lt_cv_to_host_file_cmd 24116 24117 # convert \$build files to toolchain format. 24118 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24119 24120 # A file(cmd) program that detects file types. 24121 FILECMD=$lt_FILECMD 24122 24123 # An object symbol dumper. 24124 OBJDUMP=$lt_OBJDUMP 24125 24126 # Method to check whether dependent libraries are shared objects. 24127 deplibs_check_method=$lt_deplibs_check_method 24128 24129 # Command to use when deplibs_check_method = "file_magic". 24130 file_magic_cmd=$lt_file_magic_cmd 24131 24132 # How to find potential files when deplibs_check_method = "file_magic". 24133 file_magic_glob=$lt_file_magic_glob 24134 24135 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24136 want_nocaseglob=$lt_want_nocaseglob 24137 24138 # DLL creation program. 24139 DLLTOOL=$lt_DLLTOOL 24140 24141 # Command to associate shared and link libraries. 24142 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24143 24144 # The archiver. 24145 AR=$lt_AR 24146 24147 # Flags to create an archive (by configure). 24148 lt_ar_flags=$lt_ar_flags 24149 24150 # Flags to create an archive. 24151 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 24152 24153 # How to feed a file listing to the archiver. 24154 archiver_list_spec=$lt_archiver_list_spec 24155 24156 # A symbol stripping program. 24157 STRIP=$lt_STRIP 24158 24159 # Commands used to install an old-style archive. 24160 RANLIB=$lt_RANLIB 24161 old_postinstall_cmds=$lt_old_postinstall_cmds 24162 old_postuninstall_cmds=$lt_old_postuninstall_cmds 24163 24164 # Whether to use a lock for old archive extraction. 24165 lock_old_archive_extraction=$lock_old_archive_extraction 24166 24167 # A C compiler. 24168 LTCC=$lt_CC 24169 24170 # LTCC compiler flags. 24171 LTCFLAGS=$lt_CFLAGS 24172 24173 # Take the output of nm and produce a listing of raw symbols and C names. 24174 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24175 24176 # Transform the output of nm in a proper C declaration. 24177 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24178 24179 # Transform the output of nm into a list of symbols to manually relocate. 24180 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24181 24182 # Transform the output of nm in a C name address pair. 24183 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24184 24185 # Transform the output of nm in a C name address pair when lib prefix is needed. 24186 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24187 24188 # The name lister interface. 24189 nm_interface=$lt_lt_cv_nm_interface 24190 24191 # Specify filename containing input files for \$NM. 24192 nm_file_list_spec=$lt_nm_file_list_spec 24193 24194 # The root where to search for dependent libraries,and where our libraries should be installed. 24195 lt_sysroot=$lt_sysroot 24196 24197 # Command to truncate a binary pipe. 24198 lt_truncate_bin=$lt_lt_cv_truncate_bin 24199 24200 # The name of the directory that contains temporary libtool files. 24201 objdir=$objdir 24202 24203 # Used to examine libraries when file_magic_cmd begins with "file". 24204 MAGIC_CMD=$MAGIC_CMD 24205 24206 # Must we lock files when doing compilation? 24207 need_locks=$lt_need_locks 24208 24209 # Manifest tool. 24210 MANIFEST_TOOL=$lt_MANIFEST_TOOL 24211 24212 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24213 DSYMUTIL=$lt_DSYMUTIL 24214 24215 # Tool to change global to local symbols on Mac OS X. 24216 NMEDIT=$lt_NMEDIT 24217 24218 # Tool to manipulate fat objects and archives on Mac OS X. 24219 LIPO=$lt_LIPO 24220 24221 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 24222 OTOOL=$lt_OTOOL 24223 24224 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24225 OTOOL64=$lt_OTOOL64 24226 24227 # Old archive suffix (normally "a"). 24228 libext=$libext 24229 24230 # Shared library suffix (normally ".so"). 24231 shrext_cmds=$lt_shrext_cmds 24232 24233 # The commands to extract the exported symbol list from a shared archive. 24234 extract_expsyms_cmds=$lt_extract_expsyms_cmds 24235 24236 # Variables whose values should be saved in libtool wrapper scripts and 24237 # restored at link time. 24238 variables_saved_for_relink=$lt_variables_saved_for_relink 24239 24240 # Do we need the "lib" prefix for modules? 24241 need_lib_prefix=$need_lib_prefix 24242 24243 # Do we need a version for libraries? 24244 need_version=$need_version 24245 24246 # Library versioning type. 24247 version_type=$version_type 24248 24249 # Shared library runtime path variable. 24250 runpath_var=$runpath_var 24251 24252 # Shared library path variable. 24253 shlibpath_var=$shlibpath_var 24254 24255 # Is shlibpath searched before the hard-coded library search path? 24256 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24257 24258 # Format of library name prefix. 24259 libname_spec=$lt_libname_spec 24260 24261 # List of archive names. First name is the real one, the rest are links. 24262 # The last name is the one that the linker finds with -lNAME 24263 library_names_spec=$lt_library_names_spec 24264 24265 # The coded name of the library, if different from the real name. 24266 soname_spec=$lt_soname_spec 24267 24268 # Permission mode override for installation of shared libraries. 24269 install_override_mode=$lt_install_override_mode 24270 24271 # Command to use after installation of a shared archive. 24272 postinstall_cmds=$lt_postinstall_cmds 24273 24274 # Command to use after uninstallation of a shared archive. 24275 postuninstall_cmds=$lt_postuninstall_cmds 24276 24277 # Commands used to finish a libtool library installation in a directory. 24278 finish_cmds=$lt_finish_cmds 24279 24280 # As "finish_cmds", except a single script fragment to be evaled but 24281 # not shown. 24282 finish_eval=$lt_finish_eval 24283 24284 # Whether we should hardcode library paths into libraries. 24285 hardcode_into_libs=$hardcode_into_libs 24286 24287 # Compile-time system search path for libraries. 24288 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24289 24290 # Detected run-time system search path for libraries. 24291 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24292 24293 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24294 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24295 24296 # Whether dlopen is supported. 24297 dlopen_support=$enable_dlopen 24298 24299 # Whether dlopen of programs is supported. 24300 dlopen_self=$enable_dlopen_self 24301 24302 # Whether dlopen of statically linked programs is supported. 24303 dlopen_self_static=$enable_dlopen_self_static 24304 24305 # Commands to strip libraries. 24306 old_striplib=$lt_old_striplib 24307 striplib=$lt_striplib 24308 24309 24310 # The linker used to build libraries. 24311 LD=$lt_LD 24312 24313 # How to create reloadable object files. 24314 reload_flag=$lt_reload_flag 24315 reload_cmds=$lt_reload_cmds 24316 24317 # Commands used to build an old-style archive. 24318 old_archive_cmds=$lt_old_archive_cmds 24319 24320 # A language specific compiler. 24321 CC=$lt_compiler 24322 24323 # Is the compiler the GNU compiler? 24324 with_gcc=$GCC 24325 24326 # Compiler flag to turn off builtin functions. 24327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24328 24329 # Additional compiler flags for building library objects. 24330 pic_flag=$lt_lt_prog_compiler_pic 24331 24332 # How to pass a linker flag through the compiler. 24333 wl=$lt_lt_prog_compiler_wl 24334 24335 # Compiler flag to prevent dynamic linking. 24336 link_static_flag=$lt_lt_prog_compiler_static 24337 24338 # Does compiler simultaneously support -c and -o options? 24339 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24340 24341 # Whether or not to add -lc for building shared libraries. 24342 build_libtool_need_lc=$archive_cmds_need_lc 24343 24344 # Whether or not to disallow shared libs when runtime libs are static. 24345 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24346 24347 # Compiler flag to allow reflexive dlopens. 24348 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24349 24350 # Compiler flag to generate shared objects directly from archives. 24351 whole_archive_flag_spec=$lt_whole_archive_flag_spec 24352 24353 # Whether the compiler copes with passing no objects directly. 24354 compiler_needs_object=$lt_compiler_needs_object 24355 24356 # Create an old-style archive from a shared archive. 24357 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24358 24359 # Create a temporary old-style archive to link instead of a shared archive. 24360 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24361 24362 # Commands used to build a shared archive. 24363 archive_cmds=$lt_archive_cmds 24364 archive_expsym_cmds=$lt_archive_expsym_cmds 24365 24366 # Commands used to build a loadable module if different from building 24367 # a shared archive. 24368 module_cmds=$lt_module_cmds 24369 module_expsym_cmds=$lt_module_expsym_cmds 24370 24371 # Whether we are building with GNU ld or not. 24372 with_gnu_ld=$lt_with_gnu_ld 24373 24374 # Flag that allows shared libraries with undefined symbols to be built. 24375 allow_undefined_flag=$lt_allow_undefined_flag 24376 24377 # Flag that enforces no undefined symbols. 24378 no_undefined_flag=$lt_no_undefined_flag 24379 24380 # Flag to hardcode \$libdir into a binary during linking. 24381 # This must work even if \$libdir does not exist 24382 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24383 24384 # Whether we need a single "-rpath" flag with a separated argument. 24385 hardcode_libdir_separator=$lt_hardcode_libdir_separator 24386 24387 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24388 # DIR into the resulting binary. 24389 hardcode_direct=$hardcode_direct 24390 24391 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24392 # DIR into the resulting binary and the resulting library dependency is 24393 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 24394 # library is relocated. 24395 hardcode_direct_absolute=$hardcode_direct_absolute 24396 24397 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24398 # into the resulting binary. 24399 hardcode_minus_L=$hardcode_minus_L 24400 24401 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24402 # into the resulting binary. 24403 hardcode_shlibpath_var=$hardcode_shlibpath_var 24404 24405 # Set to "yes" if building a shared library automatically hardcodes DIR 24406 # into the library and all subsequent libraries and executables linked 24407 # against it. 24408 hardcode_automatic=$hardcode_automatic 24409 24410 # Set to yes if linker adds runtime paths of dependent libraries 24411 # to runtime path list. 24412 inherit_rpath=$inherit_rpath 24413 24414 # Whether libtool must link a program against all its dependency libraries. 24415 link_all_deplibs=$link_all_deplibs 24416 24417 # Set to "yes" if exported symbols are required. 24418 always_export_symbols=$always_export_symbols 24419 24420 # The commands to list exported symbols. 24421 export_symbols_cmds=$lt_export_symbols_cmds 24422 24423 # Symbols that should not be listed in the preloaded symbols. 24424 exclude_expsyms=$lt_exclude_expsyms 24425 24426 # Symbols that must always be exported. 24427 include_expsyms=$lt_include_expsyms 24428 24429 # Commands necessary for linking programs (against libraries) with templates. 24430 prelink_cmds=$lt_prelink_cmds 24431 24432 # Commands necessary for finishing linking programs. 24433 postlink_cmds=$lt_postlink_cmds 24434 24435 # Specify filename containing input files. 24436 file_list_spec=$lt_file_list_spec 24437 24438 # How to hardcode a shared library path into an executable. 24439 hardcode_action=$hardcode_action 24440 24441 # ### END LIBTOOL CONFIG 24442 24443 _LT_EOF 24444 24445 cat <<'_LT_EOF' >> "$cfgfile" 24446 24447 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24448 24449 # func_munge_path_list VARIABLE PATH 24450 # ----------------------------------- 24451 # VARIABLE is name of variable containing _space_ separated list of 24452 # directories to be munged by the contents of PATH, which is string 24453 # having a format: 24454 # "DIR[:DIR]:" 24455 # string "DIR[ DIR]" will be prepended to VARIABLE 24456 # ":DIR[:DIR]" 24457 # string "DIR[ DIR]" will be appended to VARIABLE 24458 # "DIRP[:DIRP]::[DIRA:]DIRA" 24459 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24460 # "DIRA[ DIRA]" will be appended to VARIABLE 24461 # "DIR[:DIR]" 24462 # VARIABLE will be replaced by "DIR[ DIR]" 24463 func_munge_path_list () 24464 { 24465 case x$2 in 24466 x) 24467 ;; 24468 *:) 24469 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24470 ;; 24471 x:*) 24472 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24473 ;; 24474 *::*) 24475 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24476 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24477 ;; 24478 *) 24479 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24480 ;; 24481 esac 24482 } 24483 24484 24485 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24486 func_cc_basename () 24487 { 24488 for cc_temp in $*""; do 24489 case $cc_temp in 24490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24492 \-*) ;; 24493 *) break;; 24494 esac 24495 done 24496 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24497 } 24498 24499 24500 # ### END FUNCTIONS SHARED WITH CONFIGURE 24501 24502 _LT_EOF 24503 24504 case $host_os in 24505 aix3*) 24506 cat <<\_LT_EOF >> "$cfgfile" 24507 # AIX sometimes has problems with the GCC collect2 program. For some 24508 # reason, if we set the COLLECT_NAMES environment variable, the problems 24509 # vanish in a puff of smoke. 24510 if test set != "${COLLECT_NAMES+set}"; then 24511 COLLECT_NAMES= 24512 export COLLECT_NAMES 24513 fi 24514 _LT_EOF 24515 ;; 24516 esac 24517 24518 24519 24520 ltmain=$ac_aux_dir/ltmain.sh 24521 24522 24523 # We use sed instead of cat because bash on DJGPP gets confused if 24524 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24525 # text mode, it properly converts lines to CR/LF. This bash problem 24526 # is reportedly fixed, but why not run on old versions too? 24527 $SED '$q' "$ltmain" >> "$cfgfile" \ 24528 || (rm -f "$cfgfile"; exit 1) 24529 24530 mv -f "$cfgfile" "$ofile" || 24531 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24532 chmod +x "$ofile" 24533 24534 ;; 24535 24536 esac 24537 done # for ac_tag 24538 24539 24540 as_fn_exit 0 24541 _ACEOF 24542 ac_clean_files=$ac_clean_files_save 24543 24544 test $ac_write_fail = 0 || 24545 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 24546 24547 24548 # configure is writing to config.log, and then calls config.status. 24549 # config.status does its own redirection, appending to config.log. 24550 # Unfortunately, on DOS this fails, as config.log is still kept open 24551 # by configure, so config.status won't be able to write to it; its 24552 # output is simply discarded. So we exec the FD to /dev/null, 24553 # effectively closing config.log, so it can be properly (re)opened and 24554 # appended to by config.status. When coming back to configure, we 24555 # need to make the FD available again. 24556 if test "$no_create" != yes; then 24557 ac_cs_success=: 24558 ac_config_status_args= 24559 test "$silent" = yes && 24560 ac_config_status_args="$ac_config_status_args --quiet" 24561 exec 5>/dev/null 24562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 24563 exec 5>>config.log 24564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 24565 # would make configure fail if this is the last instruction. 24566 $ac_cs_success || as_fn_exit 1 24567 fi 24568 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 24569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 24570 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 24571 fi 24572 24573 24574