configure revision 198e4c3c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libXmu 1.1.3. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXmu/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://gitlab.freedesktop.org/xorg/lib/libXmu/issues 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570as_awk_strverscmp=' 571 # Use only awk features that work with 7th edition Unix awk (1978). 572 # My, what an old awk you have, Mr. Solaris! 573 END { 574 while (length(v1) && length(v2)) { 575 # Set d1 to be the next thing to compare from v1, and likewise for d2. 576 # Normally this is a single character, but if v1 and v2 contain digits, 577 # compare them as integers and fractions as strverscmp does. 578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 579 # Split v1 and v2 into their leading digit string components d1 and d2, 580 # and advance v1 and v2 past the leading digit strings. 581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 585 if (d1 ~ /^0/) { 586 if (d2 ~ /^0/) { 587 # Compare two fractions. 588 while (d1 ~ /^0/ && d2 ~ /^0/) { 589 d1 = substr(d1, 2); len1-- 590 d2 = substr(d2, 2); len2-- 591 } 592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 593 # The two components differ in length, and the common prefix 594 # contains only leading zeros. Consider the longer to be less. 595 d1 = -len1 596 d2 = -len2 597 } else { 598 # Otherwise, compare as strings. 599 d1 = "x" d1 600 d2 = "x" d2 601 } 602 } else { 603 # A fraction is less than an integer. 604 exit 1 605 } 606 } else { 607 if (d2 ~ /^0/) { 608 # An integer is greater than a fraction. 609 exit 2 610 } else { 611 # Compare two integers. 612 d1 += 0 613 d2 += 0 614 } 615 } 616 } else { 617 # The normal case, without worrying about digits. 618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 620 } 621 if (d1 < d2) exit 1 622 if (d1 > d2) exit 2 623 } 624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 625 # which mishandles some comparisons of empty strings to integers. 626 if (length(v2)) exit 1 627 if (length(v1)) exit 2 628 } 629' 630 631test -n "$DJDIR" || exec 7<&0 </dev/null 632exec 6>&1 633 634# Name of the host. 635# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 636# so uname gets run too. 637ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 638 639# 640# Initializations. 641# 642ac_default_prefix=/usr/local 643ac_clean_files= 644ac_config_libobj_dir=. 645LIBOBJS= 646cross_compiling=no 647subdirs= 648MFLAGS= 649MAKEFLAGS= 650 651# Identity of this package. 652PACKAGE_NAME='libXmu' 653PACKAGE_TARNAME='libXmu' 654PACKAGE_VERSION='1.1.3' 655PACKAGE_STRING='libXmu 1.1.3' 656PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libXmu/issues' 657PACKAGE_URL='' 658 659ac_unique_file="Makefile.am" 660# Factoring default headers for most tests. 661ac_includes_default="\ 662#include <stdio.h> 663#ifdef HAVE_SYS_TYPES_H 664# include <sys/types.h> 665#endif 666#ifdef HAVE_SYS_STAT_H 667# include <sys/stat.h> 668#endif 669#ifdef STDC_HEADERS 670# include <stdlib.h> 671# include <stddef.h> 672#else 673# ifdef HAVE_STDLIB_H 674# include <stdlib.h> 675# endif 676#endif 677#ifdef HAVE_STRING_H 678# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 679# include <memory.h> 680# endif 681# include <string.h> 682#endif 683#ifdef HAVE_STRINGS_H 684# include <strings.h> 685#endif 686#ifdef HAVE_INTTYPES_H 687# include <inttypes.h> 688#endif 689#ifdef HAVE_STDINT_H 690# include <stdint.h> 691#endif 692#ifdef HAVE_UNISTD_H 693# include <unistd.h> 694#endif" 695 696ac_subst_vars='am__EXEEXT_FALSE 697am__EXEEXT_TRUE 698LTLIBOBJS 699LIBOBJS 700LINTLIBUU 701MAKE_LINT_LIB_FALSE 702MAKE_LINT_LIB_TRUE 703LINTLIB 704LINT_FALSE 705LINT_TRUE 706LINT_FLAGS 707LINT 708XMUU_LIBS 709XMUU_CFLAGS 710XMU_LIBS 711XMU_CFLAGS 712HAVE_STYLESHEETS_FALSE 713HAVE_STYLESHEETS_TRUE 714XSL_STYLESHEET 715STYLESHEET_SRCDIR 716XORG_SGML_PATH 717HAVE_XSLTPROC_FALSE 718HAVE_XSLTPROC_TRUE 719XSLTPROC 720HAVE_FOP_FALSE 721HAVE_FOP_TRUE 722FOP 723HAVE_XMLTO_FALSE 724HAVE_XMLTO_TRUE 725HAVE_XMLTO_TEXT_FALSE 726HAVE_XMLTO_TEXT_TRUE 727XMLTO 728ENABLE_DOCS_FALSE 729ENABLE_DOCS_TRUE 730MAN_SUBSTS 731XORG_MAN_PAGE 732ADMIN_MAN_DIR 733DRIVER_MAN_DIR 734MISC_MAN_DIR 735FILE_MAN_DIR 736LIB_MAN_DIR 737APP_MAN_DIR 738ADMIN_MAN_SUFFIX 739DRIVER_MAN_SUFFIX 740MISC_MAN_SUFFIX 741FILE_MAN_SUFFIX 742LIB_MAN_SUFFIX 743APP_MAN_SUFFIX 744INSTALL_CMD 745PKG_CONFIG_LIBDIR 746PKG_CONFIG_PATH 747PKG_CONFIG 748CHANGELOG_CMD 749STRICT_CFLAGS 750CWARNFLAGS 751BASE_CFLAGS 752CPP 753LT_SYS_LIBRARY_PATH 754OTOOL64 755OTOOL 756LIPO 757NMEDIT 758DSYMUTIL 759MANIFEST_TOOL 760RANLIB 761ac_ct_AR 762AR 763DLLTOOL 764OBJDUMP 765LN_S 766NM 767ac_ct_DUMPBIN 768DUMPBIN 769LD 770FGREP 771EGREP 772GREP 773SED 774am__fastdepCC_FALSE 775am__fastdepCC_TRUE 776CCDEPMODE 777am__nodep 778AMDEPBACKSLASH 779AMDEP_FALSE 780AMDEP_TRUE 781am__quote 782am__include 783DEPDIR 784OBJEXT 785EXEEXT 786ac_ct_CC 787CPPFLAGS 788LDFLAGS 789CFLAGS 790CC 791host_os 792host_vendor 793host_cpu 794host 795build_os 796build_vendor 797build_cpu 798build 799LIBTOOL 800AM_BACKSLASH 801AM_DEFAULT_VERBOSITY 802AM_DEFAULT_V 803AM_V 804am__untar 805am__tar 806AMTAR 807am__leading_dot 808SET_MAKE 809AWK 810mkdir_p 811MKDIR_P 812INSTALL_STRIP_PROGRAM 813STRIP 814install_sh 815MAKEINFO 816AUTOHEADER 817AUTOMAKE 818AUTOCONF 819ACLOCAL 820VERSION 821PACKAGE 822CYGPATH_W 823am__isrc 824INSTALL_DATA 825INSTALL_SCRIPT 826INSTALL_PROGRAM 827target_alias 828host_alias 829build_alias 830LIBS 831ECHO_T 832ECHO_N 833ECHO_C 834DEFS 835mandir 836localedir 837libdir 838psdir 839pdfdir 840dvidir 841htmldir 842infodir 843docdir 844oldincludedir 845includedir 846localstatedir 847sharedstatedir 848sysconfdir 849datadir 850datarootdir 851libexecdir 852sbindir 853bindir 854program_transform_name 855prefix 856exec_prefix 857PACKAGE_URL 858PACKAGE_BUGREPORT 859PACKAGE_STRING 860PACKAGE_VERSION 861PACKAGE_TARNAME 862PACKAGE_NAME 863PATH_SEPARATOR 864SHELL' 865ac_subst_files='' 866ac_user_opts=' 867enable_option_checking 868enable_silent_rules 869enable_shared 870enable_static 871with_pic 872enable_fast_install 873with_aix_soname 874enable_dependency_tracking 875with_gnu_ld 876with_sysroot 877enable_libtool_lock 878enable_selective_werror 879enable_strict_compilation 880enable_docs 881with_xmlto 882with_fop 883with_xsltproc 884enable_unix_transport 885enable_tcp_transport 886enable_ipv6 887enable_local_transport 888with_lint 889enable_lint_library 890' 891 ac_precious_vars='build_alias 892host_alias 893target_alias 894CC 895CFLAGS 896LDFLAGS 897LIBS 898CPPFLAGS 899LT_SYS_LIBRARY_PATH 900CPP 901PKG_CONFIG 902PKG_CONFIG_PATH 903PKG_CONFIG_LIBDIR 904XMLTO 905FOP 906XSLTPROC 907XMU_CFLAGS 908XMU_LIBS 909XMUU_CFLAGS 910XMUU_LIBS 911LINT 912LINT_FLAGS' 913 914 915# Initialize some variables set by options. 916ac_init_help= 917ac_init_version=false 918ac_unrecognized_opts= 919ac_unrecognized_sep= 920# The variables have the same names as the options, with 921# dashes changed to underlines. 922cache_file=/dev/null 923exec_prefix=NONE 924no_create= 925no_recursion= 926prefix=NONE 927program_prefix=NONE 928program_suffix=NONE 929program_transform_name=s,x,x, 930silent= 931site= 932srcdir= 933verbose= 934x_includes=NONE 935x_libraries=NONE 936 937# Installation directory options. 938# These are left unexpanded so users can "make install exec_prefix=/foo" 939# and all the variables that are supposed to be based on exec_prefix 940# by default will actually change. 941# Use braces instead of parens because sh, perl, etc. also accept them. 942# (The list follows the same order as the GNU Coding Standards.) 943bindir='${exec_prefix}/bin' 944sbindir='${exec_prefix}/sbin' 945libexecdir='${exec_prefix}/libexec' 946datarootdir='${prefix}/share' 947datadir='${datarootdir}' 948sysconfdir='${prefix}/etc' 949sharedstatedir='${prefix}/com' 950localstatedir='${prefix}/var' 951includedir='${prefix}/include' 952oldincludedir='/usr/include' 953docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 954infodir='${datarootdir}/info' 955htmldir='${docdir}' 956dvidir='${docdir}' 957pdfdir='${docdir}' 958psdir='${docdir}' 959libdir='${exec_prefix}/lib' 960localedir='${datarootdir}/locale' 961mandir='${datarootdir}/man' 962 963ac_prev= 964ac_dashdash= 965for ac_option 966do 967 # If the previous option needs an argument, assign it. 968 if test -n "$ac_prev"; then 969 eval $ac_prev=\$ac_option 970 ac_prev= 971 continue 972 fi 973 974 case $ac_option in 975 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 976 *=) ac_optarg= ;; 977 *) ac_optarg=yes ;; 978 esac 979 980 # Accept the important Cygnus configure options, so we can diagnose typos. 981 982 case $ac_dashdash$ac_option in 983 --) 984 ac_dashdash=yes ;; 985 986 -bindir | --bindir | --bindi | --bind | --bin | --bi) 987 ac_prev=bindir ;; 988 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 989 bindir=$ac_optarg ;; 990 991 -build | --build | --buil | --bui | --bu) 992 ac_prev=build_alias ;; 993 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 994 build_alias=$ac_optarg ;; 995 996 -cache-file | --cache-file | --cache-fil | --cache-fi \ 997 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 998 ac_prev=cache_file ;; 999 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1000 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1001 cache_file=$ac_optarg ;; 1002 1003 --config-cache | -C) 1004 cache_file=config.cache ;; 1005 1006 -datadir | --datadir | --datadi | --datad) 1007 ac_prev=datadir ;; 1008 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1009 datadir=$ac_optarg ;; 1010 1011 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1012 | --dataroo | --dataro | --datar) 1013 ac_prev=datarootdir ;; 1014 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1015 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1016 datarootdir=$ac_optarg ;; 1017 1018 -disable-* | --disable-*) 1019 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1020 # Reject names that are not valid shell variable names. 1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1022 as_fn_error $? "invalid feature name: $ac_useropt" 1023 ac_useropt_orig=$ac_useropt 1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1025 case $ac_user_opts in 1026 *" 1027"enable_$ac_useropt" 1028"*) ;; 1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1030 ac_unrecognized_sep=', ';; 1031 esac 1032 eval enable_$ac_useropt=no ;; 1033 1034 -docdir | --docdir | --docdi | --doc | --do) 1035 ac_prev=docdir ;; 1036 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1037 docdir=$ac_optarg ;; 1038 1039 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1040 ac_prev=dvidir ;; 1041 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1042 dvidir=$ac_optarg ;; 1043 1044 -enable-* | --enable-*) 1045 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1046 # Reject names that are not valid shell variable names. 1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1048 as_fn_error $? "invalid feature name: $ac_useropt" 1049 ac_useropt_orig=$ac_useropt 1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1051 case $ac_user_opts in 1052 *" 1053"enable_$ac_useropt" 1054"*) ;; 1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1056 ac_unrecognized_sep=', ';; 1057 esac 1058 eval enable_$ac_useropt=\$ac_optarg ;; 1059 1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1062 | --exec | --exe | --ex) 1063 ac_prev=exec_prefix ;; 1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1066 | --exec=* | --exe=* | --ex=*) 1067 exec_prefix=$ac_optarg ;; 1068 1069 -gas | --gas | --ga | --g) 1070 # Obsolete; use --with-gas. 1071 with_gas=yes ;; 1072 1073 -help | --help | --hel | --he | -h) 1074 ac_init_help=long ;; 1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1076 ac_init_help=recursive ;; 1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1078 ac_init_help=short ;; 1079 1080 -host | --host | --hos | --ho) 1081 ac_prev=host_alias ;; 1082 -host=* | --host=* | --hos=* | --ho=*) 1083 host_alias=$ac_optarg ;; 1084 1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1086 ac_prev=htmldir ;; 1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1088 | --ht=*) 1089 htmldir=$ac_optarg ;; 1090 1091 -includedir | --includedir | --includedi | --included | --include \ 1092 | --includ | --inclu | --incl | --inc) 1093 ac_prev=includedir ;; 1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1095 | --includ=* | --inclu=* | --incl=* | --inc=*) 1096 includedir=$ac_optarg ;; 1097 1098 -infodir | --infodir | --infodi | --infod | --info | --inf) 1099 ac_prev=infodir ;; 1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1101 infodir=$ac_optarg ;; 1102 1103 -libdir | --libdir | --libdi | --libd) 1104 ac_prev=libdir ;; 1105 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1106 libdir=$ac_optarg ;; 1107 1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1109 | --libexe | --libex | --libe) 1110 ac_prev=libexecdir ;; 1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1112 | --libexe=* | --libex=* | --libe=*) 1113 libexecdir=$ac_optarg ;; 1114 1115 -localedir | --localedir | --localedi | --localed | --locale) 1116 ac_prev=localedir ;; 1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1118 localedir=$ac_optarg ;; 1119 1120 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1121 | --localstate | --localstat | --localsta | --localst | --locals) 1122 ac_prev=localstatedir ;; 1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1125 localstatedir=$ac_optarg ;; 1126 1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1128 ac_prev=mandir ;; 1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1130 mandir=$ac_optarg ;; 1131 1132 -nfp | --nfp | --nf) 1133 # Obsolete; use --without-fp. 1134 with_fp=no ;; 1135 1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1137 | --no-cr | --no-c | -n) 1138 no_create=yes ;; 1139 1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1142 no_recursion=yes ;; 1143 1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1146 | --oldin | --oldi | --old | --ol | --o) 1147 ac_prev=oldincludedir ;; 1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1151 oldincludedir=$ac_optarg ;; 1152 1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1154 ac_prev=prefix ;; 1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1156 prefix=$ac_optarg ;; 1157 1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1159 | --program-pre | --program-pr | --program-p) 1160 ac_prev=program_prefix ;; 1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1163 program_prefix=$ac_optarg ;; 1164 1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1166 | --program-suf | --program-su | --program-s) 1167 ac_prev=program_suffix ;; 1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1170 program_suffix=$ac_optarg ;; 1171 1172 -program-transform-name | --program-transform-name \ 1173 | --program-transform-nam | --program-transform-na \ 1174 | --program-transform-n | --program-transform- \ 1175 | --program-transform | --program-transfor \ 1176 | --program-transfo | --program-transf \ 1177 | --program-trans | --program-tran \ 1178 | --progr-tra | --program-tr | --program-t) 1179 ac_prev=program_transform_name ;; 1180 -program-transform-name=* | --program-transform-name=* \ 1181 | --program-transform-nam=* | --program-transform-na=* \ 1182 | --program-transform-n=* | --program-transform-=* \ 1183 | --program-transform=* | --program-transfor=* \ 1184 | --program-transfo=* | --program-transf=* \ 1185 | --program-trans=* | --program-tran=* \ 1186 | --progr-tra=* | --program-tr=* | --program-t=*) 1187 program_transform_name=$ac_optarg ;; 1188 1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1190 ac_prev=pdfdir ;; 1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1192 pdfdir=$ac_optarg ;; 1193 1194 -psdir | --psdir | --psdi | --psd | --ps) 1195 ac_prev=psdir ;; 1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1197 psdir=$ac_optarg ;; 1198 1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1200 | -silent | --silent | --silen | --sile | --sil) 1201 silent=yes ;; 1202 1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1204 ac_prev=sbindir ;; 1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1206 | --sbi=* | --sb=*) 1207 sbindir=$ac_optarg ;; 1208 1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1211 | --sharedst | --shareds | --shared | --share | --shar \ 1212 | --sha | --sh) 1213 ac_prev=sharedstatedir ;; 1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1217 | --sha=* | --sh=*) 1218 sharedstatedir=$ac_optarg ;; 1219 1220 -site | --site | --sit) 1221 ac_prev=site ;; 1222 -site=* | --site=* | --sit=*) 1223 site=$ac_optarg ;; 1224 1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1226 ac_prev=srcdir ;; 1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1228 srcdir=$ac_optarg ;; 1229 1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1231 | --syscon | --sysco | --sysc | --sys | --sy) 1232 ac_prev=sysconfdir ;; 1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1235 sysconfdir=$ac_optarg ;; 1236 1237 -target | --target | --targe | --targ | --tar | --ta | --t) 1238 ac_prev=target_alias ;; 1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1240 target_alias=$ac_optarg ;; 1241 1242 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1243 verbose=yes ;; 1244 1245 -version | --version | --versio | --versi | --vers | -V) 1246 ac_init_version=: ;; 1247 1248 -with-* | --with-*) 1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1250 # Reject names that are not valid shell variable names. 1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1252 as_fn_error $? "invalid package name: $ac_useropt" 1253 ac_useropt_orig=$ac_useropt 1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1255 case $ac_user_opts in 1256 *" 1257"with_$ac_useropt" 1258"*) ;; 1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1260 ac_unrecognized_sep=', ';; 1261 esac 1262 eval with_$ac_useropt=\$ac_optarg ;; 1263 1264 -without-* | --without-*) 1265 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1266 # Reject names that are not valid shell variable names. 1267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1268 as_fn_error $? "invalid package name: $ac_useropt" 1269 ac_useropt_orig=$ac_useropt 1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1271 case $ac_user_opts in 1272 *" 1273"with_$ac_useropt" 1274"*) ;; 1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1276 ac_unrecognized_sep=', ';; 1277 esac 1278 eval with_$ac_useropt=no ;; 1279 1280 --x) 1281 # Obsolete; use --with-x. 1282 with_x=yes ;; 1283 1284 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1285 | --x-incl | --x-inc | --x-in | --x-i) 1286 ac_prev=x_includes ;; 1287 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1288 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1289 x_includes=$ac_optarg ;; 1290 1291 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1292 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1293 ac_prev=x_libraries ;; 1294 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1295 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1296 x_libraries=$ac_optarg ;; 1297 1298 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1299Try \`$0 --help' for more information" 1300 ;; 1301 1302 *=*) 1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1304 # Reject names that are not valid shell variable names. 1305 case $ac_envvar in #( 1306 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1307 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1308 esac 1309 eval $ac_envvar=\$ac_optarg 1310 export $ac_envvar ;; 1311 1312 *) 1313 # FIXME: should be removed in autoconf 3.0. 1314 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1315 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1316 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1317 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1318 ;; 1319 1320 esac 1321done 1322 1323if test -n "$ac_prev"; then 1324 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1325 as_fn_error $? "missing argument to $ac_option" 1326fi 1327 1328if test -n "$ac_unrecognized_opts"; then 1329 case $enable_option_checking in 1330 no) ;; 1331 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1332 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1333 esac 1334fi 1335 1336# Check all directory arguments for consistency. 1337for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1338 datadir sysconfdir sharedstatedir localstatedir includedir \ 1339 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1340 libdir localedir mandir 1341do 1342 eval ac_val=\$$ac_var 1343 # Remove trailing slashes. 1344 case $ac_val in 1345 */ ) 1346 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1347 eval $ac_var=\$ac_val;; 1348 esac 1349 # Be sure to have absolute directory names. 1350 case $ac_val in 1351 [\\/$]* | ?:[\\/]* ) continue;; 1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1353 esac 1354 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1355done 1356 1357# There might be people who depend on the old broken behavior: `$host' 1358# used to hold the argument of --host etc. 1359# FIXME: To remove some day. 1360build=$build_alias 1361host=$host_alias 1362target=$target_alias 1363 1364# FIXME: To remove some day. 1365if test "x$host_alias" != x; then 1366 if test "x$build_alias" = x; then 1367 cross_compiling=maybe 1368 elif test "x$build_alias" != "x$host_alias"; then 1369 cross_compiling=yes 1370 fi 1371fi 1372 1373ac_tool_prefix= 1374test -n "$host_alias" && ac_tool_prefix=$host_alias- 1375 1376test "$silent" = yes && exec 6>/dev/null 1377 1378 1379ac_pwd=`pwd` && test -n "$ac_pwd" && 1380ac_ls_di=`ls -di .` && 1381ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1382 as_fn_error $? "working directory cannot be determined" 1383test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1384 as_fn_error $? "pwd does not report name of working directory" 1385 1386 1387# Find the source files, if location was not specified. 1388if test -z "$srcdir"; then 1389 ac_srcdir_defaulted=yes 1390 # Try the directory containing this script, then the parent directory. 1391 ac_confdir=`$as_dirname -- "$as_myself" || 1392$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1393 X"$as_myself" : 'X\(//\)[^/]' \| \ 1394 X"$as_myself" : 'X\(//\)$' \| \ 1395 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1396$as_echo X"$as_myself" | 1397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1398 s//\1/ 1399 q 1400 } 1401 /^X\(\/\/\)[^/].*/{ 1402 s//\1/ 1403 q 1404 } 1405 /^X\(\/\/\)$/{ 1406 s//\1/ 1407 q 1408 } 1409 /^X\(\/\).*/{ 1410 s//\1/ 1411 q 1412 } 1413 s/.*/./; q'` 1414 srcdir=$ac_confdir 1415 if test ! -r "$srcdir/$ac_unique_file"; then 1416 srcdir=.. 1417 fi 1418else 1419 ac_srcdir_defaulted=no 1420fi 1421if test ! -r "$srcdir/$ac_unique_file"; then 1422 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1423 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1424fi 1425ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1426ac_abs_confdir=`( 1427 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1428 pwd)` 1429# When building in place, set srcdir=. 1430if test "$ac_abs_confdir" = "$ac_pwd"; then 1431 srcdir=. 1432fi 1433# Remove unnecessary trailing slashes from srcdir. 1434# Double slashes in file names in object file debugging info 1435# mess up M-x gdb in Emacs. 1436case $srcdir in 1437*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1438esac 1439for ac_var in $ac_precious_vars; do 1440 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1441 eval ac_env_${ac_var}_value=\$${ac_var} 1442 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1443 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1444done 1445 1446# 1447# Report the --help message. 1448# 1449if test "$ac_init_help" = "long"; then 1450 # Omit some internal or obsolete options to make the list less imposing. 1451 # This message is too long to be a string in the A/UX 3.1 sh. 1452 cat <<_ACEOF 1453\`configure' configures libXmu 1.1.3 to adapt to many kinds of systems. 1454 1455Usage: $0 [OPTION]... [VAR=VALUE]... 1456 1457To assign environment variables (e.g., CC, CFLAGS...), specify them as 1458VAR=VALUE. See below for descriptions of some of the useful variables. 1459 1460Defaults for the options are specified in brackets. 1461 1462Configuration: 1463 -h, --help display this help and exit 1464 --help=short display options specific to this package 1465 --help=recursive display the short help of all the included packages 1466 -V, --version display version information and exit 1467 -q, --quiet, --silent do not print \`checking ...' messages 1468 --cache-file=FILE cache test results in FILE [disabled] 1469 -C, --config-cache alias for \`--cache-file=config.cache' 1470 -n, --no-create do not create output files 1471 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1472 1473Installation directories: 1474 --prefix=PREFIX install architecture-independent files in PREFIX 1475 [$ac_default_prefix] 1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1477 [PREFIX] 1478 1479By default, \`make install' will install all the files in 1480\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1481an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1482for instance \`--prefix=\$HOME'. 1483 1484For better control, use the options below. 1485 1486Fine tuning of the installation directories: 1487 --bindir=DIR user executables [EPREFIX/bin] 1488 --sbindir=DIR system admin executables [EPREFIX/sbin] 1489 --libexecdir=DIR program executables [EPREFIX/libexec] 1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1493 --libdir=DIR object code libraries [EPREFIX/lib] 1494 --includedir=DIR C header files [PREFIX/include] 1495 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1498 --infodir=DIR info documentation [DATAROOTDIR/info] 1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1500 --mandir=DIR man documentation [DATAROOTDIR/man] 1501 --docdir=DIR documentation root [DATAROOTDIR/doc/libXmu] 1502 --htmldir=DIR html documentation [DOCDIR] 1503 --dvidir=DIR dvi documentation [DOCDIR] 1504 --pdfdir=DIR pdf documentation [DOCDIR] 1505 --psdir=DIR ps documentation [DOCDIR] 1506_ACEOF 1507 1508 cat <<\_ACEOF 1509 1510Program names: 1511 --program-prefix=PREFIX prepend PREFIX to installed program names 1512 --program-suffix=SUFFIX append SUFFIX to installed program names 1513 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1514 1515System types: 1516 --build=BUILD configure for building on BUILD [guessed] 1517 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1518_ACEOF 1519fi 1520 1521if test -n "$ac_init_help"; then 1522 case $ac_init_help in 1523 short | recursive ) echo "Configuration of libXmu 1.1.3:";; 1524 esac 1525 cat <<\_ACEOF 1526 1527Optional Features: 1528 --disable-option-checking ignore unrecognized --enable/--with options 1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1531 --enable-silent-rules less verbose build output (undo: "make V=1") 1532 --disable-silent-rules verbose build output (undo: "make V=0") 1533 --enable-shared[=PKGS] build shared libraries [default=yes] 1534 --enable-static[=PKGS] build static libraries [default=yes] 1535 --enable-fast-install[=PKGS] 1536 optimize for fast installation [default=yes] 1537 --enable-dependency-tracking 1538 do not reject slow dependency extractors 1539 --disable-dependency-tracking 1540 speeds up one-time build 1541 --disable-libtool-lock avoid locking (might break parallel builds) 1542 --disable-selective-werror 1543 Turn off selective compiler errors. (default: 1544 enabled) 1545 --enable-strict-compilation 1546 Enable all warnings from compiler and make them 1547 errors (default: disabled) 1548 --enable-docs Enable building the documentation (default: yes) 1549 --enable-unix-transport Enable UNIX domain socket transport 1550 --enable-tcp-transport Enable TCP socket transport 1551 --enable-ipv6 Enable IPv6 support 1552 --enable-local-transport 1553 Enable os-specific local transport 1554 --enable-lint-library Create lint library (default: disabled) 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1560 both] 1561 --with-aix-soname=aix|svr4|both 1562 shared library versioning (aka "SONAME") variant to 1563 provide on AIX, [default=aix]. 1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1565 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1566 compiler's sysroot if not specified). 1567 --with-xmlto Use xmlto to regenerate documentation (default: 1568 auto) 1569 --with-fop Use fop to regenerate documentation (default: auto) 1570 --with-xsltproc Use xsltproc for the transformation of XML documents 1571 (default: auto) 1572 --with-lint Use a lint-style source code checker (default: 1573 disabled) 1574 1575Some influential environment variables: 1576 CC C compiler command 1577 CFLAGS C compiler flags 1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1579 nonstandard directory <lib dir> 1580 LIBS libraries to pass to the linker, e.g. -l<library> 1581 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1582 you have headers in a nonstandard directory <include dir> 1583 LT_SYS_LIBRARY_PATH 1584 User-defined run-time library search path. 1585 CPP C preprocessor 1586 PKG_CONFIG path to pkg-config utility 1587 PKG_CONFIG_PATH 1588 directories to add to pkg-config's search path 1589 PKG_CONFIG_LIBDIR 1590 path overriding pkg-config's built-in search path 1591 XMLTO Path to xmlto command 1592 FOP Path to fop command 1593 XSLTPROC Path to xsltproc command 1594 XMU_CFLAGS C compiler flags for XMU, overriding pkg-config 1595 XMU_LIBS linker flags for XMU, overriding pkg-config 1596 XMUU_CFLAGS C compiler flags for XMUU, overriding pkg-config 1597 XMUU_LIBS linker flags for XMUU, overriding pkg-config 1598 LINT Path to a lint-style command 1599 LINT_FLAGS Flags for the lint-style command 1600 1601Use these variables to override the choices made by `configure' or to help 1602it to find libraries and programs with nonstandard names/locations. 1603 1604Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXmu/issues>. 1605_ACEOF 1606ac_status=$? 1607fi 1608 1609if test "$ac_init_help" = "recursive"; then 1610 # If there are subdirs, report their specific --help. 1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1612 test -d "$ac_dir" || 1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1614 continue 1615 ac_builddir=. 1616 1617case "$ac_dir" in 1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1619*) 1620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1621 # A ".." for each directory in $ac_dir_suffix. 1622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1623 case $ac_top_builddir_sub in 1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1626 esac ;; 1627esac 1628ac_abs_top_builddir=$ac_pwd 1629ac_abs_builddir=$ac_pwd$ac_dir_suffix 1630# for backward compatibility: 1631ac_top_builddir=$ac_top_build_prefix 1632 1633case $srcdir in 1634 .) # We are building in place. 1635 ac_srcdir=. 1636 ac_top_srcdir=$ac_top_builddir_sub 1637 ac_abs_top_srcdir=$ac_pwd ;; 1638 [\\/]* | ?:[\\/]* ) # Absolute name. 1639 ac_srcdir=$srcdir$ac_dir_suffix; 1640 ac_top_srcdir=$srcdir 1641 ac_abs_top_srcdir=$srcdir ;; 1642 *) # Relative name. 1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1644 ac_top_srcdir=$ac_top_build_prefix$srcdir 1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1646esac 1647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1648 1649 cd "$ac_dir" || { ac_status=$?; continue; } 1650 # Check for guested configure. 1651 if test -f "$ac_srcdir/configure.gnu"; then 1652 echo && 1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1654 elif test -f "$ac_srcdir/configure"; then 1655 echo && 1656 $SHELL "$ac_srcdir/configure" --help=recursive 1657 else 1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1659 fi || ac_status=$? 1660 cd "$ac_pwd" || { ac_status=$?; break; } 1661 done 1662fi 1663 1664test -n "$ac_init_help" && exit $ac_status 1665if $ac_init_version; then 1666 cat <<\_ACEOF 1667libXmu configure 1.1.3 1668generated by GNU Autoconf 2.69 1669 1670Copyright (C) 2012 Free Software Foundation, Inc. 1671This configure script is free software; the Free Software Foundation 1672gives unlimited permission to copy, distribute and modify it. 1673_ACEOF 1674 exit 1675fi 1676 1677## ------------------------ ## 1678## Autoconf initialization. ## 1679## ------------------------ ## 1680 1681# ac_fn_c_try_compile LINENO 1682# -------------------------- 1683# Try to compile conftest.$ac_ext, and return whether this succeeded. 1684ac_fn_c_try_compile () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 rm -f conftest.$ac_objext 1688 if { { ac_try="$ac_compile" 1689case "(($ac_try" in 1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1691 *) ac_try_echo=$ac_try;; 1692esac 1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1694$as_echo "$ac_try_echo"; } >&5 1695 (eval "$ac_compile") 2>conftest.err 1696 ac_status=$? 1697 if test -s conftest.err; then 1698 grep -v '^ *+' conftest.err >conftest.er1 1699 cat conftest.er1 >&5 1700 mv -f conftest.er1 conftest.err 1701 fi 1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1703 test $ac_status = 0; } && { 1704 test -z "$ac_c_werror_flag" || 1705 test ! -s conftest.err 1706 } && test -s conftest.$ac_objext; then : 1707 ac_retval=0 1708else 1709 $as_echo "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=1 1713fi 1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1715 as_fn_set_status $ac_retval 1716 1717} # ac_fn_c_try_compile 1718 1719# ac_fn_c_try_link LINENO 1720# ----------------------- 1721# Try to link conftest.$ac_ext, and return whether this succeeded. 1722ac_fn_c_try_link () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 rm -f conftest.$ac_objext conftest$ac_exeext 1726 if { { ac_try="$ac_link" 1727case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_link") 2>conftest.err 1734 ac_status=$? 1735 if test -s conftest.err; then 1736 grep -v '^ *+' conftest.err >conftest.er1 1737 cat conftest.er1 >&5 1738 mv -f conftest.er1 conftest.err 1739 fi 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } && { 1742 test -z "$ac_c_werror_flag" || 1743 test ! -s conftest.err 1744 } && test -s conftest$ac_exeext && { 1745 test "$cross_compiling" = yes || 1746 test -x conftest$ac_exeext 1747 }; then : 1748 ac_retval=0 1749else 1750 $as_echo "$as_me: failed program was:" >&5 1751sed 's/^/| /' conftest.$ac_ext >&5 1752 1753 ac_retval=1 1754fi 1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1757 # interfere with the next link command; also delete a directory that is 1758 # left behind by Apple's compiler. We do this before executing the actions. 1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_link 1764 1765# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1766# ------------------------------------------------------- 1767# Tests whether HEADER exists and can be compiled using the include files in 1768# INCLUDES, setting the cache variable VAR accordingly. 1769ac_fn_c_check_header_compile () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1773$as_echo_n "checking for $2... " >&6; } 1774if eval \${$3+:} false; then : 1775 $as_echo_n "(cached) " >&6 1776else 1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778/* end confdefs.h. */ 1779$4 1780#include <$2> 1781_ACEOF 1782if ac_fn_c_try_compile "$LINENO"; then : 1783 eval "$3=yes" 1784else 1785 eval "$3=no" 1786fi 1787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1788fi 1789eval ac_res=\$$3 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1791$as_echo "$ac_res" >&6; } 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 1794} # ac_fn_c_check_header_compile 1795 1796# ac_fn_c_try_cpp LINENO 1797# ---------------------- 1798# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1799ac_fn_c_try_cpp () 1800{ 1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1802 if { { ac_try="$ac_cpp conftest.$ac_ext" 1803case "(($ac_try" in 1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1805 *) ac_try_echo=$ac_try;; 1806esac 1807eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1808$as_echo "$ac_try_echo"; } >&5 1809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1810 ac_status=$? 1811 if test -s conftest.err; then 1812 grep -v '^ *+' conftest.err >conftest.er1 1813 cat conftest.er1 >&5 1814 mv -f conftest.er1 conftest.err 1815 fi 1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1817 test $ac_status = 0; } > conftest.i && { 1818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1819 test ! -s conftest.err 1820 }; then : 1821 ac_retval=0 1822else 1823 $as_echo "$as_me: failed program was:" >&5 1824sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 ac_retval=1 1827fi 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829 as_fn_set_status $ac_retval 1830 1831} # ac_fn_c_try_cpp 1832 1833# ac_fn_c_try_run LINENO 1834# ---------------------- 1835# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1836# that executables *can* be run. 1837ac_fn_c_try_run () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 if { { ac_try="$ac_link" 1841case "(($ac_try" in 1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1843 *) ac_try_echo=$ac_try;; 1844esac 1845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1846$as_echo "$ac_try_echo"; } >&5 1847 (eval "$ac_link") 2>&5 1848 ac_status=$? 1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1851 { { case "(($ac_try" in 1852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1853 *) ac_try_echo=$ac_try;; 1854esac 1855eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1856$as_echo "$ac_try_echo"; } >&5 1857 (eval "$ac_try") 2>&5 1858 ac_status=$? 1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1860 test $ac_status = 0; }; }; then : 1861 ac_retval=0 1862else 1863 $as_echo "$as_me: program exited with status $ac_status" >&5 1864 $as_echo "$as_me: failed program was:" >&5 1865sed 's/^/| /' conftest.$ac_ext >&5 1866 1867 ac_retval=$ac_status 1868fi 1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 as_fn_set_status $ac_retval 1872 1873} # ac_fn_c_try_run 1874 1875# ac_fn_c_check_func LINENO FUNC VAR 1876# ---------------------------------- 1877# Tests whether FUNC exists, setting the cache variable VAR accordingly 1878ac_fn_c_check_func () 1879{ 1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1882$as_echo_n "checking for $2... " >&6; } 1883if eval \${$3+:} false; then : 1884 $as_echo_n "(cached) " >&6 1885else 1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1887/* end confdefs.h. */ 1888/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1890#define $2 innocuous_$2 1891 1892/* System header to define __stub macros and hopefully few prototypes, 1893 which can conflict with char $2 (); below. 1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1895 <limits.h> exists even on freestanding compilers. */ 1896 1897#ifdef __STDC__ 1898# include <limits.h> 1899#else 1900# include <assert.h> 1901#endif 1902 1903#undef $2 1904 1905/* Override any GCC internal prototype to avoid an error. 1906 Use char because int might match the return type of a GCC 1907 builtin and then its argument prototype would still apply. */ 1908#ifdef __cplusplus 1909extern "C" 1910#endif 1911char $2 (); 1912/* The GNU C library defines this for functions which it implements 1913 to always fail with ENOSYS. Some functions are actually named 1914 something starting with __ and the normal name is an alias. */ 1915#if defined __stub_$2 || defined __stub___$2 1916choke me 1917#endif 1918 1919int 1920main () 1921{ 1922return $2 (); 1923 ; 1924 return 0; 1925} 1926_ACEOF 1927if ac_fn_c_try_link "$LINENO"; then : 1928 eval "$3=yes" 1929else 1930 eval "$3=no" 1931fi 1932rm -f core conftest.err conftest.$ac_objext \ 1933 conftest$ac_exeext conftest.$ac_ext 1934fi 1935eval ac_res=\$$3 1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1937$as_echo "$ac_res" >&6; } 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1939 1940} # ac_fn_c_check_func 1941 1942# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1943# --------------------------------------------- 1944# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1945# accordingly. 1946ac_fn_c_check_decl () 1947{ 1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1949 as_decl_name=`echo $2|sed 's/ *(.*//'` 1950 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1952$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1953if eval \${$3+:} false; then : 1954 $as_echo_n "(cached) " >&6 1955else 1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1957/* end confdefs.h. */ 1958$4 1959int 1960main () 1961{ 1962#ifndef $as_decl_name 1963#ifdef __cplusplus 1964 (void) $as_decl_use; 1965#else 1966 (void) $as_decl_name; 1967#endif 1968#endif 1969 1970 ; 1971 return 0; 1972} 1973_ACEOF 1974if ac_fn_c_try_compile "$LINENO"; then : 1975 eval "$3=yes" 1976else 1977 eval "$3=no" 1978fi 1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1980fi 1981eval ac_res=\$$3 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983$as_echo "$ac_res" >&6; } 1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1985 1986} # ac_fn_c_check_decl 1987 1988# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1989# ---------------------------------------------------- 1990# Tries to find if the field MEMBER exists in type AGGR, after including 1991# INCLUDES, setting cache variable VAR accordingly. 1992ac_fn_c_check_member () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1996$as_echo_n "checking for $2.$3... " >&6; } 1997if eval \${$4+:} false; then : 1998 $as_echo_n "(cached) " >&6 1999else 2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2001/* end confdefs.h. */ 2002$5 2003int 2004main () 2005{ 2006static $2 ac_aggr; 2007if (ac_aggr.$3) 2008return 0; 2009 ; 2010 return 0; 2011} 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 eval "$4=yes" 2015else 2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2017/* end confdefs.h. */ 2018$5 2019int 2020main () 2021{ 2022static $2 ac_aggr; 2023if (sizeof ac_aggr.$3) 2024return 0; 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_compile "$LINENO"; then : 2030 eval "$4=yes" 2031else 2032 eval "$4=no" 2033fi 2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2035fi 2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2037fi 2038eval ac_res=\$$4 2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2040$as_echo "$ac_res" >&6; } 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2042 2043} # ac_fn_c_check_member 2044 2045# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2046# ------------------------------------------- 2047# Tests whether TYPE exists after having included INCLUDES, setting cache 2048# variable VAR accordingly. 2049ac_fn_c_check_type () 2050{ 2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2053$as_echo_n "checking for $2... " >&6; } 2054if eval \${$3+:} false; then : 2055 $as_echo_n "(cached) " >&6 2056else 2057 eval "$3=no" 2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2059/* end confdefs.h. */ 2060$4 2061int 2062main () 2063{ 2064if (sizeof ($2)) 2065 return 0; 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070if ac_fn_c_try_compile "$LINENO"; then : 2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2072/* end confdefs.h. */ 2073$4 2074int 2075main () 2076{ 2077if (sizeof (($2))) 2078 return 0; 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO"; then : 2084 2085else 2086 eval "$3=yes" 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089fi 2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2091fi 2092eval ac_res=\$$3 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2094$as_echo "$ac_res" >&6; } 2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2096 2097} # ac_fn_c_check_type 2098cat >config.log <<_ACEOF 2099This file contains any messages produced by compilers while 2100running configure, to aid debugging if configure makes a mistake. 2101 2102It was created by libXmu $as_me 1.1.3, which was 2103generated by GNU Autoconf 2.69. Invocation command line was 2104 2105 $ $0 $@ 2106 2107_ACEOF 2108exec 5>>config.log 2109{ 2110cat <<_ASUNAME 2111## --------- ## 2112## Platform. ## 2113## --------- ## 2114 2115hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2116uname -m = `(uname -m) 2>/dev/null || echo unknown` 2117uname -r = `(uname -r) 2>/dev/null || echo unknown` 2118uname -s = `(uname -s) 2>/dev/null || echo unknown` 2119uname -v = `(uname -v) 2>/dev/null || echo unknown` 2120 2121/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2122/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2123 2124/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2125/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2126/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2127/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2128/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2129/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2130/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2131 2132_ASUNAME 2133 2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2135for as_dir in $PATH 2136do 2137 IFS=$as_save_IFS 2138 test -z "$as_dir" && as_dir=. 2139 $as_echo "PATH: $as_dir" 2140 done 2141IFS=$as_save_IFS 2142 2143} >&5 2144 2145cat >&5 <<_ACEOF 2146 2147 2148## ----------- ## 2149## Core tests. ## 2150## ----------- ## 2151 2152_ACEOF 2153 2154 2155# Keep a trace of the command line. 2156# Strip out --no-create and --no-recursion so they do not pile up. 2157# Strip out --silent because we don't want to record it for future runs. 2158# Also quote any args containing shell meta-characters. 2159# Make two passes to allow for proper duplicate-argument suppression. 2160ac_configure_args= 2161ac_configure_args0= 2162ac_configure_args1= 2163ac_must_keep_next=false 2164for ac_pass in 1 2 2165do 2166 for ac_arg 2167 do 2168 case $ac_arg in 2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2171 | -silent | --silent | --silen | --sile | --sil) 2172 continue ;; 2173 *\'*) 2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2175 esac 2176 case $ac_pass in 2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2178 2) 2179 as_fn_append ac_configure_args1 " '$ac_arg'" 2180 if test $ac_must_keep_next = true; then 2181 ac_must_keep_next=false # Got value, back to normal. 2182 else 2183 case $ac_arg in 2184 *=* | --config-cache | -C | -disable-* | --disable-* \ 2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2187 | -with-* | --with-* | -without-* | --without-* | --x) 2188 case "$ac_configure_args0 " in 2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2190 esac 2191 ;; 2192 -* ) ac_must_keep_next=true ;; 2193 esac 2194 fi 2195 as_fn_append ac_configure_args " '$ac_arg'" 2196 ;; 2197 esac 2198 done 2199done 2200{ ac_configure_args0=; unset ac_configure_args0;} 2201{ ac_configure_args1=; unset ac_configure_args1;} 2202 2203# When interrupted or exit'd, cleanup temporary files, and complete 2204# config.log. We remove comments because anyway the quotes in there 2205# would cause problems or look ugly. 2206# WARNING: Use '\'' to represent an apostrophe within the trap. 2207# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2208trap 'exit_status=$? 2209 # Save into config.log some information that might help in debugging. 2210 { 2211 echo 2212 2213 $as_echo "## ---------------- ## 2214## Cache variables. ## 2215## ---------------- ##" 2216 echo 2217 # The following way of writing the cache mishandles newlines in values, 2218( 2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2220 eval ac_val=\$$ac_var 2221 case $ac_val in #( 2222 *${as_nl}*) 2223 case $ac_var in #( 2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2225$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2226 esac 2227 case $ac_var in #( 2228 _ | IFS | as_nl) ;; #( 2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2230 *) { eval $ac_var=; unset $ac_var;} ;; 2231 esac ;; 2232 esac 2233 done 2234 (set) 2>&1 | 2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2236 *${as_nl}ac_space=\ *) 2237 sed -n \ 2238 "s/'\''/'\''\\\\'\'''\''/g; 2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2240 ;; #( 2241 *) 2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2243 ;; 2244 esac | 2245 sort 2246) 2247 echo 2248 2249 $as_echo "## ----------------- ## 2250## Output variables. ## 2251## ----------------- ##" 2252 echo 2253 for ac_var in $ac_subst_vars 2254 do 2255 eval ac_val=\$$ac_var 2256 case $ac_val in 2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2258 esac 2259 $as_echo "$ac_var='\''$ac_val'\''" 2260 done | sort 2261 echo 2262 2263 if test -n "$ac_subst_files"; then 2264 $as_echo "## ------------------- ## 2265## File substitutions. ## 2266## ------------------- ##" 2267 echo 2268 for ac_var in $ac_subst_files 2269 do 2270 eval ac_val=\$$ac_var 2271 case $ac_val in 2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2273 esac 2274 $as_echo "$ac_var='\''$ac_val'\''" 2275 done | sort 2276 echo 2277 fi 2278 2279 if test -s confdefs.h; then 2280 $as_echo "## ----------- ## 2281## confdefs.h. ## 2282## ----------- ##" 2283 echo 2284 cat confdefs.h 2285 echo 2286 fi 2287 test "$ac_signal" != 0 && 2288 $as_echo "$as_me: caught signal $ac_signal" 2289 $as_echo "$as_me: exit $exit_status" 2290 } >&5 2291 rm -f core *.core core.conftest.* && 2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2293 exit $exit_status 2294' 0 2295for ac_signal in 1 2 13 15; do 2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2297done 2298ac_signal=0 2299 2300# confdefs.h avoids OS command line length limits that DEFS can exceed. 2301rm -f -r conftest* confdefs.h 2302 2303$as_echo "/* confdefs.h */" > confdefs.h 2304 2305# Predefined preprocessor variables. 2306 2307cat >>confdefs.h <<_ACEOF 2308#define PACKAGE_NAME "$PACKAGE_NAME" 2309_ACEOF 2310 2311cat >>confdefs.h <<_ACEOF 2312#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2313_ACEOF 2314 2315cat >>confdefs.h <<_ACEOF 2316#define PACKAGE_VERSION "$PACKAGE_VERSION" 2317_ACEOF 2318 2319cat >>confdefs.h <<_ACEOF 2320#define PACKAGE_STRING "$PACKAGE_STRING" 2321_ACEOF 2322 2323cat >>confdefs.h <<_ACEOF 2324#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2325_ACEOF 2326 2327cat >>confdefs.h <<_ACEOF 2328#define PACKAGE_URL "$PACKAGE_URL" 2329_ACEOF 2330 2331 2332# Let the site file select an alternate cache file if it wants to. 2333# Prefer an explicitly selected file to automatically selected ones. 2334ac_site_file1=NONE 2335ac_site_file2=NONE 2336if test -n "$CONFIG_SITE"; then 2337 # We do not want a PATH search for config.site. 2338 case $CONFIG_SITE in #(( 2339 -*) ac_site_file1=./$CONFIG_SITE;; 2340 */*) ac_site_file1=$CONFIG_SITE;; 2341 *) ac_site_file1=./$CONFIG_SITE;; 2342 esac 2343elif test "x$prefix" != xNONE; then 2344 ac_site_file1=$prefix/share/config.site 2345 ac_site_file2=$prefix/etc/config.site 2346else 2347 ac_site_file1=$ac_default_prefix/share/config.site 2348 ac_site_file2=$ac_default_prefix/etc/config.site 2349fi 2350for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2351do 2352 test "x$ac_site_file" = xNONE && continue 2353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2355$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2356 sed 's/^/| /' "$ac_site_file" >&5 2357 . "$ac_site_file" \ 2358 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2360as_fn_error $? "failed to load site script $ac_site_file 2361See \`config.log' for more details" "$LINENO" 5; } 2362 fi 2363done 2364 2365if test -r "$cache_file"; then 2366 # Some versions of bash will fail to source /dev/null (special files 2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2370$as_echo "$as_me: loading cache $cache_file" >&6;} 2371 case $cache_file in 2372 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2373 *) . "./$cache_file";; 2374 esac 2375 fi 2376else 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2378$as_echo "$as_me: creating cache $cache_file" >&6;} 2379 >$cache_file 2380fi 2381 2382# Check that the precious variables saved in the cache have kept the same 2383# value. 2384ac_cache_corrupted=false 2385for ac_var in $ac_precious_vars; do 2386 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2387 eval ac_new_set=\$ac_env_${ac_var}_set 2388 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2389 eval ac_new_val=\$ac_env_${ac_var}_value 2390 case $ac_old_set,$ac_new_set in 2391 set,) 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2393$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2394 ac_cache_corrupted=: ;; 2395 ,set) 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2397$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2398 ac_cache_corrupted=: ;; 2399 ,);; 2400 *) 2401 if test "x$ac_old_val" != "x$ac_new_val"; then 2402 # differences in whitespace do not lead to failure. 2403 ac_old_val_w=`echo x $ac_old_val` 2404 ac_new_val_w=`echo x $ac_new_val` 2405 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2407$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2408 ac_cache_corrupted=: 2409 else 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2411$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2412 eval $ac_var=\$ac_old_val 2413 fi 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2415$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2417$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2418 fi;; 2419 esac 2420 # Pass precious variables to config.status. 2421 if test "$ac_new_set" = set; then 2422 case $ac_new_val in 2423 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2424 *) ac_arg=$ac_var=$ac_new_val ;; 2425 esac 2426 case " $ac_configure_args " in 2427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2428 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2429 esac 2430 fi 2431done 2432if $ac_cache_corrupted; then 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2436$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2437 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2438fi 2439## -------------------- ## 2440## Main body of script. ## 2441## -------------------- ## 2442 2443ac_ext=c 2444ac_cpp='$CPP $CPPFLAGS' 2445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2447ac_compiler_gnu=$ac_cv_c_compiler_gnu 2448 2449 2450 2451ac_config_headers="$ac_config_headers config.h" 2452 2453 2454# Initialize Automake 2455am__api_version='1.15' 2456 2457ac_aux_dir= 2458for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2459 if test -f "$ac_dir/install-sh"; then 2460 ac_aux_dir=$ac_dir 2461 ac_install_sh="$ac_aux_dir/install-sh -c" 2462 break 2463 elif test -f "$ac_dir/install.sh"; then 2464 ac_aux_dir=$ac_dir 2465 ac_install_sh="$ac_aux_dir/install.sh -c" 2466 break 2467 elif test -f "$ac_dir/shtool"; then 2468 ac_aux_dir=$ac_dir 2469 ac_install_sh="$ac_aux_dir/shtool install -c" 2470 break 2471 fi 2472done 2473if test -z "$ac_aux_dir"; then 2474 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2475fi 2476 2477# These three variables are undocumented and unsupported, 2478# and are intended to be withdrawn in a future Autoconf release. 2479# They can cause serious problems if a builder's source tree is in a directory 2480# whose full name contains unusual characters. 2481ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2482ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2483ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2484 2485 2486# Find a good install program. We prefer a C program (faster), 2487# so one script is as good as another. But avoid the broken or 2488# incompatible versions: 2489# SysV /etc/install, /usr/sbin/install 2490# SunOS /usr/etc/install 2491# IRIX /sbin/install 2492# AIX /bin/install 2493# AmigaOS /C/install, which installs bootblocks on floppy discs 2494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2495# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2497# OS/2's system install, which has a completely different semantic 2498# ./install, which can be erroneously created by make from ./install.sh. 2499# Reject install programs that cannot install multiple files. 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2501$as_echo_n "checking for a BSD-compatible install... " >&6; } 2502if test -z "$INSTALL"; then 2503if ${ac_cv_path_install+:} false; then : 2504 $as_echo_n "(cached) " >&6 2505else 2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2507for as_dir in $PATH 2508do 2509 IFS=$as_save_IFS 2510 test -z "$as_dir" && as_dir=. 2511 # Account for people who put trailing slashes in PATH elements. 2512case $as_dir/ in #(( 2513 ./ | .// | /[cC]/* | \ 2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2516 /usr/ucb/* ) ;; 2517 *) 2518 # OSF1 and SCO ODT 3.0 have their own names for install. 2519 # Don't use installbsd from OSF since it installs stuff as root 2520 # by default. 2521 for ac_prog in ginstall scoinst install; do 2522 for ac_exec_ext in '' $ac_executable_extensions; do 2523 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2524 if test $ac_prog = install && 2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2526 # AIX install. It has an incompatible calling convention. 2527 : 2528 elif test $ac_prog = install && 2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2530 # program-specific install script used by HP pwplus--don't use. 2531 : 2532 else 2533 rm -rf conftest.one conftest.two conftest.dir 2534 echo one > conftest.one 2535 echo two > conftest.two 2536 mkdir conftest.dir 2537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2538 test -s conftest.one && test -s conftest.two && 2539 test -s conftest.dir/conftest.one && 2540 test -s conftest.dir/conftest.two 2541 then 2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2543 break 3 2544 fi 2545 fi 2546 fi 2547 done 2548 done 2549 ;; 2550esac 2551 2552 done 2553IFS=$as_save_IFS 2554 2555rm -rf conftest.one conftest.two conftest.dir 2556 2557fi 2558 if test "${ac_cv_path_install+set}" = set; then 2559 INSTALL=$ac_cv_path_install 2560 else 2561 # As a last resort, use the slow shell script. Don't cache a 2562 # value for INSTALL within a source directory, because that will 2563 # break other packages using the cache if that directory is 2564 # removed, or if the value is a relative name. 2565 INSTALL=$ac_install_sh 2566 fi 2567fi 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2569$as_echo "$INSTALL" >&6; } 2570 2571# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2572# It thinks the first close brace ends the variable substitution. 2573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2574 2575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2576 2577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2578 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2580$as_echo_n "checking whether build environment is sane... " >&6; } 2581# Reject unsafe characters in $srcdir or the absolute working directory 2582# name. Accept space and tab only in the latter. 2583am_lf=' 2584' 2585case `pwd` in 2586 *[\\\"\#\$\&\'\`$am_lf]*) 2587 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2588esac 2589case $srcdir in 2590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2591 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2592esac 2593 2594# Do 'set' in a subshell so we don't clobber the current shell's 2595# arguments. Must try -L first in case configure is actually a 2596# symlink; some systems play weird games with the mod time of symlinks 2597# (eg FreeBSD returns the mod time of the symlink's containing 2598# directory). 2599if ( 2600 am_has_slept=no 2601 for am_try in 1 2; do 2602 echo "timestamp, slept: $am_has_slept" > conftest.file 2603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2604 if test "$*" = "X"; then 2605 # -L didn't work. 2606 set X `ls -t "$srcdir/configure" conftest.file` 2607 fi 2608 if test "$*" != "X $srcdir/configure conftest.file" \ 2609 && test "$*" != "X conftest.file $srcdir/configure"; then 2610 2611 # If neither matched, then we have a broken ls. This can happen 2612 # if, for instance, CONFIG_SHELL is bash and it inherits a 2613 # broken ls alias from the environment. This has actually 2614 # happened. Such a system could not be considered "sane". 2615 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2616 alias in your environment" "$LINENO" 5 2617 fi 2618 if test "$2" = conftest.file || test $am_try -eq 2; then 2619 break 2620 fi 2621 # Just in case. 2622 sleep 1 2623 am_has_slept=yes 2624 done 2625 test "$2" = conftest.file 2626 ) 2627then 2628 # Ok. 2629 : 2630else 2631 as_fn_error $? "newly created file is older than distributed files! 2632Check your system clock" "$LINENO" 5 2633fi 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2635$as_echo "yes" >&6; } 2636# If we didn't sleep, we still need to ensure time stamps of config.status and 2637# generated files are strictly newer. 2638am_sleep_pid= 2639if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2640 ( sleep 1 ) & 2641 am_sleep_pid=$! 2642fi 2643 2644rm -f conftest.file 2645 2646test "$program_prefix" != NONE && 2647 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2648# Use a double $ so make ignores it. 2649test "$program_suffix" != NONE && 2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2651# Double any \ or $. 2652# By default was `s,x,x', remove it if useless. 2653ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2654program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2655 2656# Expand $ac_aux_dir to an absolute path. 2657am_aux_dir=`cd "$ac_aux_dir" && pwd` 2658 2659if test x"${MISSING+set}" != xset; then 2660 case $am_aux_dir in 2661 *\ * | *\ *) 2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2663 *) 2664 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2665 esac 2666fi 2667# Use eval to expand $SHELL 2668if eval "$MISSING --is-lightweight"; then 2669 am_missing_run="$MISSING " 2670else 2671 am_missing_run= 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2673$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2674fi 2675 2676if test x"${install_sh+set}" != xset; then 2677 case $am_aux_dir in 2678 *\ * | *\ *) 2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2680 *) 2681 install_sh="\${SHELL} $am_aux_dir/install-sh" 2682 esac 2683fi 2684 2685# Installed binaries are usually stripped using 'strip' when the user 2686# run "make install-strip". However 'strip' might not be the right 2687# tool to use in cross-compilation environments, therefore Automake 2688# will honor the 'STRIP' environment variable to overrule this program. 2689if test "$cross_compiling" != no; then 2690 if test -n "$ac_tool_prefix"; then 2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2692set dummy ${ac_tool_prefix}strip; ac_word=$2 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2694$as_echo_n "checking for $ac_word... " >&6; } 2695if ${ac_cv_prog_STRIP+:} false; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 if test -n "$STRIP"; then 2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713 done 2714IFS=$as_save_IFS 2715 2716fi 2717fi 2718STRIP=$ac_cv_prog_STRIP 2719if test -n "$STRIP"; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2721$as_echo "$STRIP" >&6; } 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2724$as_echo "no" >&6; } 2725fi 2726 2727 2728fi 2729if test -z "$ac_cv_prog_STRIP"; then 2730 ac_ct_STRIP=$STRIP 2731 # Extract the first word of "strip", so it can be a program name with args. 2732set dummy strip; ac_word=$2 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2734$as_echo_n "checking for $ac_word... " >&6; } 2735if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 if test -n "$ac_ct_STRIP"; then 2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2740else 2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2742for as_dir in $PATH 2743do 2744 IFS=$as_save_IFS 2745 test -z "$as_dir" && as_dir=. 2746 for ac_exec_ext in '' $ac_executable_extensions; do 2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2748 ac_cv_prog_ac_ct_STRIP="strip" 2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2750 break 2 2751 fi 2752done 2753 done 2754IFS=$as_save_IFS 2755 2756fi 2757fi 2758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2759if test -n "$ac_ct_STRIP"; then 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2761$as_echo "$ac_ct_STRIP" >&6; } 2762else 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2764$as_echo "no" >&6; } 2765fi 2766 2767 if test "x$ac_ct_STRIP" = x; then 2768 STRIP=":" 2769 else 2770 case $cross_compiling:$ac_tool_warned in 2771yes:) 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2774ac_tool_warned=yes ;; 2775esac 2776 STRIP=$ac_ct_STRIP 2777 fi 2778else 2779 STRIP="$ac_cv_prog_STRIP" 2780fi 2781 2782fi 2783INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2784 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2786$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2787if test -z "$MKDIR_P"; then 2788 if ${ac_cv_path_mkdir+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_prog in mkdir gmkdir; do 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2800 'mkdir (GNU coreutils) '* | \ 2801 'mkdir (coreutils) '* | \ 2802 'mkdir (fileutils) '4.1*) 2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2804 break 3;; 2805 esac 2806 done 2807 done 2808 done 2809IFS=$as_save_IFS 2810 2811fi 2812 2813 test -d ./--version && rmdir ./--version 2814 if test "${ac_cv_path_mkdir+set}" = set; then 2815 MKDIR_P="$ac_cv_path_mkdir -p" 2816 else 2817 # As a last resort, use the slow shell script. Don't cache a 2818 # value for MKDIR_P within a source directory, because that will 2819 # break other packages using the cache if that directory is 2820 # removed, or if the value is a relative name. 2821 MKDIR_P="$ac_install_sh -d" 2822 fi 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2825$as_echo "$MKDIR_P" >&6; } 2826 2827for ac_prog in gawk mawk nawk awk 2828do 2829 # Extract the first word of "$ac_prog", so it can be a program name with args. 2830set dummy $ac_prog; ac_word=$2 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2832$as_echo_n "checking for $ac_word... " >&6; } 2833if ${ac_cv_prog_AWK+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 if test -n "$AWK"; then 2837 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2838else 2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2840for as_dir in $PATH 2841do 2842 IFS=$as_save_IFS 2843 test -z "$as_dir" && as_dir=. 2844 for ac_exec_ext in '' $ac_executable_extensions; do 2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2846 ac_cv_prog_AWK="$ac_prog" 2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2848 break 2 2849 fi 2850done 2851 done 2852IFS=$as_save_IFS 2853 2854fi 2855fi 2856AWK=$ac_cv_prog_AWK 2857if test -n "$AWK"; then 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2859$as_echo "$AWK" >&6; } 2860else 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862$as_echo "no" >&6; } 2863fi 2864 2865 2866 test -n "$AWK" && break 2867done 2868 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2870$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2871set x ${MAKE-make} 2872ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2873if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2874 $as_echo_n "(cached) " >&6 2875else 2876 cat >conftest.make <<\_ACEOF 2877SHELL = /bin/sh 2878all: 2879 @echo '@@@%%%=$(MAKE)=@@@%%%' 2880_ACEOF 2881# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2882case `${MAKE-make} -f conftest.make 2>/dev/null` in 2883 *@@@%%%=?*=@@@%%%*) 2884 eval ac_cv_prog_make_${ac_make}_set=yes;; 2885 *) 2886 eval ac_cv_prog_make_${ac_make}_set=no;; 2887esac 2888rm -f conftest.make 2889fi 2890if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2892$as_echo "yes" >&6; } 2893 SET_MAKE= 2894else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896$as_echo "no" >&6; } 2897 SET_MAKE="MAKE=${MAKE-make}" 2898fi 2899 2900rm -rf .tst 2>/dev/null 2901mkdir .tst 2>/dev/null 2902if test -d .tst; then 2903 am__leading_dot=. 2904else 2905 am__leading_dot=_ 2906fi 2907rmdir .tst 2>/dev/null 2908 2909# Check whether --enable-silent-rules was given. 2910if test "${enable_silent_rules+set}" = set; then : 2911 enableval=$enable_silent_rules; 2912fi 2913 2914case $enable_silent_rules in # ((( 2915 yes) AM_DEFAULT_VERBOSITY=0;; 2916 no) AM_DEFAULT_VERBOSITY=1;; 2917 *) AM_DEFAULT_VERBOSITY=1;; 2918esac 2919am_make=${MAKE-make} 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2921$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2922if ${am_cv_make_support_nested_variables+:} false; then : 2923 $as_echo_n "(cached) " >&6 2924else 2925 if $as_echo 'TRUE=$(BAR$(V)) 2926BAR0=false 2927BAR1=true 2928V=1 2929am__doit: 2930 @$(TRUE) 2931.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2932 am_cv_make_support_nested_variables=yes 2933else 2934 am_cv_make_support_nested_variables=no 2935fi 2936fi 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2938$as_echo "$am_cv_make_support_nested_variables" >&6; } 2939if test $am_cv_make_support_nested_variables = yes; then 2940 AM_V='$(V)' 2941 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2942else 2943 AM_V=$AM_DEFAULT_VERBOSITY 2944 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2945fi 2946AM_BACKSLASH='\' 2947 2948if test "`cd $srcdir && pwd`" != "`pwd`"; then 2949 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2950 # is not polluted with repeated "-I." 2951 am__isrc=' -I$(srcdir)' 2952 # test to see if srcdir already configured 2953 if test -f $srcdir/config.status; then 2954 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2955 fi 2956fi 2957 2958# test whether we have cygpath 2959if test -z "$CYGPATH_W"; then 2960 if (cygpath --version) >/dev/null 2>/dev/null; then 2961 CYGPATH_W='cygpath -w' 2962 else 2963 CYGPATH_W=echo 2964 fi 2965fi 2966 2967 2968# Define the identity of the package. 2969 PACKAGE='libXmu' 2970 VERSION='1.1.3' 2971 2972 2973cat >>confdefs.h <<_ACEOF 2974#define PACKAGE "$PACKAGE" 2975_ACEOF 2976 2977 2978cat >>confdefs.h <<_ACEOF 2979#define VERSION "$VERSION" 2980_ACEOF 2981 2982# Some tools Automake needs. 2983 2984ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2985 2986 2987AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2988 2989 2990AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2991 2992 2993AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2994 2995 2996MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2997 2998# For better backward compatibility. To be removed once Automake 1.9.x 2999# dies out for good. For more background, see: 3000# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3001# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3002mkdir_p='$(MKDIR_P)' 3003 3004# We need awk for the "check" target (and possibly the TAP driver). The 3005# system "awk" is bad on some platforms. 3006# Always define AMTAR for backward compatibility. Yes, it's still used 3007# in the wild :-( We should find a proper way to deprecate it ... 3008AMTAR='$${TAR-tar}' 3009 3010 3011# We'll loop over all known methods to create a tar archive until one works. 3012_am_tools='gnutar pax cpio none' 3013 3014am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3015 3016 3017 3018 3019 3020 3021# POSIX will say in a future version that running "rm -f" with no argument 3022# is OK; and we want to be able to make that assumption in our Makefile 3023# recipes. So use an aggressive probe to check that the usage we want is 3024# actually supported "in the wild" to an acceptable degree. 3025# See automake bug#10828. 3026# To make any issue more visible, cause the running configure to be aborted 3027# by default if the 'rm' program in use doesn't match our expectations; the 3028# user can still override this though. 3029if rm -f && rm -fr && rm -rf; then : OK; else 3030 cat >&2 <<'END' 3031Oops! 3032 3033Your 'rm' program seems unable to run without file operands specified 3034on the command line, even when the '-f' option is present. This is contrary 3035to the behaviour of most rm programs out there, and not conforming with 3036the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3037 3038Please tell bug-automake@gnu.org about your system, including the value 3039of your $PATH and any error possibly output before this message. This 3040can help us improve future automake versions. 3041 3042END 3043 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3044 echo 'Configuration will proceed anyway, since you have set the' >&2 3045 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3046 echo >&2 3047 else 3048 cat >&2 <<'END' 3049Aborting the configuration process, to ensure you take notice of the issue. 3050 3051You can download and install GNU coreutils to get an 'rm' implementation 3052that behaves properly: <http://www.gnu.org/software/coreutils/>. 3053 3054If you want to complete the configuration process using your problematic 3055'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3056to "yes", and re-run configure. 3057 3058END 3059 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3060 fi 3061fi 3062 3063 3064# Initialize libtool 3065case `pwd` in 3066 *\ * | *\ *) 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3068$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3069esac 3070 3071 3072 3073macro_version='2.4.6' 3074macro_revision='2.4.6' 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088ltmain=$ac_aux_dir/ltmain.sh 3089 3090# Make sure we can run config.sub. 3091$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3092 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3093 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3095$as_echo_n "checking build system type... " >&6; } 3096if ${ac_cv_build+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 ac_build_alias=$build_alias 3100test "x$ac_build_alias" = x && 3101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3102test "x$ac_build_alias" = x && 3103 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3104ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3105 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3106 3107fi 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3109$as_echo "$ac_cv_build" >&6; } 3110case $ac_cv_build in 3111*-*-*) ;; 3112*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3113esac 3114build=$ac_cv_build 3115ac_save_IFS=$IFS; IFS='-' 3116set x $ac_cv_build 3117shift 3118build_cpu=$1 3119build_vendor=$2 3120shift; shift 3121# Remember, the first character of IFS is used to create $*, 3122# except with old shells: 3123build_os=$* 3124IFS=$ac_save_IFS 3125case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3126 3127 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3129$as_echo_n "checking host system type... " >&6; } 3130if ${ac_cv_host+:} false; then : 3131 $as_echo_n "(cached) " >&6 3132else 3133 if test "x$host_alias" = x; then 3134 ac_cv_host=$ac_cv_build 3135else 3136 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3137 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3138fi 3139 3140fi 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3142$as_echo "$ac_cv_host" >&6; } 3143case $ac_cv_host in 3144*-*-*) ;; 3145*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3146esac 3147host=$ac_cv_host 3148ac_save_IFS=$IFS; IFS='-' 3149set x $ac_cv_host 3150shift 3151host_cpu=$1 3152host_vendor=$2 3153shift; shift 3154# Remember, the first character of IFS is used to create $*, 3155# except with old shells: 3156host_os=$* 3157IFS=$ac_save_IFS 3158case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3159 3160 3161# Backslashify metacharacters that are still active within 3162# double-quoted strings. 3163sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3164 3165# Same as above, but do not quote variable references. 3166double_quote_subst='s/\(["`\\]\)/\\\1/g' 3167 3168# Sed substitution to delay expansion of an escaped shell variable in a 3169# double_quote_subst'ed string. 3170delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3171 3172# Sed substitution to delay expansion of an escaped single quote. 3173delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3174 3175# Sed substitution to avoid accidental globbing in evaled expressions 3176no_glob_subst='s/\*/\\\*/g' 3177 3178ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3179ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3180ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3181 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3183$as_echo_n "checking how to print strings... " >&6; } 3184# Test print first, because it will be a builtin if present. 3185if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3186 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3187 ECHO='print -r --' 3188elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3189 ECHO='printf %s\n' 3190else 3191 # Use this function as a fallback that always works. 3192 func_fallback_echo () 3193 { 3194 eval 'cat <<_LTECHO_EOF 3195$1 3196_LTECHO_EOF' 3197 } 3198 ECHO='func_fallback_echo' 3199fi 3200 3201# func_echo_all arg... 3202# Invoke $ECHO with all args, space-separated. 3203func_echo_all () 3204{ 3205 $ECHO "" 3206} 3207 3208case $ECHO in 3209 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3210$as_echo "printf" >&6; } ;; 3211 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3212$as_echo "print -r" >&6; } ;; 3213 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3214$as_echo "cat" >&6; } ;; 3215esac 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230DEPDIR="${am__leading_dot}deps" 3231 3232ac_config_commands="$ac_config_commands depfiles" 3233 3234 3235am_make=${MAKE-make} 3236cat > confinc << 'END' 3237am__doit: 3238 @echo this is the am__doit target 3239.PHONY: am__doit 3240END 3241# If we don't find an include directive, just comment out the code. 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3243$as_echo_n "checking for style of include used by $am_make... " >&6; } 3244am__include="#" 3245am__quote= 3246_am_result=none 3247# First try GNU make style include. 3248echo "include confinc" > confmf 3249# Ignore all kinds of additional output from 'make'. 3250case `$am_make -s -f confmf 2> /dev/null` in #( 3251*the\ am__doit\ target*) 3252 am__include=include 3253 am__quote= 3254 _am_result=GNU 3255 ;; 3256esac 3257# Now try BSD make style include. 3258if test "$am__include" = "#"; then 3259 echo '.include "confinc"' > confmf 3260 case `$am_make -s -f confmf 2> /dev/null` in #( 3261 *the\ am__doit\ target*) 3262 am__include=.include 3263 am__quote="\"" 3264 _am_result=BSD 3265 ;; 3266 esac 3267fi 3268 3269 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3271$as_echo "$_am_result" >&6; } 3272rm -f confinc confmf 3273 3274# Check whether --enable-dependency-tracking was given. 3275if test "${enable_dependency_tracking+set}" = set; then : 3276 enableval=$enable_dependency_tracking; 3277fi 3278 3279if test "x$enable_dependency_tracking" != xno; then 3280 am_depcomp="$ac_aux_dir/depcomp" 3281 AMDEPBACKSLASH='\' 3282 am__nodep='_no' 3283fi 3284 if test "x$enable_dependency_tracking" != xno; then 3285 AMDEP_TRUE= 3286 AMDEP_FALSE='#' 3287else 3288 AMDEP_TRUE='#' 3289 AMDEP_FALSE= 3290fi 3291 3292 3293ac_ext=c 3294ac_cpp='$CPP $CPPFLAGS' 3295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3297ac_compiler_gnu=$ac_cv_c_compiler_gnu 3298if test -n "$ac_tool_prefix"; then 3299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3300set dummy ${ac_tool_prefix}gcc; ac_word=$2 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3302$as_echo_n "checking for $ac_word... " >&6; } 3303if ${ac_cv_prog_CC+:} false; then : 3304 $as_echo_n "(cached) " >&6 3305else 3306 if test -n "$CC"; then 3307 ac_cv_prog_CC="$CC" # Let the user override the test. 3308else 3309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3310for as_dir in $PATH 3311do 3312 IFS=$as_save_IFS 3313 test -z "$as_dir" && as_dir=. 3314 for ac_exec_ext in '' $ac_executable_extensions; do 3315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3316 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3318 break 2 3319 fi 3320done 3321 done 3322IFS=$as_save_IFS 3323 3324fi 3325fi 3326CC=$ac_cv_prog_CC 3327if test -n "$CC"; then 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3329$as_echo "$CC" >&6; } 3330else 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3332$as_echo "no" >&6; } 3333fi 3334 3335 3336fi 3337if test -z "$ac_cv_prog_CC"; then 3338 ac_ct_CC=$CC 3339 # Extract the first word of "gcc", so it can be a program name with args. 3340set dummy gcc; ac_word=$2 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3342$as_echo_n "checking for $ac_word... " >&6; } 3343if ${ac_cv_prog_ac_ct_CC+:} false; then : 3344 $as_echo_n "(cached) " >&6 3345else 3346 if test -n "$ac_ct_CC"; then 3347 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3348else 3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3350for as_dir in $PATH 3351do 3352 IFS=$as_save_IFS 3353 test -z "$as_dir" && as_dir=. 3354 for ac_exec_ext in '' $ac_executable_extensions; do 3355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3356 ac_cv_prog_ac_ct_CC="gcc" 3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3358 break 2 3359 fi 3360done 3361 done 3362IFS=$as_save_IFS 3363 3364fi 3365fi 3366ac_ct_CC=$ac_cv_prog_ac_ct_CC 3367if test -n "$ac_ct_CC"; then 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3369$as_echo "$ac_ct_CC" >&6; } 3370else 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3372$as_echo "no" >&6; } 3373fi 3374 3375 if test "x$ac_ct_CC" = x; then 3376 CC="" 3377 else 3378 case $cross_compiling:$ac_tool_warned in 3379yes:) 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3382ac_tool_warned=yes ;; 3383esac 3384 CC=$ac_ct_CC 3385 fi 3386else 3387 CC="$ac_cv_prog_CC" 3388fi 3389 3390if test -z "$CC"; then 3391 if test -n "$ac_tool_prefix"; then 3392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3393set dummy ${ac_tool_prefix}cc; ac_word=$2 3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3395$as_echo_n "checking for $ac_word... " >&6; } 3396if ${ac_cv_prog_CC+:} false; then : 3397 $as_echo_n "(cached) " >&6 3398else 3399 if test -n "$CC"; then 3400 ac_cv_prog_CC="$CC" # Let the user override the test. 3401else 3402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3403for as_dir in $PATH 3404do 3405 IFS=$as_save_IFS 3406 test -z "$as_dir" && as_dir=. 3407 for ac_exec_ext in '' $ac_executable_extensions; do 3408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3409 ac_cv_prog_CC="${ac_tool_prefix}cc" 3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3411 break 2 3412 fi 3413done 3414 done 3415IFS=$as_save_IFS 3416 3417fi 3418fi 3419CC=$ac_cv_prog_CC 3420if test -n "$CC"; then 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3422$as_echo "$CC" >&6; } 3423else 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3425$as_echo "no" >&6; } 3426fi 3427 3428 3429 fi 3430fi 3431if test -z "$CC"; then 3432 # Extract the first word of "cc", so it can be a program name with args. 3433set dummy cc; ac_word=$2 3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3435$as_echo_n "checking for $ac_word... " >&6; } 3436if ${ac_cv_prog_CC+:} false; then : 3437 $as_echo_n "(cached) " >&6 3438else 3439 if test -n "$CC"; then 3440 ac_cv_prog_CC="$CC" # Let the user override the test. 3441else 3442 ac_prog_rejected=no 3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3444for as_dir in $PATH 3445do 3446 IFS=$as_save_IFS 3447 test -z "$as_dir" && as_dir=. 3448 for ac_exec_ext in '' $ac_executable_extensions; do 3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3451 ac_prog_rejected=yes 3452 continue 3453 fi 3454 ac_cv_prog_CC="cc" 3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 break 2 3457 fi 3458done 3459 done 3460IFS=$as_save_IFS 3461 3462if test $ac_prog_rejected = yes; then 3463 # We found a bogon in the path, so make sure we never use it. 3464 set dummy $ac_cv_prog_CC 3465 shift 3466 if test $# != 0; then 3467 # We chose a different compiler from the bogus one. 3468 # However, it has the same basename, so the bogon will be chosen 3469 # first if we set CC to just the basename; use the full file name. 3470 shift 3471 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3472 fi 3473fi 3474fi 3475fi 3476CC=$ac_cv_prog_CC 3477if test -n "$CC"; then 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3479$as_echo "$CC" >&6; } 3480else 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3482$as_echo "no" >&6; } 3483fi 3484 3485 3486fi 3487if test -z "$CC"; then 3488 if test -n "$ac_tool_prefix"; then 3489 for ac_prog in cl.exe 3490 do 3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3492set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3494$as_echo_n "checking for $ac_word... " >&6; } 3495if ${ac_cv_prog_CC+:} false; then : 3496 $as_echo_n "(cached) " >&6 3497else 3498 if test -n "$CC"; then 3499 ac_cv_prog_CC="$CC" # Let the user override the test. 3500else 3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3502for as_dir in $PATH 3503do 3504 IFS=$as_save_IFS 3505 test -z "$as_dir" && as_dir=. 3506 for ac_exec_ext in '' $ac_executable_extensions; do 3507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3510 break 2 3511 fi 3512done 3513 done 3514IFS=$as_save_IFS 3515 3516fi 3517fi 3518CC=$ac_cv_prog_CC 3519if test -n "$CC"; then 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3521$as_echo "$CC" >&6; } 3522else 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3524$as_echo "no" >&6; } 3525fi 3526 3527 3528 test -n "$CC" && break 3529 done 3530fi 3531if test -z "$CC"; then 3532 ac_ct_CC=$CC 3533 for ac_prog in cl.exe 3534do 3535 # Extract the first word of "$ac_prog", so it can be a program name with args. 3536set dummy $ac_prog; ac_word=$2 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3538$as_echo_n "checking for $ac_word... " >&6; } 3539if ${ac_cv_prog_ac_ct_CC+:} false; then : 3540 $as_echo_n "(cached) " >&6 3541else 3542 if test -n "$ac_ct_CC"; then 3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3544else 3545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3546for as_dir in $PATH 3547do 3548 IFS=$as_save_IFS 3549 test -z "$as_dir" && as_dir=. 3550 for ac_exec_ext in '' $ac_executable_extensions; do 3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3552 ac_cv_prog_ac_ct_CC="$ac_prog" 3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3554 break 2 3555 fi 3556done 3557 done 3558IFS=$as_save_IFS 3559 3560fi 3561fi 3562ac_ct_CC=$ac_cv_prog_ac_ct_CC 3563if test -n "$ac_ct_CC"; then 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3565$as_echo "$ac_ct_CC" >&6; } 3566else 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3568$as_echo "no" >&6; } 3569fi 3570 3571 3572 test -n "$ac_ct_CC" && break 3573done 3574 3575 if test "x$ac_ct_CC" = x; then 3576 CC="" 3577 else 3578 case $cross_compiling:$ac_tool_warned in 3579yes:) 3580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3582ac_tool_warned=yes ;; 3583esac 3584 CC=$ac_ct_CC 3585 fi 3586fi 3587 3588fi 3589 3590 3591test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3593as_fn_error $? "no acceptable C compiler found in \$PATH 3594See \`config.log' for more details" "$LINENO" 5; } 3595 3596# Provide some information about the compiler. 3597$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3598set X $ac_compile 3599ac_compiler=$2 3600for ac_option in --version -v -V -qversion; do 3601 { { ac_try="$ac_compiler $ac_option >&5" 3602case "(($ac_try" in 3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3604 *) ac_try_echo=$ac_try;; 3605esac 3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3607$as_echo "$ac_try_echo"; } >&5 3608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3609 ac_status=$? 3610 if test -s conftest.err; then 3611 sed '10a\ 3612... rest of stderr output deleted ... 3613 10q' conftest.err >conftest.er1 3614 cat conftest.er1 >&5 3615 fi 3616 rm -f conftest.er1 conftest.err 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; } 3619done 3620 3621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622/* end confdefs.h. */ 3623 3624int 3625main () 3626{ 3627 3628 ; 3629 return 0; 3630} 3631_ACEOF 3632ac_clean_files_save=$ac_clean_files 3633ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3634# Try to create an executable without -o first, disregard a.out. 3635# It will help us diagnose broken compilers, and finding out an intuition 3636# of exeext. 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3638$as_echo_n "checking whether the C compiler works... " >&6; } 3639ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3640 3641# The possible output files: 3642ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3643 3644ac_rmfiles= 3645for ac_file in $ac_files 3646do 3647 case $ac_file in 3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3650 esac 3651done 3652rm -f $ac_rmfiles 3653 3654if { { ac_try="$ac_link_default" 3655case "(($ac_try" in 3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3657 *) ac_try_echo=$ac_try;; 3658esac 3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3660$as_echo "$ac_try_echo"; } >&5 3661 (eval "$ac_link_default") 2>&5 3662 ac_status=$? 3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; }; then : 3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3666# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3667# in a Makefile. We should not override ac_cv_exeext if it was cached, 3668# so that the user can short-circuit this test for compilers unknown to 3669# Autoconf. 3670for ac_file in $ac_files '' 3671do 3672 test -f "$ac_file" || continue 3673 case $ac_file in 3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3675 ;; 3676 [ab].out ) 3677 # We found the default executable, but exeext='' is most 3678 # certainly right. 3679 break;; 3680 *.* ) 3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3682 then :; else 3683 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3684 fi 3685 # We set ac_cv_exeext here because the later test for it is not 3686 # safe: cross compilers may not add the suffix if given an `-o' 3687 # argument, so we may need to know it at that point already. 3688 # Even if this section looks crufty: it has the advantage of 3689 # actually working. 3690 break;; 3691 * ) 3692 break;; 3693 esac 3694done 3695test "$ac_cv_exeext" = no && ac_cv_exeext= 3696 3697else 3698 ac_file='' 3699fi 3700if test -z "$ac_file"; then : 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3702$as_echo "no" >&6; } 3703$as_echo "$as_me: failed program was:" >&5 3704sed 's/^/| /' conftest.$ac_ext >&5 3705 3706{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3708as_fn_error 77 "C compiler cannot create executables 3709See \`config.log' for more details" "$LINENO" 5; } 3710else 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3712$as_echo "yes" >&6; } 3713fi 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3715$as_echo_n "checking for C compiler default output file name... " >&6; } 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3717$as_echo "$ac_file" >&6; } 3718ac_exeext=$ac_cv_exeext 3719 3720rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3721ac_clean_files=$ac_clean_files_save 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3723$as_echo_n "checking for suffix of executables... " >&6; } 3724if { { ac_try="$ac_link" 3725case "(($ac_try" in 3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3727 *) ac_try_echo=$ac_try;; 3728esac 3729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3730$as_echo "$ac_try_echo"; } >&5 3731 (eval "$ac_link") 2>&5 3732 ac_status=$? 3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3734 test $ac_status = 0; }; then : 3735 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3736# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3737# work properly (i.e., refer to `conftest.exe'), while it won't with 3738# `rm'. 3739for ac_file in conftest.exe conftest conftest.*; do 3740 test -f "$ac_file" || continue 3741 case $ac_file in 3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3743 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3744 break;; 3745 * ) break;; 3746 esac 3747done 3748else 3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3751as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3752See \`config.log' for more details" "$LINENO" 5; } 3753fi 3754rm -f conftest conftest$ac_cv_exeext 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3756$as_echo "$ac_cv_exeext" >&6; } 3757 3758rm -f conftest.$ac_ext 3759EXEEXT=$ac_cv_exeext 3760ac_exeext=$EXEEXT 3761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3762/* end confdefs.h. */ 3763#include <stdio.h> 3764int 3765main () 3766{ 3767FILE *f = fopen ("conftest.out", "w"); 3768 return ferror (f) || fclose (f) != 0; 3769 3770 ; 3771 return 0; 3772} 3773_ACEOF 3774ac_clean_files="$ac_clean_files conftest.out" 3775# Check that the compiler produces executables we can run. If not, either 3776# the compiler is broken, or we cross compile. 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3778$as_echo_n "checking whether we are cross compiling... " >&6; } 3779if test "$cross_compiling" != yes; then 3780 { { ac_try="$ac_link" 3781case "(($ac_try" in 3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3783 *) ac_try_echo=$ac_try;; 3784esac 3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3786$as_echo "$ac_try_echo"; } >&5 3787 (eval "$ac_link") 2>&5 3788 ac_status=$? 3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3790 test $ac_status = 0; } 3791 if { ac_try='./conftest$ac_cv_exeext' 3792 { { case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3797$as_echo "$ac_try_echo"; } >&5 3798 (eval "$ac_try") 2>&5 3799 ac_status=$? 3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3801 test $ac_status = 0; }; }; then 3802 cross_compiling=no 3803 else 3804 if test "$cross_compiling" = maybe; then 3805 cross_compiling=yes 3806 else 3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3809as_fn_error $? "cannot run C compiled programs. 3810If you meant to cross compile, use \`--host'. 3811See \`config.log' for more details" "$LINENO" 5; } 3812 fi 3813 fi 3814fi 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3816$as_echo "$cross_compiling" >&6; } 3817 3818rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3819ac_clean_files=$ac_clean_files_save 3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3821$as_echo_n "checking for suffix of object files... " >&6; } 3822if ${ac_cv_objext+:} false; then : 3823 $as_echo_n "(cached) " >&6 3824else 3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3826/* end confdefs.h. */ 3827 3828int 3829main () 3830{ 3831 3832 ; 3833 return 0; 3834} 3835_ACEOF 3836rm -f conftest.o conftest.obj 3837if { { ac_try="$ac_compile" 3838case "(($ac_try" in 3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3840 *) ac_try_echo=$ac_try;; 3841esac 3842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3843$as_echo "$ac_try_echo"; } >&5 3844 (eval "$ac_compile") 2>&5 3845 ac_status=$? 3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3847 test $ac_status = 0; }; then : 3848 for ac_file in conftest.o conftest.obj conftest.*; do 3849 test -f "$ac_file" || continue; 3850 case $ac_file in 3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3853 break;; 3854 esac 3855done 3856else 3857 $as_echo "$as_me: failed program was:" >&5 3858sed 's/^/| /' conftest.$ac_ext >&5 3859 3860{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3862as_fn_error $? "cannot compute suffix of object files: cannot compile 3863See \`config.log' for more details" "$LINENO" 5; } 3864fi 3865rm -f conftest.$ac_cv_objext conftest.$ac_ext 3866fi 3867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3868$as_echo "$ac_cv_objext" >&6; } 3869OBJEXT=$ac_cv_objext 3870ac_objext=$OBJEXT 3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3872$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3873if ${ac_cv_c_compiler_gnu+:} false; then : 3874 $as_echo_n "(cached) " >&6 3875else 3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3877/* end confdefs.h. */ 3878 3879int 3880main () 3881{ 3882#ifndef __GNUC__ 3883 choke me 3884#endif 3885 3886 ; 3887 return 0; 3888} 3889_ACEOF 3890if ac_fn_c_try_compile "$LINENO"; then : 3891 ac_compiler_gnu=yes 3892else 3893 ac_compiler_gnu=no 3894fi 3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3896ac_cv_c_compiler_gnu=$ac_compiler_gnu 3897 3898fi 3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3900$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3901if test $ac_compiler_gnu = yes; then 3902 GCC=yes 3903else 3904 GCC= 3905fi 3906ac_test_CFLAGS=${CFLAGS+set} 3907ac_save_CFLAGS=$CFLAGS 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3909$as_echo_n "checking whether $CC accepts -g... " >&6; } 3910if ${ac_cv_prog_cc_g+:} false; then : 3911 $as_echo_n "(cached) " >&6 3912else 3913 ac_save_c_werror_flag=$ac_c_werror_flag 3914 ac_c_werror_flag=yes 3915 ac_cv_prog_cc_g=no 3916 CFLAGS="-g" 3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3918/* end confdefs.h. */ 3919 3920int 3921main () 3922{ 3923 3924 ; 3925 return 0; 3926} 3927_ACEOF 3928if ac_fn_c_try_compile "$LINENO"; then : 3929 ac_cv_prog_cc_g=yes 3930else 3931 CFLAGS="" 3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3933/* end confdefs.h. */ 3934 3935int 3936main () 3937{ 3938 3939 ; 3940 return 0; 3941} 3942_ACEOF 3943if ac_fn_c_try_compile "$LINENO"; then : 3944 3945else 3946 ac_c_werror_flag=$ac_save_c_werror_flag 3947 CFLAGS="-g" 3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3949/* end confdefs.h. */ 3950 3951int 3952main () 3953{ 3954 3955 ; 3956 return 0; 3957} 3958_ACEOF 3959if ac_fn_c_try_compile "$LINENO"; then : 3960 ac_cv_prog_cc_g=yes 3961fi 3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3963fi 3964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3965fi 3966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3967 ac_c_werror_flag=$ac_save_c_werror_flag 3968fi 3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3970$as_echo "$ac_cv_prog_cc_g" >&6; } 3971if test "$ac_test_CFLAGS" = set; then 3972 CFLAGS=$ac_save_CFLAGS 3973elif test $ac_cv_prog_cc_g = yes; then 3974 if test "$GCC" = yes; then 3975 CFLAGS="-g -O2" 3976 else 3977 CFLAGS="-g" 3978 fi 3979else 3980 if test "$GCC" = yes; then 3981 CFLAGS="-O2" 3982 else 3983 CFLAGS= 3984 fi 3985fi 3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3987$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3988if ${ac_cv_prog_cc_c89+:} false; then : 3989 $as_echo_n "(cached) " >&6 3990else 3991 ac_cv_prog_cc_c89=no 3992ac_save_CC=$CC 3993cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3994/* end confdefs.h. */ 3995#include <stdarg.h> 3996#include <stdio.h> 3997struct stat; 3998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3999struct buf { int x; }; 4000FILE * (*rcsopen) (struct buf *, struct stat *, int); 4001static char *e (p, i) 4002 char **p; 4003 int i; 4004{ 4005 return p[i]; 4006} 4007static char *f (char * (*g) (char **, int), char **p, ...) 4008{ 4009 char *s; 4010 va_list v; 4011 va_start (v,p); 4012 s = g (p, va_arg (v,int)); 4013 va_end (v); 4014 return s; 4015} 4016 4017/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4018 function prototypes and stuff, but not '\xHH' hex character constants. 4019 These don't provoke an error unfortunately, instead are silently treated 4020 as 'x'. The following induces an error, until -std is added to get 4021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4022 array size at least. It's necessary to write '\x00'==0 to get something 4023 that's true only with -std. */ 4024int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4025 4026/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4027 inside strings and character constants. */ 4028#define FOO(x) 'x' 4029int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4030 4031int test (int i, double x); 4032struct s1 {int (*f) (int a);}; 4033struct s2 {int (*f) (double a);}; 4034int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4035int argc; 4036char **argv; 4037int 4038main () 4039{ 4040return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4041 ; 4042 return 0; 4043} 4044_ACEOF 4045for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4047do 4048 CC="$ac_save_CC $ac_arg" 4049 if ac_fn_c_try_compile "$LINENO"; then : 4050 ac_cv_prog_cc_c89=$ac_arg 4051fi 4052rm -f core conftest.err conftest.$ac_objext 4053 test "x$ac_cv_prog_cc_c89" != "xno" && break 4054done 4055rm -f conftest.$ac_ext 4056CC=$ac_save_CC 4057 4058fi 4059# AC_CACHE_VAL 4060case "x$ac_cv_prog_cc_c89" in 4061 x) 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4063$as_echo "none needed" >&6; } ;; 4064 xno) 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4066$as_echo "unsupported" >&6; } ;; 4067 *) 4068 CC="$CC $ac_cv_prog_cc_c89" 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4070$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4071esac 4072if test "x$ac_cv_prog_cc_c89" != xno; then : 4073 4074fi 4075 4076ac_ext=c 4077ac_cpp='$CPP $CPPFLAGS' 4078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4080ac_compiler_gnu=$ac_cv_c_compiler_gnu 4081 4082ac_ext=c 4083ac_cpp='$CPP $CPPFLAGS' 4084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4086ac_compiler_gnu=$ac_cv_c_compiler_gnu 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4088$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4089if ${am_cv_prog_cc_c_o+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4093/* end confdefs.h. */ 4094 4095int 4096main () 4097{ 4098 4099 ; 4100 return 0; 4101} 4102_ACEOF 4103 # Make sure it works both with $CC and with simple cc. 4104 # Following AC_PROG_CC_C_O, we do the test twice because some 4105 # compilers refuse to overwrite an existing .o file with -o, 4106 # though they will create one. 4107 am_cv_prog_cc_c_o=yes 4108 for am_i in 1 2; do 4109 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4110 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4111 ac_status=$? 4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4113 (exit $ac_status); } \ 4114 && test -f conftest2.$ac_objext; then 4115 : OK 4116 else 4117 am_cv_prog_cc_c_o=no 4118 break 4119 fi 4120 done 4121 rm -f core conftest* 4122 unset am_i 4123fi 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4125$as_echo "$am_cv_prog_cc_c_o" >&6; } 4126if test "$am_cv_prog_cc_c_o" != yes; then 4127 # Losing compiler, so override with the script. 4128 # FIXME: It is wrong to rewrite CC. 4129 # But if we don't then we get into trouble of one sort or another. 4130 # A longer-term fix would be to have automake use am__CC in this case, 4131 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4132 CC="$am_aux_dir/compile $CC" 4133fi 4134ac_ext=c 4135ac_cpp='$CPP $CPPFLAGS' 4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4138ac_compiler_gnu=$ac_cv_c_compiler_gnu 4139 4140 4141depcc="$CC" am_compiler_list= 4142 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4144$as_echo_n "checking dependency style of $depcc... " >&6; } 4145if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4146 $as_echo_n "(cached) " >&6 4147else 4148 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4149 # We make a subdir and do the tests there. Otherwise we can end up 4150 # making bogus files that we don't know about and never remove. For 4151 # instance it was reported that on HP-UX the gcc test will end up 4152 # making a dummy file named 'D' -- because '-MD' means "put the output 4153 # in D". 4154 rm -rf conftest.dir 4155 mkdir conftest.dir 4156 # Copy depcomp to subdir because otherwise we won't find it if we're 4157 # using a relative directory. 4158 cp "$am_depcomp" conftest.dir 4159 cd conftest.dir 4160 # We will build objects and dependencies in a subdirectory because 4161 # it helps to detect inapplicable dependency modes. For instance 4162 # both Tru64's cc and ICC support -MD to output dependencies as a 4163 # side effect of compilation, but ICC will put the dependencies in 4164 # the current directory while Tru64 will put them in the object 4165 # directory. 4166 mkdir sub 4167 4168 am_cv_CC_dependencies_compiler_type=none 4169 if test "$am_compiler_list" = ""; then 4170 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4171 fi 4172 am__universal=false 4173 case " $depcc " in #( 4174 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4175 esac 4176 4177 for depmode in $am_compiler_list; do 4178 # Setup a source with many dependencies, because some compilers 4179 # like to wrap large dependency lists on column 80 (with \), and 4180 # we should not choose a depcomp mode which is confused by this. 4181 # 4182 # We need to recreate these files for each test, as the compiler may 4183 # overwrite some of them when testing with obscure command lines. 4184 # This happens at least with the AIX C compiler. 4185 : > sub/conftest.c 4186 for i in 1 2 3 4 5 6; do 4187 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4188 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4189 # Solaris 10 /bin/sh. 4190 echo '/* dummy */' > sub/conftst$i.h 4191 done 4192 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4193 4194 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4195 # mode. It turns out that the SunPro C++ compiler does not properly 4196 # handle '-M -o', and we need to detect this. Also, some Intel 4197 # versions had trouble with output in subdirs. 4198 am__obj=sub/conftest.${OBJEXT-o} 4199 am__minus_obj="-o $am__obj" 4200 case $depmode in 4201 gcc) 4202 # This depmode causes a compiler race in universal mode. 4203 test "$am__universal" = false || continue 4204 ;; 4205 nosideeffect) 4206 # After this tag, mechanisms are not by side-effect, so they'll 4207 # only be used when explicitly requested. 4208 if test "x$enable_dependency_tracking" = xyes; then 4209 continue 4210 else 4211 break 4212 fi 4213 ;; 4214 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4215 # This compiler won't grok '-c -o', but also, the minuso test has 4216 # not run yet. These depmodes are late enough in the game, and 4217 # so weak that their functioning should not be impacted. 4218 am__obj=conftest.${OBJEXT-o} 4219 am__minus_obj= 4220 ;; 4221 none) break ;; 4222 esac 4223 if depmode=$depmode \ 4224 source=sub/conftest.c object=$am__obj \ 4225 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4226 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4227 >/dev/null 2>conftest.err && 4228 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4229 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4230 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4231 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4232 # icc doesn't choke on unknown options, it will just issue warnings 4233 # or remarks (even with -Werror). So we grep stderr for any message 4234 # that says an option was ignored or not supported. 4235 # When given -MP, icc 7.0 and 7.1 complain thusly: 4236 # icc: Command line warning: ignoring option '-M'; no argument required 4237 # The diagnosis changed in icc 8.0: 4238 # icc: Command line remark: option '-MP' not supported 4239 if (grep 'ignoring option' conftest.err || 4240 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4241 am_cv_CC_dependencies_compiler_type=$depmode 4242 break 4243 fi 4244 fi 4245 done 4246 4247 cd .. 4248 rm -rf conftest.dir 4249else 4250 am_cv_CC_dependencies_compiler_type=none 4251fi 4252 4253fi 4254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4255$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4256CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4257 4258 if 4259 test "x$enable_dependency_tracking" != xno \ 4260 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4261 am__fastdepCC_TRUE= 4262 am__fastdepCC_FALSE='#' 4263else 4264 am__fastdepCC_TRUE='#' 4265 am__fastdepCC_FALSE= 4266fi 4267 4268 4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4270$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4271if ${ac_cv_path_SED+:} false; then : 4272 $as_echo_n "(cached) " >&6 4273else 4274 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4275 for ac_i in 1 2 3 4 5 6 7; do 4276 ac_script="$ac_script$as_nl$ac_script" 4277 done 4278 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4279 { ac_script=; unset ac_script;} 4280 if test -z "$SED"; then 4281 ac_path_SED_found=false 4282 # Loop through the user's path and test for each of PROGNAME-LIST 4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4284for as_dir in $PATH 4285do 4286 IFS=$as_save_IFS 4287 test -z "$as_dir" && as_dir=. 4288 for ac_prog in sed gsed; do 4289 for ac_exec_ext in '' $ac_executable_extensions; do 4290 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4291 as_fn_executable_p "$ac_path_SED" || continue 4292# Check for GNU ac_path_SED and select it if it is found. 4293 # Check for GNU $ac_path_SED 4294case `"$ac_path_SED" --version 2>&1` in 4295*GNU*) 4296 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4297*) 4298 ac_count=0 4299 $as_echo_n 0123456789 >"conftest.in" 4300 while : 4301 do 4302 cat "conftest.in" "conftest.in" >"conftest.tmp" 4303 mv "conftest.tmp" "conftest.in" 4304 cp "conftest.in" "conftest.nl" 4305 $as_echo '' >> "conftest.nl" 4306 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4308 as_fn_arith $ac_count + 1 && ac_count=$as_val 4309 if test $ac_count -gt ${ac_path_SED_max-0}; then 4310 # Best one so far, save it but keep looking for a better one 4311 ac_cv_path_SED="$ac_path_SED" 4312 ac_path_SED_max=$ac_count 4313 fi 4314 # 10*(2^10) chars as input seems more than enough 4315 test $ac_count -gt 10 && break 4316 done 4317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4318esac 4319 4320 $ac_path_SED_found && break 3 4321 done 4322 done 4323 done 4324IFS=$as_save_IFS 4325 if test -z "$ac_cv_path_SED"; then 4326 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4327 fi 4328else 4329 ac_cv_path_SED=$SED 4330fi 4331 4332fi 4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4334$as_echo "$ac_cv_path_SED" >&6; } 4335 SED="$ac_cv_path_SED" 4336 rm -f conftest.sed 4337 4338test -z "$SED" && SED=sed 4339Xsed="$SED -e 1s/^X//" 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4352$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4353if ${ac_cv_path_GREP+:} false; then : 4354 $as_echo_n "(cached) " >&6 4355else 4356 if test -z "$GREP"; then 4357 ac_path_GREP_found=false 4358 # Loop through the user's path and test for each of PROGNAME-LIST 4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4361do 4362 IFS=$as_save_IFS 4363 test -z "$as_dir" && as_dir=. 4364 for ac_prog in grep ggrep; do 4365 for ac_exec_ext in '' $ac_executable_extensions; do 4366 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4367 as_fn_executable_p "$ac_path_GREP" || continue 4368# Check for GNU ac_path_GREP and select it if it is found. 4369 # Check for GNU $ac_path_GREP 4370case `"$ac_path_GREP" --version 2>&1` in 4371*GNU*) 4372 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4373*) 4374 ac_count=0 4375 $as_echo_n 0123456789 >"conftest.in" 4376 while : 4377 do 4378 cat "conftest.in" "conftest.in" >"conftest.tmp" 4379 mv "conftest.tmp" "conftest.in" 4380 cp "conftest.in" "conftest.nl" 4381 $as_echo 'GREP' >> "conftest.nl" 4382 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4384 as_fn_arith $ac_count + 1 && ac_count=$as_val 4385 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4386 # Best one so far, save it but keep looking for a better one 4387 ac_cv_path_GREP="$ac_path_GREP" 4388 ac_path_GREP_max=$ac_count 4389 fi 4390 # 10*(2^10) chars as input seems more than enough 4391 test $ac_count -gt 10 && break 4392 done 4393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4394esac 4395 4396 $ac_path_GREP_found && break 3 4397 done 4398 done 4399 done 4400IFS=$as_save_IFS 4401 if test -z "$ac_cv_path_GREP"; then 4402 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4403 fi 4404else 4405 ac_cv_path_GREP=$GREP 4406fi 4407 4408fi 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4410$as_echo "$ac_cv_path_GREP" >&6; } 4411 GREP="$ac_cv_path_GREP" 4412 4413 4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4415$as_echo_n "checking for egrep... " >&6; } 4416if ${ac_cv_path_EGREP+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418else 4419 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4420 then ac_cv_path_EGREP="$GREP -E" 4421 else 4422 if test -z "$EGREP"; then 4423 ac_path_EGREP_found=false 4424 # Loop through the user's path and test for each of PROGNAME-LIST 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4427do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_prog in egrep; do 4431 for ac_exec_ext in '' $ac_executable_extensions; do 4432 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4433 as_fn_executable_p "$ac_path_EGREP" || continue 4434# Check for GNU ac_path_EGREP and select it if it is found. 4435 # Check for GNU $ac_path_EGREP 4436case `"$ac_path_EGREP" --version 2>&1` in 4437*GNU*) 4438 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4439*) 4440 ac_count=0 4441 $as_echo_n 0123456789 >"conftest.in" 4442 while : 4443 do 4444 cat "conftest.in" "conftest.in" >"conftest.tmp" 4445 mv "conftest.tmp" "conftest.in" 4446 cp "conftest.in" "conftest.nl" 4447 $as_echo 'EGREP' >> "conftest.nl" 4448 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4449 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4450 as_fn_arith $ac_count + 1 && ac_count=$as_val 4451 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4452 # Best one so far, save it but keep looking for a better one 4453 ac_cv_path_EGREP="$ac_path_EGREP" 4454 ac_path_EGREP_max=$ac_count 4455 fi 4456 # 10*(2^10) chars as input seems more than enough 4457 test $ac_count -gt 10 && break 4458 done 4459 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4460esac 4461 4462 $ac_path_EGREP_found && break 3 4463 done 4464 done 4465 done 4466IFS=$as_save_IFS 4467 if test -z "$ac_cv_path_EGREP"; then 4468 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4469 fi 4470else 4471 ac_cv_path_EGREP=$EGREP 4472fi 4473 4474 fi 4475fi 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4477$as_echo "$ac_cv_path_EGREP" >&6; } 4478 EGREP="$ac_cv_path_EGREP" 4479 4480 4481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4482$as_echo_n "checking for fgrep... " >&6; } 4483if ${ac_cv_path_FGREP+:} false; then : 4484 $as_echo_n "(cached) " >&6 4485else 4486 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4487 then ac_cv_path_FGREP="$GREP -F" 4488 else 4489 if test -z "$FGREP"; then 4490 ac_path_FGREP_found=false 4491 # Loop through the user's path and test for each of PROGNAME-LIST 4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4493for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4494do 4495 IFS=$as_save_IFS 4496 test -z "$as_dir" && as_dir=. 4497 for ac_prog in fgrep; do 4498 for ac_exec_ext in '' $ac_executable_extensions; do 4499 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4500 as_fn_executable_p "$ac_path_FGREP" || continue 4501# Check for GNU ac_path_FGREP and select it if it is found. 4502 # Check for GNU $ac_path_FGREP 4503case `"$ac_path_FGREP" --version 2>&1` in 4504*GNU*) 4505 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4506*) 4507 ac_count=0 4508 $as_echo_n 0123456789 >"conftest.in" 4509 while : 4510 do 4511 cat "conftest.in" "conftest.in" >"conftest.tmp" 4512 mv "conftest.tmp" "conftest.in" 4513 cp "conftest.in" "conftest.nl" 4514 $as_echo 'FGREP' >> "conftest.nl" 4515 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4516 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4517 as_fn_arith $ac_count + 1 && ac_count=$as_val 4518 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4519 # Best one so far, save it but keep looking for a better one 4520 ac_cv_path_FGREP="$ac_path_FGREP" 4521 ac_path_FGREP_max=$ac_count 4522 fi 4523 # 10*(2^10) chars as input seems more than enough 4524 test $ac_count -gt 10 && break 4525 done 4526 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4527esac 4528 4529 $ac_path_FGREP_found && break 3 4530 done 4531 done 4532 done 4533IFS=$as_save_IFS 4534 if test -z "$ac_cv_path_FGREP"; then 4535 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4536 fi 4537else 4538 ac_cv_path_FGREP=$FGREP 4539fi 4540 4541 fi 4542fi 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4544$as_echo "$ac_cv_path_FGREP" >&6; } 4545 FGREP="$ac_cv_path_FGREP" 4546 4547 4548test -z "$GREP" && GREP=grep 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568# Check whether --with-gnu-ld was given. 4569if test "${with_gnu_ld+set}" = set; then : 4570 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4571else 4572 with_gnu_ld=no 4573fi 4574 4575ac_prog=ld 4576if test yes = "$GCC"; then 4577 # Check if gcc -print-prog-name=ld gives a path. 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4579$as_echo_n "checking for ld used by $CC... " >&6; } 4580 case $host in 4581 *-*-mingw*) 4582 # gcc leaves a trailing carriage return, which upsets mingw 4583 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4584 *) 4585 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4586 esac 4587 case $ac_prog in 4588 # Accept absolute paths. 4589 [\\/]* | ?:[\\/]*) 4590 re_direlt='/[^/][^/]*/\.\./' 4591 # Canonicalize the pathname of ld 4592 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4593 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4594 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4595 done 4596 test -z "$LD" && LD=$ac_prog 4597 ;; 4598 "") 4599 # If it fails, then pretend we aren't using GCC. 4600 ac_prog=ld 4601 ;; 4602 *) 4603 # If it is relative, then search for the first ld in PATH. 4604 with_gnu_ld=unknown 4605 ;; 4606 esac 4607elif test yes = "$with_gnu_ld"; then 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4609$as_echo_n "checking for GNU ld... " >&6; } 4610else 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4612$as_echo_n "checking for non-GNU ld... " >&6; } 4613fi 4614if ${lt_cv_path_LD+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616else 4617 if test -z "$LD"; then 4618 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4619 for ac_dir in $PATH; do 4620 IFS=$lt_save_ifs 4621 test -z "$ac_dir" && ac_dir=. 4622 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4623 lt_cv_path_LD=$ac_dir/$ac_prog 4624 # Check to see if the program is GNU ld. I'd rather use --version, 4625 # but apparently some variants of GNU ld only accept -v. 4626 # Break only if it was the GNU/non-GNU ld that we prefer. 4627 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4628 *GNU* | *'with BFD'*) 4629 test no != "$with_gnu_ld" && break 4630 ;; 4631 *) 4632 test yes != "$with_gnu_ld" && break 4633 ;; 4634 esac 4635 fi 4636 done 4637 IFS=$lt_save_ifs 4638else 4639 lt_cv_path_LD=$LD # Let the user override the test with a path. 4640fi 4641fi 4642 4643LD=$lt_cv_path_LD 4644if test -n "$LD"; then 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4646$as_echo "$LD" >&6; } 4647else 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4649$as_echo "no" >&6; } 4650fi 4651test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4653$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4654if ${lt_cv_prog_gnu_ld+:} false; then : 4655 $as_echo_n "(cached) " >&6 4656else 4657 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4658case `$LD -v 2>&1 </dev/null` in 4659*GNU* | *'with BFD'*) 4660 lt_cv_prog_gnu_ld=yes 4661 ;; 4662*) 4663 lt_cv_prog_gnu_ld=no 4664 ;; 4665esac 4666fi 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4668$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4669with_gnu_ld=$lt_cv_prog_gnu_ld 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4680$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4681if ${lt_cv_path_NM+:} false; then : 4682 $as_echo_n "(cached) " >&6 4683else 4684 if test -n "$NM"; then 4685 # Let the user override the test. 4686 lt_cv_path_NM=$NM 4687else 4688 lt_nm_to_check=${ac_tool_prefix}nm 4689 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4690 lt_nm_to_check="$lt_nm_to_check nm" 4691 fi 4692 for lt_tmp_nm in $lt_nm_to_check; do 4693 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4694 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4695 IFS=$lt_save_ifs 4696 test -z "$ac_dir" && ac_dir=. 4697 tmp_nm=$ac_dir/$lt_tmp_nm 4698 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4699 # Check to see if the nm accepts a BSD-compat flag. 4700 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4701 # nm: unknown option "B" ignored 4702 # Tru64's nm complains that /dev/null is an invalid object file 4703 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4704 case $build_os in 4705 mingw*) lt_bad_file=conftest.nm/nofile ;; 4706 *) lt_bad_file=/dev/null ;; 4707 esac 4708 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4709 *$lt_bad_file* | *'Invalid file or object type'*) 4710 lt_cv_path_NM="$tmp_nm -B" 4711 break 2 4712 ;; 4713 *) 4714 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4715 */dev/null*) 4716 lt_cv_path_NM="$tmp_nm -p" 4717 break 2 4718 ;; 4719 *) 4720 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4721 continue # so that we can try to find one that supports BSD flags 4722 ;; 4723 esac 4724 ;; 4725 esac 4726 fi 4727 done 4728 IFS=$lt_save_ifs 4729 done 4730 : ${lt_cv_path_NM=no} 4731fi 4732fi 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4734$as_echo "$lt_cv_path_NM" >&6; } 4735if test no != "$lt_cv_path_NM"; then 4736 NM=$lt_cv_path_NM 4737else 4738 # Didn't find any BSD compatible name lister, look for dumpbin. 4739 if test -n "$DUMPBIN"; then : 4740 # Let the user override the test. 4741 else 4742 if test -n "$ac_tool_prefix"; then 4743 for ac_prog in dumpbin "link -dump" 4744 do 4745 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4746set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4748$as_echo_n "checking for $ac_word... " >&6; } 4749if ${ac_cv_prog_DUMPBIN+:} false; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 if test -n "$DUMPBIN"; then 4753 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4754else 4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4756for as_dir in $PATH 4757do 4758 IFS=$as_save_IFS 4759 test -z "$as_dir" && as_dir=. 4760 for ac_exec_ext in '' $ac_executable_extensions; do 4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4762 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4764 break 2 4765 fi 4766done 4767 done 4768IFS=$as_save_IFS 4769 4770fi 4771fi 4772DUMPBIN=$ac_cv_prog_DUMPBIN 4773if test -n "$DUMPBIN"; then 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4775$as_echo "$DUMPBIN" >&6; } 4776else 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4778$as_echo "no" >&6; } 4779fi 4780 4781 4782 test -n "$DUMPBIN" && break 4783 done 4784fi 4785if test -z "$DUMPBIN"; then 4786 ac_ct_DUMPBIN=$DUMPBIN 4787 for ac_prog in dumpbin "link -dump" 4788do 4789 # Extract the first word of "$ac_prog", so it can be a program name with args. 4790set dummy $ac_prog; ac_word=$2 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4792$as_echo_n "checking for $ac_word... " >&6; } 4793if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4794 $as_echo_n "(cached) " >&6 4795else 4796 if test -n "$ac_ct_DUMPBIN"; then 4797 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4798else 4799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4800for as_dir in $PATH 4801do 4802 IFS=$as_save_IFS 4803 test -z "$as_dir" && as_dir=. 4804 for ac_exec_ext in '' $ac_executable_extensions; do 4805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4806 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4808 break 2 4809 fi 4810done 4811 done 4812IFS=$as_save_IFS 4813 4814fi 4815fi 4816ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4817if test -n "$ac_ct_DUMPBIN"; then 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4819$as_echo "$ac_ct_DUMPBIN" >&6; } 4820else 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4822$as_echo "no" >&6; } 4823fi 4824 4825 4826 test -n "$ac_ct_DUMPBIN" && break 4827done 4828 4829 if test "x$ac_ct_DUMPBIN" = x; then 4830 DUMPBIN=":" 4831 else 4832 case $cross_compiling:$ac_tool_warned in 4833yes:) 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4836ac_tool_warned=yes ;; 4837esac 4838 DUMPBIN=$ac_ct_DUMPBIN 4839 fi 4840fi 4841 4842 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4843 *COFF*) 4844 DUMPBIN="$DUMPBIN -symbols -headers" 4845 ;; 4846 *) 4847 DUMPBIN=: 4848 ;; 4849 esac 4850 fi 4851 4852 if test : != "$DUMPBIN"; then 4853 NM=$DUMPBIN 4854 fi 4855fi 4856test -z "$NM" && NM=nm 4857 4858 4859 4860 4861 4862 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4864$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4865if ${lt_cv_nm_interface+:} false; then : 4866 $as_echo_n "(cached) " >&6 4867else 4868 lt_cv_nm_interface="BSD nm" 4869 echo "int some_variable = 0;" > conftest.$ac_ext 4870 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4871 (eval "$ac_compile" 2>conftest.err) 4872 cat conftest.err >&5 4873 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4874 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4875 cat conftest.err >&5 4876 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4877 cat conftest.out >&5 4878 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4879 lt_cv_nm_interface="MS dumpbin" 4880 fi 4881 rm -f conftest* 4882fi 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4884$as_echo "$lt_cv_nm_interface" >&6; } 4885 4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4887$as_echo_n "checking whether ln -s works... " >&6; } 4888LN_S=$as_ln_s 4889if test "$LN_S" = "ln -s"; then 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4891$as_echo "yes" >&6; } 4892else 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4894$as_echo "no, using $LN_S" >&6; } 4895fi 4896 4897# find the maximum length of command line arguments 4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4899$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4900if ${lt_cv_sys_max_cmd_len+:} false; then : 4901 $as_echo_n "(cached) " >&6 4902else 4903 i=0 4904 teststring=ABCD 4905 4906 case $build_os in 4907 msdosdjgpp*) 4908 # On DJGPP, this test can blow up pretty badly due to problems in libc 4909 # (any single argument exceeding 2000 bytes causes a buffer overrun 4910 # during glob expansion). Even if it were fixed, the result of this 4911 # check would be larger than it should be. 4912 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4913 ;; 4914 4915 gnu*) 4916 # Under GNU Hurd, this test is not required because there is 4917 # no limit to the length of command line arguments. 4918 # Libtool will interpret -1 as no limit whatsoever 4919 lt_cv_sys_max_cmd_len=-1; 4920 ;; 4921 4922 cygwin* | mingw* | cegcc*) 4923 # On Win9x/ME, this test blows up -- it succeeds, but takes 4924 # about 5 minutes as the teststring grows exponentially. 4925 # Worse, since 9x/ME are not pre-emptively multitasking, 4926 # you end up with a "frozen" computer, even though with patience 4927 # the test eventually succeeds (with a max line length of 256k). 4928 # Instead, let's just punt: use the minimum linelength reported by 4929 # all of the supported platforms: 8192 (on NT/2K/XP). 4930 lt_cv_sys_max_cmd_len=8192; 4931 ;; 4932 4933 mint*) 4934 # On MiNT this can take a long time and run out of memory. 4935 lt_cv_sys_max_cmd_len=8192; 4936 ;; 4937 4938 amigaos*) 4939 # On AmigaOS with pdksh, this test takes hours, literally. 4940 # So we just punt and use a minimum line length of 8192. 4941 lt_cv_sys_max_cmd_len=8192; 4942 ;; 4943 4944 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4945 # This has been around since 386BSD, at least. Likely further. 4946 if test -x /sbin/sysctl; then 4947 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4948 elif test -x /usr/sbin/sysctl; then 4949 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4950 else 4951 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4952 fi 4953 # And add a safety zone 4954 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4955 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4956 ;; 4957 4958 interix*) 4959 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4960 lt_cv_sys_max_cmd_len=196608 4961 ;; 4962 4963 os2*) 4964 # The test takes a long time on OS/2. 4965 lt_cv_sys_max_cmd_len=8192 4966 ;; 4967 4968 osf*) 4969 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4970 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4971 # nice to cause kernel panics so lets avoid the loop below. 4972 # First set a reasonable default. 4973 lt_cv_sys_max_cmd_len=16384 4974 # 4975 if test -x /sbin/sysconfig; then 4976 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4977 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4978 esac 4979 fi 4980 ;; 4981 sco3.2v5*) 4982 lt_cv_sys_max_cmd_len=102400 4983 ;; 4984 sysv5* | sco5v6* | sysv4.2uw2*) 4985 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4986 if test -n "$kargmax"; then 4987 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4988 else 4989 lt_cv_sys_max_cmd_len=32768 4990 fi 4991 ;; 4992 *) 4993 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4994 if test -n "$lt_cv_sys_max_cmd_len" && \ 4995 test undefined != "$lt_cv_sys_max_cmd_len"; then 4996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4998 else 4999 # Make teststring a little bigger before we do anything with it. 5000 # a 1K string should be a reasonable start. 5001 for i in 1 2 3 4 5 6 7 8; do 5002 teststring=$teststring$teststring 5003 done 5004 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5005 # If test is not a shell built-in, we'll probably end up computing a 5006 # maximum length that is only half of the actual maximum length, but 5007 # we can't tell. 5008 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5009 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5010 test 17 != "$i" # 1/2 MB should be enough 5011 do 5012 i=`expr $i + 1` 5013 teststring=$teststring$teststring 5014 done 5015 # Only check the string length outside the loop. 5016 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5017 teststring= 5018 # Add a significant safety factor because C++ compilers can tack on 5019 # massive amounts of additional arguments before passing them to the 5020 # linker. It appears as though 1/2 is a usable value. 5021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5022 fi 5023 ;; 5024 esac 5025 5026fi 5027 5028if test -n "$lt_cv_sys_max_cmd_len"; then 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5030$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5031else 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5033$as_echo "none" >&6; } 5034fi 5035max_cmd_len=$lt_cv_sys_max_cmd_len 5036 5037 5038 5039 5040 5041 5042: ${CP="cp -f"} 5043: ${MV="mv -f"} 5044: ${RM="rm -f"} 5045 5046if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5047 lt_unset=unset 5048else 5049 lt_unset=false 5050fi 5051 5052 5053 5054 5055 5056# test EBCDIC or ASCII 5057case `echo X|tr X '\101'` in 5058 A) # ASCII based system 5059 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5060 lt_SP2NL='tr \040 \012' 5061 lt_NL2SP='tr \015\012 \040\040' 5062 ;; 5063 *) # EBCDIC based system 5064 lt_SP2NL='tr \100 \n' 5065 lt_NL2SP='tr \r\n \100\100' 5066 ;; 5067esac 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5078$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5079if ${lt_cv_to_host_file_cmd+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 case $host in 5083 *-*-mingw* ) 5084 case $build in 5085 *-*-mingw* ) # actually msys 5086 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5087 ;; 5088 *-*-cygwin* ) 5089 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5090 ;; 5091 * ) # otherwise, assume *nix 5092 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5093 ;; 5094 esac 5095 ;; 5096 *-*-cygwin* ) 5097 case $build in 5098 *-*-mingw* ) # actually msys 5099 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5100 ;; 5101 *-*-cygwin* ) 5102 lt_cv_to_host_file_cmd=func_convert_file_noop 5103 ;; 5104 * ) # otherwise, assume *nix 5105 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5106 ;; 5107 esac 5108 ;; 5109 * ) # unhandled hosts (and "normal" native builds) 5110 lt_cv_to_host_file_cmd=func_convert_file_noop 5111 ;; 5112esac 5113 5114fi 5115 5116to_host_file_cmd=$lt_cv_to_host_file_cmd 5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5118$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5119 5120 5121 5122 5123 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5125$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5126if ${lt_cv_to_tool_file_cmd+:} false; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 #assume ordinary cross tools, or native build. 5130lt_cv_to_tool_file_cmd=func_convert_file_noop 5131case $host in 5132 *-*-mingw* ) 5133 case $build in 5134 *-*-mingw* ) # actually msys 5135 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5136 ;; 5137 esac 5138 ;; 5139esac 5140 5141fi 5142 5143to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5145$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5146 5147 5148 5149 5150 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5152$as_echo_n "checking for $LD option to reload object files... " >&6; } 5153if ${lt_cv_ld_reload_flag+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 lt_cv_ld_reload_flag='-r' 5157fi 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5159$as_echo "$lt_cv_ld_reload_flag" >&6; } 5160reload_flag=$lt_cv_ld_reload_flag 5161case $reload_flag in 5162"" | " "*) ;; 5163*) reload_flag=" $reload_flag" ;; 5164esac 5165reload_cmds='$LD$reload_flag -o $output$reload_objs' 5166case $host_os in 5167 cygwin* | mingw* | pw32* | cegcc*) 5168 if test yes != "$GCC"; then 5169 reload_cmds=false 5170 fi 5171 ;; 5172 darwin*) 5173 if test yes = "$GCC"; then 5174 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5175 else 5176 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5177 fi 5178 ;; 5179esac 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189if test -n "$ac_tool_prefix"; then 5190 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5191set dummy ${ac_tool_prefix}objdump; ac_word=$2 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5193$as_echo_n "checking for $ac_word... " >&6; } 5194if ${ac_cv_prog_OBJDUMP+:} false; then : 5195 $as_echo_n "(cached) " >&6 5196else 5197 if test -n "$OBJDUMP"; then 5198 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5199else 5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5201for as_dir in $PATH 5202do 5203 IFS=$as_save_IFS 5204 test -z "$as_dir" && as_dir=. 5205 for ac_exec_ext in '' $ac_executable_extensions; do 5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5207 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5209 break 2 5210 fi 5211done 5212 done 5213IFS=$as_save_IFS 5214 5215fi 5216fi 5217OBJDUMP=$ac_cv_prog_OBJDUMP 5218if test -n "$OBJDUMP"; then 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5220$as_echo "$OBJDUMP" >&6; } 5221else 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5223$as_echo "no" >&6; } 5224fi 5225 5226 5227fi 5228if test -z "$ac_cv_prog_OBJDUMP"; then 5229 ac_ct_OBJDUMP=$OBJDUMP 5230 # Extract the first word of "objdump", so it can be a program name with args. 5231set dummy objdump; ac_word=$2 5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5233$as_echo_n "checking for $ac_word... " >&6; } 5234if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5235 $as_echo_n "(cached) " >&6 5236else 5237 if test -n "$ac_ct_OBJDUMP"; then 5238 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5239else 5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5241for as_dir in $PATH 5242do 5243 IFS=$as_save_IFS 5244 test -z "$as_dir" && as_dir=. 5245 for ac_exec_ext in '' $ac_executable_extensions; do 5246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5247 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5249 break 2 5250 fi 5251done 5252 done 5253IFS=$as_save_IFS 5254 5255fi 5256fi 5257ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5258if test -n "$ac_ct_OBJDUMP"; then 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5260$as_echo "$ac_ct_OBJDUMP" >&6; } 5261else 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5263$as_echo "no" >&6; } 5264fi 5265 5266 if test "x$ac_ct_OBJDUMP" = x; then 5267 OBJDUMP="false" 5268 else 5269 case $cross_compiling:$ac_tool_warned in 5270yes:) 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5273ac_tool_warned=yes ;; 5274esac 5275 OBJDUMP=$ac_ct_OBJDUMP 5276 fi 5277else 5278 OBJDUMP="$ac_cv_prog_OBJDUMP" 5279fi 5280 5281test -z "$OBJDUMP" && OBJDUMP=objdump 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5292$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5293if ${lt_cv_deplibs_check_method+:} false; then : 5294 $as_echo_n "(cached) " >&6 5295else 5296 lt_cv_file_magic_cmd='$MAGIC_CMD' 5297lt_cv_file_magic_test_file= 5298lt_cv_deplibs_check_method='unknown' 5299# Need to set the preceding variable on all platforms that support 5300# interlibrary dependencies. 5301# 'none' -- dependencies not supported. 5302# 'unknown' -- same as none, but documents that we really don't know. 5303# 'pass_all' -- all dependencies passed with no checks. 5304# 'test_compile' -- check by making test program. 5305# 'file_magic [[regex]]' -- check by looking for files in library path 5306# that responds to the $file_magic_cmd with a given extended regex. 5307# If you have 'file' or equivalent on your system and you're not sure 5308# whether 'pass_all' will *always* work, you probably want this one. 5309 5310case $host_os in 5311aix[4-9]*) 5312 lt_cv_deplibs_check_method=pass_all 5313 ;; 5314 5315beos*) 5316 lt_cv_deplibs_check_method=pass_all 5317 ;; 5318 5319bsdi[45]*) 5320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5321 lt_cv_file_magic_cmd='/usr/bin/file -L' 5322 lt_cv_file_magic_test_file=/shlib/libc.so 5323 ;; 5324 5325cygwin*) 5326 # func_win32_libid is a shell function defined in ltmain.sh 5327 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5328 lt_cv_file_magic_cmd='func_win32_libid' 5329 ;; 5330 5331mingw* | pw32*) 5332 # Base MSYS/MinGW do not provide the 'file' command needed by 5333 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5334 # unless we find 'file', for example because we are cross-compiling. 5335 if ( file / ) >/dev/null 2>&1; then 5336 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5337 lt_cv_file_magic_cmd='func_win32_libid' 5338 else 5339 # Keep this pattern in sync with the one in func_win32_libid. 5340 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5341 lt_cv_file_magic_cmd='$OBJDUMP -f' 5342 fi 5343 ;; 5344 5345cegcc*) 5346 # use the weaker test based on 'objdump'. See mingw*. 5347 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5348 lt_cv_file_magic_cmd='$OBJDUMP -f' 5349 ;; 5350 5351darwin* | rhapsody*) 5352 lt_cv_deplibs_check_method=pass_all 5353 ;; 5354 5355freebsd* | dragonfly*) 5356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5357 case $host_cpu in 5358 i*86 ) 5359 # Not sure whether the presence of OpenBSD here was a mistake. 5360 # Let's accept both of them until this is cleared up. 5361 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5362 lt_cv_file_magic_cmd=/usr/bin/file 5363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5364 ;; 5365 esac 5366 else 5367 lt_cv_deplibs_check_method=pass_all 5368 fi 5369 ;; 5370 5371haiku*) 5372 lt_cv_deplibs_check_method=pass_all 5373 ;; 5374 5375hpux10.20* | hpux11*) 5376 lt_cv_file_magic_cmd=/usr/bin/file 5377 case $host_cpu in 5378 ia64*) 5379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5380 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5381 ;; 5382 hppa*64*) 5383 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]' 5384 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5385 ;; 5386 *) 5387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5388 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5389 ;; 5390 esac 5391 ;; 5392 5393interix[3-9]*) 5394 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5396 ;; 5397 5398irix5* | irix6* | nonstopux*) 5399 case $LD in 5400 *-32|*"-32 ") libmagic=32-bit;; 5401 *-n32|*"-n32 ") libmagic=N32;; 5402 *-64|*"-64 ") libmagic=64-bit;; 5403 *) libmagic=never-match;; 5404 esac 5405 lt_cv_deplibs_check_method=pass_all 5406 ;; 5407 5408# This must be glibc/ELF. 5409linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5410 lt_cv_deplibs_check_method=pass_all 5411 ;; 5412 5413netbsd*) 5414 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5416 else 5417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5418 fi 5419 ;; 5420 5421newos6*) 5422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5423 lt_cv_file_magic_cmd=/usr/bin/file 5424 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5425 ;; 5426 5427*nto* | *qnx*) 5428 lt_cv_deplibs_check_method=pass_all 5429 ;; 5430 5431openbsd* | bitrig*) 5432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5434 else 5435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5436 fi 5437 ;; 5438 5439osf3* | osf4* | osf5*) 5440 lt_cv_deplibs_check_method=pass_all 5441 ;; 5442 5443rdos*) 5444 lt_cv_deplibs_check_method=pass_all 5445 ;; 5446 5447solaris*) 5448 lt_cv_deplibs_check_method=pass_all 5449 ;; 5450 5451sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5452 lt_cv_deplibs_check_method=pass_all 5453 ;; 5454 5455sysv4 | sysv4.3*) 5456 case $host_vendor in 5457 motorola) 5458 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]' 5459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5460 ;; 5461 ncr) 5462 lt_cv_deplibs_check_method=pass_all 5463 ;; 5464 sequent) 5465 lt_cv_file_magic_cmd='/bin/file' 5466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5467 ;; 5468 sni) 5469 lt_cv_file_magic_cmd='/bin/file' 5470 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5471 lt_cv_file_magic_test_file=/lib/libc.so 5472 ;; 5473 siemens) 5474 lt_cv_deplibs_check_method=pass_all 5475 ;; 5476 pc) 5477 lt_cv_deplibs_check_method=pass_all 5478 ;; 5479 esac 5480 ;; 5481 5482tpf*) 5483 lt_cv_deplibs_check_method=pass_all 5484 ;; 5485os2*) 5486 lt_cv_deplibs_check_method=pass_all 5487 ;; 5488esac 5489 5490fi 5491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5492$as_echo "$lt_cv_deplibs_check_method" >&6; } 5493 5494file_magic_glob= 5495want_nocaseglob=no 5496if test "$build" = "$host"; then 5497 case $host_os in 5498 mingw* | pw32*) 5499 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5500 want_nocaseglob=yes 5501 else 5502 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5503 fi 5504 ;; 5505 esac 5506fi 5507 5508file_magic_cmd=$lt_cv_file_magic_cmd 5509deplibs_check_method=$lt_cv_deplibs_check_method 5510test -z "$deplibs_check_method" && deplibs_check_method=unknown 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533if test -n "$ac_tool_prefix"; then 5534 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5535set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5537$as_echo_n "checking for $ac_word... " >&6; } 5538if ${ac_cv_prog_DLLTOOL+:} false; then : 5539 $as_echo_n "(cached) " >&6 5540else 5541 if test -n "$DLLTOOL"; then 5542 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5543else 5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5545for as_dir in $PATH 5546do 5547 IFS=$as_save_IFS 5548 test -z "$as_dir" && as_dir=. 5549 for ac_exec_ext in '' $ac_executable_extensions; do 5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5551 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5553 break 2 5554 fi 5555done 5556 done 5557IFS=$as_save_IFS 5558 5559fi 5560fi 5561DLLTOOL=$ac_cv_prog_DLLTOOL 5562if test -n "$DLLTOOL"; then 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5564$as_echo "$DLLTOOL" >&6; } 5565else 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5567$as_echo "no" >&6; } 5568fi 5569 5570 5571fi 5572if test -z "$ac_cv_prog_DLLTOOL"; then 5573 ac_ct_DLLTOOL=$DLLTOOL 5574 # Extract the first word of "dlltool", so it can be a program name with args. 5575set dummy dlltool; ac_word=$2 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5577$as_echo_n "checking for $ac_word... " >&6; } 5578if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 if test -n "$ac_ct_DLLTOOL"; then 5582 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5583else 5584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5585for as_dir in $PATH 5586do 5587 IFS=$as_save_IFS 5588 test -z "$as_dir" && as_dir=. 5589 for ac_exec_ext in '' $ac_executable_extensions; do 5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5591 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5593 break 2 5594 fi 5595done 5596 done 5597IFS=$as_save_IFS 5598 5599fi 5600fi 5601ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5602if test -n "$ac_ct_DLLTOOL"; then 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5604$as_echo "$ac_ct_DLLTOOL" >&6; } 5605else 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5607$as_echo "no" >&6; } 5608fi 5609 5610 if test "x$ac_ct_DLLTOOL" = x; then 5611 DLLTOOL="false" 5612 else 5613 case $cross_compiling:$ac_tool_warned in 5614yes:) 5615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5617ac_tool_warned=yes ;; 5618esac 5619 DLLTOOL=$ac_ct_DLLTOOL 5620 fi 5621else 5622 DLLTOOL="$ac_cv_prog_DLLTOOL" 5623fi 5624 5625test -z "$DLLTOOL" && DLLTOOL=dlltool 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5637$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5638if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5639 $as_echo_n "(cached) " >&6 5640else 5641 lt_cv_sharedlib_from_linklib_cmd='unknown' 5642 5643case $host_os in 5644cygwin* | mingw* | pw32* | cegcc*) 5645 # two different shell functions defined in ltmain.sh; 5646 # decide which one to use based on capabilities of $DLLTOOL 5647 case `$DLLTOOL --help 2>&1` in 5648 *--identify-strict*) 5649 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5650 ;; 5651 *) 5652 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5653 ;; 5654 esac 5655 ;; 5656*) 5657 # fallback: assume linklib IS sharedlib 5658 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5659 ;; 5660esac 5661 5662fi 5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5664$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5665sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5666test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5667 5668 5669 5670 5671 5672 5673 5674 5675if test -n "$ac_tool_prefix"; then 5676 for ac_prog in ar 5677 do 5678 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5679set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5681$as_echo_n "checking for $ac_word... " >&6; } 5682if ${ac_cv_prog_AR+:} false; then : 5683 $as_echo_n "(cached) " >&6 5684else 5685 if test -n "$AR"; then 5686 ac_cv_prog_AR="$AR" # Let the user override the test. 5687else 5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5689for as_dir in $PATH 5690do 5691 IFS=$as_save_IFS 5692 test -z "$as_dir" && as_dir=. 5693 for ac_exec_ext in '' $ac_executable_extensions; do 5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5695 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5697 break 2 5698 fi 5699done 5700 done 5701IFS=$as_save_IFS 5702 5703fi 5704fi 5705AR=$ac_cv_prog_AR 5706if test -n "$AR"; then 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5708$as_echo "$AR" >&6; } 5709else 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5711$as_echo "no" >&6; } 5712fi 5713 5714 5715 test -n "$AR" && break 5716 done 5717fi 5718if test -z "$AR"; then 5719 ac_ct_AR=$AR 5720 for ac_prog in ar 5721do 5722 # Extract the first word of "$ac_prog", so it can be a program name with args. 5723set dummy $ac_prog; ac_word=$2 5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5725$as_echo_n "checking for $ac_word... " >&6; } 5726if ${ac_cv_prog_ac_ct_AR+:} false; then : 5727 $as_echo_n "(cached) " >&6 5728else 5729 if test -n "$ac_ct_AR"; then 5730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5731else 5732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5733for as_dir in $PATH 5734do 5735 IFS=$as_save_IFS 5736 test -z "$as_dir" && as_dir=. 5737 for ac_exec_ext in '' $ac_executable_extensions; do 5738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5739 ac_cv_prog_ac_ct_AR="$ac_prog" 5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5741 break 2 5742 fi 5743done 5744 done 5745IFS=$as_save_IFS 5746 5747fi 5748fi 5749ac_ct_AR=$ac_cv_prog_ac_ct_AR 5750if test -n "$ac_ct_AR"; then 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5752$as_echo "$ac_ct_AR" >&6; } 5753else 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5755$as_echo "no" >&6; } 5756fi 5757 5758 5759 test -n "$ac_ct_AR" && break 5760done 5761 5762 if test "x$ac_ct_AR" = x; then 5763 AR="false" 5764 else 5765 case $cross_compiling:$ac_tool_warned in 5766yes:) 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5769ac_tool_warned=yes ;; 5770esac 5771 AR=$ac_ct_AR 5772 fi 5773fi 5774 5775: ${AR=ar} 5776: ${AR_FLAGS=cru} 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5789$as_echo_n "checking for archiver @FILE support... " >&6; } 5790if ${lt_cv_ar_at_file+:} false; then : 5791 $as_echo_n "(cached) " >&6 5792else 5793 lt_cv_ar_at_file=no 5794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5795/* end confdefs.h. */ 5796 5797int 5798main () 5799{ 5800 5801 ; 5802 return 0; 5803} 5804_ACEOF 5805if ac_fn_c_try_compile "$LINENO"; then : 5806 echo conftest.$ac_objext > conftest.lst 5807 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5809 (eval $lt_ar_try) 2>&5 5810 ac_status=$? 5811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5812 test $ac_status = 0; } 5813 if test 0 -eq "$ac_status"; then 5814 # Ensure the archiver fails upon bogus file names. 5815 rm -f conftest.$ac_objext libconftest.a 5816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5817 (eval $lt_ar_try) 2>&5 5818 ac_status=$? 5819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5820 test $ac_status = 0; } 5821 if test 0 -ne "$ac_status"; then 5822 lt_cv_ar_at_file=@ 5823 fi 5824 fi 5825 rm -f conftest.* libconftest.a 5826 5827fi 5828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5829 5830fi 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5832$as_echo "$lt_cv_ar_at_file" >&6; } 5833 5834if test no = "$lt_cv_ar_at_file"; then 5835 archiver_list_spec= 5836else 5837 archiver_list_spec=$lt_cv_ar_at_file 5838fi 5839 5840 5841 5842 5843 5844 5845 5846if test -n "$ac_tool_prefix"; then 5847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5848set dummy ${ac_tool_prefix}strip; ac_word=$2 5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5850$as_echo_n "checking for $ac_word... " >&6; } 5851if ${ac_cv_prog_STRIP+:} false; then : 5852 $as_echo_n "(cached) " >&6 5853else 5854 if test -n "$STRIP"; then 5855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5856else 5857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5858for as_dir in $PATH 5859do 5860 IFS=$as_save_IFS 5861 test -z "$as_dir" && as_dir=. 5862 for ac_exec_ext in '' $ac_executable_extensions; do 5863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5864 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5866 break 2 5867 fi 5868done 5869 done 5870IFS=$as_save_IFS 5871 5872fi 5873fi 5874STRIP=$ac_cv_prog_STRIP 5875if test -n "$STRIP"; then 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5877$as_echo "$STRIP" >&6; } 5878else 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5880$as_echo "no" >&6; } 5881fi 5882 5883 5884fi 5885if test -z "$ac_cv_prog_STRIP"; then 5886 ac_ct_STRIP=$STRIP 5887 # Extract the first word of "strip", so it can be a program name with args. 5888set dummy strip; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$ac_ct_STRIP"; then 5895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_ac_ct_STRIP="strip" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5915if test -n "$ac_ct_STRIP"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5917$as_echo "$ac_ct_STRIP" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 if test "x$ac_ct_STRIP" = x; then 5924 STRIP=":" 5925 else 5926 case $cross_compiling:$ac_tool_warned in 5927yes:) 5928{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5930ac_tool_warned=yes ;; 5931esac 5932 STRIP=$ac_ct_STRIP 5933 fi 5934else 5935 STRIP="$ac_cv_prog_STRIP" 5936fi 5937 5938test -z "$STRIP" && STRIP=: 5939 5940 5941 5942 5943 5944 5945if test -n "$ac_tool_prefix"; then 5946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5947set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5949$as_echo_n "checking for $ac_word... " >&6; } 5950if ${ac_cv_prog_RANLIB+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952else 5953 if test -n "$RANLIB"; then 5954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5955else 5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5957for as_dir in $PATH 5958do 5959 IFS=$as_save_IFS 5960 test -z "$as_dir" && as_dir=. 5961 for ac_exec_ext in '' $ac_executable_extensions; do 5962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5965 break 2 5966 fi 5967done 5968 done 5969IFS=$as_save_IFS 5970 5971fi 5972fi 5973RANLIB=$ac_cv_prog_RANLIB 5974if test -n "$RANLIB"; then 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5976$as_echo "$RANLIB" >&6; } 5977else 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5979$as_echo "no" >&6; } 5980fi 5981 5982 5983fi 5984if test -z "$ac_cv_prog_RANLIB"; then 5985 ac_ct_RANLIB=$RANLIB 5986 # Extract the first word of "ranlib", so it can be a program name with args. 5987set dummy ranlib; ac_word=$2 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5989$as_echo_n "checking for $ac_word... " >&6; } 5990if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5991 $as_echo_n "(cached) " >&6 5992else 5993 if test -n "$ac_ct_RANLIB"; then 5994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5995else 5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5997for as_dir in $PATH 5998do 5999 IFS=$as_save_IFS 6000 test -z "$as_dir" && as_dir=. 6001 for ac_exec_ext in '' $ac_executable_extensions; do 6002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6003 ac_cv_prog_ac_ct_RANLIB="ranlib" 6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6005 break 2 6006 fi 6007done 6008 done 6009IFS=$as_save_IFS 6010 6011fi 6012fi 6013ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6014if test -n "$ac_ct_RANLIB"; then 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6016$as_echo "$ac_ct_RANLIB" >&6; } 6017else 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6019$as_echo "no" >&6; } 6020fi 6021 6022 if test "x$ac_ct_RANLIB" = x; then 6023 RANLIB=":" 6024 else 6025 case $cross_compiling:$ac_tool_warned in 6026yes:) 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6029ac_tool_warned=yes ;; 6030esac 6031 RANLIB=$ac_ct_RANLIB 6032 fi 6033else 6034 RANLIB="$ac_cv_prog_RANLIB" 6035fi 6036 6037test -z "$RANLIB" && RANLIB=: 6038 6039 6040 6041 6042 6043 6044# Determine commands to create old-style static archives. 6045old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6046old_postinstall_cmds='chmod 644 $oldlib' 6047old_postuninstall_cmds= 6048 6049if test -n "$RANLIB"; then 6050 case $host_os in 6051 bitrig* | openbsd*) 6052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6053 ;; 6054 *) 6055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6056 ;; 6057 esac 6058 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6059fi 6060 6061case $host_os in 6062 darwin*) 6063 lock_old_archive_extraction=yes ;; 6064 *) 6065 lock_old_archive_extraction=no ;; 6066esac 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106# If no C compiler was specified, use CC. 6107LTCC=${LTCC-"$CC"} 6108 6109# If no C compiler flags were specified, use CFLAGS. 6110LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6111 6112# Allow CC to be a program name with arguments. 6113compiler=$CC 6114 6115 6116# Check for command to grab the raw symbol name followed by C symbol from nm. 6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6118$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6119if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6120 $as_echo_n "(cached) " >&6 6121else 6122 6123# These are sane defaults that work on at least a few old systems. 6124# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6125 6126# Character class describing NM global symbol codes. 6127symcode='[BCDEGRST]' 6128 6129# Regexp to match symbols that can be accessed directly from C. 6130sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6131 6132# Define system-specific variables. 6133case $host_os in 6134aix*) 6135 symcode='[BCDT]' 6136 ;; 6137cygwin* | mingw* | pw32* | cegcc*) 6138 symcode='[ABCDGISTW]' 6139 ;; 6140hpux*) 6141 if test ia64 = "$host_cpu"; then 6142 symcode='[ABCDEGRST]' 6143 fi 6144 ;; 6145irix* | nonstopux*) 6146 symcode='[BCDEGRST]' 6147 ;; 6148osf*) 6149 symcode='[BCDEGQRST]' 6150 ;; 6151solaris*) 6152 symcode='[BDRT]' 6153 ;; 6154sco3.2v5*) 6155 symcode='[DT]' 6156 ;; 6157sysv4.2uw2*) 6158 symcode='[DT]' 6159 ;; 6160sysv5* | sco5v6* | unixware* | OpenUNIX*) 6161 symcode='[ABDT]' 6162 ;; 6163sysv4) 6164 symcode='[DFNSTU]' 6165 ;; 6166esac 6167 6168# If we're using GNU nm, then use its standard symbol codes. 6169case `$NM -V 2>&1` in 6170*GNU* | *'with BFD'*) 6171 symcode='[ABCDGIRSTW]' ;; 6172esac 6173 6174if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6175 # Gets list of data symbols to import. 6176 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6177 # Adjust the below global symbol transforms to fixup imported variables. 6178 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6179 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6180 lt_c_name_lib_hook="\ 6181 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6182 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6183else 6184 # Disable hooks by default. 6185 lt_cv_sys_global_symbol_to_import= 6186 lt_cdecl_hook= 6187 lt_c_name_hook= 6188 lt_c_name_lib_hook= 6189fi 6190 6191# Transform an extracted symbol line into a proper C declaration. 6192# Some systems (esp. on ia64) link data and code symbols differently, 6193# so use this general approach. 6194lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6195$lt_cdecl_hook\ 6196" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6197" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6198 6199# Transform an extracted symbol line into symbol name and symbol address 6200lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6201$lt_c_name_hook\ 6202" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6203" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6204 6205# Transform an extracted symbol line into symbol name with lib prefix and 6206# symbol address. 6207lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6208$lt_c_name_lib_hook\ 6209" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6210" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6211" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6212 6213# Handle CRLF in mingw tool chain 6214opt_cr= 6215case $build_os in 6216mingw*) 6217 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6218 ;; 6219esac 6220 6221# Try without a prefix underscore, then with it. 6222for ac_symprfx in "" "_"; do 6223 6224 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6225 symxfrm="\\1 $ac_symprfx\\2 \\2" 6226 6227 # Write the raw and C identifiers. 6228 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6229 # Fake it for dumpbin and say T for any non-static function, 6230 # D for any global variable and I for any imported variable. 6231 # Also find C++ and __fastcall symbols from MSVC++, 6232 # which start with @ or ?. 6233 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6234" {last_section=section; section=\$ 3};"\ 6235" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6236" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6237" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6238" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6239" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6240" \$ 0!~/External *\|/{next};"\ 6241" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6242" {if(hide[section]) next};"\ 6243" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6244" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6245" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6246" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6247" ' prfx=^$ac_symprfx" 6248 else 6249 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6250 fi 6251 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6252 6253 # Check to see that the pipe works correctly. 6254 pipe_works=no 6255 6256 rm -f conftest* 6257 cat > conftest.$ac_ext <<_LT_EOF 6258#ifdef __cplusplus 6259extern "C" { 6260#endif 6261char nm_test_var; 6262void nm_test_func(void); 6263void nm_test_func(void){} 6264#ifdef __cplusplus 6265} 6266#endif 6267int main(){nm_test_var='a';nm_test_func();return(0);} 6268_LT_EOF 6269 6270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6271 (eval $ac_compile) 2>&5 6272 ac_status=$? 6273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6274 test $ac_status = 0; }; then 6275 # Now try to grab the symbols. 6276 nlist=conftest.nm 6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6278 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6279 ac_status=$? 6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6281 test $ac_status = 0; } && test -s "$nlist"; then 6282 # Try sorting and uniquifying the output. 6283 if sort "$nlist" | uniq > "$nlist"T; then 6284 mv -f "$nlist"T "$nlist" 6285 else 6286 rm -f "$nlist"T 6287 fi 6288 6289 # Make sure that we snagged all the symbols we need. 6290 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6291 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6292 cat <<_LT_EOF > conftest.$ac_ext 6293/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6294#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6295/* DATA imports from DLLs on WIN32 can't be const, because runtime 6296 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6297# define LT_DLSYM_CONST 6298#elif defined __osf__ 6299/* This system does not cope well with relocations in const data. */ 6300# define LT_DLSYM_CONST 6301#else 6302# define LT_DLSYM_CONST const 6303#endif 6304 6305#ifdef __cplusplus 6306extern "C" { 6307#endif 6308 6309_LT_EOF 6310 # Now generate the symbol file. 6311 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6312 6313 cat <<_LT_EOF >> conftest.$ac_ext 6314 6315/* The mapping between symbol names and symbols. */ 6316LT_DLSYM_CONST struct { 6317 const char *name; 6318 void *address; 6319} 6320lt__PROGRAM__LTX_preloaded_symbols[] = 6321{ 6322 { "@PROGRAM@", (void *) 0 }, 6323_LT_EOF 6324 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6325 cat <<\_LT_EOF >> conftest.$ac_ext 6326 {0, (void *) 0} 6327}; 6328 6329/* This works around a problem in FreeBSD linker */ 6330#ifdef FREEBSD_WORKAROUND 6331static const void *lt_preloaded_setup() { 6332 return lt__PROGRAM__LTX_preloaded_symbols; 6333} 6334#endif 6335 6336#ifdef __cplusplus 6337} 6338#endif 6339_LT_EOF 6340 # Now try linking the two files. 6341 mv conftest.$ac_objext conftstm.$ac_objext 6342 lt_globsym_save_LIBS=$LIBS 6343 lt_globsym_save_CFLAGS=$CFLAGS 6344 LIBS=conftstm.$ac_objext 6345 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6347 (eval $ac_link) 2>&5 6348 ac_status=$? 6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6350 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6351 pipe_works=yes 6352 fi 6353 LIBS=$lt_globsym_save_LIBS 6354 CFLAGS=$lt_globsym_save_CFLAGS 6355 else 6356 echo "cannot find nm_test_func in $nlist" >&5 6357 fi 6358 else 6359 echo "cannot find nm_test_var in $nlist" >&5 6360 fi 6361 else 6362 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6363 fi 6364 else 6365 echo "$progname: failed program was:" >&5 6366 cat conftest.$ac_ext >&5 6367 fi 6368 rm -rf conftest* conftst* 6369 6370 # Do not use the global_symbol_pipe unless it works. 6371 if test yes = "$pipe_works"; then 6372 break 6373 else 6374 lt_cv_sys_global_symbol_pipe= 6375 fi 6376done 6377 6378fi 6379 6380if test -z "$lt_cv_sys_global_symbol_pipe"; then 6381 lt_cv_sys_global_symbol_to_cdecl= 6382fi 6383if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6385$as_echo "failed" >&6; } 6386else 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6388$as_echo "ok" >&6; } 6389fi 6390 6391# Response file support. 6392if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6393 nm_file_list_spec='@' 6394elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6395 nm_file_list_spec='@' 6396fi 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6435$as_echo_n "checking for sysroot... " >&6; } 6436 6437# Check whether --with-sysroot was given. 6438if test "${with_sysroot+set}" = set; then : 6439 withval=$with_sysroot; 6440else 6441 with_sysroot=no 6442fi 6443 6444 6445lt_sysroot= 6446case $with_sysroot in #( 6447 yes) 6448 if test yes = "$GCC"; then 6449 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6450 fi 6451 ;; #( 6452 /*) 6453 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6454 ;; #( 6455 no|'') 6456 ;; #( 6457 *) 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6459$as_echo "$with_sysroot" >&6; } 6460 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6461 ;; 6462esac 6463 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6465$as_echo "${lt_sysroot:-no}" >&6; } 6466 6467 6468 6469 6470 6471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6472$as_echo_n "checking for a working dd... " >&6; } 6473if ${ac_cv_path_lt_DD+:} false; then : 6474 $as_echo_n "(cached) " >&6 6475else 6476 printf 0123456789abcdef0123456789abcdef >conftest.i 6477cat conftest.i conftest.i >conftest2.i 6478: ${lt_DD:=$DD} 6479if test -z "$lt_DD"; then 6480 ac_path_lt_DD_found=false 6481 # Loop through the user's path and test for each of PROGNAME-LIST 6482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483for as_dir in $PATH 6484do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_prog in dd; do 6488 for ac_exec_ext in '' $ac_executable_extensions; do 6489 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6490 as_fn_executable_p "$ac_path_lt_DD" || continue 6491if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6492 cmp -s conftest.i conftest.out \ 6493 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6494fi 6495 $ac_path_lt_DD_found && break 3 6496 done 6497 done 6498 done 6499IFS=$as_save_IFS 6500 if test -z "$ac_cv_path_lt_DD"; then 6501 : 6502 fi 6503else 6504 ac_cv_path_lt_DD=$lt_DD 6505fi 6506 6507rm -f conftest.i conftest2.i conftest.out 6508fi 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6510$as_echo "$ac_cv_path_lt_DD" >&6; } 6511 6512 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6514$as_echo_n "checking how to truncate binary pipes... " >&6; } 6515if ${lt_cv_truncate_bin+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 printf 0123456789abcdef0123456789abcdef >conftest.i 6519cat conftest.i conftest.i >conftest2.i 6520lt_cv_truncate_bin= 6521if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6522 cmp -s conftest.i conftest.out \ 6523 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6524fi 6525rm -f conftest.i conftest2.i conftest.out 6526test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6527fi 6528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6529$as_echo "$lt_cv_truncate_bin" >&6; } 6530 6531 6532 6533 6534 6535 6536 6537# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6538func_cc_basename () 6539{ 6540 for cc_temp in $*""; do 6541 case $cc_temp in 6542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6544 \-*) ;; 6545 *) break;; 6546 esac 6547 done 6548 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6549} 6550 6551# Check whether --enable-libtool-lock was given. 6552if test "${enable_libtool_lock+set}" = set; then : 6553 enableval=$enable_libtool_lock; 6554fi 6555 6556test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6557 6558# Some flags need to be propagated to the compiler or linker for good 6559# libtool support. 6560case $host in 6561ia64-*-hpux*) 6562 # Find out what ABI is being produced by ac_compile, and set mode 6563 # options accordingly. 6564 echo 'int i;' > conftest.$ac_ext 6565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6566 (eval $ac_compile) 2>&5 6567 ac_status=$? 6568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6569 test $ac_status = 0; }; then 6570 case `/usr/bin/file conftest.$ac_objext` in 6571 *ELF-32*) 6572 HPUX_IA64_MODE=32 6573 ;; 6574 *ELF-64*) 6575 HPUX_IA64_MODE=64 6576 ;; 6577 esac 6578 fi 6579 rm -rf conftest* 6580 ;; 6581*-*-irix6*) 6582 # Find out what ABI is being produced by ac_compile, and set linker 6583 # options accordingly. 6584 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6586 (eval $ac_compile) 2>&5 6587 ac_status=$? 6588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6589 test $ac_status = 0; }; then 6590 if test yes = "$lt_cv_prog_gnu_ld"; then 6591 case `/usr/bin/file conftest.$ac_objext` in 6592 *32-bit*) 6593 LD="${LD-ld} -melf32bsmip" 6594 ;; 6595 *N32*) 6596 LD="${LD-ld} -melf32bmipn32" 6597 ;; 6598 *64-bit*) 6599 LD="${LD-ld} -melf64bmip" 6600 ;; 6601 esac 6602 else 6603 case `/usr/bin/file conftest.$ac_objext` in 6604 *32-bit*) 6605 LD="${LD-ld} -32" 6606 ;; 6607 *N32*) 6608 LD="${LD-ld} -n32" 6609 ;; 6610 *64-bit*) 6611 LD="${LD-ld} -64" 6612 ;; 6613 esac 6614 fi 6615 fi 6616 rm -rf conftest* 6617 ;; 6618 6619mips64*-*linux*) 6620 # Find out what ABI is being produced by ac_compile, and set linker 6621 # options accordingly. 6622 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6624 (eval $ac_compile) 2>&5 6625 ac_status=$? 6626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6627 test $ac_status = 0; }; then 6628 emul=elf 6629 case `/usr/bin/file conftest.$ac_objext` in 6630 *32-bit*) 6631 emul="${emul}32" 6632 ;; 6633 *64-bit*) 6634 emul="${emul}64" 6635 ;; 6636 esac 6637 case `/usr/bin/file conftest.$ac_objext` in 6638 *MSB*) 6639 emul="${emul}btsmip" 6640 ;; 6641 *LSB*) 6642 emul="${emul}ltsmip" 6643 ;; 6644 esac 6645 case `/usr/bin/file conftest.$ac_objext` in 6646 *N32*) 6647 emul="${emul}n32" 6648 ;; 6649 esac 6650 LD="${LD-ld} -m $emul" 6651 fi 6652 rm -rf conftest* 6653 ;; 6654 6655x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6656s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6657 # Find out what ABI is being produced by ac_compile, and set linker 6658 # options accordingly. Note that the listed cases only cover the 6659 # situations where additional linker options are needed (such as when 6660 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6661 # vice versa); the common cases where no linker options are needed do 6662 # not appear in the list. 6663 echo 'int i;' > conftest.$ac_ext 6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6665 (eval $ac_compile) 2>&5 6666 ac_status=$? 6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6668 test $ac_status = 0; }; then 6669 case `/usr/bin/file conftest.o` in 6670 *32-bit*) 6671 case $host in 6672 x86_64-*kfreebsd*-gnu) 6673 LD="${LD-ld} -m elf_i386_fbsd" 6674 ;; 6675 x86_64-*linux*) 6676 case `/usr/bin/file conftest.o` in 6677 *x86-64*) 6678 LD="${LD-ld} -m elf32_x86_64" 6679 ;; 6680 *) 6681 LD="${LD-ld} -m elf_i386" 6682 ;; 6683 esac 6684 ;; 6685 powerpc64le-*linux*) 6686 LD="${LD-ld} -m elf32lppclinux" 6687 ;; 6688 powerpc64-*linux*) 6689 LD="${LD-ld} -m elf32ppclinux" 6690 ;; 6691 s390x-*linux*) 6692 LD="${LD-ld} -m elf_s390" 6693 ;; 6694 sparc64-*linux*) 6695 LD="${LD-ld} -m elf32_sparc" 6696 ;; 6697 esac 6698 ;; 6699 *64-bit*) 6700 case $host in 6701 x86_64-*kfreebsd*-gnu) 6702 LD="${LD-ld} -m elf_x86_64_fbsd" 6703 ;; 6704 x86_64-*linux*) 6705 LD="${LD-ld} -m elf_x86_64" 6706 ;; 6707 powerpcle-*linux*) 6708 LD="${LD-ld} -m elf64lppc" 6709 ;; 6710 powerpc-*linux*) 6711 LD="${LD-ld} -m elf64ppc" 6712 ;; 6713 s390*-*linux*|s390*-*tpf*) 6714 LD="${LD-ld} -m elf64_s390" 6715 ;; 6716 sparc*-*linux*) 6717 LD="${LD-ld} -m elf64_sparc" 6718 ;; 6719 esac 6720 ;; 6721 esac 6722 fi 6723 rm -rf conftest* 6724 ;; 6725 6726*-*-sco3.2v5*) 6727 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6728 SAVE_CFLAGS=$CFLAGS 6729 CFLAGS="$CFLAGS -belf" 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6731$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6732if ${lt_cv_cc_needs_belf+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734else 6735 ac_ext=c 6736ac_cpp='$CPP $CPPFLAGS' 6737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6739ac_compiler_gnu=$ac_cv_c_compiler_gnu 6740 6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742/* end confdefs.h. */ 6743 6744int 6745main () 6746{ 6747 6748 ; 6749 return 0; 6750} 6751_ACEOF 6752if ac_fn_c_try_link "$LINENO"; then : 6753 lt_cv_cc_needs_belf=yes 6754else 6755 lt_cv_cc_needs_belf=no 6756fi 6757rm -f core conftest.err conftest.$ac_objext \ 6758 conftest$ac_exeext conftest.$ac_ext 6759 ac_ext=c 6760ac_cpp='$CPP $CPPFLAGS' 6761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6763ac_compiler_gnu=$ac_cv_c_compiler_gnu 6764 6765fi 6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6767$as_echo "$lt_cv_cc_needs_belf" >&6; } 6768 if test yes != "$lt_cv_cc_needs_belf"; then 6769 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6770 CFLAGS=$SAVE_CFLAGS 6771 fi 6772 ;; 6773*-*solaris*) 6774 # Find out what ABI is being produced by ac_compile, and set linker 6775 # options accordingly. 6776 echo 'int i;' > conftest.$ac_ext 6777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6778 (eval $ac_compile) 2>&5 6779 ac_status=$? 6780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6781 test $ac_status = 0; }; then 6782 case `/usr/bin/file conftest.o` in 6783 *64-bit*) 6784 case $lt_cv_prog_gnu_ld in 6785 yes*) 6786 case $host in 6787 i?86-*-solaris*|x86_64-*-solaris*) 6788 LD="${LD-ld} -m elf_x86_64" 6789 ;; 6790 sparc*-*-solaris*) 6791 LD="${LD-ld} -m elf64_sparc" 6792 ;; 6793 esac 6794 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6795 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6796 LD=${LD-ld}_sol2 6797 fi 6798 ;; 6799 *) 6800 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6801 LD="${LD-ld} -64" 6802 fi 6803 ;; 6804 esac 6805 ;; 6806 esac 6807 fi 6808 rm -rf conftest* 6809 ;; 6810esac 6811 6812need_locks=$enable_libtool_lock 6813 6814if test -n "$ac_tool_prefix"; then 6815 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6816set dummy ${ac_tool_prefix}mt; ac_word=$2 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 if test -n "$MANIFEST_TOOL"; then 6823 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6832 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837 done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6843if test -n "$MANIFEST_TOOL"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6845$as_echo "$MANIFEST_TOOL" >&6; } 6846else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848$as_echo "no" >&6; } 6849fi 6850 6851 6852fi 6853if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6854 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6855 # Extract the first word of "mt", so it can be a program name with args. 6856set dummy mt; ac_word=$2 6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6858$as_echo_n "checking for $ac_word... " >&6; } 6859if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6860 $as_echo_n "(cached) " >&6 6861else 6862 if test -n "$ac_ct_MANIFEST_TOOL"; then 6863 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6864else 6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6866for as_dir in $PATH 6867do 6868 IFS=$as_save_IFS 6869 test -z "$as_dir" && as_dir=. 6870 for ac_exec_ext in '' $ac_executable_extensions; do 6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6872 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6874 break 2 6875 fi 6876done 6877 done 6878IFS=$as_save_IFS 6879 6880fi 6881fi 6882ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6883if test -n "$ac_ct_MANIFEST_TOOL"; then 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6885$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6886else 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6888$as_echo "no" >&6; } 6889fi 6890 6891 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6892 MANIFEST_TOOL=":" 6893 else 6894 case $cross_compiling:$ac_tool_warned in 6895yes:) 6896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6898ac_tool_warned=yes ;; 6899esac 6900 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6901 fi 6902else 6903 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6904fi 6905 6906test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6908$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6909if ${lt_cv_path_mainfest_tool+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 lt_cv_path_mainfest_tool=no 6913 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6914 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6915 cat conftest.err >&5 6916 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6917 lt_cv_path_mainfest_tool=yes 6918 fi 6919 rm -f conftest* 6920fi 6921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6922$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6923if test yes != "$lt_cv_path_mainfest_tool"; then 6924 MANIFEST_TOOL=: 6925fi 6926 6927 6928 6929 6930 6931 6932 case $host_os in 6933 rhapsody* | darwin*) 6934 if test -n "$ac_tool_prefix"; then 6935 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6936set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6938$as_echo_n "checking for $ac_word... " >&6; } 6939if ${ac_cv_prog_DSYMUTIL+:} false; then : 6940 $as_echo_n "(cached) " >&6 6941else 6942 if test -n "$DSYMUTIL"; then 6943 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6944else 6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946for as_dir in $PATH 6947do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6952 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956done 6957 done 6958IFS=$as_save_IFS 6959 6960fi 6961fi 6962DSYMUTIL=$ac_cv_prog_DSYMUTIL 6963if test -n "$DSYMUTIL"; then 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6965$as_echo "$DSYMUTIL" >&6; } 6966else 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6968$as_echo "no" >&6; } 6969fi 6970 6971 6972fi 6973if test -z "$ac_cv_prog_DSYMUTIL"; then 6974 ac_ct_DSYMUTIL=$DSYMUTIL 6975 # Extract the first word of "dsymutil", so it can be a program name with args. 6976set dummy dsymutil; ac_word=$2 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6978$as_echo_n "checking for $ac_word... " >&6; } 6979if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6980 $as_echo_n "(cached) " >&6 6981else 6982 if test -n "$ac_ct_DSYMUTIL"; then 6983 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6984else 6985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6986for as_dir in $PATH 6987do 6988 IFS=$as_save_IFS 6989 test -z "$as_dir" && as_dir=. 6990 for ac_exec_ext in '' $ac_executable_extensions; do 6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6992 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6994 break 2 6995 fi 6996done 6997 done 6998IFS=$as_save_IFS 6999 7000fi 7001fi 7002ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7003if test -n "$ac_ct_DSYMUTIL"; then 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7005$as_echo "$ac_ct_DSYMUTIL" >&6; } 7006else 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7008$as_echo "no" >&6; } 7009fi 7010 7011 if test "x$ac_ct_DSYMUTIL" = x; then 7012 DSYMUTIL=":" 7013 else 7014 case $cross_compiling:$ac_tool_warned in 7015yes:) 7016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7018ac_tool_warned=yes ;; 7019esac 7020 DSYMUTIL=$ac_ct_DSYMUTIL 7021 fi 7022else 7023 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7024fi 7025 7026 if test -n "$ac_tool_prefix"; then 7027 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7028set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7030$as_echo_n "checking for $ac_word... " >&6; } 7031if ${ac_cv_prog_NMEDIT+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 if test -n "$NMEDIT"; then 7035 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7036else 7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7038for as_dir in $PATH 7039do 7040 IFS=$as_save_IFS 7041 test -z "$as_dir" && as_dir=. 7042 for ac_exec_ext in '' $ac_executable_extensions; do 7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7044 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7046 break 2 7047 fi 7048done 7049 done 7050IFS=$as_save_IFS 7051 7052fi 7053fi 7054NMEDIT=$ac_cv_prog_NMEDIT 7055if test -n "$NMEDIT"; then 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7057$as_echo "$NMEDIT" >&6; } 7058else 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7060$as_echo "no" >&6; } 7061fi 7062 7063 7064fi 7065if test -z "$ac_cv_prog_NMEDIT"; then 7066 ac_ct_NMEDIT=$NMEDIT 7067 # Extract the first word of "nmedit", so it can be a program name with args. 7068set dummy nmedit; ac_word=$2 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7070$as_echo_n "checking for $ac_word... " >&6; } 7071if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7072 $as_echo_n "(cached) " >&6 7073else 7074 if test -n "$ac_ct_NMEDIT"; then 7075 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7076else 7077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7078for as_dir in $PATH 7079do 7080 IFS=$as_save_IFS 7081 test -z "$as_dir" && as_dir=. 7082 for ac_exec_ext in '' $ac_executable_extensions; do 7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7084 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7086 break 2 7087 fi 7088done 7089 done 7090IFS=$as_save_IFS 7091 7092fi 7093fi 7094ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7095if test -n "$ac_ct_NMEDIT"; then 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7097$as_echo "$ac_ct_NMEDIT" >&6; } 7098else 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7100$as_echo "no" >&6; } 7101fi 7102 7103 if test "x$ac_ct_NMEDIT" = x; then 7104 NMEDIT=":" 7105 else 7106 case $cross_compiling:$ac_tool_warned in 7107yes:) 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7110ac_tool_warned=yes ;; 7111esac 7112 NMEDIT=$ac_ct_NMEDIT 7113 fi 7114else 7115 NMEDIT="$ac_cv_prog_NMEDIT" 7116fi 7117 7118 if test -n "$ac_tool_prefix"; then 7119 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7120set dummy ${ac_tool_prefix}lipo; ac_word=$2 7121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7122$as_echo_n "checking for $ac_word... " >&6; } 7123if ${ac_cv_prog_LIPO+:} false; then : 7124 $as_echo_n "(cached) " >&6 7125else 7126 if test -n "$LIPO"; then 7127 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7128else 7129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7130for as_dir in $PATH 7131do 7132 IFS=$as_save_IFS 7133 test -z "$as_dir" && as_dir=. 7134 for ac_exec_ext in '' $ac_executable_extensions; do 7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7136 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7138 break 2 7139 fi 7140done 7141 done 7142IFS=$as_save_IFS 7143 7144fi 7145fi 7146LIPO=$ac_cv_prog_LIPO 7147if test -n "$LIPO"; then 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7149$as_echo "$LIPO" >&6; } 7150else 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7152$as_echo "no" >&6; } 7153fi 7154 7155 7156fi 7157if test -z "$ac_cv_prog_LIPO"; then 7158 ac_ct_LIPO=$LIPO 7159 # Extract the first word of "lipo", so it can be a program name with args. 7160set dummy lipo; ac_word=$2 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7162$as_echo_n "checking for $ac_word... " >&6; } 7163if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7164 $as_echo_n "(cached) " >&6 7165else 7166 if test -n "$ac_ct_LIPO"; then 7167 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7168else 7169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7170for as_dir in $PATH 7171do 7172 IFS=$as_save_IFS 7173 test -z "$as_dir" && as_dir=. 7174 for ac_exec_ext in '' $ac_executable_extensions; do 7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7176 ac_cv_prog_ac_ct_LIPO="lipo" 7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7178 break 2 7179 fi 7180done 7181 done 7182IFS=$as_save_IFS 7183 7184fi 7185fi 7186ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7187if test -n "$ac_ct_LIPO"; then 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7189$as_echo "$ac_ct_LIPO" >&6; } 7190else 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7192$as_echo "no" >&6; } 7193fi 7194 7195 if test "x$ac_ct_LIPO" = x; then 7196 LIPO=":" 7197 else 7198 case $cross_compiling:$ac_tool_warned in 7199yes:) 7200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7202ac_tool_warned=yes ;; 7203esac 7204 LIPO=$ac_ct_LIPO 7205 fi 7206else 7207 LIPO="$ac_cv_prog_LIPO" 7208fi 7209 7210 if test -n "$ac_tool_prefix"; then 7211 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7212set dummy ${ac_tool_prefix}otool; ac_word=$2 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7214$as_echo_n "checking for $ac_word... " >&6; } 7215if ${ac_cv_prog_OTOOL+:} false; then : 7216 $as_echo_n "(cached) " >&6 7217else 7218 if test -n "$OTOOL"; then 7219 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7220else 7221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7222for as_dir in $PATH 7223do 7224 IFS=$as_save_IFS 7225 test -z "$as_dir" && as_dir=. 7226 for ac_exec_ext in '' $ac_executable_extensions; do 7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7228 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7230 break 2 7231 fi 7232done 7233 done 7234IFS=$as_save_IFS 7235 7236fi 7237fi 7238OTOOL=$ac_cv_prog_OTOOL 7239if test -n "$OTOOL"; then 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7241$as_echo "$OTOOL" >&6; } 7242else 7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7244$as_echo "no" >&6; } 7245fi 7246 7247 7248fi 7249if test -z "$ac_cv_prog_OTOOL"; then 7250 ac_ct_OTOOL=$OTOOL 7251 # Extract the first word of "otool", so it can be a program name with args. 7252set dummy otool; ac_word=$2 7253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7254$as_echo_n "checking for $ac_word... " >&6; } 7255if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7256 $as_echo_n "(cached) " >&6 7257else 7258 if test -n "$ac_ct_OTOOL"; then 7259 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7260else 7261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7262for as_dir in $PATH 7263do 7264 IFS=$as_save_IFS 7265 test -z "$as_dir" && as_dir=. 7266 for ac_exec_ext in '' $ac_executable_extensions; do 7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7268 ac_cv_prog_ac_ct_OTOOL="otool" 7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7270 break 2 7271 fi 7272done 7273 done 7274IFS=$as_save_IFS 7275 7276fi 7277fi 7278ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7279if test -n "$ac_ct_OTOOL"; then 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7281$as_echo "$ac_ct_OTOOL" >&6; } 7282else 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7284$as_echo "no" >&6; } 7285fi 7286 7287 if test "x$ac_ct_OTOOL" = x; then 7288 OTOOL=":" 7289 else 7290 case $cross_compiling:$ac_tool_warned in 7291yes:) 7292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7294ac_tool_warned=yes ;; 7295esac 7296 OTOOL=$ac_ct_OTOOL 7297 fi 7298else 7299 OTOOL="$ac_cv_prog_OTOOL" 7300fi 7301 7302 if test -n "$ac_tool_prefix"; then 7303 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7304set dummy ${ac_tool_prefix}otool64; ac_word=$2 7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7306$as_echo_n "checking for $ac_word... " >&6; } 7307if ${ac_cv_prog_OTOOL64+:} false; then : 7308 $as_echo_n "(cached) " >&6 7309else 7310 if test -n "$OTOOL64"; then 7311 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7312else 7313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7314for as_dir in $PATH 7315do 7316 IFS=$as_save_IFS 7317 test -z "$as_dir" && as_dir=. 7318 for ac_exec_ext in '' $ac_executable_extensions; do 7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7320 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7322 break 2 7323 fi 7324done 7325 done 7326IFS=$as_save_IFS 7327 7328fi 7329fi 7330OTOOL64=$ac_cv_prog_OTOOL64 7331if test -n "$OTOOL64"; then 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7333$as_echo "$OTOOL64" >&6; } 7334else 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7336$as_echo "no" >&6; } 7337fi 7338 7339 7340fi 7341if test -z "$ac_cv_prog_OTOOL64"; then 7342 ac_ct_OTOOL64=$OTOOL64 7343 # Extract the first word of "otool64", so it can be a program name with args. 7344set dummy otool64; ac_word=$2 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7346$as_echo_n "checking for $ac_word... " >&6; } 7347if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7348 $as_echo_n "(cached) " >&6 7349else 7350 if test -n "$ac_ct_OTOOL64"; then 7351 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7352else 7353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7354for as_dir in $PATH 7355do 7356 IFS=$as_save_IFS 7357 test -z "$as_dir" && as_dir=. 7358 for ac_exec_ext in '' $ac_executable_extensions; do 7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7360 ac_cv_prog_ac_ct_OTOOL64="otool64" 7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7362 break 2 7363 fi 7364done 7365 done 7366IFS=$as_save_IFS 7367 7368fi 7369fi 7370ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7371if test -n "$ac_ct_OTOOL64"; then 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7373$as_echo "$ac_ct_OTOOL64" >&6; } 7374else 7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7376$as_echo "no" >&6; } 7377fi 7378 7379 if test "x$ac_ct_OTOOL64" = x; then 7380 OTOOL64=":" 7381 else 7382 case $cross_compiling:$ac_tool_warned in 7383yes:) 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7386ac_tool_warned=yes ;; 7387esac 7388 OTOOL64=$ac_ct_OTOOL64 7389 fi 7390else 7391 OTOOL64="$ac_cv_prog_OTOOL64" 7392fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7421$as_echo_n "checking for -single_module linker flag... " >&6; } 7422if ${lt_cv_apple_cc_single_mod+:} false; then : 7423 $as_echo_n "(cached) " >&6 7424else 7425 lt_cv_apple_cc_single_mod=no 7426 if test -z "$LT_MULTI_MODULE"; then 7427 # By default we will add the -single_module flag. You can override 7428 # by either setting the environment variable LT_MULTI_MODULE 7429 # non-empty at configure time, or by adding -multi_module to the 7430 # link flags. 7431 rm -rf libconftest.dylib* 7432 echo "int foo(void){return 1;}" > conftest.c 7433 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7434-dynamiclib -Wl,-single_module conftest.c" >&5 7435 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7436 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7437 _lt_result=$? 7438 # If there is a non-empty error log, and "single_module" 7439 # appears in it, assume the flag caused a linker warning 7440 if test -s conftest.err && $GREP single_module conftest.err; then 7441 cat conftest.err >&5 7442 # Otherwise, if the output was created with a 0 exit code from 7443 # the compiler, it worked. 7444 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7445 lt_cv_apple_cc_single_mod=yes 7446 else 7447 cat conftest.err >&5 7448 fi 7449 rm -rf libconftest.dylib* 7450 rm -f conftest.* 7451 fi 7452fi 7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7454$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7455 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7457$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7458if ${lt_cv_ld_exported_symbols_list+:} false; then : 7459 $as_echo_n "(cached) " >&6 7460else 7461 lt_cv_ld_exported_symbols_list=no 7462 save_LDFLAGS=$LDFLAGS 7463 echo "_main" > conftest.sym 7464 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7466/* end confdefs.h. */ 7467 7468int 7469main () 7470{ 7471 7472 ; 7473 return 0; 7474} 7475_ACEOF 7476if ac_fn_c_try_link "$LINENO"; then : 7477 lt_cv_ld_exported_symbols_list=yes 7478else 7479 lt_cv_ld_exported_symbols_list=no 7480fi 7481rm -f core conftest.err conftest.$ac_objext \ 7482 conftest$ac_exeext conftest.$ac_ext 7483 LDFLAGS=$save_LDFLAGS 7484 7485fi 7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7487$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7488 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7490$as_echo_n "checking for -force_load linker flag... " >&6; } 7491if ${lt_cv_ld_force_load+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493else 7494 lt_cv_ld_force_load=no 7495 cat > conftest.c << _LT_EOF 7496int forced_loaded() { return 2;} 7497_LT_EOF 7498 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7499 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7500 echo "$AR cru libconftest.a conftest.o" >&5 7501 $AR cru libconftest.a conftest.o 2>&5 7502 echo "$RANLIB libconftest.a" >&5 7503 $RANLIB libconftest.a 2>&5 7504 cat > conftest.c << _LT_EOF 7505int main() { return 0;} 7506_LT_EOF 7507 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7508 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7509 _lt_result=$? 7510 if test -s conftest.err && $GREP force_load conftest.err; then 7511 cat conftest.err >&5 7512 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7513 lt_cv_ld_force_load=yes 7514 else 7515 cat conftest.err >&5 7516 fi 7517 rm -f conftest.err libconftest.a conftest conftest.c 7518 rm -rf conftest.dSYM 7519 7520fi 7521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7522$as_echo "$lt_cv_ld_force_load" >&6; } 7523 case $host_os in 7524 rhapsody* | darwin1.[012]) 7525 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7526 darwin1.*) 7527 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7528 darwin*) # darwin 5.x on 7529 # if running on 10.5 or later, the deployment target defaults 7530 # to the OS version, if on x86, and 10.4, the deployment 7531 # target defaults to 10.4. Don't you love it? 7532 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7533 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7534 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7535 10.[012][,.]*) 7536 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7537 10.*) 7538 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7539 esac 7540 ;; 7541 esac 7542 if test yes = "$lt_cv_apple_cc_single_mod"; then 7543 _lt_dar_single_mod='$single_module' 7544 fi 7545 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7546 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7547 else 7548 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7549 fi 7550 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7551 _lt_dsymutil='~$DSYMUTIL $lib || :' 7552 else 7553 _lt_dsymutil= 7554 fi 7555 ;; 7556 esac 7557 7558# func_munge_path_list VARIABLE PATH 7559# ----------------------------------- 7560# VARIABLE is name of variable containing _space_ separated list of 7561# directories to be munged by the contents of PATH, which is string 7562# having a format: 7563# "DIR[:DIR]:" 7564# string "DIR[ DIR]" will be prepended to VARIABLE 7565# ":DIR[:DIR]" 7566# string "DIR[ DIR]" will be appended to VARIABLE 7567# "DIRP[:DIRP]::[DIRA:]DIRA" 7568# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7569# "DIRA[ DIRA]" will be appended to VARIABLE 7570# "DIR[:DIR]" 7571# VARIABLE will be replaced by "DIR[ DIR]" 7572func_munge_path_list () 7573{ 7574 case x$2 in 7575 x) 7576 ;; 7577 *:) 7578 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7579 ;; 7580 x:*) 7581 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7582 ;; 7583 *::*) 7584 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7585 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7586 ;; 7587 *) 7588 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7589 ;; 7590 esac 7591} 7592 7593ac_ext=c 7594ac_cpp='$CPP $CPPFLAGS' 7595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7597ac_compiler_gnu=$ac_cv_c_compiler_gnu 7598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7599$as_echo_n "checking how to run the C preprocessor... " >&6; } 7600# On Suns, sometimes $CPP names a directory. 7601if test -n "$CPP" && test -d "$CPP"; then 7602 CPP= 7603fi 7604if test -z "$CPP"; then 7605 if ${ac_cv_prog_CPP+:} false; then : 7606 $as_echo_n "(cached) " >&6 7607else 7608 # Double quotes because CPP needs to be expanded 7609 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7610 do 7611 ac_preproc_ok=false 7612for ac_c_preproc_warn_flag in '' yes 7613do 7614 # Use a header file that comes with gcc, so configuring glibc 7615 # with a fresh cross-compiler works. 7616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7617 # <limits.h> exists even on freestanding compilers. 7618 # On the NeXT, cc -E runs the code through the compiler's parser, 7619 # not just through cpp. "Syntax error" is here to catch this case. 7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7621/* end confdefs.h. */ 7622#ifdef __STDC__ 7623# include <limits.h> 7624#else 7625# include <assert.h> 7626#endif 7627 Syntax error 7628_ACEOF 7629if ac_fn_c_try_cpp "$LINENO"; then : 7630 7631else 7632 # Broken: fails on valid input. 7633continue 7634fi 7635rm -f conftest.err conftest.i conftest.$ac_ext 7636 7637 # OK, works on sane cases. Now check whether nonexistent headers 7638 # can be detected and how. 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641#include <ac_nonexistent.h> 7642_ACEOF 7643if ac_fn_c_try_cpp "$LINENO"; then : 7644 # Broken: success on invalid input. 7645continue 7646else 7647 # Passes both tests. 7648ac_preproc_ok=: 7649break 7650fi 7651rm -f conftest.err conftest.i conftest.$ac_ext 7652 7653done 7654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7655rm -f conftest.i conftest.err conftest.$ac_ext 7656if $ac_preproc_ok; then : 7657 break 7658fi 7659 7660 done 7661 ac_cv_prog_CPP=$CPP 7662 7663fi 7664 CPP=$ac_cv_prog_CPP 7665else 7666 ac_cv_prog_CPP=$CPP 7667fi 7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7669$as_echo "$CPP" >&6; } 7670ac_preproc_ok=false 7671for ac_c_preproc_warn_flag in '' yes 7672do 7673 # Use a header file that comes with gcc, so configuring glibc 7674 # with a fresh cross-compiler works. 7675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7676 # <limits.h> exists even on freestanding compilers. 7677 # On the NeXT, cc -E runs the code through the compiler's parser, 7678 # not just through cpp. "Syntax error" is here to catch this case. 7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7680/* end confdefs.h. */ 7681#ifdef __STDC__ 7682# include <limits.h> 7683#else 7684# include <assert.h> 7685#endif 7686 Syntax error 7687_ACEOF 7688if ac_fn_c_try_cpp "$LINENO"; then : 7689 7690else 7691 # Broken: fails on valid input. 7692continue 7693fi 7694rm -f conftest.err conftest.i conftest.$ac_ext 7695 7696 # OK, works on sane cases. Now check whether nonexistent headers 7697 # can be detected and how. 7698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7699/* end confdefs.h. */ 7700#include <ac_nonexistent.h> 7701_ACEOF 7702if ac_fn_c_try_cpp "$LINENO"; then : 7703 # Broken: success on invalid input. 7704continue 7705else 7706 # Passes both tests. 7707ac_preproc_ok=: 7708break 7709fi 7710rm -f conftest.err conftest.i conftest.$ac_ext 7711 7712done 7713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7714rm -f conftest.i conftest.err conftest.$ac_ext 7715if $ac_preproc_ok; then : 7716 7717else 7718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7720as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7721See \`config.log' for more details" "$LINENO" 5; } 7722fi 7723 7724ac_ext=c 7725ac_cpp='$CPP $CPPFLAGS' 7726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7728ac_compiler_gnu=$ac_cv_c_compiler_gnu 7729 7730 7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7732$as_echo_n "checking for ANSI C header files... " >&6; } 7733if ${ac_cv_header_stdc+:} false; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738#include <stdlib.h> 7739#include <stdarg.h> 7740#include <string.h> 7741#include <float.h> 7742 7743int 7744main () 7745{ 7746 7747 ; 7748 return 0; 7749} 7750_ACEOF 7751if ac_fn_c_try_compile "$LINENO"; then : 7752 ac_cv_header_stdc=yes 7753else 7754 ac_cv_header_stdc=no 7755fi 7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7757 7758if test $ac_cv_header_stdc = yes; then 7759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7761/* end confdefs.h. */ 7762#include <string.h> 7763 7764_ACEOF 7765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7766 $EGREP "memchr" >/dev/null 2>&1; then : 7767 7768else 7769 ac_cv_header_stdc=no 7770fi 7771rm -f conftest* 7772 7773fi 7774 7775if test $ac_cv_header_stdc = yes; then 7776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779#include <stdlib.h> 7780 7781_ACEOF 7782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7783 $EGREP "free" >/dev/null 2>&1; then : 7784 7785else 7786 ac_cv_header_stdc=no 7787fi 7788rm -f conftest* 7789 7790fi 7791 7792if test $ac_cv_header_stdc = yes; then 7793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7794 if test "$cross_compiling" = yes; then : 7795 : 7796else 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798/* end confdefs.h. */ 7799#include <ctype.h> 7800#include <stdlib.h> 7801#if ((' ' & 0x0FF) == 0x020) 7802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7804#else 7805# define ISLOWER(c) \ 7806 (('a' <= (c) && (c) <= 'i') \ 7807 || ('j' <= (c) && (c) <= 'r') \ 7808 || ('s' <= (c) && (c) <= 'z')) 7809# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7810#endif 7811 7812#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7813int 7814main () 7815{ 7816 int i; 7817 for (i = 0; i < 256; i++) 7818 if (XOR (islower (i), ISLOWER (i)) 7819 || toupper (i) != TOUPPER (i)) 7820 return 2; 7821 return 0; 7822} 7823_ACEOF 7824if ac_fn_c_try_run "$LINENO"; then : 7825 7826else 7827 ac_cv_header_stdc=no 7828fi 7829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7830 conftest.$ac_objext conftest.beam conftest.$ac_ext 7831fi 7832 7833fi 7834fi 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7836$as_echo "$ac_cv_header_stdc" >&6; } 7837if test $ac_cv_header_stdc = yes; then 7838 7839$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7840 7841fi 7842 7843# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7844for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7845 inttypes.h stdint.h unistd.h 7846do : 7847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7848ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7849" 7850if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7851 cat >>confdefs.h <<_ACEOF 7852#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7853_ACEOF 7854 7855fi 7856 7857done 7858 7859 7860for ac_header in dlfcn.h 7861do : 7862 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7863" 7864if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7865 cat >>confdefs.h <<_ACEOF 7866#define HAVE_DLFCN_H 1 7867_ACEOF 7868 7869fi 7870 7871done 7872 7873 7874 7875 7876 7877# Set options 7878 7879 7880 7881 enable_dlopen=no 7882 7883 7884 enable_win32_dll=no 7885 7886 7887 # Check whether --enable-shared was given. 7888if test "${enable_shared+set}" = set; then : 7889 enableval=$enable_shared; p=${PACKAGE-default} 7890 case $enableval in 7891 yes) enable_shared=yes ;; 7892 no) enable_shared=no ;; 7893 *) 7894 enable_shared=no 7895 # Look at the argument we got. We use all the common list separators. 7896 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7897 for pkg in $enableval; do 7898 IFS=$lt_save_ifs 7899 if test "X$pkg" = "X$p"; then 7900 enable_shared=yes 7901 fi 7902 done 7903 IFS=$lt_save_ifs 7904 ;; 7905 esac 7906else 7907 enable_shared=yes 7908fi 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 # Check whether --enable-static was given. 7919if test "${enable_static+set}" = set; then : 7920 enableval=$enable_static; p=${PACKAGE-default} 7921 case $enableval in 7922 yes) enable_static=yes ;; 7923 no) enable_static=no ;; 7924 *) 7925 enable_static=no 7926 # Look at the argument we got. We use all the common list separators. 7927 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7928 for pkg in $enableval; do 7929 IFS=$lt_save_ifs 7930 if test "X$pkg" = "X$p"; then 7931 enable_static=yes 7932 fi 7933 done 7934 IFS=$lt_save_ifs 7935 ;; 7936 esac 7937else 7938 enable_static=yes 7939fi 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950# Check whether --with-pic was given. 7951if test "${with_pic+set}" = set; then : 7952 withval=$with_pic; lt_p=${PACKAGE-default} 7953 case $withval in 7954 yes|no) pic_mode=$withval ;; 7955 *) 7956 pic_mode=default 7957 # Look at the argument we got. We use all the common list separators. 7958 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7959 for lt_pkg in $withval; do 7960 IFS=$lt_save_ifs 7961 if test "X$lt_pkg" = "X$lt_p"; then 7962 pic_mode=yes 7963 fi 7964 done 7965 IFS=$lt_save_ifs 7966 ;; 7967 esac 7968else 7969 pic_mode=default 7970fi 7971 7972 7973 7974 7975 7976 7977 7978 7979 # Check whether --enable-fast-install was given. 7980if test "${enable_fast_install+set}" = set; then : 7981 enableval=$enable_fast_install; p=${PACKAGE-default} 7982 case $enableval in 7983 yes) enable_fast_install=yes ;; 7984 no) enable_fast_install=no ;; 7985 *) 7986 enable_fast_install=no 7987 # Look at the argument we got. We use all the common list separators. 7988 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7989 for pkg in $enableval; do 7990 IFS=$lt_save_ifs 7991 if test "X$pkg" = "X$p"; then 7992 enable_fast_install=yes 7993 fi 7994 done 7995 IFS=$lt_save_ifs 7996 ;; 7997 esac 7998else 7999 enable_fast_install=yes 8000fi 8001 8002 8003 8004 8005 8006 8007 8008 8009 shared_archive_member_spec= 8010case $host,$enable_shared in 8011power*-*-aix[5-9]*,yes) 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8013$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8014 8015# Check whether --with-aix-soname was given. 8016if test "${with_aix_soname+set}" = set; then : 8017 withval=$with_aix_soname; case $withval in 8018 aix|svr4|both) 8019 ;; 8020 *) 8021 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8022 ;; 8023 esac 8024 lt_cv_with_aix_soname=$with_aix_soname 8025else 8026 if ${lt_cv_with_aix_soname+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 lt_cv_with_aix_soname=aix 8030fi 8031 8032 with_aix_soname=$lt_cv_with_aix_soname 8033fi 8034 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8036$as_echo "$with_aix_soname" >&6; } 8037 if test aix != "$with_aix_soname"; then 8038 # For the AIX way of multilib, we name the shared archive member 8039 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8040 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8041 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8042 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8043 if test 64 = "${OBJECT_MODE-32}"; then 8044 shared_archive_member_spec=shr_64 8045 else 8046 shared_archive_member_spec=shr 8047 fi 8048 fi 8049 ;; 8050*) 8051 with_aix_soname=aix 8052 ;; 8053esac 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064# This can be used to rebuild libtool when needed 8065LIBTOOL_DEPS=$ltmain 8066 8067# Always use our own libtool. 8068LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099test -z "$LN_S" && LN_S="ln -s" 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114if test -n "${ZSH_VERSION+set}"; then 8115 setopt NO_GLOB_SUBST 8116fi 8117 8118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8119$as_echo_n "checking for objdir... " >&6; } 8120if ${lt_cv_objdir+:} false; then : 8121 $as_echo_n "(cached) " >&6 8122else 8123 rm -f .libs 2>/dev/null 8124mkdir .libs 2>/dev/null 8125if test -d .libs; then 8126 lt_cv_objdir=.libs 8127else 8128 # MS-DOS does not allow filenames that begin with a dot. 8129 lt_cv_objdir=_libs 8130fi 8131rmdir .libs 2>/dev/null 8132fi 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8134$as_echo "$lt_cv_objdir" >&6; } 8135objdir=$lt_cv_objdir 8136 8137 8138 8139 8140 8141cat >>confdefs.h <<_ACEOF 8142#define LT_OBJDIR "$lt_cv_objdir/" 8143_ACEOF 8144 8145 8146 8147 8148case $host_os in 8149aix3*) 8150 # AIX sometimes has problems with the GCC collect2 program. For some 8151 # reason, if we set the COLLECT_NAMES environment variable, the problems 8152 # vanish in a puff of smoke. 8153 if test set != "${COLLECT_NAMES+set}"; then 8154 COLLECT_NAMES= 8155 export COLLECT_NAMES 8156 fi 8157 ;; 8158esac 8159 8160# Global variables: 8161ofile=libtool 8162can_build_shared=yes 8163 8164# All known linkers require a '.a' archive for static linking (except MSVC, 8165# which needs '.lib'). 8166libext=a 8167 8168with_gnu_ld=$lt_cv_prog_gnu_ld 8169 8170old_CC=$CC 8171old_CFLAGS=$CFLAGS 8172 8173# Set sane defaults for various variables 8174test -z "$CC" && CC=cc 8175test -z "$LTCC" && LTCC=$CC 8176test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8177test -z "$LD" && LD=ld 8178test -z "$ac_objext" && ac_objext=o 8179 8180func_cc_basename $compiler 8181cc_basename=$func_cc_basename_result 8182 8183 8184# Only perform the check for file, if the check method requires it 8185test -z "$MAGIC_CMD" && MAGIC_CMD=file 8186case $deplibs_check_method in 8187file_magic*) 8188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8190$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8191if ${lt_cv_path_MAGIC_CMD+:} false; then : 8192 $as_echo_n "(cached) " >&6 8193else 8194 case $MAGIC_CMD in 8195[\\/*] | ?:[\\/]*) 8196 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8197 ;; 8198*) 8199 lt_save_MAGIC_CMD=$MAGIC_CMD 8200 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8202 for ac_dir in $ac_dummy; do 8203 IFS=$lt_save_ifs 8204 test -z "$ac_dir" && ac_dir=. 8205 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8206 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8207 if test -n "$file_magic_test_file"; then 8208 case $deplibs_check_method in 8209 "file_magic "*) 8210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8211 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8213 $EGREP "$file_magic_regex" > /dev/null; then 8214 : 8215 else 8216 cat <<_LT_EOF 1>&2 8217 8218*** Warning: the command libtool uses to detect shared libraries, 8219*** $file_magic_cmd, produces output that libtool cannot recognize. 8220*** The result is that libtool may fail to recognize shared libraries 8221*** as such. This will affect the creation of libtool libraries that 8222*** depend on shared libraries, but programs linked with such libtool 8223*** libraries will work regardless of this problem. Nevertheless, you 8224*** may want to report the problem to your system manager and/or to 8225*** bug-libtool@gnu.org 8226 8227_LT_EOF 8228 fi ;; 8229 esac 8230 fi 8231 break 8232 fi 8233 done 8234 IFS=$lt_save_ifs 8235 MAGIC_CMD=$lt_save_MAGIC_CMD 8236 ;; 8237esac 8238fi 8239 8240MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8241if test -n "$MAGIC_CMD"; then 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8243$as_echo "$MAGIC_CMD" >&6; } 8244else 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8246$as_echo "no" >&6; } 8247fi 8248 8249 8250 8251 8252 8253if test -z "$lt_cv_path_MAGIC_CMD"; then 8254 if test -n "$ac_tool_prefix"; then 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8256$as_echo_n "checking for file... " >&6; } 8257if ${lt_cv_path_MAGIC_CMD+:} false; then : 8258 $as_echo_n "(cached) " >&6 8259else 8260 case $MAGIC_CMD in 8261[\\/*] | ?:[\\/]*) 8262 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8263 ;; 8264*) 8265 lt_save_MAGIC_CMD=$MAGIC_CMD 8266 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8268 for ac_dir in $ac_dummy; do 8269 IFS=$lt_save_ifs 8270 test -z "$ac_dir" && ac_dir=. 8271 if test -f "$ac_dir/file"; then 8272 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8273 if test -n "$file_magic_test_file"; then 8274 case $deplibs_check_method in 8275 "file_magic "*) 8276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8277 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8279 $EGREP "$file_magic_regex" > /dev/null; then 8280 : 8281 else 8282 cat <<_LT_EOF 1>&2 8283 8284*** Warning: the command libtool uses to detect shared libraries, 8285*** $file_magic_cmd, produces output that libtool cannot recognize. 8286*** The result is that libtool may fail to recognize shared libraries 8287*** as such. This will affect the creation of libtool libraries that 8288*** depend on shared libraries, but programs linked with such libtool 8289*** libraries will work regardless of this problem. Nevertheless, you 8290*** may want to report the problem to your system manager and/or to 8291*** bug-libtool@gnu.org 8292 8293_LT_EOF 8294 fi ;; 8295 esac 8296 fi 8297 break 8298 fi 8299 done 8300 IFS=$lt_save_ifs 8301 MAGIC_CMD=$lt_save_MAGIC_CMD 8302 ;; 8303esac 8304fi 8305 8306MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8307if test -n "$MAGIC_CMD"; then 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8309$as_echo "$MAGIC_CMD" >&6; } 8310else 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8312$as_echo "no" >&6; } 8313fi 8314 8315 8316 else 8317 MAGIC_CMD=: 8318 fi 8319fi 8320 8321 fi 8322 ;; 8323esac 8324 8325# Use C for the default configuration in the libtool script 8326 8327lt_save_CC=$CC 8328ac_ext=c 8329ac_cpp='$CPP $CPPFLAGS' 8330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8332ac_compiler_gnu=$ac_cv_c_compiler_gnu 8333 8334 8335# Source file extension for C test sources. 8336ac_ext=c 8337 8338# Object file extension for compiled C test sources. 8339objext=o 8340objext=$objext 8341 8342# Code to be used in simple compile tests 8343lt_simple_compile_test_code="int some_variable = 0;" 8344 8345# Code to be used in simple link tests 8346lt_simple_link_test_code='int main(){return(0);}' 8347 8348 8349 8350 8351 8352 8353 8354# If no C compiler was specified, use CC. 8355LTCC=${LTCC-"$CC"} 8356 8357# If no C compiler flags were specified, use CFLAGS. 8358LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8359 8360# Allow CC to be a program name with arguments. 8361compiler=$CC 8362 8363# Save the default compiler, since it gets overwritten when the other 8364# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8365compiler_DEFAULT=$CC 8366 8367# save warnings/boilerplate of simple test code 8368ac_outfile=conftest.$ac_objext 8369echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8370eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8371_lt_compiler_boilerplate=`cat conftest.err` 8372$RM conftest* 8373 8374ac_outfile=conftest.$ac_objext 8375echo "$lt_simple_link_test_code" >conftest.$ac_ext 8376eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8377_lt_linker_boilerplate=`cat conftest.err` 8378$RM -r conftest* 8379 8380 8381if test -n "$compiler"; then 8382 8383lt_prog_compiler_no_builtin_flag= 8384 8385if test yes = "$GCC"; then 8386 case $cc_basename in 8387 nvcc*) 8388 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8389 *) 8390 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8391 esac 8392 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8394$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8395if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8396 $as_echo_n "(cached) " >&6 8397else 8398 lt_cv_prog_compiler_rtti_exceptions=no 8399 ac_outfile=conftest.$ac_objext 8400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8401 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8402 # Insert the option either (1) after the last *FLAGS variable, or 8403 # (2) before a word containing "conftest.", or (3) at the end. 8404 # Note that $ac_compile itself does not contain backslashes and begins 8405 # with a dollar sign (not a hyphen), so the echo should work correctly. 8406 # The option is referenced via a variable to avoid confusing sed. 8407 lt_compile=`echo "$ac_compile" | $SED \ 8408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8410 -e 's:$: $lt_compiler_flag:'` 8411 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8412 (eval "$lt_compile" 2>conftest.err) 8413 ac_status=$? 8414 cat conftest.err >&5 8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8416 if (exit $ac_status) && test -s "$ac_outfile"; then 8417 # The compiler can only warn and ignore the option if not recognized 8418 # So say no if there are warnings other than the usual output. 8419 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8422 lt_cv_prog_compiler_rtti_exceptions=yes 8423 fi 8424 fi 8425 $RM conftest* 8426 8427fi 8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8429$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8430 8431if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8432 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8433else 8434 : 8435fi 8436 8437fi 8438 8439 8440 8441 8442 8443 8444 lt_prog_compiler_wl= 8445lt_prog_compiler_pic= 8446lt_prog_compiler_static= 8447 8448 8449 if test yes = "$GCC"; then 8450 lt_prog_compiler_wl='-Wl,' 8451 lt_prog_compiler_static='-static' 8452 8453 case $host_os in 8454 aix*) 8455 # All AIX code is PIC. 8456 if test ia64 = "$host_cpu"; then 8457 # AIX 5 now supports IA64 processor 8458 lt_prog_compiler_static='-Bstatic' 8459 fi 8460 lt_prog_compiler_pic='-fPIC' 8461 ;; 8462 8463 amigaos*) 8464 case $host_cpu in 8465 powerpc) 8466 # see comment about AmigaOS4 .so support 8467 lt_prog_compiler_pic='-fPIC' 8468 ;; 8469 m68k) 8470 # FIXME: we need at least 68020 code to build shared libraries, but 8471 # adding the '-m68020' flag to GCC prevents building anything better, 8472 # like '-m68040'. 8473 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8474 ;; 8475 esac 8476 ;; 8477 8478 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8479 # PIC is the default for these OSes. 8480 ;; 8481 8482 mingw* | cygwin* | pw32* | os2* | cegcc*) 8483 # This hack is so that the source file can tell whether it is being 8484 # built for inclusion in a dll (and should export symbols for example). 8485 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8486 # (--disable-auto-import) libraries 8487 lt_prog_compiler_pic='-DDLL_EXPORT' 8488 case $host_os in 8489 os2*) 8490 lt_prog_compiler_static='$wl-static' 8491 ;; 8492 esac 8493 ;; 8494 8495 darwin* | rhapsody*) 8496 # PIC is the default on this platform 8497 # Common symbols not allowed in MH_DYLIB files 8498 lt_prog_compiler_pic='-fno-common' 8499 ;; 8500 8501 haiku*) 8502 # PIC is the default for Haiku. 8503 # The "-static" flag exists, but is broken. 8504 lt_prog_compiler_static= 8505 ;; 8506 8507 hpux*) 8508 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8509 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8510 # sets the default TLS model and affects inlining. 8511 case $host_cpu in 8512 hppa*64*) 8513 # +Z the default 8514 ;; 8515 *) 8516 lt_prog_compiler_pic='-fPIC' 8517 ;; 8518 esac 8519 ;; 8520 8521 interix[3-9]*) 8522 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8523 # Instead, we relocate shared libraries at runtime. 8524 ;; 8525 8526 msdosdjgpp*) 8527 # Just because we use GCC doesn't mean we suddenly get shared libraries 8528 # on systems that don't support them. 8529 lt_prog_compiler_can_build_shared=no 8530 enable_shared=no 8531 ;; 8532 8533 *nto* | *qnx*) 8534 # QNX uses GNU C++, but need to define -shared option too, otherwise 8535 # it will coredump. 8536 lt_prog_compiler_pic='-fPIC -shared' 8537 ;; 8538 8539 sysv4*MP*) 8540 if test -d /usr/nec; then 8541 lt_prog_compiler_pic=-Kconform_pic 8542 fi 8543 ;; 8544 8545 *) 8546 lt_prog_compiler_pic='-fPIC' 8547 ;; 8548 esac 8549 8550 case $cc_basename in 8551 nvcc*) # Cuda Compiler Driver 2.2 8552 lt_prog_compiler_wl='-Xlinker ' 8553 if test -n "$lt_prog_compiler_pic"; then 8554 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8555 fi 8556 ;; 8557 esac 8558 else 8559 # PORTME Check for flag to pass linker flags through the system compiler. 8560 case $host_os in 8561 aix*) 8562 lt_prog_compiler_wl='-Wl,' 8563 if test ia64 = "$host_cpu"; then 8564 # AIX 5 now supports IA64 processor 8565 lt_prog_compiler_static='-Bstatic' 8566 else 8567 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8568 fi 8569 ;; 8570 8571 darwin* | rhapsody*) 8572 # PIC is the default on this platform 8573 # Common symbols not allowed in MH_DYLIB files 8574 lt_prog_compiler_pic='-fno-common' 8575 case $cc_basename in 8576 nagfor*) 8577 # NAG Fortran compiler 8578 lt_prog_compiler_wl='-Wl,-Wl,,' 8579 lt_prog_compiler_pic='-PIC' 8580 lt_prog_compiler_static='-Bstatic' 8581 ;; 8582 esac 8583 ;; 8584 8585 mingw* | cygwin* | pw32* | os2* | cegcc*) 8586 # This hack is so that the source file can tell whether it is being 8587 # built for inclusion in a dll (and should export symbols for example). 8588 lt_prog_compiler_pic='-DDLL_EXPORT' 8589 case $host_os in 8590 os2*) 8591 lt_prog_compiler_static='$wl-static' 8592 ;; 8593 esac 8594 ;; 8595 8596 hpux9* | hpux10* | hpux11*) 8597 lt_prog_compiler_wl='-Wl,' 8598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8599 # not for PA HP-UX. 8600 case $host_cpu in 8601 hppa*64*|ia64*) 8602 # +Z the default 8603 ;; 8604 *) 8605 lt_prog_compiler_pic='+Z' 8606 ;; 8607 esac 8608 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8609 lt_prog_compiler_static='$wl-a ${wl}archive' 8610 ;; 8611 8612 irix5* | irix6* | nonstopux*) 8613 lt_prog_compiler_wl='-Wl,' 8614 # PIC (with -KPIC) is the default. 8615 lt_prog_compiler_static='-non_shared' 8616 ;; 8617 8618 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8619 case $cc_basename in 8620 # old Intel for x86_64, which still supported -KPIC. 8621 ecc*) 8622 lt_prog_compiler_wl='-Wl,' 8623 lt_prog_compiler_pic='-KPIC' 8624 lt_prog_compiler_static='-static' 8625 ;; 8626 # icc used to be incompatible with GCC. 8627 # ICC 10 doesn't accept -KPIC any more. 8628 icc* | ifort*) 8629 lt_prog_compiler_wl='-Wl,' 8630 lt_prog_compiler_pic='-fPIC' 8631 lt_prog_compiler_static='-static' 8632 ;; 8633 # Lahey Fortran 8.1. 8634 lf95*) 8635 lt_prog_compiler_wl='-Wl,' 8636 lt_prog_compiler_pic='--shared' 8637 lt_prog_compiler_static='--static' 8638 ;; 8639 nagfor*) 8640 # NAG Fortran compiler 8641 lt_prog_compiler_wl='-Wl,-Wl,,' 8642 lt_prog_compiler_pic='-PIC' 8643 lt_prog_compiler_static='-Bstatic' 8644 ;; 8645 tcc*) 8646 # Fabrice Bellard et al's Tiny C Compiler 8647 lt_prog_compiler_wl='-Wl,' 8648 lt_prog_compiler_pic='-fPIC' 8649 lt_prog_compiler_static='-static' 8650 ;; 8651 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8652 # Portland Group compilers (*not* the Pentium gcc compiler, 8653 # which looks to be a dead project) 8654 lt_prog_compiler_wl='-Wl,' 8655 lt_prog_compiler_pic='-fpic' 8656 lt_prog_compiler_static='-Bstatic' 8657 ;; 8658 ccc*) 8659 lt_prog_compiler_wl='-Wl,' 8660 # All Alpha code is PIC. 8661 lt_prog_compiler_static='-non_shared' 8662 ;; 8663 xl* | bgxl* | bgf* | mpixl*) 8664 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8665 lt_prog_compiler_wl='-Wl,' 8666 lt_prog_compiler_pic='-qpic' 8667 lt_prog_compiler_static='-qstaticlink' 8668 ;; 8669 *) 8670 case `$CC -V 2>&1 | sed 5q` in 8671 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8672 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8673 lt_prog_compiler_pic='-KPIC' 8674 lt_prog_compiler_static='-Bstatic' 8675 lt_prog_compiler_wl='' 8676 ;; 8677 *Sun\ F* | *Sun*Fortran*) 8678 lt_prog_compiler_pic='-KPIC' 8679 lt_prog_compiler_static='-Bstatic' 8680 lt_prog_compiler_wl='-Qoption ld ' 8681 ;; 8682 *Sun\ C*) 8683 # Sun C 5.9 8684 lt_prog_compiler_pic='-KPIC' 8685 lt_prog_compiler_static='-Bstatic' 8686 lt_prog_compiler_wl='-Wl,' 8687 ;; 8688 *Intel*\ [CF]*Compiler*) 8689 lt_prog_compiler_wl='-Wl,' 8690 lt_prog_compiler_pic='-fPIC' 8691 lt_prog_compiler_static='-static' 8692 ;; 8693 *Portland\ Group*) 8694 lt_prog_compiler_wl='-Wl,' 8695 lt_prog_compiler_pic='-fpic' 8696 lt_prog_compiler_static='-Bstatic' 8697 ;; 8698 esac 8699 ;; 8700 esac 8701 ;; 8702 8703 newsos6) 8704 lt_prog_compiler_pic='-KPIC' 8705 lt_prog_compiler_static='-Bstatic' 8706 ;; 8707 8708 *nto* | *qnx*) 8709 # QNX uses GNU C++, but need to define -shared option too, otherwise 8710 # it will coredump. 8711 lt_prog_compiler_pic='-fPIC -shared' 8712 ;; 8713 8714 osf3* | osf4* | osf5*) 8715 lt_prog_compiler_wl='-Wl,' 8716 # All OSF/1 code is PIC. 8717 lt_prog_compiler_static='-non_shared' 8718 ;; 8719 8720 rdos*) 8721 lt_prog_compiler_static='-non_shared' 8722 ;; 8723 8724 solaris*) 8725 lt_prog_compiler_pic='-KPIC' 8726 lt_prog_compiler_static='-Bstatic' 8727 case $cc_basename in 8728 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8729 lt_prog_compiler_wl='-Qoption ld ';; 8730 *) 8731 lt_prog_compiler_wl='-Wl,';; 8732 esac 8733 ;; 8734 8735 sunos4*) 8736 lt_prog_compiler_wl='-Qoption ld ' 8737 lt_prog_compiler_pic='-PIC' 8738 lt_prog_compiler_static='-Bstatic' 8739 ;; 8740 8741 sysv4 | sysv4.2uw2* | sysv4.3*) 8742 lt_prog_compiler_wl='-Wl,' 8743 lt_prog_compiler_pic='-KPIC' 8744 lt_prog_compiler_static='-Bstatic' 8745 ;; 8746 8747 sysv4*MP*) 8748 if test -d /usr/nec; then 8749 lt_prog_compiler_pic='-Kconform_pic' 8750 lt_prog_compiler_static='-Bstatic' 8751 fi 8752 ;; 8753 8754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8755 lt_prog_compiler_wl='-Wl,' 8756 lt_prog_compiler_pic='-KPIC' 8757 lt_prog_compiler_static='-Bstatic' 8758 ;; 8759 8760 unicos*) 8761 lt_prog_compiler_wl='-Wl,' 8762 lt_prog_compiler_can_build_shared=no 8763 ;; 8764 8765 uts4*) 8766 lt_prog_compiler_pic='-pic' 8767 lt_prog_compiler_static='-Bstatic' 8768 ;; 8769 8770 *) 8771 lt_prog_compiler_can_build_shared=no 8772 ;; 8773 esac 8774 fi 8775 8776case $host_os in 8777 # For platforms that do not support PIC, -DPIC is meaningless: 8778 *djgpp*) 8779 lt_prog_compiler_pic= 8780 ;; 8781 *) 8782 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8783 ;; 8784esac 8785 8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8787$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8788if ${lt_cv_prog_compiler_pic+:} false; then : 8789 $as_echo_n "(cached) " >&6 8790else 8791 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8792fi 8793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8794$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8795lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8796 8797# 8798# Check to make sure the PIC flag actually works. 8799# 8800if test -n "$lt_prog_compiler_pic"; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8802$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8803if ${lt_cv_prog_compiler_pic_works+:} false; then : 8804 $as_echo_n "(cached) " >&6 8805else 8806 lt_cv_prog_compiler_pic_works=no 8807 ac_outfile=conftest.$ac_objext 8808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8809 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8810 # Insert the option either (1) after the last *FLAGS variable, or 8811 # (2) before a word containing "conftest.", or (3) at the end. 8812 # Note that $ac_compile itself does not contain backslashes and begins 8813 # with a dollar sign (not a hyphen), so the echo should work correctly. 8814 # The option is referenced via a variable to avoid confusing sed. 8815 lt_compile=`echo "$ac_compile" | $SED \ 8816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8818 -e 's:$: $lt_compiler_flag:'` 8819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8820 (eval "$lt_compile" 2>conftest.err) 8821 ac_status=$? 8822 cat conftest.err >&5 8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8824 if (exit $ac_status) && test -s "$ac_outfile"; then 8825 # The compiler can only warn and ignore the option if not recognized 8826 # So say no if there are warnings other than the usual output. 8827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8829 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8830 lt_cv_prog_compiler_pic_works=yes 8831 fi 8832 fi 8833 $RM conftest* 8834 8835fi 8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8837$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8838 8839if test yes = "$lt_cv_prog_compiler_pic_works"; then 8840 case $lt_prog_compiler_pic in 8841 "" | " "*) ;; 8842 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8843 esac 8844else 8845 lt_prog_compiler_pic= 8846 lt_prog_compiler_can_build_shared=no 8847fi 8848 8849fi 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861# 8862# Check to make sure the static flag actually works. 8863# 8864wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8866$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8867if ${lt_cv_prog_compiler_static_works+:} false; then : 8868 $as_echo_n "(cached) " >&6 8869else 8870 lt_cv_prog_compiler_static_works=no 8871 save_LDFLAGS=$LDFLAGS 8872 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8873 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8874 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8875 # The linker can only warn and ignore the option if not recognized 8876 # So say no if there are warnings 8877 if test -s conftest.err; then 8878 # Append any errors to the config.log. 8879 cat conftest.err 1>&5 8880 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8881 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8882 if diff conftest.exp conftest.er2 >/dev/null; then 8883 lt_cv_prog_compiler_static_works=yes 8884 fi 8885 else 8886 lt_cv_prog_compiler_static_works=yes 8887 fi 8888 fi 8889 $RM -r conftest* 8890 LDFLAGS=$save_LDFLAGS 8891 8892fi 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8894$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8895 8896if test yes = "$lt_cv_prog_compiler_static_works"; then 8897 : 8898else 8899 lt_prog_compiler_static= 8900fi 8901 8902 8903 8904 8905 8906 8907 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8909$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8910if ${lt_cv_prog_compiler_c_o+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912else 8913 lt_cv_prog_compiler_c_o=no 8914 $RM -r conftest 2>/dev/null 8915 mkdir conftest 8916 cd conftest 8917 mkdir out 8918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8919 8920 lt_compiler_flag="-o out/conftest2.$ac_objext" 8921 # Insert the option either (1) after the last *FLAGS variable, or 8922 # (2) before a word containing "conftest.", or (3) at the end. 8923 # Note that $ac_compile itself does not contain backslashes and begins 8924 # with a dollar sign (not a hyphen), so the echo should work correctly. 8925 lt_compile=`echo "$ac_compile" | $SED \ 8926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8928 -e 's:$: $lt_compiler_flag:'` 8929 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8930 (eval "$lt_compile" 2>out/conftest.err) 8931 ac_status=$? 8932 cat out/conftest.err >&5 8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8934 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8935 then 8936 # The compiler can only warn and ignore the option if not recognized 8937 # So say no if there are warnings 8938 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8939 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8940 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8941 lt_cv_prog_compiler_c_o=yes 8942 fi 8943 fi 8944 chmod u+w . 2>&5 8945 $RM conftest* 8946 # SGI C++ compiler will create directory out/ii_files/ for 8947 # template instantiation 8948 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8949 $RM out/* && rmdir out 8950 cd .. 8951 $RM -r conftest 8952 $RM conftest* 8953 8954fi 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8956$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8957 8958 8959 8960 8961 8962 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8964$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8965if ${lt_cv_prog_compiler_c_o+:} false; then : 8966 $as_echo_n "(cached) " >&6 8967else 8968 lt_cv_prog_compiler_c_o=no 8969 $RM -r conftest 2>/dev/null 8970 mkdir conftest 8971 cd conftest 8972 mkdir out 8973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8974 8975 lt_compiler_flag="-o out/conftest2.$ac_objext" 8976 # Insert the option either (1) after the last *FLAGS variable, or 8977 # (2) before a word containing "conftest.", or (3) at the end. 8978 # Note that $ac_compile itself does not contain backslashes and begins 8979 # with a dollar sign (not a hyphen), so the echo should work correctly. 8980 lt_compile=`echo "$ac_compile" | $SED \ 8981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8983 -e 's:$: $lt_compiler_flag:'` 8984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8985 (eval "$lt_compile" 2>out/conftest.err) 8986 ac_status=$? 8987 cat out/conftest.err >&5 8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8989 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8990 then 8991 # The compiler can only warn and ignore the option if not recognized 8992 # So say no if there are warnings 8993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8996 lt_cv_prog_compiler_c_o=yes 8997 fi 8998 fi 8999 chmod u+w . 2>&5 9000 $RM conftest* 9001 # SGI C++ compiler will create directory out/ii_files/ for 9002 # template instantiation 9003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9004 $RM out/* && rmdir out 9005 cd .. 9006 $RM -r conftest 9007 $RM conftest* 9008 9009fi 9010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9011$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9012 9013 9014 9015 9016hard_links=nottested 9017if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9018 # do not overwrite the value of need_locks provided by the user 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9020$as_echo_n "checking if we can lock with hard links... " >&6; } 9021 hard_links=yes 9022 $RM conftest* 9023 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9024 touch conftest.a 9025 ln conftest.a conftest.b 2>&5 || hard_links=no 9026 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9028$as_echo "$hard_links" >&6; } 9029 if test no = "$hard_links"; then 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9031$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9032 need_locks=warn 9033 fi 9034else 9035 need_locks=no 9036fi 9037 9038 9039 9040 9041 9042 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9044$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9045 9046 runpath_var= 9047 allow_undefined_flag= 9048 always_export_symbols=no 9049 archive_cmds= 9050 archive_expsym_cmds= 9051 compiler_needs_object=no 9052 enable_shared_with_static_runtimes=no 9053 export_dynamic_flag_spec= 9054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9055 hardcode_automatic=no 9056 hardcode_direct=no 9057 hardcode_direct_absolute=no 9058 hardcode_libdir_flag_spec= 9059 hardcode_libdir_separator= 9060 hardcode_minus_L=no 9061 hardcode_shlibpath_var=unsupported 9062 inherit_rpath=no 9063 link_all_deplibs=unknown 9064 module_cmds= 9065 module_expsym_cmds= 9066 old_archive_from_new_cmds= 9067 old_archive_from_expsyms_cmds= 9068 thread_safe_flag_spec= 9069 whole_archive_flag_spec= 9070 # include_expsyms should be a list of space-separated symbols to be *always* 9071 # included in the symbol list 9072 include_expsyms= 9073 # exclude_expsyms can be an extended regexp of symbols to exclude 9074 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9075 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9076 # as well as any symbol that contains 'd'. 9077 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9079 # platforms (ab)use it in PIC code, but their linkers get confused if 9080 # the symbol is explicitly referenced. Since portable code cannot 9081 # rely on this symbol name, it's probably fine to never include it in 9082 # preloaded symbol tables. 9083 # Exclude shared library initialization/finalization symbols. 9084 extract_expsyms_cmds= 9085 9086 case $host_os in 9087 cygwin* | mingw* | pw32* | cegcc*) 9088 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9089 # When not using gcc, we currently assume that we are using 9090 # Microsoft Visual C++. 9091 if test yes != "$GCC"; then 9092 with_gnu_ld=no 9093 fi 9094 ;; 9095 interix*) 9096 # we just hope/assume this is gcc and not c89 (= MSVC++) 9097 with_gnu_ld=yes 9098 ;; 9099 openbsd* | bitrig*) 9100 with_gnu_ld=no 9101 ;; 9102 esac 9103 9104 ld_shlibs=yes 9105 9106 # On some targets, GNU ld is compatible enough with the native linker 9107 # that we're better off using the native interface for both. 9108 lt_use_gnu_ld_interface=no 9109 if test yes = "$with_gnu_ld"; then 9110 case $host_os in 9111 aix*) 9112 # The AIX port of GNU ld has always aspired to compatibility 9113 # with the native linker. However, as the warning in the GNU ld 9114 # block says, versions before 2.19.5* couldn't really create working 9115 # shared libraries, regardless of the interface used. 9116 case `$LD -v 2>&1` in 9117 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9118 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9119 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9120 *) 9121 lt_use_gnu_ld_interface=yes 9122 ;; 9123 esac 9124 ;; 9125 *) 9126 lt_use_gnu_ld_interface=yes 9127 ;; 9128 esac 9129 fi 9130 9131 if test yes = "$lt_use_gnu_ld_interface"; then 9132 # If archive_cmds runs LD, not CC, wlarc should be empty 9133 wlarc='$wl' 9134 9135 # Set some defaults for GNU ld with shared library support. These 9136 # are reset later if shared libraries are not supported. Putting them 9137 # here allows them to be overridden if necessary. 9138 runpath_var=LD_RUN_PATH 9139 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9140 export_dynamic_flag_spec='$wl--export-dynamic' 9141 # ancient GNU ld didn't support --whole-archive et. al. 9142 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9143 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9144 else 9145 whole_archive_flag_spec= 9146 fi 9147 supports_anon_versioning=no 9148 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9149 *GNU\ gold*) supports_anon_versioning=yes ;; 9150 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9151 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9152 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9153 *\ 2.11.*) ;; # other 2.11 versions 9154 *) supports_anon_versioning=yes ;; 9155 esac 9156 9157 # See if GNU ld supports shared libraries. 9158 case $host_os in 9159 aix[3-9]*) 9160 # On AIX/PPC, the GNU linker is very broken 9161 if test ia64 != "$host_cpu"; then 9162 ld_shlibs=no 9163 cat <<_LT_EOF 1>&2 9164 9165*** Warning: the GNU linker, at least up to release 2.19, is reported 9166*** to be unable to reliably create shared libraries on AIX. 9167*** Therefore, libtool is disabling shared libraries support. If you 9168*** really care for shared libraries, you may want to install binutils 9169*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9170*** You will then need to restart the configuration process. 9171 9172_LT_EOF 9173 fi 9174 ;; 9175 9176 amigaos*) 9177 case $host_cpu in 9178 powerpc) 9179 # see comment about AmigaOS4 .so support 9180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9181 archive_expsym_cmds='' 9182 ;; 9183 m68k) 9184 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)' 9185 hardcode_libdir_flag_spec='-L$libdir' 9186 hardcode_minus_L=yes 9187 ;; 9188 esac 9189 ;; 9190 9191 beos*) 9192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9193 allow_undefined_flag=unsupported 9194 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9195 # support --undefined. This deserves some investigation. FIXME 9196 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9197 else 9198 ld_shlibs=no 9199 fi 9200 ;; 9201 9202 cygwin* | mingw* | pw32* | cegcc*) 9203 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9204 # as there is no search path for DLLs. 9205 hardcode_libdir_flag_spec='-L$libdir' 9206 export_dynamic_flag_spec='$wl--export-all-symbols' 9207 allow_undefined_flag=unsupported 9208 always_export_symbols=no 9209 enable_shared_with_static_runtimes=yes 9210 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' 9211 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9212 9213 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9215 # If the export-symbols file already is a .def file, use it as 9216 # is; otherwise, prepend EXPORTS... 9217 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9218 cp $export_symbols $output_objdir/$soname.def; 9219 else 9220 echo EXPORTS > $output_objdir/$soname.def; 9221 cat $export_symbols >> $output_objdir/$soname.def; 9222 fi~ 9223 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9224 else 9225 ld_shlibs=no 9226 fi 9227 ;; 9228 9229 haiku*) 9230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9231 link_all_deplibs=yes 9232 ;; 9233 9234 os2*) 9235 hardcode_libdir_flag_spec='-L$libdir' 9236 hardcode_minus_L=yes 9237 allow_undefined_flag=unsupported 9238 shrext_cmds=.dll 9239 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9240 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9241 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9242 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9243 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9244 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9245 emximp -o $lib $output_objdir/$libname.def' 9246 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9247 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9248 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9249 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9250 prefix_cmds="$SED"~ 9251 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9252 prefix_cmds="$prefix_cmds -e 1d"; 9253 fi~ 9254 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9255 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9256 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9257 emximp -o $lib $output_objdir/$libname.def' 9258 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9259 enable_shared_with_static_runtimes=yes 9260 ;; 9261 9262 interix[3-9]*) 9263 hardcode_direct=no 9264 hardcode_shlibpath_var=no 9265 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9266 export_dynamic_flag_spec='$wl-E' 9267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9268 # Instead, shared libraries are loaded at an image base (0x10000000 by 9269 # default) and relocated if they conflict, which is a slow very memory 9270 # consuming and fragmenting process. To avoid this, we pick a random, 9271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9272 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9274 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' 9275 ;; 9276 9277 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9278 tmp_diet=no 9279 if test linux-dietlibc = "$host_os"; then 9280 case $cc_basename in 9281 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9282 esac 9283 fi 9284 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9285 && test no = "$tmp_diet" 9286 then 9287 tmp_addflag=' $pic_flag' 9288 tmp_sharedflag='-shared' 9289 case $cc_basename,$host_cpu in 9290 pgcc*) # Portland Group C compiler 9291 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' 9292 tmp_addflag=' $pic_flag' 9293 ;; 9294 pgf77* | pgf90* | pgf95* | pgfortran*) 9295 # Portland Group f77 and f90 compilers 9296 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' 9297 tmp_addflag=' $pic_flag -Mnomain' ;; 9298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9299 tmp_addflag=' -i_dynamic' ;; 9300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9301 tmp_addflag=' -i_dynamic -nofor_main' ;; 9302 ifc* | ifort*) # Intel Fortran compiler 9303 tmp_addflag=' -nofor_main' ;; 9304 lf95*) # Lahey Fortran 8.1 9305 whole_archive_flag_spec= 9306 tmp_sharedflag='--shared' ;; 9307 nagfor*) # NAGFOR 5.3 9308 tmp_sharedflag='-Wl,-shared' ;; 9309 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9310 tmp_sharedflag='-qmkshrobj' 9311 tmp_addflag= ;; 9312 nvcc*) # Cuda Compiler Driver 2.2 9313 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' 9314 compiler_needs_object=yes 9315 ;; 9316 esac 9317 case `$CC -V 2>&1 | sed 5q` in 9318 *Sun\ C*) # Sun C 5.9 9319 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' 9320 compiler_needs_object=yes 9321 tmp_sharedflag='-G' ;; 9322 *Sun\ F*) # Sun Fortran 8.3 9323 tmp_sharedflag='-G' ;; 9324 esac 9325 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9326 9327 if test yes = "$supports_anon_versioning"; then 9328 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9329 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9330 echo "local: *; };" >> $output_objdir/$libname.ver~ 9331 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9332 fi 9333 9334 case $cc_basename in 9335 tcc*) 9336 export_dynamic_flag_spec='-rdynamic' 9337 ;; 9338 xlf* | bgf* | bgxlf* | mpixlf*) 9339 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9340 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9341 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9342 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9343 if test yes = "$supports_anon_versioning"; then 9344 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9346 echo "local: *; };" >> $output_objdir/$libname.ver~ 9347 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9348 fi 9349 ;; 9350 esac 9351 else 9352 ld_shlibs=no 9353 fi 9354 ;; 9355 9356 netbsd*) 9357 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9358 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9359 wlarc= 9360 else 9361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9362 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9363 fi 9364 ;; 9365 9366 solaris*) 9367 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9368 ld_shlibs=no 9369 cat <<_LT_EOF 1>&2 9370 9371*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9372*** create shared libraries on Solaris systems. Therefore, libtool 9373*** is disabling shared libraries support. We urge you to upgrade GNU 9374*** binutils to release 2.9.1 or newer. Another option is to modify 9375*** your PATH or compiler configuration so that the native linker is 9376*** used, and then restart. 9377 9378_LT_EOF 9379 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9380 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9381 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9382 else 9383 ld_shlibs=no 9384 fi 9385 ;; 9386 9387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9388 case `$LD -v 2>&1` in 9389 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9390 ld_shlibs=no 9391 cat <<_LT_EOF 1>&2 9392 9393*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9394*** reliably create shared libraries on SCO systems. Therefore, libtool 9395*** is disabling shared libraries support. We urge you to upgrade GNU 9396*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9397*** your PATH or compiler configuration so that the native linker is 9398*** used, and then restart. 9399 9400_LT_EOF 9401 ;; 9402 *) 9403 # For security reasons, it is highly recommended that you always 9404 # use absolute paths for naming shared libraries, and exclude the 9405 # DT_RUNPATH tag from executables and libraries. But doing so 9406 # requires that you compile everything twice, which is a pain. 9407 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9408 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9410 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9411 else 9412 ld_shlibs=no 9413 fi 9414 ;; 9415 esac 9416 ;; 9417 9418 sunos4*) 9419 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9420 wlarc= 9421 hardcode_direct=yes 9422 hardcode_shlibpath_var=no 9423 ;; 9424 9425 *) 9426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9428 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9429 else 9430 ld_shlibs=no 9431 fi 9432 ;; 9433 esac 9434 9435 if test no = "$ld_shlibs"; then 9436 runpath_var= 9437 hardcode_libdir_flag_spec= 9438 export_dynamic_flag_spec= 9439 whole_archive_flag_spec= 9440 fi 9441 else 9442 # PORTME fill in a description of your system's linker (not GNU ld) 9443 case $host_os in 9444 aix3*) 9445 allow_undefined_flag=unsupported 9446 always_export_symbols=yes 9447 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' 9448 # Note: this linker hardcodes the directories in LIBPATH if there 9449 # are no directories specified by -L. 9450 hardcode_minus_L=yes 9451 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9452 # Neither direct hardcoding nor static linking is supported with a 9453 # broken collect2. 9454 hardcode_direct=unsupported 9455 fi 9456 ;; 9457 9458 aix[4-9]*) 9459 if test ia64 = "$host_cpu"; then 9460 # On IA64, the linker does run time linking by default, so we don't 9461 # have to do anything special. 9462 aix_use_runtimelinking=no 9463 exp_sym_flag='-Bexport' 9464 no_entry_flag= 9465 else 9466 # If we're using GNU nm, then we don't want the "-C" option. 9467 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9468 # Without the "-l" option, or with the "-B" option, AIX nm treats 9469 # weak defined symbols like other global defined symbols, whereas 9470 # GNU nm marks them as "W". 9471 # While the 'weak' keyword is ignored in the Export File, we need 9472 # it in the Import File for the 'aix-soname' feature, so we have 9473 # to replace the "-B" option with "-P" for AIX nm. 9474 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9475 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' 9476 else 9477 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 == "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' 9478 fi 9479 aix_use_runtimelinking=no 9480 9481 # Test if we are trying to use run time linking or normal 9482 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9483 # have runtime linking enabled, and use it for executables. 9484 # For shared libraries, we enable/disable runtime linking 9485 # depending on the kind of the shared library created - 9486 # when "with_aix_soname,aix_use_runtimelinking" is: 9487 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9488 # "aix,yes" lib.so shared, rtl:yes, for executables 9489 # lib.a static archive 9490 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9491 # lib.a(lib.so.V) shared, rtl:no, for executables 9492 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9493 # lib.a(lib.so.V) shared, rtl:no 9494 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9495 # lib.a static archive 9496 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9497 for ld_flag in $LDFLAGS; do 9498 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9499 aix_use_runtimelinking=yes 9500 break 9501 fi 9502 done 9503 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9504 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9505 # so we don't have lib.a shared libs to link our executables. 9506 # We have to force runtime linking in this case. 9507 aix_use_runtimelinking=yes 9508 LDFLAGS="$LDFLAGS -Wl,-brtl" 9509 fi 9510 ;; 9511 esac 9512 9513 exp_sym_flag='-bexport' 9514 no_entry_flag='-bnoentry' 9515 fi 9516 9517 # When large executables or shared objects are built, AIX ld can 9518 # have problems creating the table of contents. If linking a library 9519 # or program results in "error TOC overflow" add -mminimal-toc to 9520 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9521 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9522 9523 archive_cmds='' 9524 hardcode_direct=yes 9525 hardcode_direct_absolute=yes 9526 hardcode_libdir_separator=':' 9527 link_all_deplibs=yes 9528 file_list_spec='$wl-f,' 9529 case $with_aix_soname,$aix_use_runtimelinking in 9530 aix,*) ;; # traditional, no import file 9531 svr4,* | *,yes) # use import file 9532 # The Import File defines what to hardcode. 9533 hardcode_direct=no 9534 hardcode_direct_absolute=no 9535 ;; 9536 esac 9537 9538 if test yes = "$GCC"; then 9539 case $host_os in aix4.[012]|aix4.[012].*) 9540 # We only want to do this on AIX 4.2 and lower, the check 9541 # below for broken collect2 doesn't work under 4.3+ 9542 collect2name=`$CC -print-prog-name=collect2` 9543 if test -f "$collect2name" && 9544 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9545 then 9546 # We have reworked collect2 9547 : 9548 else 9549 # We have old collect2 9550 hardcode_direct=unsupported 9551 # It fails to find uninstalled libraries when the uninstalled 9552 # path is not listed in the libpath. Setting hardcode_minus_L 9553 # to unsupported forces relinking 9554 hardcode_minus_L=yes 9555 hardcode_libdir_flag_spec='-L$libdir' 9556 hardcode_libdir_separator= 9557 fi 9558 ;; 9559 esac 9560 shared_flag='-shared' 9561 if test yes = "$aix_use_runtimelinking"; then 9562 shared_flag="$shared_flag "'$wl-G' 9563 fi 9564 # Need to ensure runtime linking is disabled for the traditional 9565 # shared library, or the linker may eventually find shared libraries 9566 # /with/ Import File - we do not want to mix them. 9567 shared_flag_aix='-shared' 9568 shared_flag_svr4='-shared $wl-G' 9569 else 9570 # not using gcc 9571 if test ia64 = "$host_cpu"; then 9572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9573 # chokes on -Wl,-G. The following line is correct: 9574 shared_flag='-G' 9575 else 9576 if test yes = "$aix_use_runtimelinking"; then 9577 shared_flag='$wl-G' 9578 else 9579 shared_flag='$wl-bM:SRE' 9580 fi 9581 shared_flag_aix='$wl-bM:SRE' 9582 shared_flag_svr4='$wl-G' 9583 fi 9584 fi 9585 9586 export_dynamic_flag_spec='$wl-bexpall' 9587 # It seems that -bexpall does not export symbols beginning with 9588 # underscore (_), so it is better to generate a list of symbols to export. 9589 always_export_symbols=yes 9590 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9591 # Warning - without using the other runtime loading flags (-brtl), 9592 # -berok will link without error, but may produce a broken library. 9593 allow_undefined_flag='-berok' 9594 # Determine the default libpath from the value encoded in an 9595 # empty executable. 9596 if test set = "${lt_cv_aix_libpath+set}"; then 9597 aix_libpath=$lt_cv_aix_libpath 9598else 9599 if ${lt_cv_aix_libpath_+:} false; then : 9600 $as_echo_n "(cached) " >&6 9601else 9602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9603/* end confdefs.h. */ 9604 9605int 9606main () 9607{ 9608 9609 ; 9610 return 0; 9611} 9612_ACEOF 9613if ac_fn_c_try_link "$LINENO"; then : 9614 9615 lt_aix_libpath_sed=' 9616 /Import File Strings/,/^$/ { 9617 /^0/ { 9618 s/^0 *\([^ ]*\) *$/\1/ 9619 p 9620 } 9621 }' 9622 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9623 # Check for a 64-bit object if we didn't find anything. 9624 if test -z "$lt_cv_aix_libpath_"; then 9625 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9626 fi 9627fi 9628rm -f core conftest.err conftest.$ac_objext \ 9629 conftest$ac_exeext conftest.$ac_ext 9630 if test -z "$lt_cv_aix_libpath_"; then 9631 lt_cv_aix_libpath_=/usr/lib:/lib 9632 fi 9633 9634fi 9635 9636 aix_libpath=$lt_cv_aix_libpath_ 9637fi 9638 9639 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9640 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 9641 else 9642 if test ia64 = "$host_cpu"; then 9643 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9644 allow_undefined_flag="-z nodefs" 9645 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" 9646 else 9647 # Determine the default libpath from the value encoded in an 9648 # empty executable. 9649 if test set = "${lt_cv_aix_libpath+set}"; then 9650 aix_libpath=$lt_cv_aix_libpath 9651else 9652 if ${lt_cv_aix_libpath_+:} false; then : 9653 $as_echo_n "(cached) " >&6 9654else 9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9656/* end confdefs.h. */ 9657 9658int 9659main () 9660{ 9661 9662 ; 9663 return 0; 9664} 9665_ACEOF 9666if ac_fn_c_try_link "$LINENO"; then : 9667 9668 lt_aix_libpath_sed=' 9669 /Import File Strings/,/^$/ { 9670 /^0/ { 9671 s/^0 *\([^ ]*\) *$/\1/ 9672 p 9673 } 9674 }' 9675 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9676 # Check for a 64-bit object if we didn't find anything. 9677 if test -z "$lt_cv_aix_libpath_"; then 9678 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9679 fi 9680fi 9681rm -f core conftest.err conftest.$ac_objext \ 9682 conftest$ac_exeext conftest.$ac_ext 9683 if test -z "$lt_cv_aix_libpath_"; then 9684 lt_cv_aix_libpath_=/usr/lib:/lib 9685 fi 9686 9687fi 9688 9689 aix_libpath=$lt_cv_aix_libpath_ 9690fi 9691 9692 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9693 # Warning - without using the other run time loading flags, 9694 # -berok will link without error, but may produce a broken library. 9695 no_undefined_flag=' $wl-bernotok' 9696 allow_undefined_flag=' $wl-berok' 9697 if test yes = "$with_gnu_ld"; then 9698 # We only use this code for GNU lds that support --whole-archive. 9699 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9700 else 9701 # Exported symbols can be pulled into shared objects from archives 9702 whole_archive_flag_spec='$convenience' 9703 fi 9704 archive_cmds_need_lc=yes 9705 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9706 # -brtl affects multiple linker settings, -berok does not and is overridden later 9707 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9708 if test svr4 != "$with_aix_soname"; then 9709 # This is similar to how AIX traditionally builds its shared libraries. 9710 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' 9711 fi 9712 if test aix != "$with_aix_soname"; then 9713 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' 9714 else 9715 # used by -dlpreopen to get the symbols 9716 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9717 fi 9718 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9719 fi 9720 fi 9721 ;; 9722 9723 amigaos*) 9724 case $host_cpu in 9725 powerpc) 9726 # see comment about AmigaOS4 .so support 9727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9728 archive_expsym_cmds='' 9729 ;; 9730 m68k) 9731 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)' 9732 hardcode_libdir_flag_spec='-L$libdir' 9733 hardcode_minus_L=yes 9734 ;; 9735 esac 9736 ;; 9737 9738 bsdi[45]*) 9739 export_dynamic_flag_spec=-rdynamic 9740 ;; 9741 9742 cygwin* | mingw* | pw32* | cegcc*) 9743 # When not using gcc, we currently assume that we are using 9744 # Microsoft Visual C++. 9745 # hardcode_libdir_flag_spec is actually meaningless, as there is 9746 # no search path for DLLs. 9747 case $cc_basename in 9748 cl*) 9749 # Native MSVC 9750 hardcode_libdir_flag_spec=' ' 9751 allow_undefined_flag=unsupported 9752 always_export_symbols=yes 9753 file_list_spec='@' 9754 # Tell ltmain to make .lib files, not .a files. 9755 libext=lib 9756 # Tell ltmain to make .dll files, not .so files. 9757 shrext_cmds=.dll 9758 # FIXME: Setting linknames here is a bad hack. 9759 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9760 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9761 cp "$export_symbols" "$output_objdir/$soname.def"; 9762 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9763 else 9764 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9765 fi~ 9766 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9767 linknames=' 9768 # The linker will not automatically build a static lib if we build a DLL. 9769 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9770 enable_shared_with_static_runtimes=yes 9771 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9772 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9773 # Don't use ranlib 9774 old_postinstall_cmds='chmod 644 $oldlib' 9775 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9776 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9777 case $lt_outputfile in 9778 *.exe|*.EXE) ;; 9779 *) 9780 lt_outputfile=$lt_outputfile.exe 9781 lt_tool_outputfile=$lt_tool_outputfile.exe 9782 ;; 9783 esac~ 9784 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9785 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9786 $RM "$lt_outputfile.manifest"; 9787 fi' 9788 ;; 9789 *) 9790 # Assume MSVC wrapper 9791 hardcode_libdir_flag_spec=' ' 9792 allow_undefined_flag=unsupported 9793 # Tell ltmain to make .lib files, not .a files. 9794 libext=lib 9795 # Tell ltmain to make .dll files, not .so files. 9796 shrext_cmds=.dll 9797 # FIXME: Setting linknames here is a bad hack. 9798 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9799 # The linker will automatically build a .lib file if we build a DLL. 9800 old_archive_from_new_cmds='true' 9801 # FIXME: Should let the user specify the lib program. 9802 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9803 enable_shared_with_static_runtimes=yes 9804 ;; 9805 esac 9806 ;; 9807 9808 darwin* | rhapsody*) 9809 9810 9811 archive_cmds_need_lc=no 9812 hardcode_direct=no 9813 hardcode_automatic=yes 9814 hardcode_shlibpath_var=unsupported 9815 if test yes = "$lt_cv_ld_force_load"; then 9816 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\"`' 9817 9818 else 9819 whole_archive_flag_spec='' 9820 fi 9821 link_all_deplibs=yes 9822 allow_undefined_flag=$_lt_dar_allow_undefined 9823 case $cc_basename in 9824 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9825 *) _lt_dar_can_shared=$GCC ;; 9826 esac 9827 if test yes = "$_lt_dar_can_shared"; then 9828 output_verbose_link_cmd=func_echo_all 9829 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9830 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9831 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" 9832 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" 9833 9834 else 9835 ld_shlibs=no 9836 fi 9837 9838 ;; 9839 9840 dgux*) 9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9842 hardcode_libdir_flag_spec='-L$libdir' 9843 hardcode_shlibpath_var=no 9844 ;; 9845 9846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9847 # support. Future versions do this automatically, but an explicit c++rt0.o 9848 # does not break anything, and helps significantly (at the cost of a little 9849 # extra space). 9850 freebsd2.2*) 9851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9852 hardcode_libdir_flag_spec='-R$libdir' 9853 hardcode_direct=yes 9854 hardcode_shlibpath_var=no 9855 ;; 9856 9857 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9858 freebsd2.*) 9859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9860 hardcode_direct=yes 9861 hardcode_minus_L=yes 9862 hardcode_shlibpath_var=no 9863 ;; 9864 9865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9866 freebsd* | dragonfly*) 9867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9868 hardcode_libdir_flag_spec='-R$libdir' 9869 hardcode_direct=yes 9870 hardcode_shlibpath_var=no 9871 ;; 9872 9873 hpux9*) 9874 if test yes = "$GCC"; then 9875 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' 9876 else 9877 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' 9878 fi 9879 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9880 hardcode_libdir_separator=: 9881 hardcode_direct=yes 9882 9883 # hardcode_minus_L: Not really in the search PATH, 9884 # but as the default location of the library. 9885 hardcode_minus_L=yes 9886 export_dynamic_flag_spec='$wl-E' 9887 ;; 9888 9889 hpux10*) 9890 if test yes,no = "$GCC,$with_gnu_ld"; then 9891 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9892 else 9893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9894 fi 9895 if test no = "$with_gnu_ld"; then 9896 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9897 hardcode_libdir_separator=: 9898 hardcode_direct=yes 9899 hardcode_direct_absolute=yes 9900 export_dynamic_flag_spec='$wl-E' 9901 # hardcode_minus_L: Not really in the search PATH, 9902 # but as the default location of the library. 9903 hardcode_minus_L=yes 9904 fi 9905 ;; 9906 9907 hpux11*) 9908 if test yes,no = "$GCC,$with_gnu_ld"; then 9909 case $host_cpu in 9910 hppa*64*) 9911 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9912 ;; 9913 ia64*) 9914 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9915 ;; 9916 *) 9917 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9918 ;; 9919 esac 9920 else 9921 case $host_cpu in 9922 hppa*64*) 9923 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9924 ;; 9925 ia64*) 9926 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9927 ;; 9928 *) 9929 9930 # Older versions of the 11.00 compiler do not understand -b yet 9931 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9933$as_echo_n "checking if $CC understands -b... " >&6; } 9934if ${lt_cv_prog_compiler__b+:} false; then : 9935 $as_echo_n "(cached) " >&6 9936else 9937 lt_cv_prog_compiler__b=no 9938 save_LDFLAGS=$LDFLAGS 9939 LDFLAGS="$LDFLAGS -b" 9940 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9941 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9942 # The linker can only warn and ignore the option if not recognized 9943 # So say no if there are warnings 9944 if test -s conftest.err; then 9945 # Append any errors to the config.log. 9946 cat conftest.err 1>&5 9947 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9949 if diff conftest.exp conftest.er2 >/dev/null; then 9950 lt_cv_prog_compiler__b=yes 9951 fi 9952 else 9953 lt_cv_prog_compiler__b=yes 9954 fi 9955 fi 9956 $RM -r conftest* 9957 LDFLAGS=$save_LDFLAGS 9958 9959fi 9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9961$as_echo "$lt_cv_prog_compiler__b" >&6; } 9962 9963if test yes = "$lt_cv_prog_compiler__b"; then 9964 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9965else 9966 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9967fi 9968 9969 ;; 9970 esac 9971 fi 9972 if test no = "$with_gnu_ld"; then 9973 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9974 hardcode_libdir_separator=: 9975 9976 case $host_cpu in 9977 hppa*64*|ia64*) 9978 hardcode_direct=no 9979 hardcode_shlibpath_var=no 9980 ;; 9981 *) 9982 hardcode_direct=yes 9983 hardcode_direct_absolute=yes 9984 export_dynamic_flag_spec='$wl-E' 9985 9986 # hardcode_minus_L: Not really in the search PATH, 9987 # but as the default location of the library. 9988 hardcode_minus_L=yes 9989 ;; 9990 esac 9991 fi 9992 ;; 9993 9994 irix5* | irix6* | nonstopux*) 9995 if test yes = "$GCC"; then 9996 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' 9997 # Try to use the -exported_symbol ld option, if it does not 9998 # work, assume that -exports_file does not work either and 9999 # implicitly export all symbols. 10000 # This should be the same for all languages, so no per-tag cache variable. 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10002$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10003if ${lt_cv_irix_exported_symbol+:} false; then : 10004 $as_echo_n "(cached) " >&6 10005else 10006 save_LDFLAGS=$LDFLAGS 10007 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10009/* end confdefs.h. */ 10010int foo (void) { return 0; } 10011_ACEOF 10012if ac_fn_c_try_link "$LINENO"; then : 10013 lt_cv_irix_exported_symbol=yes 10014else 10015 lt_cv_irix_exported_symbol=no 10016fi 10017rm -f core conftest.err conftest.$ac_objext \ 10018 conftest$ac_exeext conftest.$ac_ext 10019 LDFLAGS=$save_LDFLAGS 10020fi 10021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10022$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10023 if test yes = "$lt_cv_irix_exported_symbol"; then 10024 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' 10025 fi 10026 else 10027 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' 10028 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' 10029 fi 10030 archive_cmds_need_lc='no' 10031 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10032 hardcode_libdir_separator=: 10033 inherit_rpath=yes 10034 link_all_deplibs=yes 10035 ;; 10036 10037 linux*) 10038 case $cc_basename in 10039 tcc*) 10040 # Fabrice Bellard et al's Tiny C Compiler 10041 ld_shlibs=yes 10042 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10043 ;; 10044 esac 10045 ;; 10046 10047 netbsd*) 10048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10050 else 10051 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10052 fi 10053 hardcode_libdir_flag_spec='-R$libdir' 10054 hardcode_direct=yes 10055 hardcode_shlibpath_var=no 10056 ;; 10057 10058 newsos6) 10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10060 hardcode_direct=yes 10061 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10062 hardcode_libdir_separator=: 10063 hardcode_shlibpath_var=no 10064 ;; 10065 10066 *nto* | *qnx*) 10067 ;; 10068 10069 openbsd* | bitrig*) 10070 if test -f /usr/libexec/ld.so; then 10071 hardcode_direct=yes 10072 hardcode_shlibpath_var=no 10073 hardcode_direct_absolute=yes 10074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10076 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10077 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10078 export_dynamic_flag_spec='$wl-E' 10079 else 10080 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10081 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10082 fi 10083 else 10084 ld_shlibs=no 10085 fi 10086 ;; 10087 10088 os2*) 10089 hardcode_libdir_flag_spec='-L$libdir' 10090 hardcode_minus_L=yes 10091 allow_undefined_flag=unsupported 10092 shrext_cmds=.dll 10093 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10094 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10095 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10096 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10097 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10098 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10099 emximp -o $lib $output_objdir/$libname.def' 10100 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10101 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10102 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10103 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10104 prefix_cmds="$SED"~ 10105 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10106 prefix_cmds="$prefix_cmds -e 1d"; 10107 fi~ 10108 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10109 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10110 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10111 emximp -o $lib $output_objdir/$libname.def' 10112 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10113 enable_shared_with_static_runtimes=yes 10114 ;; 10115 10116 osf3*) 10117 if test yes = "$GCC"; then 10118 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10119 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' 10120 else 10121 allow_undefined_flag=' -expect_unresolved \*' 10122 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' 10123 fi 10124 archive_cmds_need_lc='no' 10125 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10126 hardcode_libdir_separator=: 10127 ;; 10128 10129 osf4* | osf5*) # as osf3* with the addition of -msym flag 10130 if test yes = "$GCC"; then 10131 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10132 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' 10133 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10134 else 10135 allow_undefined_flag=' -expect_unresolved \*' 10136 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' 10137 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~ 10138 $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' 10139 10140 # Both c and cxx compiler support -rpath directly 10141 hardcode_libdir_flag_spec='-rpath $libdir' 10142 fi 10143 archive_cmds_need_lc='no' 10144 hardcode_libdir_separator=: 10145 ;; 10146 10147 solaris*) 10148 no_undefined_flag=' -z defs' 10149 if test yes = "$GCC"; then 10150 wlarc='$wl' 10151 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10153 $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' 10154 else 10155 case `$CC -V 2>&1` in 10156 *"Compilers 5.0"*) 10157 wlarc='' 10158 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10160 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10161 ;; 10162 *) 10163 wlarc='$wl' 10164 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10165 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10166 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10167 ;; 10168 esac 10169 fi 10170 hardcode_libdir_flag_spec='-R$libdir' 10171 hardcode_shlibpath_var=no 10172 case $host_os in 10173 solaris2.[0-5] | solaris2.[0-5].*) ;; 10174 *) 10175 # The compiler driver will combine and reorder linker options, 10176 # but understands '-z linker_flag'. GCC discards it without '$wl', 10177 # but is careful enough not to reorder. 10178 # Supported since Solaris 2.6 (maybe 2.5.1?) 10179 if test yes = "$GCC"; then 10180 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10181 else 10182 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10183 fi 10184 ;; 10185 esac 10186 link_all_deplibs=yes 10187 ;; 10188 10189 sunos4*) 10190 if test sequent = "$host_vendor"; then 10191 # Use $CC to link under sequent, because it throws in some extra .o 10192 # files that make .init and .fini sections work. 10193 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10194 else 10195 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10196 fi 10197 hardcode_libdir_flag_spec='-L$libdir' 10198 hardcode_direct=yes 10199 hardcode_minus_L=yes 10200 hardcode_shlibpath_var=no 10201 ;; 10202 10203 sysv4) 10204 case $host_vendor in 10205 sni) 10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10207 hardcode_direct=yes # is this really true??? 10208 ;; 10209 siemens) 10210 ## LD is ld it makes a PLAMLIB 10211 ## CC just makes a GrossModule. 10212 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10213 reload_cmds='$CC -r -o $output$reload_objs' 10214 hardcode_direct=no 10215 ;; 10216 motorola) 10217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10218 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10219 ;; 10220 esac 10221 runpath_var='LD_RUN_PATH' 10222 hardcode_shlibpath_var=no 10223 ;; 10224 10225 sysv4.3*) 10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10227 hardcode_shlibpath_var=no 10228 export_dynamic_flag_spec='-Bexport' 10229 ;; 10230 10231 sysv4*MP*) 10232 if test -d /usr/nec; then 10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10234 hardcode_shlibpath_var=no 10235 runpath_var=LD_RUN_PATH 10236 hardcode_runpath_var=yes 10237 ld_shlibs=yes 10238 fi 10239 ;; 10240 10241 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10242 no_undefined_flag='$wl-z,text' 10243 archive_cmds_need_lc=no 10244 hardcode_shlibpath_var=no 10245 runpath_var='LD_RUN_PATH' 10246 10247 if test yes = "$GCC"; then 10248 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10249 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10250 else 10251 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10252 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10253 fi 10254 ;; 10255 10256 sysv5* | sco3.2v5* | sco5v6*) 10257 # Note: We CANNOT use -z defs as we might desire, because we do not 10258 # link with -lc, and that would cause any symbols used from libc to 10259 # always be unresolved, which means just about no library would 10260 # ever link correctly. If we're not using GNU ld we use -z text 10261 # though, which does catch some bad symbols but isn't as heavy-handed 10262 # as -z defs. 10263 no_undefined_flag='$wl-z,text' 10264 allow_undefined_flag='$wl-z,nodefs' 10265 archive_cmds_need_lc=no 10266 hardcode_shlibpath_var=no 10267 hardcode_libdir_flag_spec='$wl-R,$libdir' 10268 hardcode_libdir_separator=':' 10269 link_all_deplibs=yes 10270 export_dynamic_flag_spec='$wl-Bexport' 10271 runpath_var='LD_RUN_PATH' 10272 10273 if test yes = "$GCC"; then 10274 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10275 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10276 else 10277 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10278 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10279 fi 10280 ;; 10281 10282 uts4*) 10283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10284 hardcode_libdir_flag_spec='-L$libdir' 10285 hardcode_shlibpath_var=no 10286 ;; 10287 10288 *) 10289 ld_shlibs=no 10290 ;; 10291 esac 10292 10293 if test sni = "$host_vendor"; then 10294 case $host in 10295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10296 export_dynamic_flag_spec='$wl-Blargedynsym' 10297 ;; 10298 esac 10299 fi 10300 fi 10301 10302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10303$as_echo "$ld_shlibs" >&6; } 10304test no = "$ld_shlibs" && can_build_shared=no 10305 10306with_gnu_ld=$with_gnu_ld 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322# 10323# Do we need to explicitly link libc? 10324# 10325case "x$archive_cmds_need_lc" in 10326x|xyes) 10327 # Assume -lc should be added 10328 archive_cmds_need_lc=yes 10329 10330 if test yes,yes = "$GCC,$enable_shared"; then 10331 case $archive_cmds in 10332 *'~'*) 10333 # FIXME: we may have to deal with multi-command sequences. 10334 ;; 10335 '$CC '*) 10336 # Test whether the compiler implicitly links with -lc since on some 10337 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10338 # to ld, don't add -lc before -lgcc. 10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10340$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10341if ${lt_cv_archive_cmds_need_lc+:} false; then : 10342 $as_echo_n "(cached) " >&6 10343else 10344 $RM conftest* 10345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10346 10347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10348 (eval $ac_compile) 2>&5 10349 ac_status=$? 10350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10351 test $ac_status = 0; } 2>conftest.err; then 10352 soname=conftest 10353 lib=conftest 10354 libobjs=conftest.$ac_objext 10355 deplibs= 10356 wl=$lt_prog_compiler_wl 10357 pic_flag=$lt_prog_compiler_pic 10358 compiler_flags=-v 10359 linker_flags=-v 10360 verstring= 10361 output_objdir=. 10362 libname=conftest 10363 lt_save_allow_undefined_flag=$allow_undefined_flag 10364 allow_undefined_flag= 10365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10366 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10367 ac_status=$? 10368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10369 test $ac_status = 0; } 10370 then 10371 lt_cv_archive_cmds_need_lc=no 10372 else 10373 lt_cv_archive_cmds_need_lc=yes 10374 fi 10375 allow_undefined_flag=$lt_save_allow_undefined_flag 10376 else 10377 cat conftest.err 1>&5 10378 fi 10379 $RM conftest* 10380 10381fi 10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10383$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10384 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10385 ;; 10386 esac 10387 fi 10388 ;; 10389esac 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10543$as_echo_n "checking dynamic linker characteristics... " >&6; } 10544 10545if test yes = "$GCC"; then 10546 case $host_os in 10547 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10548 *) lt_awk_arg='/^libraries:/' ;; 10549 esac 10550 case $host_os in 10551 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10552 *) lt_sed_strip_eq='s|=/|/|g' ;; 10553 esac 10554 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10555 case $lt_search_path_spec in 10556 *\;*) 10557 # if the path contains ";" then we assume it to be the separator 10558 # otherwise default to the standard path separator (i.e. ":") - it is 10559 # assumed that no part of a normal pathname contains ";" but that should 10560 # okay in the real world where ";" in dirpaths is itself problematic. 10561 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10562 ;; 10563 *) 10564 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10565 ;; 10566 esac 10567 # Ok, now we have the path, separated by spaces, we can step through it 10568 # and add multilib dir if necessary... 10569 lt_tmp_lt_search_path_spec= 10570 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10571 # ...but if some path component already ends with the multilib dir we assume 10572 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10573 case "$lt_multi_os_dir; $lt_search_path_spec " in 10574 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10575 lt_multi_os_dir= 10576 ;; 10577 esac 10578 for lt_sys_path in $lt_search_path_spec; do 10579 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10580 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10581 elif test -n "$lt_multi_os_dir"; then 10582 test -d "$lt_sys_path" && \ 10583 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10584 fi 10585 done 10586 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10587BEGIN {RS = " "; FS = "/|\n";} { 10588 lt_foo = ""; 10589 lt_count = 0; 10590 for (lt_i = NF; lt_i > 0; lt_i--) { 10591 if ($lt_i != "" && $lt_i != ".") { 10592 if ($lt_i == "..") { 10593 lt_count++; 10594 } else { 10595 if (lt_count == 0) { 10596 lt_foo = "/" $lt_i lt_foo; 10597 } else { 10598 lt_count--; 10599 } 10600 } 10601 } 10602 } 10603 if (lt_foo != "") { lt_freq[lt_foo]++; } 10604 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10605}'` 10606 # AWK program above erroneously prepends '/' to C:/dos/paths 10607 # for these hosts. 10608 case $host_os in 10609 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10610 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10611 esac 10612 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10613else 10614 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10615fi 10616library_names_spec= 10617libname_spec='lib$name' 10618soname_spec= 10619shrext_cmds=.so 10620postinstall_cmds= 10621postuninstall_cmds= 10622finish_cmds= 10623finish_eval= 10624shlibpath_var= 10625shlibpath_overrides_runpath=unknown 10626version_type=none 10627dynamic_linker="$host_os ld.so" 10628sys_lib_dlsearch_path_spec="/lib /usr/lib" 10629need_lib_prefix=unknown 10630hardcode_into_libs=no 10631 10632# when you set need_version to no, make sure it does not cause -set_version 10633# flags to be left without arguments 10634need_version=unknown 10635 10636 10637 10638case $host_os in 10639aix3*) 10640 version_type=linux # correct to gnu/linux during the next big refactor 10641 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10642 shlibpath_var=LIBPATH 10643 10644 # AIX 3 has no versioning support, so we append a major version to the name. 10645 soname_spec='$libname$release$shared_ext$major' 10646 ;; 10647 10648aix[4-9]*) 10649 version_type=linux # correct to gnu/linux during the next big refactor 10650 need_lib_prefix=no 10651 need_version=no 10652 hardcode_into_libs=yes 10653 if test ia64 = "$host_cpu"; then 10654 # AIX 5 supports IA64 10655 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10656 shlibpath_var=LD_LIBRARY_PATH 10657 else 10658 # With GCC up to 2.95.x, collect2 would create an import file 10659 # for dependence libraries. The import file would start with 10660 # the line '#! .'. This would cause the generated library to 10661 # depend on '.', always an invalid library. This was fixed in 10662 # development snapshots of GCC prior to 3.0. 10663 case $host_os in 10664 aix4 | aix4.[01] | aix4.[01].*) 10665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10666 echo ' yes ' 10667 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10668 : 10669 else 10670 can_build_shared=no 10671 fi 10672 ;; 10673 esac 10674 # Using Import Files as archive members, it is possible to support 10675 # filename-based versioning of shared library archives on AIX. While 10676 # this would work for both with and without runtime linking, it will 10677 # prevent static linking of such archives. So we do filename-based 10678 # shared library versioning with .so extension only, which is used 10679 # when both runtime linking and shared linking is enabled. 10680 # Unfortunately, runtime linking may impact performance, so we do 10681 # not want this to be the default eventually. Also, we use the 10682 # versioned .so libs for executables only if there is the -brtl 10683 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10684 # To allow for filename-based versioning support, we need to create 10685 # libNAME.so.V as an archive file, containing: 10686 # *) an Import File, referring to the versioned filename of the 10687 # archive as well as the shared archive member, telling the 10688 # bitwidth (32 or 64) of that shared object, and providing the 10689 # list of exported symbols of that shared object, eventually 10690 # decorated with the 'weak' keyword 10691 # *) the shared object with the F_LOADONLY flag set, to really avoid 10692 # it being seen by the linker. 10693 # At run time we better use the real file rather than another symlink, 10694 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10695 10696 case $with_aix_soname,$aix_use_runtimelinking in 10697 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10698 # soname into executable. Probably we can add versioning support to 10699 # collect2, so additional links can be useful in future. 10700 aix,yes) # traditional libtool 10701 dynamic_linker='AIX unversionable lib.so' 10702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10703 # instead of lib<name>.a to let people know that these are not 10704 # typical AIX shared libraries. 10705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10706 ;; 10707 aix,no) # traditional AIX only 10708 dynamic_linker='AIX lib.a(lib.so.V)' 10709 # We preserve .a as extension for shared libraries through AIX4.2 10710 # and later when we are not doing run time linking. 10711 library_names_spec='$libname$release.a $libname.a' 10712 soname_spec='$libname$release$shared_ext$major' 10713 ;; 10714 svr4,*) # full svr4 only 10715 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10716 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10717 # We do not specify a path in Import Files, so LIBPATH fires. 10718 shlibpath_overrides_runpath=yes 10719 ;; 10720 *,yes) # both, prefer svr4 10721 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10722 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10723 # unpreferred sharedlib libNAME.a needs extra handling 10724 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"' 10725 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"' 10726 # We do not specify a path in Import Files, so LIBPATH fires. 10727 shlibpath_overrides_runpath=yes 10728 ;; 10729 *,no) # both, prefer aix 10730 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10731 library_names_spec='$libname$release.a $libname.a' 10732 soname_spec='$libname$release$shared_ext$major' 10733 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10734 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)' 10735 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"' 10736 ;; 10737 esac 10738 shlibpath_var=LIBPATH 10739 fi 10740 ;; 10741 10742amigaos*) 10743 case $host_cpu in 10744 powerpc) 10745 # Since July 2007 AmigaOS4 officially supports .so libraries. 10746 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10748 ;; 10749 m68k) 10750 library_names_spec='$libname.ixlibrary $libname.a' 10751 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10752 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' 10753 ;; 10754 esac 10755 ;; 10756 10757beos*) 10758 library_names_spec='$libname$shared_ext' 10759 dynamic_linker="$host_os ld.so" 10760 shlibpath_var=LIBRARY_PATH 10761 ;; 10762 10763bsdi[45]*) 10764 version_type=linux # correct to gnu/linux during the next big refactor 10765 need_version=no 10766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10767 soname_spec='$libname$release$shared_ext$major' 10768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10769 shlibpath_var=LD_LIBRARY_PATH 10770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10772 # the default ld.so.conf also contains /usr/contrib/lib and 10773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10774 # libtool to hard-code these into programs 10775 ;; 10776 10777cygwin* | mingw* | pw32* | cegcc*) 10778 version_type=windows 10779 shrext_cmds=.dll 10780 need_version=no 10781 need_lib_prefix=no 10782 10783 case $GCC,$cc_basename in 10784 yes,*) 10785 # gcc 10786 library_names_spec='$libname.dll.a' 10787 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10788 postinstall_cmds='base_file=`basename \$file`~ 10789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10790 dldir=$destdir/`dirname \$dlpath`~ 10791 test -d \$dldir || mkdir -p \$dldir~ 10792 $install_prog $dir/$dlname \$dldir/$dlname~ 10793 chmod a+x \$dldir/$dlname~ 10794 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10795 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10796 fi' 10797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10798 dlpath=$dir/\$dldll~ 10799 $RM \$dlpath' 10800 shlibpath_overrides_runpath=yes 10801 10802 case $host_os in 10803 cygwin*) 10804 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10805 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10806 10807 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10808 ;; 10809 mingw* | cegcc*) 10810 # MinGW DLLs use traditional 'lib' prefix 10811 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10812 ;; 10813 pw32*) 10814 # pw32 DLLs use 'pw' prefix rather than 'lib' 10815 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10816 ;; 10817 esac 10818 dynamic_linker='Win32 ld.exe' 10819 ;; 10820 10821 *,cl*) 10822 # Native MSVC 10823 libname_spec='$name' 10824 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10825 library_names_spec='$libname.dll.lib' 10826 10827 case $build_os in 10828 mingw*) 10829 sys_lib_search_path_spec= 10830 lt_save_ifs=$IFS 10831 IFS=';' 10832 for lt_path in $LIB 10833 do 10834 IFS=$lt_save_ifs 10835 # Let DOS variable expansion print the short 8.3 style file name. 10836 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10837 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10838 done 10839 IFS=$lt_save_ifs 10840 # Convert to MSYS style. 10841 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10842 ;; 10843 cygwin*) 10844 # Convert to unix form, then to dos form, then back to unix form 10845 # but this time dos style (no spaces!) so that the unix form looks 10846 # like /cygdrive/c/PROGRA~1:/cygdr... 10847 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10848 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10849 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10850 ;; 10851 *) 10852 sys_lib_search_path_spec=$LIB 10853 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10854 # It is most probably a Windows format PATH. 10855 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10856 else 10857 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10858 fi 10859 # FIXME: find the short name or the path components, as spaces are 10860 # common. (e.g. "Program Files" -> "PROGRA~1") 10861 ;; 10862 esac 10863 10864 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10865 postinstall_cmds='base_file=`basename \$file`~ 10866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10867 dldir=$destdir/`dirname \$dlpath`~ 10868 test -d \$dldir || mkdir -p \$dldir~ 10869 $install_prog $dir/$dlname \$dldir/$dlname' 10870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10871 dlpath=$dir/\$dldll~ 10872 $RM \$dlpath' 10873 shlibpath_overrides_runpath=yes 10874 dynamic_linker='Win32 link.exe' 10875 ;; 10876 10877 *) 10878 # Assume MSVC wrapper 10879 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10880 dynamic_linker='Win32 ld.exe' 10881 ;; 10882 esac 10883 # FIXME: first we should search . and the directory the executable is in 10884 shlibpath_var=PATH 10885 ;; 10886 10887darwin* | rhapsody*) 10888 dynamic_linker="$host_os dyld" 10889 version_type=darwin 10890 need_lib_prefix=no 10891 need_version=no 10892 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10893 soname_spec='$libname$release$major$shared_ext' 10894 shlibpath_overrides_runpath=yes 10895 shlibpath_var=DYLD_LIBRARY_PATH 10896 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10897 10898 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10899 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10900 ;; 10901 10902dgux*) 10903 version_type=linux # correct to gnu/linux during the next big refactor 10904 need_lib_prefix=no 10905 need_version=no 10906 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10907 soname_spec='$libname$release$shared_ext$major' 10908 shlibpath_var=LD_LIBRARY_PATH 10909 ;; 10910 10911freebsd* | dragonfly*) 10912 # DragonFly does not have aout. When/if they implement a new 10913 # versioning mechanism, adjust this. 10914 if test -x /usr/bin/objformat; then 10915 objformat=`/usr/bin/objformat` 10916 else 10917 case $host_os in 10918 freebsd[23].*) objformat=aout ;; 10919 *) objformat=elf ;; 10920 esac 10921 fi 10922 version_type=freebsd-$objformat 10923 case $version_type in 10924 freebsd-elf*) 10925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10926 soname_spec='$libname$release$shared_ext$major' 10927 need_version=no 10928 need_lib_prefix=no 10929 ;; 10930 freebsd-*) 10931 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10932 need_version=yes 10933 ;; 10934 esac 10935 shlibpath_var=LD_LIBRARY_PATH 10936 case $host_os in 10937 freebsd2.*) 10938 shlibpath_overrides_runpath=yes 10939 ;; 10940 freebsd3.[01]* | freebsdelf3.[01]*) 10941 shlibpath_overrides_runpath=yes 10942 hardcode_into_libs=yes 10943 ;; 10944 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10945 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10946 shlibpath_overrides_runpath=no 10947 hardcode_into_libs=yes 10948 ;; 10949 *) # from 4.6 on, and DragonFly 10950 shlibpath_overrides_runpath=yes 10951 hardcode_into_libs=yes 10952 ;; 10953 esac 10954 ;; 10955 10956haiku*) 10957 version_type=linux # correct to gnu/linux during the next big refactor 10958 need_lib_prefix=no 10959 need_version=no 10960 dynamic_linker="$host_os runtime_loader" 10961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10962 soname_spec='$libname$release$shared_ext$major' 10963 shlibpath_var=LIBRARY_PATH 10964 shlibpath_overrides_runpath=no 10965 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10966 hardcode_into_libs=yes 10967 ;; 10968 10969hpux9* | hpux10* | hpux11*) 10970 # Give a soname corresponding to the major version so that dld.sl refuses to 10971 # link against other versions. 10972 version_type=sunos 10973 need_lib_prefix=no 10974 need_version=no 10975 case $host_cpu in 10976 ia64*) 10977 shrext_cmds='.so' 10978 hardcode_into_libs=yes 10979 dynamic_linker="$host_os dld.so" 10980 shlibpath_var=LD_LIBRARY_PATH 10981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10983 soname_spec='$libname$release$shared_ext$major' 10984 if test 32 = "$HPUX_IA64_MODE"; then 10985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10986 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10987 else 10988 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10989 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10990 fi 10991 ;; 10992 hppa*64*) 10993 shrext_cmds='.sl' 10994 hardcode_into_libs=yes 10995 dynamic_linker="$host_os dld.sl" 10996 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10999 soname_spec='$libname$release$shared_ext$major' 11000 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11002 ;; 11003 *) 11004 shrext_cmds='.sl' 11005 dynamic_linker="$host_os dld.sl" 11006 shlibpath_var=SHLIB_PATH 11007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11009 soname_spec='$libname$release$shared_ext$major' 11010 ;; 11011 esac 11012 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11013 postinstall_cmds='chmod 555 $lib' 11014 # or fails outright, so override atomically: 11015 install_override_mode=555 11016 ;; 11017 11018interix[3-9]*) 11019 version_type=linux # correct to gnu/linux during the next big refactor 11020 need_lib_prefix=no 11021 need_version=no 11022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11023 soname_spec='$libname$release$shared_ext$major' 11024 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11025 shlibpath_var=LD_LIBRARY_PATH 11026 shlibpath_overrides_runpath=no 11027 hardcode_into_libs=yes 11028 ;; 11029 11030irix5* | irix6* | nonstopux*) 11031 case $host_os in 11032 nonstopux*) version_type=nonstopux ;; 11033 *) 11034 if test yes = "$lt_cv_prog_gnu_ld"; then 11035 version_type=linux # correct to gnu/linux during the next big refactor 11036 else 11037 version_type=irix 11038 fi ;; 11039 esac 11040 need_lib_prefix=no 11041 need_version=no 11042 soname_spec='$libname$release$shared_ext$major' 11043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11044 case $host_os in 11045 irix5* | nonstopux*) 11046 libsuff= shlibsuff= 11047 ;; 11048 *) 11049 case $LD in # libtool.m4 will add one of these switches to LD 11050 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11051 libsuff= shlibsuff= libmagic=32-bit;; 11052 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11053 libsuff=32 shlibsuff=N32 libmagic=N32;; 11054 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11055 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11056 *) libsuff= shlibsuff= libmagic=never-match;; 11057 esac 11058 ;; 11059 esac 11060 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11061 shlibpath_overrides_runpath=no 11062 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11063 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11064 hardcode_into_libs=yes 11065 ;; 11066 11067# No shared lib support for Linux oldld, aout, or coff. 11068linux*oldld* | linux*aout* | linux*coff*) 11069 dynamic_linker=no 11070 ;; 11071 11072linux*android*) 11073 version_type=none # Android doesn't support versioned libraries. 11074 need_lib_prefix=no 11075 need_version=no 11076 library_names_spec='$libname$release$shared_ext' 11077 soname_spec='$libname$release$shared_ext' 11078 finish_cmds= 11079 shlibpath_var=LD_LIBRARY_PATH 11080 shlibpath_overrides_runpath=yes 11081 11082 # This implies no fast_install, which is unacceptable. 11083 # Some rework will be needed to allow for fast_install 11084 # before this can be enabled. 11085 hardcode_into_libs=yes 11086 11087 dynamic_linker='Android linker' 11088 # Don't embed -rpath directories since the linker doesn't support them. 11089 hardcode_libdir_flag_spec='-L$libdir' 11090 ;; 11091 11092# This must be glibc/ELF. 11093linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11094 version_type=linux # correct to gnu/linux during the next big refactor 11095 need_lib_prefix=no 11096 need_version=no 11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11098 soname_spec='$libname$release$shared_ext$major' 11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11100 shlibpath_var=LD_LIBRARY_PATH 11101 shlibpath_overrides_runpath=no 11102 11103 # Some binutils ld are patched to set DT_RUNPATH 11104 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11105 $as_echo_n "(cached) " >&6 11106else 11107 lt_cv_shlibpath_overrides_runpath=no 11108 save_LDFLAGS=$LDFLAGS 11109 save_libdir=$libdir 11110 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11111 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11113/* end confdefs.h. */ 11114 11115int 11116main () 11117{ 11118 11119 ; 11120 return 0; 11121} 11122_ACEOF 11123if ac_fn_c_try_link "$LINENO"; then : 11124 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11125 lt_cv_shlibpath_overrides_runpath=yes 11126fi 11127fi 11128rm -f core conftest.err conftest.$ac_objext \ 11129 conftest$ac_exeext conftest.$ac_ext 11130 LDFLAGS=$save_LDFLAGS 11131 libdir=$save_libdir 11132 11133fi 11134 11135 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11136 11137 # This implies no fast_install, which is unacceptable. 11138 # Some rework will be needed to allow for fast_install 11139 # before this can be enabled. 11140 hardcode_into_libs=yes 11141 11142 # Ideally, we could use ldconfig to report *all* directores which are 11143 # searched for libraries, however this is still not possible. Aside from not 11144 # being certain /sbin/ldconfig is available, command 11145 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11146 # even though it is searched at run-time. Try to do the best guess by 11147 # appending ld.so.conf contents (and includes) to the search path. 11148 if test -f /etc/ld.so.conf; then 11149 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' ' '` 11150 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11151 fi 11152 11153 # We used to test for /lib/ld.so.1 and disable shared libraries on 11154 # powerpc, because MkLinux only supported shared libraries with the 11155 # GNU dynamic linker. Since this was broken with cross compilers, 11156 # most powerpc-linux boxes support dynamic linking these days and 11157 # people can always --disable-shared, the test was removed, and we 11158 # assume the GNU/Linux dynamic linker is in use. 11159 dynamic_linker='GNU/Linux ld.so' 11160 ;; 11161 11162netbsd*) 11163 version_type=sunos 11164 need_lib_prefix=no 11165 need_version=no 11166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11167 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11168 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11169 dynamic_linker='NetBSD (a.out) ld.so' 11170 else 11171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11172 soname_spec='$libname$release$shared_ext$major' 11173 dynamic_linker='NetBSD ld.elf_so' 11174 fi 11175 shlibpath_var=LD_LIBRARY_PATH 11176 shlibpath_overrides_runpath=yes 11177 hardcode_into_libs=yes 11178 ;; 11179 11180newsos6) 11181 version_type=linux # correct to gnu/linux during the next big refactor 11182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11183 shlibpath_var=LD_LIBRARY_PATH 11184 shlibpath_overrides_runpath=yes 11185 ;; 11186 11187*nto* | *qnx*) 11188 version_type=qnx 11189 need_lib_prefix=no 11190 need_version=no 11191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11192 soname_spec='$libname$release$shared_ext$major' 11193 shlibpath_var=LD_LIBRARY_PATH 11194 shlibpath_overrides_runpath=no 11195 hardcode_into_libs=yes 11196 dynamic_linker='ldqnx.so' 11197 ;; 11198 11199openbsd* | bitrig*) 11200 version_type=sunos 11201 sys_lib_dlsearch_path_spec=/usr/lib 11202 need_lib_prefix=no 11203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11204 need_version=no 11205 else 11206 need_version=yes 11207 fi 11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11210 shlibpath_var=LD_LIBRARY_PATH 11211 shlibpath_overrides_runpath=yes 11212 ;; 11213 11214os2*) 11215 libname_spec='$name' 11216 version_type=windows 11217 shrext_cmds=.dll 11218 need_version=no 11219 need_lib_prefix=no 11220 # OS/2 can only load a DLL with a base name of 8 characters or less. 11221 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11222 v=$($ECHO $release$versuffix | tr -d .-); 11223 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11224 $ECHO $n$v`$shared_ext' 11225 library_names_spec='${libname}_dll.$libext' 11226 dynamic_linker='OS/2 ld.exe' 11227 shlibpath_var=BEGINLIBPATH 11228 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11230 postinstall_cmds='base_file=`basename \$file`~ 11231 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11232 dldir=$destdir/`dirname \$dlpath`~ 11233 test -d \$dldir || mkdir -p \$dldir~ 11234 $install_prog $dir/$dlname \$dldir/$dlname~ 11235 chmod a+x \$dldir/$dlname~ 11236 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11237 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11238 fi' 11239 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11240 dlpath=$dir/\$dldll~ 11241 $RM \$dlpath' 11242 ;; 11243 11244osf3* | osf4* | osf5*) 11245 version_type=osf 11246 need_lib_prefix=no 11247 need_version=no 11248 soname_spec='$libname$release$shared_ext$major' 11249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11250 shlibpath_var=LD_LIBRARY_PATH 11251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11253 ;; 11254 11255rdos*) 11256 dynamic_linker=no 11257 ;; 11258 11259solaris*) 11260 version_type=linux # correct to gnu/linux during the next big refactor 11261 need_lib_prefix=no 11262 need_version=no 11263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11264 soname_spec='$libname$release$shared_ext$major' 11265 shlibpath_var=LD_LIBRARY_PATH 11266 shlibpath_overrides_runpath=yes 11267 hardcode_into_libs=yes 11268 # ldd complains unless libraries are executable 11269 postinstall_cmds='chmod +x $lib' 11270 ;; 11271 11272sunos4*) 11273 version_type=sunos 11274 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11275 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11276 shlibpath_var=LD_LIBRARY_PATH 11277 shlibpath_overrides_runpath=yes 11278 if test yes = "$with_gnu_ld"; then 11279 need_lib_prefix=no 11280 fi 11281 need_version=yes 11282 ;; 11283 11284sysv4 | sysv4.3*) 11285 version_type=linux # correct to gnu/linux during the next big refactor 11286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11287 soname_spec='$libname$release$shared_ext$major' 11288 shlibpath_var=LD_LIBRARY_PATH 11289 case $host_vendor in 11290 sni) 11291 shlibpath_overrides_runpath=no 11292 need_lib_prefix=no 11293 runpath_var=LD_RUN_PATH 11294 ;; 11295 siemens) 11296 need_lib_prefix=no 11297 ;; 11298 motorola) 11299 need_lib_prefix=no 11300 need_version=no 11301 shlibpath_overrides_runpath=no 11302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11303 ;; 11304 esac 11305 ;; 11306 11307sysv4*MP*) 11308 if test -d /usr/nec; then 11309 version_type=linux # correct to gnu/linux during the next big refactor 11310 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11311 soname_spec='$libname$shared_ext.$major' 11312 shlibpath_var=LD_LIBRARY_PATH 11313 fi 11314 ;; 11315 11316sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11317 version_type=sco 11318 need_lib_prefix=no 11319 need_version=no 11320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11321 soname_spec='$libname$release$shared_ext$major' 11322 shlibpath_var=LD_LIBRARY_PATH 11323 shlibpath_overrides_runpath=yes 11324 hardcode_into_libs=yes 11325 if test yes = "$with_gnu_ld"; then 11326 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11327 else 11328 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11329 case $host_os in 11330 sco3.2v5*) 11331 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11332 ;; 11333 esac 11334 fi 11335 sys_lib_dlsearch_path_spec='/usr/lib' 11336 ;; 11337 11338tpf*) 11339 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11340 version_type=linux # correct to gnu/linux during the next big refactor 11341 need_lib_prefix=no 11342 need_version=no 11343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11344 shlibpath_var=LD_LIBRARY_PATH 11345 shlibpath_overrides_runpath=no 11346 hardcode_into_libs=yes 11347 ;; 11348 11349uts4*) 11350 version_type=linux # correct to gnu/linux during the next big refactor 11351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11352 soname_spec='$libname$release$shared_ext$major' 11353 shlibpath_var=LD_LIBRARY_PATH 11354 ;; 11355 11356*) 11357 dynamic_linker=no 11358 ;; 11359esac 11360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11361$as_echo "$dynamic_linker" >&6; } 11362test no = "$dynamic_linker" && can_build_shared=no 11363 11364variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11365if test yes = "$GCC"; then 11366 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11367fi 11368 11369if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11370 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11371fi 11372 11373if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11374 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11375fi 11376 11377# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11378configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11379 11380# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11381func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11382 11383# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11384configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11483$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11484hardcode_action= 11485if test -n "$hardcode_libdir_flag_spec" || 11486 test -n "$runpath_var" || 11487 test yes = "$hardcode_automatic"; then 11488 11489 # We can hardcode non-existent directories. 11490 if test no != "$hardcode_direct" && 11491 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11492 # have to relink, otherwise we might link with an installed library 11493 # when we should be linking with a yet-to-be-installed one 11494 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11495 test no != "$hardcode_minus_L"; then 11496 # Linking always hardcodes the temporary library directory. 11497 hardcode_action=relink 11498 else 11499 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11500 hardcode_action=immediate 11501 fi 11502else 11503 # We cannot hardcode anything, or else we can only hardcode existing 11504 # directories. 11505 hardcode_action=unsupported 11506fi 11507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11508$as_echo "$hardcode_action" >&6; } 11509 11510if test relink = "$hardcode_action" || 11511 test yes = "$inherit_rpath"; then 11512 # Fast installation is not supported 11513 enable_fast_install=no 11514elif test yes = "$shlibpath_overrides_runpath" || 11515 test no = "$enable_shared"; then 11516 # Fast installation is not necessary 11517 enable_fast_install=needless 11518fi 11519 11520 11521 11522 11523 11524 11525 if test yes != "$enable_dlopen"; then 11526 enable_dlopen=unknown 11527 enable_dlopen_self=unknown 11528 enable_dlopen_self_static=unknown 11529else 11530 lt_cv_dlopen=no 11531 lt_cv_dlopen_libs= 11532 11533 case $host_os in 11534 beos*) 11535 lt_cv_dlopen=load_add_on 11536 lt_cv_dlopen_libs= 11537 lt_cv_dlopen_self=yes 11538 ;; 11539 11540 mingw* | pw32* | cegcc*) 11541 lt_cv_dlopen=LoadLibrary 11542 lt_cv_dlopen_libs= 11543 ;; 11544 11545 cygwin*) 11546 lt_cv_dlopen=dlopen 11547 lt_cv_dlopen_libs= 11548 ;; 11549 11550 darwin*) 11551 # if libdl is installed we need to link against it 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11553$as_echo_n "checking for dlopen in -ldl... " >&6; } 11554if ${ac_cv_lib_dl_dlopen+:} false; then : 11555 $as_echo_n "(cached) " >&6 11556else 11557 ac_check_lib_save_LIBS=$LIBS 11558LIBS="-ldl $LIBS" 11559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11560/* end confdefs.h. */ 11561 11562/* Override any GCC internal prototype to avoid an error. 11563 Use char because int might match the return type of a GCC 11564 builtin and then its argument prototype would still apply. */ 11565#ifdef __cplusplus 11566extern "C" 11567#endif 11568char dlopen (); 11569int 11570main () 11571{ 11572return dlopen (); 11573 ; 11574 return 0; 11575} 11576_ACEOF 11577if ac_fn_c_try_link "$LINENO"; then : 11578 ac_cv_lib_dl_dlopen=yes 11579else 11580 ac_cv_lib_dl_dlopen=no 11581fi 11582rm -f core conftest.err conftest.$ac_objext \ 11583 conftest$ac_exeext conftest.$ac_ext 11584LIBS=$ac_check_lib_save_LIBS 11585fi 11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11587$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11588if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11589 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11590else 11591 11592 lt_cv_dlopen=dyld 11593 lt_cv_dlopen_libs= 11594 lt_cv_dlopen_self=yes 11595 11596fi 11597 11598 ;; 11599 11600 tpf*) 11601 # Don't try to run any link tests for TPF. We know it's impossible 11602 # because TPF is a cross-compiler, and we know how we open DSOs. 11603 lt_cv_dlopen=dlopen 11604 lt_cv_dlopen_libs= 11605 lt_cv_dlopen_self=no 11606 ;; 11607 11608 *) 11609 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11610if test "x$ac_cv_func_shl_load" = xyes; then : 11611 lt_cv_dlopen=shl_load 11612else 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11614$as_echo_n "checking for shl_load in -ldld... " >&6; } 11615if ${ac_cv_lib_dld_shl_load+:} false; then : 11616 $as_echo_n "(cached) " >&6 11617else 11618 ac_check_lib_save_LIBS=$LIBS 11619LIBS="-ldld $LIBS" 11620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11621/* end confdefs.h. */ 11622 11623/* Override any GCC internal prototype to avoid an error. 11624 Use char because int might match the return type of a GCC 11625 builtin and then its argument prototype would still apply. */ 11626#ifdef __cplusplus 11627extern "C" 11628#endif 11629char shl_load (); 11630int 11631main () 11632{ 11633return shl_load (); 11634 ; 11635 return 0; 11636} 11637_ACEOF 11638if ac_fn_c_try_link "$LINENO"; then : 11639 ac_cv_lib_dld_shl_load=yes 11640else 11641 ac_cv_lib_dld_shl_load=no 11642fi 11643rm -f core conftest.err conftest.$ac_objext \ 11644 conftest$ac_exeext conftest.$ac_ext 11645LIBS=$ac_check_lib_save_LIBS 11646fi 11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11648$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11649if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11650 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11651else 11652 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11653if test "x$ac_cv_func_dlopen" = xyes; then : 11654 lt_cv_dlopen=dlopen 11655else 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11657$as_echo_n "checking for dlopen in -ldl... " >&6; } 11658if ${ac_cv_lib_dl_dlopen+:} false; then : 11659 $as_echo_n "(cached) " >&6 11660else 11661 ac_check_lib_save_LIBS=$LIBS 11662LIBS="-ldl $LIBS" 11663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11664/* end confdefs.h. */ 11665 11666/* Override any GCC internal prototype to avoid an error. 11667 Use char because int might match the return type of a GCC 11668 builtin and then its argument prototype would still apply. */ 11669#ifdef __cplusplus 11670extern "C" 11671#endif 11672char dlopen (); 11673int 11674main () 11675{ 11676return dlopen (); 11677 ; 11678 return 0; 11679} 11680_ACEOF 11681if ac_fn_c_try_link "$LINENO"; then : 11682 ac_cv_lib_dl_dlopen=yes 11683else 11684 ac_cv_lib_dl_dlopen=no 11685fi 11686rm -f core conftest.err conftest.$ac_objext \ 11687 conftest$ac_exeext conftest.$ac_ext 11688LIBS=$ac_check_lib_save_LIBS 11689fi 11690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11691$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11692if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11693 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11694else 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11696$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11697if ${ac_cv_lib_svld_dlopen+:} false; then : 11698 $as_echo_n "(cached) " >&6 11699else 11700 ac_check_lib_save_LIBS=$LIBS 11701LIBS="-lsvld $LIBS" 11702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11703/* end confdefs.h. */ 11704 11705/* Override any GCC internal prototype to avoid an error. 11706 Use char because int might match the return type of a GCC 11707 builtin and then its argument prototype would still apply. */ 11708#ifdef __cplusplus 11709extern "C" 11710#endif 11711char dlopen (); 11712int 11713main () 11714{ 11715return dlopen (); 11716 ; 11717 return 0; 11718} 11719_ACEOF 11720if ac_fn_c_try_link "$LINENO"; then : 11721 ac_cv_lib_svld_dlopen=yes 11722else 11723 ac_cv_lib_svld_dlopen=no 11724fi 11725rm -f core conftest.err conftest.$ac_objext \ 11726 conftest$ac_exeext conftest.$ac_ext 11727LIBS=$ac_check_lib_save_LIBS 11728fi 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11730$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11731if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11732 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11733else 11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11735$as_echo_n "checking for dld_link in -ldld... " >&6; } 11736if ${ac_cv_lib_dld_dld_link+:} false; then : 11737 $as_echo_n "(cached) " >&6 11738else 11739 ac_check_lib_save_LIBS=$LIBS 11740LIBS="-ldld $LIBS" 11741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11742/* end confdefs.h. */ 11743 11744/* Override any GCC internal prototype to avoid an error. 11745 Use char because int might match the return type of a GCC 11746 builtin and then its argument prototype would still apply. */ 11747#ifdef __cplusplus 11748extern "C" 11749#endif 11750char dld_link (); 11751int 11752main () 11753{ 11754return dld_link (); 11755 ; 11756 return 0; 11757} 11758_ACEOF 11759if ac_fn_c_try_link "$LINENO"; then : 11760 ac_cv_lib_dld_dld_link=yes 11761else 11762 ac_cv_lib_dld_dld_link=no 11763fi 11764rm -f core conftest.err conftest.$ac_objext \ 11765 conftest$ac_exeext conftest.$ac_ext 11766LIBS=$ac_check_lib_save_LIBS 11767fi 11768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11769$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11770if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11771 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11772fi 11773 11774 11775fi 11776 11777 11778fi 11779 11780 11781fi 11782 11783 11784fi 11785 11786 11787fi 11788 11789 ;; 11790 esac 11791 11792 if test no = "$lt_cv_dlopen"; then 11793 enable_dlopen=no 11794 else 11795 enable_dlopen=yes 11796 fi 11797 11798 case $lt_cv_dlopen in 11799 dlopen) 11800 save_CPPFLAGS=$CPPFLAGS 11801 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11802 11803 save_LDFLAGS=$LDFLAGS 11804 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11805 11806 save_LIBS=$LIBS 11807 LIBS="$lt_cv_dlopen_libs $LIBS" 11808 11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11810$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11811if ${lt_cv_dlopen_self+:} false; then : 11812 $as_echo_n "(cached) " >&6 11813else 11814 if test yes = "$cross_compiling"; then : 11815 lt_cv_dlopen_self=cross 11816else 11817 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11818 lt_status=$lt_dlunknown 11819 cat > conftest.$ac_ext <<_LT_EOF 11820#line $LINENO "configure" 11821#include "confdefs.h" 11822 11823#if HAVE_DLFCN_H 11824#include <dlfcn.h> 11825#endif 11826 11827#include <stdio.h> 11828 11829#ifdef RTLD_GLOBAL 11830# define LT_DLGLOBAL RTLD_GLOBAL 11831#else 11832# ifdef DL_GLOBAL 11833# define LT_DLGLOBAL DL_GLOBAL 11834# else 11835# define LT_DLGLOBAL 0 11836# endif 11837#endif 11838 11839/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11840 find out it does not work in some platform. */ 11841#ifndef LT_DLLAZY_OR_NOW 11842# ifdef RTLD_LAZY 11843# define LT_DLLAZY_OR_NOW RTLD_LAZY 11844# else 11845# ifdef DL_LAZY 11846# define LT_DLLAZY_OR_NOW DL_LAZY 11847# else 11848# ifdef RTLD_NOW 11849# define LT_DLLAZY_OR_NOW RTLD_NOW 11850# else 11851# ifdef DL_NOW 11852# define LT_DLLAZY_OR_NOW DL_NOW 11853# else 11854# define LT_DLLAZY_OR_NOW 0 11855# endif 11856# endif 11857# endif 11858# endif 11859#endif 11860 11861/* When -fvisibility=hidden is used, assume the code has been annotated 11862 correspondingly for the symbols needed. */ 11863#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11864int fnord () __attribute__((visibility("default"))); 11865#endif 11866 11867int fnord () { return 42; } 11868int main () 11869{ 11870 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11871 int status = $lt_dlunknown; 11872 11873 if (self) 11874 { 11875 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11876 else 11877 { 11878 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11879 else puts (dlerror ()); 11880 } 11881 /* dlclose (self); */ 11882 } 11883 else 11884 puts (dlerror ()); 11885 11886 return status; 11887} 11888_LT_EOF 11889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11890 (eval $ac_link) 2>&5 11891 ac_status=$? 11892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11893 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11894 (./conftest; exit; ) >&5 2>/dev/null 11895 lt_status=$? 11896 case x$lt_status in 11897 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11898 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11899 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11900 esac 11901 else : 11902 # compilation failed 11903 lt_cv_dlopen_self=no 11904 fi 11905fi 11906rm -fr conftest* 11907 11908 11909fi 11910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11911$as_echo "$lt_cv_dlopen_self" >&6; } 11912 11913 if test yes = "$lt_cv_dlopen_self"; then 11914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11916$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11917if ${lt_cv_dlopen_self_static+:} false; then : 11918 $as_echo_n "(cached) " >&6 11919else 11920 if test yes = "$cross_compiling"; then : 11921 lt_cv_dlopen_self_static=cross 11922else 11923 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11924 lt_status=$lt_dlunknown 11925 cat > conftest.$ac_ext <<_LT_EOF 11926#line $LINENO "configure" 11927#include "confdefs.h" 11928 11929#if HAVE_DLFCN_H 11930#include <dlfcn.h> 11931#endif 11932 11933#include <stdio.h> 11934 11935#ifdef RTLD_GLOBAL 11936# define LT_DLGLOBAL RTLD_GLOBAL 11937#else 11938# ifdef DL_GLOBAL 11939# define LT_DLGLOBAL DL_GLOBAL 11940# else 11941# define LT_DLGLOBAL 0 11942# endif 11943#endif 11944 11945/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11946 find out it does not work in some platform. */ 11947#ifndef LT_DLLAZY_OR_NOW 11948# ifdef RTLD_LAZY 11949# define LT_DLLAZY_OR_NOW RTLD_LAZY 11950# else 11951# ifdef DL_LAZY 11952# define LT_DLLAZY_OR_NOW DL_LAZY 11953# else 11954# ifdef RTLD_NOW 11955# define LT_DLLAZY_OR_NOW RTLD_NOW 11956# else 11957# ifdef DL_NOW 11958# define LT_DLLAZY_OR_NOW DL_NOW 11959# else 11960# define LT_DLLAZY_OR_NOW 0 11961# endif 11962# endif 11963# endif 11964# endif 11965#endif 11966 11967/* When -fvisibility=hidden is used, assume the code has been annotated 11968 correspondingly for the symbols needed. */ 11969#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11970int fnord () __attribute__((visibility("default"))); 11971#endif 11972 11973int fnord () { return 42; } 11974int main () 11975{ 11976 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11977 int status = $lt_dlunknown; 11978 11979 if (self) 11980 { 11981 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11982 else 11983 { 11984 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11985 else puts (dlerror ()); 11986 } 11987 /* dlclose (self); */ 11988 } 11989 else 11990 puts (dlerror ()); 11991 11992 return status; 11993} 11994_LT_EOF 11995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11996 (eval $ac_link) 2>&5 11997 ac_status=$? 11998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11999 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12000 (./conftest; exit; ) >&5 2>/dev/null 12001 lt_status=$? 12002 case x$lt_status in 12003 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12004 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12005 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12006 esac 12007 else : 12008 # compilation failed 12009 lt_cv_dlopen_self_static=no 12010 fi 12011fi 12012rm -fr conftest* 12013 12014 12015fi 12016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12017$as_echo "$lt_cv_dlopen_self_static" >&6; } 12018 fi 12019 12020 CPPFLAGS=$save_CPPFLAGS 12021 LDFLAGS=$save_LDFLAGS 12022 LIBS=$save_LIBS 12023 ;; 12024 esac 12025 12026 case $lt_cv_dlopen_self in 12027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12028 *) enable_dlopen_self=unknown ;; 12029 esac 12030 12031 case $lt_cv_dlopen_self_static in 12032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12033 *) enable_dlopen_self_static=unknown ;; 12034 esac 12035fi 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053striplib= 12054old_striplib= 12055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12056$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12057if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12058 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12059 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12061$as_echo "yes" >&6; } 12062else 12063# FIXME - insert some real tests, host_os isn't really good enough 12064 case $host_os in 12065 darwin*) 12066 if test -n "$STRIP"; then 12067 striplib="$STRIP -x" 12068 old_striplib="$STRIP -S" 12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12070$as_echo "yes" >&6; } 12071 else 12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12073$as_echo "no" >&6; } 12074 fi 12075 ;; 12076 *) 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12078$as_echo "no" >&6; } 12079 ;; 12080 esac 12081fi 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 # Report what library types will actually be built 12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12096$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12098$as_echo "$can_build_shared" >&6; } 12099 12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12101$as_echo_n "checking whether to build shared libraries... " >&6; } 12102 test no = "$can_build_shared" && enable_shared=no 12103 12104 # On AIX, shared libraries and static libraries use the same namespace, and 12105 # are all built from PIC. 12106 case $host_os in 12107 aix3*) 12108 test yes = "$enable_shared" && enable_static=no 12109 if test -n "$RANLIB"; then 12110 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12111 postinstall_cmds='$RANLIB $lib' 12112 fi 12113 ;; 12114 12115 aix[4-9]*) 12116 if test ia64 != "$host_cpu"; then 12117 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12118 yes,aix,yes) ;; # shared object as lib.so file only 12119 yes,svr4,*) ;; # shared object as lib.so archive member only 12120 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12121 esac 12122 fi 12123 ;; 12124 esac 12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12126$as_echo "$enable_shared" >&6; } 12127 12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12129$as_echo_n "checking whether to build static libraries... " >&6; } 12130 # Make sure either enable_shared or enable_static is yes. 12131 test yes = "$enable_shared" || enable_static=yes 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12133$as_echo "$enable_static" >&6; } 12134 12135 12136 12137 12138fi 12139ac_ext=c 12140ac_cpp='$CPP $CPPFLAGS' 12141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12143ac_compiler_gnu=$ac_cv_c_compiler_gnu 12144 12145CC=$lt_save_CC 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 ac_config_commands="$ac_config_commands libtool" 12162 12163 12164 12165 12166# Only expand once: 12167 12168 12169 12170# Require xorg-macros minimum of 1.12 for DocBook external references 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12183$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12184if ${ac_cv_prog_cc_c99+:} false; then : 12185 $as_echo_n "(cached) " >&6 12186else 12187 ac_cv_prog_cc_c99=no 12188ac_save_CC=$CC 12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12190/* end confdefs.h. */ 12191#include <stdarg.h> 12192#include <stdbool.h> 12193#include <stdlib.h> 12194#include <wchar.h> 12195#include <stdio.h> 12196 12197// Check varargs macros. These examples are taken from C99 6.10.3.5. 12198#define debug(...) fprintf (stderr, __VA_ARGS__) 12199#define showlist(...) puts (#__VA_ARGS__) 12200#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12201static void 12202test_varargs_macros (void) 12203{ 12204 int x = 1234; 12205 int y = 5678; 12206 debug ("Flag"); 12207 debug ("X = %d\n", x); 12208 showlist (The first, second, and third items.); 12209 report (x>y, "x is %d but y is %d", x, y); 12210} 12211 12212// Check long long types. 12213#define BIG64 18446744073709551615ull 12214#define BIG32 4294967295ul 12215#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12216#if !BIG_OK 12217 your preprocessor is broken; 12218#endif 12219#if BIG_OK 12220#else 12221 your preprocessor is broken; 12222#endif 12223static long long int bignum = -9223372036854775807LL; 12224static unsigned long long int ubignum = BIG64; 12225 12226struct incomplete_array 12227{ 12228 int datasize; 12229 double data[]; 12230}; 12231 12232struct named_init { 12233 int number; 12234 const wchar_t *name; 12235 double average; 12236}; 12237 12238typedef const char *ccp; 12239 12240static inline int 12241test_restrict (ccp restrict text) 12242{ 12243 // See if C++-style comments work. 12244 // Iterate through items via the restricted pointer. 12245 // Also check for declarations in for loops. 12246 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12247 continue; 12248 return 0; 12249} 12250 12251// Check varargs and va_copy. 12252static void 12253test_varargs (const char *format, ...) 12254{ 12255 va_list args; 12256 va_start (args, format); 12257 va_list args_copy; 12258 va_copy (args_copy, args); 12259 12260 const char *str; 12261 int number; 12262 float fnumber; 12263 12264 while (*format) 12265 { 12266 switch (*format++) 12267 { 12268 case 's': // string 12269 str = va_arg (args_copy, const char *); 12270 break; 12271 case 'd': // int 12272 number = va_arg (args_copy, int); 12273 break; 12274 case 'f': // float 12275 fnumber = va_arg (args_copy, double); 12276 break; 12277 default: 12278 break; 12279 } 12280 } 12281 va_end (args_copy); 12282 va_end (args); 12283} 12284 12285int 12286main () 12287{ 12288 12289 // Check bool. 12290 _Bool success = false; 12291 12292 // Check restrict. 12293 if (test_restrict ("String literal") == 0) 12294 success = true; 12295 char *restrict newvar = "Another string"; 12296 12297 // Check varargs. 12298 test_varargs ("s, d' f .", "string", 65, 34.234); 12299 test_varargs_macros (); 12300 12301 // Check flexible array members. 12302 struct incomplete_array *ia = 12303 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12304 ia->datasize = 10; 12305 for (int i = 0; i < ia->datasize; ++i) 12306 ia->data[i] = i * 1.234; 12307 12308 // Check named initializers. 12309 struct named_init ni = { 12310 .number = 34, 12311 .name = L"Test wide string", 12312 .average = 543.34343, 12313 }; 12314 12315 ni.number = 58; 12316 12317 int dynamic_array[ni.number]; 12318 dynamic_array[ni.number - 1] = 543; 12319 12320 // work around unused variable warnings 12321 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12322 || dynamic_array[ni.number - 1] != 543); 12323 12324 ; 12325 return 0; 12326} 12327_ACEOF 12328for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12329do 12330 CC="$ac_save_CC $ac_arg" 12331 if ac_fn_c_try_compile "$LINENO"; then : 12332 ac_cv_prog_cc_c99=$ac_arg 12333fi 12334rm -f core conftest.err conftest.$ac_objext 12335 test "x$ac_cv_prog_cc_c99" != "xno" && break 12336done 12337rm -f conftest.$ac_ext 12338CC=$ac_save_CC 12339 12340fi 12341# AC_CACHE_VAL 12342case "x$ac_cv_prog_cc_c99" in 12343 x) 12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12345$as_echo "none needed" >&6; } ;; 12346 xno) 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12348$as_echo "unsupported" >&6; } ;; 12349 *) 12350 CC="$CC $ac_cv_prog_cc_c99" 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12352$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12353esac 12354if test "x$ac_cv_prog_cc_c99" != xno; then : 12355 12356fi 12357 12358 12359 12360 12361 12362 12363ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12364if test "x$ac_cv_have_decl___clang__" = xyes; then : 12365 CLANGCC="yes" 12366else 12367 CLANGCC="no" 12368fi 12369 12370ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12371if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12372 INTELCC="yes" 12373else 12374 INTELCC="no" 12375fi 12376 12377ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12378if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12379 SUNCC="yes" 12380else 12381 SUNCC="no" 12382fi 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12393 if test -n "$ac_tool_prefix"; then 12394 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12395set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12397$as_echo_n "checking for $ac_word... " >&6; } 12398if ${ac_cv_path_PKG_CONFIG+:} false; then : 12399 $as_echo_n "(cached) " >&6 12400else 12401 case $PKG_CONFIG in 12402 [\\/]* | ?:[\\/]*) 12403 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12404 ;; 12405 *) 12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12407for as_dir in $PATH 12408do 12409 IFS=$as_save_IFS 12410 test -z "$as_dir" && as_dir=. 12411 for ac_exec_ext in '' $ac_executable_extensions; do 12412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12413 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12415 break 2 12416 fi 12417done 12418 done 12419IFS=$as_save_IFS 12420 12421 ;; 12422esac 12423fi 12424PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12425if test -n "$PKG_CONFIG"; then 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12427$as_echo "$PKG_CONFIG" >&6; } 12428else 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12430$as_echo "no" >&6; } 12431fi 12432 12433 12434fi 12435if test -z "$ac_cv_path_PKG_CONFIG"; then 12436 ac_pt_PKG_CONFIG=$PKG_CONFIG 12437 # Extract the first word of "pkg-config", so it can be a program name with args. 12438set dummy pkg-config; ac_word=$2 12439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12440$as_echo_n "checking for $ac_word... " >&6; } 12441if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12442 $as_echo_n "(cached) " >&6 12443else 12444 case $ac_pt_PKG_CONFIG in 12445 [\\/]* | ?:[\\/]*) 12446 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12447 ;; 12448 *) 12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12450for as_dir in $PATH 12451do 12452 IFS=$as_save_IFS 12453 test -z "$as_dir" && as_dir=. 12454 for ac_exec_ext in '' $ac_executable_extensions; do 12455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12456 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12458 break 2 12459 fi 12460done 12461 done 12462IFS=$as_save_IFS 12463 12464 ;; 12465esac 12466fi 12467ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12468if test -n "$ac_pt_PKG_CONFIG"; then 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12470$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12471else 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12473$as_echo "no" >&6; } 12474fi 12475 12476 if test "x$ac_pt_PKG_CONFIG" = x; then 12477 PKG_CONFIG="" 12478 else 12479 case $cross_compiling:$ac_tool_warned in 12480yes:) 12481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12483ac_tool_warned=yes ;; 12484esac 12485 PKG_CONFIG=$ac_pt_PKG_CONFIG 12486 fi 12487else 12488 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12489fi 12490 12491fi 12492if test -n "$PKG_CONFIG"; then 12493 _pkg_min_version=0.9.0 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12495$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12496 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12498$as_echo "yes" >&6; } 12499 else 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12501$as_echo "no" >&6; } 12502 PKG_CONFIG="" 12503 fi 12504fi 12505 12506 12507 12508 12509 12510# Check whether --enable-selective-werror was given. 12511if test "${enable_selective_werror+set}" = set; then : 12512 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12513else 12514 SELECTIVE_WERROR=yes 12515fi 12516 12517 12518 12519 12520 12521# -v is too short to test reliably with XORG_TESTSET_CFLAG 12522if test "x$SUNCC" = "xyes"; then 12523 BASE_CFLAGS="-v" 12524else 12525 BASE_CFLAGS="" 12526fi 12527 12528# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542xorg_testset_save_CFLAGS="$CFLAGS" 12543 12544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12547$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12548if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12549 $as_echo_n "(cached) " >&6 12550else 12551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12552/* end confdefs.h. */ 12553int i; 12554_ACEOF 12555if ac_fn_c_try_compile "$LINENO"; then : 12556 xorg_cv_cc_flag_unknown_warning_option=yes 12557else 12558 xorg_cv_cc_flag_unknown_warning_option=no 12559fi 12560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12561fi 12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12563$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12565 CFLAGS="$xorg_testset_save_CFLAGS" 12566fi 12567 12568if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12571 fi 12572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12574$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12575if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12576 $as_echo_n "(cached) " >&6 12577else 12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12579/* end confdefs.h. */ 12580int i; 12581_ACEOF 12582if ac_fn_c_try_compile "$LINENO"; then : 12583 xorg_cv_cc_flag_unused_command_line_argument=yes 12584else 12585 xorg_cv_cc_flag_unused_command_line_argument=no 12586fi 12587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12588fi 12589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12590$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12591 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12592 CFLAGS="$xorg_testset_save_CFLAGS" 12593fi 12594 12595found="no" 12596 12597 if test $found = "no" ; then 12598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12600 fi 12601 12602 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12603 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12604 fi 12605 12606 CFLAGS="$CFLAGS -Wall" 12607 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12609$as_echo_n "checking if $CC supports -Wall... " >&6; } 12610 cacheid=xorg_cv_cc_flag__Wall 12611 if eval \${$cacheid+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616int i; 12617int 12618main () 12619{ 12620 12621 ; 12622 return 0; 12623} 12624_ACEOF 12625if ac_fn_c_try_link "$LINENO"; then : 12626 eval $cacheid=yes 12627else 12628 eval $cacheid=no 12629fi 12630rm -f core conftest.err conftest.$ac_objext \ 12631 conftest$ac_exeext conftest.$ac_ext 12632fi 12633 12634 12635 CFLAGS="$xorg_testset_save_CFLAGS" 12636 12637 eval supported=\$$cacheid 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12639$as_echo "$supported" >&6; } 12640 if test "$supported" = "yes" ; then 12641 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12642 found="yes" 12643 fi 12644 fi 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660xorg_testset_save_CFLAGS="$CFLAGS" 12661 12662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12665$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12666if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12667 $as_echo_n "(cached) " >&6 12668else 12669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12670/* end confdefs.h. */ 12671int i; 12672_ACEOF 12673if ac_fn_c_try_compile "$LINENO"; then : 12674 xorg_cv_cc_flag_unknown_warning_option=yes 12675else 12676 xorg_cv_cc_flag_unknown_warning_option=no 12677fi 12678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12679fi 12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12681$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12683 CFLAGS="$xorg_testset_save_CFLAGS" 12684fi 12685 12686if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12689 fi 12690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12692$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12693if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12694 $as_echo_n "(cached) " >&6 12695else 12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697/* end confdefs.h. */ 12698int i; 12699_ACEOF 12700if ac_fn_c_try_compile "$LINENO"; then : 12701 xorg_cv_cc_flag_unused_command_line_argument=yes 12702else 12703 xorg_cv_cc_flag_unused_command_line_argument=no 12704fi 12705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12706fi 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12708$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12709 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12710 CFLAGS="$xorg_testset_save_CFLAGS" 12711fi 12712 12713found="no" 12714 12715 if test $found = "no" ; then 12716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12718 fi 12719 12720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12722 fi 12723 12724 CFLAGS="$CFLAGS -Wpointer-arith" 12725 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12727$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12728 cacheid=xorg_cv_cc_flag__Wpointer_arith 12729 if eval \${$cacheid+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731else 12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12733/* end confdefs.h. */ 12734int i; 12735int 12736main () 12737{ 12738 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743if ac_fn_c_try_link "$LINENO"; then : 12744 eval $cacheid=yes 12745else 12746 eval $cacheid=no 12747fi 12748rm -f core conftest.err conftest.$ac_objext \ 12749 conftest$ac_exeext conftest.$ac_ext 12750fi 12751 12752 12753 CFLAGS="$xorg_testset_save_CFLAGS" 12754 12755 eval supported=\$$cacheid 12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12757$as_echo "$supported" >&6; } 12758 if test "$supported" = "yes" ; then 12759 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12760 found="yes" 12761 fi 12762 fi 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778xorg_testset_save_CFLAGS="$CFLAGS" 12779 12780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12785 $as_echo_n "(cached) " >&6 12786else 12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12788/* end confdefs.h. */ 12789int i; 12790_ACEOF 12791if ac_fn_c_try_compile "$LINENO"; then : 12792 xorg_cv_cc_flag_unknown_warning_option=yes 12793else 12794 xorg_cv_cc_flag_unknown_warning_option=no 12795fi 12796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12797fi 12798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12801 CFLAGS="$xorg_testset_save_CFLAGS" 12802fi 12803 12804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12807 fi 12808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12812 $as_echo_n "(cached) " >&6 12813else 12814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12815/* end confdefs.h. */ 12816int i; 12817_ACEOF 12818if ac_fn_c_try_compile "$LINENO"; then : 12819 xorg_cv_cc_flag_unused_command_line_argument=yes 12820else 12821 xorg_cv_cc_flag_unused_command_line_argument=no 12822fi 12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12824fi 12825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12828 CFLAGS="$xorg_testset_save_CFLAGS" 12829fi 12830 12831found="no" 12832 12833 if test $found = "no" ; then 12834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12836 fi 12837 12838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12840 fi 12841 12842 CFLAGS="$CFLAGS -Wmissing-declarations" 12843 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12845$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12846 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12847 if eval \${$cacheid+:} false; then : 12848 $as_echo_n "(cached) " >&6 12849else 12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12851/* end confdefs.h. */ 12852int i; 12853int 12854main () 12855{ 12856 12857 ; 12858 return 0; 12859} 12860_ACEOF 12861if ac_fn_c_try_link "$LINENO"; then : 12862 eval $cacheid=yes 12863else 12864 eval $cacheid=no 12865fi 12866rm -f core conftest.err conftest.$ac_objext \ 12867 conftest$ac_exeext conftest.$ac_ext 12868fi 12869 12870 12871 CFLAGS="$xorg_testset_save_CFLAGS" 12872 12873 eval supported=\$$cacheid 12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12875$as_echo "$supported" >&6; } 12876 if test "$supported" = "yes" ; then 12877 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12878 found="yes" 12879 fi 12880 fi 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896xorg_testset_save_CFLAGS="$CFLAGS" 12897 12898if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12901$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12902if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12903 $as_echo_n "(cached) " >&6 12904else 12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12906/* end confdefs.h. */ 12907int i; 12908_ACEOF 12909if ac_fn_c_try_compile "$LINENO"; then : 12910 xorg_cv_cc_flag_unknown_warning_option=yes 12911else 12912 xorg_cv_cc_flag_unknown_warning_option=no 12913fi 12914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12915fi 12916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12917$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12919 CFLAGS="$xorg_testset_save_CFLAGS" 12920fi 12921 12922if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12924 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12925 fi 12926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12928$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12929if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12930 $as_echo_n "(cached) " >&6 12931else 12932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12933/* end confdefs.h. */ 12934int i; 12935_ACEOF 12936if ac_fn_c_try_compile "$LINENO"; then : 12937 xorg_cv_cc_flag_unused_command_line_argument=yes 12938else 12939 xorg_cv_cc_flag_unused_command_line_argument=no 12940fi 12941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12942fi 12943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12944$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12946 CFLAGS="$xorg_testset_save_CFLAGS" 12947fi 12948 12949found="no" 12950 12951 if test $found = "no" ; then 12952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12954 fi 12955 12956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12958 fi 12959 12960 CFLAGS="$CFLAGS -Wformat=2" 12961 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12963$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12964 cacheid=xorg_cv_cc_flag__Wformat_2 12965 if eval \${$cacheid+:} false; then : 12966 $as_echo_n "(cached) " >&6 12967else 12968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12969/* end confdefs.h. */ 12970int i; 12971int 12972main () 12973{ 12974 12975 ; 12976 return 0; 12977} 12978_ACEOF 12979if ac_fn_c_try_link "$LINENO"; then : 12980 eval $cacheid=yes 12981else 12982 eval $cacheid=no 12983fi 12984rm -f core conftest.err conftest.$ac_objext \ 12985 conftest$ac_exeext conftest.$ac_ext 12986fi 12987 12988 12989 CFLAGS="$xorg_testset_save_CFLAGS" 12990 12991 eval supported=\$$cacheid 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12993$as_echo "$supported" >&6; } 12994 if test "$supported" = "yes" ; then 12995 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12996 found="yes" 12997 fi 12998 fi 12999 13000 if test $found = "no" ; then 13001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13003 fi 13004 13005 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13007 fi 13008 13009 CFLAGS="$CFLAGS -Wformat" 13010 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13012$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13013 cacheid=xorg_cv_cc_flag__Wformat 13014 if eval \${$cacheid+:} false; then : 13015 $as_echo_n "(cached) " >&6 13016else 13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13018/* end confdefs.h. */ 13019int i; 13020int 13021main () 13022{ 13023 13024 ; 13025 return 0; 13026} 13027_ACEOF 13028if ac_fn_c_try_link "$LINENO"; then : 13029 eval $cacheid=yes 13030else 13031 eval $cacheid=no 13032fi 13033rm -f core conftest.err conftest.$ac_objext \ 13034 conftest$ac_exeext conftest.$ac_ext 13035fi 13036 13037 13038 CFLAGS="$xorg_testset_save_CFLAGS" 13039 13040 eval supported=\$$cacheid 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13042$as_echo "$supported" >&6; } 13043 if test "$supported" = "yes" ; then 13044 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13045 found="yes" 13046 fi 13047 fi 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065xorg_testset_save_CFLAGS="$CFLAGS" 13066 13067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13072 $as_echo_n "(cached) " >&6 13073else 13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13075/* end confdefs.h. */ 13076int i; 13077_ACEOF 13078if ac_fn_c_try_compile "$LINENO"; then : 13079 xorg_cv_cc_flag_unknown_warning_option=yes 13080else 13081 xorg_cv_cc_flag_unknown_warning_option=no 13082fi 13083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13084fi 13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13088 CFLAGS="$xorg_testset_save_CFLAGS" 13089fi 13090 13091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13094 fi 13095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13099 $as_echo_n "(cached) " >&6 13100else 13101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13102/* end confdefs.h. */ 13103int i; 13104_ACEOF 13105if ac_fn_c_try_compile "$LINENO"; then : 13106 xorg_cv_cc_flag_unused_command_line_argument=yes 13107else 13108 xorg_cv_cc_flag_unused_command_line_argument=no 13109fi 13110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13111fi 13112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13115 CFLAGS="$xorg_testset_save_CFLAGS" 13116fi 13117 13118found="no" 13119 13120 if test $found = "no" ; then 13121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13123 fi 13124 13125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13127 fi 13128 13129 CFLAGS="$CFLAGS -Wstrict-prototypes" 13130 13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13132$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13133 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13134 if eval \${$cacheid+:} false; then : 13135 $as_echo_n "(cached) " >&6 13136else 13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13138/* end confdefs.h. */ 13139int i; 13140int 13141main () 13142{ 13143 13144 ; 13145 return 0; 13146} 13147_ACEOF 13148if ac_fn_c_try_link "$LINENO"; then : 13149 eval $cacheid=yes 13150else 13151 eval $cacheid=no 13152fi 13153rm -f core conftest.err conftest.$ac_objext \ 13154 conftest$ac_exeext conftest.$ac_ext 13155fi 13156 13157 13158 CFLAGS="$xorg_testset_save_CFLAGS" 13159 13160 eval supported=\$$cacheid 13161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13162$as_echo "$supported" >&6; } 13163 if test "$supported" = "yes" ; then 13164 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13165 found="yes" 13166 fi 13167 fi 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183xorg_testset_save_CFLAGS="$CFLAGS" 13184 13185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13190 $as_echo_n "(cached) " >&6 13191else 13192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13193/* end confdefs.h. */ 13194int i; 13195_ACEOF 13196if ac_fn_c_try_compile "$LINENO"; then : 13197 xorg_cv_cc_flag_unknown_warning_option=yes 13198else 13199 xorg_cv_cc_flag_unknown_warning_option=no 13200fi 13201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13202fi 13203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13206 CFLAGS="$xorg_testset_save_CFLAGS" 13207fi 13208 13209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13212 fi 13213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13217 $as_echo_n "(cached) " >&6 13218else 13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13220/* end confdefs.h. */ 13221int i; 13222_ACEOF 13223if ac_fn_c_try_compile "$LINENO"; then : 13224 xorg_cv_cc_flag_unused_command_line_argument=yes 13225else 13226 xorg_cv_cc_flag_unused_command_line_argument=no 13227fi 13228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13229fi 13230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13233 CFLAGS="$xorg_testset_save_CFLAGS" 13234fi 13235 13236found="no" 13237 13238 if test $found = "no" ; then 13239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13240 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13241 fi 13242 13243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13245 fi 13246 13247 CFLAGS="$CFLAGS -Wmissing-prototypes" 13248 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13250$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13251 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13252 if eval \${$cacheid+:} false; then : 13253 $as_echo_n "(cached) " >&6 13254else 13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256/* end confdefs.h. */ 13257int i; 13258int 13259main () 13260{ 13261 13262 ; 13263 return 0; 13264} 13265_ACEOF 13266if ac_fn_c_try_link "$LINENO"; then : 13267 eval $cacheid=yes 13268else 13269 eval $cacheid=no 13270fi 13271rm -f core conftest.err conftest.$ac_objext \ 13272 conftest$ac_exeext conftest.$ac_ext 13273fi 13274 13275 13276 CFLAGS="$xorg_testset_save_CFLAGS" 13277 13278 eval supported=\$$cacheid 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13280$as_echo "$supported" >&6; } 13281 if test "$supported" = "yes" ; then 13282 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13283 found="yes" 13284 fi 13285 fi 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301xorg_testset_save_CFLAGS="$CFLAGS" 13302 13303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13308 $as_echo_n "(cached) " >&6 13309else 13310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13311/* end confdefs.h. */ 13312int i; 13313_ACEOF 13314if ac_fn_c_try_compile "$LINENO"; then : 13315 xorg_cv_cc_flag_unknown_warning_option=yes 13316else 13317 xorg_cv_cc_flag_unknown_warning_option=no 13318fi 13319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13320fi 13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13324 CFLAGS="$xorg_testset_save_CFLAGS" 13325fi 13326 13327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13330 fi 13331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13335 $as_echo_n "(cached) " >&6 13336else 13337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13338/* end confdefs.h. */ 13339int i; 13340_ACEOF 13341if ac_fn_c_try_compile "$LINENO"; then : 13342 xorg_cv_cc_flag_unused_command_line_argument=yes 13343else 13344 xorg_cv_cc_flag_unused_command_line_argument=no 13345fi 13346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13347fi 13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13351 CFLAGS="$xorg_testset_save_CFLAGS" 13352fi 13353 13354found="no" 13355 13356 if test $found = "no" ; then 13357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13359 fi 13360 13361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13363 fi 13364 13365 CFLAGS="$CFLAGS -Wnested-externs" 13366 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13368$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13369 cacheid=xorg_cv_cc_flag__Wnested_externs 13370 if eval \${$cacheid+:} false; then : 13371 $as_echo_n "(cached) " >&6 13372else 13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13374/* end confdefs.h. */ 13375int i; 13376int 13377main () 13378{ 13379 13380 ; 13381 return 0; 13382} 13383_ACEOF 13384if ac_fn_c_try_link "$LINENO"; then : 13385 eval $cacheid=yes 13386else 13387 eval $cacheid=no 13388fi 13389rm -f core conftest.err conftest.$ac_objext \ 13390 conftest$ac_exeext conftest.$ac_ext 13391fi 13392 13393 13394 CFLAGS="$xorg_testset_save_CFLAGS" 13395 13396 eval supported=\$$cacheid 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13398$as_echo "$supported" >&6; } 13399 if test "$supported" = "yes" ; then 13400 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13401 found="yes" 13402 fi 13403 fi 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419xorg_testset_save_CFLAGS="$CFLAGS" 13420 13421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13426 $as_echo_n "(cached) " >&6 13427else 13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13429/* end confdefs.h. */ 13430int i; 13431_ACEOF 13432if ac_fn_c_try_compile "$LINENO"; then : 13433 xorg_cv_cc_flag_unknown_warning_option=yes 13434else 13435 xorg_cv_cc_flag_unknown_warning_option=no 13436fi 13437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13438fi 13439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13442 CFLAGS="$xorg_testset_save_CFLAGS" 13443fi 13444 13445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13448 fi 13449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13453 $as_echo_n "(cached) " >&6 13454else 13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13456/* end confdefs.h. */ 13457int i; 13458_ACEOF 13459if ac_fn_c_try_compile "$LINENO"; then : 13460 xorg_cv_cc_flag_unused_command_line_argument=yes 13461else 13462 xorg_cv_cc_flag_unused_command_line_argument=no 13463fi 13464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13465fi 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13469 CFLAGS="$xorg_testset_save_CFLAGS" 13470fi 13471 13472found="no" 13473 13474 if test $found = "no" ; then 13475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13476 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13477 fi 13478 13479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13481 fi 13482 13483 CFLAGS="$CFLAGS -Wbad-function-cast" 13484 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13486$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13487 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13488 if eval \${$cacheid+:} false; then : 13489 $as_echo_n "(cached) " >&6 13490else 13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13492/* end confdefs.h. */ 13493int i; 13494int 13495main () 13496{ 13497 13498 ; 13499 return 0; 13500} 13501_ACEOF 13502if ac_fn_c_try_link "$LINENO"; then : 13503 eval $cacheid=yes 13504else 13505 eval $cacheid=no 13506fi 13507rm -f core conftest.err conftest.$ac_objext \ 13508 conftest$ac_exeext conftest.$ac_ext 13509fi 13510 13511 13512 CFLAGS="$xorg_testset_save_CFLAGS" 13513 13514 eval supported=\$$cacheid 13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13516$as_echo "$supported" >&6; } 13517 if test "$supported" = "yes" ; then 13518 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13519 found="yes" 13520 fi 13521 fi 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537xorg_testset_save_CFLAGS="$CFLAGS" 13538 13539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13544 $as_echo_n "(cached) " >&6 13545else 13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13547/* end confdefs.h. */ 13548int i; 13549_ACEOF 13550if ac_fn_c_try_compile "$LINENO"; then : 13551 xorg_cv_cc_flag_unknown_warning_option=yes 13552else 13553 xorg_cv_cc_flag_unknown_warning_option=no 13554fi 13555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13556fi 13557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13560 CFLAGS="$xorg_testset_save_CFLAGS" 13561fi 13562 13563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13566 fi 13567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13571 $as_echo_n "(cached) " >&6 13572else 13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13574/* end confdefs.h. */ 13575int i; 13576_ACEOF 13577if ac_fn_c_try_compile "$LINENO"; then : 13578 xorg_cv_cc_flag_unused_command_line_argument=yes 13579else 13580 xorg_cv_cc_flag_unused_command_line_argument=no 13581fi 13582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13583fi 13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13587 CFLAGS="$xorg_testset_save_CFLAGS" 13588fi 13589 13590found="no" 13591 13592 if test $found = "no" ; then 13593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13595 fi 13596 13597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13599 fi 13600 13601 CFLAGS="$CFLAGS -Wold-style-definition" 13602 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13604$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13605 cacheid=xorg_cv_cc_flag__Wold_style_definition 13606 if eval \${$cacheid+:} false; then : 13607 $as_echo_n "(cached) " >&6 13608else 13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13610/* end confdefs.h. */ 13611int i; 13612int 13613main () 13614{ 13615 13616 ; 13617 return 0; 13618} 13619_ACEOF 13620if ac_fn_c_try_link "$LINENO"; then : 13621 eval $cacheid=yes 13622else 13623 eval $cacheid=no 13624fi 13625rm -f core conftest.err conftest.$ac_objext \ 13626 conftest$ac_exeext conftest.$ac_ext 13627fi 13628 13629 13630 CFLAGS="$xorg_testset_save_CFLAGS" 13631 13632 eval supported=\$$cacheid 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13634$as_echo "$supported" >&6; } 13635 if test "$supported" = "yes" ; then 13636 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13637 found="yes" 13638 fi 13639 fi 13640 13641 if test $found = "no" ; then 13642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13644 fi 13645 13646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13648 fi 13649 13650 CFLAGS="$CFLAGS -fd" 13651 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13653$as_echo_n "checking if $CC supports -fd... " >&6; } 13654 cacheid=xorg_cv_cc_flag__fd 13655 if eval \${$cacheid+:} false; then : 13656 $as_echo_n "(cached) " >&6 13657else 13658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13659/* end confdefs.h. */ 13660int i; 13661int 13662main () 13663{ 13664 13665 ; 13666 return 0; 13667} 13668_ACEOF 13669if ac_fn_c_try_link "$LINENO"; then : 13670 eval $cacheid=yes 13671else 13672 eval $cacheid=no 13673fi 13674rm -f core conftest.err conftest.$ac_objext \ 13675 conftest$ac_exeext conftest.$ac_ext 13676fi 13677 13678 13679 CFLAGS="$xorg_testset_save_CFLAGS" 13680 13681 eval supported=\$$cacheid 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13683$as_echo "$supported" >&6; } 13684 if test "$supported" = "yes" ; then 13685 BASE_CFLAGS="$BASE_CFLAGS -fd" 13686 found="yes" 13687 fi 13688 fi 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704xorg_testset_save_CFLAGS="$CFLAGS" 13705 13706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13709$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13710if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13711 $as_echo_n "(cached) " >&6 13712else 13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13714/* end confdefs.h. */ 13715int i; 13716_ACEOF 13717if ac_fn_c_try_compile "$LINENO"; then : 13718 xorg_cv_cc_flag_unknown_warning_option=yes 13719else 13720 xorg_cv_cc_flag_unknown_warning_option=no 13721fi 13722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13723fi 13724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13725$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13727 CFLAGS="$xorg_testset_save_CFLAGS" 13728fi 13729 13730if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13732 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13733 fi 13734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13736$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13737if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13738 $as_echo_n "(cached) " >&6 13739else 13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13741/* end confdefs.h. */ 13742int i; 13743_ACEOF 13744if ac_fn_c_try_compile "$LINENO"; then : 13745 xorg_cv_cc_flag_unused_command_line_argument=yes 13746else 13747 xorg_cv_cc_flag_unused_command_line_argument=no 13748fi 13749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13750fi 13751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13752$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13754 CFLAGS="$xorg_testset_save_CFLAGS" 13755fi 13756 13757found="no" 13758 13759 if test $found = "no" ; then 13760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13762 fi 13763 13764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13766 fi 13767 13768 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13769 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13771$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13772 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13773 if eval \${$cacheid+:} false; then : 13774 $as_echo_n "(cached) " >&6 13775else 13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13777/* end confdefs.h. */ 13778int i; 13779int 13780main () 13781{ 13782 13783 ; 13784 return 0; 13785} 13786_ACEOF 13787if ac_fn_c_try_link "$LINENO"; then : 13788 eval $cacheid=yes 13789else 13790 eval $cacheid=no 13791fi 13792rm -f core conftest.err conftest.$ac_objext \ 13793 conftest$ac_exeext conftest.$ac_ext 13794fi 13795 13796 13797 CFLAGS="$xorg_testset_save_CFLAGS" 13798 13799 eval supported=\$$cacheid 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13801$as_echo "$supported" >&6; } 13802 if test "$supported" = "yes" ; then 13803 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13804 found="yes" 13805 fi 13806 fi 13807 13808 13809 13810 13811 13812# This chunk adds additional warnings that could catch undesired effects. 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826xorg_testset_save_CFLAGS="$CFLAGS" 13827 13828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13831$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13832if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13833 $as_echo_n "(cached) " >&6 13834else 13835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13836/* end confdefs.h. */ 13837int i; 13838_ACEOF 13839if ac_fn_c_try_compile "$LINENO"; then : 13840 xorg_cv_cc_flag_unknown_warning_option=yes 13841else 13842 xorg_cv_cc_flag_unknown_warning_option=no 13843fi 13844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13845fi 13846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13847$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13849 CFLAGS="$xorg_testset_save_CFLAGS" 13850fi 13851 13852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13855 fi 13856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13858$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13859if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13860 $as_echo_n "(cached) " >&6 13861else 13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13863/* end confdefs.h. */ 13864int i; 13865_ACEOF 13866if ac_fn_c_try_compile "$LINENO"; then : 13867 xorg_cv_cc_flag_unused_command_line_argument=yes 13868else 13869 xorg_cv_cc_flag_unused_command_line_argument=no 13870fi 13871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13872fi 13873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13874$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13876 CFLAGS="$xorg_testset_save_CFLAGS" 13877fi 13878 13879found="no" 13880 13881 if test $found = "no" ; then 13882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13884 fi 13885 13886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13888 fi 13889 13890 CFLAGS="$CFLAGS -Wunused" 13891 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13893$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13894 cacheid=xorg_cv_cc_flag__Wunused 13895 if eval \${$cacheid+:} false; then : 13896 $as_echo_n "(cached) " >&6 13897else 13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13899/* end confdefs.h. */ 13900int i; 13901int 13902main () 13903{ 13904 13905 ; 13906 return 0; 13907} 13908_ACEOF 13909if ac_fn_c_try_link "$LINENO"; then : 13910 eval $cacheid=yes 13911else 13912 eval $cacheid=no 13913fi 13914rm -f core conftest.err conftest.$ac_objext \ 13915 conftest$ac_exeext conftest.$ac_ext 13916fi 13917 13918 13919 CFLAGS="$xorg_testset_save_CFLAGS" 13920 13921 eval supported=\$$cacheid 13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13923$as_echo "$supported" >&6; } 13924 if test "$supported" = "yes" ; then 13925 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13926 found="yes" 13927 fi 13928 fi 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944xorg_testset_save_CFLAGS="$CFLAGS" 13945 13946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13949$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13950if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13951 $as_echo_n "(cached) " >&6 13952else 13953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13954/* end confdefs.h. */ 13955int i; 13956_ACEOF 13957if ac_fn_c_try_compile "$LINENO"; then : 13958 xorg_cv_cc_flag_unknown_warning_option=yes 13959else 13960 xorg_cv_cc_flag_unknown_warning_option=no 13961fi 13962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13963fi 13964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13965$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13967 CFLAGS="$xorg_testset_save_CFLAGS" 13968fi 13969 13970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13973 fi 13974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13976$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13977if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13978 $as_echo_n "(cached) " >&6 13979else 13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13981/* end confdefs.h. */ 13982int i; 13983_ACEOF 13984if ac_fn_c_try_compile "$LINENO"; then : 13985 xorg_cv_cc_flag_unused_command_line_argument=yes 13986else 13987 xorg_cv_cc_flag_unused_command_line_argument=no 13988fi 13989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13990fi 13991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13992$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13994 CFLAGS="$xorg_testset_save_CFLAGS" 13995fi 13996 13997found="no" 13998 13999 if test $found = "no" ; then 14000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14002 fi 14003 14004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14006 fi 14007 14008 CFLAGS="$CFLAGS -Wuninitialized" 14009 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14011$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14012 cacheid=xorg_cv_cc_flag__Wuninitialized 14013 if eval \${$cacheid+:} false; then : 14014 $as_echo_n "(cached) " >&6 14015else 14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14017/* end confdefs.h. */ 14018int i; 14019int 14020main () 14021{ 14022 14023 ; 14024 return 0; 14025} 14026_ACEOF 14027if ac_fn_c_try_link "$LINENO"; then : 14028 eval $cacheid=yes 14029else 14030 eval $cacheid=no 14031fi 14032rm -f core conftest.err conftest.$ac_objext \ 14033 conftest$ac_exeext conftest.$ac_ext 14034fi 14035 14036 14037 CFLAGS="$xorg_testset_save_CFLAGS" 14038 14039 eval supported=\$$cacheid 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14041$as_echo "$supported" >&6; } 14042 if test "$supported" = "yes" ; then 14043 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14044 found="yes" 14045 fi 14046 fi 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062xorg_testset_save_CFLAGS="$CFLAGS" 14063 14064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14069 $as_echo_n "(cached) " >&6 14070else 14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14072/* end confdefs.h. */ 14073int i; 14074_ACEOF 14075if ac_fn_c_try_compile "$LINENO"; then : 14076 xorg_cv_cc_flag_unknown_warning_option=yes 14077else 14078 xorg_cv_cc_flag_unknown_warning_option=no 14079fi 14080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14081fi 14082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14085 CFLAGS="$xorg_testset_save_CFLAGS" 14086fi 14087 14088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14091 fi 14092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14096 $as_echo_n "(cached) " >&6 14097else 14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14099/* end confdefs.h. */ 14100int i; 14101_ACEOF 14102if ac_fn_c_try_compile "$LINENO"; then : 14103 xorg_cv_cc_flag_unused_command_line_argument=yes 14104else 14105 xorg_cv_cc_flag_unused_command_line_argument=no 14106fi 14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14108fi 14109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14111 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14112 CFLAGS="$xorg_testset_save_CFLAGS" 14113fi 14114 14115found="no" 14116 14117 if test $found = "no" ; then 14118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14120 fi 14121 14122 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14124 fi 14125 14126 CFLAGS="$CFLAGS -Wshadow" 14127 14128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14129$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14130 cacheid=xorg_cv_cc_flag__Wshadow 14131 if eval \${$cacheid+:} false; then : 14132 $as_echo_n "(cached) " >&6 14133else 14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14135/* end confdefs.h. */ 14136int i; 14137int 14138main () 14139{ 14140 14141 ; 14142 return 0; 14143} 14144_ACEOF 14145if ac_fn_c_try_link "$LINENO"; then : 14146 eval $cacheid=yes 14147else 14148 eval $cacheid=no 14149fi 14150rm -f core conftest.err conftest.$ac_objext \ 14151 conftest$ac_exeext conftest.$ac_ext 14152fi 14153 14154 14155 CFLAGS="$xorg_testset_save_CFLAGS" 14156 14157 eval supported=\$$cacheid 14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14159$as_echo "$supported" >&6; } 14160 if test "$supported" = "yes" ; then 14161 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14162 found="yes" 14163 fi 14164 fi 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180xorg_testset_save_CFLAGS="$CFLAGS" 14181 14182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14187 $as_echo_n "(cached) " >&6 14188else 14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14190/* end confdefs.h. */ 14191int i; 14192_ACEOF 14193if ac_fn_c_try_compile "$LINENO"; then : 14194 xorg_cv_cc_flag_unknown_warning_option=yes 14195else 14196 xorg_cv_cc_flag_unknown_warning_option=no 14197fi 14198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14199fi 14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14203 CFLAGS="$xorg_testset_save_CFLAGS" 14204fi 14205 14206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14209 fi 14210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14214 $as_echo_n "(cached) " >&6 14215else 14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14217/* end confdefs.h. */ 14218int i; 14219_ACEOF 14220if ac_fn_c_try_compile "$LINENO"; then : 14221 xorg_cv_cc_flag_unused_command_line_argument=yes 14222else 14223 xorg_cv_cc_flag_unused_command_line_argument=no 14224fi 14225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14226fi 14227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14230 CFLAGS="$xorg_testset_save_CFLAGS" 14231fi 14232 14233found="no" 14234 14235 if test $found = "no" ; then 14236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14238 fi 14239 14240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14242 fi 14243 14244 CFLAGS="$CFLAGS -Wmissing-noreturn" 14245 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14247$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14248 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14249 if eval \${$cacheid+:} false; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14253/* end confdefs.h. */ 14254int i; 14255int 14256main () 14257{ 14258 14259 ; 14260 return 0; 14261} 14262_ACEOF 14263if ac_fn_c_try_link "$LINENO"; then : 14264 eval $cacheid=yes 14265else 14266 eval $cacheid=no 14267fi 14268rm -f core conftest.err conftest.$ac_objext \ 14269 conftest$ac_exeext conftest.$ac_ext 14270fi 14271 14272 14273 CFLAGS="$xorg_testset_save_CFLAGS" 14274 14275 eval supported=\$$cacheid 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14277$as_echo "$supported" >&6; } 14278 if test "$supported" = "yes" ; then 14279 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14280 found="yes" 14281 fi 14282 fi 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298xorg_testset_save_CFLAGS="$CFLAGS" 14299 14300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14305 $as_echo_n "(cached) " >&6 14306else 14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14308/* end confdefs.h. */ 14309int i; 14310_ACEOF 14311if ac_fn_c_try_compile "$LINENO"; then : 14312 xorg_cv_cc_flag_unknown_warning_option=yes 14313else 14314 xorg_cv_cc_flag_unknown_warning_option=no 14315fi 14316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14317fi 14318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14321 CFLAGS="$xorg_testset_save_CFLAGS" 14322fi 14323 14324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14327 fi 14328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14332 $as_echo_n "(cached) " >&6 14333else 14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14335/* end confdefs.h. */ 14336int i; 14337_ACEOF 14338if ac_fn_c_try_compile "$LINENO"; then : 14339 xorg_cv_cc_flag_unused_command_line_argument=yes 14340else 14341 xorg_cv_cc_flag_unused_command_line_argument=no 14342fi 14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14344fi 14345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14348 CFLAGS="$xorg_testset_save_CFLAGS" 14349fi 14350 14351found="no" 14352 14353 if test $found = "no" ; then 14354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14356 fi 14357 14358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14360 fi 14361 14362 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14363 14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14365$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14366 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14367 if eval \${$cacheid+:} false; then : 14368 $as_echo_n "(cached) " >&6 14369else 14370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14371/* end confdefs.h. */ 14372int i; 14373int 14374main () 14375{ 14376 14377 ; 14378 return 0; 14379} 14380_ACEOF 14381if ac_fn_c_try_link "$LINENO"; then : 14382 eval $cacheid=yes 14383else 14384 eval $cacheid=no 14385fi 14386rm -f core conftest.err conftest.$ac_objext \ 14387 conftest$ac_exeext conftest.$ac_ext 14388fi 14389 14390 14391 CFLAGS="$xorg_testset_save_CFLAGS" 14392 14393 eval supported=\$$cacheid 14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14395$as_echo "$supported" >&6; } 14396 if test "$supported" = "yes" ; then 14397 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14398 found="yes" 14399 fi 14400 fi 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416xorg_testset_save_CFLAGS="$CFLAGS" 14417 14418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14423 $as_echo_n "(cached) " >&6 14424else 14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426/* end confdefs.h. */ 14427int i; 14428_ACEOF 14429if ac_fn_c_try_compile "$LINENO"; then : 14430 xorg_cv_cc_flag_unknown_warning_option=yes 14431else 14432 xorg_cv_cc_flag_unknown_warning_option=no 14433fi 14434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14435fi 14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14439 CFLAGS="$xorg_testset_save_CFLAGS" 14440fi 14441 14442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14445 fi 14446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14450 $as_echo_n "(cached) " >&6 14451else 14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14453/* end confdefs.h. */ 14454int i; 14455_ACEOF 14456if ac_fn_c_try_compile "$LINENO"; then : 14457 xorg_cv_cc_flag_unused_command_line_argument=yes 14458else 14459 xorg_cv_cc_flag_unused_command_line_argument=no 14460fi 14461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14462fi 14463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14466 CFLAGS="$xorg_testset_save_CFLAGS" 14467fi 14468 14469found="no" 14470 14471 if test $found = "no" ; then 14472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14474 fi 14475 14476 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14478 fi 14479 14480 CFLAGS="$CFLAGS -Wredundant-decls" 14481 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14483$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14484 cacheid=xorg_cv_cc_flag__Wredundant_decls 14485 if eval \${$cacheid+:} false; then : 14486 $as_echo_n "(cached) " >&6 14487else 14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489/* end confdefs.h. */ 14490int i; 14491int 14492main () 14493{ 14494 14495 ; 14496 return 0; 14497} 14498_ACEOF 14499if ac_fn_c_try_link "$LINENO"; then : 14500 eval $cacheid=yes 14501else 14502 eval $cacheid=no 14503fi 14504rm -f core conftest.err conftest.$ac_objext \ 14505 conftest$ac_exeext conftest.$ac_ext 14506fi 14507 14508 14509 CFLAGS="$xorg_testset_save_CFLAGS" 14510 14511 eval supported=\$$cacheid 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14513$as_echo "$supported" >&6; } 14514 if test "$supported" = "yes" ; then 14515 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14516 found="yes" 14517 fi 14518 fi 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534xorg_testset_save_CFLAGS="$CFLAGS" 14535 14536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14541 $as_echo_n "(cached) " >&6 14542else 14543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14544/* end confdefs.h. */ 14545int i; 14546_ACEOF 14547if ac_fn_c_try_compile "$LINENO"; then : 14548 xorg_cv_cc_flag_unknown_warning_option=yes 14549else 14550 xorg_cv_cc_flag_unknown_warning_option=no 14551fi 14552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14553fi 14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14557 CFLAGS="$xorg_testset_save_CFLAGS" 14558fi 14559 14560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14563 fi 14564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14568 $as_echo_n "(cached) " >&6 14569else 14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14571/* end confdefs.h. */ 14572int i; 14573_ACEOF 14574if ac_fn_c_try_compile "$LINENO"; then : 14575 xorg_cv_cc_flag_unused_command_line_argument=yes 14576else 14577 xorg_cv_cc_flag_unused_command_line_argument=no 14578fi 14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14580fi 14581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14584 CFLAGS="$xorg_testset_save_CFLAGS" 14585fi 14586 14587found="no" 14588 14589 if test $found = "no" ; then 14590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14592 fi 14593 14594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14596 fi 14597 14598 CFLAGS="$CFLAGS -Wlogical-op" 14599 14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14601$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14602 cacheid=xorg_cv_cc_flag__Wlogical_op 14603 if eval \${$cacheid+:} false; then : 14604 $as_echo_n "(cached) " >&6 14605else 14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14607/* end confdefs.h. */ 14608int i; 14609int 14610main () 14611{ 14612 14613 ; 14614 return 0; 14615} 14616_ACEOF 14617if ac_fn_c_try_link "$LINENO"; then : 14618 eval $cacheid=yes 14619else 14620 eval $cacheid=no 14621fi 14622rm -f core conftest.err conftest.$ac_objext \ 14623 conftest$ac_exeext conftest.$ac_ext 14624fi 14625 14626 14627 CFLAGS="$xorg_testset_save_CFLAGS" 14628 14629 eval supported=\$$cacheid 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14631$as_echo "$supported" >&6; } 14632 if test "$supported" = "yes" ; then 14633 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14634 found="yes" 14635 fi 14636 fi 14637 14638 14639 14640# These are currently disabled because they are noisy. They will be enabled 14641# in the future once the codebase is sufficiently modernized to silence 14642# them. For now, I don't want them to drown out the other warnings. 14643# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14644# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14645# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14646 14647# Turn some warnings into errors, so we don't accidently get successful builds 14648# when there are problems that should be fixed. 14649 14650if test "x$SELECTIVE_WERROR" = "xyes" ; then 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664xorg_testset_save_CFLAGS="$CFLAGS" 14665 14666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14667 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14671 $as_echo_n "(cached) " >&6 14672else 14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14674/* end confdefs.h. */ 14675int i; 14676_ACEOF 14677if ac_fn_c_try_compile "$LINENO"; then : 14678 xorg_cv_cc_flag_unknown_warning_option=yes 14679else 14680 xorg_cv_cc_flag_unknown_warning_option=no 14681fi 14682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14683fi 14684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14687 CFLAGS="$xorg_testset_save_CFLAGS" 14688fi 14689 14690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14693 fi 14694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14698 $as_echo_n "(cached) " >&6 14699else 14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14701/* end confdefs.h. */ 14702int i; 14703_ACEOF 14704if ac_fn_c_try_compile "$LINENO"; then : 14705 xorg_cv_cc_flag_unused_command_line_argument=yes 14706else 14707 xorg_cv_cc_flag_unused_command_line_argument=no 14708fi 14709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14710fi 14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14714 CFLAGS="$xorg_testset_save_CFLAGS" 14715fi 14716 14717found="no" 14718 14719 if test $found = "no" ; then 14720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14722 fi 14723 14724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14726 fi 14727 14728 CFLAGS="$CFLAGS -Werror=implicit" 14729 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14731$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14732 cacheid=xorg_cv_cc_flag__Werror_implicit 14733 if eval \${$cacheid+:} false; then : 14734 $as_echo_n "(cached) " >&6 14735else 14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14737/* end confdefs.h. */ 14738int i; 14739int 14740main () 14741{ 14742 14743 ; 14744 return 0; 14745} 14746_ACEOF 14747if ac_fn_c_try_link "$LINENO"; then : 14748 eval $cacheid=yes 14749else 14750 eval $cacheid=no 14751fi 14752rm -f core conftest.err conftest.$ac_objext \ 14753 conftest$ac_exeext conftest.$ac_ext 14754fi 14755 14756 14757 CFLAGS="$xorg_testset_save_CFLAGS" 14758 14759 eval supported=\$$cacheid 14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14761$as_echo "$supported" >&6; } 14762 if test "$supported" = "yes" ; then 14763 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14764 found="yes" 14765 fi 14766 fi 14767 14768 if test $found = "no" ; then 14769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14770 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14771 fi 14772 14773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14775 fi 14776 14777 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14778 14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14780$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14781 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14782 if eval \${$cacheid+:} false; then : 14783 $as_echo_n "(cached) " >&6 14784else 14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14786/* end confdefs.h. */ 14787int i; 14788int 14789main () 14790{ 14791 14792 ; 14793 return 0; 14794} 14795_ACEOF 14796if ac_fn_c_try_link "$LINENO"; then : 14797 eval $cacheid=yes 14798else 14799 eval $cacheid=no 14800fi 14801rm -f core conftest.err conftest.$ac_objext \ 14802 conftest$ac_exeext conftest.$ac_ext 14803fi 14804 14805 14806 CFLAGS="$xorg_testset_save_CFLAGS" 14807 14808 eval supported=\$$cacheid 14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14810$as_echo "$supported" >&6; } 14811 if test "$supported" = "yes" ; then 14812 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14813 found="yes" 14814 fi 14815 fi 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831xorg_testset_save_CFLAGS="$CFLAGS" 14832 14833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14838 $as_echo_n "(cached) " >&6 14839else 14840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14841/* end confdefs.h. */ 14842int i; 14843_ACEOF 14844if ac_fn_c_try_compile "$LINENO"; then : 14845 xorg_cv_cc_flag_unknown_warning_option=yes 14846else 14847 xorg_cv_cc_flag_unknown_warning_option=no 14848fi 14849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14850fi 14851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14854 CFLAGS="$xorg_testset_save_CFLAGS" 14855fi 14856 14857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14860 fi 14861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14865 $as_echo_n "(cached) " >&6 14866else 14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14868/* end confdefs.h. */ 14869int i; 14870_ACEOF 14871if ac_fn_c_try_compile "$LINENO"; then : 14872 xorg_cv_cc_flag_unused_command_line_argument=yes 14873else 14874 xorg_cv_cc_flag_unused_command_line_argument=no 14875fi 14876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14877fi 14878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14881 CFLAGS="$xorg_testset_save_CFLAGS" 14882fi 14883 14884found="no" 14885 14886 if test $found = "no" ; then 14887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14889 fi 14890 14891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14893 fi 14894 14895 CFLAGS="$CFLAGS -Werror=nonnull" 14896 14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14898$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14899 cacheid=xorg_cv_cc_flag__Werror_nonnull 14900 if eval \${$cacheid+:} false; then : 14901 $as_echo_n "(cached) " >&6 14902else 14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14904/* end confdefs.h. */ 14905int i; 14906int 14907main () 14908{ 14909 14910 ; 14911 return 0; 14912} 14913_ACEOF 14914if ac_fn_c_try_link "$LINENO"; then : 14915 eval $cacheid=yes 14916else 14917 eval $cacheid=no 14918fi 14919rm -f core conftest.err conftest.$ac_objext \ 14920 conftest$ac_exeext conftest.$ac_ext 14921fi 14922 14923 14924 CFLAGS="$xorg_testset_save_CFLAGS" 14925 14926 eval supported=\$$cacheid 14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14928$as_echo "$supported" >&6; } 14929 if test "$supported" = "yes" ; then 14930 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14931 found="yes" 14932 fi 14933 fi 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949xorg_testset_save_CFLAGS="$CFLAGS" 14950 14951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14956 $as_echo_n "(cached) " >&6 14957else 14958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14959/* end confdefs.h. */ 14960int i; 14961_ACEOF 14962if ac_fn_c_try_compile "$LINENO"; then : 14963 xorg_cv_cc_flag_unknown_warning_option=yes 14964else 14965 xorg_cv_cc_flag_unknown_warning_option=no 14966fi 14967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14968fi 14969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14972 CFLAGS="$xorg_testset_save_CFLAGS" 14973fi 14974 14975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14978 fi 14979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14986/* end confdefs.h. */ 14987int i; 14988_ACEOF 14989if ac_fn_c_try_compile "$LINENO"; then : 14990 xorg_cv_cc_flag_unused_command_line_argument=yes 14991else 14992 xorg_cv_cc_flag_unused_command_line_argument=no 14993fi 14994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14995fi 14996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14999 CFLAGS="$xorg_testset_save_CFLAGS" 15000fi 15001 15002found="no" 15003 15004 if test $found = "no" ; then 15005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15007 fi 15008 15009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15011 fi 15012 15013 CFLAGS="$CFLAGS -Werror=init-self" 15014 15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15016$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15017 cacheid=xorg_cv_cc_flag__Werror_init_self 15018 if eval \${$cacheid+:} false; then : 15019 $as_echo_n "(cached) " >&6 15020else 15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15022/* end confdefs.h. */ 15023int i; 15024int 15025main () 15026{ 15027 15028 ; 15029 return 0; 15030} 15031_ACEOF 15032if ac_fn_c_try_link "$LINENO"; then : 15033 eval $cacheid=yes 15034else 15035 eval $cacheid=no 15036fi 15037rm -f core conftest.err conftest.$ac_objext \ 15038 conftest$ac_exeext conftest.$ac_ext 15039fi 15040 15041 15042 CFLAGS="$xorg_testset_save_CFLAGS" 15043 15044 eval supported=\$$cacheid 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15046$as_echo "$supported" >&6; } 15047 if test "$supported" = "yes" ; then 15048 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15049 found="yes" 15050 fi 15051 fi 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067xorg_testset_save_CFLAGS="$CFLAGS" 15068 15069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15074 $as_echo_n "(cached) " >&6 15075else 15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15077/* end confdefs.h. */ 15078int i; 15079_ACEOF 15080if ac_fn_c_try_compile "$LINENO"; then : 15081 xorg_cv_cc_flag_unknown_warning_option=yes 15082else 15083 xorg_cv_cc_flag_unknown_warning_option=no 15084fi 15085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15086fi 15087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15090 CFLAGS="$xorg_testset_save_CFLAGS" 15091fi 15092 15093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15096 fi 15097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15101 $as_echo_n "(cached) " >&6 15102else 15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15104/* end confdefs.h. */ 15105int i; 15106_ACEOF 15107if ac_fn_c_try_compile "$LINENO"; then : 15108 xorg_cv_cc_flag_unused_command_line_argument=yes 15109else 15110 xorg_cv_cc_flag_unused_command_line_argument=no 15111fi 15112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15113fi 15114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15117 CFLAGS="$xorg_testset_save_CFLAGS" 15118fi 15119 15120found="no" 15121 15122 if test $found = "no" ; then 15123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15125 fi 15126 15127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15129 fi 15130 15131 CFLAGS="$CFLAGS -Werror=main" 15132 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15134$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15135 cacheid=xorg_cv_cc_flag__Werror_main 15136 if eval \${$cacheid+:} false; then : 15137 $as_echo_n "(cached) " >&6 15138else 15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15140/* end confdefs.h. */ 15141int i; 15142int 15143main () 15144{ 15145 15146 ; 15147 return 0; 15148} 15149_ACEOF 15150if ac_fn_c_try_link "$LINENO"; then : 15151 eval $cacheid=yes 15152else 15153 eval $cacheid=no 15154fi 15155rm -f core conftest.err conftest.$ac_objext \ 15156 conftest$ac_exeext conftest.$ac_ext 15157fi 15158 15159 15160 CFLAGS="$xorg_testset_save_CFLAGS" 15161 15162 eval supported=\$$cacheid 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15164$as_echo "$supported" >&6; } 15165 if test "$supported" = "yes" ; then 15166 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15167 found="yes" 15168 fi 15169 fi 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185xorg_testset_save_CFLAGS="$CFLAGS" 15186 15187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15192 $as_echo_n "(cached) " >&6 15193else 15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15195/* end confdefs.h. */ 15196int i; 15197_ACEOF 15198if ac_fn_c_try_compile "$LINENO"; then : 15199 xorg_cv_cc_flag_unknown_warning_option=yes 15200else 15201 xorg_cv_cc_flag_unknown_warning_option=no 15202fi 15203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15204fi 15205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15208 CFLAGS="$xorg_testset_save_CFLAGS" 15209fi 15210 15211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15214 fi 15215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15219 $as_echo_n "(cached) " >&6 15220else 15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15222/* end confdefs.h. */ 15223int i; 15224_ACEOF 15225if ac_fn_c_try_compile "$LINENO"; then : 15226 xorg_cv_cc_flag_unused_command_line_argument=yes 15227else 15228 xorg_cv_cc_flag_unused_command_line_argument=no 15229fi 15230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15231fi 15232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15235 CFLAGS="$xorg_testset_save_CFLAGS" 15236fi 15237 15238found="no" 15239 15240 if test $found = "no" ; then 15241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15243 fi 15244 15245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15247 fi 15248 15249 CFLAGS="$CFLAGS -Werror=missing-braces" 15250 15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15252$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15253 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15254 if eval \${$cacheid+:} false; then : 15255 $as_echo_n "(cached) " >&6 15256else 15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15258/* end confdefs.h. */ 15259int i; 15260int 15261main () 15262{ 15263 15264 ; 15265 return 0; 15266} 15267_ACEOF 15268if ac_fn_c_try_link "$LINENO"; then : 15269 eval $cacheid=yes 15270else 15271 eval $cacheid=no 15272fi 15273rm -f core conftest.err conftest.$ac_objext \ 15274 conftest$ac_exeext conftest.$ac_ext 15275fi 15276 15277 15278 CFLAGS="$xorg_testset_save_CFLAGS" 15279 15280 eval supported=\$$cacheid 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15282$as_echo "$supported" >&6; } 15283 if test "$supported" = "yes" ; then 15284 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15285 found="yes" 15286 fi 15287 fi 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303xorg_testset_save_CFLAGS="$CFLAGS" 15304 15305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15310 $as_echo_n "(cached) " >&6 15311else 15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15313/* end confdefs.h. */ 15314int i; 15315_ACEOF 15316if ac_fn_c_try_compile "$LINENO"; then : 15317 xorg_cv_cc_flag_unknown_warning_option=yes 15318else 15319 xorg_cv_cc_flag_unknown_warning_option=no 15320fi 15321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15322fi 15323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15326 CFLAGS="$xorg_testset_save_CFLAGS" 15327fi 15328 15329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15332 fi 15333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15337 $as_echo_n "(cached) " >&6 15338else 15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15340/* end confdefs.h. */ 15341int i; 15342_ACEOF 15343if ac_fn_c_try_compile "$LINENO"; then : 15344 xorg_cv_cc_flag_unused_command_line_argument=yes 15345else 15346 xorg_cv_cc_flag_unused_command_line_argument=no 15347fi 15348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15349fi 15350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15353 CFLAGS="$xorg_testset_save_CFLAGS" 15354fi 15355 15356found="no" 15357 15358 if test $found = "no" ; then 15359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15361 fi 15362 15363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15365 fi 15366 15367 CFLAGS="$CFLAGS -Werror=sequence-point" 15368 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15370$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15371 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15372 if eval \${$cacheid+:} false; then : 15373 $as_echo_n "(cached) " >&6 15374else 15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15376/* end confdefs.h. */ 15377int i; 15378int 15379main () 15380{ 15381 15382 ; 15383 return 0; 15384} 15385_ACEOF 15386if ac_fn_c_try_link "$LINENO"; then : 15387 eval $cacheid=yes 15388else 15389 eval $cacheid=no 15390fi 15391rm -f core conftest.err conftest.$ac_objext \ 15392 conftest$ac_exeext conftest.$ac_ext 15393fi 15394 15395 15396 CFLAGS="$xorg_testset_save_CFLAGS" 15397 15398 eval supported=\$$cacheid 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15400$as_echo "$supported" >&6; } 15401 if test "$supported" = "yes" ; then 15402 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15403 found="yes" 15404 fi 15405 fi 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421xorg_testset_save_CFLAGS="$CFLAGS" 15422 15423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15428 $as_echo_n "(cached) " >&6 15429else 15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15431/* end confdefs.h. */ 15432int i; 15433_ACEOF 15434if ac_fn_c_try_compile "$LINENO"; then : 15435 xorg_cv_cc_flag_unknown_warning_option=yes 15436else 15437 xorg_cv_cc_flag_unknown_warning_option=no 15438fi 15439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15440fi 15441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15444 CFLAGS="$xorg_testset_save_CFLAGS" 15445fi 15446 15447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15450 fi 15451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15455 $as_echo_n "(cached) " >&6 15456else 15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15458/* end confdefs.h. */ 15459int i; 15460_ACEOF 15461if ac_fn_c_try_compile "$LINENO"; then : 15462 xorg_cv_cc_flag_unused_command_line_argument=yes 15463else 15464 xorg_cv_cc_flag_unused_command_line_argument=no 15465fi 15466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15467fi 15468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15471 CFLAGS="$xorg_testset_save_CFLAGS" 15472fi 15473 15474found="no" 15475 15476 if test $found = "no" ; then 15477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15479 fi 15480 15481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15483 fi 15484 15485 CFLAGS="$CFLAGS -Werror=return-type" 15486 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15488$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15489 cacheid=xorg_cv_cc_flag__Werror_return_type 15490 if eval \${$cacheid+:} false; then : 15491 $as_echo_n "(cached) " >&6 15492else 15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15494/* end confdefs.h. */ 15495int i; 15496int 15497main () 15498{ 15499 15500 ; 15501 return 0; 15502} 15503_ACEOF 15504if ac_fn_c_try_link "$LINENO"; then : 15505 eval $cacheid=yes 15506else 15507 eval $cacheid=no 15508fi 15509rm -f core conftest.err conftest.$ac_objext \ 15510 conftest$ac_exeext conftest.$ac_ext 15511fi 15512 15513 15514 CFLAGS="$xorg_testset_save_CFLAGS" 15515 15516 eval supported=\$$cacheid 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15518$as_echo "$supported" >&6; } 15519 if test "$supported" = "yes" ; then 15520 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15521 found="yes" 15522 fi 15523 fi 15524 15525 if test $found = "no" ; then 15526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15528 fi 15529 15530 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15532 fi 15533 15534 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15535 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15537$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15538 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15539 if eval \${$cacheid+:} false; then : 15540 $as_echo_n "(cached) " >&6 15541else 15542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15543/* end confdefs.h. */ 15544int i; 15545int 15546main () 15547{ 15548 15549 ; 15550 return 0; 15551} 15552_ACEOF 15553if ac_fn_c_try_link "$LINENO"; then : 15554 eval $cacheid=yes 15555else 15556 eval $cacheid=no 15557fi 15558rm -f core conftest.err conftest.$ac_objext \ 15559 conftest$ac_exeext conftest.$ac_ext 15560fi 15561 15562 15563 CFLAGS="$xorg_testset_save_CFLAGS" 15564 15565 eval supported=\$$cacheid 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15567$as_echo "$supported" >&6; } 15568 if test "$supported" = "yes" ; then 15569 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15570 found="yes" 15571 fi 15572 fi 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588xorg_testset_save_CFLAGS="$CFLAGS" 15589 15590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15593$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15594if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15595 $as_echo_n "(cached) " >&6 15596else 15597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15598/* end confdefs.h. */ 15599int i; 15600_ACEOF 15601if ac_fn_c_try_compile "$LINENO"; then : 15602 xorg_cv_cc_flag_unknown_warning_option=yes 15603else 15604 xorg_cv_cc_flag_unknown_warning_option=no 15605fi 15606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15607fi 15608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15609$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15611 CFLAGS="$xorg_testset_save_CFLAGS" 15612fi 15613 15614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15617 fi 15618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15620$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15621if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15622 $as_echo_n "(cached) " >&6 15623else 15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15625/* end confdefs.h. */ 15626int i; 15627_ACEOF 15628if ac_fn_c_try_compile "$LINENO"; then : 15629 xorg_cv_cc_flag_unused_command_line_argument=yes 15630else 15631 xorg_cv_cc_flag_unused_command_line_argument=no 15632fi 15633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15634fi 15635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15636$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15637 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15638 CFLAGS="$xorg_testset_save_CFLAGS" 15639fi 15640 15641found="no" 15642 15643 if test $found = "no" ; then 15644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15645 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15646 fi 15647 15648 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15650 fi 15651 15652 CFLAGS="$CFLAGS -Werror=trigraphs" 15653 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15655$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15656 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15657 if eval \${$cacheid+:} false; then : 15658 $as_echo_n "(cached) " >&6 15659else 15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15661/* end confdefs.h. */ 15662int i; 15663int 15664main () 15665{ 15666 15667 ; 15668 return 0; 15669} 15670_ACEOF 15671if ac_fn_c_try_link "$LINENO"; then : 15672 eval $cacheid=yes 15673else 15674 eval $cacheid=no 15675fi 15676rm -f core conftest.err conftest.$ac_objext \ 15677 conftest$ac_exeext conftest.$ac_ext 15678fi 15679 15680 15681 CFLAGS="$xorg_testset_save_CFLAGS" 15682 15683 eval supported=\$$cacheid 15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15685$as_echo "$supported" >&6; } 15686 if test "$supported" = "yes" ; then 15687 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15688 found="yes" 15689 fi 15690 fi 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706xorg_testset_save_CFLAGS="$CFLAGS" 15707 15708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15711$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15712if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15713 $as_echo_n "(cached) " >&6 15714else 15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15716/* end confdefs.h. */ 15717int i; 15718_ACEOF 15719if ac_fn_c_try_compile "$LINENO"; then : 15720 xorg_cv_cc_flag_unknown_warning_option=yes 15721else 15722 xorg_cv_cc_flag_unknown_warning_option=no 15723fi 15724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15725fi 15726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15727$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15729 CFLAGS="$xorg_testset_save_CFLAGS" 15730fi 15731 15732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15734 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15735 fi 15736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15738$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15739if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15740 $as_echo_n "(cached) " >&6 15741else 15742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15743/* end confdefs.h. */ 15744int i; 15745_ACEOF 15746if ac_fn_c_try_compile "$LINENO"; then : 15747 xorg_cv_cc_flag_unused_command_line_argument=yes 15748else 15749 xorg_cv_cc_flag_unused_command_line_argument=no 15750fi 15751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15752fi 15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15754$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15755 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15756 CFLAGS="$xorg_testset_save_CFLAGS" 15757fi 15758 15759found="no" 15760 15761 if test $found = "no" ; then 15762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15763 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15764 fi 15765 15766 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15768 fi 15769 15770 CFLAGS="$CFLAGS -Werror=array-bounds" 15771 15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15773$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15774 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15775 if eval \${$cacheid+:} false; then : 15776 $as_echo_n "(cached) " >&6 15777else 15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15779/* end confdefs.h. */ 15780int i; 15781int 15782main () 15783{ 15784 15785 ; 15786 return 0; 15787} 15788_ACEOF 15789if ac_fn_c_try_link "$LINENO"; then : 15790 eval $cacheid=yes 15791else 15792 eval $cacheid=no 15793fi 15794rm -f core conftest.err conftest.$ac_objext \ 15795 conftest$ac_exeext conftest.$ac_ext 15796fi 15797 15798 15799 CFLAGS="$xorg_testset_save_CFLAGS" 15800 15801 eval supported=\$$cacheid 15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15803$as_echo "$supported" >&6; } 15804 if test "$supported" = "yes" ; then 15805 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15806 found="yes" 15807 fi 15808 fi 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824xorg_testset_save_CFLAGS="$CFLAGS" 15825 15826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15829$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15830if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15831 $as_echo_n "(cached) " >&6 15832else 15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15834/* end confdefs.h. */ 15835int i; 15836_ACEOF 15837if ac_fn_c_try_compile "$LINENO"; then : 15838 xorg_cv_cc_flag_unknown_warning_option=yes 15839else 15840 xorg_cv_cc_flag_unknown_warning_option=no 15841fi 15842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15843fi 15844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15845$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15847 CFLAGS="$xorg_testset_save_CFLAGS" 15848fi 15849 15850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15853 fi 15854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15856$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15857if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15858 $as_echo_n "(cached) " >&6 15859else 15860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15861/* end confdefs.h. */ 15862int i; 15863_ACEOF 15864if ac_fn_c_try_compile "$LINENO"; then : 15865 xorg_cv_cc_flag_unused_command_line_argument=yes 15866else 15867 xorg_cv_cc_flag_unused_command_line_argument=no 15868fi 15869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15870fi 15871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15872$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15873 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15874 CFLAGS="$xorg_testset_save_CFLAGS" 15875fi 15876 15877found="no" 15878 15879 if test $found = "no" ; then 15880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15882 fi 15883 15884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15886 fi 15887 15888 CFLAGS="$CFLAGS -Werror=write-strings" 15889 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15891$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15892 cacheid=xorg_cv_cc_flag__Werror_write_strings 15893 if eval \${$cacheid+:} false; then : 15894 $as_echo_n "(cached) " >&6 15895else 15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15897/* end confdefs.h. */ 15898int i; 15899int 15900main () 15901{ 15902 15903 ; 15904 return 0; 15905} 15906_ACEOF 15907if ac_fn_c_try_link "$LINENO"; then : 15908 eval $cacheid=yes 15909else 15910 eval $cacheid=no 15911fi 15912rm -f core conftest.err conftest.$ac_objext \ 15913 conftest$ac_exeext conftest.$ac_ext 15914fi 15915 15916 15917 CFLAGS="$xorg_testset_save_CFLAGS" 15918 15919 eval supported=\$$cacheid 15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15921$as_echo "$supported" >&6; } 15922 if test "$supported" = "yes" ; then 15923 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15924 found="yes" 15925 fi 15926 fi 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942xorg_testset_save_CFLAGS="$CFLAGS" 15943 15944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15947$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15948if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15949 $as_echo_n "(cached) " >&6 15950else 15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15952/* end confdefs.h. */ 15953int i; 15954_ACEOF 15955if ac_fn_c_try_compile "$LINENO"; then : 15956 xorg_cv_cc_flag_unknown_warning_option=yes 15957else 15958 xorg_cv_cc_flag_unknown_warning_option=no 15959fi 15960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15961fi 15962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15963$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15965 CFLAGS="$xorg_testset_save_CFLAGS" 15966fi 15967 15968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15971 fi 15972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15974$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15975if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15976 $as_echo_n "(cached) " >&6 15977else 15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15979/* end confdefs.h. */ 15980int i; 15981_ACEOF 15982if ac_fn_c_try_compile "$LINENO"; then : 15983 xorg_cv_cc_flag_unused_command_line_argument=yes 15984else 15985 xorg_cv_cc_flag_unused_command_line_argument=no 15986fi 15987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15988fi 15989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15990$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15992 CFLAGS="$xorg_testset_save_CFLAGS" 15993fi 15994 15995found="no" 15996 15997 if test $found = "no" ; then 15998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16000 fi 16001 16002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16004 fi 16005 16006 CFLAGS="$CFLAGS -Werror=address" 16007 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16009$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16010 cacheid=xorg_cv_cc_flag__Werror_address 16011 if eval \${$cacheid+:} false; then : 16012 $as_echo_n "(cached) " >&6 16013else 16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16015/* end confdefs.h. */ 16016int i; 16017int 16018main () 16019{ 16020 16021 ; 16022 return 0; 16023} 16024_ACEOF 16025if ac_fn_c_try_link "$LINENO"; then : 16026 eval $cacheid=yes 16027else 16028 eval $cacheid=no 16029fi 16030rm -f core conftest.err conftest.$ac_objext \ 16031 conftest$ac_exeext conftest.$ac_ext 16032fi 16033 16034 16035 CFLAGS="$xorg_testset_save_CFLAGS" 16036 16037 eval supported=\$$cacheid 16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16039$as_echo "$supported" >&6; } 16040 if test "$supported" = "yes" ; then 16041 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16042 found="yes" 16043 fi 16044 fi 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060xorg_testset_save_CFLAGS="$CFLAGS" 16061 16062if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16065$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16066if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16067 $as_echo_n "(cached) " >&6 16068else 16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16070/* end confdefs.h. */ 16071int i; 16072_ACEOF 16073if ac_fn_c_try_compile "$LINENO"; then : 16074 xorg_cv_cc_flag_unknown_warning_option=yes 16075else 16076 xorg_cv_cc_flag_unknown_warning_option=no 16077fi 16078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16079fi 16080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16081$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16083 CFLAGS="$xorg_testset_save_CFLAGS" 16084fi 16085 16086if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16088 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16089 fi 16090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16092$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16093if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16094 $as_echo_n "(cached) " >&6 16095else 16096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16097/* end confdefs.h. */ 16098int i; 16099_ACEOF 16100if ac_fn_c_try_compile "$LINENO"; then : 16101 xorg_cv_cc_flag_unused_command_line_argument=yes 16102else 16103 xorg_cv_cc_flag_unused_command_line_argument=no 16104fi 16105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16106fi 16107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16108$as_echo "$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" 16111fi 16112 16113found="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=int-to-pointer-cast" 16125 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16127$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16128 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16129 if eval \${$cacheid+:} false; then : 16130 $as_echo_n "(cached) " >&6 16131else 16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16133/* end confdefs.h. */ 16134int i; 16135int 16136main () 16137{ 16138 16139 ; 16140 return 0; 16141} 16142_ACEOF 16143if ac_fn_c_try_link "$LINENO"; then : 16144 eval $cacheid=yes 16145else 16146 eval $cacheid=no 16147fi 16148rm -f core conftest.err conftest.$ac_objext \ 16149 conftest$ac_exeext conftest.$ac_ext 16150fi 16151 16152 16153 CFLAGS="$xorg_testset_save_CFLAGS" 16154 16155 eval supported=\$$cacheid 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16157$as_echo "$supported" >&6; } 16158 if test "$supported" = "yes" ; then 16159 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16160 found="yes" 16161 fi 16162 fi 16163 16164 if test $found = "no" ; then 16165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16167 fi 16168 16169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16171 fi 16172 16173 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16174 16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16176$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16177 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16178 if eval \${$cacheid+:} false; then : 16179 $as_echo_n "(cached) " >&6 16180else 16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16182/* end confdefs.h. */ 16183int i; 16184int 16185main () 16186{ 16187 16188 ; 16189 return 0; 16190} 16191_ACEOF 16192if ac_fn_c_try_link "$LINENO"; then : 16193 eval $cacheid=yes 16194else 16195 eval $cacheid=no 16196fi 16197rm -f core conftest.err conftest.$ac_objext \ 16198 conftest$ac_exeext conftest.$ac_ext 16199fi 16200 16201 16202 CFLAGS="$xorg_testset_save_CFLAGS" 16203 16204 eval supported=\$$cacheid 16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16206$as_echo "$supported" >&6; } 16207 if test "$supported" = "yes" ; then 16208 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16209 found="yes" 16210 fi 16211 fi 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227xorg_testset_save_CFLAGS="$CFLAGS" 16228 16229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16232$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16233if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16234 $as_echo_n "(cached) " >&6 16235else 16236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16237/* end confdefs.h. */ 16238int i; 16239_ACEOF 16240if ac_fn_c_try_compile "$LINENO"; then : 16241 xorg_cv_cc_flag_unknown_warning_option=yes 16242else 16243 xorg_cv_cc_flag_unknown_warning_option=no 16244fi 16245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16246fi 16247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16248$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16250 CFLAGS="$xorg_testset_save_CFLAGS" 16251fi 16252 16253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16255 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16256 fi 16257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16259$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16260if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16261 $as_echo_n "(cached) " >&6 16262else 16263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16264/* end confdefs.h. */ 16265int i; 16266_ACEOF 16267if ac_fn_c_try_compile "$LINENO"; then : 16268 xorg_cv_cc_flag_unused_command_line_argument=yes 16269else 16270 xorg_cv_cc_flag_unused_command_line_argument=no 16271fi 16272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16273fi 16274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16275$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16277 CFLAGS="$xorg_testset_save_CFLAGS" 16278fi 16279 16280found="no" 16281 16282 if test $found = "no" ; then 16283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16285 fi 16286 16287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16289 fi 16290 16291 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16292 16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16294$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16295 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16296 if eval \${$cacheid+:} false; then : 16297 $as_echo_n "(cached) " >&6 16298else 16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16300/* end confdefs.h. */ 16301int i; 16302int 16303main () 16304{ 16305 16306 ; 16307 return 0; 16308} 16309_ACEOF 16310if ac_fn_c_try_link "$LINENO"; then : 16311 eval $cacheid=yes 16312else 16313 eval $cacheid=no 16314fi 16315rm -f core conftest.err conftest.$ac_objext \ 16316 conftest$ac_exeext conftest.$ac_ext 16317fi 16318 16319 16320 CFLAGS="$xorg_testset_save_CFLAGS" 16321 16322 eval supported=\$$cacheid 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16324$as_echo "$supported" >&6; } 16325 if test "$supported" = "yes" ; then 16326 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16327 found="yes" 16328 fi 16329 fi 16330 16331 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16332else 16333{ $as_echo "$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 16334$as_echo "$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;} 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348xorg_testset_save_CFLAGS="$CFLAGS" 16349 16350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16351 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16355 $as_echo_n "(cached) " >&6 16356else 16357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16358/* end confdefs.h. */ 16359int i; 16360_ACEOF 16361if ac_fn_c_try_compile "$LINENO"; then : 16362 xorg_cv_cc_flag_unknown_warning_option=yes 16363else 16364 xorg_cv_cc_flag_unknown_warning_option=no 16365fi 16366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16367fi 16368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16371 CFLAGS="$xorg_testset_save_CFLAGS" 16372fi 16373 16374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16377 fi 16378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16382 $as_echo_n "(cached) " >&6 16383else 16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16385/* end confdefs.h. */ 16386int i; 16387_ACEOF 16388if ac_fn_c_try_compile "$LINENO"; then : 16389 xorg_cv_cc_flag_unused_command_line_argument=yes 16390else 16391 xorg_cv_cc_flag_unused_command_line_argument=no 16392fi 16393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16394fi 16395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16398 CFLAGS="$xorg_testset_save_CFLAGS" 16399fi 16400 16401found="no" 16402 16403 if test $found = "no" ; then 16404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16406 fi 16407 16408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16410 fi 16411 16412 CFLAGS="$CFLAGS -Wimplicit" 16413 16414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16415$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16416 cacheid=xorg_cv_cc_flag__Wimplicit 16417 if eval \${$cacheid+:} false; then : 16418 $as_echo_n "(cached) " >&6 16419else 16420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16421/* end confdefs.h. */ 16422int i; 16423int 16424main () 16425{ 16426 16427 ; 16428 return 0; 16429} 16430_ACEOF 16431if ac_fn_c_try_link "$LINENO"; then : 16432 eval $cacheid=yes 16433else 16434 eval $cacheid=no 16435fi 16436rm -f core conftest.err conftest.$ac_objext \ 16437 conftest$ac_exeext conftest.$ac_ext 16438fi 16439 16440 16441 CFLAGS="$xorg_testset_save_CFLAGS" 16442 16443 eval supported=\$$cacheid 16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16445$as_echo "$supported" >&6; } 16446 if test "$supported" = "yes" ; then 16447 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16448 found="yes" 16449 fi 16450 fi 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466xorg_testset_save_CFLAGS="$CFLAGS" 16467 16468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16469 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16473 $as_echo_n "(cached) " >&6 16474else 16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16476/* end confdefs.h. */ 16477int i; 16478_ACEOF 16479if ac_fn_c_try_compile "$LINENO"; then : 16480 xorg_cv_cc_flag_unknown_warning_option=yes 16481else 16482 xorg_cv_cc_flag_unknown_warning_option=no 16483fi 16484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16485fi 16486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16489 CFLAGS="$xorg_testset_save_CFLAGS" 16490fi 16491 16492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16495 fi 16496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16500 $as_echo_n "(cached) " >&6 16501else 16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16503/* end confdefs.h. */ 16504int i; 16505_ACEOF 16506if ac_fn_c_try_compile "$LINENO"; then : 16507 xorg_cv_cc_flag_unused_command_line_argument=yes 16508else 16509 xorg_cv_cc_flag_unused_command_line_argument=no 16510fi 16511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16512fi 16513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16516 CFLAGS="$xorg_testset_save_CFLAGS" 16517fi 16518 16519found="no" 16520 16521 if test $found = "no" ; then 16522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16524 fi 16525 16526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16528 fi 16529 16530 CFLAGS="$CFLAGS -Wnonnull" 16531 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16533$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16534 cacheid=xorg_cv_cc_flag__Wnonnull 16535 if eval \${$cacheid+:} false; then : 16536 $as_echo_n "(cached) " >&6 16537else 16538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16539/* end confdefs.h. */ 16540int i; 16541int 16542main () 16543{ 16544 16545 ; 16546 return 0; 16547} 16548_ACEOF 16549if ac_fn_c_try_link "$LINENO"; then : 16550 eval $cacheid=yes 16551else 16552 eval $cacheid=no 16553fi 16554rm -f core conftest.err conftest.$ac_objext \ 16555 conftest$ac_exeext conftest.$ac_ext 16556fi 16557 16558 16559 CFLAGS="$xorg_testset_save_CFLAGS" 16560 16561 eval supported=\$$cacheid 16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16563$as_echo "$supported" >&6; } 16564 if test "$supported" = "yes" ; then 16565 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16566 found="yes" 16567 fi 16568 fi 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584xorg_testset_save_CFLAGS="$CFLAGS" 16585 16586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16591 $as_echo_n "(cached) " >&6 16592else 16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16594/* end confdefs.h. */ 16595int i; 16596_ACEOF 16597if ac_fn_c_try_compile "$LINENO"; then : 16598 xorg_cv_cc_flag_unknown_warning_option=yes 16599else 16600 xorg_cv_cc_flag_unknown_warning_option=no 16601fi 16602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16603fi 16604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16606 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16607 CFLAGS="$xorg_testset_save_CFLAGS" 16608fi 16609 16610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16613 fi 16614 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16621/* end confdefs.h. */ 16622int i; 16623_ACEOF 16624if ac_fn_c_try_compile "$LINENO"; then : 16625 xorg_cv_cc_flag_unused_command_line_argument=yes 16626else 16627 xorg_cv_cc_flag_unused_command_line_argument=no 16628fi 16629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16630fi 16631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16634 CFLAGS="$xorg_testset_save_CFLAGS" 16635fi 16636 16637found="no" 16638 16639 if test $found = "no" ; then 16640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16641 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16642 fi 16643 16644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16646 fi 16647 16648 CFLAGS="$CFLAGS -Winit-self" 16649 16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16651$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16652 cacheid=xorg_cv_cc_flag__Winit_self 16653 if eval \${$cacheid+:} false; then : 16654 $as_echo_n "(cached) " >&6 16655else 16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16657/* end confdefs.h. */ 16658int i; 16659int 16660main () 16661{ 16662 16663 ; 16664 return 0; 16665} 16666_ACEOF 16667if ac_fn_c_try_link "$LINENO"; then : 16668 eval $cacheid=yes 16669else 16670 eval $cacheid=no 16671fi 16672rm -f core conftest.err conftest.$ac_objext \ 16673 conftest$ac_exeext conftest.$ac_ext 16674fi 16675 16676 16677 CFLAGS="$xorg_testset_save_CFLAGS" 16678 16679 eval supported=\$$cacheid 16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16681$as_echo "$supported" >&6; } 16682 if test "$supported" = "yes" ; then 16683 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16684 found="yes" 16685 fi 16686 fi 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702xorg_testset_save_CFLAGS="$CFLAGS" 16703 16704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16709 $as_echo_n "(cached) " >&6 16710else 16711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16712/* end confdefs.h. */ 16713int i; 16714_ACEOF 16715if ac_fn_c_try_compile "$LINENO"; then : 16716 xorg_cv_cc_flag_unknown_warning_option=yes 16717else 16718 xorg_cv_cc_flag_unknown_warning_option=no 16719fi 16720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16721fi 16722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16724 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16725 CFLAGS="$xorg_testset_save_CFLAGS" 16726fi 16727 16728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16731 fi 16732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16736 $as_echo_n "(cached) " >&6 16737else 16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16739/* end confdefs.h. */ 16740int i; 16741_ACEOF 16742if ac_fn_c_try_compile "$LINENO"; then : 16743 xorg_cv_cc_flag_unused_command_line_argument=yes 16744else 16745 xorg_cv_cc_flag_unused_command_line_argument=no 16746fi 16747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16748fi 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16752 CFLAGS="$xorg_testset_save_CFLAGS" 16753fi 16754 16755found="no" 16756 16757 if test $found = "no" ; then 16758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16760 fi 16761 16762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16764 fi 16765 16766 CFLAGS="$CFLAGS -Wmain" 16767 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16769$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16770 cacheid=xorg_cv_cc_flag__Wmain 16771 if eval \${$cacheid+:} false; then : 16772 $as_echo_n "(cached) " >&6 16773else 16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16775/* end confdefs.h. */ 16776int i; 16777int 16778main () 16779{ 16780 16781 ; 16782 return 0; 16783} 16784_ACEOF 16785if ac_fn_c_try_link "$LINENO"; then : 16786 eval $cacheid=yes 16787else 16788 eval $cacheid=no 16789fi 16790rm -f core conftest.err conftest.$ac_objext \ 16791 conftest$ac_exeext conftest.$ac_ext 16792fi 16793 16794 16795 CFLAGS="$xorg_testset_save_CFLAGS" 16796 16797 eval supported=\$$cacheid 16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16799$as_echo "$supported" >&6; } 16800 if test "$supported" = "yes" ; then 16801 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16802 found="yes" 16803 fi 16804 fi 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820xorg_testset_save_CFLAGS="$CFLAGS" 16821 16822if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16825$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16826if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16827 $as_echo_n "(cached) " >&6 16828else 16829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16830/* end confdefs.h. */ 16831int i; 16832_ACEOF 16833if ac_fn_c_try_compile "$LINENO"; then : 16834 xorg_cv_cc_flag_unknown_warning_option=yes 16835else 16836 xorg_cv_cc_flag_unknown_warning_option=no 16837fi 16838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16839fi 16840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16841$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16842 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16843 CFLAGS="$xorg_testset_save_CFLAGS" 16844fi 16845 16846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16849 fi 16850 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16852$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16853if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16854 $as_echo_n "(cached) " >&6 16855else 16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16857/* end confdefs.h. */ 16858int i; 16859_ACEOF 16860if ac_fn_c_try_compile "$LINENO"; then : 16861 xorg_cv_cc_flag_unused_command_line_argument=yes 16862else 16863 xorg_cv_cc_flag_unused_command_line_argument=no 16864fi 16865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16866fi 16867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16868$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16870 CFLAGS="$xorg_testset_save_CFLAGS" 16871fi 16872 16873found="no" 16874 16875 if test $found = "no" ; then 16876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16878 fi 16879 16880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16882 fi 16883 16884 CFLAGS="$CFLAGS -Wmissing-braces" 16885 16886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16887$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16888 cacheid=xorg_cv_cc_flag__Wmissing_braces 16889 if eval \${$cacheid+:} false; then : 16890 $as_echo_n "(cached) " >&6 16891else 16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16893/* end confdefs.h. */ 16894int i; 16895int 16896main () 16897{ 16898 16899 ; 16900 return 0; 16901} 16902_ACEOF 16903if ac_fn_c_try_link "$LINENO"; then : 16904 eval $cacheid=yes 16905else 16906 eval $cacheid=no 16907fi 16908rm -f core conftest.err conftest.$ac_objext \ 16909 conftest$ac_exeext conftest.$ac_ext 16910fi 16911 16912 16913 CFLAGS="$xorg_testset_save_CFLAGS" 16914 16915 eval supported=\$$cacheid 16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16917$as_echo "$supported" >&6; } 16918 if test "$supported" = "yes" ; then 16919 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16920 found="yes" 16921 fi 16922 fi 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938xorg_testset_save_CFLAGS="$CFLAGS" 16939 16940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16943$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16944if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16945 $as_echo_n "(cached) " >&6 16946else 16947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16948/* end confdefs.h. */ 16949int i; 16950_ACEOF 16951if ac_fn_c_try_compile "$LINENO"; then : 16952 xorg_cv_cc_flag_unknown_warning_option=yes 16953else 16954 xorg_cv_cc_flag_unknown_warning_option=no 16955fi 16956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16957fi 16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16959$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16960 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16961 CFLAGS="$xorg_testset_save_CFLAGS" 16962fi 16963 16964if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16967 fi 16968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16970$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16971if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16972 $as_echo_n "(cached) " >&6 16973else 16974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16975/* end confdefs.h. */ 16976int i; 16977_ACEOF 16978if ac_fn_c_try_compile "$LINENO"; then : 16979 xorg_cv_cc_flag_unused_command_line_argument=yes 16980else 16981 xorg_cv_cc_flag_unused_command_line_argument=no 16982fi 16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16984fi 16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16986$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16987 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16988 CFLAGS="$xorg_testset_save_CFLAGS" 16989fi 16990 16991found="no" 16992 16993 if test $found = "no" ; then 16994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16996 fi 16997 16998 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17000 fi 17001 17002 CFLAGS="$CFLAGS -Wsequence-point" 17003 17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17005$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17006 cacheid=xorg_cv_cc_flag__Wsequence_point 17007 if eval \${$cacheid+:} false; then : 17008 $as_echo_n "(cached) " >&6 17009else 17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17011/* end confdefs.h. */ 17012int i; 17013int 17014main () 17015{ 17016 17017 ; 17018 return 0; 17019} 17020_ACEOF 17021if ac_fn_c_try_link "$LINENO"; then : 17022 eval $cacheid=yes 17023else 17024 eval $cacheid=no 17025fi 17026rm -f core conftest.err conftest.$ac_objext \ 17027 conftest$ac_exeext conftest.$ac_ext 17028fi 17029 17030 17031 CFLAGS="$xorg_testset_save_CFLAGS" 17032 17033 eval supported=\$$cacheid 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17035$as_echo "$supported" >&6; } 17036 if test "$supported" = "yes" ; then 17037 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17038 found="yes" 17039 fi 17040 fi 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056xorg_testset_save_CFLAGS="$CFLAGS" 17057 17058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17061$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17062if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17063 $as_echo_n "(cached) " >&6 17064else 17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17066/* end confdefs.h. */ 17067int i; 17068_ACEOF 17069if ac_fn_c_try_compile "$LINENO"; then : 17070 xorg_cv_cc_flag_unknown_warning_option=yes 17071else 17072 xorg_cv_cc_flag_unknown_warning_option=no 17073fi 17074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17075fi 17076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17077$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17079 CFLAGS="$xorg_testset_save_CFLAGS" 17080fi 17081 17082if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17085 fi 17086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17088$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17089if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17090 $as_echo_n "(cached) " >&6 17091else 17092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17093/* end confdefs.h. */ 17094int i; 17095_ACEOF 17096if ac_fn_c_try_compile "$LINENO"; then : 17097 xorg_cv_cc_flag_unused_command_line_argument=yes 17098else 17099 xorg_cv_cc_flag_unused_command_line_argument=no 17100fi 17101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17102fi 17103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17104$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17105 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17106 CFLAGS="$xorg_testset_save_CFLAGS" 17107fi 17108 17109found="no" 17110 17111 if test $found = "no" ; then 17112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17114 fi 17115 17116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17118 fi 17119 17120 CFLAGS="$CFLAGS -Wreturn-type" 17121 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17123$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17124 cacheid=xorg_cv_cc_flag__Wreturn_type 17125 if eval \${$cacheid+:} false; then : 17126 $as_echo_n "(cached) " >&6 17127else 17128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17129/* end confdefs.h. */ 17130int i; 17131int 17132main () 17133{ 17134 17135 ; 17136 return 0; 17137} 17138_ACEOF 17139if ac_fn_c_try_link "$LINENO"; then : 17140 eval $cacheid=yes 17141else 17142 eval $cacheid=no 17143fi 17144rm -f core conftest.err conftest.$ac_objext \ 17145 conftest$ac_exeext conftest.$ac_ext 17146fi 17147 17148 17149 CFLAGS="$xorg_testset_save_CFLAGS" 17150 17151 eval supported=\$$cacheid 17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17153$as_echo "$supported" >&6; } 17154 if test "$supported" = "yes" ; then 17155 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17156 found="yes" 17157 fi 17158 fi 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174xorg_testset_save_CFLAGS="$CFLAGS" 17175 17176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17181 $as_echo_n "(cached) " >&6 17182else 17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17184/* end confdefs.h. */ 17185int i; 17186_ACEOF 17187if ac_fn_c_try_compile "$LINENO"; then : 17188 xorg_cv_cc_flag_unknown_warning_option=yes 17189else 17190 xorg_cv_cc_flag_unknown_warning_option=no 17191fi 17192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17193fi 17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17197 CFLAGS="$xorg_testset_save_CFLAGS" 17198fi 17199 17200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17203 fi 17204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211/* end confdefs.h. */ 17212int i; 17213_ACEOF 17214if ac_fn_c_try_compile "$LINENO"; then : 17215 xorg_cv_cc_flag_unused_command_line_argument=yes 17216else 17217 xorg_cv_cc_flag_unused_command_line_argument=no 17218fi 17219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17220fi 17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17224 CFLAGS="$xorg_testset_save_CFLAGS" 17225fi 17226 17227found="no" 17228 17229 if test $found = "no" ; then 17230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17232 fi 17233 17234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17236 fi 17237 17238 CFLAGS="$CFLAGS -Wtrigraphs" 17239 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17241$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17242 cacheid=xorg_cv_cc_flag__Wtrigraphs 17243 if eval \${$cacheid+:} false; then : 17244 $as_echo_n "(cached) " >&6 17245else 17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17247/* end confdefs.h. */ 17248int i; 17249int 17250main () 17251{ 17252 17253 ; 17254 return 0; 17255} 17256_ACEOF 17257if ac_fn_c_try_link "$LINENO"; then : 17258 eval $cacheid=yes 17259else 17260 eval $cacheid=no 17261fi 17262rm -f core conftest.err conftest.$ac_objext \ 17263 conftest$ac_exeext conftest.$ac_ext 17264fi 17265 17266 17267 CFLAGS="$xorg_testset_save_CFLAGS" 17268 17269 eval supported=\$$cacheid 17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17271$as_echo "$supported" >&6; } 17272 if test "$supported" = "yes" ; then 17273 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17274 found="yes" 17275 fi 17276 fi 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292xorg_testset_save_CFLAGS="$CFLAGS" 17293 17294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17299 $as_echo_n "(cached) " >&6 17300else 17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17302/* end confdefs.h. */ 17303int i; 17304_ACEOF 17305if ac_fn_c_try_compile "$LINENO"; then : 17306 xorg_cv_cc_flag_unknown_warning_option=yes 17307else 17308 xorg_cv_cc_flag_unknown_warning_option=no 17309fi 17310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17311fi 17312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17315 CFLAGS="$xorg_testset_save_CFLAGS" 17316fi 17317 17318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17321 fi 17322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17326 $as_echo_n "(cached) " >&6 17327else 17328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17329/* end confdefs.h. */ 17330int i; 17331_ACEOF 17332if ac_fn_c_try_compile "$LINENO"; then : 17333 xorg_cv_cc_flag_unused_command_line_argument=yes 17334else 17335 xorg_cv_cc_flag_unused_command_line_argument=no 17336fi 17337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17338fi 17339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17342 CFLAGS="$xorg_testset_save_CFLAGS" 17343fi 17344 17345found="no" 17346 17347 if test $found = "no" ; then 17348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17350 fi 17351 17352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17354 fi 17355 17356 CFLAGS="$CFLAGS -Warray-bounds" 17357 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17359$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17360 cacheid=xorg_cv_cc_flag__Warray_bounds 17361 if eval \${$cacheid+:} false; then : 17362 $as_echo_n "(cached) " >&6 17363else 17364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17365/* end confdefs.h. */ 17366int i; 17367int 17368main () 17369{ 17370 17371 ; 17372 return 0; 17373} 17374_ACEOF 17375if ac_fn_c_try_link "$LINENO"; then : 17376 eval $cacheid=yes 17377else 17378 eval $cacheid=no 17379fi 17380rm -f core conftest.err conftest.$ac_objext \ 17381 conftest$ac_exeext conftest.$ac_ext 17382fi 17383 17384 17385 CFLAGS="$xorg_testset_save_CFLAGS" 17386 17387 eval supported=\$$cacheid 17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17389$as_echo "$supported" >&6; } 17390 if test "$supported" = "yes" ; then 17391 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17392 found="yes" 17393 fi 17394 fi 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410xorg_testset_save_CFLAGS="$CFLAGS" 17411 17412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17417 $as_echo_n "(cached) " >&6 17418else 17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17420/* end confdefs.h. */ 17421int i; 17422_ACEOF 17423if ac_fn_c_try_compile "$LINENO"; then : 17424 xorg_cv_cc_flag_unknown_warning_option=yes 17425else 17426 xorg_cv_cc_flag_unknown_warning_option=no 17427fi 17428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17429fi 17430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17433 CFLAGS="$xorg_testset_save_CFLAGS" 17434fi 17435 17436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17439 fi 17440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17444 $as_echo_n "(cached) " >&6 17445else 17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17447/* end confdefs.h. */ 17448int i; 17449_ACEOF 17450if ac_fn_c_try_compile "$LINENO"; then : 17451 xorg_cv_cc_flag_unused_command_line_argument=yes 17452else 17453 xorg_cv_cc_flag_unused_command_line_argument=no 17454fi 17455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17456fi 17457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17460 CFLAGS="$xorg_testset_save_CFLAGS" 17461fi 17462 17463found="no" 17464 17465 if test $found = "no" ; then 17466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17468 fi 17469 17470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17472 fi 17473 17474 CFLAGS="$CFLAGS -Wwrite-strings" 17475 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17477$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17478 cacheid=xorg_cv_cc_flag__Wwrite_strings 17479 if eval \${$cacheid+:} false; then : 17480 $as_echo_n "(cached) " >&6 17481else 17482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17483/* end confdefs.h. */ 17484int i; 17485int 17486main () 17487{ 17488 17489 ; 17490 return 0; 17491} 17492_ACEOF 17493if ac_fn_c_try_link "$LINENO"; then : 17494 eval $cacheid=yes 17495else 17496 eval $cacheid=no 17497fi 17498rm -f core conftest.err conftest.$ac_objext \ 17499 conftest$ac_exeext conftest.$ac_ext 17500fi 17501 17502 17503 CFLAGS="$xorg_testset_save_CFLAGS" 17504 17505 eval supported=\$$cacheid 17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17507$as_echo "$supported" >&6; } 17508 if test "$supported" = "yes" ; then 17509 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17510 found="yes" 17511 fi 17512 fi 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528xorg_testset_save_CFLAGS="$CFLAGS" 17529 17530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17535 $as_echo_n "(cached) " >&6 17536else 17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17538/* end confdefs.h. */ 17539int i; 17540_ACEOF 17541if ac_fn_c_try_compile "$LINENO"; then : 17542 xorg_cv_cc_flag_unknown_warning_option=yes 17543else 17544 xorg_cv_cc_flag_unknown_warning_option=no 17545fi 17546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17547fi 17548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17551 CFLAGS="$xorg_testset_save_CFLAGS" 17552fi 17553 17554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17557 fi 17558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17562 $as_echo_n "(cached) " >&6 17563else 17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17565/* end confdefs.h. */ 17566int i; 17567_ACEOF 17568if ac_fn_c_try_compile "$LINENO"; then : 17569 xorg_cv_cc_flag_unused_command_line_argument=yes 17570else 17571 xorg_cv_cc_flag_unused_command_line_argument=no 17572fi 17573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17574fi 17575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17578 CFLAGS="$xorg_testset_save_CFLAGS" 17579fi 17580 17581found="no" 17582 17583 if test $found = "no" ; then 17584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17586 fi 17587 17588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17590 fi 17591 17592 CFLAGS="$CFLAGS -Waddress" 17593 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17595$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17596 cacheid=xorg_cv_cc_flag__Waddress 17597 if eval \${$cacheid+:} false; then : 17598 $as_echo_n "(cached) " >&6 17599else 17600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17601/* end confdefs.h. */ 17602int i; 17603int 17604main () 17605{ 17606 17607 ; 17608 return 0; 17609} 17610_ACEOF 17611if ac_fn_c_try_link "$LINENO"; then : 17612 eval $cacheid=yes 17613else 17614 eval $cacheid=no 17615fi 17616rm -f core conftest.err conftest.$ac_objext \ 17617 conftest$ac_exeext conftest.$ac_ext 17618fi 17619 17620 17621 CFLAGS="$xorg_testset_save_CFLAGS" 17622 17623 eval supported=\$$cacheid 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17625$as_echo "$supported" >&6; } 17626 if test "$supported" = "yes" ; then 17627 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17628 found="yes" 17629 fi 17630 fi 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646xorg_testset_save_CFLAGS="$CFLAGS" 17647 17648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17653 $as_echo_n "(cached) " >&6 17654else 17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17656/* end confdefs.h. */ 17657int i; 17658_ACEOF 17659if ac_fn_c_try_compile "$LINENO"; then : 17660 xorg_cv_cc_flag_unknown_warning_option=yes 17661else 17662 xorg_cv_cc_flag_unknown_warning_option=no 17663fi 17664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17665fi 17666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17669 CFLAGS="$xorg_testset_save_CFLAGS" 17670fi 17671 17672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17675 fi 17676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17680 $as_echo_n "(cached) " >&6 17681else 17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17683/* end confdefs.h. */ 17684int i; 17685_ACEOF 17686if ac_fn_c_try_compile "$LINENO"; then : 17687 xorg_cv_cc_flag_unused_command_line_argument=yes 17688else 17689 xorg_cv_cc_flag_unused_command_line_argument=no 17690fi 17691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17692fi 17693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17696 CFLAGS="$xorg_testset_save_CFLAGS" 17697fi 17698 17699found="no" 17700 17701 if test $found = "no" ; then 17702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17704 fi 17705 17706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17708 fi 17709 17710 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17711 17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17713$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17714 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17715 if eval \${$cacheid+:} false; then : 17716 $as_echo_n "(cached) " >&6 17717else 17718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17719/* end confdefs.h. */ 17720int i; 17721int 17722main () 17723{ 17724 17725 ; 17726 return 0; 17727} 17728_ACEOF 17729if ac_fn_c_try_link "$LINENO"; then : 17730 eval $cacheid=yes 17731else 17732 eval $cacheid=no 17733fi 17734rm -f core conftest.err conftest.$ac_objext \ 17735 conftest$ac_exeext conftest.$ac_ext 17736fi 17737 17738 17739 CFLAGS="$xorg_testset_save_CFLAGS" 17740 17741 eval supported=\$$cacheid 17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17743$as_echo "$supported" >&6; } 17744 if test "$supported" = "yes" ; then 17745 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17746 found="yes" 17747 fi 17748 fi 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764xorg_testset_save_CFLAGS="$CFLAGS" 17765 17766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17771 $as_echo_n "(cached) " >&6 17772else 17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17774/* end confdefs.h. */ 17775int i; 17776_ACEOF 17777if ac_fn_c_try_compile "$LINENO"; then : 17778 xorg_cv_cc_flag_unknown_warning_option=yes 17779else 17780 xorg_cv_cc_flag_unknown_warning_option=no 17781fi 17782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17783fi 17784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17787 CFLAGS="$xorg_testset_save_CFLAGS" 17788fi 17789 17790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17793 fi 17794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17798 $as_echo_n "(cached) " >&6 17799else 17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17801/* end confdefs.h. */ 17802int i; 17803_ACEOF 17804if ac_fn_c_try_compile "$LINENO"; then : 17805 xorg_cv_cc_flag_unused_command_line_argument=yes 17806else 17807 xorg_cv_cc_flag_unused_command_line_argument=no 17808fi 17809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17810fi 17811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17814 CFLAGS="$xorg_testset_save_CFLAGS" 17815fi 17816 17817found="no" 17818 17819 if test $found = "no" ; then 17820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17822 fi 17823 17824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17826 fi 17827 17828 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17829 17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17831$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17832 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17833 if eval \${$cacheid+:} false; then : 17834 $as_echo_n "(cached) " >&6 17835else 17836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17837/* end confdefs.h. */ 17838int i; 17839int 17840main () 17841{ 17842 17843 ; 17844 return 0; 17845} 17846_ACEOF 17847if ac_fn_c_try_link "$LINENO"; then : 17848 eval $cacheid=yes 17849else 17850 eval $cacheid=no 17851fi 17852rm -f core conftest.err conftest.$ac_objext \ 17853 conftest$ac_exeext conftest.$ac_ext 17854fi 17855 17856 17857 CFLAGS="$xorg_testset_save_CFLAGS" 17858 17859 eval supported=\$$cacheid 17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17861$as_echo "$supported" >&6; } 17862 if test "$supported" = "yes" ; then 17863 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17864 found="yes" 17865 fi 17866 fi 17867 17868 17869fi 17870 17871 17872 17873 17874 17875 17876 17877 CWARNFLAGS="$BASE_CFLAGS" 17878 if test "x$GCC" = xyes ; then 17879 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17880 fi 17881 17882 17883 17884 17885 17886 17887 17888 17889# Check whether --enable-strict-compilation was given. 17890if test "${enable_strict_compilation+set}" = set; then : 17891 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17892else 17893 STRICT_COMPILE=no 17894fi 17895 17896 17897 17898 17899 17900 17901STRICT_CFLAGS="" 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915xorg_testset_save_CFLAGS="$CFLAGS" 17916 17917if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17920$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17921if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17922 $as_echo_n "(cached) " >&6 17923else 17924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17925/* end confdefs.h. */ 17926int i; 17927_ACEOF 17928if ac_fn_c_try_compile "$LINENO"; then : 17929 xorg_cv_cc_flag_unknown_warning_option=yes 17930else 17931 xorg_cv_cc_flag_unknown_warning_option=no 17932fi 17933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17934fi 17935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17936$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17938 CFLAGS="$xorg_testset_save_CFLAGS" 17939fi 17940 17941if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17944 fi 17945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17947$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17948if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17949 $as_echo_n "(cached) " >&6 17950else 17951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17952/* end confdefs.h. */ 17953int i; 17954_ACEOF 17955if ac_fn_c_try_compile "$LINENO"; then : 17956 xorg_cv_cc_flag_unused_command_line_argument=yes 17957else 17958 xorg_cv_cc_flag_unused_command_line_argument=no 17959fi 17960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17961fi 17962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17963$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17965 CFLAGS="$xorg_testset_save_CFLAGS" 17966fi 17967 17968found="no" 17969 17970 if test $found = "no" ; then 17971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17973 fi 17974 17975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17977 fi 17978 17979 CFLAGS="$CFLAGS -pedantic" 17980 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17982$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17983 cacheid=xorg_cv_cc_flag__pedantic 17984 if eval \${$cacheid+:} false; then : 17985 $as_echo_n "(cached) " >&6 17986else 17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17988/* end confdefs.h. */ 17989int i; 17990int 17991main () 17992{ 17993 17994 ; 17995 return 0; 17996} 17997_ACEOF 17998if ac_fn_c_try_link "$LINENO"; then : 17999 eval $cacheid=yes 18000else 18001 eval $cacheid=no 18002fi 18003rm -f core conftest.err conftest.$ac_objext \ 18004 conftest$ac_exeext conftest.$ac_ext 18005fi 18006 18007 18008 CFLAGS="$xorg_testset_save_CFLAGS" 18009 18010 eval supported=\$$cacheid 18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18012$as_echo "$supported" >&6; } 18013 if test "$supported" = "yes" ; then 18014 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18015 found="yes" 18016 fi 18017 fi 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033xorg_testset_save_CFLAGS="$CFLAGS" 18034 18035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18040 $as_echo_n "(cached) " >&6 18041else 18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18043/* end confdefs.h. */ 18044int i; 18045_ACEOF 18046if ac_fn_c_try_compile "$LINENO"; then : 18047 xorg_cv_cc_flag_unknown_warning_option=yes 18048else 18049 xorg_cv_cc_flag_unknown_warning_option=no 18050fi 18051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18052fi 18053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18056 CFLAGS="$xorg_testset_save_CFLAGS" 18057fi 18058 18059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18062 fi 18063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18067 $as_echo_n "(cached) " >&6 18068else 18069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18070/* end confdefs.h. */ 18071int i; 18072_ACEOF 18073if ac_fn_c_try_compile "$LINENO"; then : 18074 xorg_cv_cc_flag_unused_command_line_argument=yes 18075else 18076 xorg_cv_cc_flag_unused_command_line_argument=no 18077fi 18078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18079fi 18080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18083 CFLAGS="$xorg_testset_save_CFLAGS" 18084fi 18085 18086found="no" 18087 18088 if test $found = "no" ; then 18089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18091 fi 18092 18093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18095 fi 18096 18097 CFLAGS="$CFLAGS -Werror" 18098 18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18100$as_echo_n "checking if $CC supports -Werror... " >&6; } 18101 cacheid=xorg_cv_cc_flag__Werror 18102 if eval \${$cacheid+:} false; then : 18103 $as_echo_n "(cached) " >&6 18104else 18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18106/* end confdefs.h. */ 18107int i; 18108int 18109main () 18110{ 18111 18112 ; 18113 return 0; 18114} 18115_ACEOF 18116if ac_fn_c_try_link "$LINENO"; then : 18117 eval $cacheid=yes 18118else 18119 eval $cacheid=no 18120fi 18121rm -f core conftest.err conftest.$ac_objext \ 18122 conftest$ac_exeext conftest.$ac_ext 18123fi 18124 18125 18126 CFLAGS="$xorg_testset_save_CFLAGS" 18127 18128 eval supported=\$$cacheid 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18130$as_echo "$supported" >&6; } 18131 if test "$supported" = "yes" ; then 18132 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18133 found="yes" 18134 fi 18135 fi 18136 18137 if test $found = "no" ; then 18138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18140 fi 18141 18142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18144 fi 18145 18146 CFLAGS="$CFLAGS -errwarn" 18147 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18149$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18150 cacheid=xorg_cv_cc_flag__errwarn 18151 if eval \${$cacheid+:} false; then : 18152 $as_echo_n "(cached) " >&6 18153else 18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18155/* end confdefs.h. */ 18156int i; 18157int 18158main () 18159{ 18160 18161 ; 18162 return 0; 18163} 18164_ACEOF 18165if ac_fn_c_try_link "$LINENO"; then : 18166 eval $cacheid=yes 18167else 18168 eval $cacheid=no 18169fi 18170rm -f core conftest.err conftest.$ac_objext \ 18171 conftest$ac_exeext conftest.$ac_ext 18172fi 18173 18174 18175 CFLAGS="$xorg_testset_save_CFLAGS" 18176 18177 eval supported=\$$cacheid 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18179$as_echo "$supported" >&6; } 18180 if test "$supported" = "yes" ; then 18181 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18182 found="yes" 18183 fi 18184 fi 18185 18186 18187 18188# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18189# activate it with -Werror, so we add it here explicitly. 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203xorg_testset_save_CFLAGS="$CFLAGS" 18204 18205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18210 $as_echo_n "(cached) " >&6 18211else 18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18213/* end confdefs.h. */ 18214int i; 18215_ACEOF 18216if ac_fn_c_try_compile "$LINENO"; then : 18217 xorg_cv_cc_flag_unknown_warning_option=yes 18218else 18219 xorg_cv_cc_flag_unknown_warning_option=no 18220fi 18221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18222fi 18223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18226 CFLAGS="$xorg_testset_save_CFLAGS" 18227fi 18228 18229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18232 fi 18233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18237 $as_echo_n "(cached) " >&6 18238else 18239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18240/* end confdefs.h. */ 18241int i; 18242_ACEOF 18243if ac_fn_c_try_compile "$LINENO"; then : 18244 xorg_cv_cc_flag_unused_command_line_argument=yes 18245else 18246 xorg_cv_cc_flag_unused_command_line_argument=no 18247fi 18248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18249fi 18250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18253 CFLAGS="$xorg_testset_save_CFLAGS" 18254fi 18255 18256found="no" 18257 18258 if test $found = "no" ; then 18259 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18260 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18261 fi 18262 18263 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18265 fi 18266 18267 CFLAGS="$CFLAGS -Werror=attributes" 18268 18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18270$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18271 cacheid=xorg_cv_cc_flag__Werror_attributes 18272 if eval \${$cacheid+:} false; then : 18273 $as_echo_n "(cached) " >&6 18274else 18275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18276/* end confdefs.h. */ 18277int i; 18278int 18279main () 18280{ 18281 18282 ; 18283 return 0; 18284} 18285_ACEOF 18286if ac_fn_c_try_link "$LINENO"; then : 18287 eval $cacheid=yes 18288else 18289 eval $cacheid=no 18290fi 18291rm -f core conftest.err conftest.$ac_objext \ 18292 conftest$ac_exeext conftest.$ac_ext 18293fi 18294 18295 18296 CFLAGS="$xorg_testset_save_CFLAGS" 18297 18298 eval supported=\$$cacheid 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18300$as_echo "$supported" >&6; } 18301 if test "$supported" = "yes" ; then 18302 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18303 found="yes" 18304 fi 18305 fi 18306 18307 18308 18309if test "x$STRICT_COMPILE" = "xyes"; then 18310 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18311 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18312fi 18313 18314 18315 18316 18317 18318 18319cat >>confdefs.h <<_ACEOF 18320#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18321_ACEOF 18322 18323 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18324 if test "x$PVM" = "x"; then 18325 PVM="0" 18326 fi 18327 18328cat >>confdefs.h <<_ACEOF 18329#define PACKAGE_VERSION_MINOR $PVM 18330_ACEOF 18331 18332 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18333 if test "x$PVP" = "x"; then 18334 PVP="0" 18335 fi 18336 18337cat >>confdefs.h <<_ACEOF 18338#define PACKAGE_VERSION_PATCHLEVEL $PVP 18339_ACEOF 18340 18341 18342 18343CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18344mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18345|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18346echo 'git directory not found: installing possibly empty changelog.' >&2)" 18347 18348 18349 18350 18351macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18352INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18353mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18354|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18355echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18356 18357 18358 18359 18360 18361 18362if test x$APP_MAN_SUFFIX = x ; then 18363 APP_MAN_SUFFIX=1 18364fi 18365if test x$APP_MAN_DIR = x ; then 18366 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18367fi 18368 18369if test x$LIB_MAN_SUFFIX = x ; then 18370 LIB_MAN_SUFFIX=3 18371fi 18372if test x$LIB_MAN_DIR = x ; then 18373 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18374fi 18375 18376if test x$FILE_MAN_SUFFIX = x ; then 18377 case $host_os in 18378 # Solaris 2.0 - 11 use SysV man page sections 18379 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 18380 *) FILE_MAN_SUFFIX=5 ;; 18381 esac 18382fi 18383if test x$FILE_MAN_DIR = x ; then 18384 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18385fi 18386 18387if test x$MISC_MAN_SUFFIX = x ; then 18388 case $host_os in 18389 # Solaris 2.0 - 11 use SysV man page sections 18390 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 18391 *) MISC_MAN_SUFFIX=7 ;; 18392 esac 18393fi 18394if test x$MISC_MAN_DIR = x ; then 18395 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18396fi 18397 18398if test x$DRIVER_MAN_SUFFIX = x ; then 18399 case $host_os in 18400 # Solaris 2.0 - 11 use SysV man page sections 18401 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 18402 *) DRIVER_MAN_SUFFIX=4 ;; 18403 esac 18404fi 18405if test x$DRIVER_MAN_DIR = x ; then 18406 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18407fi 18408 18409if test x$ADMIN_MAN_SUFFIX = x ; then 18410 case $host_os in 18411 # Solaris 2.0 - 11 use SysV man page sections 18412 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 18413 *) ADMIN_MAN_SUFFIX=8 ;; 18414 esac 18415fi 18416if test x$ADMIN_MAN_DIR = x ; then 18417 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18418fi 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434XORG_MAN_PAGE="X Version 11" 18435 18436MAN_SUBSTS="\ 18437 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18438 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18439 -e 's|__xservername__|Xorg|g' \ 18440 -e 's|__xconfigfile__|xorg.conf|g' \ 18441 -e 's|__projectroot__|\$(prefix)|g' \ 18442 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18443 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18444 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18445 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18446 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18447 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18448 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18449 18450 18451 18452# Check whether --enable-silent-rules was given. 18453if test "${enable_silent_rules+set}" = set; then : 18454 enableval=$enable_silent_rules; 18455fi 18456 18457case $enable_silent_rules in # ((( 18458 yes) AM_DEFAULT_VERBOSITY=0;; 18459 no) AM_DEFAULT_VERBOSITY=1;; 18460 *) AM_DEFAULT_VERBOSITY=0;; 18461esac 18462am_make=${MAKE-make} 18463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18464$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18465if ${am_cv_make_support_nested_variables+:} false; then : 18466 $as_echo_n "(cached) " >&6 18467else 18468 if $as_echo 'TRUE=$(BAR$(V)) 18469BAR0=false 18470BAR1=true 18471V=1 18472am__doit: 18473 @$(TRUE) 18474.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18475 am_cv_make_support_nested_variables=yes 18476else 18477 am_cv_make_support_nested_variables=no 18478fi 18479fi 18480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18481$as_echo "$am_cv_make_support_nested_variables" >&6; } 18482if test $am_cv_make_support_nested_variables = yes; then 18483 AM_V='$(V)' 18484 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18485else 18486 AM_V=$AM_DEFAULT_VERBOSITY 18487 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18488fi 18489AM_BACKSLASH='\' 18490 18491 18492 18493 18494# Check whether --enable-docs was given. 18495if test "${enable_docs+set}" = set; then : 18496 enableval=$enable_docs; build_docs=$enableval 18497else 18498 build_docs=yes 18499fi 18500 18501 18502 if test x$build_docs = xyes; then 18503 ENABLE_DOCS_TRUE= 18504 ENABLE_DOCS_FALSE='#' 18505else 18506 ENABLE_DOCS_TRUE='#' 18507 ENABLE_DOCS_FALSE= 18508fi 18509 18510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 18511$as_echo_n "checking whether to build documentation... " >&6; } 18512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 18513$as_echo "$build_docs" >&6; } 18514 18515 18516 18517 18518 18519# Check whether --with-xmlto was given. 18520if test "${with_xmlto+set}" = set; then : 18521 withval=$with_xmlto; use_xmlto=$withval 18522else 18523 use_xmlto=auto 18524fi 18525 18526 18527 18528if test "x$use_xmlto" = x"auto"; then 18529 # Extract the first word of "xmlto", so it can be a program name with args. 18530set dummy xmlto; ac_word=$2 18531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18532$as_echo_n "checking for $ac_word... " >&6; } 18533if ${ac_cv_path_XMLTO+:} false; then : 18534 $as_echo_n "(cached) " >&6 18535else 18536 case $XMLTO in 18537 [\\/]* | ?:[\\/]*) 18538 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18539 ;; 18540 *) 18541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18542for as_dir in $PATH 18543do 18544 IFS=$as_save_IFS 18545 test -z "$as_dir" && as_dir=. 18546 for ac_exec_ext in '' $ac_executable_extensions; do 18547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18548 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18550 break 2 18551 fi 18552done 18553 done 18554IFS=$as_save_IFS 18555 18556 ;; 18557esac 18558fi 18559XMLTO=$ac_cv_path_XMLTO 18560if test -n "$XMLTO"; then 18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18562$as_echo "$XMLTO" >&6; } 18563else 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18565$as_echo "no" >&6; } 18566fi 18567 18568 18569 if test "x$XMLTO" = "x"; then 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 18571$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 18572 have_xmlto=no 18573 else 18574 have_xmlto=yes 18575 fi 18576elif test "x$use_xmlto" = x"yes" ; then 18577 # Extract the first word of "xmlto", so it can be a program name with args. 18578set dummy xmlto; ac_word=$2 18579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18580$as_echo_n "checking for $ac_word... " >&6; } 18581if ${ac_cv_path_XMLTO+:} false; then : 18582 $as_echo_n "(cached) " >&6 18583else 18584 case $XMLTO in 18585 [\\/]* | ?:[\\/]*) 18586 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 18587 ;; 18588 *) 18589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18590for as_dir in $PATH 18591do 18592 IFS=$as_save_IFS 18593 test -z "$as_dir" && as_dir=. 18594 for ac_exec_ext in '' $ac_executable_extensions; do 18595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18596 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 18597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18598 break 2 18599 fi 18600done 18601 done 18602IFS=$as_save_IFS 18603 18604 ;; 18605esac 18606fi 18607XMLTO=$ac_cv_path_XMLTO 18608if test -n "$XMLTO"; then 18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 18610$as_echo "$XMLTO" >&6; } 18611else 18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18613$as_echo "no" >&6; } 18614fi 18615 18616 18617 if test "x$XMLTO" = "x"; then 18618 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 18619 fi 18620 have_xmlto=yes 18621elif test "x$use_xmlto" = x"no" ; then 18622 if test "x$XMLTO" != "x"; then 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 18624$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 18625 fi 18626 have_xmlto=no 18627else 18628 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 18629fi 18630 18631# Test for a minimum version of xmlto, if provided. 18632if test "$have_xmlto" = yes; then 18633 # scrape the xmlto version 18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 18635$as_echo_n "checking the xmlto version... " >&6; } 18636 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 18638$as_echo "$xmlto_version" >&6; } 18639 as_arg_v1=$xmlto_version 18640as_arg_v2=0.0.22 18641awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 18642case $? in #( 18643 1) : 18644 if test "x$use_xmlto" = xauto; then 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5 18646$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;} 18647 have_xmlto=no 18648 else 18649 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5 18650 fi ;; #( 18651 0) : 18652 ;; #( 18653 2) : 18654 ;; #( 18655 *) : 18656 ;; 18657esac 18658fi 18659 18660# Test for the ability of xmlto to generate a text target 18661# 18662# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the 18663# following test for empty XML docbook files. 18664# For compatibility reasons use the following empty XML docbook file and if 18665# it fails try it again with a non-empty XML file. 18666have_xmlto_text=no 18667cat > conftest.xml << "EOF" 18668EOF 18669if test "$have_xmlto" = yes; then : 18670 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18671 have_xmlto_text=yes 18672else 18673 # Try it again with a non-empty XML file. 18674 cat > conftest.xml << "EOF" 18675<x></x> 18676EOF 18677 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 18678 have_xmlto_text=yes 18679else 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 18681$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 18682fi 18683fi 18684fi 18685rm -f conftest.xml 18686 if test $have_xmlto_text = yes; then 18687 HAVE_XMLTO_TEXT_TRUE= 18688 HAVE_XMLTO_TEXT_FALSE='#' 18689else 18690 HAVE_XMLTO_TEXT_TRUE='#' 18691 HAVE_XMLTO_TEXT_FALSE= 18692fi 18693 18694 if test "$have_xmlto" = yes; then 18695 HAVE_XMLTO_TRUE= 18696 HAVE_XMLTO_FALSE='#' 18697else 18698 HAVE_XMLTO_TRUE='#' 18699 HAVE_XMLTO_FALSE= 18700fi 18701 18702 18703 18704 18705 18706 18707# Check whether --with-fop was given. 18708if test "${with_fop+set}" = set; then : 18709 withval=$with_fop; use_fop=$withval 18710else 18711 use_fop=auto 18712fi 18713 18714 18715 18716if test "x$use_fop" = x"auto"; then 18717 # Extract the first word of "fop", so it can be a program name with args. 18718set dummy fop; ac_word=$2 18719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18720$as_echo_n "checking for $ac_word... " >&6; } 18721if ${ac_cv_path_FOP+:} false; then : 18722 $as_echo_n "(cached) " >&6 18723else 18724 case $FOP in 18725 [\\/]* | ?:[\\/]*) 18726 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18727 ;; 18728 *) 18729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18730for as_dir in $PATH 18731do 18732 IFS=$as_save_IFS 18733 test -z "$as_dir" && as_dir=. 18734 for ac_exec_ext in '' $ac_executable_extensions; do 18735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18736 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18738 break 2 18739 fi 18740done 18741 done 18742IFS=$as_save_IFS 18743 18744 ;; 18745esac 18746fi 18747FOP=$ac_cv_path_FOP 18748if test -n "$FOP"; then 18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18750$as_echo "$FOP" >&6; } 18751else 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18753$as_echo "no" >&6; } 18754fi 18755 18756 18757 if test "x$FOP" = "x"; then 18758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 18759$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 18760 have_fop=no 18761 else 18762 have_fop=yes 18763 fi 18764elif test "x$use_fop" = x"yes" ; then 18765 # Extract the first word of "fop", so it can be a program name with args. 18766set dummy fop; ac_word=$2 18767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18768$as_echo_n "checking for $ac_word... " >&6; } 18769if ${ac_cv_path_FOP+:} false; then : 18770 $as_echo_n "(cached) " >&6 18771else 18772 case $FOP in 18773 [\\/]* | ?:[\\/]*) 18774 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 18775 ;; 18776 *) 18777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18778for as_dir in $PATH 18779do 18780 IFS=$as_save_IFS 18781 test -z "$as_dir" && as_dir=. 18782 for ac_exec_ext in '' $ac_executable_extensions; do 18783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18784 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 18785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18786 break 2 18787 fi 18788done 18789 done 18790IFS=$as_save_IFS 18791 18792 ;; 18793esac 18794fi 18795FOP=$ac_cv_path_FOP 18796if test -n "$FOP"; then 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 18798$as_echo "$FOP" >&6; } 18799else 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18801$as_echo "no" >&6; } 18802fi 18803 18804 18805 if test "x$FOP" = "x"; then 18806 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 18807 fi 18808 have_fop=yes 18809elif test "x$use_fop" = x"no" ; then 18810 if test "x$FOP" != "x"; then 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 18812$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 18813 fi 18814 have_fop=no 18815else 18816 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 18817fi 18818 18819# Test for a minimum version of fop, if provided. 18820 18821 if test "$have_fop" = yes; then 18822 HAVE_FOP_TRUE= 18823 HAVE_FOP_FALSE='#' 18824else 18825 HAVE_FOP_TRUE='#' 18826 HAVE_FOP_FALSE= 18827fi 18828 18829 18830 18831 18832# Preserves the interface, should it be implemented later 18833 18834 18835 18836# Check whether --with-xsltproc was given. 18837if test "${with_xsltproc+set}" = set; then : 18838 withval=$with_xsltproc; use_xsltproc=$withval 18839else 18840 use_xsltproc=auto 18841fi 18842 18843 18844 18845if test "x$use_xsltproc" = x"auto"; then 18846 # Extract the first word of "xsltproc", so it can be a program name with args. 18847set dummy xsltproc; ac_word=$2 18848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18849$as_echo_n "checking for $ac_word... " >&6; } 18850if ${ac_cv_path_XSLTPROC+:} false; then : 18851 $as_echo_n "(cached) " >&6 18852else 18853 case $XSLTPROC in 18854 [\\/]* | ?:[\\/]*) 18855 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18856 ;; 18857 *) 18858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18859for as_dir in $PATH 18860do 18861 IFS=$as_save_IFS 18862 test -z "$as_dir" && as_dir=. 18863 for ac_exec_ext in '' $ac_executable_extensions; do 18864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18865 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18867 break 2 18868 fi 18869done 18870 done 18871IFS=$as_save_IFS 18872 18873 ;; 18874esac 18875fi 18876XSLTPROC=$ac_cv_path_XSLTPROC 18877if test -n "$XSLTPROC"; then 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18879$as_echo "$XSLTPROC" >&6; } 18880else 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18882$as_echo "no" >&6; } 18883fi 18884 18885 18886 if test "x$XSLTPROC" = "x"; then 18887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5 18888$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;} 18889 have_xsltproc=no 18890 else 18891 have_xsltproc=yes 18892 fi 18893elif test "x$use_xsltproc" = x"yes" ; then 18894 # Extract the first word of "xsltproc", so it can be a program name with args. 18895set dummy xsltproc; ac_word=$2 18896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18897$as_echo_n "checking for $ac_word... " >&6; } 18898if ${ac_cv_path_XSLTPROC+:} false; then : 18899 $as_echo_n "(cached) " >&6 18900else 18901 case $XSLTPROC in 18902 [\\/]* | ?:[\\/]*) 18903 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 18904 ;; 18905 *) 18906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18907for as_dir in $PATH 18908do 18909 IFS=$as_save_IFS 18910 test -z "$as_dir" && as_dir=. 18911 for ac_exec_ext in '' $ac_executable_extensions; do 18912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18913 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 18914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18915 break 2 18916 fi 18917done 18918 done 18919IFS=$as_save_IFS 18920 18921 ;; 18922esac 18923fi 18924XSLTPROC=$ac_cv_path_XSLTPROC 18925if test -n "$XSLTPROC"; then 18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 18927$as_echo "$XSLTPROC" >&6; } 18928else 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18930$as_echo "no" >&6; } 18931fi 18932 18933 18934 if test "x$XSLTPROC" = "x"; then 18935 as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5 18936 fi 18937 have_xsltproc=yes 18938elif test "x$use_xsltproc" = x"no" ; then 18939 if test "x$XSLTPROC" != "x"; then 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5 18941$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;} 18942 fi 18943 have_xsltproc=no 18944else 18945 as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5 18946fi 18947 18948 if test "$have_xsltproc" = yes; then 18949 HAVE_XSLTPROC_TRUE= 18950 HAVE_XSLTPROC_FALSE='#' 18951else 18952 HAVE_XSLTPROC_TRUE='#' 18953 HAVE_XSLTPROC_FALSE= 18954fi 18955 18956 18957 18958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5 18959$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; } 18960XORG_SGML_PATH= 18961if test -n "$PKG_CONFIG" && \ 18962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5 18963 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5 18964 ac_status=$? 18965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18966 test $ac_status = 0; }; then 18967 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 18968else 18969 : 18970 18971fi 18972 18973# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 18974# the path and the name of the doc stylesheet 18975if test "x$XORG_SGML_PATH" != "x" ; then 18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 18977$as_echo "$XORG_SGML_PATH" >&6; } 18978 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 18979 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 18980else 18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18982$as_echo "no" >&6; } 18983fi 18984 18985 18986 18987 18988 if test "x$XSL_STYLESHEET" != "x"; then 18989 HAVE_STYLESHEETS_TRUE= 18990 HAVE_STYLESHEETS_FALSE='#' 18991else 18992 HAVE_STYLESHEETS_TRUE='#' 18993 HAVE_STYLESHEETS_FALSE= 18994fi 18995 18996 18997 18998# Obtain compiler/linker options for depedencies 18999 19000pkg_failed=no 19001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMU" >&5 19002$as_echo_n "checking for XMU... " >&6; } 19003 19004if test -n "$XMU_CFLAGS"; then 19005 pkg_cv_XMU_CFLAGS="$XMU_CFLAGS" 19006 elif test -n "$PKG_CONFIG"; then 19007 if test -n "$PKG_CONFIG" && \ 19008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5 19009 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5 19010 ac_status=$? 19011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19012 test $ac_status = 0; }; then 19013 pkg_cv_XMU_CFLAGS=`$PKG_CONFIG --cflags "xt xext x11 xextproto" 2>/dev/null` 19014 test "x$?" != "x0" && pkg_failed=yes 19015else 19016 pkg_failed=yes 19017fi 19018 else 19019 pkg_failed=untried 19020fi 19021if test -n "$XMU_LIBS"; then 19022 pkg_cv_XMU_LIBS="$XMU_LIBS" 19023 elif test -n "$PKG_CONFIG"; then 19024 if test -n "$PKG_CONFIG" && \ 19025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt xext x11 xextproto\""; } >&5 19026 ($PKG_CONFIG --exists --print-errors "xt xext x11 xextproto") 2>&5 19027 ac_status=$? 19028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19029 test $ac_status = 0; }; then 19030 pkg_cv_XMU_LIBS=`$PKG_CONFIG --libs "xt xext x11 xextproto" 2>/dev/null` 19031 test "x$?" != "x0" && pkg_failed=yes 19032else 19033 pkg_failed=yes 19034fi 19035 else 19036 pkg_failed=untried 19037fi 19038 19039 19040 19041if test $pkg_failed = yes; then 19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19043$as_echo "no" >&6; } 19044 19045if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19046 _pkg_short_errors_supported=yes 19047else 19048 _pkg_short_errors_supported=no 19049fi 19050 if test $_pkg_short_errors_supported = yes; then 19051 XMU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt xext x11 xextproto" 2>&1` 19052 else 19053 XMU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt xext x11 xextproto" 2>&1` 19054 fi 19055 # Put the nasty error message in config.log where it belongs 19056 echo "$XMU_PKG_ERRORS" >&5 19057 19058 as_fn_error $? "Package requirements (xt xext x11 xextproto) were not met: 19059 19060$XMU_PKG_ERRORS 19061 19062Consider adjusting the PKG_CONFIG_PATH environment variable if you 19063installed software in a non-standard prefix. 19064 19065Alternatively, you may set the environment variables XMU_CFLAGS 19066and XMU_LIBS to avoid the need to call pkg-config. 19067See the pkg-config man page for more details." "$LINENO" 5 19068elif test $pkg_failed = untried; then 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19070$as_echo "no" >&6; } 19071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19073as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19074is in your PATH or set the PKG_CONFIG environment variable to the full 19075path to pkg-config. 19076 19077Alternatively, you may set the environment variables XMU_CFLAGS 19078and XMU_LIBS to avoid the need to call pkg-config. 19079See the pkg-config man page for more details. 19080 19081To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19082See \`config.log' for more details" "$LINENO" 5; } 19083else 19084 XMU_CFLAGS=$pkg_cv_XMU_CFLAGS 19085 XMU_LIBS=$pkg_cv_XMU_LIBS 19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19087$as_echo "yes" >&6; } 19088 19089fi 19090 19091pkg_failed=no 19092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMUU" >&5 19093$as_echo_n "checking for XMUU... " >&6; } 19094 19095if test -n "$XMUU_CFLAGS"; then 19096 pkg_cv_XMUU_CFLAGS="$XMUU_CFLAGS" 19097 elif test -n "$PKG_CONFIG"; then 19098 if test -n "$PKG_CONFIG" && \ 19099 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 19100 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 19101 ac_status=$? 19102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19103 test $ac_status = 0; }; then 19104 pkg_cv_XMUU_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 19105 test "x$?" != "x0" && pkg_failed=yes 19106else 19107 pkg_failed=yes 19108fi 19109 else 19110 pkg_failed=untried 19111fi 19112if test -n "$XMUU_LIBS"; then 19113 pkg_cv_XMUU_LIBS="$XMUU_LIBS" 19114 elif test -n "$PKG_CONFIG"; then 19115 if test -n "$PKG_CONFIG" && \ 19116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 19117 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 19118 ac_status=$? 19119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19120 test $ac_status = 0; }; then 19121 pkg_cv_XMUU_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 19122 test "x$?" != "x0" && pkg_failed=yes 19123else 19124 pkg_failed=yes 19125fi 19126 else 19127 pkg_failed=untried 19128fi 19129 19130 19131 19132if test $pkg_failed = yes; then 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19134$as_echo "no" >&6; } 19135 19136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19137 _pkg_short_errors_supported=yes 19138else 19139 _pkg_short_errors_supported=no 19140fi 19141 if test $_pkg_short_errors_supported = yes; then 19142 XMUU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 19143 else 19144 XMUU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 19145 fi 19146 # Put the nasty error message in config.log where it belongs 19147 echo "$XMUU_PKG_ERRORS" >&5 19148 19149 as_fn_error $? "Package requirements (x11) were not met: 19150 19151$XMUU_PKG_ERRORS 19152 19153Consider adjusting the PKG_CONFIG_PATH environment variable if you 19154installed software in a non-standard prefix. 19155 19156Alternatively, you may set the environment variables XMUU_CFLAGS 19157and XMUU_LIBS to avoid the need to call pkg-config. 19158See the pkg-config man page for more details." "$LINENO" 5 19159elif test $pkg_failed = untried; then 19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19161$as_echo "no" >&6; } 19162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19164as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19165is in your PATH or set the PKG_CONFIG environment variable to the full 19166path to pkg-config. 19167 19168Alternatively, you may set the environment variables XMUU_CFLAGS 19169and XMUU_LIBS to avoid the need to call pkg-config. 19170See the pkg-config man page for more details. 19171 19172To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19173See \`config.log' for more details" "$LINENO" 5; } 19174else 19175 XMUU_CFLAGS=$pkg_cv_XMUU_CFLAGS 19176 XMUU_LIBS=$pkg_cv_XMUU_LIBS 19177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19178$as_echo "yes" >&6; } 19179 19180fi 19181 19182# CvtStdSel.c needs to know which network transports to build hostname 19183# conversion routines for 19184 19185 19186 case $host_os in 19187 mingw*) unixdef="no" ;; 19188 *) unixdef="yes" ;; 19189 esac 19190 # Check whether --enable-unix-transport was given. 19191if test "${enable_unix_transport+set}" = set; then : 19192 enableval=$enable_unix_transport; UNIXCONN=$enableval 19193else 19194 UNIXCONN=$unixdef 19195fi 19196 19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5 19198$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 19199 if test "$UNIXCONN" = "yes"; then 19200 19201$as_echo "#define UNIXCONN 1" >>confdefs.h 19202 19203 fi 19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5 19205$as_echo "$UNIXCONN" >&6; } 19206 # Check whether --enable-tcp-transport was given. 19207if test "${enable_tcp_transport+set}" = set; then : 19208 enableval=$enable_tcp_transport; TCPCONN=$enableval 19209else 19210 TCPCONN=yes 19211fi 19212 19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5 19214$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5 19216$as_echo "$TCPCONN" >&6; } 19217 if test "$TCPCONN" = "yes"; then 19218 19219$as_echo "#define TCPCONN 1" >>confdefs.h 19220 19221 19222 # SVR4 hides these in libraries other than libc 19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 19224$as_echo_n "checking for library containing socket... " >&6; } 19225if ${ac_cv_search_socket+:} false; then : 19226 $as_echo_n "(cached) " >&6 19227else 19228 ac_func_search_save_LIBS=$LIBS 19229cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19230/* end confdefs.h. */ 19231 19232/* Override any GCC internal prototype to avoid an error. 19233 Use char because int might match the return type of a GCC 19234 builtin and then its argument prototype would still apply. */ 19235#ifdef __cplusplus 19236extern "C" 19237#endif 19238char socket (); 19239int 19240main () 19241{ 19242return socket (); 19243 ; 19244 return 0; 19245} 19246_ACEOF 19247for ac_lib in '' socket; do 19248 if test -z "$ac_lib"; then 19249 ac_res="none required" 19250 else 19251 ac_res=-l$ac_lib 19252 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19253 fi 19254 if ac_fn_c_try_link "$LINENO"; then : 19255 ac_cv_search_socket=$ac_res 19256fi 19257rm -f core conftest.err conftest.$ac_objext \ 19258 conftest$ac_exeext 19259 if ${ac_cv_search_socket+:} false; then : 19260 break 19261fi 19262done 19263if ${ac_cv_search_socket+:} false; then : 19264 19265else 19266 ac_cv_search_socket=no 19267fi 19268rm conftest.$ac_ext 19269LIBS=$ac_func_search_save_LIBS 19270fi 19271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 19272$as_echo "$ac_cv_search_socket" >&6; } 19273ac_res=$ac_cv_search_socket 19274if test "$ac_res" != no; then : 19275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19276 19277fi 19278 19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 19280$as_echo_n "checking for library containing gethostbyname... " >&6; } 19281if ${ac_cv_search_gethostbyname+:} false; then : 19282 $as_echo_n "(cached) " >&6 19283else 19284 ac_func_search_save_LIBS=$LIBS 19285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19286/* end confdefs.h. */ 19287 19288/* Override any GCC internal prototype to avoid an error. 19289 Use char because int might match the return type of a GCC 19290 builtin and then its argument prototype would still apply. */ 19291#ifdef __cplusplus 19292extern "C" 19293#endif 19294char gethostbyname (); 19295int 19296main () 19297{ 19298return gethostbyname (); 19299 ; 19300 return 0; 19301} 19302_ACEOF 19303for ac_lib in '' nsl; do 19304 if test -z "$ac_lib"; then 19305 ac_res="none required" 19306 else 19307 ac_res=-l$ac_lib 19308 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19309 fi 19310 if ac_fn_c_try_link "$LINENO"; then : 19311 ac_cv_search_gethostbyname=$ac_res 19312fi 19313rm -f core conftest.err conftest.$ac_objext \ 19314 conftest$ac_exeext 19315 if ${ac_cv_search_gethostbyname+:} false; then : 19316 break 19317fi 19318done 19319if ${ac_cv_search_gethostbyname+:} false; then : 19320 19321else 19322 ac_cv_search_gethostbyname=no 19323fi 19324rm conftest.$ac_ext 19325LIBS=$ac_func_search_save_LIBS 19326fi 19327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 19328$as_echo "$ac_cv_search_gethostbyname" >&6; } 19329ac_res=$ac_cv_search_gethostbyname 19330if test "$ac_res" != no; then : 19331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19332 19333fi 19334 19335 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then 19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 19337$as_echo_n "checking for main in -lws2_32... " >&6; } 19338if ${ac_cv_lib_ws2_32_main+:} false; then : 19339 $as_echo_n "(cached) " >&6 19340else 19341 ac_check_lib_save_LIBS=$LIBS 19342LIBS="-lws2_32 $LIBS" 19343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19344/* end confdefs.h. */ 19345 19346 19347int 19348main () 19349{ 19350return main (); 19351 ; 19352 return 0; 19353} 19354_ACEOF 19355if ac_fn_c_try_link "$LINENO"; then : 19356 ac_cv_lib_ws2_32_main=yes 19357else 19358 ac_cv_lib_ws2_32_main=no 19359fi 19360rm -f core conftest.err conftest.$ac_objext \ 19361 conftest$ac_exeext conftest.$ac_ext 19362LIBS=$ac_check_lib_save_LIBS 19363fi 19364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 19365$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 19366if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 19367 cat >>confdefs.h <<_ACEOF 19368#define HAVE_LIBWS2_32 1 19369_ACEOF 19370 19371 LIBS="-lws2_32 $LIBS" 19372 19373fi 19374 19375 fi 19376 19377 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 19378 # Check whether --enable-ipv6 was given. 19379if test "${enable_ipv6+set}" = set; then : 19380 enableval=$enable_ipv6; IPV6CONN=$enableval 19381else 19382 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 19383if test "x$ac_cv_func_getaddrinfo" = xyes; then : 19384 IPV6CONN=yes 19385else 19386 IPV6CONN=no 19387fi 19388 19389fi 19390 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5 19392$as_echo_n "checking if IPv6 support should be built... " >&6; } 19393 if test "$IPV6CONN" = "yes"; then 19394 19395$as_echo "#define IPv6 1" >>confdefs.h 19396 19397 fi 19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5 19399$as_echo "$IPV6CONN" >&6; } 19400 19401 # 4.3BSD-Reno added a new member to struct sockaddr_in 19402 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " 19403#include <sys/types.h> 19404#include <sys/socket.h> 19405#include <netinet/in.h> 19406 19407" 19408if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then : 19409 19410$as_echo "#define BSD44SOCKETS 1" >>confdefs.h 19411 19412fi 19413 19414 19415 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 19416 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 19417$ac_includes_default 19418#include <sys/socket.h> 19419" 19420if test "x$ac_cv_type_socklen_t" = xyes; then : 19421 19422cat >>confdefs.h <<_ACEOF 19423#define HAVE_SOCKLEN_T 1 19424_ACEOF 19425 19426 19427fi 19428 19429 19430 # XPG4v2/UNIX95 added msg_control - check to see if we need to define 19431 # _XOPEN_SOURCE to get it (such as on Solaris) 19432 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19433$ac_includes_default 19434#include <sys/socket.h> 19435 19436" 19437if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19438 19439fi 19440 19441 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 19442 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19443 unset ac_cv_member_struct_msghdr_msg_control 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 19445$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 19446 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19447#define _XOPEN_SOURCE 600 19448$ac_includes_default 19449#include <sys/socket.h> 19450 19451" 19452if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19453 19454$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 19455 19456 19457fi 19458 19459 fi 19460 # If that didn't work, fall back to XPG5/UNIX98 with C89 19461 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 19462 unset ac_cv_member_struct_msghdr_msg_control 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 19464$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 19465 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 19466#define _XOPEN_SOURCE 500 19467$ac_includes_default 19468#include <sys/socket.h> 19469 19470" 19471if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 19472 19473$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 19474 19475 19476fi 19477 19478 fi 19479 19480 19481 19482 fi 19483 case $host_os in 19484 solaris*|sco*|sysv4*) localdef="yes" ;; 19485 *) localdef="no" ;; 19486 esac 19487 # Check whether --enable-local-transport was given. 19488if test "${enable_local_transport+set}" = set; then : 19489 enableval=$enable_local_transport; LOCALCONN=$enableval 19490else 19491 LOCALCONN=$localdef 19492fi 19493 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5 19495$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5 19497$as_echo "$LOCALCONN" >&6; } 19498 if test "$LOCALCONN" = "yes"; then 19499 19500$as_echo "#define LOCALCONN 1" >>confdefs.h 19501 19502 fi 19503 19504 19505 19506# Allow checking code with lint, sparse, etc. 19507 19508 19509 19510 19511 19512# Check whether --with-lint was given. 19513if test "${with_lint+set}" = set; then : 19514 withval=$with_lint; use_lint=$withval 19515else 19516 use_lint=no 19517fi 19518 19519 19520# Obtain platform specific info like program name and options 19521# The lint program on FreeBSD and NetBSD is different from the one on Solaris 19522case $host_os in 19523 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 19524 lint_name=splint 19525 lint_options="-badflag" 19526 ;; 19527 *freebsd* | *netbsd*) 19528 lint_name=lint 19529 lint_options="-u -b" 19530 ;; 19531 *solaris*) 19532 lint_name=lint 19533 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 19534 ;; 19535esac 19536 19537# Test for the presence of the program (either guessed by the code or spelled out by the user) 19538if test "x$use_lint" = x"yes" ; then 19539 # Extract the first word of "$lint_name", so it can be a program name with args. 19540set dummy $lint_name; ac_word=$2 19541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19542$as_echo_n "checking for $ac_word... " >&6; } 19543if ${ac_cv_path_LINT+:} false; then : 19544 $as_echo_n "(cached) " >&6 19545else 19546 case $LINT in 19547 [\\/]* | ?:[\\/]*) 19548 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 19549 ;; 19550 *) 19551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19552for as_dir in $PATH 19553do 19554 IFS=$as_save_IFS 19555 test -z "$as_dir" && as_dir=. 19556 for ac_exec_ext in '' $ac_executable_extensions; do 19557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19558 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 19559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19560 break 2 19561 fi 19562done 19563 done 19564IFS=$as_save_IFS 19565 19566 ;; 19567esac 19568fi 19569LINT=$ac_cv_path_LINT 19570if test -n "$LINT"; then 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 19572$as_echo "$LINT" >&6; } 19573else 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19575$as_echo "no" >&6; } 19576fi 19577 19578 19579 if test "x$LINT" = "x"; then 19580 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 19581 fi 19582elif test "x$use_lint" = x"no" ; then 19583 if test "x$LINT" != "x"; then 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 19585$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 19586 fi 19587else 19588 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 19589fi 19590 19591# User supplied flags override default flags 19592if test "x$LINT_FLAGS" != "x"; then 19593 lint_options=$LINT_FLAGS 19594fi 19595 19596LINT_FLAGS=$lint_options 19597 19598 if test "x$LINT" != x; then 19599 LINT_TRUE= 19600 LINT_FALSE='#' 19601else 19602 LINT_TRUE='#' 19603 LINT_FALSE= 19604fi 19605 19606 19607 19608 19609 19610# Check whether --enable-lint-library was given. 19611if test "${enable_lint_library+set}" = set; then : 19612 enableval=$enable_lint_library; make_lint_lib=$enableval 19613else 19614 make_lint_lib=no 19615fi 19616 19617 19618if test "x$make_lint_lib" = x"yes" ; then 19619 LINTLIB=llib-lXmu.ln 19620 if test "x$LINT" = "x"; then 19621 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 19622 fi 19623elif test "x$make_lint_lib" != x"no" ; then 19624 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 19625fi 19626 19627 19628 if test x$make_lint_lib != xno; then 19629 MAKE_LINT_LIB_TRUE= 19630 MAKE_LINT_LIB_FALSE='#' 19631else 19632 MAKE_LINT_LIB_TRUE='#' 19633 MAKE_LINT_LIB_FALSE= 19634fi 19635 19636 19637 19638LINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/` 19639 19640 19641ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile src/Makefile xmu.pc xmuu.pc" 19642 19643cat >confcache <<\_ACEOF 19644# This file is a shell script that caches the results of configure 19645# tests run on this system so they can be shared between configure 19646# scripts and configure runs, see configure's option --config-cache. 19647# It is not useful on other systems. If it contains results you don't 19648# want to keep, you may remove or edit it. 19649# 19650# config.status only pays attention to the cache file if you give it 19651# the --recheck option to rerun configure. 19652# 19653# `ac_cv_env_foo' variables (set or unset) will be overridden when 19654# loading this file, other *unset* `ac_cv_foo' will be assigned the 19655# following values. 19656 19657_ACEOF 19658 19659# The following way of writing the cache mishandles newlines in values, 19660# but we know of no workaround that is simple, portable, and efficient. 19661# So, we kill variables containing newlines. 19662# Ultrix sh set writes to stderr and can't be redirected directly, 19663# and sets the high bit in the cache file unless we assign to the vars. 19664( 19665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 19666 eval ac_val=\$$ac_var 19667 case $ac_val in #( 19668 *${as_nl}*) 19669 case $ac_var in #( 19670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 19671$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 19672 esac 19673 case $ac_var in #( 19674 _ | IFS | as_nl) ;; #( 19675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 19676 *) { eval $ac_var=; unset $ac_var;} ;; 19677 esac ;; 19678 esac 19679 done 19680 19681 (set) 2>&1 | 19682 case $as_nl`(ac_space=' '; set) 2>&1` in #( 19683 *${as_nl}ac_space=\ *) 19684 # `set' does not quote correctly, so add quotes: double-quote 19685 # substitution turns \\\\ into \\, and sed turns \\ into \. 19686 sed -n \ 19687 "s/'/'\\\\''/g; 19688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19689 ;; #( 19690 *) 19691 # `set' quotes correctly as required by POSIX, so do not add quotes. 19692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 19693 ;; 19694 esac | 19695 sort 19696) | 19697 sed ' 19698 /^ac_cv_env_/b end 19699 t clear 19700 :clear 19701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19702 t end 19703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19704 :end' >>confcache 19705if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 19706 if test -w "$cache_file"; then 19707 if test "x$cache_file" != "x/dev/null"; then 19708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 19709$as_echo "$as_me: updating cache $cache_file" >&6;} 19710 if test ! -f "$cache_file" || test -h "$cache_file"; then 19711 cat confcache >"$cache_file" 19712 else 19713 case $cache_file in #( 19714 */* | ?:*) 19715 mv -f confcache "$cache_file"$$ && 19716 mv -f "$cache_file"$$ "$cache_file" ;; #( 19717 *) 19718 mv -f confcache "$cache_file" ;; 19719 esac 19720 fi 19721 fi 19722 else 19723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 19724$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 19725 fi 19726fi 19727rm -f confcache 19728 19729test "x$prefix" = xNONE && prefix=$ac_default_prefix 19730# Let make expand exec_prefix. 19731test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19732 19733DEFS=-DHAVE_CONFIG_H 19734 19735ac_libobjs= 19736ac_ltlibobjs= 19737U= 19738for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19739 # 1. Remove the extension, and $U if already installed. 19740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19743 # will be set to the directory where LIBOBJS objects are built. 19744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19746done 19747LIBOBJS=$ac_libobjs 19748 19749LTLIBOBJS=$ac_ltlibobjs 19750 19751 19752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19753$as_echo_n "checking that generated files are newer than configure... " >&6; } 19754 if test -n "$am_sleep_pid"; then 19755 # Hide warnings about reused PIDs. 19756 wait $am_sleep_pid 2>/dev/null 19757 fi 19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19759$as_echo "done" >&6; } 19760 if test -n "$EXEEXT"; then 19761 am__EXEEXT_TRUE= 19762 am__EXEEXT_FALSE='#' 19763else 19764 am__EXEEXT_TRUE='#' 19765 am__EXEEXT_FALSE= 19766fi 19767 19768if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19769 as_fn_error $? "conditional \"AMDEP\" was never defined. 19770Usually this means the macro was only invoked conditionally." "$LINENO" 5 19771fi 19772if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19773 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19774Usually this means the macro was only invoked conditionally." "$LINENO" 5 19775fi 19776if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 19777 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 19778Usually this means the macro was only invoked conditionally." "$LINENO" 5 19779fi 19780if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 19781 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 19782Usually this means the macro was only invoked conditionally." "$LINENO" 5 19783fi 19784if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 19785 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 19786Usually this means the macro was only invoked conditionally." "$LINENO" 5 19787fi 19788if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 19789 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 19790Usually this means the macro was only invoked conditionally." "$LINENO" 5 19791fi 19792if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then 19793 as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined. 19794Usually this means the macro was only invoked conditionally." "$LINENO" 5 19795fi 19796if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 19797 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 19798Usually this means the macro was only invoked conditionally." "$LINENO" 5 19799fi 19800if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19801 as_fn_error $? "conditional \"LINT\" was never defined. 19802Usually this means the macro was only invoked conditionally." "$LINENO" 5 19803fi 19804if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 19805 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 19806Usually this means the macro was only invoked conditionally." "$LINENO" 5 19807fi 19808 19809: "${CONFIG_STATUS=./config.status}" 19810ac_write_fail=0 19811ac_clean_files_save=$ac_clean_files 19812ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19813{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19814$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19815as_write_fail=0 19816cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19817#! $SHELL 19818# Generated by $as_me. 19819# Run this file to recreate the current configuration. 19820# Compiler output produced by configure, useful for debugging 19821# configure, is in config.log if it exists. 19822 19823debug=false 19824ac_cs_recheck=false 19825ac_cs_silent=false 19826 19827SHELL=\${CONFIG_SHELL-$SHELL} 19828export SHELL 19829_ASEOF 19830cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19831## -------------------- ## 19832## M4sh Initialization. ## 19833## -------------------- ## 19834 19835# Be more Bourne compatible 19836DUALCASE=1; export DUALCASE # for MKS sh 19837if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19838 emulate sh 19839 NULLCMD=: 19840 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19841 # is contrary to our usage. Disable this feature. 19842 alias -g '${1+"$@"}'='"$@"' 19843 setopt NO_GLOB_SUBST 19844else 19845 case `(set -o) 2>/dev/null` in #( 19846 *posix*) : 19847 set -o posix ;; #( 19848 *) : 19849 ;; 19850esac 19851fi 19852 19853 19854as_nl=' 19855' 19856export as_nl 19857# Printing a long string crashes Solaris 7 /usr/bin/printf. 19858as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19859as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19860as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19861# Prefer a ksh shell builtin over an external printf program on Solaris, 19862# but without wasting forks for bash or zsh. 19863if test -z "$BASH_VERSION$ZSH_VERSION" \ 19864 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19865 as_echo='print -r --' 19866 as_echo_n='print -rn --' 19867elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19868 as_echo='printf %s\n' 19869 as_echo_n='printf %s' 19870else 19871 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19872 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19873 as_echo_n='/usr/ucb/echo -n' 19874 else 19875 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19876 as_echo_n_body='eval 19877 arg=$1; 19878 case $arg in #( 19879 *"$as_nl"*) 19880 expr "X$arg" : "X\\(.*\\)$as_nl"; 19881 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19882 esac; 19883 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19884 ' 19885 export as_echo_n_body 19886 as_echo_n='sh -c $as_echo_n_body as_echo' 19887 fi 19888 export as_echo_body 19889 as_echo='sh -c $as_echo_body as_echo' 19890fi 19891 19892# The user is always right. 19893if test "${PATH_SEPARATOR+set}" != set; then 19894 PATH_SEPARATOR=: 19895 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19896 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19897 PATH_SEPARATOR=';' 19898 } 19899fi 19900 19901 19902# IFS 19903# We need space, tab and new line, in precisely that order. Quoting is 19904# there to prevent editors from complaining about space-tab. 19905# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19906# splitting by setting IFS to empty value.) 19907IFS=" "" $as_nl" 19908 19909# Find who we are. Look in the path if we contain no directory separator. 19910as_myself= 19911case $0 in #(( 19912 *[\\/]* ) as_myself=$0 ;; 19913 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19914for as_dir in $PATH 19915do 19916 IFS=$as_save_IFS 19917 test -z "$as_dir" && as_dir=. 19918 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19919 done 19920IFS=$as_save_IFS 19921 19922 ;; 19923esac 19924# We did not find ourselves, most probably we were run as `sh COMMAND' 19925# in which case we are not to be found in the path. 19926if test "x$as_myself" = x; then 19927 as_myself=$0 19928fi 19929if test ! -f "$as_myself"; then 19930 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19931 exit 1 19932fi 19933 19934# Unset variables that we do not need and which cause bugs (e.g. in 19935# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19936# suppresses any "Segmentation fault" message there. '((' could 19937# trigger a bug in pdksh 5.2.14. 19938for as_var in BASH_ENV ENV MAIL MAILPATH 19939do eval test x\${$as_var+set} = xset \ 19940 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19941done 19942PS1='$ ' 19943PS2='> ' 19944PS4='+ ' 19945 19946# NLS nuisances. 19947LC_ALL=C 19948export LC_ALL 19949LANGUAGE=C 19950export LANGUAGE 19951 19952# CDPATH. 19953(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19954 19955 19956# as_fn_error STATUS ERROR [LINENO LOG_FD] 19957# ---------------------------------------- 19958# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19959# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19960# script with STATUS, using 1 if that was 0. 19961as_fn_error () 19962{ 19963 as_status=$1; test $as_status -eq 0 && as_status=1 19964 if test "$4"; then 19965 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19966 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19967 fi 19968 $as_echo "$as_me: error: $2" >&2 19969 as_fn_exit $as_status 19970} # as_fn_error 19971 19972 19973# as_fn_set_status STATUS 19974# ----------------------- 19975# Set $? to STATUS, without forking. 19976as_fn_set_status () 19977{ 19978 return $1 19979} # as_fn_set_status 19980 19981# as_fn_exit STATUS 19982# ----------------- 19983# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19984as_fn_exit () 19985{ 19986 set +e 19987 as_fn_set_status $1 19988 exit $1 19989} # as_fn_exit 19990 19991# as_fn_unset VAR 19992# --------------- 19993# Portably unset VAR. 19994as_fn_unset () 19995{ 19996 { eval $1=; unset $1;} 19997} 19998as_unset=as_fn_unset 19999# as_fn_append VAR VALUE 20000# ---------------------- 20001# Append the text in VALUE to the end of the definition contained in VAR. Take 20002# advantage of any shell optimizations that allow amortized linear growth over 20003# repeated appends, instead of the typical quadratic growth present in naive 20004# implementations. 20005if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20006 eval 'as_fn_append () 20007 { 20008 eval $1+=\$2 20009 }' 20010else 20011 as_fn_append () 20012 { 20013 eval $1=\$$1\$2 20014 } 20015fi # as_fn_append 20016 20017# as_fn_arith ARG... 20018# ------------------ 20019# Perform arithmetic evaluation on the ARGs, and store the result in the 20020# global $as_val. Take advantage of shells that can avoid forks. The arguments 20021# must be portable across $(()) and expr. 20022if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20023 eval 'as_fn_arith () 20024 { 20025 as_val=$(( $* )) 20026 }' 20027else 20028 as_fn_arith () 20029 { 20030 as_val=`expr "$@" || test $? -eq 1` 20031 } 20032fi # as_fn_arith 20033 20034 20035if expr a : '\(a\)' >/dev/null 2>&1 && 20036 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20037 as_expr=expr 20038else 20039 as_expr=false 20040fi 20041 20042if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20043 as_basename=basename 20044else 20045 as_basename=false 20046fi 20047 20048if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20049 as_dirname=dirname 20050else 20051 as_dirname=false 20052fi 20053 20054as_me=`$as_basename -- "$0" || 20055$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20056 X"$0" : 'X\(//\)$' \| \ 20057 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20058$as_echo X/"$0" | 20059 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20060 s//\1/ 20061 q 20062 } 20063 /^X\/\(\/\/\)$/{ 20064 s//\1/ 20065 q 20066 } 20067 /^X\/\(\/\).*/{ 20068 s//\1/ 20069 q 20070 } 20071 s/.*/./; q'` 20072 20073# Avoid depending upon Character Ranges. 20074as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20075as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20076as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20077as_cr_digits='0123456789' 20078as_cr_alnum=$as_cr_Letters$as_cr_digits 20079 20080ECHO_C= ECHO_N= ECHO_T= 20081case `echo -n x` in #((((( 20082-n*) 20083 case `echo 'xy\c'` in 20084 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20085 xy) ECHO_C='\c';; 20086 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20087 ECHO_T=' ';; 20088 esac;; 20089*) 20090 ECHO_N='-n';; 20091esac 20092 20093rm -f conf$$ conf$$.exe conf$$.file 20094if test -d conf$$.dir; then 20095 rm -f conf$$.dir/conf$$.file 20096else 20097 rm -f conf$$.dir 20098 mkdir conf$$.dir 2>/dev/null 20099fi 20100if (echo >conf$$.file) 2>/dev/null; then 20101 if ln -s conf$$.file conf$$ 2>/dev/null; then 20102 as_ln_s='ln -s' 20103 # ... but there are two gotchas: 20104 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20105 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20106 # In both cases, we have to default to `cp -pR'. 20107 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20108 as_ln_s='cp -pR' 20109 elif ln conf$$.file conf$$ 2>/dev/null; then 20110 as_ln_s=ln 20111 else 20112 as_ln_s='cp -pR' 20113 fi 20114else 20115 as_ln_s='cp -pR' 20116fi 20117rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20118rmdir conf$$.dir 2>/dev/null 20119 20120 20121# as_fn_mkdir_p 20122# ------------- 20123# Create "$as_dir" as a directory, including parents if necessary. 20124as_fn_mkdir_p () 20125{ 20126 20127 case $as_dir in #( 20128 -*) as_dir=./$as_dir;; 20129 esac 20130 test -d "$as_dir" || eval $as_mkdir_p || { 20131 as_dirs= 20132 while :; do 20133 case $as_dir in #( 20134 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20135 *) as_qdir=$as_dir;; 20136 esac 20137 as_dirs="'$as_qdir' $as_dirs" 20138 as_dir=`$as_dirname -- "$as_dir" || 20139$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20140 X"$as_dir" : 'X\(//\)[^/]' \| \ 20141 X"$as_dir" : 'X\(//\)$' \| \ 20142 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20143$as_echo X"$as_dir" | 20144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20145 s//\1/ 20146 q 20147 } 20148 /^X\(\/\/\)[^/].*/{ 20149 s//\1/ 20150 q 20151 } 20152 /^X\(\/\/\)$/{ 20153 s//\1/ 20154 q 20155 } 20156 /^X\(\/\).*/{ 20157 s//\1/ 20158 q 20159 } 20160 s/.*/./; q'` 20161 test -d "$as_dir" && break 20162 done 20163 test -z "$as_dirs" || eval "mkdir $as_dirs" 20164 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20165 20166 20167} # as_fn_mkdir_p 20168if mkdir -p . 2>/dev/null; then 20169 as_mkdir_p='mkdir -p "$as_dir"' 20170else 20171 test -d ./-p && rmdir ./-p 20172 as_mkdir_p=false 20173fi 20174 20175 20176# as_fn_executable_p FILE 20177# ----------------------- 20178# Test if FILE is an executable regular file. 20179as_fn_executable_p () 20180{ 20181 test -f "$1" && test -x "$1" 20182} # as_fn_executable_p 20183as_test_x='test -x' 20184as_executable_p=as_fn_executable_p 20185 20186# Sed expression to map a string onto a valid CPP name. 20187as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20188 20189# Sed expression to map a string onto a valid variable name. 20190as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20191 20192 20193exec 6>&1 20194## ----------------------------------- ## 20195## Main body of $CONFIG_STATUS script. ## 20196## ----------------------------------- ## 20197_ASEOF 20198test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20199 20200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20201# Save the log message, to keep $0 and so on meaningful, and to 20202# report actual input values of CONFIG_FILES etc. instead of their 20203# values after options handling. 20204ac_log=" 20205This file was extended by libXmu $as_me 1.1.3, which was 20206generated by GNU Autoconf 2.69. Invocation command line was 20207 20208 CONFIG_FILES = $CONFIG_FILES 20209 CONFIG_HEADERS = $CONFIG_HEADERS 20210 CONFIG_LINKS = $CONFIG_LINKS 20211 CONFIG_COMMANDS = $CONFIG_COMMANDS 20212 $ $0 $@ 20213 20214on `(hostname || uname -n) 2>/dev/null | sed 1q` 20215" 20216 20217_ACEOF 20218 20219case $ac_config_files in *" 20220"*) set x $ac_config_files; shift; ac_config_files=$*;; 20221esac 20222 20223case $ac_config_headers in *" 20224"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20225esac 20226 20227 20228cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20229# Files that config.status was made for. 20230config_files="$ac_config_files" 20231config_headers="$ac_config_headers" 20232config_commands="$ac_config_commands" 20233 20234_ACEOF 20235 20236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20237ac_cs_usage="\ 20238\`$as_me' instantiates files and other configuration actions 20239from templates according to the current configuration. Unless the files 20240and actions are specified as TAGs, all are instantiated by default. 20241 20242Usage: $0 [OPTION]... [TAG]... 20243 20244 -h, --help print this help, then exit 20245 -V, --version print version number and configuration settings, then exit 20246 --config print configuration, then exit 20247 -q, --quiet, --silent 20248 do not print progress messages 20249 -d, --debug don't remove temporary files 20250 --recheck update $as_me by reconfiguring in the same conditions 20251 --file=FILE[:TEMPLATE] 20252 instantiate the configuration file FILE 20253 --header=FILE[:TEMPLATE] 20254 instantiate the configuration header FILE 20255 20256Configuration files: 20257$config_files 20258 20259Configuration headers: 20260$config_headers 20261 20262Configuration commands: 20263$config_commands 20264 20265Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libXmu/issues>." 20266 20267_ACEOF 20268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20269ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20270ac_cs_version="\\ 20271libXmu config.status 1.1.3 20272configured by $0, generated by GNU Autoconf 2.69, 20273 with options \\"\$ac_cs_config\\" 20274 20275Copyright (C) 2012 Free Software Foundation, Inc. 20276This config.status script is free software; the Free Software Foundation 20277gives unlimited permission to copy, distribute and modify it." 20278 20279ac_pwd='$ac_pwd' 20280srcdir='$srcdir' 20281INSTALL='$INSTALL' 20282MKDIR_P='$MKDIR_P' 20283AWK='$AWK' 20284test -n "\$AWK" || AWK=awk 20285_ACEOF 20286 20287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20288# The default lists apply if the user does not specify any file. 20289ac_need_defaults=: 20290while test $# != 0 20291do 20292 case $1 in 20293 --*=?*) 20294 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20295 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20296 ac_shift=: 20297 ;; 20298 --*=) 20299 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20300 ac_optarg= 20301 ac_shift=: 20302 ;; 20303 *) 20304 ac_option=$1 20305 ac_optarg=$2 20306 ac_shift=shift 20307 ;; 20308 esac 20309 20310 case $ac_option in 20311 # Handling of the options. 20312 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20313 ac_cs_recheck=: ;; 20314 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20315 $as_echo "$ac_cs_version"; exit ;; 20316 --config | --confi | --conf | --con | --co | --c ) 20317 $as_echo "$ac_cs_config"; exit ;; 20318 --debug | --debu | --deb | --de | --d | -d ) 20319 debug=: ;; 20320 --file | --fil | --fi | --f ) 20321 $ac_shift 20322 case $ac_optarg in 20323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20324 '') as_fn_error $? "missing file argument" ;; 20325 esac 20326 as_fn_append CONFIG_FILES " '$ac_optarg'" 20327 ac_need_defaults=false;; 20328 --header | --heade | --head | --hea ) 20329 $ac_shift 20330 case $ac_optarg in 20331 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20332 esac 20333 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20334 ac_need_defaults=false;; 20335 --he | --h) 20336 # Conflict between --help and --header 20337 as_fn_error $? "ambiguous option: \`$1' 20338Try \`$0 --help' for more information.";; 20339 --help | --hel | -h ) 20340 $as_echo "$ac_cs_usage"; exit ;; 20341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20342 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20343 ac_cs_silent=: ;; 20344 20345 # This is an error. 20346 -*) as_fn_error $? "unrecognized option: \`$1' 20347Try \`$0 --help' for more information." ;; 20348 20349 *) as_fn_append ac_config_targets " $1" 20350 ac_need_defaults=false ;; 20351 20352 esac 20353 shift 20354done 20355 20356ac_configure_extra_args= 20357 20358if $ac_cs_silent; then 20359 exec 6>/dev/null 20360 ac_configure_extra_args="$ac_configure_extra_args --silent" 20361fi 20362 20363_ACEOF 20364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20365if \$ac_cs_recheck; then 20366 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20367 shift 20368 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20369 CONFIG_SHELL='$SHELL' 20370 export CONFIG_SHELL 20371 exec "\$@" 20372fi 20373 20374_ACEOF 20375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20376exec 5>>config.log 20377{ 20378 echo 20379 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20380## Running $as_me. ## 20381_ASBOX 20382 $as_echo "$ac_log" 20383} >&5 20384 20385_ACEOF 20386cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20387# 20388# INIT-COMMANDS 20389# 20390AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 20391 20392 20393# The HP-UX ksh and POSIX shell print the target directory to stdout 20394# if CDPATH is set. 20395(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20396 20397sed_quote_subst='$sed_quote_subst' 20398double_quote_subst='$double_quote_subst' 20399delay_variable_subst='$delay_variable_subst' 20400macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20401macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20402enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20403enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20404pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20405enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20406shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20407SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20408ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20409PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20410host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20411host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20412host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20413build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20414build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20415build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20416SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20417Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20418GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20419EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20420FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20421LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20422NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20423LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20424max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20425ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20426exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20427lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20428lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20429lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20430lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20431lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20432reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20433reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20434OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20435deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20436file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20437file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20438want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20439DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20440sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20441AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20442AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20443archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20444STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20445RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20446old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20447old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20448old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20449lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20450CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20451CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20452compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20453GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20454lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20455lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20456lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20457lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20458lt_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"`' 20459lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20460nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20461lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20462lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20463objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20464MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20465lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20466lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20467lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20468lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20469lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20470need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20471MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20472DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20473NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20474LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20475OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20476OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20477libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20478shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20479extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20480archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20481enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20482export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20483whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20484compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20485old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20486old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20487archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20488archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20489module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20490module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20491with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20492allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20493no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20494hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20495hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20496hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20497hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20498hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20499hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20500hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20501inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20502link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20503always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20504export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20505exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20506include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20507prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20508postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20509file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20510variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20511need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20512need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20513version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20514runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20515shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20516shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20517libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20518library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20519soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20520install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20521postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20522postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20523finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20524finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20525hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20526sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20527configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20528configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20529hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20530enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20531enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20532enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20533old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20534striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20535 20536LTCC='$LTCC' 20537LTCFLAGS='$LTCFLAGS' 20538compiler='$compiler_DEFAULT' 20539 20540# A function that is used when there is no print builtin or printf. 20541func_fallback_echo () 20542{ 20543 eval 'cat <<_LTECHO_EOF 20544\$1 20545_LTECHO_EOF' 20546} 20547 20548# Quote evaled strings. 20549for var in SHELL \ 20550ECHO \ 20551PATH_SEPARATOR \ 20552SED \ 20553GREP \ 20554EGREP \ 20555FGREP \ 20556LD \ 20557NM \ 20558LN_S \ 20559lt_SP2NL \ 20560lt_NL2SP \ 20561reload_flag \ 20562OBJDUMP \ 20563deplibs_check_method \ 20564file_magic_cmd \ 20565file_magic_glob \ 20566want_nocaseglob \ 20567DLLTOOL \ 20568sharedlib_from_linklib_cmd \ 20569AR \ 20570AR_FLAGS \ 20571archiver_list_spec \ 20572STRIP \ 20573RANLIB \ 20574CC \ 20575CFLAGS \ 20576compiler \ 20577lt_cv_sys_global_symbol_pipe \ 20578lt_cv_sys_global_symbol_to_cdecl \ 20579lt_cv_sys_global_symbol_to_import \ 20580lt_cv_sys_global_symbol_to_c_name_address \ 20581lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20582lt_cv_nm_interface \ 20583nm_file_list_spec \ 20584lt_cv_truncate_bin \ 20585lt_prog_compiler_no_builtin_flag \ 20586lt_prog_compiler_pic \ 20587lt_prog_compiler_wl \ 20588lt_prog_compiler_static \ 20589lt_cv_prog_compiler_c_o \ 20590need_locks \ 20591MANIFEST_TOOL \ 20592DSYMUTIL \ 20593NMEDIT \ 20594LIPO \ 20595OTOOL \ 20596OTOOL64 \ 20597shrext_cmds \ 20598export_dynamic_flag_spec \ 20599whole_archive_flag_spec \ 20600compiler_needs_object \ 20601with_gnu_ld \ 20602allow_undefined_flag \ 20603no_undefined_flag \ 20604hardcode_libdir_flag_spec \ 20605hardcode_libdir_separator \ 20606exclude_expsyms \ 20607include_expsyms \ 20608file_list_spec \ 20609variables_saved_for_relink \ 20610libname_spec \ 20611library_names_spec \ 20612soname_spec \ 20613install_override_mode \ 20614finish_eval \ 20615old_striplib \ 20616striplib; do 20617 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20618 *[\\\\\\\`\\"\\\$]*) 20619 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20620 ;; 20621 *) 20622 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20623 ;; 20624 esac 20625done 20626 20627# Double-quote double-evaled strings. 20628for var in reload_cmds \ 20629old_postinstall_cmds \ 20630old_postuninstall_cmds \ 20631old_archive_cmds \ 20632extract_expsyms_cmds \ 20633old_archive_from_new_cmds \ 20634old_archive_from_expsyms_cmds \ 20635archive_cmds \ 20636archive_expsym_cmds \ 20637module_cmds \ 20638module_expsym_cmds \ 20639export_symbols_cmds \ 20640prelink_cmds \ 20641postlink_cmds \ 20642postinstall_cmds \ 20643postuninstall_cmds \ 20644finish_cmds \ 20645sys_lib_search_path_spec \ 20646configure_time_dlsearch_path \ 20647configure_time_lt_sys_library_path; do 20648 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 20649 *[\\\\\\\`\\"\\\$]*) 20650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 20651 ;; 20652 *) 20653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20654 ;; 20655 esac 20656done 20657 20658ac_aux_dir='$ac_aux_dir' 20659 20660# See if we are running on zsh, and set the options that allow our 20661# commands through without removal of \ escapes INIT. 20662if test -n "\${ZSH_VERSION+set}"; then 20663 setopt NO_GLOB_SUBST 20664fi 20665 20666 20667 PACKAGE='$PACKAGE' 20668 VERSION='$VERSION' 20669 RM='$RM' 20670 ofile='$ofile' 20671 20672 20673 20674 20675_ACEOF 20676 20677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20678 20679# Handling of arguments. 20680for ac_config_target in $ac_config_targets 20681do 20682 case $ac_config_target in 20683 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20684 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20685 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20686 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20687 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 20688 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 20689 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 20690 "xmu.pc") CONFIG_FILES="$CONFIG_FILES xmu.pc" ;; 20691 "xmuu.pc") CONFIG_FILES="$CONFIG_FILES xmuu.pc" ;; 20692 20693 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 20694 esac 20695done 20696 20697 20698# If the user did not use the arguments to specify the items to instantiate, 20699# then the envvar interface is used. Set only those that are not. 20700# We use the long form for the default assignment because of an extremely 20701# bizarre bug on SunOS 4.1.3. 20702if $ac_need_defaults; then 20703 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20704 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20706fi 20707 20708# Have a temporary directory for convenience. Make it in the build tree 20709# simply because there is no reason against having it here, and in addition, 20710# creating and moving files from /tmp can sometimes cause problems. 20711# Hook for its removal unless debugging. 20712# Note that there is a small window in which the directory will not be cleaned: 20713# after its creation but before its name has been assigned to `$tmp'. 20714$debug || 20715{ 20716 tmp= ac_tmp= 20717 trap 'exit_status=$? 20718 : "${ac_tmp:=$tmp}" 20719 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 20720' 0 20721 trap 'as_fn_exit 1' 1 2 13 15 20722} 20723# Create a (secure) tmp directory for tmp files. 20724 20725{ 20726 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 20727 test -d "$tmp" 20728} || 20729{ 20730 tmp=./conf$$-$RANDOM 20731 (umask 077 && mkdir "$tmp") 20732} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 20733ac_tmp=$tmp 20734 20735# Set up the scripts for CONFIG_FILES section. 20736# No need to generate them if there are no CONFIG_FILES. 20737# This happens for instance with `./config.status config.h'. 20738if test -n "$CONFIG_FILES"; then 20739 20740 20741ac_cr=`echo X | tr X '\015'` 20742# On cygwin, bash can eat \r inside `` if the user requested igncr. 20743# But we know of no other shell where ac_cr would be empty at this 20744# point, so we can use a bashism as a fallback. 20745if test "x$ac_cr" = x; then 20746 eval ac_cr=\$\'\\r\' 20747fi 20748ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 20749if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 20750 ac_cs_awk_cr='\\r' 20751else 20752 ac_cs_awk_cr=$ac_cr 20753fi 20754 20755echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 20756_ACEOF 20757 20758 20759{ 20760 echo "cat >conf$$subs.awk <<_ACEOF" && 20761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20762 echo "_ACEOF" 20763} >conf$$subs.sh || 20764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20765ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20766ac_delim='%!_!# ' 20767for ac_last_try in false false false false false :; do 20768 . ./conf$$subs.sh || 20769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20770 20771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20772 if test $ac_delim_n = $ac_delim_num; then 20773 break 20774 elif $ac_last_try; then 20775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20776 else 20777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20778 fi 20779done 20780rm -f conf$$subs.sh 20781 20782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20783cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20784_ACEOF 20785sed -n ' 20786h 20787s/^/S["/; s/!.*/"]=/ 20788p 20789g 20790s/^[^!]*!// 20791:repl 20792t repl 20793s/'"$ac_delim"'$// 20794t delim 20795:nl 20796h 20797s/\(.\{148\}\)..*/\1/ 20798t more1 20799s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20800p 20801n 20802b repl 20803:more1 20804s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20805p 20806g 20807s/.\{148\}// 20808t nl 20809:delim 20810h 20811s/\(.\{148\}\)..*/\1/ 20812t more2 20813s/["\\]/\\&/g; s/^/"/; s/$/"/ 20814p 20815b 20816:more2 20817s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20818p 20819g 20820s/.\{148\}// 20821t delim 20822' <conf$$subs.awk | sed ' 20823/^[^""]/{ 20824 N 20825 s/\n// 20826} 20827' >>$CONFIG_STATUS || ac_write_fail=1 20828rm -f conf$$subs.awk 20829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20830_ACAWK 20831cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20832 for (key in S) S_is_set[key] = 1 20833 FS = "" 20834 20835} 20836{ 20837 line = $ 0 20838 nfields = split(line, field, "@") 20839 substed = 0 20840 len = length(field[1]) 20841 for (i = 2; i < nfields; i++) { 20842 key = field[i] 20843 keylen = length(key) 20844 if (S_is_set[key]) { 20845 value = S[key] 20846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20847 len += length(value) + length(field[++i]) 20848 substed = 1 20849 } else 20850 len += 1 + keylen 20851 } 20852 20853 print line 20854} 20855 20856_ACAWK 20857_ACEOF 20858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20859if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20860 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20861else 20862 cat 20863fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20864 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20865_ACEOF 20866 20867# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20868# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20869# trailing colons and then remove the whole line if VPATH becomes empty 20870# (actually we leave an empty line to preserve line numbers). 20871if test "x$srcdir" = x.; then 20872 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20873h 20874s/// 20875s/^/:/ 20876s/[ ]*$/:/ 20877s/:\$(srcdir):/:/g 20878s/:\${srcdir}:/:/g 20879s/:@srcdir@:/:/g 20880s/^:*// 20881s/:*$// 20882x 20883s/\(=[ ]*\).*/\1/ 20884G 20885s/\n// 20886s/^[^=]*=[ ]*$// 20887}' 20888fi 20889 20890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20891fi # test -n "$CONFIG_FILES" 20892 20893# Set up the scripts for CONFIG_HEADERS section. 20894# No need to generate them if there are no CONFIG_HEADERS. 20895# This happens for instance with `./config.status Makefile'. 20896if test -n "$CONFIG_HEADERS"; then 20897cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20898BEGIN { 20899_ACEOF 20900 20901# Transform confdefs.h into an awk script `defines.awk', embedded as 20902# here-document in config.status, that substitutes the proper values into 20903# config.h.in to produce config.h. 20904 20905# Create a delimiter string that does not exist in confdefs.h, to ease 20906# handling of long lines. 20907ac_delim='%!_!# ' 20908for ac_last_try in false false :; do 20909 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20910 if test -z "$ac_tt"; then 20911 break 20912 elif $ac_last_try; then 20913 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20914 else 20915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20916 fi 20917done 20918 20919# For the awk script, D is an array of macro values keyed by name, 20920# likewise P contains macro parameters if any. Preserve backslash 20921# newline sequences. 20922 20923ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20924sed -n ' 20925s/.\{148\}/&'"$ac_delim"'/g 20926t rset 20927:rset 20928s/^[ ]*#[ ]*define[ ][ ]*/ / 20929t def 20930d 20931:def 20932s/\\$// 20933t bsnl 20934s/["\\]/\\&/g 20935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20936D["\1"]=" \3"/p 20937s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20938d 20939:bsnl 20940s/["\\]/\\&/g 20941s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20942D["\1"]=" \3\\\\\\n"\\/p 20943t cont 20944s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20945t cont 20946d 20947:cont 20948n 20949s/.\{148\}/&'"$ac_delim"'/g 20950t clear 20951:clear 20952s/\\$// 20953t bsnlc 20954s/["\\]/\\&/g; s/^/"/; s/$/"/p 20955d 20956:bsnlc 20957s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20958b cont 20959' <confdefs.h | sed ' 20960s/'"$ac_delim"'/"\\\ 20961"/g' >>$CONFIG_STATUS || ac_write_fail=1 20962 20963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20964 for (key in D) D_is_set[key] = 1 20965 FS = "" 20966} 20967/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20968 line = \$ 0 20969 split(line, arg, " ") 20970 if (arg[1] == "#") { 20971 defundef = arg[2] 20972 mac1 = arg[3] 20973 } else { 20974 defundef = substr(arg[1], 2) 20975 mac1 = arg[2] 20976 } 20977 split(mac1, mac2, "(") #) 20978 macro = mac2[1] 20979 prefix = substr(line, 1, index(line, defundef) - 1) 20980 if (D_is_set[macro]) { 20981 # Preserve the white space surrounding the "#". 20982 print prefix "define", macro P[macro] D[macro] 20983 next 20984 } else { 20985 # Replace #undef with comments. This is necessary, for example, 20986 # in the case of _POSIX_SOURCE, which is predefined and required 20987 # on some systems where configure will not decide to define it. 20988 if (defundef == "undef") { 20989 print "/*", prefix defundef, macro, "*/" 20990 next 20991 } 20992 } 20993} 20994{ print } 20995_ACAWK 20996_ACEOF 20997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20998 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20999fi # test -n "$CONFIG_HEADERS" 21000 21001 21002eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21003shift 21004for ac_tag 21005do 21006 case $ac_tag in 21007 :[FHLC]) ac_mode=$ac_tag; continue;; 21008 esac 21009 case $ac_mode$ac_tag in 21010 :[FHL]*:*);; 21011 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21012 :[FH]-) ac_tag=-:-;; 21013 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21014 esac 21015 ac_save_IFS=$IFS 21016 IFS=: 21017 set x $ac_tag 21018 IFS=$ac_save_IFS 21019 shift 21020 ac_file=$1 21021 shift 21022 21023 case $ac_mode in 21024 :L) ac_source=$1;; 21025 :[FH]) 21026 ac_file_inputs= 21027 for ac_f 21028 do 21029 case $ac_f in 21030 -) ac_f="$ac_tmp/stdin";; 21031 *) # Look for the file first in the build tree, then in the source tree 21032 # (if the path is not absolute). The absolute path cannot be DOS-style, 21033 # because $ac_f cannot contain `:'. 21034 test -f "$ac_f" || 21035 case $ac_f in 21036 [\\/$]*) false;; 21037 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21038 esac || 21039 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21040 esac 21041 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21042 as_fn_append ac_file_inputs " '$ac_f'" 21043 done 21044 21045 # Let's still pretend it is `configure' which instantiates (i.e., don't 21046 # use $as_me), people would be surprised to read: 21047 # /* config.h. Generated by config.status. */ 21048 configure_input='Generated from '` 21049 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21050 `' by configure.' 21051 if test x"$ac_file" != x-; then 21052 configure_input="$ac_file. $configure_input" 21053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21054$as_echo "$as_me: creating $ac_file" >&6;} 21055 fi 21056 # Neutralize special characters interpreted by sed in replacement strings. 21057 case $configure_input in #( 21058 *\&* | *\|* | *\\* ) 21059 ac_sed_conf_input=`$as_echo "$configure_input" | 21060 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21061 *) ac_sed_conf_input=$configure_input;; 21062 esac 21063 21064 case $ac_tag in 21065 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21066 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21067 esac 21068 ;; 21069 esac 21070 21071 ac_dir=`$as_dirname -- "$ac_file" || 21072$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21073 X"$ac_file" : 'X\(//\)[^/]' \| \ 21074 X"$ac_file" : 'X\(//\)$' \| \ 21075 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21076$as_echo X"$ac_file" | 21077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21078 s//\1/ 21079 q 21080 } 21081 /^X\(\/\/\)[^/].*/{ 21082 s//\1/ 21083 q 21084 } 21085 /^X\(\/\/\)$/{ 21086 s//\1/ 21087 q 21088 } 21089 /^X\(\/\).*/{ 21090 s//\1/ 21091 q 21092 } 21093 s/.*/./; q'` 21094 as_dir="$ac_dir"; as_fn_mkdir_p 21095 ac_builddir=. 21096 21097case "$ac_dir" in 21098.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21099*) 21100 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21101 # A ".." for each directory in $ac_dir_suffix. 21102 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21103 case $ac_top_builddir_sub in 21104 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21105 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21106 esac ;; 21107esac 21108ac_abs_top_builddir=$ac_pwd 21109ac_abs_builddir=$ac_pwd$ac_dir_suffix 21110# for backward compatibility: 21111ac_top_builddir=$ac_top_build_prefix 21112 21113case $srcdir in 21114 .) # We are building in place. 21115 ac_srcdir=. 21116 ac_top_srcdir=$ac_top_builddir_sub 21117 ac_abs_top_srcdir=$ac_pwd ;; 21118 [\\/]* | ?:[\\/]* ) # Absolute name. 21119 ac_srcdir=$srcdir$ac_dir_suffix; 21120 ac_top_srcdir=$srcdir 21121 ac_abs_top_srcdir=$srcdir ;; 21122 *) # Relative name. 21123 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21124 ac_top_srcdir=$ac_top_build_prefix$srcdir 21125 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21126esac 21127ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21128 21129 21130 case $ac_mode in 21131 :F) 21132 # 21133 # CONFIG_FILE 21134 # 21135 21136 case $INSTALL in 21137 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21138 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21139 esac 21140 ac_MKDIR_P=$MKDIR_P 21141 case $MKDIR_P in 21142 [\\/$]* | ?:[\\/]* ) ;; 21143 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21144 esac 21145_ACEOF 21146 21147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21148# If the template does not know about datarootdir, expand it. 21149# FIXME: This hack should be removed a few years after 2.60. 21150ac_datarootdir_hack=; ac_datarootdir_seen= 21151ac_sed_dataroot=' 21152/datarootdir/ { 21153 p 21154 q 21155} 21156/@datadir@/p 21157/@docdir@/p 21158/@infodir@/p 21159/@localedir@/p 21160/@mandir@/p' 21161case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21162*datarootdir*) ac_datarootdir_seen=yes;; 21163*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21165$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21166_ACEOF 21167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21168 ac_datarootdir_hack=' 21169 s&@datadir@&$datadir&g 21170 s&@docdir@&$docdir&g 21171 s&@infodir@&$infodir&g 21172 s&@localedir@&$localedir&g 21173 s&@mandir@&$mandir&g 21174 s&\\\${datarootdir}&$datarootdir&g' ;; 21175esac 21176_ACEOF 21177 21178# Neutralize VPATH when `$srcdir' = `.'. 21179# Shell code in configure.ac might set extrasub. 21180# FIXME: do we really want to maintain this feature? 21181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21182ac_sed_extra="$ac_vpsub 21183$extrasub 21184_ACEOF 21185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21186:t 21187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21188s|@configure_input@|$ac_sed_conf_input|;t t 21189s&@top_builddir@&$ac_top_builddir_sub&;t t 21190s&@top_build_prefix@&$ac_top_build_prefix&;t t 21191s&@srcdir@&$ac_srcdir&;t t 21192s&@abs_srcdir@&$ac_abs_srcdir&;t t 21193s&@top_srcdir@&$ac_top_srcdir&;t t 21194s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21195s&@builddir@&$ac_builddir&;t t 21196s&@abs_builddir@&$ac_abs_builddir&;t t 21197s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21198s&@INSTALL@&$ac_INSTALL&;t t 21199s&@MKDIR_P@&$ac_MKDIR_P&;t t 21200$ac_datarootdir_hack 21201" 21202eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21203 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21204 21205test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21206 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21208 "$ac_tmp/out"`; test -z "$ac_out"; } && 21209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21210which seems to be undefined. Please make sure it is defined" >&5 21211$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21212which seems to be undefined. Please make sure it is defined" >&2;} 21213 21214 rm -f "$ac_tmp/stdin" 21215 case $ac_file in 21216 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21217 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21218 esac \ 21219 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21220 ;; 21221 :H) 21222 # 21223 # CONFIG_HEADER 21224 # 21225 if test x"$ac_file" != x-; then 21226 { 21227 $as_echo "/* $configure_input */" \ 21228 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21229 } >"$ac_tmp/config.h" \ 21230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21231 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21232 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21233$as_echo "$as_me: $ac_file is unchanged" >&6;} 21234 else 21235 rm -f "$ac_file" 21236 mv "$ac_tmp/config.h" "$ac_file" \ 21237 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21238 fi 21239 else 21240 $as_echo "/* $configure_input */" \ 21241 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21242 || as_fn_error $? "could not create -" "$LINENO" 5 21243 fi 21244# Compute "$ac_file"'s index in $config_headers. 21245_am_arg="$ac_file" 21246_am_stamp_count=1 21247for _am_header in $config_headers :; do 21248 case $_am_header in 21249 $_am_arg | $_am_arg:* ) 21250 break ;; 21251 * ) 21252 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21253 esac 21254done 21255echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21256$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21257 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21258 X"$_am_arg" : 'X\(//\)$' \| \ 21259 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21260$as_echo X"$_am_arg" | 21261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21262 s//\1/ 21263 q 21264 } 21265 /^X\(\/\/\)[^/].*/{ 21266 s//\1/ 21267 q 21268 } 21269 /^X\(\/\/\)$/{ 21270 s//\1/ 21271 q 21272 } 21273 /^X\(\/\).*/{ 21274 s//\1/ 21275 q 21276 } 21277 s/.*/./; q'`/stamp-h$_am_stamp_count 21278 ;; 21279 21280 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21281$as_echo "$as_me: executing $ac_file commands" >&6;} 21282 ;; 21283 esac 21284 21285 21286 case $ac_file$ac_mode in 21287 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 21288 # Older Autoconf quotes --file arguments for eval, but not when files 21289 # are listed without --file. Let's play safe and only enable the eval 21290 # if we detect the quoting. 21291 case $CONFIG_FILES in 21292 *\'*) eval set x "$CONFIG_FILES" ;; 21293 *) set x $CONFIG_FILES ;; 21294 esac 21295 shift 21296 for mf 21297 do 21298 # Strip MF so we end up with the name of the file. 21299 mf=`echo "$mf" | sed -e 's/:.*$//'` 21300 # Check whether this is an Automake generated Makefile or not. 21301 # We used to match only the files named 'Makefile.in', but 21302 # some people rename them; so instead we look at the file content. 21303 # Grep'ing the first line is not enough: some people post-process 21304 # each Makefile.in and add a new line on top of each file to say so. 21305 # Grep'ing the whole file is not good either: AIX grep has a line 21306 # limit of 2048, but all sed's we know have understand at least 4000. 21307 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 21308 dirpart=`$as_dirname -- "$mf" || 21309$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21310 X"$mf" : 'X\(//\)[^/]' \| \ 21311 X"$mf" : 'X\(//\)$' \| \ 21312 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 21313$as_echo X"$mf" | 21314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21315 s//\1/ 21316 q 21317 } 21318 /^X\(\/\/\)[^/].*/{ 21319 s//\1/ 21320 q 21321 } 21322 /^X\(\/\/\)$/{ 21323 s//\1/ 21324 q 21325 } 21326 /^X\(\/\).*/{ 21327 s//\1/ 21328 q 21329 } 21330 s/.*/./; q'` 21331 else 21332 continue 21333 fi 21334 # Extract the definition of DEPDIR, am__include, and am__quote 21335 # from the Makefile without running 'make'. 21336 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21337 test -z "$DEPDIR" && continue 21338 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21339 test -z "$am__include" && continue 21340 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21341 # Find all dependency output files, they are included files with 21342 # $(DEPDIR) in their names. We invoke sed twice because it is the 21343 # simplest approach to changing $(DEPDIR) to its actual value in the 21344 # expansion. 21345 for file in `sed -n " 21346 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21347 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 21348 # Make sure the directory exists. 21349 test -f "$dirpart/$file" && continue 21350 fdir=`$as_dirname -- "$file" || 21351$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21352 X"$file" : 'X\(//\)[^/]' \| \ 21353 X"$file" : 'X\(//\)$' \| \ 21354 X"$file" : 'X\(/\)' \| . 2>/dev/null || 21355$as_echo X"$file" | 21356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21357 s//\1/ 21358 q 21359 } 21360 /^X\(\/\/\)[^/].*/{ 21361 s//\1/ 21362 q 21363 } 21364 /^X\(\/\/\)$/{ 21365 s//\1/ 21366 q 21367 } 21368 /^X\(\/\).*/{ 21369 s//\1/ 21370 q 21371 } 21372 s/.*/./; q'` 21373 as_dir=$dirpart/$fdir; as_fn_mkdir_p 21374 # echo "creating $dirpart/$file" 21375 echo '# dummy' > "$dirpart/$file" 21376 done 21377 done 21378} 21379 ;; 21380 "libtool":C) 21381 21382 # See if we are running on zsh, and set the options that allow our 21383 # commands through without removal of \ escapes. 21384 if test -n "${ZSH_VERSION+set}"; then 21385 setopt NO_GLOB_SUBST 21386 fi 21387 21388 cfgfile=${ofile}T 21389 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21390 $RM "$cfgfile" 21391 21392 cat <<_LT_EOF >> "$cfgfile" 21393#! $SHELL 21394# Generated automatically by $as_me ($PACKAGE) $VERSION 21395# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21396# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21397 21398# Provide generalized library-building support services. 21399# Written by Gordon Matzigkeit, 1996 21400 21401# Copyright (C) 2014 Free Software Foundation, Inc. 21402# This is free software; see the source for copying conditions. There is NO 21403# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21404 21405# GNU Libtool is free software; you can redistribute it and/or modify 21406# it under the terms of the GNU General Public License as published by 21407# the Free Software Foundation; either version 2 of of the License, or 21408# (at your option) any later version. 21409# 21410# As a special exception to the GNU General Public License, if you 21411# distribute this file as part of a program or library that is built 21412# using GNU Libtool, you may include this file under the same 21413# distribution terms that you use for the rest of that program. 21414# 21415# GNU Libtool is distributed in the hope that it will be useful, but 21416# WITHOUT ANY WARRANTY; without even the implied warranty of 21417# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21418# GNU General Public License for more details. 21419# 21420# You should have received a copy of the GNU General Public License 21421# along with this program. If not, see <http://www.gnu.org/licenses/>. 21422 21423 21424# The names of the tagged configurations supported by this script. 21425available_tags='' 21426 21427# Configured defaults for sys_lib_dlsearch_path munging. 21428: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21429 21430# ### BEGIN LIBTOOL CONFIG 21431 21432# Which release of libtool.m4 was used? 21433macro_version=$macro_version 21434macro_revision=$macro_revision 21435 21436# Whether or not to build shared libraries. 21437build_libtool_libs=$enable_shared 21438 21439# Whether or not to build static libraries. 21440build_old_libs=$enable_static 21441 21442# What type of objects to build. 21443pic_mode=$pic_mode 21444 21445# Whether or not to optimize for fast installation. 21446fast_install=$enable_fast_install 21447 21448# Shared archive member basename,for filename based shared library versioning on AIX. 21449shared_archive_member_spec=$shared_archive_member_spec 21450 21451# Shell to use when invoking shell scripts. 21452SHELL=$lt_SHELL 21453 21454# An echo program that protects backslashes. 21455ECHO=$lt_ECHO 21456 21457# The PATH separator for the build system. 21458PATH_SEPARATOR=$lt_PATH_SEPARATOR 21459 21460# The host system. 21461host_alias=$host_alias 21462host=$host 21463host_os=$host_os 21464 21465# The build system. 21466build_alias=$build_alias 21467build=$build 21468build_os=$build_os 21469 21470# A sed program that does not truncate output. 21471SED=$lt_SED 21472 21473# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21474Xsed="\$SED -e 1s/^X//" 21475 21476# A grep program that handles long lines. 21477GREP=$lt_GREP 21478 21479# An ERE matcher. 21480EGREP=$lt_EGREP 21481 21482# A literal string matcher. 21483FGREP=$lt_FGREP 21484 21485# A BSD- or MS-compatible name lister. 21486NM=$lt_NM 21487 21488# Whether we need soft or hard links. 21489LN_S=$lt_LN_S 21490 21491# What is the maximum length of a command? 21492max_cmd_len=$max_cmd_len 21493 21494# Object file suffix (normally "o"). 21495objext=$ac_objext 21496 21497# Executable file suffix (normally ""). 21498exeext=$exeext 21499 21500# whether the shell understands "unset". 21501lt_unset=$lt_unset 21502 21503# turn spaces into newlines. 21504SP2NL=$lt_lt_SP2NL 21505 21506# turn newlines into spaces. 21507NL2SP=$lt_lt_NL2SP 21508 21509# convert \$build file names to \$host format. 21510to_host_file_cmd=$lt_cv_to_host_file_cmd 21511 21512# convert \$build files to toolchain format. 21513to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21514 21515# An object symbol dumper. 21516OBJDUMP=$lt_OBJDUMP 21517 21518# Method to check whether dependent libraries are shared objects. 21519deplibs_check_method=$lt_deplibs_check_method 21520 21521# Command to use when deplibs_check_method = "file_magic". 21522file_magic_cmd=$lt_file_magic_cmd 21523 21524# How to find potential files when deplibs_check_method = "file_magic". 21525file_magic_glob=$lt_file_magic_glob 21526 21527# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21528want_nocaseglob=$lt_want_nocaseglob 21529 21530# DLL creation program. 21531DLLTOOL=$lt_DLLTOOL 21532 21533# Command to associate shared and link libraries. 21534sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21535 21536# The archiver. 21537AR=$lt_AR 21538 21539# Flags to create an archive. 21540AR_FLAGS=$lt_AR_FLAGS 21541 21542# How to feed a file listing to the archiver. 21543archiver_list_spec=$lt_archiver_list_spec 21544 21545# A symbol stripping program. 21546STRIP=$lt_STRIP 21547 21548# Commands used to install an old-style archive. 21549RANLIB=$lt_RANLIB 21550old_postinstall_cmds=$lt_old_postinstall_cmds 21551old_postuninstall_cmds=$lt_old_postuninstall_cmds 21552 21553# Whether to use a lock for old archive extraction. 21554lock_old_archive_extraction=$lock_old_archive_extraction 21555 21556# A C compiler. 21557LTCC=$lt_CC 21558 21559# LTCC compiler flags. 21560LTCFLAGS=$lt_CFLAGS 21561 21562# Take the output of nm and produce a listing of raw symbols and C names. 21563global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21564 21565# Transform the output of nm in a proper C declaration. 21566global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21567 21568# Transform the output of nm into a list of symbols to manually relocate. 21569global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21570 21571# Transform the output of nm in a C name address pair. 21572global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21573 21574# Transform the output of nm in a C name address pair when lib prefix is needed. 21575global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21576 21577# The name lister interface. 21578nm_interface=$lt_lt_cv_nm_interface 21579 21580# Specify filename containing input files for \$NM. 21581nm_file_list_spec=$lt_nm_file_list_spec 21582 21583# The root where to search for dependent libraries,and where our libraries should be installed. 21584lt_sysroot=$lt_sysroot 21585 21586# Command to truncate a binary pipe. 21587lt_truncate_bin=$lt_lt_cv_truncate_bin 21588 21589# The name of the directory that contains temporary libtool files. 21590objdir=$objdir 21591 21592# Used to examine libraries when file_magic_cmd begins with "file". 21593MAGIC_CMD=$MAGIC_CMD 21594 21595# Must we lock files when doing compilation? 21596need_locks=$lt_need_locks 21597 21598# Manifest tool. 21599MANIFEST_TOOL=$lt_MANIFEST_TOOL 21600 21601# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21602DSYMUTIL=$lt_DSYMUTIL 21603 21604# Tool to change global to local symbols on Mac OS X. 21605NMEDIT=$lt_NMEDIT 21606 21607# Tool to manipulate fat objects and archives on Mac OS X. 21608LIPO=$lt_LIPO 21609 21610# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21611OTOOL=$lt_OTOOL 21612 21613# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21614OTOOL64=$lt_OTOOL64 21615 21616# Old archive suffix (normally "a"). 21617libext=$libext 21618 21619# Shared library suffix (normally ".so"). 21620shrext_cmds=$lt_shrext_cmds 21621 21622# The commands to extract the exported symbol list from a shared archive. 21623extract_expsyms_cmds=$lt_extract_expsyms_cmds 21624 21625# Variables whose values should be saved in libtool wrapper scripts and 21626# restored at link time. 21627variables_saved_for_relink=$lt_variables_saved_for_relink 21628 21629# Do we need the "lib" prefix for modules? 21630need_lib_prefix=$need_lib_prefix 21631 21632# Do we need a version for libraries? 21633need_version=$need_version 21634 21635# Library versioning type. 21636version_type=$version_type 21637 21638# Shared library runtime path variable. 21639runpath_var=$runpath_var 21640 21641# Shared library path variable. 21642shlibpath_var=$shlibpath_var 21643 21644# Is shlibpath searched before the hard-coded library search path? 21645shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21646 21647# Format of library name prefix. 21648libname_spec=$lt_libname_spec 21649 21650# List of archive names. First name is the real one, the rest are links. 21651# The last name is the one that the linker finds with -lNAME 21652library_names_spec=$lt_library_names_spec 21653 21654# The coded name of the library, if different from the real name. 21655soname_spec=$lt_soname_spec 21656 21657# Permission mode override for installation of shared libraries. 21658install_override_mode=$lt_install_override_mode 21659 21660# Command to use after installation of a shared archive. 21661postinstall_cmds=$lt_postinstall_cmds 21662 21663# Command to use after uninstallation of a shared archive. 21664postuninstall_cmds=$lt_postuninstall_cmds 21665 21666# Commands used to finish a libtool library installation in a directory. 21667finish_cmds=$lt_finish_cmds 21668 21669# As "finish_cmds", except a single script fragment to be evaled but 21670# not shown. 21671finish_eval=$lt_finish_eval 21672 21673# Whether we should hardcode library paths into libraries. 21674hardcode_into_libs=$hardcode_into_libs 21675 21676# Compile-time system search path for libraries. 21677sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21678 21679# Detected run-time system search path for libraries. 21680sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 21681 21682# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 21683configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 21684 21685# Whether dlopen is supported. 21686dlopen_support=$enable_dlopen 21687 21688# Whether dlopen of programs is supported. 21689dlopen_self=$enable_dlopen_self 21690 21691# Whether dlopen of statically linked programs is supported. 21692dlopen_self_static=$enable_dlopen_self_static 21693 21694# Commands to strip libraries. 21695old_striplib=$lt_old_striplib 21696striplib=$lt_striplib 21697 21698 21699# The linker used to build libraries. 21700LD=$lt_LD 21701 21702# How to create reloadable object files. 21703reload_flag=$lt_reload_flag 21704reload_cmds=$lt_reload_cmds 21705 21706# Commands used to build an old-style archive. 21707old_archive_cmds=$lt_old_archive_cmds 21708 21709# A language specific compiler. 21710CC=$lt_compiler 21711 21712# Is the compiler the GNU compiler? 21713with_gcc=$GCC 21714 21715# Compiler flag to turn off builtin functions. 21716no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21717 21718# Additional compiler flags for building library objects. 21719pic_flag=$lt_lt_prog_compiler_pic 21720 21721# How to pass a linker flag through the compiler. 21722wl=$lt_lt_prog_compiler_wl 21723 21724# Compiler flag to prevent dynamic linking. 21725link_static_flag=$lt_lt_prog_compiler_static 21726 21727# Does compiler simultaneously support -c and -o options? 21728compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21729 21730# Whether or not to add -lc for building shared libraries. 21731build_libtool_need_lc=$archive_cmds_need_lc 21732 21733# Whether or not to disallow shared libs when runtime libs are static. 21734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21735 21736# Compiler flag to allow reflexive dlopens. 21737export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21738 21739# Compiler flag to generate shared objects directly from archives. 21740whole_archive_flag_spec=$lt_whole_archive_flag_spec 21741 21742# Whether the compiler copes with passing no objects directly. 21743compiler_needs_object=$lt_compiler_needs_object 21744 21745# Create an old-style archive from a shared archive. 21746old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21747 21748# Create a temporary old-style archive to link instead of a shared archive. 21749old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21750 21751# Commands used to build a shared archive. 21752archive_cmds=$lt_archive_cmds 21753archive_expsym_cmds=$lt_archive_expsym_cmds 21754 21755# Commands used to build a loadable module if different from building 21756# a shared archive. 21757module_cmds=$lt_module_cmds 21758module_expsym_cmds=$lt_module_expsym_cmds 21759 21760# Whether we are building with GNU ld or not. 21761with_gnu_ld=$lt_with_gnu_ld 21762 21763# Flag that allows shared libraries with undefined symbols to be built. 21764allow_undefined_flag=$lt_allow_undefined_flag 21765 21766# Flag that enforces no undefined symbols. 21767no_undefined_flag=$lt_no_undefined_flag 21768 21769# Flag to hardcode \$libdir into a binary during linking. 21770# This must work even if \$libdir does not exist 21771hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21772 21773# Whether we need a single "-rpath" flag with a separated argument. 21774hardcode_libdir_separator=$lt_hardcode_libdir_separator 21775 21776# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21777# DIR into the resulting binary. 21778hardcode_direct=$hardcode_direct 21779 21780# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21781# DIR into the resulting binary and the resulting library dependency is 21782# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21783# library is relocated. 21784hardcode_direct_absolute=$hardcode_direct_absolute 21785 21786# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21787# into the resulting binary. 21788hardcode_minus_L=$hardcode_minus_L 21789 21790# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21791# into the resulting binary. 21792hardcode_shlibpath_var=$hardcode_shlibpath_var 21793 21794# Set to "yes" if building a shared library automatically hardcodes DIR 21795# into the library and all subsequent libraries and executables linked 21796# against it. 21797hardcode_automatic=$hardcode_automatic 21798 21799# Set to yes if linker adds runtime paths of dependent libraries 21800# to runtime path list. 21801inherit_rpath=$inherit_rpath 21802 21803# Whether libtool must link a program against all its dependency libraries. 21804link_all_deplibs=$link_all_deplibs 21805 21806# Set to "yes" if exported symbols are required. 21807always_export_symbols=$always_export_symbols 21808 21809# The commands to list exported symbols. 21810export_symbols_cmds=$lt_export_symbols_cmds 21811 21812# Symbols that should not be listed in the preloaded symbols. 21813exclude_expsyms=$lt_exclude_expsyms 21814 21815# Symbols that must always be exported. 21816include_expsyms=$lt_include_expsyms 21817 21818# Commands necessary for linking programs (against libraries) with templates. 21819prelink_cmds=$lt_prelink_cmds 21820 21821# Commands necessary for finishing linking programs. 21822postlink_cmds=$lt_postlink_cmds 21823 21824# Specify filename containing input files. 21825file_list_spec=$lt_file_list_spec 21826 21827# How to hardcode a shared library path into an executable. 21828hardcode_action=$hardcode_action 21829 21830# ### END LIBTOOL CONFIG 21831 21832_LT_EOF 21833 21834 cat <<'_LT_EOF' >> "$cfgfile" 21835 21836# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21837 21838# func_munge_path_list VARIABLE PATH 21839# ----------------------------------- 21840# VARIABLE is name of variable containing _space_ separated list of 21841# directories to be munged by the contents of PATH, which is string 21842# having a format: 21843# "DIR[:DIR]:" 21844# string "DIR[ DIR]" will be prepended to VARIABLE 21845# ":DIR[:DIR]" 21846# string "DIR[ DIR]" will be appended to VARIABLE 21847# "DIRP[:DIRP]::[DIRA:]DIRA" 21848# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21849# "DIRA[ DIRA]" will be appended to VARIABLE 21850# "DIR[:DIR]" 21851# VARIABLE will be replaced by "DIR[ DIR]" 21852func_munge_path_list () 21853{ 21854 case x$2 in 21855 x) 21856 ;; 21857 *:) 21858 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21859 ;; 21860 x:*) 21861 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21862 ;; 21863 *::*) 21864 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21865 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21866 ;; 21867 *) 21868 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21869 ;; 21870 esac 21871} 21872 21873 21874# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21875func_cc_basename () 21876{ 21877 for cc_temp in $*""; do 21878 case $cc_temp in 21879 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21880 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21881 \-*) ;; 21882 *) break;; 21883 esac 21884 done 21885 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21886} 21887 21888 21889# ### END FUNCTIONS SHARED WITH CONFIGURE 21890 21891_LT_EOF 21892 21893 case $host_os in 21894 aix3*) 21895 cat <<\_LT_EOF >> "$cfgfile" 21896# AIX sometimes has problems with the GCC collect2 program. For some 21897# reason, if we set the COLLECT_NAMES environment variable, the problems 21898# vanish in a puff of smoke. 21899if test set != "${COLLECT_NAMES+set}"; then 21900 COLLECT_NAMES= 21901 export COLLECT_NAMES 21902fi 21903_LT_EOF 21904 ;; 21905 esac 21906 21907 21908ltmain=$ac_aux_dir/ltmain.sh 21909 21910 21911 # We use sed instead of cat because bash on DJGPP gets confused if 21912 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21913 # text mode, it properly converts lines to CR/LF. This bash problem 21914 # is reportedly fixed, but why not run on old versions too? 21915 sed '$q' "$ltmain" >> "$cfgfile" \ 21916 || (rm -f "$cfgfile"; exit 1) 21917 21918 mv -f "$cfgfile" "$ofile" || 21919 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21920 chmod +x "$ofile" 21921 21922 ;; 21923 21924 esac 21925done # for ac_tag 21926 21927 21928as_fn_exit 0 21929_ACEOF 21930ac_clean_files=$ac_clean_files_save 21931 21932test $ac_write_fail = 0 || 21933 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21934 21935 21936# configure is writing to config.log, and then calls config.status. 21937# config.status does its own redirection, appending to config.log. 21938# Unfortunately, on DOS this fails, as config.log is still kept open 21939# by configure, so config.status won't be able to write to it; its 21940# output is simply discarded. So we exec the FD to /dev/null, 21941# effectively closing config.log, so it can be properly (re)opened and 21942# appended to by config.status. When coming back to configure, we 21943# need to make the FD available again. 21944if test "$no_create" != yes; then 21945 ac_cs_success=: 21946 ac_config_status_args= 21947 test "$silent" = yes && 21948 ac_config_status_args="$ac_config_status_args --quiet" 21949 exec 5>/dev/null 21950 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21951 exec 5>>config.log 21952 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21953 # would make configure fail if this is the last instruction. 21954 $ac_cs_success || as_fn_exit 1 21955fi 21956if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21958$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21959fi 21960 21961